FengChaoYu hace 3 años
padre
commit
db55d47fe6
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/views/supply/engin/components/home_form.vue

+ 3 - 0
src/views/supply/engin/components/home_form.vue

@@ -490,6 +490,7 @@ export default {
     return {
       editId: '',
       mainForm: {
+        customerId: '',
         orderNum: '',
         orderDate: '',
         type: '',
@@ -877,6 +878,7 @@ export default {
     getDetail() {
       getOrderDetail({id: this.editId}).then(res => {
         let data = res.data;
+        this.mainForm.customerId = data.customerId
         this.mainForm.orderNum = data.enginOrderId;
         this.mainForm.orderDate = data.orderDate;
         this.mainForm.type = data.mainId;
@@ -935,6 +937,7 @@ export default {
         specification: this.goodsScreenForm.proModel,
         price1: this.goodsScreenForm.price1,
         price2: this.goodsScreenForm.price2,
+        customerId: this.mainForm.customerId ? this.mainForm.customerId : ''
       }).then(res => {
         let oldGoodsList = this.goodsList;
         let newGoodsList = res.data.records;