Browse Source

解决出库未显示按钮问题

阿伏兔 4 years ago
parent
commit
9d0d838f47

+ 5 - 2
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -562,7 +562,6 @@
                     ? (detailsHidden2 = false)
                     : (detailsHidden2 = true)
                 "
-                v-if="dataShowcar == 0"
                 >{{ detailsHidden2 ? "隐藏" : "更多" }}
               </el-button>
               <el-button
@@ -3089,8 +3088,10 @@ export default {
     this.getConfigKey("data_showcar").then((response) => {
       this.dataShowcar = response.msg;
       if (this.dataShowcar == "0") {
-        this.detailsHidden2 = false;
+        this.detailsHidden2 = true;
         this.form.fBusinessType = "0";
+      } else {
+        this.detailsHidden2 = false;
       }
     });
     this.getConfigKey("instock.orders.approval").then((response) => {
@@ -3241,6 +3242,8 @@ export default {
       this.CntrTable = [];
       this.sumMum = 0;
       if (this.dataShowcar == "0") {
+        this.detailsHidden2 = true;
+      } else {
         this.detailsHidden2 = false;
       }
       if (this.$route.query.id) {

+ 4 - 1
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -444,7 +444,6 @@
                     ? (detailsHidden2 = false)
                     : (detailsHidden2 = true)
                 "
-                v-if="this.dataShowcar == 1"
                 >{{ detailsHidden2 ? "隐藏" : "更多" }}
               </el-button>
               <el-button
@@ -3243,6 +3242,8 @@ export default {
       if (this.dataShowcar == "1") {
         this.detailsHidden2 = false;
         this.form.fBusinessType = "5";
+      } else {
+        this.detailsHidden2 = true;
       }
     });
     this.getDicts("data_stltype_type").then((response) => {
@@ -3374,6 +3375,8 @@ export default {
       this.CntrTable = [];
       if (this.dataShowcar == "1") {
         this.detailsHidden2 = false;
+      } else {
+        this.detailsHidden2 = true;
       }
       if (this.$route.query.id) {
         this.approVal = true;