xiaodai2022 2 years ago
parent
commit
20d9b4db36

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/0.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-elementUI.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-libs.js


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

@@ -1089,6 +1089,7 @@ export default {
   data() {
     return {
       spec_tableData: [],
+      is_support_stock: "",
       cat_id_name: "",
       brand_name: "",
       unit_name: "",
@@ -1183,6 +1184,10 @@ export default {
     async submitForm() {
       this.sch_is_noble();
       this.good_type_change();
+      if (this.is_support_stock + "" === "0") {
+        this.$message.warning("该商品为供应商退货业务创建的,不允许改为非库存品!");
+        return;
+      }
       await this.$refs.ruleForm.validate(async (valid) => {
         if (valid) {
           if (!this.loading) {
@@ -1748,7 +1753,9 @@ export default {
             is_diff,
             other_config,
             stock_moq,
+            is_support_stock,
           } = this.sitem;
+          this.is_support_stock = is_support_stock || "1";
           let cat_id_name = "";
           let cat_id = [];
           (cat_info || []).forEach((ai, i) => {

Some files were not shown because too many files changed in this diff