瀏覽代碼

优化

master
pangdongxu 3 年之前
父節點
當前提交
826bf8bb85
共有 9 個檔案被更改,包括 53 行新增42 行删除
  1. +2
    -3
      pages/Bookkeeping/Bookkeeping.js
  2. +8
    -0
      pages/apply/approval/approval.js
  3. +1
    -1
      pages/apply/index.js
  4. +6
    -6
      pages/apply/index.wxss
  5. +1
    -1
      pages/apply/paymentTemplate/add/add.js
  6. +0
    -4
      pages/apply/paymentTemplate/add/add.wxml
  7. +28
    -20
      pages/drawee/drawee.js
  8. +6
    -6
      pages/drawee/drawee.wxss
  9. +1
    -1
      pages/payee/add/add.wxml

+ 2
- 3
pages/Bookkeeping/Bookkeeping.js 查看文件

@@ -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){
//收入事项


+ 8
- 0
pages/apply/approval/approval.js 查看文件

@@ -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,


+ 1
- 1
pages/apply/index.js 查看文件

@@ -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'}, {


+ 6
- 6
pages/apply/index.wxss 查看文件

@@ -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;


+ 1
- 1
pages/apply/paymentTemplate/add/add.js 查看文件

@@ -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,


+ 0
- 4
pages/apply/paymentTemplate/add/add.wxml 查看文件

@@ -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="支付模板"


+ 28
- 20
pages/drawee/drawee.js 查看文件

@@ -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);


+ 6
- 6
pages/drawee/drawee.wxss 查看文件

@@ -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
- 1
pages/payee/add/add.wxml 查看文件

@@ -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">


Loading…
取消
儲存