| @@ -1881,6 +1881,15 @@ export const constantRoutes = [ | |||||
| }, | }, | ||||
| component: (resolve) => require(['@/views/yinnong/bankAgriculture/paymentApproval/collectionAdd2'], resolve) | component: (resolve) => require(['@/views/yinnong/bankAgriculture/paymentApproval/collectionAdd2'], resolve) | ||||
| }, | }, | ||||
| { | |||||
| path: '/yinnong/approval/collectionApprovalAdd', | |||||
| name: 'collectionApprovalAdd', | |||||
| meta: { | |||||
| title: '添加收款账户信息', | |||||
| hidden: true, | |||||
| }, | |||||
| component: (resolve) => require(['@/views/yinnong/bankAgriculture/paymentApproval/collectionApprovalAdd'], resolve) | |||||
| }, | |||||
| { | { | ||||
| path: '/yinnong/approvalApproval', | path: '/yinnong/approvalApproval', | ||||
| name: 'approvalApproval', | name: 'approvalApproval', | ||||
| @@ -1923,6 +1932,7 @@ export const constantRoutes = [ | |||||
| meta: { | meta: { | ||||
| title: '修改银行卡转账申请', | title: '修改银行卡转账申请', | ||||
| hidden: true, | hidden: true, | ||||
| keepAlive: true | |||||
| }, | }, | ||||
| component: (resolve) => require(['@/views/yinnong/bankAgriculture/paymentApproval/approvalModify'], resolve) | component: (resolve) => require(['@/views/yinnong/bankAgriculture/paymentApproval/approvalModify'], resolve) | ||||
| }, | }, | ||||
| @@ -192,7 +192,7 @@ | |||||
| }, | }, | ||||
| onConfirmBankDeposit(data){ | onConfirmBankDeposit(data){ | ||||
| this.bankDeposit = data.text | this.bankDeposit = data.text | ||||
| this.form.bankDeposit = data.value | |||||
| this.form.bankDeposit = data.text | |||||
| this.form.payeePaymentLines = data.payeePaymentLines | this.form.payeePaymentLines = data.payeePaymentLines | ||||
| this.form.alternateField10 = data.institutionNumber | this.form.alternateField10 = data.institutionNumber | ||||
| this.showBankDeposit = false; | this.showBankDeposit = false; | ||||
| @@ -4,7 +4,7 @@ | |||||
| left-arrow | left-arrow | ||||
| fixed | fixed | ||||
| placeholder | placeholder | ||||
| @click-left="$router.back(-1)" | |||||
| @click-left="goBack" | |||||
| > | > | ||||
| <template #title> | <template #title> | ||||
| <p style="font-weight: bold;">添加信用卡还款申请</p> | <p style="font-weight: bold;">添加信用卡还款申请</p> | ||||
| @@ -215,7 +215,11 @@ | |||||
| <van-field :rules="[{ required: true , message:'请输入付款方账户' }]" required label="付款方账户" v-model="form.payerAccount" placeholder="请输入账户" input-align="right" label-width="auto"/> | <van-field :rules="[{ required: true , message:'请输入付款方账户' }]" required label="付款方账户" v-model="form.payerAccount" placeholder="请输入账户" input-align="right" label-width="auto"/> | ||||
| </div> | </div> | ||||
| <p class="main_title">收款方信息<van-button icon="plus" @click="addChargeItme(chargeItme.length)" size="mini" type="info" native-type="button" class="addFamily"/></p> | |||||
| <div class="main_title main_title_box"> | |||||
| <p>收款方信息</p> | |||||
| <router-link :to="{name:'approvalCollectionAdd2', params: {accountType:form.accountType,isPeers:form.isPeers,bankType:form.bankType,option:form}}">添加收款方</router-link> | |||||
| <van-button icon="plus" @click="addChargeItme(chargeItme.length)" size="mini" type="info" native-type="button" class="addFamily"/> | |||||
| </div> | |||||
| <div class="main_box" style="margin-bottom: 15px;"> | <div class="main_box" style="margin-bottom: 15px;"> | ||||
| <van-cell title="收款账户类型" v-if="form.bankType==1"> | <van-cell title="收款账户类型" v-if="form.bankType==1"> | ||||
| <template #right-icon> | <template #right-icon> | ||||
| @@ -1843,13 +1847,26 @@ | |||||
| }) | }) | ||||
| }, | }, | ||||
| goBack(){ | goBack(){ | ||||
| window.history.go(-1) | |||||
| this.$router.push({path:'/yinnong/approvalList2'}) | |||||
| }, | }, | ||||
| //删除家庭成员 | //删除家庭成员 | ||||
| deleteChargeItme(index){ | deleteChargeItme(index){ | ||||
| this.chargeItme.splice(index,1) | this.chargeItme.splice(index,1) | ||||
| }, | }, | ||||
| }, | }, | ||||
| watch: { | |||||
| $route (to, from ) { | |||||
| // 监听路由变化, 实现类似 小程序的 onShow 事件 | |||||
| if (to.path === '/yinnong/approvalAdd2') { | |||||
| // do anything you want | |||||
| console.log("aaa") | |||||
| if (this.$route.params.payeeForm){ | |||||
| this.chargeItme.push(this.$route.params.payeeForm) | |||||
| console.log(this.$route.params.payeeForm) | |||||
| } | |||||
| } | |||||
| } | |||||
| }, | |||||
| } | } | ||||
| </script> | </script> | ||||
| @@ -1857,11 +1874,22 @@ | |||||
| .app-container { | .app-container { | ||||
| padding: 2% 0; | padding: 2% 0; | ||||
| } | } | ||||
| .main_title_box{ | |||||
| display: flex; | |||||
| justify-content: space-between; | |||||
| align-items: center; | |||||
| } | |||||
| .main_title{ | .main_title{ | ||||
| font-size: 0.4rem; | font-size: 0.4rem; | ||||
| color: #1D6FE9; | color: #1D6FE9; | ||||
| margin: 0.2rem 6%; | margin: 0.2rem 6%; | ||||
| position: relative; | position: relative; | ||||
| a{ | |||||
| background: #1989fa; | |||||
| color: #ffffff; | |||||
| padding: 0.05rem 0.3rem; | |||||
| border-radius: 5PX; | |||||
| } | |||||
| } | } | ||||
| .main_box{ | .main_box{ | ||||
| width: 96%; | width: 96%; | ||||
| @@ -1878,9 +1906,9 @@ | |||||
| } | } | ||||
| .addFamily{ | .addFamily{ | ||||
| position: absolute; | |||||
| top: -2px; | |||||
| right: 0; | |||||
| //position: absolute; | |||||
| //top: -2px; | |||||
| //right: 0; | |||||
| border-radius: 50%; | border-radius: 50%; | ||||
| } | } | ||||
| .deleteFamily{ | .deleteFamily{ | ||||
| @@ -4,7 +4,7 @@ | |||||
| left-arrow | left-arrow | ||||
| fixed | fixed | ||||
| placeholder | placeholder | ||||
| @click-left="$router.back(-1)" | |||||
| @click-left="goBack()" | |||||
| @click-right="goAdd()" | @click-right="goAdd()" | ||||
| > | > | ||||
| <template #title> | <template #title> | ||||
| @@ -138,7 +138,10 @@ export default { | |||||
| .catch(() => { | .catch(() => { | ||||
| // on cancel | // on cancel | ||||
| }); | }); | ||||
| } | |||||
| }, | |||||
| goBack(){ | |||||
| this.$router.push({path:'/yinnong/workbench'}) | |||||
| }, | |||||
| }, | }, | ||||
| } | } | ||||
| </script> | </script> | ||||
| @@ -4,7 +4,7 @@ | |||||
| left-arrow | left-arrow | ||||
| fixed | fixed | ||||
| placeholder | placeholder | ||||
| @click-left="$router.back(-1)" | |||||
| @click-left="goBack" | |||||
| @click-right="goAdd()" | @click-right="goAdd()" | ||||
| > | > | ||||
| <template #title> | <template #title> | ||||
| @@ -136,7 +136,10 @@ export default { | |||||
| .catch(() => { | .catch(() => { | ||||
| // on cancel | // on cancel | ||||
| }); | }); | ||||
| } | |||||
| }, | |||||
| goBack(){ | |||||
| this.$router.push({path:'/yinnong/workbench'}) | |||||
| }, | |||||
| }, | }, | ||||
| } | } | ||||
| </script> | </script> | ||||
| @@ -4,7 +4,7 @@ | |||||
| left-arrow | left-arrow | ||||
| fixed | fixed | ||||
| placeholder | placeholder | ||||
| @click-left="$router.back(-1)" | |||||
| @click-left="goBack" | |||||
| > | > | ||||
| <template #title> | <template #title> | ||||
| <p style="font-weight: bold;">修改银行卡转账申请</p> | <p style="font-weight: bold;">修改银行卡转账申请</p> | ||||
| @@ -216,7 +216,11 @@ | |||||
| </div> | </div> | ||||
| <p class="main_title">收款方信息<van-button icon="plus" @click="addChargeItme(chargeItme.length)" size="mini" type="info" native-type="button" class="addFamily"/></p> | <p class="main_title">收款方信息<van-button icon="plus" @click="addChargeItme(chargeItme.length)" size="mini" type="info" native-type="button" class="addFamily"/></p> | ||||
| <!-- <div class="main_title main_title_box">--> | |||||
| <!-- <p>收款方信息</p>--> | |||||
| <!-- <router-link :to="{name:'collectionApprovalAdd', params: {accountType:form.accountType,isPeers:form.isPeers,bankType:form.bankType,option:form}}">添加收款方</router-link>--> | |||||
| <!-- <van-button icon="plus" @click="addChargeItme(chargeItme.length)" size="mini" type="info" native-type="button" class="addFamily"/>--> | |||||
| <!-- </div>--> | |||||
| <div class="main_box" style="margin-bottom: 15px;"> | <div class="main_box" style="margin-bottom: 15px;"> | ||||
| <van-cell title="收款账户类型" v-if="form.bankType==1"> | <van-cell title="收款账户类型" v-if="form.bankType==1"> | ||||
| <template #right-icon> | <template #right-icon> | ||||
| @@ -1854,13 +1858,26 @@ | |||||
| }) | }) | ||||
| }, | }, | ||||
| goBack(){ | goBack(){ | ||||
| window.history.go(-1) | |||||
| this.$router.push({path:'/yinnong/approvalList'}) | |||||
| }, | }, | ||||
| //删除家庭成员 | //删除家庭成员 | ||||
| deleteChargeItme(index){ | deleteChargeItme(index){ | ||||
| this.chargeItme.splice(index,1) | this.chargeItme.splice(index,1) | ||||
| }, | }, | ||||
| }, | }, | ||||
| watch: { | |||||
| $route (to, from ) { | |||||
| // 监听路由变化, 实现类似 小程序的 onShow 事件 | |||||
| if (to.path === '/yinnong/approvalModify') { | |||||
| // do anything you want | |||||
| console.log("aaa") | |||||
| if (this.$route.params.payeeForm){ | |||||
| this.chargeItme.push(this.$route.params.payeeForm) | |||||
| console.log(this.$route.params.payeeForm) | |||||
| } | |||||
| } | |||||
| } | |||||
| }, | |||||
| } | } | ||||
| </script> | </script> | ||||
| @@ -1868,11 +1885,22 @@ | |||||
| .app-container { | .app-container { | ||||
| padding: 2% 0; | padding: 2% 0; | ||||
| } | } | ||||
| .main_title_box{ | |||||
| display: flex; | |||||
| justify-content: space-between; | |||||
| align-items: center; | |||||
| } | |||||
| .main_title{ | .main_title{ | ||||
| font-size: 0.4rem; | font-size: 0.4rem; | ||||
| color: #1D6FE9; | color: #1D6FE9; | ||||
| margin: 0.2rem 6%; | margin: 0.2rem 6%; | ||||
| position: relative; | position: relative; | ||||
| /*a{*/ | |||||
| /* background: #1989fa;*/ | |||||
| /* color: #ffffff;*/ | |||||
| /* padding: 0.05rem 0.3rem;*/ | |||||
| /* border-radius: 5PX;*/ | |||||
| /*}*/ | |||||
| } | } | ||||
| .main_box{ | .main_box{ | ||||
| width: 96%; | width: 96%; | ||||