提交代码

dev_xds
姜玉琦 2024-07-04 23:23:47 +08:00
parent e6da0628fa
commit 1957fcde25
2 changed files with 58 additions and 45 deletions

View File

@ -40,7 +40,11 @@
> >
</el-option> </el-option>
</el-select> --> </el-select> -->
<el-tag v-for="(item, index) in projectOptions" v-if="item.id==form.businessKey">{{item.projectName}}</el-tag> <el-tag
v-for="(item, index) in projectOptions"
v-if="item.id == form.businessKey"
>{{ item.projectName }}</el-tag
>
</el-form-item> </el-form-item>
<el-form-item label="发起单位"> <el-form-item label="发起单位">
{{ deptName }} {{ deptName }}
@ -103,11 +107,7 @@
placeholder="请输入分包单位项目经理" placeholder="请输入分包单位项目经理"
/> />
</el-form-item> </el-form-item>
<el-form-item <el-form-item v-if="fbAptitude" label="身份证号" prop="subDeptCustodianCardId">
v-if="fbAptitude"
label="身份证号"
prop="subDeptCustodianCardId"
>
<el-input <el-input
v-model="form.subDeptCustodianCardId" v-model="form.subDeptCustodianCardId"
placeholder="请输入分包单位项目经理身份证号" placeholder="请输入分包单位项目经理身份证号"
@ -159,7 +159,7 @@
rows="5" rows="5"
/> />
</el-form-item> </el-form-item>
<div style="text-align: center;margin-bottom: 20px;"> <div style="text-align: center; margin-bottom: 20px">
<el-button type="primary" @click="submitForm"></el-button> <el-button type="primary" @click="submitForm"></el-button>
<el-button @click="doCanel"> </el-button> <el-button @click="doCanel"> </el-button>
</div> </div>
@ -197,7 +197,7 @@ export default {
projectName: "", projectName: "",
files: "", files: "",
remark: "", remark: "",
subDeptScope:[], subDeptScope: [],
}, },
// //
rules: { rules: {
@ -275,10 +275,10 @@ export default {
taskOpen: false, taskOpen: false,
daterangeMarksTime: [], daterangeMarksTime: [],
fbAptitude: false, fbAptitude: false,
persChangeList1: ['flow_xmglzdl_xmzbdwrybg','flow_xmglzdl_xmjldwrybg'], persChangeList1: ["flow_xmglzdl_xmzbdwrybg", "flow_xmglzdl_xmjldwrybg"],
persChangeList2: ['flow_xmglzdl_xmjlzjrybg','flow_xmglzdl_xmzbjlrybg'], persChangeList2: ["flow_xmglzdl_xmjlzjrybg", "flow_xmglzdl_xmzbjlrybg"],
persChange1: false, persChange1: false,
persChange2: false persChange2: false,
}; };
}, },
computed: {}, computed: {},
@ -295,7 +295,6 @@ export default {
return; return;
} }
}); });
}, },
doCanel() { doCanel() {
this.onOpen = false; this.onOpen = false;
@ -303,17 +302,25 @@ export default {
show(options) { show(options) {
this.options = options; this.options = options;
this.onOpen = true; this.onOpen = true;
this.fbAptitude = false;
this.persChange1 = false;
this.persChange2 = false;
this.title = options.procDefName; this.title = options.procDefName;
// //
if (options.procDefKey == "flow_fbzzsp_fbszzsp") { if (options.procDefKey == "flow_fbzzsp_fbszzsp") {
this.fbAptitude = true; this.fbAptitude = true;
} }else if (
if (this.persChangeList1.indexOf(options.flowKey)){ options.procDefKey == "flow_xmglzdl_xmzbdwrybg" ||
options.procDefKey == "flow_xmglzdl_xmjldwrybg"
) {
this.persChange1 = true; this.persChange1 = true;
} }else if (
if (this.persChangeList2.indexOf(options.flowKey)){ options.procDefKey == "flow_xmglzdl_xmjlzjrybg" ||
options.procDefKey == "flow_xmglzdl_xmzbjlrybg"
) {
this.persChange2 = true; this.persChange2 = true;
} }
console.log("procDefKey==>"+options.procDefKey);
this.initFormDate(options.procInsId); this.initFormDate(options.procInsId);
flowXmlAndNode({ procInsId: options.procInsId, deployId: options.deployId }).then( flowXmlAndNode({ procInsId: options.procInsId, deployId: options.deployId }).then(
(res) => { (res) => {
@ -346,8 +353,8 @@ export default {
const params = { procInsId: procInsId }; const params = { procInsId: procInsId };
findFormDatasByProcInsId(params) findFormDatasByProcInsId(params)
.then((res) => { .then((res) => {
if(res.data.subDeptScope){ if (res.data.subDeptScope) {
res.data.subDeptScope = res.data.subDeptScope.split(','); res.data.subDeptScope = res.data.subDeptScope.split(",");
} }
this.form = res.data; this.form = res.data;
this.deptName = this.options.startDeptName; this.deptName = this.options.startDeptName;
@ -378,22 +385,22 @@ export default {
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
let fbAptitudeParams = {}; let fbAptitudeParams = {};
if(this.fbAptitude){ if (this.fbAptitude) {
if(this.form.subDeptScope.length==0){ if (this.form.subDeptScope.length == 0) {
this.$modal.msgError("请至少选择一个分包范围!"); this.$modal.msgError("请至少选择一个分包范围!");
return false; return false;
}else{ } else {
fbAptitudeParams={ fbAptitudeParams = {
subDeptType:this.form.subDeptType, subDeptType: this.form.subDeptType,
subDeptScope:this.form.subDeptScope.toString(), subDeptScope: this.form.subDeptScope.toString(),
subDeptName:this.form.subDeptName, subDeptName: this.form.subDeptName,
subDeptAptitude:this.form.subDeptAptitude, subDeptAptitude: this.form.subDeptAptitude,
subDeptChairman:this.form.subDeptChairman, subDeptChairman: this.form.subDeptChairman,
subDeptSafetyCertificate:this.form.subDeptSafetyCertificate, subDeptSafetyCertificate: this.form.subDeptSafetyCertificate,
subDeptCustodian:this.form.subDeptCustodian, subDeptCustodian: this.form.subDeptCustodian,
subDeptCustodianCardId:this.form.subDeptCustodianCardId, subDeptCustodianCardId: this.form.subDeptCustodianCardId,
subDeptApproachDate:this.form.subDeptApproachDate subDeptApproachDate: this.form.subDeptApproachDate,
} };
} }
} }
this.loading = true; this.loading = true;
@ -403,7 +410,7 @@ export default {
files: this.form.files, files: this.form.files,
remark: this.form.remark, remark: this.form.remark,
INITIATOR: this.form.INITIATOR, INITIATOR: this.form.INITIATOR,
...fbAptitudeParams ...fbAptitudeParams,
}; };
complete(this.form).then((res) => { complete(this.form).then((res) => {
this.$store.dispatch("settingAwaitNum"); this.$store.dispatch("settingAwaitNum");

View File

@ -128,7 +128,7 @@
title="请至少上传报审表,营业执照,安全生产许可证,资质证书,人员证书等!缺少相关附件可能被驳回申请。" title="请至少上传报审表,营业执照,安全生产许可证,资质证书,人员证书等!缺少相关附件可能被驳回申请。"
type="warning" type="warning"
show-icon show-icon
/> >
</el-alert> </el-alert>
<el-alert <el-alert
v-if="persChange1" v-if="persChange1"
@ -269,10 +269,8 @@ export default {
daterangeMarksTime: [], daterangeMarksTime: [],
// //
fbAptitude: false, fbAptitude: false,
persChangeList1: ['flow_xmglzdl_xmzbdwrybg','flow_xmglzdl_xmjldwrybg'],
persChangeList2: ['flow_xmglzdl_xmjlzjrybg','flow_xmglzdl_xmzbjlrybg'],
persChange1: false, persChange1: false,
persChange2: false persChange2: false,
}; };
}, },
computed: {}, computed: {},
@ -311,18 +309,26 @@ export default {
this.options = options; this.options = options;
this.initMyProject(); this.initMyProject();
this.title = options.name; this.title = options.name;
this.fbAptitude = false;
this.persChange1 = false;
this.persChange2 = false;
this.deptName = store.getters.dept.deptName; this.deptName = store.getters.dept.deptName;
this.nickName = store.getters.name; this.nickName = store.getters.name;
// //
if (options.flowKey == "flow_fbzzsp_fbszzsp") { if (options.flowKey == "flow_fbzzsp_fbszzsp") {
this.fbAptitude = true; this.fbAptitude = true;
} }else if (
if (this.persChangeList1.indexOf(options.flowKey)){ options.flowKey == "flow_xmglzdl_xmzbdwrybg" ||
options.flowKey == "flow_xmglzdl_xmjldwrybg"
) {
this.persChange1 = true; this.persChange1 = true;
} }else if (
if (this.persChangeList2.indexOf(options.flowKey)){ options.flowKey == "flow_xmglzdl_xmjlzjrybg" ||
options.flowKey == "flow_xmglzdl_xmzbjlrybg"
) {
this.persChange2 = true; this.persChange2 = true;
} }
console.log("flowKey==>"+options.flowKey);
const self = this; const self = this;
this.onOpen = true; this.onOpen = true;
flowXmlAndNode({ deployId: options.deploymentId }).then((res) => { flowXmlAndNode({ deployId: options.deploymentId }).then((res) => {