Browse Source

完善专项返利分配

master
yunuo970428 4 months ago
parent
commit
c1538f24b6
  1. 3
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocated.vue
  2. 7
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocatedAdd.vue

3
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocated.vue

@ -208,7 +208,8 @@ export default {
const aa = []
row.forEach((element) => {
aa.push({
sid: element.checkApplySid,
sid: element.sid,
checkApplySid: element.checkApplySid,
brandName: element.brandName,
brandSid: element.brandSid,
purchaseSystemName: element.purchaseSystemName,

7
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocatedAdd.vue

@ -100,6 +100,7 @@ export default {
specialRebateSids: [],
scmSpecialrebateVehsVehSidAndVinNos: []
},
checkApplySids: [],
rules: {},
submitdisabled: false
}
@ -118,17 +119,20 @@ export default {
this.formobj.purchaseSystemSid = sids[0].purchaseSystemSid
var aa = 0
const bb = []
const cc = []
for (var i = 0; i < sids.length; i++) {
aa = Math.round((parseFloat(aa) + parseFloat(sids[i].uploadMoney)) * 100) / 100
bb.push(sids[i].sid)
cc.push(sids[i].checkApplySid)
}
this.formobj.allocationMoney = aa
this.formobj.specialRebateSids = bb
this.checkApplySids = cc
}
},
handleLook() {
this.viewState = 3
this.$refs['divCheckInfo'].showInfo(this.formobj.specialRebateSids)
this.$refs['divCheckInfo'].showInfo(this.checkApplySids)
},
//
addCommodity() {
@ -191,6 +195,7 @@ export default {
specialRebateSids: [],
scmSpecialrebateVehsVehSidAndVinNos: []
}
this.checkApplySids = []
this.$refs['form_obj'].resetFields()
this.$emit('doback')
},

Loading…
Cancel
Save