Sfoglia il codice sorgente

fix(销售订单发票): 修正挂起功能的条件判断和提示

liujt 7 mesi fa
parent
commit
823a4bb1bc

+ 10 - 3
src/views/saleManage/saleOrder/invoice/components/inventoryTable.vue

@@ -378,11 +378,11 @@
           替代料
         </el-link>
         
-        <template v-if="scope.row.batchNo && $hasPermission('eom:saleordersendrecord:pending')">
+        <template v-if="scope.row.batchNo && $hasPermission('eom:saleordersendrecord:pending' ) && needPending == 1">
           <el-popconfirm
             v-if="scope.row.isSuspend === 1"
             class="ele-action"
-            title="确定要挂起吗?"
+            title="确定要取消挂起吗?"
             @confirm="pending(scope.row, 0)"
           >
             <template v-slot:reference>
@@ -566,12 +566,19 @@
           datasource: []
         },
         rules: {},
-        columnsVersion: 1
+        columnsVersion: 1,
+        needPending: 0
       };
     },
     created() {
       this.requestDict('产地');
       this.requestDict('生产类型');
+      // 发起时物品清单是否需要挂起 //0否 1是
+      parameterGetByCode({
+        code: 'eom_saleOreder_invoice_pending'
+      }).then((res) => {
+        this.needPending = res.value;
+      });
       parameterGetByCode({
         code: 'eom_saleManage_invoice_warehouseId'
       }).then((res) => {