Qukaidi 4 rokov pred
rodič
commit
0392d9890e

+ 7 - 14
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -872,9 +872,9 @@
               >
                 <el-option
                   v-for="(item, index) in battributionList"
-                  :key="index.dictValue"
-                  :label="item.dictLabel"
-                  :value="item.dictValue"
+                  :key="index.fId"
+                  :label="item.fName"
+                  :value="item.fId"
                 />
               </el-select>
             </el-form-item>
@@ -3071,10 +3071,6 @@ export default {
     this.getDicts("unload_mode").then((response) => {
       this.unloadModes = response.data;
     });
-
-    this.getDicts("f_business_attribution").then((response) => {
-      this.battributionList = response.data;
-    });
     this.getDicts("f_declaration_elements").then((response) => {
       this.delementsList = response.data;
     });
@@ -3112,6 +3108,7 @@ export default {
     listCorps({ type: 1 }).then((response) => {
       this.fMblnoOptions = response.rows;
     });
+
     listCorps().then((response) => {
       this.fSbuOptions = response.rows;
     });
@@ -3130,6 +3127,9 @@ export default {
     listCorps({ fTypeid: 6 }).then((response) => {
       this.fCompanyOptIons = response.rows;
     });
+    listCorps({ fTypeid: 7 }).then((response) => {
+      this.battributionList = response.rows;
+    });
     listCorps({ fTypeid: 2 }).then((response) => {
       this.fleetOptions = response.rows;
     });
@@ -3817,13 +3817,6 @@ export default {
       );
       this.$set(
         this.form,
-        "fBusinessAttribution",
-        this.form.fBusinessAttribution
-          ? this.form.fBusinessAttribution.toString()
-          : null
-      );
-      this.$set(
-        this.form,
         "fDeclarationElements",
         this.form.fDeclarationElements
           ? this.form.fDeclarationElements.toString()