|
|
@ -17,14 +17,38 @@ |
|
|
|
<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="24" class="colOneStyle"> |
|
|
|
<div style="text-align: right"><el-button size="small" type="primary" class="btntopblueline" @click="handleSelect()">添加</el-button></div> |
|
|
|
<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="8"> |
|
|
|
<div class="span-sty">申请日期</div> |
|
|
|
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<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">本月上传返利核对情况(按返利类型统计)</div> |
|
|
|
<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.scmWhenSpecialrebateCheckapplydetailDetails" :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="purchaseSystemName" label="采购系统" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="brandName" label="品牌" align="center" min-width="100" /> |
|
|
|
<el-table-column prop="rebateTypeValue" label="返利类型" align="center" /> |
|
|
|
<el-table-column prop="num" label="数量" align="center" /> |
|
|
|
<el-table-column prop="withRebate" label="预提金额" align="center" /> |
|
|
@ -43,6 +67,8 @@ |
|
|
|
<div class="title">本月上传返利核对情况(按预提年月统计)</div> |
|
|
|
<el-table :key="lastSpecialrebateKey" :data="formobj.scmLastSpecialrebateCheckapplydetailDetails" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column prop="purchaseSystemName" label="采购系统" align="center" min-width="120" /> |
|
|
|
<el-table-column prop="brandName" label="品牌" align="center" min-width="100" /> |
|
|
|
<el-table-column prop="withholdingDate" label="预提年月" align="center" /> |
|
|
|
<el-table-column prop="num" label="预提数量" align="center" /> |
|
|
|
<el-table-column prop="withRebate" label="预提金额" align="center" /> |
|
|
@ -95,6 +121,7 @@ export default { |
|
|
|
// 表单数据 |
|
|
|
formobj: { |
|
|
|
sid: '', |
|
|
|
createTime: '', |
|
|
|
deptSid: '', |
|
|
|
deptName: '', |
|
|
|
createByName: '', |
|
|
@ -149,6 +176,13 @@ export default { |
|
|
|
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) { |
|
|
@ -183,7 +217,7 @@ export default { |
|
|
|
list.forEach((e) => { |
|
|
|
let v = 0 |
|
|
|
for (var i in this.formobj.scmWhenSpecialrebateCheckapplydetailDetails) { |
|
|
|
if (this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].rebateTypeValue === e.rebateTypeValue) { |
|
|
|
if (this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].rebateTypeValue === e.rebateTypeValue && this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].purchaseSystemName === e.purchaseSystemName && this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].brandName === e.brandName) { |
|
|
|
this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].num = parseFloat(this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].num) + parseFloat(1) |
|
|
|
this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withRebate = Math.round((parseFloat(this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withRebate !== '' ? this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withRebate : 0) + parseFloat(e.estimateRebate !== '' ? e.estimateRebate : 0)) * 100) / 100 |
|
|
|
this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withholdCost = Math.round((parseFloat(this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withholdCost !== '' ? this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withholdCost : 0) + parseFloat(e.withholdCost !== '' ? e.withholdCost : 0)) * 100) / 100 |
|
|
@ -205,6 +239,8 @@ export default { |
|
|
|
num: 1, |
|
|
|
withRebate: e.estimateRebate, |
|
|
|
withholdCost: e.withholdCost, |
|
|
|
purchaseSystemName: e.purchaseSystemName, |
|
|
|
purchaseSystemSid: e.purchaseSystemSid, |
|
|
|
brandName: e.brandName, |
|
|
|
brandSid: e.brandSid, |
|
|
|
uploadMoney: Math.round((parseFloat(e.uploadMoney !== '' ? e.uploadMoney : 0) + parseFloat(e.secondaryUploadMoney !== '' ? e.secondaryUploadMoney : 0)) * 100) / 100, |
|
|
@ -222,7 +258,7 @@ export default { |
|
|
|
// 按照预提年月统计 |
|
|
|
list.forEach((s) => { |
|
|
|
for (var l in this.formobj.scmLastSpecialrebateCheckapplydetailDetails) { |
|
|
|
if (this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdingDate === s.withholdingDate) { |
|
|
|
if (this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdingDate === s.withholdingDate && this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].purchaseSystemName === s.purchaseSystemName && this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].brandName === s.brandName) { |
|
|
|
this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].num = parseFloat(this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].num) + parseFloat(1) |
|
|
|
this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withRebate = Math.round((parseFloat(this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withRebate !== '' ? this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withRebate : 0) + parseFloat(s.estimateRebate !== '' ? s.estimateRebate : 0)) * 100) / 100 |
|
|
|
this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdCost = Math.round((parseFloat(this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdCost !== '' ? this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdCost : 0) + parseFloat(s.withholdCost !== '' ? s.withholdCost : 0)) * 100) / 100 |
|
|
@ -242,6 +278,8 @@ export default { |
|
|
|
num: 1, |
|
|
|
withRebate: s.estimateRebate, |
|
|
|
withholdCost: s.withholdCost, |
|
|
|
purchaseSystemName: s.purchaseSystemName, |
|
|
|
purchaseSystemSid: s.purchaseSystemSid, |
|
|
|
brandName: s.brandName, |
|
|
|
brandSid: s.brandSid, |
|
|
|
uploadMoney: Math.round((parseFloat(s.uploadMoney !== '' ? s.uploadMoney : 0) + parseFloat(s.secondaryUploadMoney !== '' ? s.secondaryUploadMoney : 0)) * 100) / 100, |
|
|
@ -280,7 +318,7 @@ export default { |
|
|
|
list.forEach((e) => { |
|
|
|
let v = 0 |
|
|
|
for (var i in this.formobj.scmWhenSpecialrebateCheckapplydetailDetails) { |
|
|
|
if (this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].rebateTypeValue === e.rebateTypeValue) { |
|
|
|
if (this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].rebateTypeValue === e.rebateTypeValue && this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].purchaseSystemName === e.purchaseSystemName && this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].brandName === e.brandName) { |
|
|
|
this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].num = parseFloat(this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].num) + parseFloat(1) |
|
|
|
this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withRebate = Math.round((parseFloat(this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withRebate !== '' ? this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withRebate : 0) + parseFloat(e.estimateRebate !== '' ? e.estimateRebate : 0)) * 100) / 100 |
|
|
|
this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withholdCost = Math.round((parseFloat(this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withholdCost !== '' ? this.formobj.scmWhenSpecialrebateCheckapplydetailDetails[i].withholdCost : 0) + parseFloat(e.withholdCost !== '' ? e.withholdCost : 0)) * 100) / 100 |
|
|
@ -302,6 +340,8 @@ export default { |
|
|
|
num: 1, |
|
|
|
withRebate: e.estimateRebate, |
|
|
|
withholdCost: e.withholdCost, |
|
|
|
purchaseSystemName: e.purchaseSystemName, |
|
|
|
purchaseSystemSid: e.purchaseSystemSid, |
|
|
|
brandName: e.brandName, |
|
|
|
brandSid: e.brandSid, |
|
|
|
uploadMoney: Math.round((parseFloat(e.uploadMoney !== '' ? e.uploadMoney : 0) + parseFloat(e.secondaryUploadMoney !== '' ? e.secondaryUploadMoney : 0)) * 100) / 100, |
|
|
@ -319,7 +359,7 @@ export default { |
|
|
|
// 按照预提年月统计 |
|
|
|
list.forEach((s) => { |
|
|
|
for (var l in this.formobj.scmLastSpecialrebateCheckapplydetailDetails) { |
|
|
|
if (this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdingDate === s.withholdingDate) { |
|
|
|
if (this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdingDate === s.withholdingDate && this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].purchaseSystemName === s.purchaseSystemName && this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].brandName === s.brandName) { |
|
|
|
this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].num = parseFloat(this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].num) + parseFloat(1) |
|
|
|
this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withRebate = Math.round((parseFloat(this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withRebate !== '' ? this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withRebate : 0) + parseFloat(s.estimateRebate !== '' ? s.estimateRebate : 0)) * 100) / 100 |
|
|
|
this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdCost = Math.round((parseFloat(this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdCost !== '' ? this.formobj.scmLastSpecialrebateCheckapplydetailDetails[l].withholdCost : 0) + parseFloat(s.withholdCost !== '' ? s.withholdCost : 0)) * 100) / 100 |
|
|
@ -339,6 +379,8 @@ export default { |
|
|
|
num: 1, |
|
|
|
withRebate: s.estimateRebate, |
|
|
|
withholdCost: s.withholdCost, |
|
|
|
purchaseSystemName: s.purchaseSystemName, |
|
|
|
purchaseSystemSid: s.purchaseSystemSid, |
|
|
|
brandName: s.brandName, |
|
|
|
brandSid: s.brandSid, |
|
|
|
uploadMoney: Math.round((parseFloat(s.uploadMoney !== '' ? s.uploadMoney : 0) + parseFloat(s.secondaryUploadMoney !== '' ? s.secondaryUploadMoney : 0)) * 100) / 100, |
|
|
@ -423,6 +465,7 @@ export default { |
|
|
|
// 表单数据 |
|
|
|
this.formobj = { |
|
|
|
sid: '', |
|
|
|
createTime: '', |
|
|
|
deptSid: '', |
|
|
|
deptName: '', |
|
|
|
createByName: '', |
|
|
@ -449,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; |
|
|
|
} |
|
|
@ -466,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> |
|
|
|
|
|
|
|