Prechádzať zdrojové kódy

[CODE]: 操作按钮展示条件

maxianghua 4 rokov pred
rodič
commit
01cd356da5

+ 2 - 0
src/views/warehouseBusiness/cargoClearance/index.vue

@@ -5225,6 +5225,7 @@ export default {
           }
           if (dataList.length !== 0) {
             let formData = new window.FormData();
+            formData.append("type", "2");
             formData.append("warehouseBills", JSON.stringify(this.form));
             formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
             formData.append("warehousebillsitems", JSON.stringify(dataList));
@@ -5281,6 +5282,7 @@ export default {
       }
       let formData = new window.FormData();
       let withdrawList = JSON.parse(JSON.stringify(this.dataWithdrawList))
+      formData.append("type","2");
       formData.append("warehouseBills", JSON.stringify(this.form));
       formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
       formData.append("warehousebillsitems", JSON.stringify(this.dataWithdrawList));

+ 7 - 3
src/views/warehouseBusiness/goodsTransfer/index.vue

@@ -376,7 +376,11 @@
             size="mini"
             type="text"
             icon="el-icon-edit"
-            v-if="scope.row.fBillstatus <= 3"
+            v-if="
+              scope.row.fBillstatus == '录入' ||
+              scope.row.fBillstatus == '暂存'  ||
+              scope.row.fBillstatus == '驳回'
+            "
             @click="handleUpdate(scope.row, false)"
             v-hasPermi="['warehouseBusiness:goodsTransfer:edit']"
           >修改
@@ -385,7 +389,7 @@
             size="mini"
             type="text"
             icon="el-icon-edit"
-            v-if="scope.row.fBillstatus === 4 || scope.row.fBillstatus === 5"
+            v-if="scope.row.fBillstatus == '请核'  || scope.row.fBillstatus == '审核中' "
             @click="check(scope.row)"
             v-hasPermi="['warehouseBusiness:goodsTransfer:edit']"
           >审批进度
@@ -394,7 +398,7 @@
             size="mini"
             type="text"
             icon="el-icon-delete"
-            v-if="scope.row.fItemsStatus === 1"
+            v-if="scope.row.fItemsStatus == '计划'"
             @click="handleDelete(scope.row)"
             v-hasPermi="['warehouseBusiness:goodsTransfer:remove']"
           >删除

+ 5 - 5
src/views/warehouseBusiness/inStock/index.vue

@@ -417,9 +417,9 @@
             type="text"
             icon="el-icon-edit"
             v-if="
-              scope.row.fBillstatus === 1 ||
-              scope.row.fBillstatus === 2 ||
-              scope.row.fBillstatus === 3
+              scope.row.fBillstatus == '录入' ||
+              scope.row.fBillstatus == '暂存'  ||
+              scope.row.fBillstatus == '驳回'
             "
             @click="handleUpdate(scope.row, false)"
             v-hasPermi="['warehouseBusiness:inStock:edit']"
@@ -429,7 +429,7 @@
             size="mini"
             type="text"
             icon="el-icon-delete"
-            v-if="scope.row.fItemsStatus === 1"
+            v-if="scope.row.fItemsStatus == '计划'"
             @click="handleDelete(scope.row)"
             v-hasPermi="['warehouseBusiness:inStock:remove']"
           >删除
@@ -438,7 +438,7 @@
             size="mini"
             type="text"
             icon="el-icon-delete"
-            v-if="scope.row.fBillstatus === 4 || scope.row.fBillstatus === 5"
+            v-if="scope.row.fBillstatus == '请核'  || scope.row.fBillstatus == '审核中' "
             @click="handleUpdate(scope.row, true)"
           >审核进度
           </el-button>

+ 5 - 5
src/views/warehouseBusiness/outStock/index.vue

@@ -394,9 +394,9 @@
             type="text"
             icon="el-icon-edit"
             v-if="
-              scope.row.fBillstatus === 1 ||
-              scope.row.fBillstatus === 2 ||
-              scope.row.fBillstatus === 3
+              scope.row.fBillstatus == '录入' ||
+              scope.row.fBillstatus == '暂存'  ||
+              scope.row.fBillstatus == '驳回'
             "
             @click="handleUpdate(scope.row, false)"
             v-hasPermi="['warehouseBusiness:outStock:edit']"
@@ -406,7 +406,7 @@
             size="mini"
             type="text"
             icon="el-icon-delete"
-            v-if="scope.row.fItemsStatus === 1"
+            v-if="scope.row.fItemsStatus == '计划'"
             @click="handleDelete(scope.row)"
             v-hasPermi="['warehouseBusiness:outStock:remove']"
           >删除
@@ -415,7 +415,7 @@
             size="mini"
             type="text"
             icon="el-icon-delete"
-            v-if="scope.row.fBillstatus === 4 || scope.row.fBillstatus === 5"
+            v-if="scope.row.fBillstatus == '请核'  || scope.row.fBillstatus == '审核中' "
             @click="handleUpdate(scope.row, true)"
           >审核进度
           </el-button>

+ 8 - 3
src/views/warehouseBusiness/stockTransfer/index.vue

@@ -385,7 +385,7 @@
             size="mini"
             type="text"
             icon="el-icon-edit"
-            v-if="scope.row.fBillstatus === 4 || scope.row.fBillstatus === 5"
+            v-if="scope.row.fBillstatus == '请核'  || scope.row.fBillstatus == '审核中' "
             @click="check(scope.row, true)"
             v-hasPermi="['warehouseBusiness:stockTransfer:edit']"
           >审批进度
@@ -394,7 +394,11 @@
             size="mini"
             type="text"
             icon="el-icon-edit"
-            v-if="scope.row.fBillstatus <= 3"
+            v-if="
+              scope.row.fBillstatus == '录入' ||
+              scope.row.fBillstatus == '暂存'  ||
+              scope.row.fBillstatus == '驳回'
+            "
             @click="handleUpdate(scope.row, false)"
             v-hasPermi="['warehouseBusiness:stockTransfer:edit']"
             >修改
@@ -404,7 +408,7 @@
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-if="scope.row.fItemsStatus === 1"
+            v-if="scope.row.fItemsStatus == '计划'"
             v-hasPermi="['warehouseBusiness:stockTransfer:remove']"
             >删除
           </el-button>
@@ -5199,6 +5203,7 @@ export default {
           }
           if (dataList.length !== 0) {
             let formData = new window.FormData();
+            formData.append("type", "1");
             formData.append("warehouseBills", JSON.stringify(this.form));
             formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
             formData.append("warehousebillsitems", JSON.stringify(dataList));

+ 11 - 3
src/views/warehouseBusiness/storageFeeCalculation/index.vue

@@ -327,14 +327,18 @@
             icon="el-icon-view"
             @click="handleUpdate(scope.row, true)"
             v-hasPermi="['warehouseBusiness:storageFeeCalculation:edit']"
-            v-if="scope.row.fBillstatus == 4 || scope.row.fBillstatus == 5"
+            v-if="scope.row.fBillstatus == '请核'  || scope.row.fBillstatus == '审核中' "
           >审批进度</el-button
           >
           <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
-            v-if="scope.row.fBillstatus <= 3"
+            v-if="
+              scope.row.fBillstatus == '录入' ||
+              scope.row.fBillstatus == '暂存'  ||
+              scope.row.fBillstatus == '驳回'
+            "
             @click="handleUpdate(scope.row, false)"
             v-hasPermi="['warehouseBusiness:storageFeeCalculation:edit']"
           >修改
@@ -343,7 +347,11 @@
             size="mini"
             type="text"
             icon="el-icon-delete"
-            v-if="scope.row.fBillstatus <= 3"
+            v-if="
+              scope.row.fBillstatus == '录入' ||
+              scope.row.fBillstatus == '暂存'  ||
+              scope.row.fBillstatus == '驳回'
+            "
             @click="handleDelete(scope.row)"
             v-hasPermi="['warehouseBusiness:storageFeeCalculation:remove']"
           >删除