yfh 1 týždeň pred
rodič
commit
71607f2ca0
1 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  1. 4 2
      src/views/hisStore/storeProduct/index.vue

+ 4 - 2
src/views/hisStore/storeProduct/index.vue

@@ -1076,6 +1076,7 @@ export default {
       },
       // 表单参数
       form: {},
+      storeForm: {isAudit:1,status:1},
       // 表单校验
       rules: {
         image: [
@@ -1200,7 +1201,7 @@ export default {
     getCompanyList().then(response => {
       this.companyOptions = response.data;
     });
-    listStore().then(response => {
+    listStore(this.storeForm).then(response => {
       this.storeOptions = response.rows;
     });
     this.getTreeselect();
@@ -1308,7 +1309,8 @@ export default {
     },
     //生成SKU
     generate () {
-      genFormatAttr(this.form.productId, { attrs: this.attrs }).then(res => {
+      var prodoct = this.form.productId?this.form.productId:0;
+      genFormatAttr(prodoct, { attrs: this.attrs }).then(res => {
         if(this.form.specType === 0){
           this.oneFormValidate = res.value;
           this.form.header = res.header;