Просмотр исходного кода

出库场景状态和表单类型处理

yusheng 10 месяцев назад
Родитель
Сommit
5f211cdf07
1 измененных файлов с 15 добавлено и 10 удалено
  1. 15 10
      src/views/warehouseManagement/outgoingManagement/add.vue

+ 15 - 10
src/views/warehouseManagement/outgoingManagement/add.vue

@@ -21,7 +21,7 @@
                 <el-option
                   v-for="item in outputSceneState"
                   :key="item.code"
-                  :value="item.code + ''"
+                  :value="item.code"
                   :label="item.label"
                 ></el-option>
               </el-select> </el-form-item
@@ -283,8 +283,12 @@
               >
               </el-table-column>
 
-                
-              <el-table-column label="单价" prop="price" align="center" v-if="isPrice == 1">
+              <el-table-column
+                label="单价"
+                prop="price"
+                align="center"
+                v-if="isPrice == 1"
+              >
                 <template slot-scope="{ row }">
                   <template>
                     {{ row.price ? row.price : '-' + '元' }}/{{
@@ -574,12 +578,13 @@
         pickingPageNum: 1,
         materielPageNum: 1,
         dimension: '3',
-        outputSceneState: outputSceneState.filter(
-          (item) => item.code != '4' && item.code != '11'
-        ), // 出库场景状态
+        // outputSceneState: outputSceneState.filter(
+        //   (item) => item.code != '4' && item.code != '11'
+        // ), // 出库场景状态
+        outputSceneState,
         saveLoading: false,
         treeList: [],
-        isPrice:1,
+        isPrice: 1,
         formData: {
           extInfo: {
             assetType: [], //物品类型id
@@ -602,7 +607,7 @@
           verifyId: '', //审核人Id
           verifyName: '', //审核人名称
           createUserId: '',
-          remark: '',
+          remark: ''
         },
         rules: {
           bizType: {
@@ -671,7 +676,7 @@
       outboundRequisitionSelection(data, dimension, query) {
         console.log(data, dimension, query);
         this.formData.sourceBizNo = query.sourceBizNo;
-        this.formData.bizType = query.bizType;
+        this.formData.bizType = Number(query.bizType);
         this.formData.extInfo.assetType = query.assetType.split(',');
         this.detailData(data, dimension);
       },
@@ -760,7 +765,7 @@
 
         this.formData = res;
         this.formData.extInfo.assetType = res.extInfo?.assetType?.split(',');
-        this.formData.bizType = res.bizType + '';
+        this.formData.bizType = res.bizType;
         console.log(this.formData.extInfo, '');
         this.auditorDeptClick({
           id: this.formData.extInfo?.verifyDeptCode,