[bug] 收入合同关联项目--普通项目科室问题;
This commit is contained in:
@@ -502,6 +502,7 @@ export default {
|
|||||||
this.accountsReceivableNum = record.accountsReceivableAmount
|
this.accountsReceivableNum = record.accountsReceivableAmount
|
||||||
this.amountReceivedNum = record.amountReceived
|
this.amountReceivedNum = record.amountReceived
|
||||||
this.model = Object.assign({}, record)
|
this.model = Object.assign({}, record)
|
||||||
|
this.getUserDetailByUserId()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue(pick(this.model, 'contractNum', 'contractName', 'signedCompany', 'signedContactsId', 'opening', 'principalId', 'departmentName', 'contractAmount', 'rate', 'noTaxAmount', 'contractDate', 'terminationDate', 'contractTimePoints', 'accountsReceivableAmount', 'amountReceived', 'outstandingAmount', 'accountStatus', 'contractPaymentTimes', 'pack', 'packYear'))
|
this.form.setFieldsValue(pick(this.model, 'contractNum', 'contractName', 'signedCompany', 'signedContactsId', 'opening', 'principalId', 'departmentName', 'contractAmount', 'rate', 'noTaxAmount', 'contractDate', 'terminationDate', 'contractTimePoints', 'accountsReceivableAmount', 'amountReceived', 'outstandingAmount', 'accountStatus', 'contractPaymentTimes', 'pack', 'packYear'))
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
@@ -806,21 +807,16 @@ export default {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
// 普通项目
|
// 普通项目
|
||||||
case 1:
|
case 1:
|
||||||
this.getUserDetailByUserId().then(res => {
|
// 混入筛选条件
|
||||||
this.departId = res
|
this.$refs.selectProjectModule.filters = {
|
||||||
// 混入筛选条件
|
chargeCompanyId: this.selectedCompany.id,
|
||||||
this.$refs.selectProjectModule.filters = {
|
contractId: this.contractId
|
||||||
chargeCompanyId: this.selectedCompany.id,
|
// departId: this.departId // 一个用户多部门情况下传给后端第一个部门id
|
||||||
contractId: this.contractId,
|
}
|
||||||
departId: this.departId // 一个用户多部门情况下传给后端第一个部门id
|
// 获取负责人列表
|
||||||
}
|
this.$refs.selectProjectModule.departChange(this.departId)
|
||||||
// 获取负责人列表
|
// 打开弹窗
|
||||||
this.$refs.selectProjectModule.departChange(this.departId)
|
this.$refs.selectProjectModule.open()
|
||||||
// 打开弹窗
|
|
||||||
this.$refs.selectProjectModule.open()
|
|
||||||
}).catch((err) => {
|
|
||||||
this.$message.warn(err)
|
|
||||||
})
|
|
||||||
break
|
break
|
||||||
// 工作组项目
|
// 工作组项目
|
||||||
case 2:
|
case 2:
|
||||||
@@ -855,14 +851,12 @@ export default {
|
|||||||
let param = {
|
let param = {
|
||||||
id: this.model.principalId
|
id: this.model.principalId
|
||||||
}
|
}
|
||||||
return new Promise((resolve, reject) => {
|
queryUserByDepartId(param).then(res => {
|
||||||
queryUserByDepartId(param).then(res => {
|
if (res.success) {
|
||||||
if (res.success) {
|
this.departId = res.result[0].departIds
|
||||||
resolve(res.result[0].departIds)
|
} else {
|
||||||
} else {
|
console.log(res.message)
|
||||||
reject(res.message)
|
}
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ export default {
|
|||||||
requird: false,
|
requird: false,
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
|
// 负责人id
|
||||||
principal: {
|
principal: {
|
||||||
type: String,
|
type: String,
|
||||||
requird: false,
|
requird: false,
|
||||||
@@ -261,7 +262,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 运行年份变化
|
* 运行年份变化
|
||||||
*/
|
*/
|
||||||
@@ -278,7 +278,7 @@ export default {
|
|||||||
// 运行年份默认为当年
|
// 运行年份默认为当年
|
||||||
this.queryParam.year = new Date().getFullYear().toString()
|
this.queryParam.year = new Date().getFullYear().toString()
|
||||||
this.lastQueryParam.year = new Date().getFullYear().toString()
|
this.lastQueryParam.year = new Date().getFullYear().toString()
|
||||||
//
|
// 默认科室、负责人
|
||||||
this.queryParam.principalId = this.principal
|
this.queryParam.principalId = this.principal
|
||||||
this.lastQueryParam.principalId = this.principal
|
this.lastQueryParam.principalId = this.principal
|
||||||
this.queryParam.departId = this.departId
|
this.queryParam.departId = this.departId
|
||||||
|
|||||||
Reference in New Issue
Block a user