Procházet zdrojové kódy

采购需求单-需求窗口期中截止星期设置范围限制[1,7]

002390 před 1 rokem
rodič
revize
db401a4aef

+ 5 - 4
src/views/purchase/PurchaseDemandList/demand/columns.js

@@ -31,10 +31,11 @@ export default function useColumns() {
         is: "el-input-number",
         clearable: true,
         min: 1,
-        max: (prop) => {
-          let { ways } = prop;
-          return ways === 'ZJH' ? 7 : 12
-        },
+        max: 7,
+        // max: (prop) => {
+        //   let { ways } = prop;
+        //   return ways === 'ZJH' ? 7 : 12
+        // },
       }
     },
     {

+ 0 - 1
src/views/purchase/PurchaseDemandList/demand/index.vue

@@ -97,7 +97,6 @@ export default {
             v-model="scope.row[scope.item.key]"
             :size="$attrs.size"
             :source.sync="scope.row"
-            :max="scope.attr.max(scope.row)"
             @input="changeDeadline(scope.row)"
           >
           </component>