Commit 95b8dfd6 by 前端

第二轮测试BUG修复

1 parent 9ba27063
<template> <template>
<el-dialog id="baseDialog" top="15vh" :close-on-click-modal="false" :close-on-press-escape="true" <el-dialog id="baseDialog"
:title="dialogConfig.title" :width="dialogConfig.width" :visible.sync="visible" :show-close="config.showClose" top="15vh"
class="noborder" :append-to-body="config.appendToBody"> :close-on-click-modal="false"
:close-on-press-escape="true"
:title="dialogConfig.title"
:width="dialogConfig.width"
:visible.sync="visible"
:show-close="config.showClose"
class="noborder"
:append-to-body="config.appendToBody">
<slot /> <slot />
<div slot="footer" v-if="config.isShowFooter"> <div slot="footer"
<el-button type="primary" @click="confirmBtn"> v-if="config.isShowFooter">
<el-button type="primary"
@click="confirmBtn"
:loading="$store.state.d2admin.loading.value">
{{ config.confirm_name }} {{ config.confirm_name }}
</el-button> </el-button>
<el-button v-preventReClick @click="visible = false"> <el-button v-preventReClick
@click="visible = false">
{{ config.cancel_name }} {{ config.cancel_name }}
</el-button> </el-button>
</div> </div>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:dialog-config="dialogConfig.config" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose"> @closeDialog="handleDetailClose">
<div class="detail-content" <div class="detail-content"
v-if="dialogShow"> v-loading="loading">
<div class="merchant-info"> <div class="merchant-info">
<div class="transferOut"> <div class="transferOut">
<div class="transferOut-name">{{ detailInfo.transferOutMerchantName }}</div> <div class="transferOut-name">{{ detailInfo.transferOutMerchantName }}</div>
...@@ -164,6 +164,7 @@ export default { ...@@ -164,6 +164,7 @@ export default {
transferAccountsStatusShow: deepClone(transferAccountsStatusShow), transferAccountsStatusShow: deepClone(transferAccountsStatusShow),
sceneTypeOpts: deepClone(sceneType), sceneTypeOpts: deepClone(sceneType),
transferTypeShow: deepClone(transferTypeShow), transferTypeShow: deepClone(transferTypeShow),
loading: true
} }
}, },
methods: { methods: {
...@@ -174,6 +175,7 @@ export default { ...@@ -174,6 +175,7 @@ export default {
}, },
getDetail() { getDetail() {
transferAccountsRecordDetail({ orderCode: this.paramsObj.orderCode }).then(res => { transferAccountsRecordDetail({ orderCode: this.paramsObj.orderCode }).then(res => {
this.loading = false
this.detailInfo = res this.detailInfo = res
let _logs = this.detailInfo.logs let _logs = this.detailInfo.logs
if (_logs && _logs.length > 0) { if (_logs && _logs.length > 0) {
......
...@@ -45,7 +45,10 @@ export default { ...@@ -45,7 +45,10 @@ export default {
label: '备注', label: '备注',
name: 'remark', name: 'remark',
type: 'input', type: 'input',
maxlength: '50' maxlength: 50,
inputType: 'textarea',
showLimit: true,
rows: 4
}], }],
baseData: { baseData: {
// shippingEntityList: [] // shippingEntityList: []
......
...@@ -47,7 +47,11 @@ ...@@ -47,7 +47,11 @@
prop="remark" prop="remark"
class="pdt"> class="pdt">
<el-input v-model="cashForm.remark" <el-input v-model="cashForm.remark"
type="textarea"
maxlength="50"
placeholder="请输入备注" placeholder="请输入备注"
show-word-limit
:rows="4"
style="width: 310px" /> style="width: 310px" />
<p> <p>
财务确认后,转账业务单据自动流转至银盛完成正式转账。 财务确认后,转账业务单据自动流转至银盛完成正式转账。
......
...@@ -44,7 +44,10 @@ export default { ...@@ -44,7 +44,10 @@ export default {
label: '驳回原因', label: '驳回原因',
name: 'remark', name: 'remark',
type: 'input', type: 'input',
maxlength: '50' maxlength: 50,
inputType: 'textarea',
showLimit: true,
rows: 4
}], }],
baseData: { baseData: {
......
...@@ -238,10 +238,11 @@ export default { ...@@ -238,10 +238,11 @@ export default {
prop: 'transferInMerchantName', prop: 'transferInMerchantName',
width: '160px' width: '160px'
}, { }, {
label: '转账金额', label: '转账金额/元',
prop: 'transferTotalAmount', prop: 'transferTotalAmount',
width: '100px',
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.transferTotalAmount ? '¥' + cellValue.transferTotalAmount : '' return cellValue.transferTotalAmount ? cellValue.transferTotalAmount : ''
} }
}, { }, {
label: '费用类型', label: '费用类型',
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
:value="item.merchantId" /> :value="item.merchantId" />
</el-select> </el-select>
<p> <p>
银盛账户余额:{{(balance || balance == 0)?balance:'-'}} 银盛账户余额:{{(balance || balance === 0)?balance:'-'}}
</p> </p>
</el-form-item> </el-form-item>
<el-form-item label="提现金额:" <el-form-item label="提现金额:"
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
<el-input v-model="infoForm.totalAmount" <el-input v-model="infoForm.totalAmount"
placeholder="请输入提现金额" placeholder="请输入提现金额"
style="width: 310px" style="width: 310px"
:disabled="totalAmountDisabled"
@input="handleUpgradeNum" /> @input="handleUpgradeNum" />
</el-form-item> </el-form-item>
<el-form-item label="财务管理员:" <el-form-item label="财务管理员:"
...@@ -116,7 +117,8 @@ export default { ...@@ -116,7 +117,8 @@ export default {
administratorsList: [], administratorsList: [],
merchantList: [] merchantList: []
}, },
balance: '' balance: '',
totalAmountDisabled: true
} }
}, },
...@@ -172,9 +174,15 @@ export default { ...@@ -172,9 +174,15 @@ export default {
}, },
getBankBalance(val) { getBankBalance(val) {
this.infoForm.totalAmount = '' this.infoForm.totalAmount = ''
this.balance = ''
getBankBalance({ merchantId: val }).then(res => { getBankBalance({ merchantId: val }).then(res => {
if (res || res == 0) { if (res || res == 0) {
this.balance = res this.balance = res
if (this.balance) {
this.totalAmountDisabled = false
} else {
this.totalAmountDisabled = true
}
} }
}) })
}, },
...@@ -183,6 +191,9 @@ export default { ...@@ -183,6 +191,9 @@ export default {
if (this.balance) { if (this.balance) {
maxVal = this.balance maxVal = this.balance
} }
// else {
// newVal = ''
// }
this.infoForm.totalAmount = limitPrice(newVal, this.oldVal.totalAmount, 6, 2, 0, maxVal) this.infoForm.totalAmount = limitPrice(newVal, this.oldVal.totalAmount, 6, 2, 0, maxVal)
this.oldVal.totalAmount = this.infoForm.totalAmount this.oldVal.totalAmount = this.infoForm.totalAmount
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!