Commit 8b015be6 by LJM

订单追踪/已采购订单:查看订单明细会保留之前查看的明细

parent 9a7397a2
...@@ -100,8 +100,7 @@ ...@@ -100,8 +100,7 @@
<el-table :key="2" :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange"> <el-table :key="2" :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column fixed label="操作" width="108" align="center"> <el-table-column fixed label="操作" width="108" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="dcg" :class="{'disabled':scope.row.disabled}" <span class="dcg" :class="{'disabled':scope.row.disabled}" @click="handle(scope.$index, scope.row)">确认</span>
@click="handle(scope.$index, scope.row)">确认</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column fixed prop="goods_name" label="型号" width="180"></el-table-column> <el-table-column fixed prop="goods_name" label="型号" width="180"></el-table-column>
...@@ -156,8 +155,7 @@ ...@@ -156,8 +155,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" <el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
@current-change="handleCurrentChange" :current-page="page"></el-pagination>
</template> </template>
<!--历史报价--> <!--历史报价-->
<template v-else> <template v-else>
...@@ -577,7 +575,10 @@ export default { ...@@ -577,7 +575,10 @@ export default {
} }
this.checkBind(id_arr.join(",")) this.checkBind(id_arr.join(","))
} else { } else {
this.$message(res.msg); this.$message({
message: res.msg,
type: 'warning'
});
} }
}) })
}, },
...@@ -868,15 +869,13 @@ export default { ...@@ -868,15 +869,13 @@ export default {
message: '已绑定,不能重复操作', message: '已绑定,不能重复操作',
type: 'warning' type: 'warning'
}); });
return return;
} }
if (this.active == 1) { if (this.active == 1) {
this.currentDataId = row.id this.currentDataId = row.id
} else { } else {
this.currentDataId = row.goods_id this.currentDataId = row.goods_id
} }
this.title = this.active == 1 ? '确认-历史报价' : '确认-匹配库存'; this.title = this.active == 1 ? '确认-历史报价' : '确认-匹配库存';
this.dialogVisible = true; this.dialogVisible = true;
this.ruleForm.quote_id = ''; this.ruleForm.quote_id = '';
...@@ -898,7 +897,10 @@ export default { ...@@ -898,7 +897,10 @@ export default {
this.ruleForm.mpq = datap_.mpq; this.ruleForm.mpq = datap_.mpq;
this.ruleForm.quote_number = datap_.quote_number; this.ruleForm.quote_number = datap_.quote_number;
} else { } else {
this.$message(res.msg); this.$message({
message: res.msg,
type: 'warning'
});
} }
}) })
......
...@@ -60,11 +60,19 @@ export default { ...@@ -60,11 +60,19 @@ export default {
data() { data() {
return { return {
infos: {}, infos: {},
tableData: "" tableData: "",
purchase_id: ""
}; };
}, },
created() { created() {
this.getData(); this.getData(this.$route.query.purchase_id);
},
watch: {
$route(to, from) {
if (to.path == '/orderTrackGoodsDetail') {
this.getData(to.query.purchase_id);
}
}
}, },
computed: { computed: {
id: function () { id: function () {
...@@ -72,9 +80,9 @@ export default { ...@@ -72,9 +80,9 @@ export default {
} }
}, },
methods: { methods: {
getData() { getData(id) {
this.$http('post', "/api/purchase/purOrderDetail", { this.$http('post', "/api/purchase/purOrderDetail", {
id: this.id id: id
}).then(res => { }).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.infos = res.data.purchase_info; this.infos = res.data.purchase_info;
......
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