master
lion 5 months ago
parent e96c9d352b
commit 9c3920d2d3

@ -3,7 +3,7 @@ ENV = 'development'
# base api # base api
VUE_APP_DOMIAN=http://192.168.60.99:8003/ VUE_APP_DOMIAN=http://192.168.60.99:9003/
VUE_APP_BASE_API = '' VUE_APP_BASE_API = ''
VUE_APP_UPLOAD=http://192.168.60.99:8003/api/admin/upload-file VUE_APP_UPLOAD=http://192.168.60.99:8003/api/admin/upload-file
VUE_APP_OUT_URL = http://192.168.60.18:8001 VUE_APP_OUT_URL = http://192.168.60.18:8001

@ -129,7 +129,7 @@
<span v-else> <span v-else>
{{ {{
item.prop.indexOf(".") > -1 item.prop.indexOf(".") > -1
? scope.row[item.prop.split(".")[0]][item.prop.split(".")[1]] ? (scope.row[item.prop.split(".")[0]] && scope.row[item.prop.split(".")[0]][item.prop.split(".")[1]]) || ''
: scope.row[item.prop] : scope.row[item.prop]
}} }}
</span> </span>

@ -1197,8 +1197,10 @@ export default {
previousPaymentValue = parseFloat(contextData.other_data_fill[previousPaymentField.link_field]) || 0 previousPaymentValue = parseFloat(contextData.other_data_fill[previousPaymentField.link_field]) || 0
} }
// currentPayment totalPaid totalPlanned // currentPayment totalPlanned使
const currentPaymentValue = parseFloat(this.paymentRegistrationForm.deductionMoney) || 0 const currentPaymentValue = parseFloat(this.paymentRegistrationForm.deductionMoney) || 0
// totalPaid使
const currentApplyMoneyValue = parseFloat(this.paymentRegistrationForm.applyMoney) || 0
// //
fields.forEach(field => { fields.forEach(field => {
@ -1217,8 +1219,16 @@ export default {
field.value = this.paymentRegistrationForm.type || '' field.value = this.paymentRegistrationForm.type || ''
console.log('currentPaymentRemark field value:', field.value, 'from paymentRegistrationForm.type:', this.paymentRegistrationForm.type) console.log('currentPaymentRemark field value:', field.value, 'from paymentRegistrationForm.type:', this.paymentRegistrationForm.type)
} else if (field.field === 'totalPaid') { } else if (field.field === 'totalPaid') {
// previousPayment + currentPayment // link_field previousPayment + applyMoney
const totalPaidValue = previousPaymentValue + currentPaymentValue let baseValue = 0
// field.link_field
if (field.link_field && contextData && contextData.other_data_fill && contextData.other_data_fill[field.link_field]) {
baseValue = parseFloat(contextData.other_data_fill[field.link_field]) || 0
} else if (previousPaymentValue > 0) {
// field.link_field 使 previousPayment
baseValue = previousPaymentValue
}
const totalPaidValue = baseValue + currentApplyMoneyValue
field.value = totalPaidValue.toString() field.value = totalPaidValue.toString()
} else if (field.field === 'totalPlanned') { } else if (field.field === 'totalPlanned') {
// other_data_fill + currentPayment // other_data_fill + currentPayment

@ -148,7 +148,7 @@
<el-col v-if="sitem[0]" :span="12" style="padding-right:10px"> <el-col v-if="sitem[0]" :span="12" style="padding-right:10px">
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="box-card-header"> <div slot="header" class="box-card-header">
<SvgIcon style="color: #2D8cF0;width: 24px;height: 24px;" icon-class="caidan" /> <SvgIcon style="color: #2D8cF0;width: 24px;height: 24px;" icon-class="caidan" />
<!-- sitem[0].type_detail?sitem[0].type_detail.name: --> <!-- sitem[0].type_detail?sitem[0].type_detail.name: -->
<span style="padding-left:10px;">{{ sitem[0].type_text }}</span> <span style="padding-left:10px;">{{ sitem[0].type_text }}</span>
<i class="el-icon-more" style="margin-left: auto; font-size: 20px" /> <i class="el-icon-more" style="margin-left: auto; font-size: 20px" />
@ -262,7 +262,7 @@
</template> </template>
</xy-table> </xy-table>
<div> <div v-if="sitem[2]">
<div slot="header" class="box-card-header" style="padding-bottom:11px"> <div slot="header" class="box-card-header" style="padding-bottom:11px">
<SvgIcon style="color: #2D8cF0;width: 24px;height: 24px;" icon-class="caidan" /> <SvgIcon style="color: #2D8cF0;width: 24px;height: 24px;" icon-class="caidan" />
<span style="padding-left:10px;">{{ sitem[2].type_text }}</span> <span style="padding-left:10px;">{{ sitem[2].type_text }}</span>
@ -1347,21 +1347,21 @@ export default {
const res = await statistic(this.select) const res = await statistic(this.select)
this.statistic = res this.statistic = res
if (res.typeList) { if (res.typeList) {
var arr = [] const arr = []
for (var i = 0; i < res.typeList.length; i = i + 3) { for (let i = 0; i < res.typeList.length; i += 3) {
if (res.typeList[i]) { const group = []
res.typeList[i].per = this.getPer(res.typeList[i]) // 3
// arr.push(res.typeList[i]) for (let j = 0; j < 3; j++) {
} const item = res.typeList[i + j]
if (res.typeList[i + 1]) { if (item) {
res.typeList[i + 1].per = this.getPer(res.typeList[i + 1]) item.per = this.getPer(item)
// arr.push(res.typeList[i + 1]) group.push(item)
}
} }
if (res.typeList[i + 2]) { //
res.typeList[i + 2].per = this.getPer(res.typeList[i + 2]) if (group.length > 0) {
// arr.push(res.typeList[i + 1]) arr.push(group)
} }
arr.push([res.typeList[i], res.typeList[i + 1],res.typeList[i + 2]])
} }
this.typeList = arr this.typeList = arr
} }

Loading…
Cancel
Save