chris před 3 roky
rodič
revize
c5e697b951

+ 1 - 1
src/views/modules/order/order.vue

@@ -118,7 +118,7 @@
         label="操作">
         <template slot-scope="scope">
           <el-button v-if="isAuth('order:ctl:info')" type="text" size="small" @click="detailHandle(scope.row.orderId)">查看</el-button>
-          <el-button v-if="isAuth('order:ctl:editor')" type="text" size="small" @click="addOrUpdateHandle(scope.row.orderId,false)">编辑</el-button>
+          <el-button v-if="isAuth('order:ctl:editor') && Number(scope.row.state) < 2" type="text" size="small" @click="addOrUpdateHandle(scope.row.orderId,false)">编辑</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 2 - 2
src/views/modules/sale/purchase.vue

@@ -123,8 +123,8 @@
         label="操作">
         <template slot-scope="scope">
           <el-button v-if="isAuth('sale:purchase:info')" type="text" size="small" @click="detailHandle(scope.row.purchaseId)">查看</el-button>
-          <el-button v-if="isAuth('sale:purchase:update') && (scope.row.purchaseState === '0' || scope.row.purchaseState === '1')" type="text" size="small" @click="addOrUpdateHandle(scope.row.purchaseId, false)">编辑</el-button>
-          <el-button v-if="isAuth('sale:purchase:revoke')" style="color: red" type="text" size="small" @click="revokeHandle(scope.row.purchaseId)">撤回</el-button>
+          <el-button v-if="isAuth('sale:purchase:update') && Number(scope.row.purchaseState) < 2" type="text" size="small" @click="addOrUpdateHandle(scope.row.purchaseId, false)">编辑</el-button>
+          <el-button v-if="isAuth('sale:purchase:revoke') && Number(scope.row.purchaseState) < 2" style="color: red" type="text" size="small" @click="revokeHandle(scope.row.purchaseId)">撤回</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 1 - 1
src/views/modules/warehouse/stock-order.vue

@@ -114,7 +114,7 @@
         <template slot-scope="scope">
           <el-button v-if="isAuth('wh:inon:info')" type="text" size="small" @click="detailHandle(scope.row.id)">查看</el-button>
           <el-button v-if="false" type="text" size="small" @click="exportItem(scope.row.id)">导出</el-button>
-          <el-button v-if="isAuth('wh:in:revoke')" type="text" size="small" @click="cancelItem(scope.row)">撤回</el-button>
+          <el-button v-if="isAuth('wh:in:revoke') && (Number(scope.row.state) === 1 || Number(scope.row.state) === 2)" type="text" size="small" @click="cancelItem(scope.row)">撤回</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 1 - 1
src/views/modules/warehouse/template-delivery.vue

@@ -71,7 +71,7 @@
         label="操作">
         <template slot-scope="scope">
           <el-button v-if="isAuth('wh:template-out:info')" type="text" size="small" @click="detailHandle(scope.row.recordId)">查看</el-button>
-          <el-button v-if="isAuth('wh:template-out:out')" type="text" size="small" @click="addOrUpdateHandle(scope.row.recordId, false)">出库</el-button>
+          <el-button v-if="isAuth('wh:template-out:out') && Number(scope.row.state) !== 1" type="text" size="small" @click="addOrUpdateHandle(scope.row.recordId, false)">出库</el-button>
         </template>
       </el-table-column>
     </el-table>