linwenxin před 7 měsíci
rodič
revize
9556c7fffa

+ 20 - 1
src/views/auxiliaryFittings/auxiliaryDataManagement/auxiliaryPriceManagement/index.vue

@@ -109,7 +109,8 @@ export default {
         selfWorkerAmount: '',
         status: 'ON',
         costRangeMini: 0,
-        costRangeMax: 0
+        costRangeMax: 0,
+        limitPriceMultiples: 1
       },
       partsUnitList: [],
       materialCategoryTree: [],
@@ -383,6 +384,24 @@ export default {
           }
         },
         {
+          md: 6,
+          isShow: true,
+          name: 'el-input',
+          attributes: { placeholder: '请输入', type: 'number' },
+          formItemAttributes: {
+            label: '进价售价倍数',
+            prop: 'limitPriceMultiples',
+            rules: [...required]
+          },
+          events: {
+            input: value => {
+              if (Number(value) < 1) {
+                this.formData.limitPriceMultiples = 1
+              }
+            }
+          }
+        },
+        {
           md: 24,
           isShow: true,
           name: 'el-input',