Bläddra i källkod

bug修复,详情页快捷进入编辑页权限问题

chenrui 3 år sedan
förälder
incheckning
943d30e8d0

+ 1 - 1
src/views/allocationManagement/chainTransferIn/detail.vue

@@ -109,7 +109,7 @@ export default {
   },
   computed: {
     isEdit () {
-      return (this.basicInfoData && this.basicInfoData.state == 'WAIT_AUDIT')
+      return (this.basicInfoData && this.basicInfoData.state == 'WAIT_AUDIT' && this.$hasPermissions('B_allocLinkagePutEdit'))
     }
   },
   methods: {

+ 2 - 2
src/views/allocationManagement/chainTransferIn/list.vue

@@ -79,7 +79,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 1230, y: tableHeight }"
+        :scroll="{ x: 1310, y: tableHeight }"
         bordered>
         <!-- 连锁调入单号 -->
         <template slot="allocationLinkagePutNo" slot-scope="text, record">
@@ -140,7 +140,7 @@ export default {
       columns: [
         { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
         { title: '创建时间', dataIndex: 'createDate', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '连锁调入单号', scopedSlots: { customRender: 'allocationLinkagePutNo' }, width: 140, align: 'center' },
+        { title: '连锁调入单号', scopedSlots: { customRender: 'allocationLinkagePutNo' }, width: 180, align: 'center' },
         { title: '调出对象', dataIndex: 'outTenantName', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '总款数', dataIndex: 'productTotalCategory', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '总数量', dataIndex: 'productTotalQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },

+ 1 - 1
src/views/allocationManagement/chainTransferOut/detail.vue

@@ -121,7 +121,7 @@ export default {
   },
   computed: {
     isEdit () {
-      return (this.basicInfoData && this.basicInfoData.state == 'WAIT_SUBMIT') || (this.basicInfoData && this.basicInfoData.state == 'WAIT_AUDIT')
+      return ((this.basicInfoData && this.basicInfoData.state == 'WAIT_SUBMIT') || (this.basicInfoData && this.basicInfoData.state == 'WAIT_AUDIT')) && this.$hasPermissions('B_allocLinkageOutEdit')
     }
   },
   methods: {

+ 2 - 2
src/views/allocationManagement/chainTransferOut/list.vue

@@ -83,7 +83,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 1300, y: tableHeight }"
+        :scroll="{ x: 1380, y: tableHeight }"
         bordered>
         <!-- 连锁调出单号 -->
         <template slot="allocationLinkageOutNo" slot-scope="text, record">
@@ -153,7 +153,7 @@ export default {
       columns: [
         { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
         { title: '创建时间', dataIndex: 'createDate', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '连锁调出单号', scopedSlots: { customRender: 'allocationLinkageOutNo' }, width: 140, align: 'center' },
+        { title: '连锁调出单号', scopedSlots: { customRender: 'allocationLinkageOutNo' }, width: 180, align: 'center' },
         { title: '调往对象', dataIndex: 'putTenantName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '总款数', dataIndex: 'productTotalCategory', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '总数量', dataIndex: 'productTotalQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },

+ 1 - 1
src/views/allocationManagement/storeTransferOut/detail.vue

@@ -114,7 +114,7 @@ export default {
   },
   computed: {
     isEdit () {
-      return (this.basicInfoData && this.basicInfoData.state == 'WAIT_SUBMIT') || (this.basicInfoData && this.basicInfoData.state == 'WAIT_AUDIT')
+      return ((this.basicInfoData && this.basicInfoData.state == 'WAIT_SUBMIT') || (this.basicInfoData && this.basicInfoData.state == 'WAIT_AUDIT')) && this.$hasPermissions('B_storeCallOutEdit')
     }
   },
   methods: {

+ 1 - 1
src/views/bulkManagement/bulkWarehousingOrder/detail.vue

@@ -147,7 +147,7 @@ export default {
   },
   computed: {
     isEdit () {
-      return this.basicInfoData && this.basicInfoData.state != 'FINISH'
+      return this.basicInfoData && this.basicInfoData.state != 'FINISH' && this.$hasPermissions('B_bulkWarehousingOrder_edit')
     }
   },
   methods: {

+ 1 - 1
src/views/purchasingManagement/purchaseReturn/detail.vue

@@ -103,7 +103,7 @@ export default {
   },
   computed: {
     isEdit () {
-      return this.basicInfoData && this.basicInfoData.state == 'WAIT'
+      return ((this.basicInfoData && this.basicInfoData.state == 'WAIT_SUBMIT') || (this.basicInfoData && this.basicInfoData.state == 'AUDIT_REJECT')) && this.$hasPermissions('B_purchaseReturnEdit')
     }
   },
   methods: {