pull/19/head^2
xiaozhiyong 1 year ago
parent 142d70d164
commit acc86e9030
  1. 6
      src/views/financialCenter/enterpriseRecharge/components/add.vue
  2. 2
      src/views/financialCenter/enterpriseRecharge/components/addTurn.vue
  3. 2
      src/views/order/components/billOfLading.vue
  4. 8
      src/views/refineryCenter/index.vue

@ -128,6 +128,10 @@ export default {
if (this.form.companyId) callback() if (this.form.companyId) callback()
else callback('请选择公司') else callback('请选择公司')
} }
let checkZero = (rule, value, callback) => {
if (!+value) callback('请输入交易金额或交易金额不可为0')
else callback()
}
let validatorRefineryCenterAccountId = (rule, value, callback) => { let validatorRefineryCenterAccountId = (rule, value, callback) => {
if (this.form.refineryCenterAccountId) callback() if (this.form.refineryCenterAccountId) callback()
else callback('请选择油批中心账户') else callback('请选择油批中心账户')
@ -174,7 +178,7 @@ export default {
rules: { rules: {
companyId: [{ required: true, validator: validatorcompanyId, trigger: 'change' }], companyId: [{ required: true, validator: validatorcompanyId, trigger: 'change' }],
transactionType: [{ required: true, message: '请选择交易类型', trigger: 'change' }], transactionType: [{ required: true, message: '请选择交易类型', trigger: 'change' }],
transactionAmount: [{ required: true, message: '请输入交易金额', trigger: 'blur' }], transactionAmount: [{ required: true, validator: checkZero, trigger: 'blur' }],
offlinePaymentCompany: [ offlinePaymentCompany: [
{ {
required: true, required: true,

@ -79,9 +79,9 @@ export default {
// else callback(""); // else callback("");
// }; // };
let validatortransactionAmount = (rule, value, callback) => { let validatortransactionAmount = (rule, value, callback) => {
if (!+value) callback('请输入圈回金额或圈回金额不可为0')
let typeTarget = this.correspondTypeEnum.find(item => item.value == this.form.turnType) let typeTarget = this.correspondTypeEnum.find(item => item.value == this.form.turnType)
let superiorLimit = this.companyInfo[typeTarget.valueKey] let superiorLimit = this.companyInfo[typeTarget.valueKey]
if (value == '') callback('请输入圈回金额')
if (value > superiorLimit) { if (value > superiorLimit) {
callback(`圈回金额不可超过${typeTarget.label}`) callback(`圈回金额不可超过${typeTarget.label}`)
} }

@ -362,7 +362,7 @@ export default {
if (refineryInfo) { if (refineryInfo) {
let balance = refineryInfo.balance * 10000 let balance = refineryInfo.balance * 10000
let costTotal = orderInfo.floorPrice * orderInfo.preQuantity * 10000 let costTotal = orderInfo.floorPrice * orderInfo.preQuantity * 10000
let total = this.$utils.fixedHandle((balance + costTotal) / 10000) let total = this.$utils.fixedHandle((balance - costTotal) / 10000)
return total return total
} }
return 0 return 0

@ -14,11 +14,11 @@
><br /> ><br />
<span>充值余额</span> <span>充值余额</span>
</div> </div>
<!-- <div> <div>
<span>{{ topData.totalRechargeBalance }}</span <span>{{ topData.totalRechargeBalance }}</span
><br /> ><br />
<span>累计充值余额</span> <span>累计充值余额</span>
</div> --> </div>
</div> </div>
</div> </div>
</div> </div>
@ -89,7 +89,7 @@
</p> </p>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="累计充值余额变动" minWidth="120"> <el-table-column label="累计充值余额变动" minWidth="120">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<p class="gray"> <p class="gray">
当前 <span>{{ row.currentTotalRechargeAmount }}</span> 当前 <span>{{ row.currentTotalRechargeAmount }}</span>
@ -98,7 +98,7 @@
上次 <span>{{ row.lastTotalRechargeAmount }}</span> 上次 <span>{{ row.lastTotalRechargeAmount }}</span>
</p> </p>
</template> </template>
</el-table-column> --> </el-table-column>
<el-table-column prop="reverseId" label="业务单号" minWidth="180"> </el-table-column> <el-table-column prop="reverseId" label="业务单号" minWidth="180"> </el-table-column>
<el-table-column prop="createTime" label="创建时间" minWidth="210"> </el-table-column> <el-table-column prop="createTime" label="创建时间" minWidth="210"> </el-table-column>
</el-table> </el-table>

Loading…
Cancel
Save