This commit is contained in:
zhutianqi
2022-01-17 15:39:59 +08:00
parent 80d5b346e2
commit 606de7167d
2 changed files with 58 additions and 15 deletions
@@ -279,7 +279,6 @@
} }
this.form.responUserList = idList; this.form.responUserList = idList;
this.form.responUserListName = nameList; this.form.responUserListName = nameList;
}, },
choiceZRR() { choiceZRR() {
this.nodeList = []; this.nodeList = [];
@@ -50,6 +50,16 @@
- - - -
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="审批领导" prop="user7" class="add-form-item form-item-disabled">
<el-input
v-model="form.user7"
style="display: none;"
clearable
></el-input>
<van-cell-group>
<van-field v-model="form.user7Name" readonly @click.native="choiceZRR"/>
</van-cell-group>
</el-form-item>
</div> </div>
</el-form> </el-form>
<ProcessTitle> <ProcessTitle>
@@ -179,6 +189,13 @@
<van-dialog v-model="itermsConditionsFlag" title="条款内容" @confirm="dialogOk"> <van-dialog v-model="itermsConditionsFlag" title="条款内容" @confirm="dialogOk">
<div v-html="itermsConditionsTitle"></div> <div v-html="itermsConditionsTitle"></div>
</van-dialog> </van-dialog>
<phone-role
check-more
role-title="选择审批领导"
:is-show-phone.sync="modalshowflag"
@checkedRole="checkedRole2"
:result-list="nodeList"
/>
</div> </div>
</template> </template>
@@ -230,6 +247,8 @@
textType: '', textType: '',
modelList: [], modelList: [],
modelNameList: '', modelNameList: '',
user7: '',
user7Name: '',
}, },
formRules: { formRules: {
responUserList: [ responUserList: [
@@ -246,6 +265,29 @@
ProcessTitle ProcessTitle
}, },
methods: { methods: {
checkedRole2(data) {
var idList = "";
var nameList = "";
if (data.length) {
data.forEach(item => {
if (nameList.length > 0) {
nameList += ",";
idList += ",";
}
idList += item.id;
nameList += item.name;
});
}
this.form.user7 = idList;
this.form.user7Name = nameList;
},
choiceZRR() {
this.nodeList = [];
if (this.form.user7.length > 0) {
this.nodeList = this.form.user7.split(",");
}
this.modalshowflag = true;
},
dialogOk () { dialogOk () {
this.itermsConditionsFlag = false this.itermsConditionsFlag = false
}, },
@@ -362,20 +404,22 @@
}, },
handleSubmit() { handleSubmit() {
this.isSubmit = true; this.isSubmit = true;
var json = this.json; var json = this.json;
json.hqFlag = '0'; json.hqFlag = '0';
json.commentText = this.commentText; json.user7 = this.form.user7;
this.$http.post("lawss/activiti/completeTask", { json.user7Name = this.form.user7Name;
json: JSON.stringify(json), json.commentText = this.commentText;
taskId: this.taskIds, this.$http.post("lawss/activiti/completeTask", {
userId: this.$store.getters.userInfo.userId json: JSON.stringify(json),
}, {}, res => { taskId: this.taskIds,
if (res.success) { userId: this.$store.getters.userInfo.userId
this.$message.success("提交成功"); }, {}, res => {
this.$router.push("/processCenter"); if (res.success) {
} this.$message.success("提交成功");
this.isSubmit = false; this.$router.push("/processCenter");
}); }
this.isSubmit = false;
});
}, },
handleSubmitNo() { handleSubmitNo() {
if (this.commentText) { if (this.commentText) {