标准/译文申请 回显/批量操作
This commit is contained in:
+3
-3
@@ -71,17 +71,17 @@
|
||||
<div class="content">{{ StandardApplyForEO.reason ? StandardApplyForEO.reason : '--' }}</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="12" v-show="StandardApplyForEO.status !== 'pendingApproval' && StandardApplyForEO.status !== 'Staging'">
|
||||
<el-form-item label="审批人" label-width="100px" class="add-form-item">
|
||||
<div class="content">{{ StandardApplyForEO.applyForUserName ? StandardApplyForEO.applyForUserName : '--' }}</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="12" v-show="StandardApplyForEO.status !== 'pendingApproval' && StandardApplyForEO.status !== 'Staging'">
|
||||
<el-form-item label="审批时间" label-width="100px" class="add-form-item">
|
||||
<div class="content">{{ StandardApplyForEO.approveTime ? StandardApplyForEO.approveTime : '--' }}</div>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-col :span="24" v-show="StandardApplyForEO.status !== 'pendingApproval' && StandardApplyForEO.status !== 'Staging'">
|
||||
<el-form-item label="驳回理由" label-width="100px" class="add-form-item">
|
||||
<div class="content">{{ StandardApplyForEO.refuseCause ? StandardApplyForEO.refuseCause : '--' }}</div>
|
||||
</el-form-item>
|
||||
|
||||
+1
-1
@@ -171,7 +171,7 @@ export default {
|
||||
this.$emit('updateIndexList')
|
||||
},
|
||||
toView (item) {
|
||||
this.$refs.addModalRef.showModal(item)
|
||||
this.$refs.detailModalRef.showModal(item)
|
||||
},
|
||||
edit (item) {
|
||||
this.$refs.addModalRef.showModal(item)
|
||||
|
||||
@@ -204,6 +204,7 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
tableLoading: false,
|
||||
selectedTag: true,
|
||||
total: 0,
|
||||
StandardApplyForEOPage: {
|
||||
page: 1,
|
||||
@@ -254,7 +255,7 @@ export default {
|
||||
methods: {
|
||||
ResubmitOrWithdraw (id, status) {
|
||||
const query = {
|
||||
status: status,
|
||||
status: status ? status : '',
|
||||
ids: id
|
||||
}
|
||||
this.$http.postData('/lawss/standardApplyFor/batchUpdateStatus', query, { _this: this }, res => {
|
||||
@@ -351,6 +352,14 @@ export default {
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!this.selectedTag) {
|
||||
this.$message({
|
||||
message: '只能选择待审批的数据,请重新选择',
|
||||
type: 'warning',
|
||||
offset: 20
|
||||
})
|
||||
return
|
||||
}
|
||||
const ids = id.join(',')
|
||||
this.$confirm('确定通过?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
@@ -381,6 +390,14 @@ export default {
|
||||
})
|
||||
return
|
||||
}
|
||||
if (!this.selectedTag) {
|
||||
this.$message({
|
||||
message: '只能选择待审批的数据,请重新选择',
|
||||
type: 'warning',
|
||||
offset: 20
|
||||
})
|
||||
return
|
||||
}
|
||||
const ids = id.join(',')
|
||||
this.$prompt('请输入驳回原因', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
@@ -466,6 +483,10 @@ export default {
|
||||
const ids = []
|
||||
value.forEach(item => {
|
||||
ids.push(item.id)
|
||||
this.selectedTag = true
|
||||
if (item.status !== 'pendingApproval') {
|
||||
this.selectedTag = false
|
||||
}
|
||||
})
|
||||
this.selectedList = [ ...ids ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user