diff --git a/src/views/AdvancePay/AddAdvancePay.vue b/src/views/AdvancePay/AddAdvancePay.vue index d893aa89..534c879f 100644 --- a/src/views/AdvancePay/AddAdvancePay.vue +++ b/src/views/AdvancePay/AddAdvancePay.vue @@ -72,18 +72,11 @@ - + @@ -159,6 +152,15 @@ export default { callback() } } + + const validatePass5 = (rule, value, callback) => { + console.log(this.personalForm.bankName, value) + if (this.personalForm.bankName === undefined || this.personalForm.bankName === null || this.personalForm.bankName === '') { + callback(new Error('请输入开户行')) + } else { + callback() + } + } // const validatePass4 = (rule, value, callback) => { // console.log(this.personalForm.settleMode) // if (this.personalForm.settleMode === undefined || this.personalForm.settleMode === null || this.personalForm.settleMode === '') { @@ -232,6 +234,9 @@ export default { }, // 采购申请单规则数据 personalrules: { + bankName: [ + { required: true, validator: validatePass5, trigger: 'blur' } + ], supplierId: [ { required: true, validator: validatePass, trigger: 'change' } ], @@ -299,7 +304,7 @@ export default { // }) // console.log('needratio', needratio) console.log('this.personalForm.ratioRate', this.personalForm.ratioRate) - this.personalForm.totalMoney = Number(this.personalForm.ratioRate) / 100 * Number(this.personalForm.orderMoney) + this.personalForm.totalMoney = (Number(this.personalForm.ratioRate) / 100 * Number(this.personalForm.orderMoney)).toFixed(2) }, getinformation() { if (this.$store.getters.empcontract) { @@ -490,6 +495,7 @@ export default { this.stockPersonId = val.buyerName this.personalForm.stockPersonId = val.buyerId this.personalForm.settleMode = val.paymentId + this.personalForm.bankName = val.bankName if (val.moneyId !== '' && val.moneyId !== null && val.moneyId !== undefined) { this.personalForm.currency = String(val.moneyId) } diff --git a/src/views/AdvancePay/AdvancePayList.vue b/src/views/AdvancePay/AdvancePayList.vue index 87b42a5c..dd44c6e4 100644 --- a/src/views/AdvancePay/AdvancePayList.vue +++ b/src/views/AdvancePay/AdvancePayList.vue @@ -131,6 +131,8 @@ + + @@ -267,6 +269,49 @@ export default { _that = this }, methods: { + handleReview4(row) { + console.log('row ====', row) + this.reviewParms = {} + this.reviewParms.id = row.id + this.reviewParms.judgePersonId = this.$store.getters.userId + this.$confirm(this.$t('prompt.qfsp'), this.$t('prompt.fsp'), { + distinguishCancelAndClose: true, + confirmButtonText: this.$t('prompt.fsp'), + type: 'warning' + }).then(() => { + this.reviewParms.judgeStat = 0 + const parms = JSON.stringify(this.reviewParms) + updateadvancepay2(parms).then(res => { + if (res.data.ret === 200) { + if (res.data.data.result === false) { + this.$message({ + type: 'error', + message: this.$t('prompt.fspsb') + }) + } else { + this.$message({ + type: 'success', + message: this.$t('prompt.fspcg') + }) + } + this.getlist() + } else { + this.$notify.error({ + title: 'wrong', + message: res.data.msg, + offset: 100 + }) + } + }) + }) + }, + // 判断反审批按钮 + isReview4(row) { + // console.log(row) + if (row.judgeStat === 2 && row.receiptStat !== 3) { + return true + } + }, numFormat(num) { var res = num.toString().replace(/\d+/, function(n) { // 先提取整数部分 return n.replace(/(\d)(?=(\d{3})+$)/g, function($1) { diff --git a/src/views/AdvancePay/components/DetailList.vue b/src/views/AdvancePay/components/DetailList.vue index b1b51808..190513b0 100644 --- a/src/views/AdvancePay/components/DetailList.vue +++ b/src/views/AdvancePay/components/DetailList.vue @@ -46,6 +46,12 @@ {{ personalForm.payAccount }} + + + + {{ personalForm.bankName }} + + {{ personalForm.ratioRate }} @@ -102,6 +108,15 @@ {{ scope.row.stat | statfilter }} + + + @@ -240,12 +255,12 @@ export default { this.personalForm = this.detaildata this.list2 = this.personalForm.stockArrivalDetailVos this.reviewList = [] - const review = this.personalForm.approvalUseVos - for (const i in review) { - if (review[i].actualStepHandler !== null) { - this.reviewList.push(review[i]) - } - } + this.reviewList = this.personalForm.approvalUseVos + // for (const i in review) { + // if (review[i].actualStepHandler !== null) { + // this.reviewList.push(review[i]) + // } + // } } }, beforeCreate() { diff --git a/src/views/AdvancePay/components/MyDialog.vue b/src/views/AdvancePay/components/MyDialog.vue index 5a039df7..d13a4e6d 100644 --- a/src/views/AdvancePay/components/MyDialog.vue +++ b/src/views/AdvancePay/components/MyDialog.vue @@ -70,6 +70,12 @@ + + + + + +