|
|
@ -301,7 +301,7 @@ |
|
|
|
} |
|
|
|
], |
|
|
|
dialogVisible: false, |
|
|
|
updateAction: '/api/report' + '/projectdaily/uploadfile', |
|
|
|
updateAction: process.env.VUE_APP_BASE_API+'/projectdaily/uploadfile', |
|
|
|
showSelectButton: false, |
|
|
|
currentLogSid: '', |
|
|
|
ychzFilePath: '', |
|
|
@ -387,6 +387,7 @@ |
|
|
|
this.$refs['btnbar'].setButtonList(this.btnList) |
|
|
|
}, |
|
|
|
created() { |
|
|
|
console.log("process.env.VUE_APP_URL",process.env.VUE_APP_BASE_API) |
|
|
|
this.initData() |
|
|
|
this.loadList() |
|
|
|
}, |
|
|
@ -439,16 +440,23 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
initData() { |
|
|
|
req.projectListAll().then(res => { |
|
|
|
this.projectList = res.data |
|
|
|
this.projectDaily.projectSid = this.projectList[0].sid |
|
|
|
this.projectDaily.projectName = this.projectList[0].entryName |
|
|
|
this.projectDaily.totalLoan = Number(this.projectList[0].creditLimit) |
|
|
|
this.projectDaily.useLimit = Number(this.projectList[0].useLimit) |
|
|
|
this.projectDaily.accountsBalance = this.projectList[0].balance |
|
|
|
console.log('projectList:', res) |
|
|
|
console.log('projectList:', this.projectList[0]) |
|
|
|
console.log('projectDaily:', this.projectDaily) |
|
|
|
req.projectdailyistAll().then(res => { |
|
|
|
|
|
|
|
if (res.data.length > 0) { |
|
|
|
this.projectList = res.data |
|
|
|
|
|
|
|
this.projectDaily.projectSid = this.projectList[0].sid |
|
|
|
this.projectDaily.projectName = this.projectList[0].entryName |
|
|
|
this.projectDaily.totalLoan = Number(this.projectList[0].creditLimit) |
|
|
|
this.projectDaily.useLimit = Number(this.projectList[0].useLimit) |
|
|
|
this.projectDaily.accountsBalance = this.projectList[0].balance |
|
|
|
|
|
|
|
console.log('projectList:', res) |
|
|
|
console.log('projectList:', this.projectList[0]) |
|
|
|
console.log('projectDaily:', this.projectDaily) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}).catch(e => { |
|
|
|
console.log('projectListAll--ee:', e) |
|
|
@ -541,9 +549,13 @@ |
|
|
|
this.projectDaily.sid = '' |
|
|
|
this.projectDaily.remarks = '' // 备注说明', |
|
|
|
this.projectDaily.orderDate = parseTime(new Date(), '{y}-{m}-{d}') // 单据日期', |
|
|
|
this.projectDaily.projectSid = this.projectList[0].sid // 项目Sid', |
|
|
|
this.projectDaily.projectName = this.projectList[0].entryName // 项目名称', |
|
|
|
this.projectDaily.totalLoan = Number(this.projectList[0].creditLimit) // 贷款总额', |
|
|
|
// this.projectDaily.projectSid = this.projectList[0].sid // 项目Sid', |
|
|
|
// this.projectDaily.projectName = this.projectList[0].entryName // 项目名称', |
|
|
|
// this.projectDaily.totalLoan = Number(this.projectList[0].creditLimit) // 贷款总额', |
|
|
|
this.projectDaily.projectSid = "" // 项目Sid', |
|
|
|
this.projectDaily.projectName = "" // 项目名称', |
|
|
|
this.projectDaily.totalLoan = "" // 贷款总额', |
|
|
|
|
|
|
|
// this.projectDaily.accountsBalance = Number(this.projectList[0].balance) // 帐户余额', |
|
|
|
this.projectDaily.accountsReceivable = 0 // 应收账款', |
|
|
|
this.projectDaily.stockAmount = 0 // 库存货值', |
|
|
|