瀏覽代碼

物料变更单-新增近效期管理、近效期预警天数字段以及字段处理逻辑

002390 1 年之前
父節點
當前提交
ccfea4db5e
共有 2 個文件被更改,包括 38 次插入0 次删除
  1. 24 0
      src/views/material/changeApply/add/column.js
  2. 14 0
      src/views/material/changeApply/add/index.vue

+ 24 - 0
src/views/material/changeApply/add/column.js

@@ -167,6 +167,8 @@ export default function useColumns(){
               ratifyBatchNo:'ratifyBatchNo',
               expiryUnitId:'expiryUnitId',
               usefulLifeUnitId: 'usefulLifeUnitId',
+              recentWarningPeriod: 'recentWarningPeriod',
+              nearOnsetManagerment: 'nearOnsetManagerment',
             },
 
 
@@ -355,6 +357,28 @@ export default function useColumns(){
             clearable: true,
           },
         },
+        {
+          item:{
+            key:'nearOnsetManagerment',
+            title:'近效期管理',
+          },
+          attr:{
+            is: "el-select",
+            dictName: "sys_number_yes_no",
+            clearable:true,
+          },
+        },
+        {
+          item:{
+            key:'recentWarningPeriod',
+            title:'近效期预警天数',
+          },
+          attr:{
+            is: "el-input-number",
+            min: 0,
+            controlsPosition: "right",
+          },
+        },
 
 
         // {

+ 14 - 0
src/views/material/changeApply/add/index.vue

@@ -357,6 +357,8 @@ export default {
         row.usefulLife = "";
         row.expiryUnitId = "";
         row.usefulLifeUnitId = "";
+        row.nearOnsetManagerment = "2";
+        row.recentWarningPeriod = "";
       }
     },
     // 物料编码
@@ -634,6 +636,18 @@ export default {
               </component>
             </template>
 
+            <!-- 近效期预警天数 -->
+            <template slot="recentWarningPeriod" slot-scope="scope">
+              <component
+                v-bind="scope.attr"
+                v-model="scope.row[scope.item.key]"
+                :size="$attrs.size"
+                :source.sync="scope.row"
+                :disabled="scope.row.expiryDateManagerment !== '0'"
+              >
+              </component>
+            </template>
+
             <ux-table-column
               fixed="right"
               title="操作"