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