|
@@ -75,6 +75,33 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view v-if="reType == 2 || expensesType == '2'" class='wrap margin-bottom'>
|
|
|
|
+ <view class="xinxi" style="font-size: 28rpx; ">收款账户信息</view>
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <view class="title">收款方</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <input v-model='detailData.payee' placeholder="输入收款方"></input>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <view class="title">账户</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <input v-model='detailData.accountNumber' placeholder="输入账户"></input>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <view class="title">开户行</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <input v-model='detailData.bank' placeholder="输入开户行"></input>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="c-row">
|
|
|
|
+ <view class="title">开户支行</view>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <input v-model='detailData.bankBranch' placeholder="输入开户支行"></input>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<u-toast ref="uToast" />
|
|
<u-toast ref="uToast" />
|
|
<view class="bottom-btn">
|
|
<view class="bottom-btn">
|
|
<view @click="submit()" class="btn">提交</view>
|
|
<view @click="submit()" class="btn">提交</view>
|
|
@@ -131,6 +158,11 @@
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.reType = options.reType
|
|
this.reType = options.reType
|
|
this.expensesType = options.expensesType
|
|
this.expensesType = options.expensesType
|
|
|
|
+ if(this.reType==2||this.expensesType==2){
|
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
|
+ title: '请款'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
this.id = options.id
|
|
this.id = options.id
|
|
if (this.id) {
|
|
if (this.id) {
|
|
this.getRequest()
|
|
this.getRequest()
|
|
@@ -148,7 +180,16 @@
|
|
if (this.contractNoInfo && this.detailData.purpose == "合同费用") {
|
|
if (this.contractNoInfo && this.detailData.purpose == "合同费用") {
|
|
this.detailData.contractId = this.contractNoInfo.id
|
|
this.detailData.contractId = this.contractNoInfo.id
|
|
this.detailData.contractNo = this.contractNoInfo.contractNo
|
|
this.detailData.contractNo = this.contractNoInfo.contractNo
|
|
- this.$forceUpdate()
|
|
|
|
|
|
+ this.$api.doRequest('get', 'customerInfo/getPayeeInfo', {
|
|
|
|
+ contractNo: this.detailData.contractNo
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.detailData.payee=res.customerType=="企业客户"?res.compName:res.customerName
|
|
|
|
+ this.detailData.accountNumber=res.bankCard
|
|
|
|
+ this.detailData.bank=res.bankDeposit
|
|
|
|
+ this.detailData.bankBranch=res.bankDepositBranch
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+ })
|
|
|
|
+
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -302,9 +343,9 @@
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
that.$api.msg('提交成功')
|
|
that.$api.msg('提交成功')
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/reimbursement/the_reimbursement'
|
|
|
|
- })
|
|
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta: 1
|
|
|
|
+ });
|
|
} else {
|
|
} else {
|
|
that.$api.msg('提交失败')
|
|
that.$api.msg('提交失败')
|
|
}
|
|
}
|
|
@@ -485,4 +526,7 @@
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
+ .margin-bottom{
|
|
|
|
+ margin-bottom:84px;
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|