|
@@ -1,15 +1,16 @@
|
|
|
<template>
|
|
|
<div class="mis-Box">
|
|
|
<div class="header">
|
|
|
- <cpscustomer @selValue="selValue" />
|
|
|
+ <cpscustomer @selValue="selValue" ref="fileInput" />
|
|
|
</div>
|
|
|
<el-container>
|
|
|
<el-aside width="20%">
|
|
|
<div class="content">
|
|
|
+
|
|
|
<div class="ms">
|
|
|
<el-descriptions :column="1" border size="medium" labelClassName="descLabel" contentClassName="descContent">
|
|
|
<el-descriptions-item label="用户编号:" labelStyle="width:4%;font-weight:bold"
|
|
|
- contentStyle="width:8%;font-weight:bold">
|
|
|
+ contentStyle="width:8%;font-weight:bold;font-color:red">
|
|
|
{{ customerModel.customerNo }}
|
|
|
</el-descriptions-item>
|
|
|
|
|
@@ -20,22 +21,20 @@
|
|
|
{{ customerModel.mrBook }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="用水性质:" labelStyle="width:4%;" contentStyle="width:5%;">
|
|
|
- 3
|
|
|
+ {{customerModel.priceName}}
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
<el-descriptions-item label="水表编号:" labelStyle="width:4%;" contentStyle="width:5%;">
|
|
|
{{ customerModel.meterNumber }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item label="联系电话:" labelStyle="width:4%;" contentStyle="width:5%;">
|
|
|
-
|
|
|
- {{ customerModel.customerPhone }}
|
|
|
-
|
|
|
+ <el-descriptions-item label="联系电话:" labelStyle="width:4%;" contentStyle="width:5%;">
|
|
|
+ {{ customerModel.customerPhone }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="用户地址:">
|
|
|
{{ customerModel.customerAddr }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="票据类型:">
|
|
|
- 8
|
|
|
+ {{customerModel.invoiceType}}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item label="水表类别:">
|
|
|
{{ customerModel.meterType }}
|
|
@@ -56,10 +55,18 @@
|
|
|
<el-table-column prop="totalPrice" label="金额">
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
|
|
|
+ <el-divider><i class="el-icon-mobile-phone"></i>辅助信息</el-divider>
|
|
|
+ <el-row type="flex" class="row-bg" style="width:100%">
|
|
|
+ <el-col :span="12">上笔金额</el-col>
|
|
|
+ <el-col :span="12">{{ lastChargeMoney }} 元</el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
- <el-divider><i class="el-icon-mobile-phone"></i>今日统计</el-divider>
|
|
|
- <div style="background-color:red">
|
|
|
+ <!-- <el-divider><i class="el-icon-mobile-phone"></i>今日(实收)统计</el-divider> -->
|
|
|
+
|
|
|
+ <!-- <div style="background-color:red">
|
|
|
<el-table :data="feesData" style="width: 100%">
|
|
|
<el-table-column prop="chargeType" label="方式">
|
|
|
</el-table-column>
|
|
@@ -67,9 +74,9 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="totalPrice" label="金额">
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
+ </el-table>
|
|
|
+ </div> -->
|
|
|
|
|
|
- </div>
|
|
|
</div>
|
|
|
|
|
|
</el-aside>
|
|
@@ -125,15 +132,16 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6" type="flex" align="middle">
|
|
|
<div class="grid-content bg-purple">实收金额:<el-input v-model="feesModel.chargeAcc" size="small"
|
|
|
- :disabled="true" style="width:50%" placeholder="实收金额"></el-input>元</div>
|
|
|
+ :disabled="true" style="width:50%" placeholder="实收金额"></el-input>元</div>
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="6" type="flex" align="middle">
|
|
|
<div class="grid-content bg-purple">
|
|
|
- <el-button type="warning" v-model="btnCharge" round :style="{ display: this.btnChagreVisable == true ? 'none' : '' }"
|
|
|
- ref="tableHeadFilterBtn" @click="onCharge">收费</el-button>
|
|
|
+ <el-button type="warning" v-model="btnCharge" round
|
|
|
+ :style="{ display: this.btnChagreVisable == true ? 'none' : '' }" ref="tableHeadFilterBtn"
|
|
|
+ @click="onCharge">收费</el-button>
|
|
|
<el-button type="warning" round :style="{ display: this.btnYFFChagreVisable == true ? 'none' : '' }"
|
|
|
- @click="onAdvPayment">预存</el-button>
|
|
|
+ ref="tableHeadFilterYcBtn" @click="onAdvPayment">预存</el-button>
|
|
|
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -150,12 +158,22 @@
|
|
|
<div class="grid-content bg-purple">累计金额:</div>
|
|
|
</el-col> -->
|
|
|
<el-col :span="6" type="flex" align="middle">
|
|
|
- <div class="grid-content bg-purple">付费方式:<el-input v-model="feesModel.fffs" size="small" style="width:50%"
|
|
|
- placeholder="付费方式"></el-input>元</div>
|
|
|
+ <div class="grid-content bg-purple">
|
|
|
+
|
|
|
+ 付费方式:
|
|
|
+ <el-select v-model="selectFffsValue" placeholder="请选择打印方式" size="small" style="width:60%">
|
|
|
+ <el-option v-for="item in feesModel.fffs" :key="item.code" :label="item.name" :value="item.code">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
</el-col>
|
|
|
<el-col :span="6" type="flex" align="middle">
|
|
|
<div class="grid-content bg-purple">本次收款:<el-input v-model="feesModel.payTotalAmount" size="small"
|
|
|
- ref="tableHeadFilterInput" style="width:50%" placeholder="本次收款:" @keyup.enter.native="onInputEnterKeyDown" @blur="onInputBlur"></el-input>元</div>
|
|
|
+ ref="tableHeadFilterInput" style="width:50%" placeholder="本次收款:"
|
|
|
+ @keyup.enter.native="onInputEnterKeyDown"></el-input>元</div>
|
|
|
</el-col>
|
|
|
<el-col :span="6" type="flex" align="middle">
|
|
|
<div class="grid-content bg-purple"> <el-button type="primary" round>预览</el-button>
|
|
@@ -168,10 +186,17 @@
|
|
|
<el-switch v-model="isLtqz" active-text="零头取整" inactive-text="零头实缴" @change="onSwitchChange">
|
|
|
</el-switch>
|
|
|
|
|
|
- <el-select v-model="value" placeholder="请选择打印方式">
|
|
|
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ <el-select v-model="printType" placeholder="请选择打印方式">
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"
|
|
|
+ :disabled="item.disabled">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- <el-select placeholder="请选择打印方式">
|
|
|
+ <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select> -->
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -194,6 +219,8 @@ import cpscustomer from '../common/components/cps-customer'
|
|
|
import { Customer } from '@/views/mis/common/api/customerManagement.js'
|
|
|
import { feesApi } from '@/views/mis/common/api/feesApi.js'
|
|
|
import { NumberHelper, StringHelper } from '@/views/mis/common/assets/scripts/utils.js'
|
|
|
+import { PayMode } from '@/views/mis/common/api/codingManagement.js'
|
|
|
+
|
|
|
export default ({
|
|
|
name: "businessFees2",
|
|
|
components: { cpscustomer, TableItem },
|
|
@@ -201,13 +228,16 @@ export default ({
|
|
|
return {
|
|
|
btnChagreVisable: false,
|
|
|
btnYFFChagreVisable: true,
|
|
|
- btnCharge:'',
|
|
|
- isQf:false,
|
|
|
+ btnCharge: '',
|
|
|
+ lastChargeMoney: 0,
|
|
|
+ isQf: false,
|
|
|
size: '',
|
|
|
isLtqz: true,
|
|
|
activeName: 'first',
|
|
|
- feesModel: { rec: 0, userAcc: 0, chargeAcc: 0, thisBlance: 0, fffs: 0, payTotalAmount: 0 },
|
|
|
+ selectFffsValue:'',
|
|
|
+ feesModel: { rec: 0.00, userAcc: 0.00, chargeAcc: 0.00, thisBlance: 0.00, fffs: [], payTotalAmount: 0.00 },
|
|
|
selectData: [],
|
|
|
+ printType: '',
|
|
|
options: [{
|
|
|
value: 'no',
|
|
|
label: '无'
|
|
@@ -227,6 +257,7 @@ export default ({
|
|
|
customerName: '',
|
|
|
customerPhone: '',
|
|
|
customerFcc: 0,
|
|
|
+ priceName:"",
|
|
|
meterType: '',
|
|
|
money: '',
|
|
|
remark: '',
|
|
@@ -234,6 +265,7 @@ export default ({
|
|
|
mrBook: '',
|
|
|
lastReading: '',
|
|
|
meterNumber: '',
|
|
|
+ invoiceType:'无'
|
|
|
},
|
|
|
pageInfo: { current: 1, size: 10, tableTotal: 0 },
|
|
|
feesData: [{
|
|
@@ -354,22 +386,28 @@ export default ({
|
|
|
align: 'center'
|
|
|
}
|
|
|
,
|
|
|
+ {
|
|
|
+ label: '实收金额',
|
|
|
+ prop: 'payTotalAmount',
|
|
|
+ align: 'center'
|
|
|
+ }
|
|
|
+ ,
|
|
|
+ {
|
|
|
+ label: '收费日期',
|
|
|
+ prop: 'chargeDate',
|
|
|
+ align: 'center'
|
|
|
+ }
|
|
|
+ ,
|
|
|
{
|
|
|
label: '违约金',
|
|
|
prop: 'znj',
|
|
|
align: 'center'
|
|
|
}
|
|
|
-
|
|
|
,
|
|
|
{
|
|
|
label: '抄表日期',
|
|
|
prop: 'cbrq',
|
|
|
align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '实收金额',
|
|
|
- prop: 'payTotalAmount',
|
|
|
- align: 'center'
|
|
|
}
|
|
|
,
|
|
|
{
|
|
@@ -392,15 +430,39 @@ export default ({
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
- mounted(){
|
|
|
+ mounted() {
|
|
|
+ this.$refs.fileInput.onFileInputFocus()
|
|
|
//this.feesModel.payTotalAmount.focus()
|
|
|
|
|
|
- // this.$nextTick(() => {
|
|
|
- //this.$refs.tableHeadFilterInp.select()
|
|
|
- // })
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ //this.$refs.tableHeadFilterInp.select()
|
|
|
+ // })
|
|
|
+ PayMode.query({}).then((res)=>{
|
|
|
+ if(res.code==1){
|
|
|
+ this.feesModel.fffs=res.result.records
|
|
|
+ this.selectFffsValue=this.feesModel.fffs[0].code
|
|
|
+ //alert(JSON.stringify(this.feesModel.fffs))
|
|
|
+ }
|
|
|
+ }).catch((e)=>{
|
|
|
+
|
|
|
+ })
|
|
|
|
|
|
this.onLoadToDayChargeInfo()
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ 'feesModel.payTotalAmount'(newvalue, oldvalue) {
|
|
|
+ this.feesModel.thisBlance = NumberHelper.accSub(newvalue, this.feesModel.chargeAcc).toFixed(2)
|
|
|
+ },
|
|
|
+ 'customerModel.customerNo'(newvalue, oldvalue) {
|
|
|
+
|
|
|
+ }
|
|
|
+ // feesModel:{
|
|
|
+ // handler(newfeesModel,oldfeesModel){
|
|
|
+ // alert("改变前的值"+JSON.stringify(oldfeesModel) +",改变后的值"+JSON.stringify(newfeesModel))
|
|
|
+ // },
|
|
|
+ // deep:true
|
|
|
+ // }
|
|
|
+ },
|
|
|
methods: {
|
|
|
handleSelectionChange(rows) {
|
|
|
this.selectionsData = rows
|
|
@@ -411,8 +473,9 @@ export default ({
|
|
|
* 查询用户公用组件
|
|
|
* @param {value} value
|
|
|
*/
|
|
|
- selValue(objs) {
|
|
|
-
|
|
|
+ selValue(objs, isresfushfocus = true) {
|
|
|
+ // alert(isresfushfocus)
|
|
|
+ this.isQf = false
|
|
|
this.customerModel.customerNo = objs.customerNo
|
|
|
this.customerModel.customerAddr = objs.customerAddress
|
|
|
this.customerModel.customerPhone = objs.customerPhone
|
|
@@ -421,13 +484,16 @@ export default ({
|
|
|
this.customerModel.mrBook = objs.mrBook
|
|
|
this.customerModel.lastReading = objs.lastReading
|
|
|
this.customerModel.meterNumber = objs.meterNumber
|
|
|
+ this.customerModel.priceName = objs.priceName
|
|
|
+ this.customerModel.meterType = objs.meterTypeName
|
|
|
+
|
|
|
/**
|
|
|
* @description 查询用户信息及余额信息
|
|
|
*/
|
|
|
Customer.queryCusTomerAcc({ customerNo: this.customerModel.customerNo }).then((res) => {
|
|
|
if (res.code == 1) {
|
|
|
- this.feesModel.userAcc = res.result.nbBalanceAmount
|
|
|
- this.customerModel.meterType = res.result.meterType
|
|
|
+ this.feesModel.userAcc = res.result.nbBalanceAmount.toFixed(2)
|
|
|
+ // this.customerModel.meterType = res.result.meterType
|
|
|
}
|
|
|
|
|
|
}).catch((ex) => {
|
|
@@ -442,37 +508,44 @@ export default ({
|
|
|
if (res.result.total > 0) {
|
|
|
this.tableData = res.result.records
|
|
|
this.$refs.listRec.setToggleAllSelection() //触发选中会自动调用calc
|
|
|
- this.isQf=true
|
|
|
+ this.isQf = true
|
|
|
|
|
|
} else {
|
|
|
this.tableData = []
|
|
|
- this.calcAmount() //计算
|
|
|
+ this.calcAmount(isresfushfocus) //计算
|
|
|
}
|
|
|
|
|
|
}).catch((ex) => {
|
|
|
this.$message.error("查询欠费信息失败!")
|
|
|
})
|
|
|
+
|
|
|
//加载实收明细
|
|
|
this.onLoadChargeList()
|
|
|
|
|
|
+ // //设置焦点
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // this.$refs.tableHeadFilterInput.focus()
|
|
|
+ // this.$refs.tableHeadFilterInput.select()
|
|
|
+ // })
|
|
|
+
|
|
|
},
|
|
|
/**
|
|
|
*@description 计算欠费余额
|
|
|
* */
|
|
|
- calcAmount() {
|
|
|
+ calcAmount(isresfushfocus = true) {
|
|
|
|
|
|
let number = 0.00
|
|
|
/**
|
|
|
* @description 计算应收金额
|
|
|
*/
|
|
|
- // debugger;
|
|
|
- if (this.selectionsData != null && typeof (this.selectionsData) !== '[]'&& this.selectionsData.length>0) {
|
|
|
+ // debugger;
|
|
|
+ if (this.selectionsData != null && typeof (this.selectionsData) !== '[]' && this.selectionsData.length > 0) {
|
|
|
this.selectionsData.forEach((item) => {
|
|
|
number = NumberHelper.accAdd(number, item.recAmount)
|
|
|
- });
|
|
|
- this.feesModel.rec = number
|
|
|
- } else {
|
|
|
- this.feesModel.rec = number
|
|
|
+ })
|
|
|
+ this.feesModel.rec = number.toFixed(2)
|
|
|
+ } else {
|
|
|
+ this.feesModel.rec = number.toFixed(2)
|
|
|
}
|
|
|
|
|
|
|
|
@@ -486,30 +559,39 @@ export default ({
|
|
|
} else {
|
|
|
this.btnYFFChagreVisable = false
|
|
|
this.btnChagreVisable = true
|
|
|
+ this.feesModel.chargeAcc = (0.00).toFixed(2)
|
|
|
}
|
|
|
|
|
|
var isRounding = this.isLtqz
|
|
|
if (isRounding) {
|
|
|
//零头取整
|
|
|
var payTotalAmountaccMathCeil = Math.ceil(this.feesModel.chargeAcc)
|
|
|
- this.feesModel.payTotalAmount = payTotalAmountaccMathCeil
|
|
|
- this.feesModel.thisBlance = NumberHelper.accSub(payTotalAmountaccMathCeil, this.feesModel.chargeAcc).toFixed(2)
|
|
|
+ this.feesModel.payTotalAmount = payTotalAmountaccMathCeil.toFixed(2)
|
|
|
|
|
|
+ if (payTotalAmountaccMathCeil > 0) {
|
|
|
+ this.feesModel.thisBlance = NumberHelper.accSub(payTotalAmountaccMathCeil, this.feesModel.chargeAcc).toFixed(2)
|
|
|
+ } else {
|
|
|
+ this.feesModel.thisBlance = 0.00
|
|
|
+ }
|
|
|
} else {
|
|
|
//零头实缴
|
|
|
- this.feesModel.payTotalAmount = this.feesModel.chargeAcc
|
|
|
- this.feesModel.thisBlance = 0
|
|
|
+ this.feesModel.payTotalAmount = this.feesModel.chargeAcc.toFixed(2)
|
|
|
+ this.feesModel.thisBlance = 0.00
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//加载当日收费信息
|
|
|
this.onLoadToDayChargeInfo()
|
|
|
|
|
|
- //设置焦点
|
|
|
- this.$nextTick(() => {
|
|
|
- this.$refs.tableHeadFilterInput.focus()
|
|
|
- this.$refs.tableHeadFilterInput.select()
|
|
|
- })
|
|
|
-
|
|
|
+ if (isresfushfocus) {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.tableHeadFilterInput.focus()
|
|
|
+ this.$refs.tableHeadFilterInput.select()
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.fileInput.onFileInputFocusAndSelect()
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
/**
|
|
@@ -519,14 +601,23 @@ export default ({
|
|
|
onSwitchChange() {
|
|
|
this.calcAmount()
|
|
|
},
|
|
|
- onInputEnterKeyDown(){
|
|
|
- this.$refs.tableHeadFilterBtn.$el.focus()
|
|
|
+ onInputEnterKeyDown() {
|
|
|
+ if (!this.btnChagreVisable) {
|
|
|
+ // this.$refs.tableHeadFilterBtn.$el.focus()
|
|
|
+ //this.onPayment()
|
|
|
+ }
|
|
|
+
|
|
|
+ if (!this.btnYFFChagreVisable) {
|
|
|
+ this.$refs.tableHeadFilterYcBtn.$el.focus()
|
|
|
+ // this.onAdvPayment()
|
|
|
+ //
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
- /**
|
|
|
+ /**
|
|
|
* @description 移除实收焦点
|
|
|
*/
|
|
|
- onInputBlur() {
|
|
|
+ onInputBlur() {
|
|
|
|
|
|
// if (!(parseFloat(this.feesModel.payTotalAmount) > 0)) {
|
|
|
// this.$message.error("异常:实收金额应大于0元");
|
|
@@ -547,7 +638,7 @@ export default ({
|
|
|
// this.feesModel.payTotalAmount = 0
|
|
|
// this.$message.error("实收金额异常,请重新输入")
|
|
|
// }
|
|
|
-
|
|
|
+ // this.calcAmount()
|
|
|
|
|
|
},
|
|
|
/**
|
|
@@ -583,6 +674,8 @@ export default ({
|
|
|
this.tableChargeData = []
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}).catch((ex) => {
|
|
|
this.$message.error("查询欠费信息失败!")
|
|
|
})
|
|
@@ -610,7 +703,42 @@ export default ({
|
|
|
* @description 执行收费按钮
|
|
|
*/
|
|
|
, onCharge() {
|
|
|
- alert("收取欠费")
|
|
|
+
|
|
|
+ let ids = '';
|
|
|
+ if (this.selectionsData != null && typeof (this.selectionsData) !== '[]' && this.selectionsData.length > 0) {
|
|
|
+ let arr = []
|
|
|
+ this.selectionsData.forEach((item) => {
|
|
|
+ arr.push(item.id);
|
|
|
+ })
|
|
|
+ if (arr.length > 0) {
|
|
|
+ ids = arr.join(",")
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.$alert('请勾选欠费信息。', { type: "error" })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ if (ids != '') {
|
|
|
+ feesApi.chargePayment({ data: { "V_FFFS": this.selectFffsValue, "V_SFRYBM": "admin", "V_SFRYXM": "admin", "V_SSJE": this.feesModel.payTotalAmount, "V_YHBH": this.customerModel.customerNo, "V_IDS": ids } }).then((res) => {
|
|
|
+ if (res.code == 1) {
|
|
|
+ this.$alert('欠费收取成功', {
|
|
|
+ type: "success", callback: action => {
|
|
|
+ //重新用户欠费信息及用户余额信息
|
|
|
+ this.selValue(this.customerModel, false)
|
|
|
+ this.lastChargeMoney = this.feesModel.payTotalAmount
|
|
|
+ //调用组件focus方法
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$alert('欠费收取失败', { type: "error" })
|
|
|
+ }
|
|
|
+ }).catch((ex) => {
|
|
|
+ this.$message.error("欠费收取操作异常!")
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
/**
|
|
|
* @description 预付费按钮
|
|
@@ -627,26 +755,29 @@ export default ({
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- let msg = StringHelper.stringFormat('请确认⌈{0}⌋用户,预存【{1}】元?', [this.customerModel.customerNo, this.feesModel.payTotalAmount])
|
|
|
+ let msg = StringHelper.stringFormat('请再次确认⌈{0}⌋用户,预存【{1}】元?', [this.customerModel.customerNo, this.feesModel.payTotalAmount])
|
|
|
this.$confirm(msg, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- //调用借口
|
|
|
- feesApi.chargeOnAdvPayment({ data: { "inFFFS": this.feesModel.fffs, "inSFRYBM": "admin", "inSFRYXM": "admin", "inSSJE": this.feesModel.payTotalAmount, "inYhbh": this.customerModel.customerNo } }).then((res) => {
|
|
|
+ //调用接口
|
|
|
+ feesApi.chargeOnAdvPayment({ data: { "inFFFS": this.selectFffsValue, "inSFRYBM": "admin", "inSFRYXM": "admin", "inSSJE": this.feesModel.payTotalAmount, "inYhbh": this.customerModel.customerNo } }).then((res) => {
|
|
|
if (res.code == 1) {
|
|
|
this.$alert('预存成功', {
|
|
|
type: "success", callback: action => {
|
|
|
- //重新用户欠费信息及用户余额信息
|
|
|
- this.selValue(this.customerModel)
|
|
|
+ //刷新用户欠费信息及用户余额信息
|
|
|
+ // debugger
|
|
|
+ this.selValue(this.customerModel, false)
|
|
|
+ this.lastChargeMoney = this.feesModel.payTotalAmount
|
|
|
+ //调用组件focus方法
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
- this.$alert('预存成功', { type: "error" })
|
|
|
+ this.$alert('预存失败', { type: "error" })
|
|
|
}
|
|
|
}).catch((ex) => {
|
|
|
- this.$message.error("查询欠费信息失败!")
|
|
|
+ this.$message.error("预存操作异常!")
|
|
|
})
|
|
|
|
|
|
}).catch(() => {
|
|
@@ -729,38 +860,43 @@ export default ({
|
|
|
}
|
|
|
</style>
|
|
|
|
|
|
-<style scoped>
|
|
|
-.el-row {
|
|
|
- margin-top: 5px;
|
|
|
-
|
|
|
- &:last-child {
|
|
|
- margin-bottom: 0;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-.el-col {
|
|
|
- border-radius: 4px;
|
|
|
-}
|
|
|
-
|
|
|
-.bg-purple {
|
|
|
- display: table-cell;
|
|
|
- vertical-align: middle;
|
|
|
-}
|
|
|
-
|
|
|
-.grid-content {
|
|
|
- padding: 5px;
|
|
|
- border-radius: 4px;
|
|
|
- min-height: 36px;
|
|
|
- font-size: 16px;
|
|
|
- text-align: center;
|
|
|
- font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
|
|
|
- width: 100%;
|
|
|
- line-height: 30px;
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-.row-bg {
|
|
|
- padding: 10px 0;
|
|
|
- background-color: #f9fafc;
|
|
|
-}
|
|
|
+<style scoped> .el-divider {
|
|
|
+ margin: 12px 0;
|
|
|
+ background: 0 0;
|
|
|
+ border-top: 1px solid #E6EBF5;
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-row {
|
|
|
+ margin-top: 5px;
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ margin-bottom: 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .el-col {
|
|
|
+ border-radius: 4px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .bg-purple {
|
|
|
+ display: table-cell;
|
|
|
+ vertical-align: middle;
|
|
|
+ }
|
|
|
+
|
|
|
+ .grid-content {
|
|
|
+ padding: 5px;
|
|
|
+ border-radius: 4px;
|
|
|
+ min-height: 36px;
|
|
|
+ font-size: 16px;
|
|
|
+ text-align: center;
|
|
|
+ font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
|
|
|
+ width: 100%;
|
|
|
+ line-height: 30px;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .row-bg {
|
|
|
+ padding: 10px 0;
|
|
|
+ background-color: #f9fafc;
|
|
|
+ }
|
|
|
</style>
|