Commit 00945683 by LJM

js

parent 2bb18ad3
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<el-table-column prop="delivery_time" label="交货日期" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="delivery_time" label="交货日期" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="quote_num" label="报价数" width="80" :show-overflow-tooltip="true" align="center"> <el-table-column prop="quote_num" label="报价数" width="80" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span style="color: #1969F9;">{{scope.row.quote_num}}</span> <span style="color: #1969F9;">{{ scope.row.quote_num }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="i_status" label="状态" width="100" :show-overflow-tooltip="true" align="center"> <el-table-column prop="i_status" label="状态" width="100" :show-overflow-tooltip="true" align="center">
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<!--未成单--> <!--未成单-->
<span v-if="scope.row.is_purchased == 0">{{ scope.row.is_purchased_val }}</span> <span v-if="scope.row.is_purchased == 0">{{ scope.row.is_purchased_val }}</span>
<!--成单--> <!--成单-->
<a v-if="scope.row.is_purchased == 1" class="alink" :href="'/#/orderTrackGoods?inquiry_sn='+scope.row.inquiry_sn">{{ scope.row.is_purchased_val }}</a> <a v-if="scope.row.is_purchased == 1" class="alink" :href="'/#/orderTrackGoods?inquiry_item_id='+scope.row.id">{{ scope.row.is_purchased_val }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="customer_tag" label="客户性质" width="80" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="customer_tag" label="客户性质" width="80" :show-overflow-tooltip="true" align="center"></el-table-column>
...@@ -160,7 +160,17 @@ ...@@ -160,7 +160,17 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="expire_time" label="报价有效期" width="160" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="expire_time" label="报价有效期" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="buyer_info" label="猎芯采购员" width="100" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="buyer_info" label="猎芯采购员" width="100" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope">
<el-popover placement="bottom" title="采购员联系方式" width="200" trigger="hover">
<div class="contact-information">
<p class="row verCenter"><em>电话:</em><span>{{ scope.row.buyer_info.mobile }}</span></p>
<p class="row verCenter"><em>邮箱:</em><span>{{ scope.row.buyer_info.email }}</span></p>
</div>
<a slot="reference" href="javascript:;" class="alink">{{ scope.row.buyer_info.buyer_name }}</a>
</el-popover>
</template>
</el-table-column>
<el-table-column prop="goods_name" label="报价型号" width="150" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="goods_name" label="报价型号" width="150" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="brand_name" label="品牌" width="100" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="brand_name" label="品牌" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="status" label="状态" width="100" :show-overflow-tooltip="true" align="center"> <el-table-column prop="status" label="状态" width="100" :show-overflow-tooltip="true" align="center">
......
...@@ -176,6 +176,7 @@ export default { ...@@ -176,6 +176,7 @@ export default {
dialogVisible: false, dialogVisible: false,
logs: [], logs: [],
create_time_val: '', create_time_val: '',
inquiry_item_id: '',//询价id
formInline: { formInline: {
goods_name: '', goods_name: '',
brand_name: '', brand_name: '',
...@@ -194,6 +195,7 @@ export default { ...@@ -194,6 +195,7 @@ export default {
}, },
created() { created() {
let inquiry_sn = this.$route.query.inquiry_sn; let inquiry_sn = this.$route.query.inquiry_sn;
this.inquiry_item_id = this.$route.query.inquiry_item_id || '';
if (inquiry_sn) { if (inquiry_sn) {
this.formInline.inquiry_sn = inquiry_sn; this.formInline.inquiry_sn = inquiry_sn;
} }
...@@ -208,7 +210,7 @@ export default { ...@@ -208,7 +210,7 @@ export default {
} else { } else {
this.formInline.create_time = ''; this.formInline.create_time = '';
} }
var params = Object.assign({}, {page: this.page}, {limit: this.limit}, this.formInline) var params = Object.assign({}, {page: this.page}, {limit: this.limit}, this.formInline, {inquiry_item_id: this.inquiry_item_id})
this.$http('post', "/api/purchase/getPurchaseList", params).then(res => { this.$http('post', "/api/purchase/getPurchaseList", params).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.tableData = res.data.list || []; this.tableData = res.data.list || [];
......
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