Commit 2717edd6 by 张权

每次点击店面重新获取信息

1 parent 50d2d839
......@@ -94,11 +94,13 @@ export default {
mounted() {},
methods: {
changeObjectType(newVal) {
let obj = {}
obj = { ...this.accountForm }
this.saveObj.objectType = newVal
this.accountForm = { ...this.saveObj }
this.saveObj = { ...obj }
if (newVal === 1) {
this.saveObj.objectType = newVal
this.accountForm = { ...this.saveObj }
} else {
this.saveObj = { ...this.accountForm }
this.getAccountInfo(this.editForm.contractNo)
}
},
initSaveObj() {
this.saveObj = { ...this.accountForm }
......@@ -159,6 +161,7 @@ export default {
},
// 点击同步,获取收款人信息
getAccountInfo(contractNo) {
if (!contractNo) return
this.$apis.claims.getAccountInfo({ contractNo }).then(res => {
const { accountName, accountCityCode: bankCity, openBankCode: branchBankCode, accountNo, accountType, cardNo: payeeIDCardNo, cardTypeCode: payeeIDCardType, phone: payeePhone } = res || {}
const result = { accountName, bankCity, branchBankCode, accountNo, accountType, payeeIDCardNo, payeeIDCardType, payeePhone }
......
......@@ -94,11 +94,13 @@ export default {
mounted() {},
methods: {
changeObjectType(newVal) {
let obj = {}
obj = { ...this.accountForm }
this.saveObj.objectType = newVal
this.accountForm = { ...this.saveObj }
this.saveObj = { ...obj }
if (newVal === 1) {
this.saveObj.objectType = newVal
this.accountForm = { ...this.saveObj }
} else {
this.saveObj = { ...this.accountForm }
this.getAccountInfo(this.editForm.contractNo)
}
},
initSaveObj() {
this.saveObj = { ...this.accountForm }
......@@ -159,6 +161,7 @@ export default {
},
// 点击同步,获取收款人信息
getAccountInfo(contractNo) {
if (!contractNo) return
this.$apis.claims.getAccountInfo({ contractNo }).then(res => {
const { accountName, accountCityCode: bankCity, openBankCode: branchBankCode, accountNo, accountType, cardNo: payeeIDCardNo, cardTypeCode: payeeIDCardType, phone: payeePhone } = res || {}
const result = { accountName, bankCity, branchBankCode, accountNo, accountType, payeeIDCardNo, payeeIDCardType, payeePhone }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!