|
@@ -168,7 +168,15 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 去缴费 -->
|
|
|
- <paying :payingMoney="payingMoney" :openPaying.sync="openPaying" @submitHandler="submitHandler" @cancelHandler="cancelHandler" @close="cancelHandler"></paying>
|
|
|
+ <paying
|
|
|
+ :payingMoney="payingMoney"
|
|
|
+ :accNo="accNo"
|
|
|
+ :openPaying.sync="openPaying"
|
|
|
+ :KYAMT="KYAMT"
|
|
|
+ @refreshHandler="queryKYAMT"
|
|
|
+ @submitHandler="submitHandler"
|
|
|
+ @cancelHandler="cancelHandler"
|
|
|
+ @close="cancelHandler"></paying>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -365,7 +373,9 @@ export default {
|
|
|
openPaying: false,
|
|
|
payingRow: {},
|
|
|
payingId: "",
|
|
|
- payingMoney: ""
|
|
|
+ payingMoney: "",
|
|
|
+ KYAMT: "",
|
|
|
+ accNo: ""
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -610,8 +620,31 @@ export default {
|
|
|
this.payingRow = row
|
|
|
this.payingId = row.zciId || this.ids;
|
|
|
this.payingMoney = row.zciAmount;
|
|
|
+ this.queryKYAMT()
|
|
|
this.openPaying = true
|
|
|
},
|
|
|
+ queryKYAMT () {
|
|
|
+ let row = this.payingRow
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: "Loading",
|
|
|
+ spinner: "el-icon-loading",
|
|
|
+ background: "rgba(0, 0, 0, 0.7)",
|
|
|
+ });
|
|
|
+ if (row.accNo) {
|
|
|
+ this.accNo = row.accNo
|
|
|
+ balance(row.accNo).then(response => {
|
|
|
+ this.KYAMT = response.data.list.row.KYAMT
|
|
|
+ loading.close();
|
|
|
+ }).catch(() => {
|
|
|
+ loading.close();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.accNo = "您还没有电子账户,请联系平台开通电子账户"
|
|
|
+ this.KYAMT = ""
|
|
|
+ loading.close();
|
|
|
+ }
|
|
|
+ },
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
var self = this;
|