Procházet zdrojové kódy

主数据修改问题

longfenglin před 1 rokem
rodič
revize
62c16af008

+ 6 - 3
src/views/material/BOMmanage/components/workingProcedure.vue

@@ -309,7 +309,7 @@
             <template v-slot:unit="{ row }">
               <div v-if="isView">{{ row.unit }}</div>
               <div v-else>
-                <DictSelection dictName="计量单位" v-model="row.unit"></DictSelection>
+                <DictSelection dictName="计量单位" :isProhibit="true" v-model="row.unit"></DictSelection>
               </div>
             </template>
 
@@ -1309,8 +1309,11 @@ export default {
       );
       this.activeName = '工艺参数';
 
-      this.baseCount = rowData.baseCount;
-      this.baseCountUnit = rowData.baseCountUnit;
+      // this.baseCount = rowData.baseCount;
+      // this.baseCountUnit = rowData.baseCountUnit;
+
+      this.form.baseCount = rowData.baseCount;
+      this.form.baseCountUnit = rowData.baseCountUnit;
 
       this.baseCount2 = rowData.baseCount2;
       this.baseCountUnit2 = rowData.baseCountUnit2;

+ 1 - 1
src/views/material/product/detail.vue

@@ -1059,7 +1059,7 @@ export default {
           );
         }
 
-        data.category.produceType = [data.category.produceType];
+        data.category.produceType = data.category.produceType?[data.category.produceType]:[];
 
         addMaterial(data)
           .then((msg) => {

+ 6 - 6
src/views/technology/route/components/user-edit.vue

@@ -61,7 +61,7 @@
           </el-form-item>
         </el-col>
 
-        <el-col :span="8">
+        <!-- <el-col :span="8">
           <el-form-item label="类型:" prop="routeType">
             <el-select v-model="form.routeType" placeholder="请选择">
               <el-option label="生产" :value="1" />
@@ -69,7 +69,7 @@
               <el-option label="质检" :value="3" />
             </el-select>
           </el-form-item>
-        </el-col>
+        </el-col> -->
       </el-row>
     </el-form>
 
@@ -106,7 +106,7 @@ export default {
       produceVersionId: '',
       version: '1.0',
       id: '',
-      routeType: 1,
+      // routeType: '',
       versionUpgradeType: 0
     };
     return {
@@ -144,9 +144,9 @@ export default {
           { required: true, message: '请输入工艺类型', trigger: 'blur' }
         ],
 
-        routeType: [
-          { required: true, message: '请选择类型', trigger: 'blur' }
-        ]
+        // routeType: [
+        //   { required: true, message: '请选择类型', trigger: 'blur' }
+        // ]
       },
       versionList: [],
       // 提交状态