|
|
@@ -187,7 +187,7 @@
|
|
|
v-model="scope.column.data.remarks"
|
|
|
:placeholder="$t(`输入订单备注`)"
|
|
|
size="mini"
|
|
|
- @blur="onConfirm([scope.column.data], true, true)"
|
|
|
+ @blur="inputChange(scope.column.data, scope.$index)"
|
|
|
></el-input>
|
|
|
</div>
|
|
|
<div v-else-if="scope.column.columnname == 'cansaleqty' || scope.column.columnname == 'undeliqty' || scope.column.columnname == 'aftersalesmagqty'">
|
|
|
@@ -402,7 +402,7 @@ export default {
|
|
|
sys_enterpriseid: this.data.sys_enterpriseid, //企业ID
|
|
|
sa_contractid: this.data.contacts.contactsid, //合同ID
|
|
|
type: this.data.type, //订单类型
|
|
|
- items: this.tableData,
|
|
|
+ items: [this.tableData[val.index]],
|
|
|
});
|
|
|
this.$emit("qtyChange");
|
|
|
}, 500);
|
|
|
@@ -415,7 +415,7 @@ export default {
|
|
|
sys_enterpriseid: this.data.sys_enterpriseid, //企业ID
|
|
|
sa_contractid: this.data.contacts.contactsid, //合同ID
|
|
|
type: this.data.type, //订单类型
|
|
|
- items: this.tableData,
|
|
|
+ items: [this.tableData[val.index]],
|
|
|
});
|
|
|
},
|
|
|
async dateChange(row) {
|
|
|
@@ -433,6 +433,21 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+ inputChange(row, index) {
|
|
|
+ this.updateOrder(
|
|
|
+ {
|
|
|
+ sa_orderid: this.data.sa_orderid, //订单ID
|
|
|
+ sys_enterpriseid: this.data.sys_enterpriseid, //企业ID
|
|
|
+ sa_contractid: this.data.contacts.contactsid, //合同ID
|
|
|
+ type: this.data.type, //订单类型
|
|
|
+ items: [this.tableData[row.index]],
|
|
|
+ },
|
|
|
+ () => {
|
|
|
+ console.log(row);
|
|
|
+ this.$set(this.tableData, index, row);
|
|
|
+ }
|
|
|
+ );
|
|
|
+ },
|
|
|
async updateOrder(val) {
|
|
|
const res = await this.$api.requested({
|
|
|
id: 20221109093602,
|