lilei 1 year ago
parent
commit
3b77f05616
2 changed files with 17 additions and 11 deletions
  1. 1 1
      public/version.json
  2. 16 10
      src/views/productManagement/productInfo/edit.vue

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
 {
   "message": "发现有新版本发布,确定更新系统?",
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
   "vendorJsVersion": "",
-  "version": 1716538625266
+  "version": 1716773306796
 }
 }

+ 16 - 10
src/views/productManagement/productInfo/edit.vue

@@ -129,12 +129,12 @@
               :max="999999"
               :max="999999"
               :precision="2"
               :precision="2"
               style="width: 90%;margin-right: 5px;"
               style="width: 90%;margin-right: 5px;"
-              placeholder="请输入经销批发价(1~999999)"
+              placeholder="请输入经销批发价(0~999999)"
               ref="specialPrice"
               ref="specialPrice"
-              @keydown.enter.native="nextFocus('specialPrice', 'cost', $event)"
+              @keydown.enter.native="nextFocus('specialPrice', 'terminalPrice', $event)"
               allowClear /><span>元</span>
               allowClear /><span>元</span>
           </a-form-model-item>
           </a-form-model-item>
-         <!-- <a-form-model-item label="成本价" v-if="pageType=='pages'" prop="cost">
+          <!-- <a-form-model-item label="成本价" v-if="pageType=='pages'" prop="cost">
             <a-input-number
             <a-input-number
               id="productInfoEdit-cost"
               id="productInfoEdit-cost"
               v-model="form.cost"
               v-model="form.cost"
@@ -142,7 +142,7 @@
               :max="999999"
               :max="999999"
               :precision="2"
               :precision="2"
               style="width: 90%;margin-right: 5px;"
               style="width: 90%;margin-right: 5px;"
-              placeholder="请输入成本价(1~999999)"
+              placeholder="请输入成本价(0~999999)"
               ref="cost"
               ref="cost"
               @keydown.enter.native="nextFocus('cost', 'terminalPrice', $event)"
               @keydown.enter.native="nextFocus('cost', 'terminalPrice', $event)"
               allowClear /><span>元</span>
               allowClear /><span>元</span>
@@ -155,7 +155,7 @@
               :max="999999"
               :max="999999"
               :precision="2"
               :precision="2"
               style="width: 90%;margin-right: 5px;"
               style="width: 90%;margin-right: 5px;"
-              placeholder="请输入终端价(1~999999)"
+              placeholder="请输入终端价(0~999999)"
               ref="terminalPrice"
               ref="terminalPrice"
               @keydown.enter.native="nextFocus('terminalPrice', 'carOwnersPrice', $event)"
               @keydown.enter.native="nextFocus('terminalPrice', 'carOwnersPrice', $event)"
               allowClear /><span>元</span>
               allowClear /><span>元</span>
@@ -168,7 +168,7 @@
               :max="999999"
               :max="999999"
               :precision="2"
               :precision="2"
               style="width: 90%;margin-right: 5px;"
               style="width: 90%;margin-right: 5px;"
-              placeholder="请输入车主价(1~999999)"
+              placeholder="请输入车主价(0~999999)"
               ref="carOwnersPrice"
               ref="carOwnersPrice"
               @keydown.enter.native="nextFocus('carOwnersPrice', '', $event)"
               @keydown.enter.native="nextFocus('carOwnersPrice', '', $event)"
               allowClear /><span>元</span>
               allowClear /><span>元</span>
@@ -188,7 +188,7 @@
           </a-form-model-item>
           </a-form-model-item>
           <a-form-model-item label="入库数量" v-if="pageType=='modal'" prop="putQty">
           <a-form-model-item label="入库数量" v-if="pageType=='modal'" prop="putQty">
             <a-input-number
             <a-input-number
-              id="productInfoEdit-specialPrice"
+              id="productInfoEdit-putQty"
               v-model="form.putQty"
               v-model="form.putQty"
               :precision="0"
               :precision="0"
               :min="1"
               :min="1"
@@ -276,7 +276,7 @@ export default {
         name: '', // 产品名称
         name: '', // 产品名称
         code: '', //  产品编码
         code: '', //  产品编码
         origCode: '', //  原厂编码
         origCode: '', //  原厂编码
-        qrCode:'', // 条形码
+        qrCode: '', // 条形码
         unit: '', //  基本单位
         unit: '', //  基本单位
         productBrandSn: undefined, //  产品品牌
         productBrandSn: undefined, //  产品品牌
         productTypeSn3: '', //  产品三级分类
         productTypeSn3: '', //  产品三级分类
@@ -301,8 +301,14 @@ export default {
         productType: [
         productType: [
           { required: true, message: '请选择产品分类', trigger: 'change' }
           { required: true, message: '请选择产品分类', trigger: 'change' }
         ],
         ],
-        putCost: [
-          { required: true, type: 'number', message: '请输入成本价', trigger: 'change' }
+        specialPrice: [
+          { required: true, type: 'number', message: '请输入经销批发价', trigger: 'change' }
+        ],
+        terminalPrice: [
+          { required: true, type: 'number', message: '请输入终端价', trigger: 'change' }
+        ],
+        carOwnersPrice: [
+          { required: true, type: 'number', message: '请输入车主价', trigger: 'change' }
         ],
         ],
         putQty: [
         putQty: [
           { required: true, type: 'number', message: '请输入数量', trigger: 'change' }
           { required: true, type: 'number', message: '请输入数量', trigger: 'change' }