Browse Source

修改941197租号的bug

Qukatie 1 day ago
parent
commit
9ba8c15bdd

+ 3 - 10
src/views/businessManagement/inventoryAccount/index.vue

@@ -47,7 +47,6 @@
           <el-button
             type="primary"
             size="small"
-            v-if="isDisabled"
             icon="el-icon-plus"
             @click="excelBox = !excelBox"
           >导入
@@ -56,19 +55,17 @@
             type="success"
             icon="el-icon-download"
             size="small"
-            v-if="isDisabled"
             @click="derivation()"
           >下载模板
           </el-button>
-          <el-button
+          <!-- <el-button
             type="info"
             icon="el-icon-printer"
             size="small"
-            v-if="isDisabled"
             :loading="exportLoading"
-            @click="derivation()"
+            @click="statement()"
           >报表打印
-          </el-button>
+          </el-button> -->
           <el-button
             v-if="userInfo"
             type="info"
@@ -127,7 +124,6 @@ export default {
         placeholder: "请点击右边按钮选择",
         dicData: []
       },
-      isDisabled:true,
       loading: false,
       exportLoading:false,
       switchDialog:false,
@@ -169,9 +165,6 @@ export default {
     }
   },
   created() {
-    if(this.$store.getters.userInfo.tenant_id == "941197"){
-      this.isDisabled = false
-    }
     // this.search.createTime = defaultDate(1)
     let i = 0;
     this.option.column.forEach(item => {

+ 2 - 2
src/views/businessManagement/purchaseOrder/detailsPageEdit.vue

@@ -29,10 +29,10 @@
         </el-dropdown>
         <el-button type="primary" size="small" :loading="saveLoading" :disabled="detailData.seeDisabled || !form.id"
           @click="postMessage">发送消息</el-button>
-        <el-button size="small" class="el-button--small-yh" type="success" @click="copyOrder" :loading="saveLoading"
+        <!-- <el-button size="small" class="el-button--small-yh" type="success" @click="copyOrder" :loading="saveLoading"
           :disabled="detailData.seeDisabled || !this.form.id">
           复制单据
-        </el-button>
+        </el-button> -->
         <el-button size="small" class="el-button--small-yh" type="primary" :disabled="disabled || detailData.seeDisabled"
           @click="editCustomer(false)" :loading="saveLoading">保 存
         </el-button>

+ 2 - 2
src/views/businessManagement/purchaseOrder/index.vue

@@ -8,8 +8,8 @@
         @tree-load="treeLoad" @saveColumn="saveColumn" @resetColumn="resetColumn"
         @search-criteria-switch="searchCriteriaSwitch" :cell-style="cellStyle">
         <template slot="menuLeft" slot-scope="{size}">
-          <el-button type="success" :size="size" icon="el-icon-copy-document" @click="copyOrder" :disabled="single">复制单据
-          </el-button>
+          <!-- <el-button type="success" :size="size" icon="el-icon-copy-document" @click="copyOrder" :disabled="single">复制单据
+          </el-button> -->
           <el-button type="info" :size="size" icon="el-icon-printer" @click="outExport">导出</el-button>
           <el-button type="warning" :size="size" icon="el-icon-thumb" :disabled="multiple" @click="applyPayment">申请货款
           </el-button>

+ 5 - 1
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -342,7 +342,7 @@
               <el-button type="danger" icon="el-icon-delete" size="small" @click="removeList"
                 :disabled="(selection.length == 0) || detailData.seeDisabled || browse">删除
               </el-button>
-              <el-button type="primary" icon="el-icon-plus" size="small" @click="DLSelection"
+              <el-button v-if="isDisabled" type="primary" icon="el-icon-plus" size="small" @click="DLSelection"
                 :disabled="detailData.seeDisabled || !form.corpId || browse">
                 代理订单
               </el-button>
@@ -1596,6 +1596,7 @@ export default {
       routerTag: '',
       handId: null,
       mockData: [],
+      isDisabled:true,
     }
   },
   mounted() {
@@ -1618,6 +1619,9 @@ export default {
   },
   //初始化查询
   async created() {
+    if(this.$store.getters.userInfo.tenant_id == "941197"){
+      this.isDisabled = false
+    }
     this.rowHeight = (window.innerHeight - 130) + 'px'
     this.customerContact = await this.getColumnData(this.getColumnName(15), customerContact);
     this.getWorkDicts("payment_term").then(res => {