修改发起流程
This commit is contained in:
@@ -44,8 +44,8 @@
|
||||
:rules="assignFormRules" class="label-input-form" size="medium">
|
||||
<el-row>
|
||||
<el-col :span="9">
|
||||
<el-form-item label="选择一级审批人员:" prop="name1">
|
||||
<el-input readonly :disabled="formControl" v-model="assignForm.name1" @click.native="handleCheck('spr1')"
|
||||
<el-form-item label="选择一级审批人员:" prop="oneApprove">
|
||||
<el-input readonly :disabled="formControl" v-model="assignForm.oneApproveName" @click.native="handleCheck('spr1')"
|
||||
placeholder="请选择一级审批人员"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -53,11 +53,11 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="9" >
|
||||
<el-form-item label="选择二级审批人员:" prop="name2">
|
||||
<el-input readonly :disabled="formControl" v-model="assignForm.name2" @click.native="handleCheck('spr2')"
|
||||
<el-form-item label="选择二级审批人员:" prop="twoApprove">
|
||||
<el-input readonly :disabled="formControl" v-model="assignForm.twoApproveName" @click.native="handleCheck('spr2')"
|
||||
placeholder="请选择二级审批人员"></el-input>
|
||||
<!-- <el-input v-model="assignForm.name2" placeholder="请选择二级审批人员"></el-input>-->
|
||||
<!-- <el-select v-model="assignForm.name2"-->
|
||||
<!-- <el-input v-model="assignForm.twoApprove" placeholder="请选择二级审批人员"></el-input>-->
|
||||
<!-- <el-select v-model="assignForm.twoApprove"-->
|
||||
<!-- class="icon-auth"-->
|
||||
<!-- multiple-->
|
||||
<!-- collapse-tags-->
|
||||
@@ -128,8 +128,8 @@ export default {
|
||||
isShowSubmit: true,
|
||||
formControl: false,
|
||||
assignForm: {
|
||||
name1: '',
|
||||
name2: ''
|
||||
oneApprove: '',
|
||||
twoApprove: ''
|
||||
},
|
||||
tableData: [],
|
||||
applicationForm: {},
|
||||
@@ -148,12 +148,12 @@ export default {
|
||||
}]
|
||||
},
|
||||
assignFormRules: {
|
||||
name1: [{
|
||||
oneApprove: [{
|
||||
required: true,
|
||||
message: '请选择一级审批人员',
|
||||
trigger: 'change'
|
||||
}],
|
||||
name2: [{
|
||||
twoApprove: [{
|
||||
required: true,
|
||||
message: '请选择二级审批人员',
|
||||
trigger: 'change'
|
||||
@@ -179,11 +179,11 @@ export default {
|
||||
this.orgTableVal = ''
|
||||
this.orgTableValName = ''
|
||||
if (name === 'spr1') {
|
||||
this.orgTableVal = this.assignForm.name1Id
|
||||
this.orgTableValName = this.assignForm.name1
|
||||
this.orgTableVal = this.assignForm.Approve
|
||||
this.orgTableValName = this.assignForm.oneApproveName
|
||||
} else {
|
||||
this.orgTableVal = this.assignForm.name2Id
|
||||
this.orgTableValName = this.assignForm.name2
|
||||
this.orgTableVal = this.assignForm.twoApprove
|
||||
this.orgTableValName = this.assignForm.twoApproveName
|
||||
}
|
||||
this.visibleOrgTable = true
|
||||
},
|
||||
@@ -199,13 +199,13 @@ export default {
|
||||
})
|
||||
this.qcrList = checkedList
|
||||
if (this.treeType === 'spr1') {
|
||||
this.assignForm.name1Id = parts.toString()
|
||||
this.assignForm.name1 = partsName.toString()
|
||||
this.assignForm.oneApprove = parts.toString()
|
||||
this.assignForm.oneApproveName = partsName.toString()
|
||||
} else if (this.treeType === 'spr2') {
|
||||
this.assignForm.name2Id = parts.toString()
|
||||
this.assignForm.name2 = partsName.toString()
|
||||
this.assignForm.twoApprove = parts.toString()
|
||||
this.assignForm.twoApproveName = partsName.toString()
|
||||
}
|
||||
console.log(this.assignForm.name1Id, this.assignForm.name2Id)
|
||||
// console.log(this.assignForm.name1Id, this.assignForm.name2Id)
|
||||
},
|
||||
// 获取表格列表 吧查询到的值传给子组件
|
||||
reportList (ids) {
|
||||
@@ -217,8 +217,8 @@ export default {
|
||||
this.applicationForm = {
|
||||
}
|
||||
this.assignForm = {
|
||||
name1: '',
|
||||
name2: ''
|
||||
oneApprove: '',
|
||||
twoApprove: ''
|
||||
}
|
||||
this.$refs.applicationFormRef.clearValidate()
|
||||
this.$refs.assignFormRef.clearValidate()
|
||||
@@ -230,7 +230,7 @@ export default {
|
||||
if (v && m) {
|
||||
// 过了校验 需要把数据都整合 this.tableData this.applicationForm this.assignForm
|
||||
// 表格数据没有不能提交 需要提示
|
||||
if (this.tableData.length > 0) {
|
||||
if (this.tableData.length == 0) {
|
||||
this.$message.warning('至少需要选择一条报告数据')
|
||||
} else {
|
||||
// 调用流程数据
|
||||
|
||||
Reference in New Issue
Block a user