Browse Source

Merge remote-tracking branch 'origin/master'

master
fanzongzhe 9 months ago
parent
commit
148f0fb4b4
  1. 358
      anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue
  2. 1
      yxt-as-ui/src/views/basicinformation/technicalTitle/technicalTitle.vue

358
anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue

@ -73,11 +73,11 @@
<el-row>
<el-col :span="8">
<div class="span-sty spanOneWidth"><span>厂家合同价</span></div>
<el-form-item><el-input @input="inputContractPrice" v-model="formobj.contractPrice" placeholder="" clearable @keyup.native="formobj.contractPrice = oninput(formobj.contractPrice,2)" class="addinputw addinputwOne"/></el-form-item>
<el-form-item><el-input @input="inputContractPrice" v-model="formobj.contractPrice" placeholder="" clearable @keyup.native="formobj.contractPrice = getNumber(formobj.contractPrice,2)" class="addinputw addinputwOne"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty spanOneWidth"><span>其中上装价格</span></div>
<el-form-item><el-input v-model="formobj.amongSzPrice" @keyup.native="formobj.amongSzPrice = oninput(formobj.amongSzPrice,2)" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
<el-form-item><el-input v-model="formobj.amongSzPrice" @keyup.native="formobj.amongSzPrice = getNumber(formobj.amongSzPrice,2)" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty spanOneWidth"><span>上装价格计算依据</span></div>
@ -90,11 +90,11 @@
</el-col>
<el-col :span="8">
<div class="span-sty spanOneWidth">一次运费</div>
<el-form-item><el-input @input="inputOnceFreight" v-model="formobj.onceFreight" placeholder="" clearable @keyup.native="formobj.onceFreight = oninput(formobj.onceFreight,2)" class="addinputw addinputwOne"/></el-form-item>
<el-form-item><el-input @input="inputOnceFreight" v-model="formobj.onceFreight" placeholder="" clearable @keyup.native="formobj.onceFreight = getNumber(formobj.onceFreight,2)" class="addinputw addinputwOne"/></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty spanOneWidth">二次运费</div>
<el-form-item><el-input @input="inputSecondaryFreight" v-model="formobj.secondaryFreight" placeholder="" clearable @keyup.native="formobj.secondaryFreight = oninput(formobj.secondaryFreight,2)" class="addinputw addinputwOne"/></el-form-item>
<el-form-item><el-input @input="inputSecondaryFreight" v-model="formobj.secondaryFreight" placeholder="" clearable @keyup.native="formobj.secondaryFreight = getNumber(formobj.secondaryFreight,2)" class="addinputw addinputwOne"/></el-form-item>
</el-col>
</el-row>
<div class="title">
@ -108,7 +108,7 @@
</el-col>
<el-col :span="6">
<div class="span-sty spanOneWidth"><span>可享受金额</span></div>
<el-form-item><el-input @input="inputEligibleAmountOne" @keyup.native="formobj.eligibleAmountOne = oninput(formobj.eligibleAmountOne,2)" v-model="formobj.eligibleAmountOne" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
<el-form-item><el-input @input="inputEligibleAmountOne" @keyup.native="formobj.eligibleAmountOne = getNumber(formobj.eligibleAmountOne,2)" v-model="formobj.eligibleAmountOne" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
</el-col>
<el-col :span="12" style="border-bottom: 0px !important;">
<div class="spanThreeWidth">
@ -126,7 +126,7 @@
</el-col>
<el-col :span="6">
<div class="span-sty spanOneWidth"><span>可享受金额</span></div>
<el-form-item><el-input @input="inputEligibleAmountTwo" @keyup.native="formobj.eligibleAmountTwo = oninput(formobj.eligibleAmountTwo,2)" v-model="formobj.eligibleAmountTwo" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
<el-form-item><el-input @input="inputEligibleAmountTwo" @keyup.native="formobj.eligibleAmountTwo = getNumber(formobj.eligibleAmountTwo,2)" v-model="formobj.eligibleAmountTwo" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
</el-col>
<el-col :span="12">
<div class="spanThreeWidth">
@ -145,7 +145,7 @@
</el-col>
<el-col :span="6">
<div class="span-sty spanOneWidth"><span>可享受比例(%)</span></div>
<el-form-item><el-input @input="inputEligibleProportionTwo" v-model="formobj.eligibleProportionTwo" @keyup.native="formobj.eligibleProportionTwo = UpNumberRatio(formobj.eligibleProportionTwo,2)" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
<el-form-item><el-input @input="inputEligibleProportionTwo" v-model="formobj.eligibleProportionTwo" @keyup.native="formobj.eligibleProportionTwo = getNumber(formobj.eligibleProportionTwo,2)" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>对应金额</span></div>
@ -159,7 +159,7 @@
</el-col>
<el-col :span="6">
<div class="span-sty spanOneWidth"><span>可享受比例(%)</span></div>
<el-form-item><el-input @input="inputEligibleProportionThree" v-model="formobj.eligibleProportionThree" @keyup.native="formobj.eligibleProportionThree = UpNumberRatio(formobj.eligibleProportionThree,2)" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
<el-form-item><el-input @input="inputEligibleProportionThree" v-model="formobj.eligibleProportionThree" @keyup.native="formobj.eligibleProportionThree = getNumber(formobj.eligibleProportionThree,2)" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
</el-col>
<el-col :span="12">
<div class="span-sty spanOneWidth"><span>对应金额</span></div>
@ -169,7 +169,7 @@
<el-row>
<el-col :span="6">
<div class="span-sty spanOneWidth"><span>金额合计</span></div>
<el-form-item><el-input v-model="formobj.moneyCount" @keyup.native="formobj.moneyCount = UpNumberRatio(formobj.moneyCount,2)" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
<el-form-item><el-input v-model="formobj.moneyCount" @keyup.native="formobj.moneyCount = getNumber(formobj.moneyCount,2)" placeholder="" clearable class="addinputw addinputwOne"/></el-form-item>
</el-col>
<el-col :span="18">
<div class="span-sty spanOneWidth"><span>政策备注</span></div>
@ -331,24 +331,8 @@ export default {
}
})
},
//
oninput(val, limit = 0) {
val = val.replace(/[^\d]/g, '') //
val = val.replace(/^00/, '0'); // 0
/^0\d+/.test(val) ? val = val.slice(1) : '' // 0
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$'
const reg = new RegExp(str)
if (limit === 0) {
//
val = val.replace(reg, '$1')
} else {
//
val = val.replace(reg, '$1.$2')
}
return val
},
UpNumberRatio(val, limit = 2) {
val = val.replace(/[^\d.]/g, '') //
getNumber(val, limit) {
val = val.replace(/[^0-9.]/g, '') //
val = val.replace(/^00/, '0.') // 0
val = val.replace(/^\./g, '0.') // 0.
val = val.replace(/\.{2,}/g, '.') //
@ -422,211 +406,125 @@ export default {
this.inputEligibleProportionThree()
}
},
// 3
// 3
inputEligibleProportionTwo() {
if (this.formobj.eligibleProportionTwo !== '') {
if (this.policyOneChecked && this.policyOneTwoChecked) { // 312
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
}
} else {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
if (this.formobj.eligibleProportionTwo !== '') { // 3
if (this.policyOneChecked && this.policyOneTwoChecked) { // 12
if (this.freightChecked) { //
// 3 = ( - - - 1 - 2) * 3
this.formobj.corrMoneyTwo = Math.round((((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0')) * (parseFloat(this.formobj.eligibleProportionTwo !== '' ? this.formobj.eligibleProportionTwo : '0') / 100))) * 100) / 100
} else { //
// 3 = ( - 1 - 2) * 3
this.formobj.corrMoneyTwo = Math.round((((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0')) * (parseFloat(this.formobj.eligibleProportionTwo !== '' ? this.formobj.eligibleProportionTwo : '0') / 100))) * 100) / 100
}
} else if (this.policyOneChecked && !this.policyOneTwoChecked) { // 31
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
}
} else {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (this.policyOneChecked && !this.policyOneTwoChecked) { // 312
if (this.freightChecked) { //
// 3 = ( - - - 1) * 3
this.formobj.corrMoneyTwo = Math.round((((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0')) * (parseFloat(this.formobj.eligibleProportionTwo !== '' ? this.formobj.eligibleProportionTwo : '0') / 100))) * 100) / 100
} else { //
// 3 = ( - 1) * 3
this.formobj.corrMoneyTwo = Math.round((((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0')) * (parseFloat(this.formobj.eligibleProportionTwo !== '' ? this.formobj.eligibleProportionTwo : '0') / 100))) * 100) / 100
}
} else if (!this.policyOneChecked && this.policyOneTwoChecked) { // 32
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
}
} else {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (!this.policyOneChecked && this.policyOneTwoChecked) { // 312
if (this.freightChecked) { //
// 3 = ( - - - 2) * 3
this.formobj.corrMoneyTwo = Math.round((((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0')) * (parseFloat(this.formobj.eligibleProportionTwo !== '' ? this.formobj.eligibleProportionTwo : '0') / 100))) * 100) / 100
} else { //
// 3 = ( - 2) * 3
this.formobj.corrMoneyTwo = Math.round((((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0')) * (parseFloat(this.formobj.eligibleProportionTwo !== '' ? this.formobj.eligibleProportionTwo : '0') / 100))) * 100) / 100
}
} else { // 3
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyTwo = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight)), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else {
this.formobj.corrMoneyTwo = this.multiplication(parseFloat(this.formobj.contractPrice), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
}
} else {
this.formobj.corrMoneyTwo = this.multiplication(parseFloat(this.formobj.contractPrice), (parseFloat(this.formobj.eligibleProportionTwo) / 100))
} else { // 312
if (this.freightChecked) { //
// 3 = ( - - ) * 3
this.formobj.corrMoneyTwo = Math.round((((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0')) * (parseFloat(this.formobj.eligibleProportionTwo !== '' ? this.formobj.eligibleProportionTwo : '0') / 100))) * 100) / 100
} else { //
// 3 = () * 3
this.formobj.corrMoneyTwo = Math.round((((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0')) * (parseFloat(this.formobj.eligibleProportionTwo !== '' ? this.formobj.eligibleProportionTwo : '0') / 100))) * 100) / 100
}
}
} else {
} else { // 330
this.formobj.corrMoneyTwo = 0
}
if (this.formobj.eligibleAmountOne === '' && this.formobj.eligibleAmountTwo === '') {
this.formobj.moneyCount = parseFloat(0) + parseFloat(this.formobj.corrMoneyTwo) + parseFloat(this.formobj.corrMoneyThree)
} else if (this.formobj.eligibleAmountOne !== '' && this.formobj.eligibleAmountTwo === '') {
this.formobj.moneyCount = parseFloat(this.formobj.eligibleAmountOne) + parseFloat(this.formobj.corrMoneyTwo) + parseFloat(this.formobj.corrMoneyThree)
} else if (this.formobj.eligibleAmountOne === '' && this.formobj.eligibleAmountTwo !== '') {
this.formobj.moneyCount = parseFloat(this.formobj.eligibleAmountTwo) + parseFloat(this.formobj.corrMoneyTwo) + parseFloat(this.formobj.corrMoneyThree)
} else {
this.formobj.moneyCount = parseFloat(this.formobj.eligibleAmountOne) + parseFloat(this.formobj.eligibleAmountTwo) + parseFloat(this.formobj.corrMoneyTwo) + parseFloat(this.formobj.corrMoneyThree)
}
// = 1 + 2 + 3 + 4
this.formobj.moneyCount = Math.round((parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') + parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0') + parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '') + parseFloat(this.formobj.corrMoneyThree !== '' ? this.formobj.corrMoneyThree : '')) * 100) / 100
if (this.formobj.eligibleProportionThree !== '') {
this.inputEligibleProportionThree()
}
return this.formobj.corrMoneyTwo
},
// 4
// 4
inputEligibleProportionThree() {
if (this.formobj.eligibleProportionThree !== '') {
if (this.policyTwoChecked && this.policyThreeChecked && this.policyThreeByThreeChecked) { // 4123
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
}
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
if (this.formobj.eligibleProportionThree !== '') { // 4
if (this.policyTwoChecked && this.policyThreeChecked && this.policyThreeByThreeChecked) { // 4123
if (this.freightChecked) { //
// 4 = ( - - - 1 - 2 - 3) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0') - parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
} else { //
// 4 = ( - 1 - 2 - 3) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0') - parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
}
} else if (this.policyTwoChecked && !this.policyThreeChecked && this.policyThreeByThreeChecked) { // 413
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
}
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.policyTwoChecked && !this.policyThreeChecked && this.policyThreeByThreeChecked) { // 4132
if (this.freightChecked) { //
// 4 = ( - - - 1 - 3) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') - parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
} else { //
// 4 = ( - 1 - 3) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') - parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
}
} else if (!this.policyTwoChecked && this.policyThreeChecked && this.policyThreeByThreeChecked) { // 423
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.corrMoneyTwo) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.corrMoneyTwo) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.corrMoneyTwo) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.corrMoneyTwo) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
}
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.corrMoneyTwo) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (!this.policyTwoChecked && this.policyThreeChecked && this.policyThreeByThreeChecked) { // 4123
if (this.freightChecked) { //
// 4 = ( - - - 2 - 3) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0') - parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
} else { //
// 4 = ( - 2 - 3) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0') - parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
}
} else if (this.policyTwoChecked && this.policyThreeChecked && !this.policyThreeByThreeChecked) { // 412
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
}
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.policyTwoChecked && this.policyThreeChecked && !this.policyThreeByThreeChecked) { // 4123
if (this.freightChecked) { //
// 4 = ( - - - 1 - 2) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
} else { //
// 4 = ( - 1 - 2) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
}
} else if (!this.policyTwoChecked && !this.policyThreeChecked && this.policyThreeByThreeChecked) { // 43
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
}
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.corrMoneyTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
}
} else if (this.policyTwoChecked && !this.policyThreeChecked && !this.policyThreeByThreeChecked) { // 41
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
}
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountOne)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
if (this.freightChecked) { //
// 4 = ( - - - 3) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
} else { //
// 4 = ( - 3) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
}
} else if (!this.policyTwoChecked && this.policyThreeChecked && !this.policyThreeByThreeChecked) { // 42
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
}
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.eligibleAmountTwo)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
if (this.freightChecked) { //
// 4 = ( - - - 2) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
} else { //
// 4 = ( - 2) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
}
} else if (this.policyTwoChecked && !this.policyThreeChecked && !this.policyThreeByThreeChecked) { // 41
if (this.freightChecked) { //
// 4 = ( - - - 1) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
} else { //
// 4 = ( - 1) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
}
} else { // 4
if (this.freightChecked) {
if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight) - parseFloat(this.formobj.secondaryFreight)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight !== '' && this.formobj.secondaryFreight === '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.onceFreight)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else if (this.formobj.onceFreight === '' && this.formobj.secondaryFreight !== '') {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice) - parseFloat(this.formobj.secondaryFreight)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
}
} else {
this.formobj.corrMoneyThree = this.multiplication((parseFloat(this.formobj.contractPrice)), (parseFloat(this.formobj.eligibleProportionThree) / 100))
if (this.freightChecked) { //
// 4 = ( - - ) * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0') - parseFloat(this.formobj.onceFreight !== '' ? this.formobj.onceFreight : '0') - parseFloat(this.formobj.secondaryFreight !== '' ? this.formobj.secondaryFreight : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
} else { //
// 4 = () * 4
this.formobj.corrMoneyThree = Math.round(((parseFloat(this.formobj.contractPrice !== '' ? this.formobj.contractPrice : '0')) * (parseFloat(this.formobj.eligibleProportionThree !== '' ? this.formobj.eligibleProportionThree : '0') / 100)) * 100) / 100
}
}
} else {
} else { // 40
this.formobj.corrMoneyThree = 0
}
if (this.formobj.eligibleAmountOne === '' && this.formobj.eligibleAmountTwo === '') {
this.formobj.moneyCount = parseFloat(0) + parseFloat(this.formobj.corrMoneyTwo) + parseFloat(this.formobj.corrMoneyThree)
} else if (this.formobj.eligibleAmountOne !== '' && this.formobj.eligibleAmountTwo === '') {
this.formobj.moneyCount = parseFloat(this.formobj.eligibleAmountOne) + parseFloat(this.formobj.corrMoneyTwo) + parseFloat(this.formobj.corrMoneyThree)
} else if (this.formobj.eligibleAmountOne === '' && this.formobj.eligibleAmountTwo !== '') {
this.formobj.moneyCount = parseFloat(this.formobj.eligibleAmountTwo) + parseFloat(this.formobj.corrMoneyTwo) + parseFloat(this.formobj.corrMoneyThree)
} else {
this.formobj.moneyCount = parseFloat(this.formobj.eligibleAmountOne) + parseFloat(this.formobj.eligibleAmountTwo) + parseFloat(this.formobj.corrMoneyTwo) + parseFloat(this.formobj.corrMoneyThree)
}
// = 1 + 2 + 3 + 4
this.formobj.moneyCount = Math.round((parseFloat(this.formobj.eligibleAmountOne !== '' ? this.formobj.eligibleAmountOne : '0') + parseFloat(this.formobj.eligibleAmountTwo !== '' ? this.formobj.eligibleAmountTwo : '0') + parseFloat(this.formobj.corrMoneyTwo !== '' ? this.formobj.corrMoneyTwo : '') + parseFloat(this.formobj.corrMoneyThree !== '' ? this.formobj.corrMoneyThree : '')) * 100) / 100
return this.formobj.corrMoneyThree
},
inputMoneyCount() {
@ -638,22 +536,6 @@ export default {
}
return this.formobj.costPrice
},
multiplication(arg1, arg2) {
var m = 0
var s1 = arg1.toString()
var s2 = arg2.toString()
try {
m += s1.split('.')[1].length
} catch (e) {
console.log(e)
}
try {
m += s2.split('.')[1].length
} catch (e) {
console.log(e)
}
return Number(s1.replace('.', '')) * Number(s2.replace('.', '')) / Math.pow(10, m)
},
showEdit(sid, row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
@ -875,8 +757,8 @@ export default {
//
var hint = 0
if (this.formobj.vehicleList.length > 0) {
for (var i = 0; i < this.formobj.vehicleList.length; i++) {
if (this.formobj.vehicleList[i].vinNo === '') {
for (var j = 0; j < this.formobj.vehicleList.length; j++) {
if (this.formobj.vehicleList[j].vinNo === '') {
hint = 1
break
}
@ -891,19 +773,24 @@ export default {
}).then(() => {
this.$refs['form_obj'].validate(valid => {
if (valid) {
const loading = this.$loading({
lock: true,
text: '数据正在保存中,请勿关闭页面',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
this.submitdisabled = true
req.confirmRZ(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '提交成功'
})
loading.close()
this.$message({ showClose: true, type: 'success', message: '提交成功' })
this.handleReturn('true')
} else {
loading.close()
this.submitdisabled = false
}
}).catch(() => {
loading.close()
this.submitdisabled = false
})
}
@ -922,18 +809,23 @@ export default {
this.$refs['form_obj'].validate(valid => {
if (valid) {
this.submitdisabled = true
const loading = this.$loading({
lock: true,
text: '数据正在保存中,请勿关闭页面',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.confirmRZ(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '提交成功'
})
loading.close()
this.$message({ showClose: true, type: 'success', message: '提交成功' })
this.handleReturn('true')
} else {
loading.close()
this.submitdisabled = false
}
}).catch(() => {
loading.close()
this.submitdisabled = false
})
}

1
yxt-as-ui/src/views/basicinformation/technicalTitle/technicalTitle.vue

@ -31,6 +31,7 @@
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column prop="state" label="备案状态" align="center" width="150" />
<el-table-column prop="titleNameValue" label="职称名称" align="center" width="150" />
<el-table-column prop="weight" label="权重" align="center" width="80" />
<el-table-column prop="useOrgName" label="隶属服务站" align="center" width="150"/>

Loading…
Cancel
Save