Browse Source

完善出库审核分页列表中状态字段,办理按钮按照状态判断是否显示

zhanglei
yunuo970428 3 years ago
parent
commit
80edeeb001
  1. 13
      anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenhe.vue
  2. 2
      anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenheTodo.vue

13
anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenhe.vue

@ -47,14 +47,14 @@
<el-table-column fixed width="150px" label="操作" align="center">
<template slot-scope="scope">
<div class="searchbtns">
<el-button v-show="scope.row.state === '已通过' ? false : scope.row.state === '未通过' ? false : true" size="small" type="primary" @click="handleCheck(scope.row)">办理</el-button>
<el-button v-show="scope.row.nodeState !== '已办结' && scope.row.nodeState !== '已终止'" size="small" type="primary" @click="handleCheck(scope.row)">办理</el-button>
<el-button size="small" type="primary" @click="handleLooK(scope.row)">查看</el-button>
</div>
</template>
</el-table-column>
<el-table-column label="状态" align="center">
<template slot-scope="scope">
<span>{{ scope.row.state }}</span>
<span>{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column label="合同编号" align="center">
@ -111,6 +111,7 @@ export default {
},
data() {
return {
btndisabled: false,
viewTitle: '',
//
isSearchShow: false,
@ -121,8 +122,6 @@ export default {
customerList: [],
list: [],
sids: [], // SIDs
sides: '',
state_list: [],
FormLoading: false,
listLoading: false,
typeList: [], //
@ -211,13 +210,9 @@ export default {
row.forEach((element) => {
aa.push(element.sid)
setuser(this.sids) // sids
bb.push(element.state)
})
this.sids = aa
this.sides = this.sids.join() // sid
this.state_list = bb
console.log('sids数组', this.sids)
console.log('sides字符串', this.sides)
},
//
handleFilter() {
@ -266,7 +261,7 @@ export default {
//
handleCheck(row) {
this.viewState = 2
this.$refs['divInfo'].showInfo(row.sid, row.state)
this.$refs['divInfo'].showInfo(row.sid)
},
handleLooK(row) {
this.viewState = 3

2
anrui-scm/anrui-scm-ui/src/views/examinePage/chukushenhe/chukushenheTodo.vue

@ -240,7 +240,7 @@ export default {
}).then(() => {
const info = {
businessSid: this.temp.sid,
comment: '',
comment: '同意',
instanceId: this.temp.procInstId,
taskId: this.temp.taskId,
orgSidPath: window.sessionStorage.getItem('orgSidPath'),

Loading…
Cancel
Save