Browse Source

fix: 零售订单

zh 2 years ago
parent
commit
06824c49f4

+ 1 - 3
src/views/supply/policy/policy_list.vue

@@ -183,9 +183,7 @@ export default {
     },
     operation() {
       return (h, { row, index, column }) => {
-        const statusData = JSON.parse(
-          '{"FAIL_ONE":"初审不通过","REJECT":"驳回","OK_ONE_AND_CONFIRM":"已确认未复核","ABANDON":"弃审","SAVE":"保存","CLOSE":"关闭","OK":"审核通过","WAIT":"待审核","FAIL":"审核不通过","OK_ONE":"初审通过"}'
-        )
+        const statusData = row.selectMapData.examineStatus
         return (
           <div class="operation-btns">
             {row.examineStatus === statusData['SAVE'] ? (

+ 1 - 4
src/views/supply/retail/retail_list.vue

@@ -134,10 +134,7 @@ export default {
     },
     operation() {
       return (h, { row, index, column }) => {
-        const statusData = JSON.parse(
-          '{"FAIL_ONE":"初审不通过","REJECT":"驳回","OK_ONE_AND_CONFIRM":"已确认未复核","ABANDON":"弃审","SAVE":"保存","CLOSE":"关闭","OK":"审核通过","WAIT":"待审核","FAIL":"审核不通过","OK_ONE":"初审通过"}'
-        )
-
+        const statusData = row.selectMapData.examineStatus
         return (
           <div class="operation-btns">
             {this.$checkBtnRole('apply', this.$route.meta.roles) && row.examineStatus === statusData['SAVE'] ? (