Commit 8b015be6 by LJM

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

parent 9a7397a2
......@@ -100,8 +100,7 @@
<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>
<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>
......@@ -156,8 +155,7 @@
</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>
<el-pagination layout="prev, pager, next,jumper" :page-size="limit" :total="total" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</template>
<!--历史报价-->
<template v-else>
......@@ -577,7 +575,10 @@ export default {
}
this.checkBind(id_arr.join(","))
} else {
this.$message(res.msg);
this.$message({
message: res.msg,
type: 'warning'
});
}
})
},
......@@ -868,15 +869,13 @@ export default {
message: '已绑定,不能重复操作',
type: 'warning'
});
return
return;
}
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 = '';
......@@ -898,7 +897,10 @@ export default {
this.ruleForm.mpq = datap_.mpq;
this.ruleForm.quote_number = datap_.quote_number;
} else {
this.$message(res.msg);
this.$message({
message: res.msg,
type: 'warning'
});
}
})
......
......@@ -60,11 +60,19 @@ export default {
data() {
return {
infos: {},
tableData: ""
tableData: "",
purchase_id: ""
};
},
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: {
id: function () {
......@@ -72,9 +80,9 @@ export default {
}
},
methods: {
getData() {
getData(id) {
this.$http('post', "/api/purchase/purOrderDetail", {
id: this.id
id: id
}).then(res => {
if (res.code === 0) {
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