|
@@ -225,7 +225,7 @@
|
|
|
label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="isAuth('pur:commDetail:info')" type="text" size="small" @click="detailHandle(scope.row.purchaseId)">查看</el-button>
|
|
|
- <el-button v-if="isAuth('pur:commDetail:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.purchaseId)">编辑</el-button>
|
|
|
+ <el-button v-if="isAuth('pur:commDetail:update') && (Number(scope.row.approvalState) === 1)" type="text" size="small" @click="addOrUpdateHandle(scope.row.purchaseId)">编辑</el-button>
|
|
|
<el-button v-if="isAuth('pur:commDetail:updatePurCommissionDetail') && (Number(scope.row.purchaseState) === 1)" type="text" size="small" @click="outsourceHandle(scope.row)">委外</el-button>
|
|
|
<el-button v-if="isAuth('pur:commDetail:infoPutIn') && (Number(scope.row.purchaseState) === 2)" type="text" size="small" @click="inBound(scope.row)">入库</el-button>
|
|
|
<el-button v-if="isAuth('pur:commDetail:infoPutInAgain') && (Number(scope.row.purchaseState) === 5)" type="text" size="small" @click="inBound(scope.row)">再次入库</el-button>
|
|
@@ -294,33 +294,17 @@ export default {
|
|
|
dataListLoading: false,
|
|
|
dataListSelections: [],
|
|
|
optionsType: [], // 类别
|
|
|
+ // 委外状态
|
|
|
optionsOutsourceState: [
|
|
|
- {
|
|
|
- code: null,
|
|
|
- value: '全部'
|
|
|
- },
|
|
|
- {
|
|
|
- code: '1',
|
|
|
- value: '待委外'
|
|
|
- },
|
|
|
- {
|
|
|
- code: '2',
|
|
|
- value: '委外中'
|
|
|
- },
|
|
|
- {
|
|
|
- code: '3',
|
|
|
- value: '已入库'
|
|
|
- },
|
|
|
- {
|
|
|
- code: '4',
|
|
|
- value: '入库中'
|
|
|
- },
|
|
|
- {
|
|
|
- code: '5',
|
|
|
- value: '入库异常'
|
|
|
- }
|
|
|
- ], // 委外状态
|
|
|
- optionsState: [] // 状态
|
|
|
+ {code: null, value: '全部'},
|
|
|
+ {code: '1', value: '待委外'},
|
|
|
+ {code: '2', value: '委外中'},
|
|
|
+ {code: '3', value: '已入库'},
|
|
|
+ {code: '4', value: '入库中'},
|
|
|
+ {code: '5', value: '入库异常'}
|
|
|
+ ],
|
|
|
+ // 审批状态
|
|
|
+ optionsState: []
|
|
|
}
|
|
|
},
|
|
|
created () {
|