|
|
@ -17,35 +17,49 @@ |
|
|
|
<div class="listconadd"> |
|
|
|
<div class="titwu"><span>{{ formobj.checkApply }}单车返利上传核对审核申请</span></div> |
|
|
|
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02"> |
|
|
|
<el-row class="rowStyle"> |
|
|
|
<el-col :span="6" class="colOneStyle"> |
|
|
|
<div class="span-sty" style="border-right: 0px !important;">品牌:</div> |
|
|
|
<el-form-item> |
|
|
|
<el-select class="addinputInfo" :disabled="dialogStatus === 'edit'" v-model="formobj.brandName" placeholder="请选择" filterable clearable @change="changeBrand"> |
|
|
|
<el-option v-for="item in brand_list" :key="item.sid" :label="item.brandName" :value="item.brandName"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-row style="border-top: 1px solid #E0E3EB"> |
|
|
|
<el-col :span="16"> |
|
|
|
<div class="span-sty">申请编号</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.billNo }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="18" class="colOneStyle"> |
|
|
|
<div style="text-align: right"><el-button size="small" type="primary" class="btntopblueline" @click="handleSelect()">添加</el-button></div> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">申请日期</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div class="title"> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">分公司</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createOrgName }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">申请部门</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.deptName }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty">申请人</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<div class="title titleOne"> |
|
|
|
<div>本月上传核对情况(按返利类型统计)</div> |
|
|
|
<el-button size="mini" type="primary" class="btntopblueline" @click="handleSelect()">选择</el-button> |
|
|
|
</div> |
|
|
|
<el-table :key="tableKey" :data="formobj.scmWhenVehrebateCheckapplydetailDetails" :index="index" border style="width: 100%" show-summary :summary-method="getSummaries"> |
|
|
|
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column prop="rebateTypeValue" label="返利类型" align="center" /> |
|
|
|
<el-table-column prop="num" label="数量" align="center" /> |
|
|
|
<el-table-column prop="withRebate" label="预提金额" align="center" /> |
|
|
|
<el-table-column prop="withholdCost" label="其中预提费用" align="center" /> |
|
|
|
<el-table-column prop="uploadMoney" label="上传金额" align="center" /> |
|
|
|
<el-table-column prop="stayDetermineMoney" label="其中待确认金额" align="center" /> |
|
|
|
<el-table-column prop="money" label="其中费用" align="center" /> |
|
|
|
<el-table-column prop="adjustmentMoney" label="返利调整金额" align="center" /> |
|
|
|
<el-table-column prop="fyAdjustmentMoney" label="其中费用调整金额" align="center" /> |
|
|
|
<el-table-column label="明细" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-table-column prop="purchaseSystemName" label="采购系统" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="brandName" label="品牌" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="rebateTypeValue" label="返利类型" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="num" label="数量" align="center" min-width="100" /> |
|
|
|
<el-table-column prop="withRebate" label="预提金额" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="withholdCost" label="其中预提费用" align="center" min-width="140" /> |
|
|
|
<el-table-column prop="uploadMoney" label="上传金额" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="stayDetermineMoney" label="其中待确认金额" align="center" min-width="150" /> |
|
|
|
<el-table-column prop="money" label="其中费用" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="adjustmentMoney" label="返利调整金额" align="center" min-width="140" /> |
|
|
|
<el-table-column prop="fyAdjustmentMoney" label="其中费用调整金额" align="center" min-width="160" /> |
|
|
|
<el-table-column label="明细" align="center" min-width="100"> |
|
|
|
<template> |
|
|
|
<el-button type="primary" size="mini" @click="handleLook()">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -53,17 +67,19 @@ |
|
|
|
<div class="title">本月上传核对情况(按预提年月统计)</div> |
|
|
|
<el-table :key="lastVehrebateKey" :data="formobj.scmLastVehrebateCheckapplydetailDetails" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column prop="withholdingDate" label="预提年月" align="center" /> |
|
|
|
<el-table-column prop="num" label="预提数量" align="center" /> |
|
|
|
<el-table-column prop="withRebate" label="预提金额" align="center" /> |
|
|
|
<el-table-column prop="withholdCost" label="其中预提费用" align="center" /> |
|
|
|
<el-table-column prop="uploadMoney" label="上传金额" align="center" /> |
|
|
|
<el-table-column prop="stayDetermineMoney" label="其中待确认金额" align="center" /> |
|
|
|
<el-table-column prop="money" label="其中费用" align="center" /> |
|
|
|
<el-table-column prop="adjustmentMoney" label="返利调整金额" align="center" /> |
|
|
|
<el-table-column prop="fyAdjustmentMoney" label="其中费用调整金额" align="center" /> |
|
|
|
<el-table-column label="明细" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-table-column prop="purchaseSystemName" label="采购系统" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="brandName" label="品牌" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="withholdingDate" label="预提年月" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="num" label="预提数量" align="center" min-width="100" /> |
|
|
|
<el-table-column prop="withRebate" label="预提金额" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="withholdCost" label="其中预提费用" align="center" min-width="140" /> |
|
|
|
<el-table-column prop="uploadMoney" label="上传金额" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="stayDetermineMoney" label="其中待确认金额" align="center" min-width="150" /> |
|
|
|
<el-table-column prop="money" label="其中费用" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="adjustmentMoney" label="返利调整金额" align="center" min-width="140" /> |
|
|
|
<el-table-column prop="fyAdjustmentMoney" label="其中费用调整金额" align="center" min-width="160" /> |
|
|
|
<el-table-column label="明细" align="center" min-width="100"> |
|
|
|
<template> |
|
|
|
<el-button type="primary" size="mini" @click="handleLook()">查看</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
@ -85,7 +101,7 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import req from '@/api/bikerebate/bicyclerebatecheck' |
|
|
|
import { fetchBySid, brandDown } from '@/api/cheliang/dictcommons' |
|
|
|
import { fetchBySid } from '@/api/cheliang/dictcommons' |
|
|
|
import yiheduidanchefanli from './relation/yiheduidanchefanli' |
|
|
|
import bicyclerebatetobecheckedAdd from './relation/bicyclerebatetobecheckedAdd' |
|
|
|
|
|
|
@ -102,17 +118,17 @@ export default { |
|
|
|
index: 0, |
|
|
|
tableKey: 0, |
|
|
|
lastVehrebateKey: 1, |
|
|
|
dialogStatus: '', |
|
|
|
brand_list: [], |
|
|
|
// 表单数据 |
|
|
|
formobj: { |
|
|
|
sid: '', |
|
|
|
createByName: '', |
|
|
|
createBySid: '', |
|
|
|
brandName: '', |
|
|
|
brandSid: '', |
|
|
|
checkApply: '', |
|
|
|
billNo: '', |
|
|
|
createTime: '', |
|
|
|
createOrgName: '', |
|
|
|
deptName: '', |
|
|
|
deptSid: '', |
|
|
|
createOrgSid: '', |
|
|
|
useOrgName: '', |
|
|
|
useOrgSid: '', |
|
|
@ -147,11 +163,6 @@ export default { |
|
|
|
this.formobj.useOrgName = res.data.name |
|
|
|
} |
|
|
|
}) |
|
|
|
brandDown({ useOrg: this.formobj.createOrgSid }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.brand_list = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
showAdd(createOrgSid) { |
|
|
|
this.$nextTick(() => { |
|
|
@ -159,19 +170,26 @@ export default { |
|
|
|
this.init() |
|
|
|
this.newDate() |
|
|
|
}) |
|
|
|
this.dialogStatus = 'add' |
|
|
|
this.formobj.createOrgSid = createOrgSid |
|
|
|
this.formobj.useOrgSid = createOrgSid |
|
|
|
this.formobj.createByName = window.sessionStorage.getItem('name') |
|
|
|
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
|
|
|
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) |
|
|
|
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) |
|
|
|
var nowDate = new Date() |
|
|
|
var date = { |
|
|
|
year: nowDate.getFullYear(), |
|
|
|
month: nowDate.getMonth() + 1, |
|
|
|
day: nowDate.getDate() |
|
|
|
} |
|
|
|
this.formobj.createTime = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day) |
|
|
|
this.viewTitle = '【新增】单车返利核对审核申请' |
|
|
|
}, |
|
|
|
showEdit(row) { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.dialogStatus = 'edit' |
|
|
|
this.viewTitle = '【编辑】单车返利核对审核申请' |
|
|
|
console.log('编辑回显', row.sid) |
|
|
|
req.fetchDetailsBySid(row.sid).then((resp) => { |
|
|
@ -183,22 +201,10 @@ export default { |
|
|
|
this.formobj = row |
|
|
|
}) |
|
|
|
}, |
|
|
|
changeBrand(value) { |
|
|
|
const choose = this.brand_list.filter((item) => item.brandName === value) |
|
|
|
if (choose !== null && choose.length > 0) { |
|
|
|
this.formobj.brandSid = choose[0].sid |
|
|
|
} else { |
|
|
|
this.formobj.brandSid = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
// 明细表添加一行数据 |
|
|
|
handleSelect() { |
|
|
|
if (this.formobj.brandName === '' || this.formobj.brandName === null || this.formobj.brandName === undefined) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请先选择品牌' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divSelect'].showData(this.formobj.scmWhenVehrebateCheckapplydetailDetails, this.formobj.createOrgSid, this.formobj.brandSid) |
|
|
|
this.$refs['divSelect'].showData(this.formobj.scmWhenVehrebateCheckapplydetailDetails, this.formobj.createOrgSid) |
|
|
|
}, |
|
|
|
backData(val) { |
|
|
|
this.viewState = 1 |
|
|
@ -212,7 +218,7 @@ export default { |
|
|
|
list.forEach((e) => { |
|
|
|
let v = 0 |
|
|
|
for (var i in this.formobj.scmWhenVehrebateCheckapplydetailDetails) { |
|
|
|
if (this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].rebateTypeValue === e.rebateTypeValue) { |
|
|
|
if (this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].rebateTypeValue === e.rebateTypeValue && this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].purchaseSystemName === e.purchaseSystemName && this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].brandName === e.brandName) { |
|
|
|
this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].num = parseFloat(this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].num) + parseFloat(1) |
|
|
|
this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withRebate = Math.round((parseFloat(this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withRebate !== '' ? this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withRebate : 0) + parseFloat(e.estimateRebate !== '' ? e.estimateRebate : 0)) * 100) / 100 |
|
|
|
this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withholdCost = Math.round((parseFloat(this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withholdCost !== '' ? this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withholdCost : 0) + parseFloat(e.withholdCost !== '' ? e.withholdCost : 0)) * 100) / 100 |
|
|
@ -236,6 +242,8 @@ export default { |
|
|
|
withholdCost: e.withholdCost, |
|
|
|
brandName: e.brandName, |
|
|
|
brandSid: e.brandSid, |
|
|
|
purchaseSystemName: e.purchaseSystemName, |
|
|
|
purchaseSystemSid: e.purchaseSystemSid, |
|
|
|
uploadMoney: Math.round((parseFloat(e.uploadMoney !== '' ? e.uploadMoney : 0) + parseFloat(e.secondaryUploadMoney !== '' ? e.secondaryUploadMoney : 0)) * 100) / 100, |
|
|
|
stayDetermineMoney: e.stayDetermineMoney, |
|
|
|
adjustmentMoney: e.adjustmentMoney, |
|
|
@ -251,7 +259,7 @@ export default { |
|
|
|
// 按照预提年月统计 |
|
|
|
list.forEach((s) => { |
|
|
|
for (var l in this.formobj.scmLastVehrebateCheckapplydetailDetails) { |
|
|
|
if (this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdingDate === s.withholdingDate) { |
|
|
|
if (this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdingDate === s.withholdingDate && this.formobj.scmLastVehrebateCheckapplydetailDetails[l].purchaseSystemName === s.purchaseSystemName && this.formobj.scmLastVehrebateCheckapplydetailDetails[l].brandName === s.brandName) { |
|
|
|
this.formobj.scmLastVehrebateCheckapplydetailDetails[l].num = parseFloat(this.formobj.scmLastVehrebateCheckapplydetailDetails[l].num) + parseFloat(1) |
|
|
|
this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withRebate = Math.round((parseFloat(this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withRebate !== '' ? this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withRebate : 0) + parseFloat(s.estimateRebate !== '' ? s.estimateRebate : 0)) * 100) / 100 |
|
|
|
this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdCost = Math.round((parseFloat(this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdCost !== '' ? this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdCost : 0) + parseFloat(s.withholdCost !== '' ? s.withholdCost : 0)) * 100) / 100 |
|
|
@ -273,6 +281,8 @@ export default { |
|
|
|
withholdCost: s.withholdCost, |
|
|
|
brandName: s.brandName, |
|
|
|
brandSid: s.brandSid, |
|
|
|
purchaseSystemName: s.purchaseSystemName, |
|
|
|
purchaseSystemSid: s.purchaseSystemSid, |
|
|
|
uploadMoney: Math.round((parseFloat(s.uploadMoney !== '' ? s.uploadMoney : 0) + parseFloat(s.secondaryUploadMoney !== '' ? s.secondaryUploadMoney : 0)) * 100) / 100, |
|
|
|
stayDetermineMoney: s.stayDetermineMoney, |
|
|
|
adjustmentMoney: s.adjustmentMoney, |
|
|
@ -309,7 +319,7 @@ export default { |
|
|
|
list.forEach((e) => { |
|
|
|
let v = 0 |
|
|
|
for (var i in this.formobj.scmWhenVehrebateCheckapplydetailDetails) { |
|
|
|
if (this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].rebateTypeValue === e.rebateTypeValue) { |
|
|
|
if (this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].rebateTypeValue === e.rebateTypeValue && this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].purchaseSystemName === e.purchaseSystemName && this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].brandName === e.brandName) { |
|
|
|
this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].num = parseFloat(this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].num) + parseFloat(1) |
|
|
|
this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withRebate = Math.round((parseFloat(this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withRebate !== '' ? this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withRebate : 0) + parseFloat(e.estimateRebate !== '' ? e.estimateRebate : 0)) * 100) / 100 |
|
|
|
this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withholdCost = Math.round((parseFloat(this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withholdCost !== '' ? this.formobj.scmWhenVehrebateCheckapplydetailDetails[i].withholdCost : 0) + parseFloat(e.withholdCost !== '' ? e.withholdCost : 0)) * 100) / 100 |
|
|
@ -333,6 +343,8 @@ export default { |
|
|
|
withholdCost: e.withholdCost, |
|
|
|
brandName: e.brandName, |
|
|
|
brandSid: e.brandSid, |
|
|
|
purchaseSystemName: e.purchaseSystemName, |
|
|
|
purchaseSystemSid: e.purchaseSystemSid, |
|
|
|
uploadMoney: Math.round((parseFloat(e.uploadMoney !== '' ? e.uploadMoney : 0) + parseFloat(e.secondaryUploadMoney !== '' ? e.secondaryUploadMoney : 0)) * 100) / 100, |
|
|
|
stayDetermineMoney: e.stayDetermineMoney, |
|
|
|
adjustmentMoney: e.adjustmentMoney, |
|
|
@ -348,7 +360,7 @@ export default { |
|
|
|
// 按照预提年月统计 |
|
|
|
list.forEach((s) => { |
|
|
|
for (var l in this.formobj.scmLastVehrebateCheckapplydetailDetails) { |
|
|
|
if (this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdingDate === s.withholdingDate) { |
|
|
|
if (this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdingDate === s.withholdingDate && this.formobj.scmLastVehrebateCheckapplydetailDetails[l].purchaseSystemName === s.purchaseSystemName && this.formobj.scmLastVehrebateCheckapplydetailDetails[l].brandName === s.brandName) { |
|
|
|
this.formobj.scmLastVehrebateCheckapplydetailDetails[l].num = parseFloat(this.formobj.scmLastVehrebateCheckapplydetailDetails[l].num) + parseFloat(1) |
|
|
|
this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withRebate = Math.round((parseFloat(this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withRebate !== '' ? this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withRebate : 0) + parseFloat(s.estimateRebate !== '' ? s.estimateRebate : 0)) * 100) / 100 |
|
|
|
this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdCost = Math.round((parseFloat(this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdCost !== '' ? this.formobj.scmLastVehrebateCheckapplydetailDetails[l].withholdCost : 0) + parseFloat(s.withholdCost !== '' ? s.withholdCost : 0)) * 100) / 100 |
|
|
@ -370,6 +382,8 @@ export default { |
|
|
|
withholdCost: s.withholdCost, |
|
|
|
brandName: s.brandName, |
|
|
|
brandSid: s.brandSid, |
|
|
|
purchaseSystemName: s.purchaseSystemName, |
|
|
|
purchaseSystemSid: s.purchaseSystemSid, |
|
|
|
uploadMoney: Math.round((parseFloat(s.uploadMoney !== '' ? s.uploadMoney : 0) + parseFloat(s.secondaryUploadMoney !== '' ? s.secondaryUploadMoney : 0)) * 100) / 100, |
|
|
|
stayDetermineMoney: s.stayDetermineMoney, |
|
|
|
adjustmentMoney: s.adjustmentMoney, |
|
|
@ -432,78 +446,7 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
const values = data.map(item => Number(item[column.property])) |
|
|
|
if (column.property === 'num') { |
|
|
|
sums[index] = values.reduce((prev, curr) => { |
|
|
|
const value = Number(curr) |
|
|
|
if (!isNaN(value)) { |
|
|
|
return prev + curr |
|
|
|
} else { |
|
|
|
return prev |
|
|
|
} |
|
|
|
}, 0) |
|
|
|
sums[index] += '' |
|
|
|
this.formobj.withRebateTotal = sums[index] += '' |
|
|
|
} else if (column.property === 'withRebate') { |
|
|
|
sums[index] = values.reduce((prev, curr) => { |
|
|
|
const value = Number(curr) |
|
|
|
if (!isNaN(value)) { |
|
|
|
return prev + curr |
|
|
|
} else { |
|
|
|
return prev |
|
|
|
} |
|
|
|
}, 0) |
|
|
|
sums[index] += '' |
|
|
|
} else if (column.property === 'withholdCost') { |
|
|
|
sums[index] = values.reduce((prev, curr) => { |
|
|
|
const value = Number(curr) |
|
|
|
if (!isNaN(value)) { |
|
|
|
return prev + curr |
|
|
|
} else { |
|
|
|
return prev |
|
|
|
} |
|
|
|
}, 0) |
|
|
|
sums[index] += '' |
|
|
|
} else if (column.property === 'uploadMoney') { |
|
|
|
sums[index] = values.reduce((prev, curr) => { |
|
|
|
const value = Number(curr) |
|
|
|
if (!isNaN(value)) { |
|
|
|
return prev + curr |
|
|
|
} else { |
|
|
|
return prev |
|
|
|
} |
|
|
|
}, 0) |
|
|
|
sums[index] += '' |
|
|
|
} else if (column.property === 'stayDetermineMoney') { |
|
|
|
sums[index] = values.reduce((prev, curr) => { |
|
|
|
const value = Number(curr) |
|
|
|
if (!isNaN(value)) { |
|
|
|
return prev + curr |
|
|
|
} else { |
|
|
|
return prev |
|
|
|
} |
|
|
|
}, 0) |
|
|
|
sums[index] += '' |
|
|
|
} else if (column.property === 'money') { |
|
|
|
sums[index] = values.reduce((prev, curr) => { |
|
|
|
const value = Number(curr) |
|
|
|
if (!isNaN(value)) { |
|
|
|
return prev + curr |
|
|
|
} else { |
|
|
|
return prev |
|
|
|
} |
|
|
|
}, 0) |
|
|
|
sums[index] += '' |
|
|
|
} else if (column.property === 'adjustmentMoney') { |
|
|
|
sums[index] = values.reduce((prev, curr) => { |
|
|
|
const value = Number(curr) |
|
|
|
if (!isNaN(value)) { |
|
|
|
return prev + curr |
|
|
|
} else { |
|
|
|
return prev |
|
|
|
} |
|
|
|
}, 0) |
|
|
|
sums[index] += '' |
|
|
|
} else if (column.property === 'fyAdjustmentMoney') { |
|
|
|
if (column.property !== 'purchaseSystemName' && column.property !== 'brandName' && column.property !== 'rebateTypeValue') { |
|
|
|
sums[index] = values.reduce((prev, curr) => { |
|
|
|
const value = Number(curr) |
|
|
|
if (!isNaN(value)) { |
|
|
@ -525,9 +468,11 @@ export default { |
|
|
|
sid: '', |
|
|
|
createByName: '', |
|
|
|
createBySid: '', |
|
|
|
brandName: '', |
|
|
|
brandSid: '', |
|
|
|
checkApply: '', |
|
|
|
billNo: '', |
|
|
|
createTime: '', |
|
|
|
deptName: '', |
|
|
|
deptSid: '', |
|
|
|
createOrgName: '', |
|
|
|
createOrgSid: '', |
|
|
|
useOrgName: '', |
|
|
@ -547,13 +492,6 @@ export default { |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
.rowStyle { |
|
|
|
border-left: 0px; |
|
|
|
} |
|
|
|
.colOneStyle { |
|
|
|
border-right: 0px !important; |
|
|
|
border-bottom: 0px !important; |
|
|
|
} |
|
|
|
.span-sty { |
|
|
|
width: 130px !important; |
|
|
|
} |
|
|
@ -564,5 +502,12 @@ export default { |
|
|
|
margin-left: 120px !important; |
|
|
|
width: calc(100% - 115px); |
|
|
|
} |
|
|
|
.titleOne { |
|
|
|
padding: 7px; |
|
|
|
display: flex; |
|
|
|
flex-direction: row; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|