Commit 88668e3c by LJM

报价详情

parent a8e00462
.inquireDetail {
.inquiry-information {
position: relative;
background: #FFFFFF;
border-radius: 4px;
border: 1px solid #E5EBF6;
......@@ -30,9 +29,11 @@
.input-box {
margin-top: 14px;
margin-bottom: 20px;
.fl{
margin-bottom: 10px;
}
.p-text {
font-size: 14px;
color: #333333;
......@@ -41,7 +42,7 @@
}
input {
height: 38px;
height: 28px;
background: #F1F4FA;
border-radius: 2px;
vertical-align: middle;
......@@ -67,7 +68,6 @@
}
}
}
.quote {
position: relative;
padding-top: 20px;
......@@ -146,7 +146,6 @@
}
}
.assistant {
padding-top: 3px;
padding-bottom: 20px;
......
......@@ -37,7 +37,7 @@
margin-right: 10px;
}
.inquireDetail .inquiry-information .input-box input {
height: 38px;
height: 28px;
background: #F1F4FA;
border-radius: 2px;
vertical-align: middle;
......
{"version":3,"sources":["inquireDetail.less"],"names":[],"mappings":"AAAA,cACE;EACE,kBAAA;EAEA,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,iBAAA;EACA,kBAAA;EACA,mBAAA;EACA,oBAAA;;AAEA,cAXF,qBAWG;EACC,kBAAA;EACA,SAAA;EACA,OAAA;EACA,UAAA;EACA,YAAA;EACA,mBAAA;EACA,SAAS,EAAT;EACA,cAAA;;AApBN,cACE,qBAsBE;EACE,eAAA;EACA,cAAA;EACA,iBAAA;;AA1BN,cACE,qBA4BE;EACE,gBAAA;EACA,mBAAA;;AA/BN,cACE,qBA4BE,WAGE;EACE,mBAAA;;AAjCR,cACE,qBA4BE,WAME;EACE,eAAA;EACA,cAAA;EACA,sBAAA;EACA,kBAAA;;AAvCR,cACE,qBA4BE,WAaE;EACE,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,sBAAA;EACA,sBAAA;EACA,iBAAA;EACA,eAAA;EACA,cAAA;EACA,mBAAA;;AAnDR,cACE,qBAsDE,MACE;EACE,eAAA;EACA,cAAA;EACA,iBAAA;;AA3DR,cACE,qBAsDE,MAOE;EACE,eAAA;EACA,c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YAAA;EACA,kBAAA;EACA,kBAAA;EACA,iBAAA;EACA,yBAAA;EACA,mBAAA;EACA,cAAA;EACA,kBAAA;EACA,eAAA;EACA,oBAAA;;AAEA,cAdF,KAcG;EACC,mBAAA;EACA,eAAA;EACA,WAAA;;AAEF,cAnBF,KAmBG;EACC,gBAAA;EACA,WAAA;EACA,kBAAA;EACA,mBAAA;;AAEF,cAzBF,KAyBG;EACC,WAAA;EACA,gBAAA;;AAEA,cA7BJ,KAyBG,KAIE;EACC,mBAAA;EACA,cAAA;;AAIJ,cAnCF,KAmCG;EACC,kBAAA;EACA,WAAA;EACA,8BAAA;;AAEA,cAxCJ,KAmCG,IAKE;EACC,8BAAA;;AAIJ,cA7CF,KA6CG;EACC,yBAAA;EACA,mBAAA;EACA,cAAA;;AAEA,cAlDJ,KA6CG,OAKE;EACC,mBAAA;EACA,WAAA;;AAMR,GACE;EACE,mBAAA;;AAFJ,GAKE;EACE,6BAAA;;AANJ,GASE;EACE,kBAAA;;AAVJ,GASE,WAGE;EACE,WAAA;EAEA,kBAAA;EACA,QAAA;EACA,UAAA;;AAjBN,GASE,WAGE,UAOE;EACE,WAAA;EACA,8BAAA;;AArBR,GASE,WAGE,UAOE,WAIE;EACE,WAAA;EACA,YAAA;EACA,WAAA;EACA,YAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AA9BV,GASE,WAGE,UAOE,WAeE;AAlCR,GASE,WAGE,UAOE,WAeqB;EACjB,wBAAA;;AASV,WACE;EACE,WAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,oBAAA;EACA,kBAAA;EACA,eAAA;;AAEA,WAbF,iBAaG;EACC,yBAAA","file":"inquireDetail.min.css"}
\ No newline at end of file
{"version":3,"sources":["inquireDetail.less"],"names":[],"mappings":"AAAA,cACE;EACE,kBAAA;EACA,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,iBAAA;EACA,kBAAA;E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AEA,kBAAA;EACA,QAAA;EACA,UAAA;;AAjBN,GASE,WAGE,UAOE;EACE,WAAA;EACA,8BAAA;;AArBR,GASE,WAGE,UAOE,WAIE;EACE,WAAA;EACA,YAAA;EACA,WAAA;EACA,YAAA;EACA,eAAA;EACA,WAAA;EACA,kBAAA;;AA9BV,GASE,WAGE,UAOE,WAeE;AAlCR,GASE,WAGE,UAOE,WAeqB;EACjB,wBAAA;;AASV,WACE;EACE,WAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,yBAAA;EACA,eAAA;EACA,cAAA;EACA,kBAAA;EACA,oBAAA;EACA,kBAAA;EACA,eAAA;;AAEA,WAbF,iBAaG;EACC,yBAAA","file":"inquireDetail.min.css"}
\ No newline at end of file
......@@ -190,23 +190,6 @@ body {
padding: 20px;
}
.zdypop {
.el-form-item__label {
color: #333
}
.el-input.is-disabled {
background-color: #F1F4FA;
border-color: #F1F4FA
}
.el-input.is-disabled .el-input__inner {
background-color: #F1F4FA;
border-color: #F1F4FA
}
}
//js跟随提示框
.el-tooltip__popper {
box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5);
......
......@@ -204,17 +204,6 @@ body {
.pagex {
padding: 20px;
}
.zdypop .el-form-item__label {
color: #333;
}
.zdypop .el-input.is-disabled {
background-color: #F1F4FA;
border-color: #F1F4FA;
}
.zdypop .el-input.is-disabled .el-input__inner {
background-color: #F1F4FA;
border-color: #F1F4FA;
}
.el-tooltip__popper {
box-shadow: 1px 2px 10px 0px rgba(119, 135, 145, 0.5);
border: 1px solid #387FFF !important;
......
{"version":3,"sources":["common.less"],"names":[],"mappings":"AAAA;EACE,8BAAA;EACA,0BAAA;;AAGF,IAAK;EACH,UAAA;EACA,yCAAA;EACA,6CAAA;;AAGF;AAAM;EACJ,8CAA8C,6BAA9C;EACA,kBAAA;EACA,mCAAA;EACA,kCAAA;EACA,eAAA;EACA,cAAA;;AAGF;AAAM;AAAK;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI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cAlBF,WAkBG;EACC,yBAAA;EACA,WAAA;EACA,mBAAA;;AAEA,qBAvBJ,WAkBG,mBAKE;AAAD,cAvBJ,WAkBG,mBAKE;AAAQ,qBAvBb,WAkBG,mBAKW;AAAD,cAvBb,WAkBG,mBAKW;EACR,WAAA;EACA,mBAAA;EACA,yBAAA;;AAMR;EACE,kBAAA;;AADF,OAGE;EACE,WAAA;EACA,gBAAA;;AALJ,OAQE;EACE,YAAA;EACA,YAAA;EACA,mBAAA;EACA,kBAAA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;EACA,gBAAA;EACA,gBAAA;;AAIJ,iBACE;EACE,UAAA;;AAIJ;EACE,iBAAA;EACA,yBAAA;EACA,kBAAA;EACA,8BAAA;EACA,cAAA;;AALF,UAOE;EACE,eAAA;EACA,cAAA;EACA,kBAAA;;AAIJ;EACE,WAAA;EACA,YAAA;EACA,uBAAA;;AAGF;EACE,uBAAA;;AAGF;EACE,kBAAA;EACA,yBAAA;;AAGF,yBAAyB;EACvB,yBAAA","file":"common.min.css"}
\ No newline at end of file
{"version":3,"sources":["common.less"],"names":[],"mappings":"AAAA;EACE,8BAAA;EACA,0BAAA;;AAGF,IAAK;EACH,UAAA;EACA,yCAAA;EACA,6CAAA;;AAGF;AAAM;EACJ,8CAA8C,6BAA9C;EACA,kBAAA;EACA,mCAAA;EACA,kCAAA;EACA,eAAA;EACA,cAAA;;AAGF;AAAM;AAAK;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAI;AAAK;AAAM;AAAM;AAAU;AAAQ;AAAO;AAAU;AAAG;AAAY;AAAI;AAAI;AAAI;AAAQ;AAAS;AAAO;AAAS;AAAY;AAAQ;AAAQ;AAAQ;AAAM;AAAK;EACxN,SAAA;EACA,UAAA;;AAGF;AAAQ;AAAO;AAAQ;EACrB,eAAA;EACA,YAAA;EACA,wBAAA;;AAGF,KAAK;AAAe,KAAK;AAAa,KAAK;EACzC,eAAA;;AAG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kBAAA;EACA,8BAAA;EACA,cAAA;;AALF,UAOE;EACE,eAAA;EACA,cAAA;EACA,kBAAA;;AAIJ;EACE,WAAA;EACA,YAAA;EACA,uBAAA;;AAGF;EACE,uBAAA;;AAGF;EACE,kBAAA;EACA,yBAAA;;AAGF,yBAAyB;EACvB,yBAAA","file":"common.min.css"}
\ No newline at end of file
......@@ -8,6 +8,14 @@
<el-form-item label="品牌">
<el-autocomplete v-model="formParam.brand_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsyncBrand" placeholder="请输入品牌" clearable></el-autocomplete>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="formParam.i_status" placeholder="请选择">
<el-option label="全部" value=""></el-option>
<el-option label="已关闭" value="-1"></el-option>
<el-option label="待报价" value="1"></el-option>
<el-option label="已报价" value="2"></el-option>
</el-select>
</el-form-item>
<el-form-item label="询价日期">
<el-date-picker v-model="formParam.date" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
......@@ -36,7 +44,7 @@
<el-table-column prop="inquiry_number" label="数量" min-width="10%" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="batch" label="批次" min-width="10%" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="delivery_time" label="交货日期" min-width="10%" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="i_status" label="状态" min-width="10%" :show-overflow-tooltip="true">
<el-table-column prop="i_status" label="状态" width="100" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span v-if="scope.row.i_status==2" class="f-green">已报价</span>
<span v-else-if="scope.row.i_status==1" class="f-yellow1">待报价</span>
......@@ -44,8 +52,9 @@
<span v-else-if="scope.row.i_status==-1" class="f-red1">已关闭</span>
</template>
</el-table-column>
<el-table-column prop="quote_num" label="报价数" min-width="10%" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="create_time" label="询价时间" min-width="10%" :formatter='dateFormat' :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="quote_num" label="报价数" width="100" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="inquiry_time" label="询价时间" width="160" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="deadline_time" label="询价有效期" width="160" :show-overflow-tooltip="true"></el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div>
......@@ -59,7 +68,7 @@ import Menu from "@/components/menu.vue";
import {dateTimeFormate} from "../../filters/formate.js";
import VueClipboard from 'vue-clipboard2'
import Tool from '../../tool'
import {Form, FormItem, Select, Option, Input, DatePicker, Button, Dropdown, DropdownMenu, DropdownItem, Table, TableColumn, MessageBox, Message, Dialog, Pagination, Autocomplete} from 'element-ui'
import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Select, Table, TableColumn} from 'element-ui'
import {NODE_ENVS} from "../../ajax";
Vue.prototype.$message = Message;
......@@ -78,27 +87,26 @@ export default {
multipleSelection: [],
formParam: {
goods_name: '',
brand_id: '',
brand_name: '',
i_status: '',
date: ''
}
};
},
watch: {},
created() {
this.getData();
},
computed: {},
methods: {
getData() {
console.log(this.formParam)
this.$http('get', "/api/inquiry/getlist", {
page: this.page,
limit: this.limit,
goods_name: this.formParam.goods_name,
brand_id: this.formParam.brand_id,
brand_name: this.formParam.brand_name,
start_time: this.formParam.date ? this.formParam.date[0] : '',
end_time: this.formParam.date ? this.formParam.date[1] : ''
end_time: this.formParam.date ? this.formParam.date[1] : '',
i_status: this.formParam.i_status
}).then(res => {
if (res.code === 0) {
this.tableData = res.data.list || [];
......@@ -227,37 +235,48 @@ export default {
if (this.multipleSelection.length == 0) {
this.$message({
showClose: true,
message: '请至少选择一条数据',
message: '请勾选一条数据删除',
type: 'warning'
});
return false;
}
var status_arr = this.multipleSelection.map(obj => {
return obj.i_status;
})
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['supplier_auto_inquiry_id'])
}
MessageBox.confirm('确认到删除当前勾选数据吗?', {
type: 'error'
}).then(() => {
this.$http('post', "/api/inquiry/delete", {
ids: arr.join(",")
}).then(res => {
if (res.code === 0) {
this.$message({
message: '删除成功',
type: 'success'
});
this.getData();
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
})
}).catch(() => {
let status = status_arr.every(ele => ele === 1)
if (status) {
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['supplier_auto_inquiry_id'])
}
MessageBox.confirm('确认到删除当前勾选数据吗?', {
type: 'error'
}).then(() => {
this.$http('post', "/api/inquiry/delete", {
ids: arr.join(",")
}).then(res => {
if (res.code === 0) {
this.$message({
message: '删除成功',
type: 'success'
});
this.getData();
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
})
}).catch(() => {
})
})
} else {
this.$message({
message: '请勾选待报价的数据',
type: 'warning'
});
}
},
onCopy(e) {
this.$message({
......
<template>
<section class="inquireDetail pagex">
<div class="inquiry-information boxsiz">
<p class="tit">询价信息</p>
<div class="input-box clr">
<div class="fl">
<span class="p-text">型号<font style="visibility:hidden;">型号</font></span>
<input type="text" placeholder="" disabled :value="inquiry_info.goods_name"
style="width: 180px;margin-right: 30px; "/>
</div>
<div class="fl">
<span class="p-text">品牌<font style="visibility:hidden;">型号</font></span>
<input type="text" placeholder="" disabled :value="inquiry_info.brand_name"
style="width: 180px;margin-right: 30px; "/>
</div>
<div class="fl">
<span class="p-text">数量<font style="visibility:hidden;">型号</font></span>
<input type="text" placeholder="" disabled :value="inquiry_info.inquiry_number"
style="width: 180px ;margin-right: 30px;"/>
</div>
<div class="fl">
<span class="p-text">批次<font style="visibility:hidden;">型号</font></span>
<input type="text" placeholder="" disabled :value="inquiry_info.batch"
style="width: 180px;margin-right: 30px; "/>
</div>
<div class="fl">
<span class="p-text">交货日期</span>
<input type="text" placeholder="" disabled :value="inquiry_info.delivery_time"
style="width: 180px;margin-right: 30px; "/>
</div>
<div class="fl">
<span class="p-text">询价单号</span>
<input type="text" placeholder="" disabled :value="inquiry_info.inquiry_sn" style="width: 138px "/>
</div>
</div>
<p class="text">
<span>状态:</span>
<em v-if="inquiry_info.i_status == 2">已报价</em>
<em v-else-if="inquiry_info.i_status == 1">待报价</em>
<em v-else-if="inquiry_info.i_status == 9">已删除</em>
<em v-else-if="inquiry_info.i_status == -1">已关闭</em>
</p>
<section class="inquireDetail pagex">
<div class="inquiry-information boxsiz">
<p class="tit">询价信息</p>
<div class="input-box clr">
<div class="fl">
<span class="p-text">型号</span>
<input type="text" placeholder="" disabled :value="inquiry_info.goods_name" style="width: 180px;margin-right: 30px; "/>
</div>
<div class="quote boxsiz">
<p class="tit">报价信息</p>
<div class="btn-nav clr">
<div class="fl dcg" @click="added" style="margin-left: 0px;">新增</div>
<div class="fl dcg updatex" @click="modify">修改</div>
<div class="fl dcg delbtn" @click="del">删除</div>
</div>
<div class="data-box th-all">
<el-table :data="quote_list" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" align="center"></el-table-column>
<el-table-column prop="goods_name" label="报价型号" width="200"></el-table-column>
<el-table-column prop="brand_name" label="报价品牌" width="200"></el-table-column>
<el-table-column prop="status" label="状态" width="100">
<template slot-scope="scope">
<span v-if="scope.row.status==1" class="f-green">比价中</span>
<span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.status==3">已确认</span>
<span v-else-if="scope.row.status==5" class="f-red1">已关闭</span>
<span v-else-if="scope.row.status==9" class="f-red1">已删除</span>
<span v-else-if="scope.row.status==-1" class="f-red1">已撤销</span>
</template>
</el-table-column>
<el-table-column prop="expire_status_val" label="是否有效" width="100"></el-table-column>
<el-table-column prop="quote_number" label="报价数量" width="100"></el-table-column>
<el-table-column prop="price_origin" label="价格" width="100">
<template slot-scope="scope">
<span>{{scope.row.price_origin|floatZero}}</span>
</template>
</el-table-column>
<el-table-column prop="currency" label="币种" width="100">
<template slot-scope="scope">
<span v-if="scope.row.currency==1">人民币</span>
<span v-else-if="scope.row.currency==2">美元</span>
<span v-else-if="scope.row.currency==3">港币</span>
<span v-else-if="scope.row.currency==4">欧元</span>
<span v-else-if="scope.row.currency==5">英磅</span>
</template>
</el-table-column>
<el-table-column prop="tax_rate" label="税率" width="100"></el-table-column>
<el-table-column prop="batch" label="批次" width="100"></el-table-column>
<el-table-column prop="delivery_time" label="货期" width="100"></el-table-column>
<el-table-column prop="mpq" label="最小包装数量" width="200"></el-table-column>
<el-table-column prop="moq" label="起订量" width="100"></el-table-column>
<el-table-column prop="price_other" label="其他费用" width="100">
<template slot-scope="scope">
<span>{{scope.row.price_other|floatZero}}</span>
</template>
</el-table-column>
<el-table-column prop="expire_time" label="报价有效期" width="200"></el-table-column>
<el-table-column prop="remark" label="备注" width="200"></el-table-column>
<el-table-column prop="create_time" label="最近报价时间" width="200" :formatter='dateFormat'></el-table-column>
</el-table>
</div>
<div class="fl">
<span class="p-text">品牌</span>
<input type="text" placeholder="" disabled :value="inquiry_info.brand_name" style="width: 180px;margin-right: 30px; "/>
</div>
<div class="fl">
<span class="p-text">数量</span>
<input type="text" placeholder="" disabled :value="inquiry_info.inquiry_number" style="width: 180px ;margin-right: 30px;"/>
</div>
<div class="fl">
<span class="p-text">批次<font style="visibility:hidden;">型号</font></span>
<input type="text" placeholder="" disabled :value="inquiry_info.batch" style="width: 180px;margin-right: 30px; "/>
</div>
<div class="fl">
<span class="p-text">交货日期</span>
<input type="text" placeholder="" disabled :value="inquiry_info.delivery_time" style="width: 180px;margin-right: 30px; "/>
</div>
<div class="assistant">
<i class="ic"></i>
<ul class="tab row verCenter">
<li @click="tab(index)" class="boxsiz row rowCenter verCenter" :class="{'curr':active==index}"
v-for="(item,index) in textArr" :key="index">{{item}}
</li>
</ul>
<div class="data-box th-all">
<!--匹配库存-->
<template v-if="active==0">
<el-table :key="2" :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed label="操作" width="108" align="center">
<template slot-scope="scope">
<div class="fl">
<span class="p-text">询价单号</span>
<input type="text" placeholder="" disabled :value="inquiry_info.inquiry_sn" style="width: 138px "/>
</div>
</div>
<p class="text">
<span>状态:</span>
<em v-if="inquiry_info.i_status == 2">已报价</em>
<em v-else-if="inquiry_info.i_status == 1">待报价</em>
<em v-else-if="inquiry_info.i_status == 9">已删除</em>
<em v-else-if="inquiry_info.i_status == -1">已关闭</em>
</p>
</div>
<div class="quote boxsiz">
<p class="tit">报价信息</p>
<div class="btn-nav clr">
<el-button type="primary" @click="added">新增</el-button>
<el-button type="primary" @click="modify">修改</el-button>
<el-button type="danger" @click="del">删除</el-button>
</div>
<div class="data-box th-all">
<el-table :data="quote_list" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" align="center"></el-table-column>
<el-table-column prop="goods_name" label="报价型号" width="200"></el-table-column>
<el-table-column prop="brand_name" label="报价品牌" width="200"></el-table-column>
<el-table-column prop="status" label="状态" width="100">
<template slot-scope="scope">
<span v-if="scope.row.status==1" class="f-green">比价中</span>
<span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.status==3">已确认</span>
<span v-else-if="scope.row.status==5" class="f-red1">已关闭</span>
<span v-else-if="scope.row.status==9" class="f-red1">已删除</span>
<span v-else-if="scope.row.status==-1" class="f-red1">已撤销</span>
</template>
</el-table-column>
<el-table-column prop="expire_status_val" label="是否有效" width="100"></el-table-column>
<el-table-column prop="quote_number" label="报价数量" width="100"></el-table-column>
<el-table-column prop="price_origin" label="价格" width="100">
<template slot-scope="scope">
<span>{{ scope.row.price_origin|floatZero }}</span>
</template>
</el-table-column>
<el-table-column prop="currency" label="币种" width="100">
<template slot-scope="scope">
<span v-if="scope.row.currency==1">人民币</span>
<span v-else-if="scope.row.currency==2">美元</span>
<span v-else-if="scope.row.currency==3">港币</span>
<span v-else-if="scope.row.currency==4">欧元</span>
<span v-else-if="scope.row.currency==5">英磅</span>
</template>
</el-table-column>
<el-table-column prop="tax_rate" label="税率" width="100"></el-table-column>
<el-table-column prop="batch" label="批次" width="100"></el-table-column>
<el-table-column prop="delivery_time" label="货期" width="100"></el-table-column>
<el-table-column prop="mpq" label="最小包装数量" width="200"></el-table-column>
<el-table-column prop="moq" label="起订量" width="100"></el-table-column>
<el-table-column prop="price_other" label="其他费用" width="100">
<template slot-scope="scope">
<span>{{ scope.row.price_other|floatZero }}</span>
</template>
</el-table-column>
<el-table-column prop="expire_time" label="报价有效期" width="200"></el-table-column>
<el-table-column prop="remark" label="备注" width="200"></el-table-column>
<el-table-column prop="create_time" label="最近报价时间" width="200" :formatter='dateFormat'></el-table-column>
</el-table>
</div>
</div>
<div class="assistant">
<i class="ic"></i>
<ul class="tab row verCenter">
<li @click="tab(index)" class="boxsiz row rowCenter verCenter" :class="{'curr':active==index}"
v-for="(item,index) in textArr" :key="index">{{ item }}
</li>
</ul>
<div class="data-box th-all">
<!--匹配库存-->
<template v-if="active==0">
<el-table :key="2" :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed label="操作" width="108" align="center">
<template slot-scope="scope">
<span class="dcg" :class="{'disabled':scope.row.disabled}"
@click="handle(scope.$index, scope.row)">确认</span>
</template>
</el-table-column>
<el-table-column fixed prop="goods_name" label="型号" width="180"></el-table-column>
<el-table-column fixed prop="goods_sn" label="供应商内部型号编码" width="180"></el-table-column>
<el-table-column fixed prop="brand_name" label="品牌" width="180"></el-table-column>
<el-table-column prop="batch_sn" label="批次" width="180"></el-table-column>
<el-table-column prop="moq" label="起订量" width="150"></el-table-column>
<el-table-column prop="mpq" label="标准包装量" width="150"></el-table-column>
<el-table-column prop="stock" label="库存数量" width="150">
</el-table-column>
<el-table-column prop="cn_ladder_price" label="国内含税价(¥)" width="140">
<template slot-scope="scope" v-if="scope.row.cn_ladder_price&&scope.row.cn_ladder_price.length>0">
<div class="price-more">
<el-tooltip placement="bottom" effect="light">
<div slot="content">
<div class="boxxrth2021">
<p class="clr" v-for="item in scope.row.cn_ladder_price">
<span class="fl">{{item.purchases}}+</span>
<span class="fl">&yen;{{item.price}}</span>
</p>
</div>
</div>
<div class="more-search-btn">查看更多</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="hk_ladder_price" label="香港交货价($)" width="150">
<template slot-scope="scope" v-if="scope.row.hk_ladder_price&&scope.row.hk_ladder_price.length>0">
<div class="price-more">
<el-tooltip placement="bottom" effect="light">
<div slot="content">
<div class="boxxrth2021">
<p class="clr" v-for="item in scope.row.hk_ladder_price">
<span class="fl">{{item.purchases}}+</span>
<span class="fl">${{item.price}}</span>
</p>
</div>
</div>
<div class="more-search-btn">查看更多</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="cn_delivery_time" label="大陆交期" width="150"></el-table-column>
<el-table-column prop="hk_delivery_time" label="香港交期" width="150">
</el-table-column>
<el-table-column prop="goods_status" label="状态" width="150">
<template slot-scope="scope">
<span v-if="scope.row.goods_status==1" class="f-green">上架</span>
<span v-else-if="scope.row.goods_status==3">下架</span>
</template>
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total"
@current-change="handleCurrentChange" :current-page="page"></el-pagination>
</template>
<!--历史报价-->
<template v-else>
<el-table :key="1" :data="historyList" border style="width: 100%">
<el-table-column fixed label="操作" width="108" align="center">
<template slot-scope="scope">
<!-- <span class="dcg disabled" @click="handle(scope.$index, scope.row)">确认</span> -->
<span class="dcg " :class="{'disabled':scope.row.disabled}"
@click="handle(scope.$index, scope.row)">确认</span>
</template>
</el-table-column>
<el-table-column fixed prop="goods_name" label="报价型号" width="200"></el-table-column>
<el-table-column fixed prop="brand_name" label="报价品牌" width="200"></el-table-column>
<el-table-column fixed prop="status" label="状态" width="100">
<template slot-scope="scope">
<span v-if="scope.row.status==1" class="f-green">比价中</span>
<span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.status==3">已确认</span>
<span v-else-if="scope.row.status==4" class="f-green">已成单</span>
<span v-else-if="scope.row.status==5" class="f-red1">已关闭</span>
<span v-else-if="scope.row.status==9" class="f-red1">已删除</span>
<span v-else-if="scope.row.status==-1" class="f-red1">已撤销</span>
</template>
</el-table-column>
<el-table-column prop="expire_status_val" label="是否有效" width="100"></el-table-column>
<el-table-column prop="price_origin" label="价格" width="100">
<template slot-scope="scope">
<span>{{scope.row.price_origin|floatZero}}</span>
</template>
</el-table-column>
<el-table-column prop="currency" label="币种" width="100"></el-table-column>
<el-table-column prop="tax_rate" label="税率" width="100"></el-table-column>
<el-table-column prop="batch" label="批次" width="100"></el-table-column>
<el-table-column prop="delivery_time" label="货期" width="100"></el-table-column>
<el-table-column prop="mpq" label="最小包装数量" width="150"></el-table-column>
<el-table-column prop="moq" label="起订量" width="100"></el-table-column>
<el-table-column prop="price_other" label="其他费用" width="200">
<template slot-scope="scope">
<span>{{scope.row.price_other|floatZero}}</span>
</template>
</el-table-column>
<el-table-column prop="expire_time" label="报价有效期" width="200"></el-table-column>
<el-table-column prop="remark" label="备注" width="200"></el-table-column>
<el-table-column prop="create_time" label="最近报价时间" width="200"></el-table-column>
<el-table-column prop="inquiry_goods_name" label="型号" width="200"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="品牌" width="200"></el-table-column>
<el-table-column prop="inquiry_sn" label="询价单号" width="200"></el-table-column>
</el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total"
@current-change="handleCurrentChange" :current-page="page"></el-pagination>
</template>
</div>
</div>
<!--弹窗-->
<el-dialog :title="title" :visible.sync="dialogVisible" width="656px" class="xx">
<div class="dialog-form">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<div class="row bothSide zdypop">
<div class="box">
<el-form-item label="报价型号" prop="goods_name">
<el-input v-model="ruleForm.goods_name" :disabled="isModify" placeholder="请输入型号"
:value="ruleForm.goods_name"></el-input>
</el-form-item>
<el-form-item label="报价数量" prop="quote_number">
<el-input v-model="ruleForm.quote_number" placeholder="请输入数量" :value="ruleForm.quote_number"></el-input>
</el-form-item>
<el-form-item label="币种" prop="currency">
<el-select v-model="ruleForm.currency" @change="currentChange">
<el-option label="RMB" value="1"></el-option>
<el-option label="USD" value="2"></el-option>
</el-select>
</el-form-item>
<el-form-item label="批次" prop="batch">
<el-input v-model="ruleForm.batch" placeholder="请输入D/C" :value="ruleForm.batch"></el-input>
</el-form-item>
<el-form-item label="最小包装数量">
<el-input v-model="ruleForm.mpq" placeholder="请输入MPQ" :value="ruleForm.mpq"></el-input>
</el-form-item>
<el-form-item label="其他费用" class="updatebox">
<el-input placeholder="" onkeyup="if(isNaN(value))execCommand('undo')"
onafterpaste="if(isNaN(value))execCommand('undo')" v-model="ruleForm.price_other"
placeholder="请输入其他费用" :value="ruleForm.price_other"></el-input>
</el-form-item>
</div>
<div class="box">
<el-form-item label="报价品牌" prop="brand_s">
<el-autocomplete :disabled="isModify" v-model="ruleForm.brand"
:trigger-on-focus="true" :fetch-suggestions="querySearchAsync" placeholder="请输入品牌"
@select="handleSelectBrandName"></el-autocomplete>
</el-form-item>
<el-form-item label="价格" prop="price_origin">
<el-input v-model="ruleForm.price_origin" placeholder="请输入价格" :value="ruleForm.price_origin"></el-input>
</el-form-item>
<el-form-item label="税率">
<el-input disabled v-model="ruleForm.tax_rate" style="width: 100px" :value="ruleForm.tax_rate">
</el-input>
</el-form-item>
<el-form-item label="货期" prop="delivery_time_val" class="updatebox">
<el-input placeholder="" v-model="ruleForm.delivery_time_val" :value="ruleForm.delivery_time" onkeyup="this.value = this.value.replace(/[^\d]/g,'');" @keyup.native="keyup(ruleForm.delivery_time_val)"></el-input>
<div class="selectdw">
<el-select v-model="ruleForm.delivery_time_unit" placeholder="天" class="placehoload" @change="unitChange">
<el-option label="天" value="天"></el-option>
<el-option label="周" value="周"></el-option>
</el-select>
</div>
</el-form-item>
<el-form-item label="起订量">
<el-input v-model="ruleForm.moq" placeholder="请输入起订量" :value="ruleForm.moq"></el-input>
</el-form-item>
<el-form-item label="报价有效期" prop="expire_time">
<el-date-picker type="date" placeholder="选择报价有效期" value-format="yyyy-MM-dd"
v-model="ruleForm.expire_time" :picker-options="pickerOptions"></el-date-picker>
</el-form-item>
</div>
</template>
</el-table-column>
<el-table-column fixed prop="goods_name" label="型号" width="180"></el-table-column>
<el-table-column fixed prop="goods_sn" label="供应商内部型号编码" width="180"></el-table-column>
<el-table-column fixed prop="brand_name" label="品牌" width="180"></el-table-column>
<el-table-column prop="batch_sn" label="批次" width="180"></el-table-column>
<el-table-column prop="moq" label="起订量" width="150"></el-table-column>
<el-table-column prop="mpq" label="标准包装量" width="150"></el-table-column>
<el-table-column prop="stock" label="库存数量" width="150">
</el-table-column>
<el-table-column prop="cn_ladder_price" label="国内含税价(¥)" width="140">
<template slot-scope="scope" v-if="scope.row.cn_ladder_price&&scope.row.cn_ladder_price.length>0">
<div class="price-more">
<el-tooltip placement="bottom" effect="light">
<div slot="content">
<div class="boxxrth2021">
<p class="clr" v-for="item in scope.row.cn_ladder_price">
<span class="fl">{{ item.purchases }}+</span>
<span class="fl">&yen;{{ item.price }}</span>
</p>
</div>
</div>
<el-form-item label="备注">
<el-input type="textarea" v-model="ruleForm.remark" placeholder="请输入备注"></el-input>
</el-form-item>
</el-form>
<div class="more-search-btn">查看更多</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="hk_ladder_price" label="香港交货价($)" width="150">
<template slot-scope="scope" v-if="scope.row.hk_ladder_price&&scope.row.hk_ladder_price.length>0">
<div class="price-more">
<el-tooltip placement="bottom" effect="light">
<div slot="content">
<div class="boxxrth2021">
<p class="clr" v-for="item in scope.row.hk_ladder_price">
<span class="fl">{{ item.purchases }}+</span>
<span class="fl">${{ item.price }}</span>
</p>
</div>
</div>
<div class="more-search-btn">查看更多</div>
</el-tooltip>
</div>
</template>
</el-table-column>
<el-table-column prop="cn_delivery_time" label="大陆交期" width="150"></el-table-column>
<el-table-column prop="hk_delivery_time" label="香港交期" width="150">
</el-table-column>
<el-table-column prop="goods_status" label="状态" width="150">
<template slot-scope="scope">
<span v-if="scope.row.goods_status==1" class="f-green">上架</span>
<span v-else-if="scope.row.goods_status==3">下架</span>
</template>
</el-table-column>
</el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total"
@current-change="handleCurrentChange" :current-page="page"></el-pagination>
</template>
<!--历史报价-->
<template v-else>
<el-table :key="1" :data="historyList" border style="width: 100%">
<el-table-column fixed label="操作" width="108" align="center">
<template slot-scope="scope">
<!-- <span class="dcg disabled" @click="handle(scope.$index, scope.row)">确认</span> -->
<span class="dcg " :class="{'disabled':scope.row.disabled}"
@click="handle(scope.$index, scope.row)">确认</span>
</template>
</el-table-column>
<el-table-column fixed prop="goods_name" label="报价型号" width="200"></el-table-column>
<el-table-column fixed prop="brand_name" label="报价品牌" width="200"></el-table-column>
<el-table-column fixed prop="status" label="状态" width="100">
<template slot-scope="scope">
<span v-if="scope.row.status==1" class="f-green">比价中</span>
<span v-else-if="scope.row.status==2" class="f-yellow1">已选中</span>
<span v-else-if="scope.row.status==3">已确认</span>
<span v-else-if="scope.row.status==4" class="f-green">已成单</span>
<span v-else-if="scope.row.status==5" class="f-red1">已关闭</span>
<span v-else-if="scope.row.status==9" class="f-red1">已删除</span>
<span v-else-if="scope.row.status==-1" class="f-red1">已撤销</span>
</template>
</el-table-column>
<el-table-column prop="expire_status_val" label="是否有效" width="100"></el-table-column>
<el-table-column prop="price_origin" label="价格" width="100">
<template slot-scope="scope">
<span>{{ scope.row.price_origin|floatZero }}</span>
</template>
</el-table-column>
<el-table-column prop="currency" label="币种" width="100"></el-table-column>
<el-table-column prop="tax_rate" label="税率" width="100"></el-table-column>
<el-table-column prop="batch" label="批次" width="100"></el-table-column>
<el-table-column prop="delivery_time" label="货期" width="100"></el-table-column>
<el-table-column prop="mpq" label="最小包装数量" width="150"></el-table-column>
<el-table-column prop="moq" label="起订量" width="100"></el-table-column>
<el-table-column prop="price_other" label="其他费用" width="200">
<template slot-scope="scope">
<span>{{ scope.row.price_other|floatZero }}</span>
</template>
</el-table-column>
<el-table-column prop="expire_time" label="报价有效期" width="200"></el-table-column>
<el-table-column prop="remark" label="备注" width="200"></el-table-column>
<el-table-column prop="create_time" label="最近报价时间" width="200"></el-table-column>
<el-table-column prop="inquiry_goods_name" label="型号" width="200"></el-table-column>
<el-table-column prop="inquiry_brand_name" label="品牌" width="200"></el-table-column>
<el-table-column prop="inquiry_sn" label="询价单号" width="200"></el-table-column>
</el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total"
@current-change="handleCurrentChange" :current-page="page"></el-pagination>
</template>
</div>
</div>
<!--弹窗-->
<el-dialog :title="title" :close-on-click-modal="false" :visible.sync="dialogVisible" width="656px" class="xx">
<div class="dialog-form">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<div class="row bothSide zdypop">
<div class="box">
<el-form-item label="报价型号" prop="goods_name">
<el-input v-model="ruleForm.goods_name" :disabled="isModify" placeholder="请输入型号" :value="ruleForm.goods_name" disabled></el-input>
</el-form-item>
<el-form-item label="报价数量" prop="quote_number">
<el-input v-model="ruleForm.quote_number" placeholder="请输入数量" :value="ruleForm.quote_number"></el-input>
</el-form-item>
<el-form-item label="币种" prop="currency">
<el-select v-model="ruleForm.currency" @change="currentChange">
<el-option label="RMB" value="1"></el-option>
<el-option label="USD" value="2"></el-option>
</el-select>
</el-form-item>
<el-form-item label="批次" prop="batch">
<el-input v-model="ruleForm.batch" placeholder="请输入D/C" :value="ruleForm.batch"></el-input>
</el-form-item>
<el-form-item label="最小包装数量">
<el-input v-model="ruleForm.mpq" placeholder="请输入MPQ" :value="ruleForm.mpq"></el-input>
</el-form-item>
<el-form-item label="其他费用" class="updatebox">
<el-input placeholder="" onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')" v-model="ruleForm.price_other" placeholder="请输入其他费用" :value="ruleForm.price_other"></el-input>
</el-form-item>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="submitForm('ruleForm')">确 定</el-button>
<div class="box">
<el-form-item label="报价品牌" prop="brand_name">
<el-input v-model="ruleForm.brand_name" placeholder="请输入品牌" :value="ruleForm.brand_name" disabled></el-input>
</el-form-item>
<el-form-item label="价格" prop="price_origin">
<el-input v-model="ruleForm.price_origin" placeholder="请输入价格" :value="ruleForm.price_origin"></el-input>
</el-form-item>
<el-form-item label="税率">
<el-input disabled v-model="ruleForm.tax_rate" style="width: 100px" :value="ruleForm.tax_rate">
</el-input>
</el-form-item>
<el-form-item label="货期" prop="delivery_time_val" class="updatebox">
<el-input placeholder="" v-model="ruleForm.delivery_time_val" :value="ruleForm.delivery_time" onkeyup="this.value = this.value.replace(/[^\d]/g,'');" @keyup.native="keyup(ruleForm.delivery_time_val)"></el-input>
<div class="selectdw">
<el-select v-model="ruleForm.delivery_time_unit" placeholder="天" class="placehoload" @change="unitChange">
<el-option label="天" value="天"></el-option>
<el-option label="周" value="周"></el-option>
</el-select>
</div>
</el-form-item>
<el-form-item label="起订量">
<el-input v-model="ruleForm.moq" placeholder="请输入起订量" :value="ruleForm.moq"></el-input>
</el-form-item>
<el-form-item label="报价有效期" prop="expire_time">
<el-date-picker type="date" placeholder="选择报价有效期" value-format="yyyy-MM-dd" v-model="ruleForm.expire_time" :picker-options="pickerOptions"></el-date-picker>
</el-form-item>
</div>
</el-dialog>
<Menu/>
</section>
</div>
<el-form-item label="备注">
<el-input type="textarea" v-model="ruleForm.remark" placeholder="请输入备注"></el-input>
</el-form-item>
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="submitForm('ruleForm')">确 定</el-button>
</div>
</el-dialog>
<Menu/>
</section>
</template>
<script>
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {
dateTimeFormate
} from "../../filters/formate.js";
import {
Form,
FormItem,
Select,
Option,
Input,
DatePicker,
Button,
Dropdown,
DropdownMenu,
DropdownItem,
Table,
TableColumn,
Message,
MessageBox,
Dialog,
Pagination,
Autocomplete,
// Loading,
Tooltip
} from 'element-ui'
Vue.prototype.$message = Message
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Autocomplete).use(Tooltip)
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination)
export default {
name: "InquireDetail",
data() {
return {
pickerOptions: {
disabledDate(time) {
return time.getTime() < (Date.now() - (24 * 60 * 60 * 1000));
}
},
currentDataId: 0,
active: 0,
total: 0,
limit: 10,
page: 1,
multipleSelection: [],
quote_info: {},
inquiry_info: {},
quote_list: [],
title: '新增',
isModify: false,
tableData: [],
historyList: [],
submitState: 0,
ruleForm: {
inquiry_id: '',
inquiry_sn: '',
inquiry_items_id: '',
quote_id: '',
goods_name: '',
quote_number: '',
currency: '1',
batch: '',
mpq: '',
price_other: '',
unit: '',
brand: '',
brand_s: '',
price_origin: '',
tax_rate: '13%',
delivery_time: '',
delivery_time_val: '',
delivery_time_unit: '天',
moq: '',
expire_time: '',
remark: ''
},
rules: {
goods_name: [{
required: true,
message: '请输入报价型号',
trigger: 'blur'
}],
brand_s: [{
required: true,
message: '请选择品牌',
trigger: ['blur', 'change']
}],
quote_number: [{
required: true,
message: '请输入报价数量',
trigger: 'blur'
}],
currency: [{
required: true,
message: '请选择币种',
trigger: 'blur'
}],
batch: [{
required: true,
message: '请输入批次',
trigger: 'blur'
}],
price_origin: [{
required: true,
message: '请输入价格',
trigger: 'blur'
},],
delivery_time_val: [{
required: true,
message: '请输入货期',
trigger: 'blur'
}],
expire_time: [{
required: true,
message: '请输入报价有效期',
trigger: 'blur'
}]
},
dialogVisible: false,
brandList: [],
textArr: ['匹配库存', '历史报价']
};
},
created() {
this.getData();
},
watch: {
$route(to, from) {
if (to.path == from.path) {
this.getData()
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {dateTimeFormate} from "../../filters/formate.js";
import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Select, Table, TableColumn, Tooltip} from 'element-ui'
Vue.prototype.$message = Message
Vue.use(Button).use(Form).use(Select).use(Option).use(Input).use(FormItem).use(Dialog).use(Autocomplete).use(Tooltip)
Vue.use(DatePicker).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(TableColumn).use(Table).use(Pagination)
export default {
name: "InquireDetail",
data() {
return {
pickerOptions: {
disabledDate(time) {
return time.getTime() < (Date.now() - (24 * 60 * 60 * 1000));
}
},
currentDataId: 0,
active: 0,
total: 0,
limit: 10,
page: 1,
multipleSelection: [],
quote_info: {},
inquiry_info: {},
quote_list: [],
title: '新增',
isModify: false,
tableData: [],
historyList: [],
submitState: 0,
ruleForm: {
inquiry_id: '',
inquiry_sn: '',
inquiry_items_id: '',
quote_id: '',
goods_name: '',
quote_number: '',
currency: '1',
batch: '',
mpq: '',
price_other: '',
unit: '',
brand_name: '',
price_origin: '',
tax_rate: '13%',
delivery_time: '',
delivery_time_val: '',
delivery_time_unit: '天',
moq: '',
expire_time: '',
remark: ''
},
rules: {
goods_name: [{
required: true,
message: '请输入报价型号',
trigger: 'blur'
}],
brand_s: [{
required: true,
message: '请选择品牌',
trigger: ['blur', 'change']
}],
quote_number: [{
required: true,
message: '请输入报价数量',
trigger: 'blur'
}],
currency: [{
required: true,
message: '请选择币种',
trigger: 'blur'
}],
batch: [{
required: true,
message: '请输入批次',
trigger: 'blur'
}],
price_origin: [{
required: true,
message: '请输入价格',
trigger: 'blur'
},],
delivery_time_val: [{
required: true,
message: '请输入货期',
trigger: 'blur'
}],
expire_time: [{
required: true,
message: '请输入报价有效期',
trigger: 'blur'
}]
},
dialogVisible: false,
brandList: [],
textArr: ['匹配库存', '历史报价']
};
},
created() {
this.getData();
},
watch: {
$route(to, from) {
if (to.path == from.path) {
this.getData()
}
}
},
methods: {
getData() {
this.$http('get', "/api/inquiry/detail", {
inquiry_item_id: this.$route.query.id
}).then(res => {
if (res.code === 0) {
this.inquiry_info = res.data.inquiry_info;
this.quote_list = res.data.quote_list;
this.ruleForm.inquiry_sn = res.data.inquiry_info.inquiry_sn;
this.ruleForm.inquiry_id = res.data.inquiry_info.inquiry_id;
this.ruleForm.inquiry_items_id = res.data.inquiry_info.id;
this.getSkulist();
} else {
this.$message(res.msg);
}
});
},
methods: {
getData() {
this.$http('get', "/api/inquiry/detail", {
inquiry_item_id: this.$route.query.id
}).then(res => {
if (res.code === 0) {
this.inquiry_info = res.data.inquiry_info;
this.quote_list = res.data.quote_list;
this.ruleForm.inquiry_sn = res.data.inquiry_info.inquiry_sn;
this.ruleForm.inquiry_id = res.data.inquiry_info.inquiry_id;
this.ruleForm.inquiry_items_id = res.data.inquiry_info.id;
this.getSkulist();
} else {
this.$message(res.msg);
}
});
},
getSkulist() {
console.log('库存匹配')
this.$http('get', "/api/sku/list", {
brand_id: this.inquiry_info.brand_id,
goods_name: this.inquiry_info.goods_name,
'goods_status/condition': 1,
goods_status: 1,
}).then(res => {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = Number(res.data.count) || 0;
var arr_ = this.tableData,
id_arr = []
for (var i = 0; i < arr_.length; i++) {
id_arr.push(arr_[i].goods_id)
}
this.checkBind(id_arr.join(","))
} else {
this.$message(res.msg);
getSkulist() {
this.$http('get', "/api/sku/list", {
brand_id: this.inquiry_info.brand_id,
goods_name: this.inquiry_info.goods_name,
'goods_status/condition': 1,
goods_status: 1,
}).then(res => {
if (res.code === 0) {
this.tableData = res.data.list || [];
this.total = Number(res.data.count) || 0;
var arr_ = this.tableData, id_arr = [];
for (var i = 0; i < arr_.length; i++) {
id_arr.push(arr_[i].goods_id)
}
})
},
float(value) {
let num = Number(value)
if (num) {
return num
this.checkBind(id_arr.join(","))
} else {
return 0
this.$message(res.msg);
}
},
checkBind(ids) {
this.$http('get', "/api/quote/checkpinlist", {
inquiry_items_id: this.$route.query.id,
pin_type: (this.active == 1 ? 1 : 2),
pin_obj_ids: ids
}).then(res => {
if (res.code === 0) {
if (res.data && res.data.bind_ids && res.data.bind_ids.length > 0) {
var arr_ = this.active == 1 ? JSON.parse(JSON.stringify(this.historyList)) : JSON.parse(JSON
.stringify(this.tableData))
for (var i = 0; i < arr_.length; i++) {
var str_ = this.active == 1 ? String(arr_[i].id) : String(arr_[i].goods_id);
if (res.data.bind_ids.indexOf(str_) != -1) {
if (this.active == 1) {
arr_[i].disabled = true
this.historyList = arr_
} else {
arr_[i].disabled = true
this.tableData = arr_
}
})
},
float(value) {
let num = Number(value)
if (num) {
return num
} else {
return 0
}
},
checkBind(ids) {
this.$http('get', "/api/quote/checkpinlist", {
inquiry_items_id: this.$route.query.id,
pin_type: (this.active == 1 ? 1 : 2),
pin_obj_ids: ids
}).then(res => {
if (res.code === 0) {
if (res.data && res.data.bind_ids && res.data.bind_ids.length > 0) {
var arr_ = this.active == 1 ? JSON.parse(JSON.stringify(this.historyList)) : JSON.parse(JSON.stringify(this.tableData))
for (var i = 0; i < arr_.length; i++) {
var str_ = this.active == 1 ? String(arr_[i].id) : String(arr_[i].goods_id);
if (res.data.bind_ids.indexOf(str_) != -1) {
if (this.active == 1) {
arr_[i].disabled = true
this.historyList = arr_
} else {
arr_[i].disabled = true
this.tableData = arr_
}
} else {
if (this.active == 1) {
arr_[i].disabled = false
this.historyList = arr_
} else {
if (this.active == 1) {
arr_[i].disabled = false
this.historyList = arr_
} else {
arr_[i].disabled = false
this.tableData = arr_
}
arr_[i].disabled = false
this.tableData = arr_
}
}
}
}
})
},
getHistory() {
console.log('历史报价')
this.$http('get', "/api/quote/history", {
page: this.page,
limit: this.limit,
goods_name: this.inquiry_info.goods_name,
brand_name: this.inquiry_info.brand_name,
inquiry_items_id: this.$route.query.id
}).then(res => {
if (res.code === 0) {
this.total = res.data.total;
this.historyList = res.data.list || [];
var arr_ = this.historyList,
}
})
},
getHistory() {
console.log('历史报价')
this.$http('get', "/api/quote/history", {
page: this.page,
limit: this.limit,
goods_name: this.inquiry_info.goods_name,
brand_name: this.inquiry_info.brand_name,
inquiry_items_id: this.$route.query.id
}).then(res => {
if (res.code === 0) {
this.total = res.data.total;
this.historyList = res.data.list || [];
var arr_ = this.historyList,
id_arr = []
for (var i = 0; i < arr_.length; i++) {
id_arr.push(arr_[i].id)
}
this.checkBind(id_arr.join(","))
} else {
this.$message(res.msg);
for (var i = 0; i < arr_.length; i++) {
id_arr.push(arr_[i].id)
}
})
},
handleCurrentChange(val) {
this.page = val;
this.getHistory();
},
onSubmit() {
this.page = 1;
this.getData();
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
tab(index) {
this.active = index;
console.log(this.active)
this.page = 1;
this.$forceUpdate();
if (index == 1) {
this.getHistory();
this.checkBind(id_arr.join(","))
} else {
this.getSkulist();
}
},
dateFormat(row, column) {
let date = row.create_time;
return dateTimeFormate(date);
},
keyup(val) {
if (this.ruleForm.delivery_time_unit == '天') {
if (val >= 6) {
this.ruleForm.delivery_time_val = 6;
}
this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;
} else if (this.ruleForm.delivery_time_unit == '周') {
this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;
this.$message(res.msg);
}
})
},
handleCurrentChange(val) {
this.page = val;
this.getHistory();
},
onSubmit() {
this.page = 1;
this.getData();
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
tab(index) {
this.active = index;
console.log(this.active)
this.page = 1;
this.$forceUpdate();
},
unitChange(val) {
if (val == '周') {
this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;
} else {
this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;
if (index == 1) {
this.getHistory();
} else {
this.getSkulist();
}
},
dateFormat(row, column) {
let date = row.create_time;
return dateTimeFormate(date);
},
keyup(val) {
if (this.ruleForm.delivery_time_unit == '天') {
if (val >= 6) {
this.ruleForm.delivery_time_val = 6;
}
},
currentChange(val) {
if (val == 1) {
this.ruleForm.tax_rate = '13%';
} else if (val == 2) {
this.ruleForm.tax_rate = '0%';
this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;
} else if (this.ruleForm.delivery_time_unit == '周') {
this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;
}
},
unitChange(val) {
if (val == '周') {
this.ruleForm.delivery_time = this.ruleForm.delivery_time_val * 7;
} else {
this.ruleForm.delivery_time = this.ruleForm.delivery_time_val;
}
},
currentChange(val) {
if (val == 1) {
this.ruleForm.tax_rate = '13%';
} else if (val == 2) {
this.ruleForm.tax_rate = '0%';
}
},
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (this.submitState) {
return
}
},
submitForm(formName) {
this.$refs[formName].validate((valid) => {
if (this.submitState) {
return
if (valid) {
this.submitState = 1;
let submitData_ = JSON.parse(JSON.stringify(this.ruleForm))
if (submitData_.tax_rate == '13%') {
submitData_.tax_rate = 0.13
} else {
submitData_.tax_rate = 0
}
if (valid) {
// let loadingInstance = Loading.service({
// background: 'rgba(0, 0, 0, 0)'
// });
this.submitState = 1;
let submitData_ = JSON.parse(JSON.stringify(this.ruleForm))
if (submitData_.tax_rate == '13%') {
submitData_.tax_rate = 0.13
} else {
submitData_.tax_rate = 0
}
this.$http('post', "/api/quote/save", submitData_).then(res => {
if (res.code == 0) {
//this.$message('操作成功');
this.$http('post', "/api/quote/pin", {
inquiry_items_id: this.ruleForm.inquiry_items_id,
pin_type: (this.active == 1 ? 1 : 2),
pin_obj_id: this.currentDataId
}).then(res => {
if (res.code == 0) {
} else {
// this.$message(res.msg);
}
this.$http('post', "/api/quote/save", submitData_).then(res => {
if (res.code == 0) {
this.$http('post', "/api/quote/pin", {
inquiry_items_id: this.ruleForm.inquiry_items_id,
pin_type: (this.active == 1 ? 1 : 2),
pin_obj_id: this.currentDataId
}).then(res => {
if (res.code == 0) {
this.$message('操作成功');
this.getData()
if (this.active == 1) {
//历史报价
//this.getHistory()
} else {
//库存匹配
this.getSkulist()
}
this.dialogVisible = false
// setTimeout(() => {
// window.location.reload();
// }, 2000)
// loadingInstance.close();
this.submitState = 0;
})
} else {
this.$message(res.msg);
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
if (this.active == 1) {
//历史报价
//this.getHistory()
} else {
//库存匹配
this.getSkulist()
}
this.dialogVisible = false
this.submitState = 0;
//loadingInstance.close();
}
})
}).catch(err => {
} else {
this.$message(res.msg);
this.submitState = 0;
//loadingInstance.close();
});
} else {
console.log(this.ruleForm.delivery_time);
return false;
}
});
},
querySearchAsync(queryString, cb) {
this.$http('get', "/api/search/getbrand", {
brand_name: this.ruleForm.brand,
type: 2
}).then(res => {
if (res.code == 0) {
var arrlist_ = res.data || [];
this.brandList = [];
//this.ruleForm.brand = "";
for (var i = 0; i < arrlist_.length; i++) {
this.brandList.push({
value: arrlist_[i]['brand_name'],
brand_id: arrlist_[i]['brand_id']
})
}
cb(this.brandList);
}
})
},
handleSelectBrandName(item) {
let brand_ss = [{
brand_id: '',
brand_name: ''
}];
brand_ss[0].brand_id = item.brand_id;
brand_ss[0].brand_name = item.value;
this.ruleForm.brand_s = JSON.stringify(brand_ss);
},
added() {
this.title = '新增';
this.dialogVisible = true;
this.isModify = false;
this.ruleForm.brand = '';
this.ruleForm.tax_rate = '13%';
this.ruleForm.moq = '';
this.ruleForm.mpq = '';
this.ruleForm.price_other = '';
this.ruleForm.quote_id = '';
this.$nextTick(() => {
this.$refs['ruleForm'].resetFields();
})
},
modify() {
var arr = [];
if (this.multipleSelection.length == 0) {
this.$message("请至少选择一条询价信息");
return;
}).catch(err => {
this.submitState = 0;
});
} else {
console.log(this.ruleForm.delivery_time);
return false;
}
});
},
added() {
this.title = '新增';
this.dialogVisible = true;
this.isModify = false;
this.ruleForm.brand = '';
this.ruleForm.tax_rate = '13%';
this.ruleForm.moq = '';
this.ruleForm.mpq = '';
this.ruleForm.price_other = '';
this.ruleForm.quote_id = '';
this.ruleForm.goods_name = this.inquiry_info.goods_name; //赋值型号
this.ruleForm.brand_name = this.inquiry_info.brand_name; //赋值品牌
this.$nextTick(() => {
this.$refs['ruleForm'].resetFields();
})
},
modify() {
var arr = [];
if (this.multipleSelection.length == 0) {
this.$message("请至少选择一条询价信息");
return;
}
if (this.multipleSelection.length > 1) {
this.$message("请选择一条询价信息");
return;
}
if (this.multipleSelection.length > 1) {
this.$message("请选择一条询价信息");
return;
if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 3) {
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['id'])
}
this.title = '修改';
this.dialogVisible = true;
this.ruleForm.quote_id = arr.join(",");
this.isModify = true;
this.$http('get', "/api/quote/getinfo", {
id: arr.join(",")
}).then(res => {
if (res.code === 0) {
res.data.quote_info.price_other = this.float(res.data.quote_info.price_other)
res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin)
this.ruleForm.goods_name = res.data.quote_info.goods_name;
this.ruleForm.quote_number = res.data.quote_info.quote_number;
this.ruleForm.currency = res.data.quote_info.currency.toString();
this.ruleForm.batch = res.data.quote_info.batch;
this.ruleForm.mpq = res.data.quote_info.mpq;
this.ruleForm.price_other = res.data.quote_info.price_other;
this.ruleForm.unit = res.data.quote_info.unit;
this.ruleForm.brand = res.data.quote_info.brand_name;
this.ruleForm.brand_s = res.data.quote_info.brand_name;
this.ruleForm.price_origin = res.data.quote_info.price_origin;
console.log(res.data.quote_info.tax_rate)
this.ruleForm.tax_rate = Number(res.data.quote_info.tax_rate) * 100 + '%';
this.ruleForm.delivery_time = res.data.quote_info.delivery_time;
this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;
this.ruleForm.delivery_time_unit = '天'
this.ruleForm.moq = res.data.quote_info.moq;
this.ruleForm.remark = res.data.quote_info.remark;
if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {
this.ruleForm.expire_time = '';
} else {
this.ruleForm.expire_time = res.data.quote_info.expire_time;
}
if (this.multipleSelection[0].status == 1 || this.multipleSelection[0].status == 3) {
let brand_ss = [{
brand_id: '',
brand_name: ''
}];
brand_ss[0].brand_id = res.data.quote_info.brand_id;
brand_ss[0].brand_name = res.data.quote_info.brand_name;
this.ruleForm.brand_s = JSON.stringify(brand_ss);
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['id'])
} else {
this.$message(res.msg);
}
})
this.title = '修改';
this.dialogVisible = true;
this.ruleForm.quote_id = arr.join(",");
this.isModify = true;
this.$http('get', "/api/quote/getinfo", {
id: arr.join(",")
}).then(res => {
if (res.code === 0) {
res.data.quote_info.price_other = this.float(res.data.quote_info.price_other)
res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin)
this.ruleForm.goods_name = res.data.quote_info.goods_name;
this.ruleForm.quote_number = res.data.quote_info.quote_number;
this.ruleForm.currency = res.data.quote_info.currency.toString();
this.ruleForm.batch = res.data.quote_info.batch;
this.ruleForm.mpq = res.data.quote_info.mpq;
this.ruleForm.price_other = res.data.quote_info.price_other;
this.ruleForm.unit = res.data.quote_info.unit;
this.ruleForm.brand = res.data.quote_info.brand_name;
this.ruleForm.brand_s = res.data.quote_info.brand_name;
this.ruleForm.price_origin = res.data.quote_info.price_origin;
console.log(res.data.quote_info.tax_rate)
this.ruleForm.tax_rate = Number(res.data.quote_info.tax_rate) * 100 + '%';
this.ruleForm.delivery_time = res.data.quote_info.delivery_time;
this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;
this.ruleForm.delivery_time_unit = '天'
this.ruleForm.moq = res.data.quote_info.moq;
this.ruleForm.remark = res.data.quote_info.remark;
if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {
this.ruleForm.expire_time = '';
} else {
this.ruleForm.expire_time = res.data.quote_info.expire_time;
}
} else {
this.$message("该报价不可修改");
return;
}
let brand_ss = [{
brand_id: '',
brand_name: ''
}];
brand_ss[0].brand_id = res.data.quote_info.brand_id;
brand_ss[0].brand_name = res.data.quote_info.brand_name;
this.ruleForm.brand_s = JSON.stringify(brand_ss);
} else {
this.$message(res.msg);
}
})
},
del() {
var arr = [];
if (this.multipleSelection.length == 0) {
this.$message("请至少选择一条数据");
return;
}
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['id'])
}
} else {
this.$message("该报价不可修改");
return;
}
MessageBox.confirm('确认到删除当前勾选数据吗?', {
type: 'error'
}).then(() => {
this.$http('post', "/api/quote/delete", {
ids: arr.join(",")
}).then(res => {
if (res.code === 0) {
this.$message("删除成功");
this.getData();
} else {
this.$message(res.msg);
}
})
}).catch(() => {
})
},
handle(index, row) {
console.log(row)
if (row.disabled) {
this.$message('已绑定,不能重复操作')
return
}
},
del() {
var arr = [];
if (this.multipleSelection.length == 0) {
this.$message("请至少选择一条数据");
return;
}
if (this.active == 1) {
this.currentDataId = row.id
} else {
this.currentDataId = row.goods_id
}
for (var i = 0; i < this.multipleSelection.length; i++) {
arr.push(this.multipleSelection[i]['id'])
}
this.title = this.active == 1 ? '确认-历史报价' : '确认-匹配库存';
this.dialogVisible = true;
this.ruleForm.quote_id = '';
this.isModify = true;
if (this.active != 1) {
//匹配库存 不请求接口
MessageBox.confirm('确认到删除当前勾选数据吗?', {
type: 'error'
}).then(() => {
this.$http('post', "/api/quote/delete", {
ids: arr.join(",")
}).then(res => {
if (res.code === 0) {
this.$message("删除成功");
this.getData();
} else {
this.$message(res.msg);
}
})
}).catch(() => {
this.$http('get', "/api/quote/gettransinfoforsku", {
goods_id: row.goods_id,
inquiry_items_id: this.$route.query.id
}).then(res => {
if (res.code === 0) {
})
},
handle(index, row) {
console.log(row)
if (row.disabled) {
this.$message('已绑定,不能重复操作')
return
}
var datap_ = res.data.trans_to_quote_info;
datap_.price_origin = this.float(datap_.price_origin)
if (this.active == 1) {
this.currentDataId = row.id
} else {
this.currentDataId = row.goods_id
}
this.title = this.active == 1 ? '确认-历史报价' : '确认-匹配库存';
this.dialogVisible = true;
this.ruleForm.quote_id = '';
this.isModify = true;
if (this.active != 1) {
//匹配库存 不请求接口
this.$http('get', "/api/quote/gettransinfoforsku", {
goods_id: row.goods_id,
inquiry_items_id: this.$route.query.id
}).then(res => {
if (res.code === 0) {
var datap_ = res.data.trans_to_quote_info;
datap_.price_origin = this.float(datap_.price_origin)
this.ruleForm.goods_name = datap_.goods_name;
this.ruleForm.batch = datap_.batch;
this.ruleForm.price_origin = datap_.price_origin;
this.ruleForm.brand = datap_.brand_name;
let brand_ssaa = [{
brand_id: datap_.brand_id,
brand_name: datap_.brand_name
}]
this.ruleForm.brand_s = JSON.stringify(brand_ssaa);
this.ruleForm.moq = datap_.moq;
this.ruleForm.mpq = datap_.mpq;
this.ruleForm.quote_number = datap_.quote_number;
this.ruleForm.goods_name = datap_.goods_name;
this.ruleForm.batch = datap_.batch;
this.ruleForm.price_origin = datap_.price_origin;
this.ruleForm.brand = datap_.brand_name;
let brand_ssaa = [{
brand_id: datap_.brand_id,
brand_name: datap_.brand_name
}]
this.ruleForm.brand_s = JSON.stringify(brand_ssaa);
this.ruleForm.moq = datap_.moq;
this.ruleForm.mpq = datap_.mpq;
this.ruleForm.quote_number = datap_.quote_number;
} else {
this.$message(res.msg);
}
})
} else {
this.$http('get', "/api/quote/getinfo", {
id: row.id
}).then(res => {
if (res.code === 0) {
res.data.quote_info.price_other = this.float(res.data.quote_info.price_other)
res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin)
this.ruleForm.goods_name = res.data.quote_info.goods_name;
this.ruleForm.quote_number = res.data.quote_info.quote_number;
this.ruleForm.currency = res.data.quote_info.currency.toString();
this.ruleForm.batch = res.data.quote_info.batch;
this.ruleForm.mpq = res.data.quote_info.mpq;
this.ruleForm.price_other = res.data.quote_info.price_other;
this.ruleForm.unit = res.data.quote_info.unit;
this.ruleForm.brand = res.data.quote_info.brand_name;
this.ruleForm.brand_s = res.data.quote_info.brand_name;
this.ruleForm.price_origin = res.data.quote_info.price_origin;
this.ruleForm.tax_rate = res.data.quote_info.tax_rate;
this.ruleForm.delivery_time = res.data.quote_info.delivery_time;
this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;
this.ruleForm.delivery_time_unit = '天';
this.ruleForm.moq = res.data.quote_info.moq;
this.ruleForm.remark = res.data.quote_info.remark;
if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {
this.ruleForm.expire_time = '';
} else {
this.$message(res.msg);
this.ruleForm.expire_time = res.data.quote_info.expire_time;
}
})
} else {
this.$http('get', "/api/quote/getinfo", {
id: row.id
}).then(res => {
if (res.code === 0) {
res.data.quote_info.price_other = this.float(res.data.quote_info.price_other)
res.data.quote_info.price_origin = this.float(res.data.quote_info.price_origin)
this.ruleForm.goods_name = res.data.quote_info.goods_name;
this.ruleForm.quote_number = res.data.quote_info.quote_number;
this.ruleForm.currency = res.data.quote_info.currency.toString();
this.ruleForm.batch = res.data.quote_info.batch;
this.ruleForm.mpq = res.data.quote_info.mpq;
this.ruleForm.price_other = res.data.quote_info.price_other;
this.ruleForm.unit = res.data.quote_info.unit;
this.ruleForm.brand = res.data.quote_info.brand_name;
this.ruleForm.brand_s = res.data.quote_info.brand_name;
this.ruleForm.price_origin = res.data.quote_info.price_origin;
this.ruleForm.tax_rate = res.data.quote_info.tax_rate;
this.ruleForm.delivery_time = res.data.quote_info.delivery_time;
this.ruleForm.delivery_time_val = this.ruleForm.delivery_time;
this.ruleForm.delivery_time_unit = '天';
this.ruleForm.moq = res.data.quote_info.moq;
this.ruleForm.remark = res.data.quote_info.remark;
if (res.data.quote_info.expire_time == '0000-00-00 00:00:00') {
this.ruleForm.expire_time = '';
} else {
this.ruleForm.expire_time = res.data.quote_info.expire_time;
}
let brand_ss = [{
brand_id: '',
brand_name: ''
}];
brand_ss[0].brand_id = res.data.quote_info.brand_id;
brand_ss[0].brand_name = res.data.quote_info.brand_name;
this.ruleForm.brand_s = JSON.stringify(brand_ss);
} else {
this.$message(res.msg);
}
})
}
let brand_ss = [{
brand_id: '',
brand_name: ''
}];
brand_ss[0].brand_id = res.data.quote_info.brand_id;
brand_ss[0].brand_name = res.data.quote_info.brand_name;
this.ruleForm.brand_s = JSON.stringify(brand_ss);
} else {
this.$message(res.msg);
}
})
}
},
components: {
Menu
}
};
},
components: {
Menu
}
};
</script>
<style scoped>
@import "../../assets/css/list/inquireDetail.min.css";
@import "../../assets/css/list/inquireDetail.min.css";
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment