|
@@ -208,7 +208,7 @@
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="item in ContractSection[key]"
|
|
|
|
|
|
+ v-for="item in form.signPfxDeputieList[key].contractList"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.id"
|
|
:value="item.id"
|
|
@@ -381,16 +381,25 @@ export default {
|
|
this.form.signatureFileUrl = [file]
|
|
this.form.signatureFileUrl = [file]
|
|
},
|
|
},
|
|
pushSignPfxDeputieList () {//添加关联项目
|
|
pushSignPfxDeputieList () {//添加关联项目
|
|
- this.form.signPfxDeputieList.unshift({
|
|
|
|
|
|
+ // this.form.signPfxDeputieList.unshift({
|
|
|
|
+ // projectId: '',
|
|
|
|
+ // contractId: '',
|
|
|
|
+ // roleId: '',
|
|
|
|
+ // })
|
|
|
|
+
|
|
|
|
+ this.form.signPfxDeputieList.push({
|
|
projectId: '',
|
|
projectId: '',
|
|
contractId: '',
|
|
contractId: '',
|
|
roleId: '',
|
|
roleId: '',
|
|
|
|
+ contractList: []
|
|
})
|
|
})
|
|
|
|
+
|
|
},
|
|
},
|
|
focusContractSection (projectId, key) {//获取合同段数据
|
|
focusContractSection (projectId, key) {//获取合同段数据
|
|
this.projectMeiju.forEach(val => {
|
|
this.projectMeiju.forEach(val => {
|
|
if (val.id == projectId) {
|
|
if (val.id == projectId) {
|
|
- this.ContractSection[key] = val.contractInfoList
|
|
|
|
|
|
+ // this.ContractSection[key] = val.contractInfoList
|
|
|
|
+ this.form.signPfxDeputieList[key].contractList = val.contractInfoList
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -436,10 +445,21 @@ export default {
|
|
console.log(res);
|
|
console.log(res);
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.projectMeiju = res.data
|
|
this.projectMeiju = res.data
|
|
- this.form.signPfxDeputieList.forEach((val, key) => {
|
|
|
|
- this.ContractSection.push(res.data[key].contractInfoList)
|
|
|
|
- })
|
|
|
|
- console.log(this.ContractSection);
|
|
|
|
|
|
+ // this.form.signPfxDeputieList.forEach((val, key) => {
|
|
|
|
+ // this.ContractSection.push(res.data[key].contractInfoList)
|
|
|
|
+ // })
|
|
|
|
+
|
|
|
|
+ if(this.form.signPfxDeputieList.length > 0){
|
|
|
|
+ this.form.signPfxDeputieList.forEach((val, key) => {
|
|
|
|
+ this.projectMeiju.forEach((project, key) => {
|
|
|
|
+ if(val.projectId == project.id){
|
|
|
|
+ val.contractList = project.contractInfoList;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ console.log(this.form.signPfxDeputieList);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async findPfxType () {
|
|
async findPfxType () {
|