Prechádzať zdrojové kódy

修改机型类别接收字段名

FengChaoYu 3 rokov pred
rodič
commit
e0560ce3e3

+ 7 - 9
src/views/supply/engin/components/engin_form.vue

@@ -57,10 +57,10 @@
           </el-form-item>
         </el-col>
         <el-col :xs="24" :sm="12" :lg="8">
-          <el-form-item label="机型类别" prop="orderType">
-            <el-select v-model="mainForm.orderType" placeholder="选择机型类别" size="small" clearable style="width: 100%">
+          <el-form-item label="机型类别" prop="machineType">
+            <el-select v-model="mainForm.machineType" placeholder="选择机型类别" size="small" clearable style="width: 100%">
               <el-option
-                v-for="item in orderTypeList"
+                v-for="item in machineTypeList"
                 :key="item.value"
                 :label="item.label"
                 :value="item.value">
@@ -350,10 +350,9 @@ export default {
         // mainId: '102',
         jxsNum: '',
         enginName: '',
-        orderType: '',
+        machineType: '',
         jxsName: '',
         company: '',
-        tradeCategory: '',
         address: '',
         enginNum: '',
         factoryNum: '',
@@ -391,7 +390,7 @@ export default {
         {label: 'B权', value: 'B权'},
         {label: 'C权', value: 'C权'},
       ],
-      orderTypeList: [
+      machineTypeList: [
         {label: '大机', value: '大机'},
         {label: '小机', value: '小机'},
       ],
@@ -466,7 +465,7 @@ export default {
         // this.mainForm.mainId = data.productCategoryId;
         this.mainForm.jxsNum = data.customerNumber;
         this.mainForm.enginName = data.projectName;
-        this.mainForm.orderType = data.orderType;
+        this.mainForm.machineType = data.machineType;
         this.mainForm.jxsName = data.customerName;
         this.mainForm.company = data.useUnit;
         this.mainForm.tradeCategory = data.tradeCategory;
@@ -700,7 +699,7 @@ export default {
             // orderDate: this.mainForm.orderDate + ' 00:00:00',
             // mainId: this.mainForm.mainId,
             projectName: this.mainForm.enginName,
-            orderType: this.mainForm.orderType,
+            machineType: this.mainForm.machineType,
             useUnit: this.mainForm.company,
             tradeCategory: this.mainForm.tradeCategory,
             installAddress: this.mainForm.address,
@@ -714,7 +713,6 @@ export default {
             tel: this.mainForm.tel,
             remark: this.mainForm.remark,
             contractExpireDate: this.mainForm.contractDate,
-            tradeCategory: this.mainForm.tradeCategory,
             powerCategory: this.mainForm.power,
             geLiInerNote: this.mainForm.greeRemark,
             geLiNote: this.mainForm.greeReply,