| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462 |
- <template>
- <div class="details_info">
- <div class="container">
- <div class="crumbs">
- <div class="container">
- <div class="menu-com row">
- <div class="menu-title col-md-12">
- <a href="/">首页 ></a>
- <a href="/supplier">供应商资源 ></a>
- <span>供应商物料</span>
- </div>
- </div>
- </div>
- </div>
- <div class="top">
- <div class="img">
- <img src="/images/store/common/default.png">
- </div>
- <div class="right">
- <h4 v-text="detail.cmpCode">32222222222222222222</h4>
- <ul class="list-unstyled">
- <li class="item">
- <span>类目(名称)</span>
- <p v-text="detail.prodName? spliceString(detail.prodName, 400) : '暂无信息'">3errrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr2</p>
- </li>
- <li class="item">
- <span>品牌</span>
- <p v-text="detail.brand ? detail.brand : '暂无信息'">32</p>
- </li>
- <li class="item">
- <span>单位</span>
- <p v-text="detail.unit ? detail.unit : '暂无信息'">32</p>
- </li>
- <li class="item">
- <span>规格</span>
- <p v-text="detail.spec ? detail.spec : '暂无信息'">32</p>
- </li>
- <li class="item">
- <span>种类</span>
- <p>32</p>
- </li>
- </ul>
- <a @click="hasDialog = true">立即询价</a>
- </div>
- </div>
- <div class="info">
- <table>
- <thead>
- <tr>
- <th colspan="4">
- <p>产品参数 <span>(仅供参考,以实际产品为准)</span></p>
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td width="297">工作温度范围: </td>
- <td width="297"></td>
- <td width="297">最大输入电压:</td>
- <td width="297"></td>
- </tr>
- <tr>
- <td>输出电压-Vout: </td>
- <td></td>
- <td>负载调节:</td>
- <td></td>
- </tr>
- <tr>
- <td>输出类型: </td>
- <td></td>
- <td>安装方式:</td>
- <td></td>
- </tr>
- <tr>
- <td>工作温度范围: </td>
- <td></td>
- <td>最大输入电压:</td>
- <td></td>
- </tr>
- <tr>
- <td>输出电压-Vout: </td>
- <td></td>
- <td>负载调节:</td>
- <td></td>
- </tr>
- <tr>
- <td>输出类型: </td>
- <td></td>
- <td>安装方式:</td>
- <td></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <el-dialog
- title="我要询价"
- :visible.sync="hasDialog ">
- <div class="form_dialog">
- <ul class="list-inline">
- <li class="form-item">
- <span>型号:</span>
- <p>32432</p>
- </li>
- <li class="form-item">
- <span>类目:</span>
- <p>3244333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333332</p>
- </li>
- <li class="form-item">
- <span>品牌:</span>
- <p>32432</p>
- </li>
- <li class="form-item">
- <span>规格:</span>
- <p>32432</p>
- </li>
- <li class="form-item">
- <span><i>*</i>截止日期:</span>
- <el-date-picker
- v-model="form.name"
- type="date"
- :picker-options="pickerOptions"
- @change="setDeadLineValid"
- :editable="false"
- :clearable="true"
- size="mini">
- </el-date-picker>
- </li>
- <li class="form-item">
- <span>封装:</span>
- <input type="text" class="form-control" v-model="form.date1"/>
- </li>
- <li class="form-item">
- <span>单价预算:</span>
- <select v-model="form.date1" class="form-control" style="width:40px;">
- <option value="RMB">¥</option>
- <option value="USD">$</option>
- </select>
- <input type="number" class="form-control"/>
- </li>
- <li class="form-item">
- <span>生产日期:</span>
- <el-date-picker
- v-model="form.date2"
- type="date"
- :picker-options="pickerOptions"
- @change="setDeadProduction"
- :editable="false"
- :clearable="true"
- size="mini">
- </el-date-picker>
- </li>
- <li class="form-item">
- <span>采购数量:</span>
- <input type="number" class="form-control"/>
- </li>
- </ul>
- </div>
- <span slot="footer" class="dialog-footer">
- <a type="button" @click="hasDialog=false">询价提交</a>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import {spliceStr, formatDate} from '~utils/baseUtils.js'
- export default {
- name: 'DetailsView',
- data () {
- return {
- pickerOptions: {
- disabledDate (time) {
- // 大于等于今天 小于三个月后
- return time.getTime() < Date.now() - 1000 * 60 * 60 * 24 || time.getTime() > Date.now() + 1000 * 60 * 60 * 24 * 30 * 3
- }
- },
- hasDialog: false,
- form: {
- name: '',
- region: '',
- date1: '',
- date2: '',
- delivery: false,
- type: [],
- resource: '',
- desc: ''
- },
- dialogVisible: false,
- searchCode: '',
- test: '322222222222222222222222222222222222222222222222222222'
- }
- },
- computed: {
- detail () {
- console.log(this.$store.state.supplier.detail.detail.data)
- return this.$store.state.supplier.detail.detail.data
- }
- },
- methods: {
- setDeadProduction () {
- this.form.name = formatDate(this.form.name, 'yyyy-MM-dd hh:mm:ss')
- },
- setDeadLineValid: function () {
- this.form.date2 = formatDate(this.form.date2, 'yyyy-MM-dd hh:mm:ss')
- // this.validObj.deadline = true
- },
- onSubmit () {
- console.log('submit!')
- },
- spliceString (str, length) {
- return spliceStr(str, length)
- }
- }
- }
- </script>
- <style type="text/scss" lang="scss">
- .details_info{
- background: #fff;
- .el-dialog{
- width: 680px!important;
- .el-dialog__header{
- background: #4290f7;
- line-height: 40px;
- padding: 0 20px 0;
- .el-dialog__title{
- color:#fff;
- }
- .el-dialog__headerbtn:hover .el-dialog__close, .el-dialog__headerbtn:focus .el-dialog__close{
- color:#fff;
- }
- }
- .el-dialog__body{
- padding: 10px 20px;
- }
- .el-dialog__footer{
- text-align: center;
- a{
- display:inline-block;
- background: #3c7cf5;
- color:#fff;
- font-size: 14px;
- line-height: 30px;
- height:30px;
- padding:0 10px;
- border-radius:5px;
- }
- }
- }
- .form_dialog{
- ul{
- li{
- width:50%;
- font-size: 14px;
- color:#666;
- vertical-align: top;
- margin-bottom:15px;
- &.form-item {
- position: relative;
- p{
- margin:0;
- margin-left:80px;
- word-break: break-all;
- word-wrap: break-word;
- }
- span {
- float:left;
- width: 80px;
- text-align: right;
- display: inline-block;
- color:#3c7cf5;
- i {
- position: relative;
- top: 2px;
- right: 5px;
- color: #e41515;
- }
- }
- ul {
- line-height: normal;
- position: absolute;
- top: 19px;
- left: 79px;
- background: #fff;
- border: 1px solid #b5b5b5;
- z-index: 1;
- max-height: 120px;
- overflow-y: auto;
- overflow-x: hidden;
- border-radius: 3px;
- width: 114px;
- font-size: 12px;
- li {
- height: 24px;
- line-height: 24px;
- cursor: pointer;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- padding: 0 5px;
- &:hover {
- background: #ddd;
- }
- }
- }
- select {
- width: 40px;
- position: absolute;
- height: 20px;
- background: url('/images/applyPurchase/select.png')no-repeat right;
- background-position-x: 23px;
- padding: 0 0 0 7px;
- border-radius: 0;
- & + input {
- padding-left: 45px;
- }
- }
- .el-input {
- width: 230px;
- }
- input {
- font-size: 14px;
- width: 230px;
- height: 20px;
- line-height: 20px;
- border-radius: 2px;
- padding: 0 3px;
- box-shadow: none;
- -webkit-box-shadow: none;
- -moz-box-shadow: none;
- &.error {
- border-color: #f4645f!important;
- }
- }
- }
- }
- }
- }
- .crumbs{
- background: #fff;
- .menu-com{
- margin: 0;
- .menu-title{
- line-height: 40px;
- font-size: 14px;
- padding-left: 0;
- margin:0;
- a{
- color: #5078cb;
- font-size: 14px;
- }
- }
- }
- }
- .top{
- margin-bottom:20px;
- .img{
- float:left;
- width:350px;
- height:350px;
- vertical-align: top;
- padding:36px;
- border:1px solid #bababa;
- img{
- width:100%;
- height:100%;
- }
- }
- .right{
- position:relative;
- height:350px;
- margin-left:370px;
- h4{
- width:800px;
- font-size: 25px;
- line-height: 25px;
- font-weight: bold;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space:nowrap;
- border-bottom:1px solid #3c7cf5;
- margin:0;
- padding-bottom:20px;
- }
- a{
- display:inline-block;
- position:absolute;
- bottom:0;
- left: 0;
- background: #3c7cf5;
- color:#fff;
- font-size: 14px;
- line-height: 30px;
- height:30px;
- padding:0 10px;
- border-radius:5px;
- }
- ul{
- padding-top:35px;
- li{
- margin-bottom:25px;
- span{
- display:inline-block;
- width:70px;
- float:left;
- color:#3c7cf5;
- vertical-align: top;
- text-align: right;
- }
- p{
- width:365px;
- font-size: 14px;
- color:#333;
- margin:0;
- margin-left:90px;
- word-wrap: break-word;
- word-break: normal;
- }
- }
- }
- }
- }
- .info{
- padding-bottom:90px;
- table{
- thead{
- tr{
- line-height: 34px;
- th{
- font-weight: bold;
- color:#fff;
- background: #3c7cf5;
- padding-left:15px;
- p{
- font-size: 16px;
- margin:0;
- span{
- font-size: 12px;
- }
- }
- }
- }
- }
- tbody{
- tr{
- line-height: 34px;
- &:nth-child(odd){
- background: #fff;
- }
- &:nth-child(even){
- background: #f5f6f8;
- }
- td{
- text-align: center;
- }
- }
- }
- }
- }
- }
- </style>
|