Kaynağa Gözat

销售订单对话框优化:修复多余空格和格式问题,添加宝悦默认relationType值

yusheng 9 ay önce
ebeveyn
işleme
a93250ee14

+ 7 - 4
src/views/saleManage/saleOrder/components/addDialog.vue

@@ -59,7 +59,6 @@
               @click.native="handOpportunity"
               readonly
               @clear="clearContrcat"
-        
               placeholder="请输入"
             />
           </el-form-item>
@@ -86,7 +85,7 @@
             <el-input
               clearable
               v-model="form.projectName"
-               @change="form.relationName=form.projectName"
+              @change="form.relationName = form.projectName"
               @clear="clearContrcat('project')"
               placeholder="请输入"
               style="width: calc(100% - 80px)"
@@ -141,7 +140,7 @@
             >
           </el-form-item>
           <el-form-item prop="orderFiles" label="订单附件">
-            <fileMain v-model="form.orderFiles" ></fileMain>
+            <fileMain v-model="form.orderFiles"></fileMain>
           </el-form-item>
         </el-col>
 
@@ -1208,7 +1207,7 @@
           projectCode: obj.code,
           relationName: obj.name,
           relationId: obj.id,
-          relationCode: obj.code  
+          relationCode: obj.code
         });
 
         if (obj.contractId) {
@@ -1278,6 +1277,9 @@
           await this.getEnterprisePage();
         }
         this.visible = true;
+
+        x;
+
         if (type == 'add') {
           this.isUpdate = false;
           if (this.enterprisePage.length > 0) {
@@ -1300,6 +1302,7 @@
           //宝悦默认值
           if (this.clientEnvironmentId == 4) {
             this.form.needProduce = 4;
+            this.form.relationType = 4;
           }
         } else {
           this.isUpdate = true;