|
@@ -40,7 +40,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" @click="newAcquisition(scope.$index, scope.row,'查看')">查看</el-button>
|
|
|
<el-button v-if="scope.row.status!='审核中'" size="mini" @click="newAcquisition(scope.$index, scope.row,'编辑')">编辑</el-button>
|
|
|
- <el-button v-if="scope.row.status=='审核中'" size="mini" :disabled="!userJurisdiction" @click="newAcquisition(scope.$index, scope.row,'编辑')">审核中</el-button>
|
|
|
+ <el-button v-if="scope.row.status=='审核中'" size="mini" :disabled="!userJurisdictionAudit" @click="newAcquisition(scope.$index, scope.row,'审核中')">审核中</el-button>
|
|
|
<el-button size="mini" :disabled="!userJurisdiction" type="danger" @click="delRow(scope.$index, scope.row)">删除</el-button>
|
|
|
<el-button size="mini" @click="print(scope.$index, scope.row)">打印</el-button>
|
|
|
</template>
|
|
@@ -102,13 +102,12 @@
|
|
|
},
|
|
|
computed() {},
|
|
|
created() {
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
methods: {
|
|
|
getUserJurisdiction(){
|
|
|
this.userJurisdiction = getHp('acquisitionManagement.acquisition.view')
|
|
|
this.userJurisdictionAllow = getHp('acquisitionManagement.acquisition.allow')
|
|
|
+ this.userJurisdictionAudit = getHp('acquisitionManagement.acquisition.view')
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
console.log(`每页 ${val} 条`)
|
|
@@ -154,22 +153,13 @@
|
|
|
goodsNameList: this.goodsNameList
|
|
|
}
|
|
|
break
|
|
|
- case '编辑':
|
|
|
+ default:
|
|
|
_query = {
|
|
|
data: JSON.stringify(row),
|
|
|
type: type,
|
|
|
goodsNameList: this.goodsNameList
|
|
|
}
|
|
|
break
|
|
|
- case "查看":
|
|
|
- _query = {
|
|
|
- data: JSON.stringify(row),
|
|
|
- type: type,
|
|
|
- goodsNameList: this.goodsNameList
|
|
|
- }
|
|
|
- break
|
|
|
- default:
|
|
|
- break
|
|
|
}
|
|
|
this.$router.push({
|
|
|
name: 'acquisitionManagementAdd',
|