Browse Source

完善单车返利预提

zhanglei
yunuo970428 1 month ago
parent
commit
0ea781ddb4
  1. 20
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholdingAdd.vue
  2. 68
      anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholdingInfo.vue
  3. 47
      anrui-scm/anrui-scm-ui/src/views/workFlow/danchefanliyutiFlow/danchefanliyutiDaiBanInfo.vue
  4. 20
      anrui-scm/anrui-scm-ui/src/views/workFlow/danchefanliyutiFlow/danchefanliyutiEdit.vue
  5. 47
      anrui-scm/anrui-scm-ui/src/views/workFlow/danchefanliyutiFlow/danchefanliyutiYiBanInfo.vue

20
anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholdingAdd.vue

@ -352,30 +352,20 @@ export default {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else {
return prev
return Math.round((parseFloat(prev)) * 100) / 100
}
}, 0)
sums[index] += ''
this.formobj.withRebateTotal = sums[index] += ''
} else if (column.property === 'expectTreatCost') {
} else if (column.property === 'expectTreatCost' || column.property === 'expectSuppCost') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else {
return prev
}
}, 0)
sums[index] += ''
} else if (column.property === 'expectSuppCost') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
return Math.round((parseFloat(prev)) * 100) / 100
}
}, 0)
sums[index] += ''

68
anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholdingInfo.vue

@ -92,7 +92,26 @@ export default {
tableKey: 0,
viewState: 1,
//
formobj: {},
formobj: {
sid: '',
withApply: '',
billNo: '',
createTime: '',
createOrgName: '',
createOrgSid: '',
deptName: '',
deptSid: '',
useOrgName: '',
useOrgSid: '',
remarks: '',
withRebateTotal: '',
createByName: '',
createBySid: '',
instanceId: '', // ID
taskId: '', // ID
orgPath: '',
scmVehRebateWiths: []
},
rules: {},
submitdisabled: false
}
@ -129,33 +148,13 @@ export default {
return
}
const values = data.map(item => Number(item[column.property]))
if (column.property === 'withRebate') {
if (column.property === 'withRebate' || column.property === 'expectTreatCost' || column.property === 'expectSuppCost') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else {
return prev
}
}, 0)
sums[index] += ''
} else if (column.property === 'expectTreatCost') {
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 === 'expectSuppCost') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
return Math.round((parseFloat(prev)) * 100) / 100
}
}, 0)
sums[index] += ''
@ -218,7 +217,26 @@ export default {
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
//
this.formobj = {}
this.formobj = {
sid: '',
withApply: '',
billNo: '',
createTime: '',
createOrgName: '',
createOrgSid: '',
deptName: '',
deptSid: '',
useOrgName: '',
useOrgSid: '',
remarks: '',
withRebateTotal: '',
createByName: '',
createBySid: '',
instanceId: '', // ID
taskId: '', // ID
orgPath: '',
scmVehRebateWiths: []
}
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}

47
anrui-scm/anrui-scm-ui/src/views/workFlow/danchefanliyutiFlow/danchefanliyutiDaiBanInfo.vue

@ -127,7 +127,26 @@ export default {
tableKey: 0,
viewState: 1,
//
formobj: {},
formobj: {
sid: '',
withApply: '',
billNo: '',
createTime: '',
createOrgName: '',
createOrgSid: '',
deptName: '',
deptSid: '',
useOrgName: '',
useOrgSid: '',
remarks: '',
withRebateTotal: '',
createByName: '',
createBySid: '',
instanceId: '', // ID
taskId: '', // ID
orgPath: '',
scmVehRebateWiths: []
},
rules: {},
submitdisabled: false,
options: [],
@ -405,33 +424,13 @@ export default {
return
}
const values = data.map(item => Number(item[column.property]))
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 === 'expectTreatCost') {
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 === 'expectSuppCost') {
if (column.property === 'withRebate' || column.property === 'expectTreatCost' || column.property === 'expectSuppCost') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else {
return prev
return Math.round((parseFloat(prev)) * 100) / 100
}
}, 0)
sums[index] += ''

20
anrui-scm/anrui-scm-ui/src/views/workFlow/danchefanliyutiFlow/danchefanliyutiEdit.vue

@ -283,30 +283,20 @@ export default {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else {
return prev
return Math.round((parseFloat(prev)) * 100) / 100
}
}, 0)
sums[index] += ''
this.formobj.withRebateTotal = sums[index] += ''
} else if (column.property === 'expectTreatCost') {
} else if (column.property === 'expectTreatCost' || column.property === 'expectSuppCost') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else {
return prev
}
}, 0)
sums[index] += ''
} else if (column.property === 'expectSuppCost') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
return Math.round((parseFloat(prev)) * 100) / 100
}
}, 0)
sums[index] += ''

47
anrui-scm/anrui-scm-ui/src/views/workFlow/danchefanliyutiFlow/danchefanliyutiYiBanInfo.vue

@ -92,7 +92,26 @@ export default {
tableKey: 0,
viewState: 1,
//
formobj: {},
formobj: {
sid: '',
withApply: '',
billNo: '',
createTime: '',
createOrgName: '',
createOrgSid: '',
deptName: '',
deptSid: '',
useOrgName: '',
useOrgSid: '',
remarks: '',
withRebateTotal: '',
createByName: '',
createBySid: '',
instanceId: '', // ID
taskId: '', // ID
orgPath: '',
scmVehRebateWiths: []
},
rules: {},
submitdisabled: false,
//
@ -253,33 +272,13 @@ export default {
return
}
const values = data.map(item => Number(item[column.property]))
if (column.property === 'withRebate') {
if (column.property === 'withRebate' || column.property === 'expectTreatCost' || column.property === 'expectSuppCost') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
return Math.round((parseFloat(prev) + parseFloat(curr)) * 100) / 100
} else {
return prev
}
}, 0)
sums[index] += ''
} else if (column.property === 'expectTreatCost') {
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 === 'expectSuppCost') {
sums[index] = values.reduce((prev, curr) => {
const value = Number(curr)
if (!isNaN(value)) {
return prev + curr
} else {
return prev
return Math.round((parseFloat(prev)) * 100) / 100
}
}, 0)
sums[index] += ''

Loading…
Cancel
Save