ソースを参照

feat(商品成本):成本单价必填

snow 1 年間 前
コミット
ebfcebb71c

+ 7 - 7
src/views/goodStore/goodsCost/components/baseForm.vue

@@ -1487,13 +1487,13 @@ export default {
                   is_p = false;
                 }
               });
-              if (!is_p) {
-                this.$message.warning(
-                  "启用实时金价的贵金属商品不能填写成本单价!"
-                );
-                this.loading = false;
-                return;
-              }
+              // if (!is_p) {
+              //  this.$message.warning(
+              //    "启用实时金价的贵金属商品不能填写成本单价!"
+              //  );
+              //  this.loading = false;
+              //  return;
+              //}
             }
 
             let model = JSON.parse(JSON.stringify(this.ruleForm));

+ 1 - 0
src/views/goodStore/goodsCost/components/productListModal.vue

@@ -44,6 +44,7 @@
                 @timeReturned="handleTime"
               />
             </el-col>
+            
             <el-col :span="4" style="width: 135px">
               <search-brand
                 :value="brandid"

+ 1 - 1
src/views/goodStore/goodsOnline/add.vue

@@ -172,7 +172,7 @@ export default {
     },
     fixedOptions(){
       return [
-        {value:'1',label:'一口价'},
+        { value: '1', label: '一口价' },
         ...(this.isNoble ? [{ value: '0', label: '实时金价' }] : [])
       ]
     }

+ 7 - 7
src/views/goodStore/supplierGoodsCost/components/baseForm.vue

@@ -1498,13 +1498,13 @@ export default {
                   is_p = false;
                 }
               });
-              if (!is_p) {
-                this.$message.warning(
-                  "启用实时金价的贵金属商品不能填写成本单价!"
-                );
-                this.loading = false;
-                return;
-              }
+              // if (!is_p) {
+              //  this.$message.warning(
+              //    "启用实时金价的贵金属商品不能填写成本单价!"
+              //  );
+              //  this.loading = false;
+              //  return;
+              //}
             }
 
             let model = JSON.parse(JSON.stringify(this.ruleForm));