Browse Source

no message

linwenxin 7 tháng trước cách đây
mục cha
commit
4949b2936c

+ 2 - 2
src/views/auxiliaryFittings/shop/components/PurchaseArea.vue

@@ -191,14 +191,14 @@
     <div style="text-align: right">
       <el-button @click="cancelForm">取 消</el-button>
       <el-button
-        v-if="$restrict('edit') && dataForm.flag === 'SAVE' && dataForm.isRecheck === 'NO'"
+        v-if="$restrict('edit') && dataForm.flag === 'SUBMIT' && dataForm.isRecheck === 'YES'"
         type="primary"
         :disabled="saveBtn"
         @click="submitForm('edit')"
         >保 存</el-button
       >
       <el-button
-        v-if="$restrict('confirm') && dataForm.flag === 'SUBMIT' && dataForm.isRecheck === 'NO'"
+        v-if="$restrict('confirm') && dataForm.flag === 'SUBMIT' && dataForm.isRecheck === 'YES'"
         type="success"
         @click="confirmSheet(dataForm.purchaseId)"
         >审 核</el-button

+ 3 - 3
src/views/auxiliaryFittings/shop/purchase-sheet/index.vue

@@ -145,7 +145,7 @@ export default {
         },
         edit: {
           conditions: ({ row, index, column }) => {
-            return row.flag === 'SAVE' && row.isRecheck === 'NO'
+            return row.flag === 'SUBMIT' && row.isRecheck === 'YES'
           },
           click: ({ row, index, column }) => {
             this.addOrEdit('edit', row.purchaseId)
@@ -154,7 +154,7 @@ export default {
         confirm: {
           prompt: '确定审核吗?',
           conditions: ({ row, index, column }) => {
-            return row.flag === 'SUBMIT' && row.isRecheck === 'NO'
+            return row.flag === 'SUBMIT' && row.isRecheck === 'YES'
           },
           click: ({ row, index, column }) => {
             this.confirmSheet(row.purchaseId)
@@ -163,7 +163,7 @@ export default {
         revoke: {
           prompt: '确定撤消吗?',
           conditions: ({ row, index, column }) => {
-            return row.flag === 'SUBMIT' && row.isRecheck === 'NO'
+            return row.flag === 'SUBMIT' && row.isRecheck === 'YES'
           },
           click: ({ row, index, column }) => {
             this.revokeSheet(row.purchaseId)