| @@ -56,7 +56,7 @@ Page({ | |||||
| pageSize:'999', | pageSize:'999', | ||||
| accountType:'', | accountType:'', | ||||
| checkedStatus:that.data.checkedStatus, | checkedStatus:that.data.checkedStatus, | ||||
| incomeExpensesType:that.data.incomeExpensesType, | |||||
| incomeExpensesType:'1', | |||||
| } | } | ||||
| UTIL.httpRequest(API.URL_GET_GETFLOWLIST,data ,{ | UTIL.httpRequest(API.URL_GET_GETFLOWLIST,data ,{ | ||||
| success: (res) => { | success: (res) => { | ||||
| @@ -83,7 +83,7 @@ Page({ | |||||
| pageSize:'999', | pageSize:'999', | ||||
| accountType:'', | accountType:'', | ||||
| checkedStatus:that.data.checkedStatus, | checkedStatus:that.data.checkedStatus, | ||||
| incomeExpensesType:that.data.incomeExpensesType, | |||||
| incomeExpensesType:'2', | |||||
| } | } | ||||
| UTIL.httpRequest(API.URL_GET_GETFLOWLIST,data2 ,{ | UTIL.httpRequest(API.URL_GET_GETFLOWLIST,data2 ,{ | ||||
| success: (res) => { | success: (res) => { | ||||
| @@ -114,7 +114,6 @@ Page({ | |||||
| showGroup:e.currentTarget.dataset.gid, | showGroup:e.currentTarget.dataset.gid, | ||||
| result:[], | result:[], | ||||
| result2:[], | result2:[], | ||||
| incomeExpensesType:e.currentTarget.dataset.gid == true?'1':'2', | |||||
| }) | }) | ||||
| if(e.currentTarget.dataset.gid){ | if(e.currentTarget.dataset.gid){ | ||||
| //收入事项 | //收入事项 | ||||
| @@ -149,6 +149,14 @@ Page({ | |||||
| }, | }, | ||||
| confirmTem:function(e){ | confirmTem:function(e){ | ||||
| if(this.data.result.length == 0){ | |||||
| wx.showToast({ | |||||
| title: "请选择审批人", | |||||
| duration: 2000, | |||||
| icon:"error" | |||||
| }) | |||||
| return; | |||||
| } | |||||
| let data={ | let data={ | ||||
| approvalTemplate:{ | approvalTemplate:{ | ||||
| name:this.data.temName, | name:this.data.temName, | ||||
| @@ -98,7 +98,7 @@ swichPaymentApply:function(e){ | |||||
| onShow: function () { | onShow: function () { | ||||
| var that = this; | var that = this; | ||||
| wx.showLoading({ | wx.showLoading({ | ||||
| title: '正在加载账户列表', | |||||
| title: '正在加载账户', | |||||
| mask:true | mask:true | ||||
| }) | }) | ||||
| UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'bank_type', {method:'GET'}, { | UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'bank_type', {method:'GET'}, { | ||||
| @@ -42,27 +42,27 @@ | |||||
| } | } | ||||
| .XJ{ | .XJ{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_XJ.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_XJ.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .ICBC{ | .ICBC{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ICBC.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ICBC.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .ABC{ | .ABC{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ABC.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ABC.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .CCB{ | .CCB{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_CCB.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_CCB.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .RCB{ | .RCB{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_RCB.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_RCB.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .gwk{ | .gwk{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_GWK.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_GWK.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .addBtn{ | .addBtn{ | ||||
| display: flex; | display: flex; | ||||
| @@ -195,7 +195,7 @@ Page({ | |||||
| } | } | ||||
| }) | }) | ||||
| // 获取合同信息列表 | // 获取合同信息列表 | ||||
| UTIL.httpRequest(API.URL_GET_CONTRACTIONLIST , {method:'GET'}, { | |||||
| UTIL.httpRequest(API.URL_GET_CONTRACTIONLIST , {method:'GET',contractionStatus:1}, { | |||||
| success: (res) => { | success: (res) => { | ||||
| that.setData({ | that.setData({ | ||||
| contractionOptions:res.rows, | contractionOptions:res.rows, | ||||
| @@ -613,10 +613,6 @@ | |||||
| </view> | </view> | ||||
| </block> | </block> | ||||
| <view class="ipXbtn"></view> | <view class="ipXbtn"></view> | ||||
| <!-- <view class="bottom"> | |||||
| <button type="warn" plain class="btnDis">驳回</button> | |||||
| <button type="primary" class="btnAgree">同意</button> | |||||
| </view> --> | |||||
| <van-dialog | <van-dialog | ||||
| use-slot | use-slot | ||||
| title="支付模板" | title="支付模板" | ||||
| @@ -111,6 +111,10 @@ swichPaymentApply:function(e){ | |||||
| */ | */ | ||||
| onShow: function () { | onShow: function () { | ||||
| var that = this; | var that = this; | ||||
| wx.showLoading({ | |||||
| title: '正在加载账户', | |||||
| mask:true | |||||
| }) | |||||
| var sendData = { | var sendData = { | ||||
| pageNum:'1', | pageNum:'1', | ||||
| pageSize:'100', | pageSize:'100', | ||||
| @@ -152,33 +156,37 @@ swichPaymentApply:function(e){ | |||||
| } | } | ||||
| } | } | ||||
| }) | }) | ||||
| UTIL.httpRequest(API.URL_GET_ACCOUNTLIST, sendData,{ | |||||
| success: (res) => { | |||||
| setTimeout(function(){ | |||||
| UTIL.httpRequest(API.URL_GET_ACCOUNTLIST, sendData,{ | |||||
| success: (res) => { | |||||
| for (let i = 0; i < res.rows.length; i++) { | |||||
| if(res.rows[i].bankAccountNumber==null){continue;} | |||||
| res.rows[i].bankAccountNumber = res.rows[i].bankAccountNumber.replace(/(\d{4})(?=\d)/g, "$1 "); | |||||
| res.rows[i].balance = parseFloat(res.rows[i].balance).toFixed(2); | |||||
| res.rows[i].bankTypeText = UTIL.getTransform(res.rows[i].bankType,that.data.bankTypeOptions); | |||||
| } | |||||
| console.log(res.rows) | |||||
| that.setData({ | |||||
| accountList:res.rows | |||||
| }) | |||||
| wx.hideLoading(); | |||||
| } | |||||
| }) | |||||
| UTIL.httpRequest(API.URL_GET_ACCOUNTLIST, sendData2,{ | |||||
| success: (res) => { | |||||
| for (let i = 0; i < res.rows.length; i++) { | for (let i = 0; i < res.rows.length; i++) { | ||||
| if(res.rows[i].bankAccountNumber==null){continue;} | if(res.rows[i].bankAccountNumber==null){continue;} | ||||
| res.rows[i].bankAccountNumber = res.rows[i].bankAccountNumber.replace(/(\d{4})(?=\d)/g, "$1 "); | |||||
| res.rows[i].balance = parseFloat(res.rows[i].balance).toFixed(2); | |||||
| res.rows[i].bankTypeText = UTIL.getTransform(res.rows[i].bankType,that.data.bankTypeOptions); | |||||
| res.rows[i].bankAccountNumber = res.rows[i].bankAccountNumber.replace(/(\d{4})(?=\d)/g, "$1 ") | |||||
| } | } | ||||
| console.log(res.rows) | console.log(res.rows) | ||||
| that.setData({ | that.setData({ | ||||
| accountList:res.rows | |||||
| accountListXJ:res.rows | |||||
| }) | }) | ||||
| } | |||||
| }) | |||||
| UTIL.httpRequest(API.URL_GET_ACCOUNTLIST, sendData2,{ | |||||
| success: (res) => { | |||||
| for (let i = 0; i < res.rows.length; i++) { | |||||
| if(res.rows[i].bankAccountNumber==null){continue;} | |||||
| res.rows[i].bankAccountNumber = res.rows[i].bankAccountNumber.replace(/(\d{4})(?=\d)/g, "$1 ") | |||||
| } | } | ||||
| console.log(res.rows) | |||||
| that.setData({ | |||||
| accountListXJ:res.rows | |||||
| }) | |||||
| } | |||||
| }) | |||||
| }) | |||||
| },1000) | |||||
| }, | }, | ||||
| delete(e){ | delete(e){ | ||||
| console.log(e); | console.log(e); | ||||
| @@ -43,28 +43,28 @@ | |||||
| .XJ{ | .XJ{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_XJ.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_XJ.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .ICBC{ | .ICBC{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ICBC.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ICBC.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .ABC{ | .ABC{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ABC.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ABC.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .CCB{ | .CCB{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_CCB.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_CCB.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .RCB{ | .RCB{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_RCB.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_RCB.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .gwk{ | .gwk{ | ||||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_GWK.png') no-repeat center; | background:url('https://dazu.nongshen.net/api/profile/wechat/bg_GWK.png') no-repeat center; | ||||
| background-size: 100% 100%; | |||||
| background-size: 105% 105%; | |||||
| } | } | ||||
| .bankName{ | .bankName{ | ||||
| @@ -1,7 +1,7 @@ | |||||
| <!--pages/payee/add/add.wxml--> | <!--pages/payee/add/add.wxml--> | ||||
| <view class="ns" style="height:{{isIPX?'88px':'64px'}};"> | <view class="ns" style="height:{{isIPX?'88px':'64px'}};"> | ||||
| <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image> | <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image> | ||||
| <text style="top:{{isIPX?'54px':'30px'}};">新增收款方</text> | |||||
| <text style="top:{{isIPX?'54px':'30px'}};">收款人</text> | |||||
| </view> | </view> | ||||
| <view class="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};"> | <view class="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};"> | ||||
| <van-popup show="{{showBankType}}" round position="bottom" bind:close="closeBox" data-name="showBankType"> | <van-popup show="{{showBankType}}" round position="bottom" bind:close="closeBox" data-name="showBankType"> | ||||