|
|
@@ -1704,6 +1704,7 @@ export default {
|
|
|
warehouse: "",
|
|
|
tableData: [{ title: "选择物料", _disabled: true }],
|
|
|
ext_tax_rate: 0,
|
|
|
+ matchingList:[]
|
|
|
};
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
|
@@ -1781,6 +1782,11 @@ export default {
|
|
|
if (this.$route.query.order_in_no != "") {
|
|
|
this.initData(this.$route.query.order_in_no);
|
|
|
}
|
|
|
+ this.axios({ method: "get", url: "/api/purchase_orders_list" })
|
|
|
+ .then((res) => {
|
|
|
+ this.matchingList = res.data.list;
|
|
|
+ })
|
|
|
+ .catch((err) => {});
|
|
|
},
|
|
|
methods: {
|
|
|
shareFreightOk() {
|
|
|
@@ -1928,14 +1934,30 @@ export default {
|
|
|
},
|
|
|
changeSelect(e, index, row, type) {
|
|
|
if (type == 1) {
|
|
|
+ this.tableData[index].is_upd = true;
|
|
|
+ row.is_upd = true;
|
|
|
+ this.tableData.splice(index, 1, row);
|
|
|
row.project_code = e;
|
|
|
+ this.matchingList.forEach((e) => {
|
|
|
+ if (this.tableData[index].project_code == e.project_number) {
|
|
|
+ this.tableData[index].project_title = e.project_name;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
if (type == 2) {
|
|
|
+ this.tableData[index].is_upd = true;
|
|
|
+ row.is_upd = true;
|
|
|
+ this.tableData.splice(index, 1, row);
|
|
|
row.project_title = e;
|
|
|
+ this.matchingList.forEach((e) => {
|
|
|
+ if (this.tableData[index].project_title == e.project_name) {
|
|
|
+ this.tableData[index].project_code = e.project_number;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
- this.tableData[index].is_upd = true;
|
|
|
- row.is_upd = true;
|
|
|
- this.tableData.splice(index, 1, row);
|
|
|
+ // this.tableData[index].is_upd = true;
|
|
|
+ // row.is_upd = true;
|
|
|
+ // this.tableData.splice(index, 1, row);
|
|
|
},
|
|
|
btnChangeTaxRate() {
|
|
|
if (this.selectedTableData.length == 0) {
|