Browse Source

完善维修单结算

zhanglei
yunuo970428 5 months ago
parent
commit
4e136f3f86
  1. 10
      yxt-as-ui/src/views/operation/settleAccounts/settleAccountsAdd.vue
  2. 10
      yxt-as-ui/src/views/workFlow/jiesuanFlow/settleAccountsEdit.vue

10
yxt-as-ui/src/views/operation/settleAccounts/settleAccountsAdd.vue

@ -356,18 +356,28 @@ export default {
// -- -- = -
outPrintInput() {
this.formobj.outPrint = Math.round((parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : 0) - parseFloat(this.formobj.outCost !== '' ? this.formobj.outCost : 0)) * 100) / 100
this.costAmountAndPrint()
},
// -- -- = -
subsidyPrintInput() {
this.formobj.subsidyPrint = Math.round((parseFloat(this.formobj.subsidyAmount !== '' ? this.formobj.subsidyAmount : 0) - parseFloat(this.formobj.subsidyCost !== '' ? this.formobj.subsidyCost : 0)) * 100) / 100
this.costAmountAndPrint()
},
// -- -- = -
rescuePrintInput() {
this.formobj.rescuePrint = Math.round((parseFloat(this.formobj.rescueAmount !== '' ? this.formobj.rescueAmount : 0) - parseFloat(this.formobj.rescueCost !== '' ? this.formobj.rescueCost : 0)) * 100) / 100
this.costAmountAndPrint()
},
handleOpen(value) {
window.open(value, '_blank')
},
// --
costAmountAndPrint() {
// = +
this.formobj.costAmount = Math.round((parseFloat(this.formobj.costAmount !== '' ? this.formobj.costAmount : 0) + parseFloat(this.formobj.outCost !== '' ? this.formobj.outCost : 0) + parseFloat(this.formobj.subsidyCost !== '' ? this.formobj.subsidyCost : 0) + parseFloat(this.formobj.rescueCost !== '' ? this.formobj.rescueCost : 0)) * 100) / 100
// = +
this.formobj.profit = Math.round((parseFloat(this.formobj.profit !== '' ? this.formobj.profit : 0) + parseFloat(this.formobj.outPrint !== '' ? this.formobj.outPrint : 0) + parseFloat(this.formobj.subsidyPrint !== '' ? this.formobj.subsidyPrint : 0) + parseFloat(this.formobj.rescuePrint !== '' ? this.formobj.rescuePrint : 0)) * 100) / 100
},
submit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {

10
yxt-as-ui/src/views/workFlow/jiesuanFlow/settleAccountsEdit.vue

@ -361,18 +361,28 @@ export default {
// -- -- = -
outPrintInput() {
this.formobj.outPrint = Math.round((parseFloat(this.formobj.outAmount !== '' ? this.formobj.outAmount : 0) - parseFloat(this.formobj.outCost !== '' ? this.formobj.outCost : 0)) * 100) / 100
this.costAmountAndPrint()
},
// -- -- = -
subsidyPrintInput() {
this.formobj.subsidyPrint = Math.round((parseFloat(this.formobj.subsidyAmount !== '' ? this.formobj.subsidyAmount : 0) - parseFloat(this.formobj.subsidyCost !== '' ? this.formobj.subsidyCost : 0)) * 100) / 100
this.costAmountAndPrint()
},
// -- -- = -
rescuePrintInput() {
this.formobj.rescuePrint = Math.round((parseFloat(this.formobj.rescueAmount !== '' ? this.formobj.rescueAmount : 0) - parseFloat(this.formobj.rescueCost !== '' ? this.formobj.rescueCost : 0)) * 100) / 100
this.costAmountAndPrint()
},
handleOpen(value) {
window.open(value, '_blank')
},
// --
costAmountAndPrint() {
// = +
this.formobj.costAmount = Math.round((parseFloat(this.formobj.costAmount !== '' ? this.formobj.costAmount : 0) + parseFloat(this.formobj.outCost !== '' ? this.formobj.outCost : 0) + parseFloat(this.formobj.subsidyCost !== '' ? this.formobj.subsidyCost : 0) + parseFloat(this.formobj.rescueCost !== '' ? this.formobj.rescueCost : 0)) * 100) / 100
// = +
this.formobj.profit = Math.round((parseFloat(this.formobj.profit !== '' ? this.formobj.profit : 0) + parseFloat(this.formobj.outPrint !== '' ? this.formobj.outPrint : 0) + parseFloat(this.formobj.subsidyPrint !== '' ? this.formobj.subsidyPrint : 0) + parseFloat(this.formobj.rescuePrint !== '' ? this.formobj.rescuePrint : 0)) * 100) / 100
},
submit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {

Loading…
Cancel
Save