|
@@ -836,6 +836,10 @@ export default {
|
|
if(that.processData.businessTable == 'material_apply'){
|
|
if(that.processData.businessTable == 'material_apply'){
|
|
that.$refs.KFB.setData({department:jnDeparment})
|
|
that.$refs.KFB.setData({department:jnDeparment})
|
|
}
|
|
}
|
|
|
|
+ //技能博物馆-合同管理-创建部门
|
|
|
|
+ if(that.processData.businessTable == 'bwg_contract_management'){
|
|
|
|
+ that.$refs.KFB.setData({create_department:jnDeparment})
|
|
|
|
+ }
|
|
//技能博物馆-物料申领
|
|
//技能博物馆-物料申领
|
|
if(that.processData.businessTable == 'application_form'){
|
|
if(that.processData.businessTable == 'application_form'){
|
|
that.$refs.KFB.setData({create_department:jnDeparment})
|
|
that.$refs.KFB.setData({create_department:jnDeparment})
|
|
@@ -1306,6 +1310,16 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //技能博物馆-项目合同管理-承办部门
|
|
|
|
+ if(key == 'undertaker' &&this.processData.businessTable == 'bwg_contract_management'){
|
|
|
|
+ this.dynamicData.personListJn.map(item =>{
|
|
|
|
+ if(item.label == value){
|
|
|
|
+ this.$refs.KFB.setData({undertaker_department:item.departIds_dictText})
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
//技能博物馆-合同管理-项目预算
|
|
//技能博物馆-合同管理-项目预算
|
|
if(key == 'project_name' &&this.processData.businessTable == 'bwg_contract_management'){
|
|
if(key == 'project_name' &&this.processData.businessTable == 'bwg_contract_management'){
|
|
this.dynamicData.fundApproval.map(item =>{
|
|
this.dynamicData.fundApproval.map(item =>{
|
|
@@ -1692,12 +1706,19 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(this.processData.businessTable == 'bwg_contract_management'){//技能博物馆-合同管理-自动生成单号
|
|
|
|
|
|
+ if(this.processData.businessTable == 'bwg_contract_management'){//技能博物馆-合同管理-自动生成合同单号
|
|
if( this.processData.tableId==''|| !this.processData.tableId){
|
|
if( this.processData.tableId==''|| !this.processData.tableId){
|
|
- await this.getAction('/sys/user/getNextNo',{name:'FK'}).then(res => {
|
|
|
|
|
|
+ await this.getAction('/sys/user/getNextNo',{name:'XMHT'}).then(res => {
|
|
formData.contract_number=res
|
|
formData.contract_number=res
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+ if(this.processData.businessTable == 'bwg_contract_management'){//技能博物馆-合同管理-自动生成单据号
|
|
|
|
+ if( this.processData.tableId==''|| !this.processData.tableId){
|
|
|
|
+ await this.getAction('/sys/user/getNextNo',{name:'XMHT'}).then(res => {
|
|
|
|
+ formData.document_number=res
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.btndisabled = true
|
|
this.btndisabled = true
|
|
await postFormDataAction(url, formData, { jsonContent: jsonPamats })
|
|
await postFormDataAction(url, formData, { jsonContent: jsonPamats })
|