| @@ -56,7 +56,7 @@ Page({ | |||
| pageSize:'999', | |||
| accountType:'', | |||
| checkedStatus:that.data.checkedStatus, | |||
| incomeExpensesType:that.data.incomeExpensesType, | |||
| incomeExpensesType:'1', | |||
| } | |||
| UTIL.httpRequest(API.URL_GET_GETFLOWLIST,data ,{ | |||
| success: (res) => { | |||
| @@ -83,7 +83,7 @@ Page({ | |||
| pageSize:'999', | |||
| accountType:'', | |||
| checkedStatus:that.data.checkedStatus, | |||
| incomeExpensesType:that.data.incomeExpensesType, | |||
| incomeExpensesType:'2', | |||
| } | |||
| UTIL.httpRequest(API.URL_GET_GETFLOWLIST,data2 ,{ | |||
| success: (res) => { | |||
| @@ -114,7 +114,6 @@ Page({ | |||
| showGroup:e.currentTarget.dataset.gid, | |||
| result:[], | |||
| result2:[], | |||
| incomeExpensesType:e.currentTarget.dataset.gid == true?'1':'2', | |||
| }) | |||
| if(e.currentTarget.dataset.gid){ | |||
| //收入事项 | |||
| @@ -149,6 +149,14 @@ Page({ | |||
| }, | |||
| confirmTem:function(e){ | |||
| if(this.data.result.length == 0){ | |||
| wx.showToast({ | |||
| title: "请选择审批人", | |||
| duration: 2000, | |||
| icon:"error" | |||
| }) | |||
| return; | |||
| } | |||
| let data={ | |||
| approvalTemplate:{ | |||
| name:this.data.temName, | |||
| @@ -98,7 +98,7 @@ swichPaymentApply:function(e){ | |||
| onShow: function () { | |||
| var that = this; | |||
| wx.showLoading({ | |||
| title: '正在加载账户列表', | |||
| title: '正在加载账户', | |||
| mask:true | |||
| }) | |||
| UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'bank_type', {method:'GET'}, { | |||
| @@ -42,27 +42,27 @@ | |||
| } | |||
| .XJ{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_XJ.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .ICBC{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ICBC.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .ABC{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ABC.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .CCB{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_CCB.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .RCB{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_RCB.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .gwk{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_GWK.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .addBtn{ | |||
| 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) => { | |||
| that.setData({ | |||
| contractionOptions:res.rows, | |||
| @@ -613,10 +613,6 @@ | |||
| </view> | |||
| </block> | |||
| <view class="ipXbtn"></view> | |||
| <!-- <view class="bottom"> | |||
| <button type="warn" plain class="btnDis">驳回</button> | |||
| <button type="primary" class="btnAgree">同意</button> | |||
| </view> --> | |||
| <van-dialog | |||
| use-slot | |||
| title="支付模板" | |||
| @@ -111,6 +111,10 @@ swichPaymentApply:function(e){ | |||
| */ | |||
| onShow: function () { | |||
| var that = this; | |||
| wx.showLoading({ | |||
| title: '正在加载账户', | |||
| mask:true | |||
| }) | |||
| var sendData = { | |||
| pageNum:'1', | |||
| 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++) { | |||
| 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) | |||
| 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){ | |||
| console.log(e); | |||
| @@ -43,28 +43,28 @@ | |||
| .XJ{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_XJ.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .ICBC{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ICBC.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .ABC{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_ABC.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .CCB{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_CCB.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .RCB{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_RCB.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .gwk{ | |||
| background:url('https://dazu.nongshen.net/api/profile/wechat/bg_GWK.png') no-repeat center; | |||
| background-size: 100% 100%; | |||
| background-size: 105% 105%; | |||
| } | |||
| .bankName{ | |||
| @@ -1,7 +1,7 @@ | |||
| <!--pages/payee/add/add.wxml--> | |||
| <view class="ns" style="height:{{isIPX?'88px':'64px'}};"> | |||
| <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 class="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};"> | |||
| <van-popup show="{{showBankType}}" round position="bottom" bind:close="closeBox" data-name="showBankType"> | |||