diff --git a/image/apply/MSYH.png b/image/apply/MSYH.png
new file mode 100644
index 0000000..0e0d0d6
Binary files /dev/null and b/image/apply/MSYH.png differ
diff --git a/image/apply/delete_icon_input.png b/image/apply/delete_icon_input.png
new file mode 100644
index 0000000..b34d2fb
Binary files /dev/null and b/image/apply/delete_icon_input.png differ
diff --git a/image/apply/fixedAssets_icon_1.png b/image/apply/fixedAssets_icon_1.png
new file mode 100644
index 0000000..1151d4d
Binary files /dev/null and b/image/apply/fixedAssets_icon_1.png differ
diff --git a/pages/apply/approval/approval.wxml b/pages/apply/approval/approval.wxml
index 6a16545..b324045 100644
--- a/pages/apply/approval/approval.wxml
+++ b/pages/apply/approval/approval.wxml
@@ -111,9 +111,6 @@
-
-
-
diff --git a/pages/apply/index.wxml b/pages/apply/index.wxml
index 32ca231..f308874 100644
--- a/pages/apply/index.wxml
+++ b/pages/apply/index.wxml
@@ -17,9 +17,9 @@
{{item.bankUseType == 1 ?'基本户':'一般户'}}
-
+
-
+
{{item.accountName}}
diff --git a/pages/apply/index.wxss b/pages/apply/index.wxss
index 190b3fc..de8fd9a 100644
--- a/pages/apply/index.wxss
+++ b/pages/apply/index.wxss
@@ -72,6 +72,10 @@
background:url('https://www.nongshen.net/static/wechat/bank_ZYB.png') no-repeat center;
background-size: 105% 105%;
}
+.MSYH{
+ background:url('https://www.nongshen.net/static/wechat/bank_MSYH.png') no-repeat center;
+ background-size: 105% 105%;
+}
.bank_other{
background:url('https://www.nongshen.net/static/wechat/bank_other.png') no-repeat center;
background-size: 105% 105%;
diff --git a/pages/apply/paymentTemplate/add/upLoad/upLoad.wxml b/pages/apply/paymentTemplate/add/upLoad/upLoad.wxml
index 9ba3ca2..0bea633 100644
--- a/pages/apply/paymentTemplate/add/upLoad/upLoad.wxml
+++ b/pages/apply/paymentTemplate/add/upLoad/upLoad.wxml
@@ -85,12 +85,16 @@
三、农业银行
1、导入收款方的所属银行需要根据页面选择的是否同行相匹配。
2、联行号为必填项。
- 四、建设银行
- 1、导入收款方的所属银行需要根据页面选择的是否同行相匹配。
- 2、单笔跨行、批量跨行转账时联行号为必填项。
- 五、农商行(重庆)
+ 四、农商行(重庆)
1、导入收款方最多可以有500条。
2、联行号为必填项。
+ 五、其他银行
+ 1、联行号为必填项。
+
+
+
diff --git a/pages/apply/paymentTemplate/addNew/addNew.js b/pages/apply/paymentTemplate/addNew/addNew.js
index 88c244f..c2fbf6e 100644
--- a/pages/apply/paymentTemplate/addNew/addNew.js
+++ b/pages/apply/paymentTemplate/addNew/addNew.js
@@ -164,6 +164,7 @@ Page({
SJimage:[],
FPimage:[],
QTimage:[],
+ SYLGKimage:[],
activeName:0,
showTitle:true,
collapseDis:false,
@@ -177,7 +178,7 @@ Page({
payerAccount:'',//付款方账户
bankType:'',//所属银行
bankTypeText:'',//所属银行(展示用)
- isPeers:'N',//是否同行
+ isPeers:'',//是否同行
operatorCode:'',//操作员代码
enterpriseCode:'',//企业编码
expenditureAmount:'',//支出总金额
@@ -197,6 +198,7 @@ Page({
endTime:'',//到期日期
orderType:'',//汇票类型
bankAccountType:'2',//账户类别1 公户2私户
+ accountType:'1',//账户类别1 公户2私户
villageAccountType:'',//账户分类
payeeList:[{//收款方账户集合
payeeId:'0',//收款方id
@@ -250,6 +252,7 @@ Page({
SJimage: [],
FPimage: [],
QTimage: [],
+ SYLGKimage: [],
imgcount:0,
activeNames: 0,
applyDate:'',
@@ -257,6 +260,7 @@ Page({
showFile:false,
showCapitalExpenditureType:false,
showSteps:false,
+ showAccountType:false,
activeStepsNames: 0,
},
@@ -302,6 +306,13 @@ Page({
})
}
})
+ UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'bank_account_type', {method:'GET'}, {
+ success: (res) => {
+ that.setData({
+ bankAccountTypeOptions:res.data,
+ })
+ }
+ })
// 项目工程列表
UTIL.httpRequest(API.URL_GET_GETPROJECTLIST , {method:'GET'}, {
success: (res) => {
@@ -343,7 +354,6 @@ Page({
["form.approvalTemplateId"]:res.rows[0].id,
["form.approvalTemplateName"]:res.rows[0].name,
})
-
// 审批模板
UTIL.httpRequest(API.URL_GET_selectApprovalByTemplateId+res.rows[0].id , {method:'GET'}, {
success: (rres) => {
@@ -525,6 +535,39 @@ Page({
})
}
})
+ //四议两公开
+ UTIL.httpRequest(
+ API.URL_GET_FINDLIST,
+ {
+ method:'GET',
+ tableName:'t_yinnong_transfer',
+ tableId:res.data.id,
+ fileType:4
+ },
+ {
+ success: (res) => {
+ let list = [];
+ res.data.forEach((item2,index2)=>{
+ let fileForm = res.data.fileForm?res.data.fileForm:[];
+ fileForm.push({
+ file: wx.getStorageSync('dressCode')+item2.fileUrl,
+ fileType:'4',
+ bizPath:'transfer',
+ tableName:'t_yinnong_transfer',
+ tableId:res.data.id
+ })
+ list.push({
+ tempFilePath:wx.getStorageSync('dressCode')+item2.fileUrl,
+ id:item2.id
+ })
+ that.setData({
+ ["form.fileNum"]:that.data.form.fileNum+1,
+ ["form.SYLGKimage"]:list,
+ ["form.fileForm"]:fileForm
+ });
+ })
+ }
+ })
let query = {
method:'GET',
@@ -696,6 +739,12 @@ Page({
// 所属银行字典查询
UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'bank_type', {method:'GET'}, {
success: (res) => {
+
+ if(event.detail.value.bankType != 10){
+ this.setData({
+ ['form.accountType']: ''
+ })
+ }
this.setData({
[event.currentTarget.dataset.name]: false,
[event.currentTarget.dataset.value+'.payer']: event.detail.value.accountName,
@@ -705,7 +754,7 @@ Page({
[event.currentTarget.dataset.value+'.bankType']: event.detail.value.bankType,
[event.currentTarget.dataset.value+'.payerAccount']:event.detail.value.bankAccountNumber,
[event.currentTarget.dataset.value+'.balance']:event.detail.value.balance,
- [event.currentTarget.dataset.value+'.isPeers']:"N",
+ [event.currentTarget.dataset.value+'.isPeers']:"",
[event.currentTarget.dataset.value+'.payeeList'] : [{//收款方账户集合
payeeId:'0',//收款方id
payee:'',//收款方
@@ -898,15 +947,28 @@ Page({
UTIL.showToastNoneIcon('请先选择付款方!');
return;
}
+ if(event.currentTarget.dataset.banktype == 10){
+ if(event.currentTarget.dataset.childaccounttype == null || event.currentTarget.dataset.childaccounttype == ''){
+ UTIL.showToastNoneIcon('请先选择账户类型!');
+ return;
+ }
+ }else{
+ event.currentTarget.dataset.accounttype = '';
+ this.setData({
+ ['form.accountType']: ''
+ })
+ }
if(this.data.form.payeeList.length>10){
return;
}
- if(event.currentTarget.dataset.accounttype == null ){
- event.currentTarget.dataset.accounttype = ''
- }
+ // if(event.currentTarget.dataset.accounttype == null ){
+ // event.currentTarget.dataset.accounttype = ''
+ // }
// '/pages/payee/index?isPeers='+event.currentTarget.dataset.ispeers+'&bankType='+event.currentTarget.dataset.banktype+'&accountType='+event.currentTarget.dataset.accounttype+'&transferType='+event.currentTarget.dataset.transfertype + '&index='+event.currentTarget.dataset.index+'&money='+this.data.form.transfers
+ console.log(this.data.form.isPeers);
+ console.log(event.currentTarget.dataset.isPeers);
wx.navigateTo({
- url: '/pages/payee/index?transferType='+event.currentTarget.dataset.transfertype+'&money='+this.data.form.expenditureAmount + '&index='+event.currentTarget.dataset.index + '&isPeers='+this.data.form.isPeers+'&bankType='+event.currentTarget.dataset.banktype,
+ url: '/pages/payee/index?transferType='+event.currentTarget.dataset.transfertype+'&money='+this.data.form.expenditureAmount + '&index='+event.currentTarget.dataset.index + '&isPeers='+event.currentTarget.dataset.ispeers+'&bankType='+event.currentTarget.dataset.banktype+'&accountType='+event.currentTarget.dataset.accounttype,
})
},
goPayee(event){
@@ -1406,6 +1468,12 @@ Page({
showFile:true
})
// console.log(that.data.form)
+ }else{
+ wx.showToast({
+ title: res.msg,
+ icon: 'error',
+ duration: 2000
+ })
}
}
})
@@ -1563,7 +1631,7 @@ Page({
goCustomSubmit(){
var that = this;
- UTIL.httpRequest(API.URL_GET_TRANSFERCUSTOMSUBMIT+this.data.form.id, {method : 'POST'}, {
+ UTIL.httpRequest(API.URL_GET_TRANSFERCUSTOMSUBMIT2+this.data.form.id, {method : 'POST'}, {
success: (res) => {
if (res.code == API.SUCCESS_CODE) {
wx.showToast({
@@ -1576,6 +1644,12 @@ Page({
},2000)
}
})
+ }else{
+ wx.showToast({
+ title: res.msg,
+ icon: 'error',
+ duration: 2000
+ })
}
}
})
@@ -1588,7 +1662,7 @@ Page({
})
that.goKeepNew();
setTimeout(() => {
- UTIL.httpRequest(API.URL_GET_TRANSFERCUSTOMSUBMIT+this.data.form.id, {method : 'POST'}, {
+ UTIL.httpRequest(API.URL_GET_TRANSFERCUSTOMSUBMIT2+this.data.form.id, {method : 'POST'}, {
success: (res) => {
if (res.code == API.SUCCESS_CODE) {
wx.hideLoading();
@@ -1602,6 +1676,12 @@ Page({
},2000)
}
})
+ }else{
+ wx.showToast({
+ title: res.msg,
+ icon: 'error',
+ duration: 2000
+ })
}
}
})
@@ -1640,7 +1720,7 @@ Page({
mediaType: ['image'],
sourceType: ['album', 'camera'],
camera: 'back',
- count: 1,
+ count: 9,
success(res) {
console.log(res);
res.tempFiles.forEach(item => {
@@ -1653,47 +1733,54 @@ Page({
})
})
console.log(fileForm);
- let tem = that.data.form.SJimage?that.data.form.SJimage:[];
- res.tempFiles.forEach(r=>{
- tem.push({
- tempFilePath:r.tempFilePath
- })
- })
- console.log(tem);
- that.setData({
- ["form.SJimage"]:tem,
- ["form.fileForm"]:fileForm,
- })
- let SJlength = that.data.form.SJimage == undefined ? 0:that.data.form.SJimage.length;
- let FPlength = that.data.form.FPimage == undefined ? 0:that.data.form.FPimage.length;
- let QTlength = that.data.form.QTimage == undefined ? 0:that.data.form.QTimage.length;
- let fileNum = parseInt( SJlength ) + parseInt( FPlength ) + parseInt( QTlength ) ;
- that.setData({
- ["form.fileNum"]:fileNum,
- })
const element = fileForm[0];
- wx.uploadFile({
- url: wx.getStorageSync('dressCode')+API.URL_GET_UPLOAD,
- filePath: res.tempFiles[0].tempFilePath,
- name: 'file',
- header: {
- "Content-Type": "multipart/form-data",//记得设置
- "chartset":"utf-8",
- 'Authorization':'Bearer '+getApp().globalData.userInfo.token
- },
- formData:element,
- success (response){
- wx.showToast({
- title: '上传成功',
- icon: 'success',
- duration: 2000,
- })
- },
- fail(res){
- console.log(res)
- }
+
+ let tem = that.data.form.SJimage?that.data.form.SJimage:[];
+
+ fileForm.forEach( (rr,index) => {
+ wx.uploadFile({
+ url: wx.getStorageSync('dressCode')+API.URL_GET_UPLOAD,
+ filePath: rr.file,
+ name: 'file',
+ header: {
+ "Content-Type": "multipart/form-data",//记得设置
+ "chartset":"utf-8",
+ 'Authorization':'Bearer '+getApp().globalData.userInfo.token
+ },
+ formData:rr,
+ success (response){
+ let data = JSON.parse(response.data);
+ console.log(data);
+ tem.push({
+ tempFilePath:wx.getStorageSync('dressCode')+data.fileUrl,
+ id:data.id
+ })
+ console.log(tem);
+ that.setData({
+ ["form.SJimage"]:tem,
+ ["form.fileForm"]:fileForm,
+ })
+ let SJlength = that.data.form.SJimage == undefined ? 0:that.data.form.SJimage.length;
+ let FPlength = that.data.form.FPimage == undefined ? 0:that.data.form.FPimage.length;
+ let QTlength = that.data.form.QTimage == undefined ? 0:that.data.form.QTimage.length;
+ let SYLGKlength = that.data.form.SYLGKimage == undefined ? 0:that.data.form.SYLGKimage.length;
+ let fileNum = parseInt( SJlength ) + parseInt( FPlength ) + parseInt( QTlength ) + parseInt( SYLGKlength ) ;
+ that.setData({
+ ["form.fileNum"]:fileNum,
+ })
+ wx.showToast({
+ title: '上传成功',
+ icon: 'success',
+ duration: 2000,
+ })
+ },
+ fail(res){
+ console.log(res)
+ }
+ })
})
+
},fail(err){
console.log(err);
@@ -1708,7 +1795,7 @@ Page({
mediaType: ['image'],
sourceType: ['album', 'camera'],
camera: 'back',
- count: 1,
+ count: 9,
success(res) {
console.log(res);
res.tempFiles.forEach(item => {
@@ -1723,47 +1810,48 @@ Page({
let tem = that.data.form.FPimage?that.data.form.FPimage:[];
- res.tempFiles.forEach(r=>{
- tem.push({
- tempFilePath:r.tempFilePath
- })
- })
+ fileForm.forEach( rr => {
+ wx.uploadFile({
+ url: wx.getStorageSync('dressCode')+API.URL_GET_UPLOAD,
+ filePath: rr.file,
+ name: 'file',
+ header: {
+ "Content-Type": "multipart/form-data",//记得设置
+ "chartset":"utf-8",
+ 'Authorization':'Bearer '+getApp().globalData.userInfo.token
+ },
+ formData:rr,
+ success (response){
+ let data = JSON.parse(response.data);
+ console.log(data);
+ tem.push({
+ tempFilePath:wx.getStorageSync('dressCode')+data.fileUrl,
+ id:data.id
+ })
- console.log(tem);
- that.setData({
- ["form.FPimage"]:tem,
- ["form.fileForm"]:fileForm
- })
- let SJlength = that.data.form.SJimage == undefined ? 0:that.data.form.SJimage.length;
- let FPlength = that.data.form.FPimage == undefined ? 0:that.data.form.FPimage.length;
- let QTlength = that.data.form.QTimage == undefined ? 0:that.data.form.QTimage.length;
- let fileNum = parseInt( SJlength ) + parseInt( FPlength ) + parseInt( QTlength ) ;
- that.setData({
- ["form.fileNum"]:fileNum,
- })
-
- const element = fileForm[0];
- console.log(element);
- wx.uploadFile({
- url: wx.getStorageSync('dressCode')+API.URL_GET_UPLOAD,
- filePath: res.tempFiles[0].tempFilePath,
- name: 'file',
- header: {
- "Content-Type": "multipart/form-data",//记得设置
- "chartset":"utf-8",
- 'Authorization':'Bearer '+getApp().globalData.userInfo.token
- },
- formData:element,
- success (response){
- wx.showToast({
- title: '上传成功',
- icon: 'success',
- duration: 2000,
- })
- },
- fail(res){
- console.log(res)
- }
+ console.log(tem);
+ that.setData({
+ ["form.FPimage"]:tem,
+ ["form.fileForm"]:fileForm
+ })
+ let SJlength = that.data.form.SJimage == undefined ? 0:that.data.form.SJimage.length;
+ let FPlength = that.data.form.FPimage == undefined ? 0:that.data.form.FPimage.length;
+ let QTlength = that.data.form.QTimage == undefined ? 0:that.data.form.QTimage.length;
+ let SYLGKlength = that.data.form.SYLGKimage == undefined ? 0:that.data.form.SYLGKimage.length;
+ let fileNum = parseInt( SJlength ) + parseInt( FPlength ) + parseInt( QTlength ) + parseInt( SYLGKlength ) ;
+ that.setData({
+ ["form.fileNum"]:fileNum,
+ })
+ wx.showToast({
+ title: '上传成功',
+ icon: 'success',
+ duration: 2000,
+ })
+ },
+ fail(res){
+ console.log(res)
+ }
+ })
})
},fail(err){
console.log(err);
@@ -1777,7 +1865,7 @@ Page({
mediaType: ['image'],
sourceType: ['album', 'camera'],
camera: 'back',
- count: 1,
+ count: 9,
success(res) {
console.log(res);
res.tempFiles.forEach(item => {
@@ -1792,44 +1880,115 @@ Page({
console.log(fileForm);
let tem = that.data.form.QTimage?that.data.form.QTimage:[];
- res.tempFiles.forEach(r=>{
- tem.push({
- tempFilePath:r.tempFilePath
+ fileForm.forEach( rr => {
+ wx.uploadFile({
+ url: wx.getStorageSync('dressCode')+API.URL_GET_UPLOAD,
+ filePath: rr.file,
+ name: 'file',
+ header: {
+ "Content-Type": "multipart/form-data",//记得设置
+ "chartset":"utf-8",
+ 'Authorization':'Bearer '+getApp().globalData.userInfo.token
+ },
+ formData:rr,
+ success (response){
+ let data = JSON.parse(response.data);
+ console.log(data);
+ tem.push({
+ tempFilePath:wx.getStorageSync('dressCode')+data.fileUrl,
+ id:data.id
+ })
+ that.setData({
+ ["form.QTimage"]:tem,
+ ["form.fileForm"]:fileForm
+ })
+ let SJlength = that.data.form.SJimage == undefined ? 0:that.data.form.SJimage.length;
+ let FPlength = that.data.form.FPimage == undefined ? 0:that.data.form.FPimage.length;
+ let QTlength = that.data.form.QTimage == undefined ? 0:that.data.form.QTimage.length;
+ let SYLGKlength = that.data.form.SYLGKimage == undefined ? 0:that.data.form.SYLGKimage.length;
+ let fileNum = parseInt( SJlength ) + parseInt( FPlength ) + parseInt( QTlength ) + parseInt( SYLGKlength ) ;
+ that.setData({
+ ["form.fileNum"]:fileNum,
+ })
+ wx.showToast({
+ title: '上传成功',
+ icon: 'success',
+ duration: 2000,
+ })
+ },
+ fail(res){
+ console.log(res)
+ }
})
})
- that.setData({
- ["form.QTimage"]:tem,
- ["form.fileForm"]:fileForm
- })
- let SJlength = that.data.form.SJimage == undefined ? 0:that.data.form.SJimage.length;
- let FPlength = that.data.form.FPimage == undefined ? 0:that.data.form.FPimage.length;
- let QTlength = that.data.form.QTimage == undefined ? 0:that.data.form.QTimage.length;
- let fileNum = parseInt( SJlength ) + parseInt( FPlength ) + parseInt( QTlength ) ;
- that.setData({
- ["form.fileNum"]:fileNum,
+
+ },fail(err){
+ console.log(err);
+ }
+ })
+ },
+ SYLGKtakephoto(e){
+ var that = this;
+ let fileForm = [];
+ wx.chooseMedia({
+ mediaType: ['image'],
+ sourceType: ['album', 'camera'],
+ camera: 'back',
+ count: 9,
+ success(res) {
+ console.log(res);
+ res.tempFiles.forEach(item => {
+ fileForm.push({
+ file: item.tempFilePath,
+ fileType:'4',
+ bizPath:'transfer',
+ tableName:'t_yinnong_transfer',
+ tableId:that.data.form.id
+ })
})
+ console.log(fileForm);
+ let tem = that.data.form.SYLGKimage?that.data.form.SYLGKimage:[];
- const element = fileForm[0];
- wx.uploadFile({
- url: wx.getStorageSync('dressCode')+API.URL_GET_UPLOAD,
- filePath: res.tempFiles[0].tempFilePath,
- name: 'file',
- header: {
- "Content-Type": "multipart/form-data",//记得设置
- "chartset":"utf-8",
- 'Authorization':'Bearer '+getApp().globalData.userInfo.token
- },
- formData:element,
- success (response){
- wx.showToast({
- title: '上传成功',
- icon: 'success',
- duration: 2000,
- })
- },
- fail(res){
- console.log(res)
- }
+ fileForm.forEach( rr => {
+ wx.uploadFile({
+ url: wx.getStorageSync('dressCode')+API.URL_GET_UPLOAD,
+ filePath: rr.file,
+ name: 'file',
+ header: {
+ "Content-Type": "multipart/form-data",//记得设置
+ "chartset":"utf-8",
+ 'Authorization':'Bearer '+getApp().globalData.userInfo.token
+ },
+ formData:rr,
+ success (response){
+ let data = JSON.parse(response.data);
+ console.log(data);
+ tem.push({
+ tempFilePath:wx.getStorageSync('dressCode')+data.fileUrl,
+ id:data.id
+ })
+ that.setData({
+ ["form.SYLGKimage"]:tem,
+ ["form.fileForm"]:fileForm
+ })
+ let SJlength = that.data.form.SJimage == undefined ? 0:that.data.form.SJimage.length;
+ let FPlength = that.data.form.FPimage == undefined ? 0:that.data.form.FPimage.length;
+ let QTlength = that.data.form.QTimage == undefined ? 0:that.data.form.QTimage.length;
+ let SYLGKlength = that.data.form.SYLGKimage == undefined ? 0:that.data.form.SYLGKimage.length;
+ let fileNum = parseInt( SJlength ) + parseInt( FPlength ) + parseInt( QTlength ) + parseInt( SYLGKlength ) ;
+ that.setData({
+ ["form.fileNum"]:fileNum,
+ })
+ wx.showToast({
+ title: '上传成功',
+ icon: 'success',
+ duration: 2000,
+ })
+ },
+ fail(res){
+ console.log(res)
+ }
+ })
})
},fail(err){
@@ -2114,6 +2273,12 @@ Page({
}
})
+ }else{
+ wx.showToast({
+ title: res.msg,
+ icon: 'error',
+ duration: 2000
+ })
}
}
})
@@ -2198,13 +2363,13 @@ Page({
}
options.splice(e.currentTarget.dataset.index,1);
let length = this.data.form.fileNum - 1;
- this.setData({
- [e.currentTarget.dataset.name]:options,
- ["form.fileNum"]:length,
- ["form.fileForm"]:file,
- })
UTIL.httpRequest(API.URL_GET_GETFILEREMOVE+e.currentTarget.dataset.id , {method:'GET'}, {
success: (res) => {
+ this.setData({
+ [e.currentTarget.dataset.name]:options,
+ ["form.fileNum"]:length,
+ ["form.fileForm"]:file,
+ })
wx.showToast({
title: '删除成功!',
icon: 'success',
@@ -2296,6 +2461,10 @@ Page({
},
addPayee(){
console.log(this.data.form.payeeList);
+ if(this.data.form.payeeList.length > 10){
+ UTIL.showToastNoneIcon('收款方过多,请使用批量上传功能');
+ return;
+ }
for(let i = 0 ; i < this.data.form.payeeList.length ; i++ ){
if(!this.data.form.payeeList[i].payee && !this.data.form.payeeList[i].payeeAccount && !this.data.form.payeeList[i].bankDeposit && !this.data.form.payeeList[i].bankTypeText){
UTIL.showToastNoneIcon('请勿添加多个空付款人');
@@ -2312,6 +2481,15 @@ Page({
["form.payeeList"]:this.data.form.payeeList,
})
},
+ removePayer(e){
+ console.log(e);
+ let i = e.currentTarget.dataset.index;
+ let list = this.data.form.payeeList;
+ list.splice(i,1);
+ this.setData({
+ ["form.payeeList"]:list,
+ })
+ },
onChangePayeeMoney(event){
console.log(event);
this.setData({
diff --git a/pages/apply/paymentTemplate/addNew/addNew.wxml b/pages/apply/paymentTemplate/addNew/addNew.wxml
index 82777e6..31b8250 100644
--- a/pages/apply/paymentTemplate/addNew/addNew.wxml
+++ b/pages/apply/paymentTemplate/addNew/addNew.wxml
@@ -240,7 +240,7 @@
-
+
@@ -251,13 +251,13 @@
收款方信息
-
+
批量上传
- +
+
-
+
+
+
+
+
+
+ 公户
+ 私户
+
+
+
+
-
+
+
+
+
+
+
+
收款方选择
@@ -316,11 +339,11 @@
-
+
上传附件
总数 {{form.fileNum?form.fileNum:0}}张
-
+
@@ -365,6 +388,20 @@
+
+
+ 四议两公开可拍照
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/apply/paymentTemplate/addNew/addNew.wxss b/pages/apply/paymentTemplate/addNew/addNew.wxss
index 7b80138..2e4eed8 100644
--- a/pages/apply/paymentTemplate/addNew/addNew.wxss
+++ b/pages/apply/paymentTemplate/addNew/addNew.wxss
@@ -54,6 +54,7 @@ text{display: block;}
margin: 0 auto;
border-radius: 10px;
box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.16);
+ position: relative;
}
.main-box block{
float: right;
diff --git a/pages/contract/list/list.js b/pages/contract/list/list.js
index 7760ad4..edebc55 100644
--- a/pages/contract/list/list.js
+++ b/pages/contract/list/list.js
@@ -251,7 +251,7 @@ Page({
upload(e){
this.setData({itemId:e.currentTarget.dataset.id});
this.asyncFun(e.currentTarget.dataset.id)
- this.setData({"fileList":[]})
+ this.setData({fileList:[]})
},
asyncFun(id){
let uploadList = this.data.uploadOptions
@@ -260,7 +260,7 @@ Page({
uploadList.map( res => {
let oData = {
tableId: id,
- tableName: "t_contraction_info", //上传表
+ tableName: "t_contraction_fill", //上传表
bizPath: "contraction",
fileType: res.dictValue, //附件类型 1原始发票 2会议纪要 3会议照片 4 参会人员签字
method:'GET'
@@ -367,7 +367,7 @@ Page({
let fileForm={
file: event.detail,
fileType:event.currentTarget.dataset.idx,
- tableName: "t_contraction_info", //上传表
+ tableName: "t_contraction_fill", //上传表
bizPath: "contraction", //上传目录
tableId:_this.data.itemId
}
diff --git a/pages/discussions/detail/detail.js b/pages/discussions/detail/detail.js
new file mode 100644
index 0000000..47c647d
--- /dev/null
+++ b/pages/discussions/detail/detail.js
@@ -0,0 +1,183 @@
+// pages/contract/add/add.js
+import * as UTIL from '../../../utils/util.js';
+import * as API from '../../../utils/API.js';
+const app = getApp();
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ isIPX: app.globalData.isIPX,
+ id:null,
+ voteTypeOptions: [],
+ voteStatusOptions: [],
+ voteResultOptions: [],
+ fileList: [],
+ form:{}
+ },
+ back:function(){
+ wx.navigateBack({
+ delta: 1
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.setData({id:options.id})
+
+ },
+ goForm(e){
+ wx.navigateTo({
+ url: '../form/form?id='+e.currentTarget.dataset.id,
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'vote_type', {method:'GET'}, {
+ success: (res) => {
+ this.setData({
+ voteTypeOptions:res.data,
+ })
+ }
+ })
+ UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'vote_status', {method:'GET'}, {
+ success: (res) => {
+ this.setData({
+ voteStatusOptions:res.data,
+ })
+ }
+ })
+ UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'vote_result', {method:'GET'}, {
+ success: (res) => {
+ this.setData({
+ voteResultOptions:res.data,
+ })
+ }
+ })
+ //获取收入合同状态
+ UTIL.httpRequest(API.URL_GET_VOTEDETAIL + this.data.id , {method:'GET'}, {
+ success: (res) => {
+ res.data.voteStatusText = UTIL.getTransform(res.data.voteStatus,this.data.voteStatusOptions);
+ res.data.voteTypeText = UTIL.getTransform(res.data.voteType,this.data.voteTypeOptions);
+ res.data.yesForm = [];
+ res.data.noForm = [];
+ res.data.everForm = [];
+ res.data.detailList.map(rr=>{
+ rr.voteResultText = UTIL.getTransform(rr.voteResult,this.data.voteResultOptions);
+ if(rr.voteResult == 1){
+ res.data.yesForm.push(rr);
+ }
+ if(rr.voteResult == 2){
+ res.data.noForm.push(rr);
+ }
+ if(rr.voteResult == 3){
+ res.data.everForm.push(rr);
+ }
+ })
+ console.log(res.data);
+ this.setData({'form':res.data});
+ this.asyncFun(this.data.id);
+ }
+ })
+ },
+ asyncFun(id){
+ this.data.form.fileList = [];
+ let uploadList = this.data.uploadOptions
+ let newList = []
+ let _this = this
+ let oData = {
+ tableId: id,
+ tableName: "t_hz_vote", //上传表
+ bizPath: "subcontract",
+ method:'GET'
+ }
+ UTIL.httpRequest(API.URL_GET_ATTACHMENTLIST, oData, {
+ success: (rr) => {
+ if(rr.code==200&&rr.rows.length>0){
+ rr.rows.map((rrr,index) => {
+ rrr.url = wx.getStorageSync('dressCode') + rrr.fileUrl
+ if(index==rr.rows.length-1){
+ newList.push(Object.assign({},{"list":rr.rows}))
+ _this.setData({"form.fileList":_this.data.fileList.concat(newList)});
+ }
+ })
+ console.log(this.data.fileList);
+ }else{
+ let newuploadList = uploadList
+ newuploadList.map(rd => {
+ rd.list = newList
+ })
+ _this.setData({"form.fileList":newuploadList});
+ }
+ }
+ })
+ },
+ lookDown(file,detail){
+ // 获取指定字符串最后一次出现的位置,返回index
+ var index1 = file.detail.url.lastIndexOf('.');
+ // substr(start, length) 抽取从start下标开始的length个字符,返回新的字符串;
+ var style = file.detail.url.substr(index1 + 1)
+ //判断图片类型,不需要下载,不做处理
+ if(style=='png'||style=='jpg'||style=='jpeg'||style=='bmp'||style=='gif'||style=='webp'||style=='psd'||style== 'svg'||style=='tiff'){
+ //判断非图片类型
+ }else{
+ wx.downloadFile({
+ url: file.detail.url,
+ success(data){
+ wx.openDocument({
+ filePath: data.tempFilePath,
+ fileType: style,
+ showMenu:true,
+ success(res){
+ }
+ })
+ }
+ })
+ }
+ },
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/discussions/detail/detail.json b/pages/discussions/detail/detail.json
new file mode 100644
index 0000000..279ab1e
--- /dev/null
+++ b/pages/discussions/detail/detail.json
@@ -0,0 +1,8 @@
+{
+ "navigationStyle": "custom",
+ "usingComponents": {
+ "van-cell": "@vant/weapp/cell/index",
+ "van-upload": "@vant/weapp/uploader/index",
+ "van-cell-group": "@vant/weapp/cell-group/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/discussions/detail/detail.wxml b/pages/discussions/detail/detail.wxml
new file mode 100644
index 0000000..4a001b1
--- /dev/null
+++ b/pages/discussions/detail/detail.wxml
@@ -0,0 +1,44 @@
+
+
+
+ 查看四议表决
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{form.yesForm.length}}人同意
+ {{form.noForm.length}}人不同意
+ {{form.everForm.length}}人弃权
+
+
+ 同意:
+ {{item.voteBy}}
+ 无
+
+ 不同意:
+ {{item.voteBy}}
+ 无
+
+ 弃权:
+ {{item.voteBy}}、
+ 无
+
+
+
+
+ 我要表决
+
+
+
+
\ No newline at end of file
diff --git a/pages/discussions/detail/detail.wxss b/pages/discussions/detail/detail.wxss
new file mode 100644
index 0000000..a1641f6
--- /dev/null
+++ b/pages/discussions/detail/detail.wxss
@@ -0,0 +1,46 @@
+/* pages/payee/add/add.wxss */
+.main-box{
+ background: #ffffff;
+ padding: 20px;
+ width: 94%;
+ margin: 0 auto;
+ border-radius: 10px;
+ box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.16);
+}
+.van-cell{
+ padding-left: 0!important;
+ padding-right: 0!important;
+}
+
+.tit{
+ line-height: 20px;
+ font-size: 16px;
+ font-weight: bold;
+}
+.bottom{
+ width: 100%;
+ margin: 0 auto;
+ text-align: center;
+ margin-top: 30px;
+ margin-bottom: 30px;
+ display: flex;
+}
+
+.bottom view {
+ width: 47%;
+ margin: 0 auto;
+ border-radius: 30px;
+ display: inline-block;
+}
+
+.btn2{
+ background-image: linear-gradient(to right, #49CDFC, #2C6BF6);
+ color: #fff;
+ text-align: center;
+ width: 40%;
+ border-radius: 100px;
+ margin: 5vh auto 3vh;
+}
+.table-boxs>view{
+ line-height: 80rpx;
+}
\ No newline at end of file
diff --git a/pages/discussions/form/form.js b/pages/discussions/form/form.js
new file mode 100644
index 0000000..489f9f8
--- /dev/null
+++ b/pages/discussions/form/form.js
@@ -0,0 +1,242 @@
+// pages/contract/add/add.js
+import * as UTIL from '../../../utils/util.js';
+import * as API from '../../../utils/API.js';
+import SignaturePad from '../../../utils/signature_pad';
+let signaturePad = {};
+let pix = 7;
+let penColor = 'black';
+let lineWidth = 0.6;
+
+const app = getApp();
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ isIPX: app.globalData.isIPX,
+ id:null,
+ autosize:{ maxHeight: 100, minHeight: 50 },
+ form:{
+ voteResult: '1'
+ },
+ penColor: 'black',
+ lineWidth: 0.6,
+ isEmpty: true,
+ baseItem:"",
+ item:{},
+ url:"",
+ isShow:false
+ },
+ back:function(){
+ wx.navigateBack({
+ delta: 2
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.setData({id:options.id})
+ this.getUserInfo();
+ this.getBaseUrl()
+ //获取收入合同状态
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ },
+ onChange(event) {
+ console.log(event.detail);
+ this.setData({
+ [event.currentTarget.dataset.value]: event.detail,
+ });
+ },
+ /* 获取用户信息*/
+ getUserInfo(){
+ UTIL.httpRequest(API.URL_GET_GETINFO, {method:'GET'}, {
+ success: (res) => {
+ if (res.code == API.SUCCESS_CODE) {
+ this.setData({item:res.user})
+ // if(this.data.item.electronicSignature==null||this.data.item.electronicSignature==""){
+ // this.setData({isShow:false})
+ var ctx = wx.createCanvasContext('handWriting');
+ const data = {
+ devicePixelRatio: pix,
+ };
+ signaturePad = new SignaturePad(ctx, data);
+ // }else{
+ // this.setData({isShow:true})
+ // }
+ }
+ }
+ })
+ },
+getBaseUrl:function(){
+ let params={
+ configKey: "system.attachment.url"}
+ UTIL.httpRequest(API.URL_GET_SYSCONFIG,params,{
+ success: (res) => {
+ if (res.code == API.SUCCESS_CODE) {
+ console.log(res.rows[0].configValue+this.data.item.electronicSignature)
+ this.setData({url:res.rows[0].configValue+this.data.item.electronicSignature})
+ }
+ }
+ })
+},
+uploadScaleStart(e) {
+ const item = {
+ penColor: penColor,
+ lineWidth: lineWidth
+ };
+ signaturePad._handleTouchStart(e, item);
+},
+uploadScaleMove(e) {
+ signaturePad._handleTouchMove(e);
+},
+uploadScaleEnd: function(e) {
+ signaturePad._handleTouchEnd(e);
+ const isEmpty = signaturePad.isEmpty();
+ this.setData({
+ isEmpty: isEmpty
+ })
+},
+retDraw: function() {
+ this.setData({isShow:false})
+ var ctx = wx.createCanvasContext('handWriting');
+ const data = {
+ devicePixelRatio: pix,
+ };
+ signaturePad = new SignaturePad(ctx, data);
+ signaturePad.clear();
+ const isEmpty = signaturePad.isEmpty();
+ this.setData({
+ isEmpty: isEmpty
+ })
+},
+getSysInfo: function() {
+ var that = this
+ wx.getSystemInfo({
+ success: function(res) {
+ pix = res.pixelRatio
+ that.setData({
+ width: res.windowWidth * pix,
+ height: res.windowHeight * pix
+ })
+ }
+ })
+},
+//保存canvas图像
+subCanvas: function() {
+ let _this = this
+ if (this.data.isEmpty) {
+ wx.showToast({
+ title: '请签字后提交',
+ duration: 2000,
+ icon:"none"
+ })
+ return false
+ }
+ wx.canvasToTempFilePath({
+ canvasId: 'handWriting',
+ success: function(res) {
+ _this.data.form.voteId = _this.data.id;
+ _this.data.form.file = res.tempFilePath;
+ _this.data.form.voteBy = _this.data.item.userName;
+
+ wx.uploadFile({
+ url: wx.getStorageSync('dressCode')+API.votedetailAdd, //服务器地址
+ filePath:res.tempFilePath,//本地照片地址
+ name: 'file',
+ formData: _this.data.form,
+ header: {
+ 'Content-Type': 'multipart/form-data',
+ 'Authorization':'Bearer '+getApp().globalData.userInfo.token, //如果需要token的话要传
+ },
+ success (res){
+ let dd = JSON.parse(res.data)
+ if(dd.code==200){
+ wx.showToast({
+ title: dd.msg,
+ duration: 2000,
+ icon:"success"
+ })
+ setTimeout(() => {
+ _this.back()
+ }, 2000);
+ }else{
+ wx.showToast({
+ title: dd.msg,
+ duration: 2000,
+ icon:"none"
+ })
+ }
+ }
+ })
+ },
+ fail: function(res) {
+ console.log(res)
+ }
+ })
+},
+// 保存电子签名
+saveESign : function(item){
+ UTIL.httpRequest(API.URL_POST_USEREDIT,item,{
+ success: (res) => {
+ if (res.code == API.SUCCESS_CODE) {
+ wx.showToast({
+ title: "保存成功!",
+ duration: 2000,
+ icon:"success"
+ })
+ }
+ }
+ })
+}
+})
\ No newline at end of file
diff --git a/pages/discussions/form/form.json b/pages/discussions/form/form.json
new file mode 100644
index 0000000..e2feb9c
--- /dev/null
+++ b/pages/discussions/form/form.json
@@ -0,0 +1,10 @@
+{
+ "navigationStyle": "custom",
+ "usingComponents": {
+ "van-field": "@vant/weapp/field/index",
+ "van-radio": "@vant/weapp/radio/index",
+ "van-cell": "@vant/weapp/cell/index",
+ "van-icon": "@vant/weapp/icon/index",
+ "van-radio-group": "@vant/weapp/radio-group/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/discussions/form/form.wxml b/pages/discussions/form/form.wxml
new file mode 100644
index 0000000..65adcee
--- /dev/null
+++ b/pages/discussions/form/form.wxml
@@ -0,0 +1,36 @@
+
+
+
+ 四议表决
+
+
+
+
+
+
+ 同意
+ 不同意
+ 弃权
+
+
+
+
+
+
+
+ 重签
+
+
+
+
+
+
+
+
+
+ 保存
+
+
+
+
\ No newline at end of file
diff --git a/pages/discussions/form/form.wxss b/pages/discussions/form/form.wxss
new file mode 100644
index 0000000..2ca8662
--- /dev/null
+++ b/pages/discussions/form/form.wxss
@@ -0,0 +1,92 @@
+/* pages/payee/add/add.wxss */
+.main-box{
+ background: #ffffff;
+ padding: 20px 0;
+ width: 94%;
+ margin: 0 auto;
+ border-radius: 10px;
+ box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.16);
+}
+
+.tit{
+ line-height: 20px;
+ font-size: 16px;
+ font-weight: bold;
+}
+.bottom{
+ width: 100%;
+ margin: 0 auto;
+ text-align: center;
+ margin-top: 30px;
+ margin-bottom: 30px;
+ display: flex;
+}
+
+.bottom view {
+ width: 47%;
+ margin: 0 auto;
+ border-radius: 30px;
+ display: inline-block;
+}
+
+.btn2{
+ background-image: linear-gradient(to right, #49CDFC, #2C6BF6);
+ color: #fff;
+ text-align: center;
+ width: 40%;
+ border-radius: 100px;
+ margin: 5vh auto 3vh;
+}
+.table-boxs>view{
+ line-height: 80rpx;
+}
+
+.wrapper {
+ width: 100%;
+ height: 20vh;
+ overflow: hidden;
+ display: flex;
+ align-content: center;
+ flex-direction: row;
+ justify-content: center;
+ font-size: 28rpx;
+ position: relative;
+}
+
+.hand-writing {
+ background: #f9f9f9;
+ width: 100%;
+ height: 20vh;
+}
+
+.hand-right {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.hand-center {
+ border: 1rpx dashed #e9e9e9;
+ flex: 1;
+ overflow: hidden;
+ box-sizing: border-box;
+}
+
+
+.del-btn {
+ color: #02d000;
+}
+
+.del-btn image {
+ position: absolute;
+ top: 13rpx;
+ left: 25rpx;
+}
+
+.sub-btn {
+ position: absolute;
+ bottom: 52rpx;
+ color: #999999;
+ transform: rotate(90deg);
+ margin-bottom: 30rpx;
+}
\ No newline at end of file
diff --git a/pages/discussions/list.js b/pages/discussions/list.js
new file mode 100644
index 0000000..c9e9651
--- /dev/null
+++ b/pages/discussions/list.js
@@ -0,0 +1,136 @@
+// pages/project/project.js
+import * as UTIL from '../../utils/util.js';
+import * as API from '../../utils/API.js';
+let EVN_CONFIG = require('../../env/env');
+
+const app = getApp();
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ isIPX: app.globalData.isIPX,
+ name:"",
+ value:'',
+ pageNums:1,
+ showUpload:false,
+ uploadOptions:[],
+ voteTypeOptions:[],
+ fileList:[],
+ itemId:"",
+ itemIndex:"",
+ list:[],
+ fileEvent:{},
+ projectList:[]
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ var _this = this;
+ let qu = wx.createSelectorQuery()
+ qu.select("#top_view").boundingClientRect()
+ qu.exec(res => {
+ _this.setData({
+ scrollHeight:wx.getSystemInfoSync().windowHeight-res[0].height-res[0].top
+ })
+ })
+ },
+ goDetail(e){
+ console.log('aaaaaaaaa');
+ wx.navigateTo({
+ url: 'detail/detail?id='+e.currentTarget.dataset.id,
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+ this.onShow();
+ },
+ goSearch(e){
+ this.setData({name:e.detail})
+ this.onShow();
+ },
+ back:function(){
+ wx.navigateBack({
+ delta: 1
+ })
+ },
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ var that = this;
+ //获取附件字典
+ UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'vote_status', {method:'GET'}, {
+ success: (res) => {
+ this.setData({
+ voteStatusOptions:res.data,
+ })
+ UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'vote_type', {method:'GET'}, {
+ success: (res) => {
+ this.setData({
+ voteTypeOptions:res.data,
+ })
+ let params= {
+ itemName:this.data.name,
+ method:'GET'
+ }
+ UTIL.httpRequest(API.URL_GET_VOTELIST, params,{
+ success: (response) => {
+ if (response.code == API.SUCCESS_CODE) {
+ response.rows.map(rr=>{
+ rr.voteStatusText = UTIL.getTransform(rr.voteStatus,that.data.voteStatusOptions);
+ rr.voteTypeText = UTIL.getTransform(rr.voteType,that.data.voteTypeOptions);
+ })
+ that.setData({
+ projectList:response.rows
+ })
+ }
+ }
+ })
+ }
+ })
+ }
+ })
+
+
+ },
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/discussions/list.json b/pages/discussions/list.json
new file mode 100644
index 0000000..6e4aadf
--- /dev/null
+++ b/pages/discussions/list.json
@@ -0,0 +1,17 @@
+{
+ "usingComponents": {
+ "van-checkbox": "@vant/weapp/checkbox/index",
+ "van-checkbox-group": "@vant/weapp/checkbox-group/index",
+ "van-cell": "@vant/weapp/cell/index",
+ "van-cell-group": "@vant/weapp/cell-group/index",
+ "van-search": "@vant/weapp/search/index",
+ "van-radio": "@vant/weapp/radio/index",
+ "van-radio-group": "@vant/weapp/radio-group/index",
+ "van-swipe-cell": "@vant/weapp/swipe-cell/index",
+ "van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
+ "van-dropdown-item": "@vant/weapp/dropdown-item/index",
+ "van-tag": "@vant/weapp/tag/index",
+ "van-action-sheet": "@vant/weapp/action-sheet/index",
+ "van-upload": "@vant/weapp/uploader/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/discussions/list.wxml b/pages/discussions/list.wxml
new file mode 100644
index 0000000..07c9359
--- /dev/null
+++ b/pages/discussions/list.wxml
@@ -0,0 +1,42 @@
+
+
+
+ 四议表决
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.itemName}}
+
+
+ {{item.voteStatusText}}
+
+
+
+
+
+
+ {{item.itemAt}}
+
+
+ {{item.voteTypeText}}
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/discussions/list.wxss b/pages/discussions/list.wxss
new file mode 100644
index 0000000..76becc0
--- /dev/null
+++ b/pages/discussions/list.wxss
@@ -0,0 +1,348 @@
+/* pages/bank/bank.wxss */
+.van-search__content {
+ border: 1px solid #5CAE77!important;
+ background: #fff!important;
+}
+van-search {
+ flex: 1;
+}
+.search_box{
+ display: flex;
+}
+.add_btn{
+ flex: 0.2;
+ padding: var(--search-padding,10px 12px);
+ padding-left: 0;
+}
+.add_btn text{
+ background-color: #62AD66;
+ display: block;
+ height: 100%;
+ text-align: center;
+ line-height: 36px;
+ color: #fff;
+ border-radius: 36px;
+ box-shadow: 0px 5px 5px #ddd;
+}
+text{display: block;}
+.work_plan{
+ padding: 40rpx 32.5rpx 30rpx;
+ display: flex;
+}
+
+.work_plan .menu_item{
+ background-color: #fff;
+ box-shadow: 2px 5px 5px #ddd;
+ border-radius: 60rpx;
+ text-align: center;
+ position: relative;
+ margin-right: 20px;
+ padding: 8px 10px;
+}
+.work_plan .menu_item.active{
+ background-color: #2C8E68;
+ color: #fff;
+}
+.work_plan .menu_item .remind{
+ height: 30rpx;
+ background: #e90101;
+ color: #fff;
+ font-size: 26rpx;
+ position: absolute;
+ line-height: 30rpx;
+ padding:0 10rpx;
+ border-radius: 25px;
+ top: -10rpx;
+ right: -10rpx;
+}
+
+.work_plan .more{
+ flex: 1;
+ text-align: center;
+ line-height: 60rpx;
+ font-size: 36rpx;
+ color: #31936c;
+}
+.deleteBox{
+ width: 130px;
+ text-align: center;
+ height: 100%;
+ background: #F6F6F6;
+ align-items: center;
+ display: flex;
+}
+.workflow .workflow_list{
+ height: 150rpx;
+ background-color: #fff;
+ border-radius: 24rpx;
+ box-shadow:0rpx 0rpx 10rpx rgba(0,0,0,.1);
+ margin-bottom: 20rpx;
+ padding:15rpx 25rpx 10rpx 35rpx;
+}
+.workflow .workflow_list .process_intro{
+ display: flex;
+ height: 62rpx;
+ align-items: center;
+}
+
+.workflow .process_intro .name{
+ width: 390rpx;
+ font-size: 34rpx;
+ margin-right: 30rpx;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.workflow .process_intro .name .name_tit{
+ width: 290rpx;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+.van-swipe-cell {
+ width: 94%;
+ background: #fff;
+ border-radius: 10px;
+ box-shadow: 2px 5px 5px #ddd;
+ margin: 0 auto;
+ margin-bottom: 15px;
+}
+.li{
+ width: 100%;
+ padding: 14px;
+}
+.tit_box{
+ display: flex;
+ justify-content: space-between;
+}
+.tit_box_left{
+ display: flex;
+ align-items: center;
+}
+.detail_box{
+ margin-top: 10px;
+ display: flex;
+ justify-content: space-between;
+}
+.detail_box text{
+ color:#878787;
+}
+.fkmc {
+ line-height: 20px;
+ font-size: 16px;
+}
+.detail_time .detail_box_money{
+ font-size: 14px;
+}
+.detail_time_box{
+ display: flex;
+ justify-content: space-between;
+ margin-top: 10px;
+}
+.detail_time{
+ display: flex;
+ align-items: center;
+ padding-left: 3px;
+}
+.detail_time text{
+ font-size: 12px;
+ margin-left: 5px;
+ color: #878787;
+}
+.li .detail_box_left text{
+ text-align: center;
+}
+.li .detail_box_left .fkdw{
+ color: #B5B5B5;
+ font-size: 14px;
+ margin-top: 5px;
+}
+.li .detail_box_center{
+ color: #666666;
+ font-size: 12px;
+ text-align: center;
+}
+.li .detail_box_right text{
+ text-align: center;
+}
+.li .detail_box_right .skdw{
+ color: #B5B5B5;
+ font-size: 14px;
+ margin-top: 5px;
+}
+
+.li .fksr{
+ display: flex;
+ align-items: center;
+ margin-top: 15px;
+ color: #2C8E68;
+ font-size: 16px;
+}
+.li .wtj{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 3px 8px;
+ border-radius: 5px;
+ font-size: 14px;
+}
+.no{
+ background-color:#fbe3e3;
+ color: #e90000;
+}
+.white{
+ background-color:#feeadc;
+ color: #fc9a55;
+}
+.yes{
+ background-color:#ddeee3;
+ color: #5cae77;
+}
+.other{
+ background-color:#f0f1f6;
+ color: #878787;
+}
+.li .tit{
+ font-size: 16px;
+ color: #333333;
+ line-height: 25px;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 1;
+ word-break: break-all;
+ overflow: hidden;
+ margin-left: 5px;
+}
+.li .fj_name{
+ font-size: 14px;
+ color: #B3DB62;
+ line-height: 25px;
+}
+.li .time{
+ font-size: 14px;
+ color: #9B9CAA;
+}
+.li .money{
+ font-size: 18px;
+ color: #5CAE77;
+}
+.tit_type{
+ display: flex;
+ align-items: center;
+ flex-shrink: 0;
+}
+.tit_type text{
+ background: rgba(92, 174, 119, 0.2);
+ color: #5CAE77;
+ padding: 2px 10px;
+}
+.van-checkbox__label {
+ display: flex;
+ justify-content: space-between;
+ width: 100%;
+}
+
+.van-checkbox__icon-wrap {
+ border-radius: 5px;
+}
+.van-checkbox__icon {
+ border-radius: 5px;
+ border: 2px solid #2C8E68!important;
+ background-color: rgba(44, 142, 104, 0.2);
+}
+.bottom{
+ width: 100%;
+ margin: 0 auto;
+ text-align: center;
+ padding: 15px 0;
+ display: flex;
+ position: fixed;
+ bottom: 0%;
+ background: #fff;
+ box-shadow: 0 0 5px #ddd;
+}
+
+.bottom view {
+ width: 47%;
+ margin: 0 auto;
+ border-radius: 30px;
+ display: inline-block;
+}
+
+.bottom .btn2{
+ border: 1px solid transparent;
+ padding: 10px 0px;
+ background-image: linear-gradient(to right, #2C8E68, #5CAE77);
+ color: #fff;
+}
+
+.downView{
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ padding: 0 20px;
+ border: 1px solid #5CAE77;
+ border-radius: 50px;
+ background: #fff;
+ margin-left: auto;
+}
+.downView image{
+ width: 10px;
+ height: 8px;
+ margin-left: 10px;
+}
+.hp_type{
+ padding: 4vw 3%;
+ display: flex;
+ border-bottom: 1px solid #eee;
+}
+.hp_type view{
+ padding: 2vw 6%;
+ background: #EEEEEE;
+ border-radius: 60px;
+ margin-right: 3%;
+ width: 30vw;
+ text-align: center;
+}
+.hp_button{
+ display: flex;
+ justify-content: space-around;
+ padding:4vw 0 6vw;
+}
+.hp_button view{
+ padding: 3vw 6%;
+ background: #EEEEEE;
+ border-radius: 60px;
+ width: 30vw;
+ text-align: center;
+}
+.van-dropdown-menu {
+ margin-bottom: 15px;
+}
+.fj-box text{
+ background-color: #5CAE77;
+ color: #ffffff;
+ text-align: center;
+ border-radius: 5px;
+ white-space:pre-wrap;
+ padding: 5rpx 8rpx;
+ width: 50rpx;
+ margin: 0px 14px;
+ font-size: 24rpx;
+}
+.fj-li{
+ margin-top: 20px;
+ display: flex;
+ /* flex-wrap: wrap; */
+}
+.fj-li .img_li{
+ width: 100%;
+ height: 18.5vw;
+}
+
+.fj-li .img_add{
+ overflow: hidden;
+}
+.van-icon-description{
+ font-size: 60px;
+}
diff --git a/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.js b/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.js
new file mode 100644
index 0000000..88fa88f
--- /dev/null
+++ b/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.js
@@ -0,0 +1,166 @@
+// pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.js
+import * as UTIL from '../../../utils/util.js';
+import * as API from '../../../utils/API.js';
+const app = getApp();
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ isIPX: app.globalData.isIPX,
+ expressionOptions:[],
+ // 格数据
+ loading: false,
+ finished: false,
+ pageDataList: [],
+ searchDate: {
+ bookDate: "",
+ templateName: '收支公开榜',
+ signature: false, // 添加底部落款
+ },
+ // 查询参数
+ queryParams: {
+ // 分页
+ pageNum: 1,
+ pageSize: 50,
+ startYyyy_MM: null,
+ endYyyy_MM: null,
+ title: '收支公开榜',
+ combineTitle: false,
+ // 查询排序
+ //orderByColumn: "id",
+ //isAsc: "desc",
+ },
+
+ list: [],
+ accountingYear: "",
+ accountingMonth: "",
+ // 显示搜索条件
+ visible: false,
+ showPickerTime: false,
+
+ minDate: new Date(2020, 0, 1),
+ maxDate: new Date().getTime(),
+ currentDate: new Date(),
+ date:''
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ UTIL.httpRequest(API.getLoginBook,{}, {
+ success: (res) => {
+ if (res.code == API.SUCCESS_CODE) {
+ let currentDays = res.data.currentDay;
+ if (currentDays == null) {
+ UTIL.showToastNoneIcon("当前账套未开启!");
+ return false;
+ }
+
+ let mindate = res.data.startDay.split('-')
+ let dealDays = currentDays.split("-");
+ this.setData({
+ accountingYear:dealDays[0],
+ accountingMonth:dealDays[1],
+ date: dealDays[0]+'年'+dealDays[1]+'月',
+ ['searchDate.bookDate']:currentDays,
+ ['queryParams.startYyyy_MM']:res.data.currentDay,
+ ['queryParams.endYyyy_MM']:res.data.currentDay,
+ minDate: new Date(mindate[0],mindate[1]-1).getTime(),
+ ['queryParams.deptId']:JSON.parse(wx.getStorageSync('user')).loginDeptId,
+ ['queryParams.bookType']:JSON.parse(wx.getStorageSync('user')).bookType,
+ ['queryParams.bookId']:JSON.parse(wx.getStorageSync('user')).loginBookId,
+ bookName:JSON.parse(wx.getStorageSync('user')).bookName,
+ })
+ this.initPage()
+ }
+ }
+ })
+ },
+ initPage() {
+ var that = this;
+ UTIL.httpRequest(API.financialIncomeExpenditurePublic,this.data.queryParams, {
+ success: (res) => {
+ this.setData({
+ pageDataList:res.rows,
+ total:res.total
+ })
+ }
+ });
+ },
+ onConfirm(time) {
+ console.log(time.detail);
+ let date = UTIL.formatDates(time.detail).split('-');
+ this.setData({
+ date:date[0] + '年' + date[1] + '月',
+ ['queryParams.startDate']:UTIL.formatDates(time.detail),
+ showPickerTime : false
+ })
+ this.getList();
+ },
+ back:function(){
+ wx.navigateBack({
+ delta: 1
+ })
+ },
+ openPick(){
+ this.setData({
+ showPickerTime:true
+ })
+ },
+ closePick(){
+ this.setData({
+ showPickerTime:false
+ })
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.json b/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.json
new file mode 100644
index 0000000..5e24167
--- /dev/null
+++ b/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index",
+ "van-datetime-picker": "@vant/weapp/datetime-picker/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.wxml b/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.wxml
new file mode 100644
index 0000000..8ed27be
--- /dev/null
+++ b/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.wxml
@@ -0,0 +1,68 @@
+
+
+
+ 公开表
+
+
+
+
+
+
+ {{date}}
+
+
+
+
+
+
+
+
+
+
+ 单位:{{ bookName }}
+ {{ accountingYear }}年{{ accountingMonth }}期
+ 金额:元
+
+
+
+
+
+
+
+ -
+ {{ item.incomeDate == null ? '' : item.incomeDate }}
+ {{ item.incomeSummary == null ? '' : item.incomeSummary }}
+ {{ item.incomeAmount == null ? '' : item.incomeAmount }}
+ {{ item.expenditureDate == null ? '' : item.expenditureDate }}
+ {{ item.expenditureSummary == null ? '' : item.expenditureSummary }}
+ {{ item.expenditureAmount == null ? '' : item.expenditureAmount }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.wxss b/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.wxss
new file mode 100644
index 0000000..d219242
--- /dev/null
+++ b/pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.wxss
@@ -0,0 +1,221 @@
+/* pages/finance/detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic.wxss */
+@charset "UTF-8";
+.balance-main {
+ background: #fff;
+}
+.balance-main .main-title {
+ margin-bottom: 5PX;
+ padding: 0 10PX;
+ height: 33PX;
+ line-height: 33PX;
+ color: #333;
+ font-size: 13PX;
+ display: flex;
+ justify-content: space-between;
+}
+.balance-main .main-title .nper {
+ text-align: center;
+}
+.balance-main .main-title .amountOf {
+ text-align: right;
+}
+.balance-main .main-center {
+ border: 1PX solid #CACBCC;
+ border-bottom: 0;
+ overflow-x: scroll;
+}
+.balance-main .main-center .datagrid {
+ min-height: 100PX;
+ width: 250%;
+ /* 确保收入和支出部分的宽度相同 */
+}
+.balance-main .main-center .datagrid .header {
+ background: #f8f8f9;
+ font-weight: bold;
+ display: flex;
+}
+.balance-main .main-center .datagrid .header-title {
+ font-weight: bold;
+ text-align: center;
+ margin-bottom: 5px; /* 根据需要调整间距 */
+}
+.balance-main .main-center .datagrid .header-title.income, .balance-main .main-center .datagrid .header.income {
+ width: 50%;
+ border-bottom: 1PX solid #CACBCC;
+}
+.balance-main .main-center .datagrid .header-title.expenditure, .balance-main .main-center .datagrid .header.expenditure {
+ width: 50%;
+ border-bottom: 1PX solid #CACBCC;
+}
+.balance-main .main-center .datagrid .kmbm,
+.balance-main .main-center .datagrid .header-title.expenditure,
+.balance-main .main-center .datagrid .header-title.income,
+.balance-main .main-center .datagrid .xmmc,
+.balance-main .main-center .datagrid .qj,
+.balance-main .main-center .datagrid .zy,
+.balance-main .main-center .datagrid .jfje,
+.balance-main .main-center .datagrid .dfje,
+.balance-main .main-center .datagrid .fx,
+.balance-main .main-center .datagrid .ye {
+ height: 29PX;
+ line-height: 29PX;
+ font-size: 13PX;
+ border-bottom: 1PX solid #CACBCC;
+ border-right: 1PX solid #CACBCC;
+ text-align: center;
+}
+.balance-main .main-center .datagrid .xmmc {
+ width: 12%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid .qj {
+ width: 26%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid .zy {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid .dfje {
+ width: 12%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid .fx {
+ width: 26%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid .ye {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+ border-right: 0;
+}
+.balance-main .main-center .datagrid .mok_list {
+ display: block;
+ overflow-y: scroll;
+ height: calc(100vh - 200PX);
+}
+.balance-main .main-center .datagrid .list {
+ width: 100%;
+}
+.balance-main .main-center .datagrid ul {
+ margin: 0;
+ padding: 0;
+}
+.balance-main .main-center .datagrid ul li {
+ display: block;
+ overflow: hidden;
+ list-style: none;
+}
+.balance-main .main-center .datagrid ul li.header {
+ background: #f8f8f9;
+ font-weight: bold;
+}
+.balance-main .main-center .datagrid ul li .kmbm,
+.balance-main .main-center .datagrid ul li .xmmc,
+.balance-main .main-center .datagrid ul li .qj,
+.balance-main .main-center .datagrid ul li .zy,
+.balance-main .main-center .datagrid ul li .jfje,
+.balance-main .main-center .datagrid ul li .dfje,
+.balance-main .main-center .datagrid ul li .fx,
+.balance-main .main-center .datagrid ul li .ye {
+ height: 29PX;
+ line-height: 29PX;
+ float: left;
+ font-size: 13PX;
+ border-bottom: 1PX solid #CACBCC;
+ border-right: 1PX solid #CACBCC;
+ text-align: center;
+}
+.balance-main .main-center .datagrid ul li .xmmc {
+ width: 12%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid ul li .qj {
+ width: 26%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid ul li .zy {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid ul li .dfje {
+ width: 12%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid ul li .fx {
+ width: 26%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid ul li .ye {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+ border-right: 0;
+}
+
+.date_box {
+ display: flex;
+ align-items: center;
+}
+.date_box image {
+ width: 30PX;
+ height: 30px;
+ border-radius: 100%;
+ box-shadow: 0px 6px 10px rgba(63, 68, 75, 0.5);
+}
+.date_box p {
+ font-size: 14PX;
+ margin-left: 5PX;
+ color: #2facfe;
+}
+.search_info {
+ padding: 20px 23px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.search_info .search_block {
+ height: 35px;
+ flex: 1;
+ border-radius: 59px;
+ background: #fff;
+ display: flex;
+ padding-right: 35px;
+ align-items: center;
+ box-shadow: 0px 6px 5px rgba(63, 68, 75, 0.2);
+}
+.search_info .search_block .icon {
+ width: 15px;
+ height: 15px;
+ display: block;
+ margin: 0 8px 0 26px;
+}
+.search_info .search_block .delete_icon {
+ width: 15PX;
+ height: 15PX;
+ display: block;
+ margin: 0 8px 0 26px;
+}
+.search_info .search_block .ipt {
+ flex: 1;
+ font-size: 14px;
+ background: none;
+ border: 0 none;
+ line-height: 59px;
+}
+.home_wrapper{
+ background: #e9e9e9;
+ /* min-height: 100vh; */
+ width: 100vw;
+}
\ No newline at end of file
diff --git a/pages/finance/detailed_liabilities/detailed_liabilities.js b/pages/finance/detailed_liabilities/detailed_liabilities.js
new file mode 100644
index 0000000..6c072f8
--- /dev/null
+++ b/pages/finance/detailed_liabilities/detailed_liabilities.js
@@ -0,0 +1,222 @@
+// pages/finance/detailed_liabilities/detailed_liabilities.js
+import * as UTIL from '../../../utils/util.js';
+import * as API from '../../../utils/API.js';
+const app = getApp();
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ isIPX: app.globalData.isIPX,
+ expressionOptions:[],
+ searchDate: {
+ bookDate: "",
+ templateName: '资产负债表',
+ signature: false, // 添加底部落款
+ },
+
+ list: [],
+ accountingYear: "",
+ accountingMonth: "",
+ // 显示搜索条件
+ visible: false,
+ showPickerTime: false,
+ subjectName:'请选择科目查询',
+ minDate: new Date().getTime(),
+ maxDate: new Date().getTime(),
+ currentDate: new Date(),
+ date:''
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ UTIL.httpRequest(API.getLoginBook,{}, {
+ success: (res) => {
+ if (res.code == API.SUCCESS_CODE) {
+ let currentDays = res.data.currentDay;
+ if (currentDays == null) {
+ UTIL.showToastNoneIcon("当前账套未开启!");
+ return false;
+ }
+
+ let mindate = res.data.startDay.split('-')
+ let dealDays = currentDays.split("-");
+ this.setData({
+ accountingYear:dealDays[0],
+ accountingMonth:dealDays[1],
+ date: dealDays[0]+'年'+dealDays[1]+'月',
+ ['searchDate.bookDate']:currentDays,
+ minDate: new Date(mindate[0],mindate[1]-1).getTime(),
+ })
+ this.initPage()
+ }
+ }
+ });
+ UTIL.httpRequest(API.expressionReportByCategory+'资产负债表',{}, {
+ success: (res) => {
+ if (res.code == API.SUCCESS_CODE) {
+ let content = res.data;
+ this.setData({
+ expressionOptions:content
+ })
+ }
+ }
+ });
+ },
+ initPage() {
+ var that = this;
+ UTIL.httpRequest(API.assetLiabilityReportByExpTpl,this.data.searchDate, {
+ success: (res) => {
+ if (res.code == API.SUCCESS_CODE) {
+ let content = res.data;
+ this.setData({
+ list:content.list.map((x) => {
+ x.ncyeLeft = that.formatNum(x.ncyeLeft);
+ x.qmyeLeft = that.formatNum(x.qmyeLeft);
+ x.ncyeRight = that.formatNum(x.ncyeRight);
+ x.qmyeRight = that.formatNum(x.qmyeRight);
+ return x;
+ })
+ })
+ }
+ }
+ });
+ },
+ formatNum(value) {
+ if(value === undefined || value === null)
+ return '';
+ if(typeof(value) === "string")
+ {
+ if(value.indexOf(',') !== -1)
+ return value;
+ value = Number(value);
+ if(isNaN(value))
+ return '';
+ }
+ if(value === 0)
+ return '';
+ return this.numFormat(value);
+ },
+ numFormat(value) {
+ if (value == null) {
+ return "";
+ }
+ if (!value) return "0.00";
+ value = value.toFixed(2);
+ let is_neg = value < 0;
+ var intPart = Math.abs(Math.trunc(value)); // 获取整数部分
+ var intPartFormat = intPart.toString()
+ .replace(/(\d)(?=(?:\d{3})+$)/g, "$1,"); // 将整数部分逢三一断
+ if(is_neg)
+ intPartFormat = '-' + intPartFormat;
+ var floatPart = ".00"; // 预定义小数部分
+ var value2Array = value.split(".");
+ // =2表示数据有小数位
+ if (value2Array.length === 2) {
+ floatPart = value2Array[1].toString(); // 拿到小数部分
+ if (floatPart.length === 1) {
+ // 补0,实际上用不着
+ return intPartFormat + "." + floatPart + "0";
+ } else {
+ return intPartFormat + "." + floatPart;
+ }
+ } else {
+ return intPartFormat + floatPart;
+ }
+ },
+ openPick(){
+ this.setData({
+ showPickerTime:true
+ })
+ },
+ closePick(){
+ this.setData({
+ showPickerTime:false
+ })
+ },
+ onConfirm(time) {
+ console.log(time.detail);
+ let date = UTIL.formatDates(time.detail).split('-');
+ this.setData({
+ date:date[0] + '年' + date[1] + '月',
+ ['queryParams.startDate']:UTIL.formatDates(time.detail),
+ showPickerTime : false
+ })
+ this.getList();
+ },
+ back:function(){
+ wx.navigateBack({
+ delta: 1
+ })
+ },
+ closePickEx(){
+ this.setData({
+ visible : false
+ })
+ },
+ openPickEx(){
+ this.setData({
+ visible : true
+ })
+ },
+ onConfirmExpression(data){
+ console.log(data);
+ this.setData({
+ subjectName:data.detail.value.name,
+ ['searchDate.templateName']: data.detail.value.name,
+ visible : false
+ })
+ this.initPage();
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/finance/detailed_liabilities/detailed_liabilities.json b/pages/finance/detailed_liabilities/detailed_liabilities.json
new file mode 100644
index 0000000..ea1c144
--- /dev/null
+++ b/pages/finance/detailed_liabilities/detailed_liabilities.json
@@ -0,0 +1,7 @@
+{
+ "usingComponents": {
+ "van-popup": "@vant/weapp/popup/index",
+ "van-picker": "@vant/weapp/picker/index",
+ "van-datetime-picker": "@vant/weapp/datetime-picker/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/finance/detailed_liabilities/detailed_liabilities.wxml b/pages/finance/detailed_liabilities/detailed_liabilities.wxml
new file mode 100644
index 0000000..0b99667
--- /dev/null
+++ b/pages/finance/detailed_liabilities/detailed_liabilities.wxml
@@ -0,0 +1,71 @@
+
+
+
+ 负债表
+
+
+
+
+
+
+ {{date}}
+
+
+
+
+
+
+ {{searchDate.templateName}}
+
+
+
+
+
+
+
+
+
+ 单位:{{ this.$store.getters.bookName }}
+ {{ accountingYear }}年{{ accountingMonth }}期
+ 金额:元
+
+
+
+
+
+
+ -
+ {{ item.subjectNameLeft }}
+ {{ item.ncyeLeft }}
+ {{ item.qmyeLeft }}
+ {{ item.subjectNameRight }}
+ {{ item.ncyeRight }}
+ {{ item.qmyeRight }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/finance/detailed_liabilities/detailed_liabilities.wxss b/pages/finance/detailed_liabilities/detailed_liabilities.wxss
new file mode 100644
index 0000000..5d0e9d4
--- /dev/null
+++ b/pages/finance/detailed_liabilities/detailed_liabilities.wxss
@@ -0,0 +1,214 @@
+/* pages/finance/detailed_liabilities/detailed_liabilities.wxss */
+.balance-main {
+ background: #fff;
+}
+.balance-main .main-title {
+ margin-bottom: 5PX;
+ padding: 0 10PX;
+ height: 33PX;
+ line-height: 33PX;
+ color: #333;
+ font-size: 13PX;
+ display: flex;
+ justify-content: space-between;
+}
+.balance-main .main-title .nper {
+ text-align: center;
+}
+.balance-main .main-title .amountOf {
+ text-align: right;
+}
+.balance-main .main-center {
+ border: 1PX solid #CACBCC;
+ border-bottom: 0;
+ overflow-x: scroll;
+}
+.balance-main .main-center .datagrid {
+ min-height: 100PX;
+ width: 250%;
+}
+.balance-main .main-center .datagrid .header {
+ background: #f8f8f9;
+ font-weight: bold;
+ display: flex;
+ color: #278dff;
+}
+.balance-main .main-center .datagrid .kmbm,
+.balance-main .main-center .datagrid .xmmc,
+.balance-main .main-center .datagrid .qj,
+.balance-main .main-center .datagrid .zy,
+.balance-main .main-center .datagrid .jfje,
+.balance-main .main-center .datagrid .dfje,
+.balance-main .main-center .datagrid .fx,
+.balance-main .main-center .datagrid .ye {
+ height: 29PX;
+ line-height: 29PX;
+ font-size: 13PX;
+ border-bottom: 1PX solid #CACBCC;
+ border-right: 1PX solid #CACBCC;
+ text-align: center;
+}
+.balance-main .main-center .datagrid .xmmc {
+ width: 26%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid .qj {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid .zy {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid .dfje {
+ width: 26%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid .fx {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid .ye {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+ border-right: 0;
+}
+.balance-main .main-center .datagrid .mok_list {
+ display: block;
+ overflow-y: scroll;
+ height: calc(100vh - 200PX);
+}
+.balance-main .main-center .datagrid .list {
+ width: 100%;
+}
+.balance-main .main-center .datagrid ul {
+ margin: 0;
+ padding: 0;
+}
+.balance-main .main-center .datagrid ul li {
+ display: block;
+ overflow: hidden;
+ list-style: none;
+}
+.balance-main .main-center .datagrid ul li.header {
+ background: #f8f8f9;
+ font-weight: bold;
+}
+.balance-main .main-center .datagrid ul li:nth-child(even) {
+ background: #e9e9e9;
+}
+.balance-main .main-center .datagrid ul li .kmbm,
+.balance-main .main-center .datagrid ul li .xmmc,
+.balance-main .main-center .datagrid ul li .qj,
+.balance-main .main-center .datagrid ul li .zy,
+.balance-main .main-center .datagrid ul li .jfje,
+.balance-main .main-center .datagrid ul li .dfje,
+.balance-main .main-center .datagrid ul li .fx,
+.balance-main .main-center .datagrid ul li .ye {
+ height: 29PX;
+ line-height: 29PX;
+ float: left;
+ font-size: 13PX;
+ border-bottom: 1PX solid #CACBCC;
+ border-right: 1PX solid #CACBCC;
+ text-align: center;
+}
+.balance-main .main-center .datagrid ul li .xmmc {
+ width: 26%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid ul li .qj {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid ul li .zy {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid ul li .dfje {
+ width: 26%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid ul li .fx {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid ul li .ye {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+ border-right: 0;
+}
+.radio_box{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding:20px 23px;
+}
+.date_box {
+ display: flex;
+ align-items: center;
+}
+.date_box image {
+ width: 30PX;
+ height: 30px;
+ border-radius: 100%;
+ box-shadow: 0px 6px 10px rgba(63, 68, 75, 0.5);
+}
+.date_box p {
+ font-size: 14PX;
+ margin-left: 5PX;
+ color: #2facfe;
+}
+.search_info {
+ padding: 20px 23px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.search_info .search_block {
+ height: 35px;
+ flex: 1;
+ border-radius: 59px;
+ background: #fff;
+ display: flex;
+ padding-right: 35px;
+ align-items: center;
+ box-shadow: 0px 6px 5px rgba(63, 68, 75, 0.2);
+ margin-left: 20px;
+}
+.search_info .search_block .icon {
+ width: 15px;
+ height: 15px;
+ display: block;
+ margin: 0 8px 0 15px;
+}
+.search_info .search_block .delete_icon {
+ width: 15PX;
+ height: 15PX;
+ display: block;
+ margin: 0 8px 0 26px;
+}
+.search_info .search_block .ipt {
+ flex: 1;
+ font-size: 14px;
+ background: none;
+ border: 0 none;
+ line-height: 59px;
+}
+.home_wrapper{
+ background: #e9e9e9;
+ /* min-height: 100vh; */
+ width: 100vw;
+}
\ No newline at end of file
diff --git a/pages/finance/index.js b/pages/finance/index.js
index 6342b59..342295c 100644
--- a/pages/finance/index.js
+++ b/pages/finance/index.js
@@ -11,7 +11,25 @@ Page({
isIPX: app.globalData.isIPX,
list:[]
},
-
+ goList(e){
+ let type = e.currentTarget.dataset.type;
+ if(type == 'yeb'){
+ wx.navigateTo({
+ url: 'list_balance_ranking/list_balance_ranking',
+ })
+ }
+ if(type == 'fzb'){
+ wx.navigateTo({
+ url: 'detailed_liabilities/detailed_liabilities',
+ })
+ }
+ if(type == 'gkb'){
+ wx.navigateTo({
+ url: 'detailed_incomeAndExpenditurePublic/detailed_incomeAndExpenditurePublic',
+ })
+ }
+
+ },
/**
* 生命周期函数--监听页面加载
*/
@@ -43,8 +61,12 @@ Page({
if(res.code == 200){
for (let i = 0; i < res.rows.length; i++) {
const element = res.rows[i];
- element.openPic = element.openPic.split(',');
- element.openFile = element.openFile.split(',');
+ if(element.openPic){
+ element.openPic = element.openPic.split(',');
+ }
+ if(element.openFile){
+ element.openFile = element.openFile.split(',');
+ }
}
// wx.getStorageSync('dressCode')+
if (res.rows.length>0) {
diff --git a/pages/finance/index.json b/pages/finance/index.json
index d2cdd2c..254f48a 100644
--- a/pages/finance/index.json
+++ b/pages/finance/index.json
@@ -13,6 +13,8 @@
"van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
"van-popup": "@vant/weapp/popup/index",
"van-dialog": "@vant/weapp/dialog/index",
+ "van-grid": "@vant/weapp/grid/index",
+ "van-grid-item": "@vant/weapp/grid-item/index",
"van-dropdown-item": "@vant/weapp/dropdown-item/index"
}
}
\ No newline at end of file
diff --git a/pages/finance/index.wxml b/pages/finance/index.wxml
index 71fdf1b..5556265 100644
--- a/pages/finance/index.wxml
+++ b/pages/finance/index.wxml
@@ -13,7 +13,20 @@
bind:change="goSearch"
/>
-
+
+
+
+ 余额表
+
+
+
+ 负债表
+
+
+
+ 公开表
+
+
diff --git a/pages/finance/index.wxss b/pages/finance/index.wxss
index 963d26c..1759044 100644
--- a/pages/finance/index.wxss
+++ b/pages/finance/index.wxss
@@ -3,6 +3,37 @@
border: 1px solid #5CAE77!important;
background: #fff!important;
}
+.van-grid-item__content--square {
+ padding-top: 0;
+ padding-bottom: 0;
+}
+.grid_main{
+ width: 94%;
+ margin: 0 auto 2vh;
+ overflow: hidden;
+ border-radius: 15px;
+ box-shadow: 0 8px 20px rgba(3, 3, 67, .1);
+ display: flex;
+ justify-content: space-around;
+ align-items: center;
+ background-color: #ffffff;
+ padding: 2vh 0;
+}
+.grid_main view{
+ font-size: 14px;
+ color: #333333;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+}
+.grid_main view text{
+ font-size: 14px;
+ color: #333333;
+ margin-top: 5px;
+}
+.grid_main view image{
+ height: 43px;
+}
van-search {
flex: 0.8;
}
diff --git a/pages/finance/list_balance_ranking/list_balance_ranking.js b/pages/finance/list_balance_ranking/list_balance_ranking.js
new file mode 100644
index 0000000..5832f3f
--- /dev/null
+++ b/pages/finance/list_balance_ranking/list_balance_ranking.js
@@ -0,0 +1,319 @@
+// pages/finance/list_balance_ranking/list_balance_ranking.js
+import * as UTIL from '../../../utils/util.js';
+import * as API from '../../../utils/API.js';
+const app = getApp();
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ popupVisible:false,
+ subjects:[],
+ isIPX: app.globalData.isIPX,
+ subjectName:'',
+ visible:false,
+ subjectId:'',
+ radio:'1',
+ applicationList:[],
+ applicationListSecond:[],
+ assetStatusOptions:[],
+ auditStatus:[],
+ loading: false,
+ finished: false,
+ show: false,
+ showTab: false,
+ showPickerTime: false,
+ fileList:[],
+ listLength:'0',
+ searchInput:'',
+ queryParams:{
+ pageNum:1,
+ pageSize:999,
+ startDate:'',
+ startSubjectId:'',
+ endSubjectId:'',
+ showSubSubject:false
+ },
+ uploadFiles1:[],
+ projectId:'',
+ projectIndex:'',
+ showBtn:true,
+ yearMonth:[],
+ deptName:'',
+ minDate: new Date().getTime(),
+ maxDate: new Date().getTime(),
+ currentDate: new Date(),
+ date:''
+ },
+
+ changeTabItem(e){
+ console.log(e.detail.currentTarget.dataset.item);
+ console.log(e);
+
+ this.setData({
+ subjectName:e.detail.currentTarget.dataset.item.subjectId+ " " + e.detail.currentTarget.dataset.item.subjectName,
+ ['queryParams.endSubjectId']:e.detail.currentTarget.dataset.item.subjectId,
+ popupVisible:false
+ })
+ this.getList();
+
+ },
+ showSub(event){
+ this.setData({
+ ['queryParams.showSubSubject']:event.detail
+ })
+ this.getList();
+ },
+ onClose(e){
+ console.log(e);
+ this.setData({
+ popupVisible:false
+ })
+ },
+ openTabs(e){
+ console.log(e);
+ this.setData({
+ tabsVisible:true
+ })
+ this.selectComponent('#tabs').resize();
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ UTIL.httpRequest(API.getLoginBook,{}, {
+ success: (res) => {
+ if (res.code == API.SUCCESS_CODE) {
+ if (res.data.currentDay != null || res.data.startDay != null){
+ let resDate = res.data.currentDay != null ? res.data.currentDay : res.data.startDay != null ? res.data.startDay : UTIL.formatDates(new Date())
+ let date = resDate.split('-');
+ let mindate = res.data.startDay.split('-')
+ this.setData({
+ date:date[0] + '年' + date[1] + '月',
+ currentDate:new Date(date[0], date[1]-1, 1).getTime(),
+ ['queryParams.startDate']:resDate,
+ minDate: new Date(mindate[0],mindate[1]-1).getTime(),
+ })
+ this.getList();
+ this.getSubjects();
+ }
+ }
+ }
+ })
+ },
+ getList(){
+ var _this = this;
+ setTimeout(() => {
+ UTIL.httpRequest(API.trailBalanceList,_this.data.queryParams, {
+ success: (response) => {
+ // _this.data.listLength = response.total;
+ response.rows.map(res=>{
+ res.bqjffs = Number(res.bqjffs).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, ($0, $1) => {
+ return $1 + ","; }).replace(/\.$/, "");
+ res.bqdffs = Number(res.bqdffs).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, ($0, $1) => {
+ return $1 + ","; }).replace(/\.$/, "");
+ res.qcjfye = Number(res.qcjfye).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, ($0, $1) => {
+ return $1 + ","; }).replace(/\.$/, "");
+ res.qcdfye = Number(res.qcdfye).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, ($0, $1) => {
+ return $1 + ","; }).replace(/\.$/, "");
+ res.qmjffs = Number(res.qmjffs).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, ($0, $1) => {
+ return $1 + ","; }).replace(/\.$/, "");
+ res.qmdffs = Number(res.qmdffs).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, ($0, $1) => {
+ return $1 + ","; }).replace(/\.$/, "");
+ })
+ // _this.data.applicationList = response.rows;
+ _this.setData({
+ listLength:response.total,
+ applicationList:response.rows,
+ })
+ }
+ });
+ }, 1000);
+ },
+ openPick(){
+ this.setData({
+ showPickerTime:true
+ })
+ },
+ closePick(){
+ this.setData({
+ showPickerTime:false
+ })
+ },
+ onConfirm(time) {
+ console.log(time.detail);
+ let date = UTIL.formatDates(time.detail).split('-');
+ this.setData({
+ date:date[0] + '年' + date[1] + '月',
+ ['queryParams.startDate']:UTIL.formatDates(time.detail),
+ showPickerTime : false
+ })
+ this.getList();
+ },
+ back:function(){
+ wx.navigateBack({
+ delta: 1
+ })
+ },
+ getSubjects() {
+ this.data.subjects = [];
+ var that = this;
+ let map = {};
+ UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'subject_type', {method:'GET'}, {
+ success: (resp) => {
+ this.setData({
+ subjects:resp.data.map((x) => {
+ let item = {
+ subjectId: x.dictValue,
+ subjectName: x.dictLabel,
+ subjectNameAll: x.dictLabel,
+ subjectType: x.dictValue,
+ subjectLevel: 0,
+ children: [],
+ visible: true,
+ };
+ map[x.dictValue] = item;
+ return item;
+ })
+ });
+ console.log(this.data.subjects);
+ UTIL.httpRequest('/finance/subject/listAll',{year:this.data.queryParams.startDate ? this.data.queryParams.startDate.substr(0, 4) : null}, {
+ success: (resp) => {
+ let list = this.makeTree(resp.rows || resp.data);
+ console.log(list);
+ for(let v of list)
+ {
+ if(v.subjectId.length === 3)
+ {
+ map[v.subjectType].children.push(v);
+ }
+ }
+ this.setData({
+ subjects:this.data.subjects
+ })
+
+ }
+ });
+ }
+ })
+ // this.getDicts('subject_type').then((resp) => {
+
+ // let url = '/finance/subject/listAll?year='+this.yearNews; // '/open/villageAffairs/public/subjects/153'
+ // request(url).then((resp) => {
+
+ // })
+ // });
+ },
+ makeTree(list) {
+ function isnull(p) {
+ return p === null || p === undefined || p === '';
+ }
+ function makeTree_r(l, p) {
+ const isRoot = isnull(p);
+ let res = [];
+ for(let v of l)
+ {
+ if((isRoot && isnull(v.parentId)) || (!isRoot && v.parentId == p))
+ {
+ let arr = makeTree_r(l, v.subjectId);
+ if(arr.length > 0)
+ v.children = arr;
+ else
+ delete v.children;
+ res.push(v);
+ }
+ }
+ return res;
+ }
+ return makeTree_r(list.map((x) => {
+ x.visible = true;
+ return x;
+ }));
+ },
+ openPup(){
+ this.setData({
+ popupVisible:true
+ })
+ },
+ onTabChanged(){
+ this.setData({searchValue:''})
+ this.onSearch();
+ },
+ onSearch(value) {
+ function handleTree_r(l, func) {
+ let res = 0;
+ for(let v of l)
+ {
+ let r = func(v) ? 1 : 0;
+ if(v.children && Array.isArray(v.children) && v.children.length > 0)
+ {
+ r += handleTree_r(v.children, func);
+ }
+ v.visible = r > 0;
+ res += r;
+ }
+ return res;
+ }
+
+ for(let v of this.data.subjects)
+ {
+ if(v.subjectId === this.data.active && value)
+ {
+ handleTree_r(v.children, (x) => x.subjectId.startsWith(value) || x.subjectName.indexOf(value) !== -1);
+ }
+ else
+ {
+ handleTree_r(v.children, (x) => true);
+ }
+ }
+ },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/finance/list_balance_ranking/list_balance_ranking.json b/pages/finance/list_balance_ranking/list_balance_ranking.json
new file mode 100644
index 0000000..4501128
--- /dev/null
+++ b/pages/finance/list_balance_ranking/list_balance_ranking.json
@@ -0,0 +1,13 @@
+{
+ "usingComponents": {
+ "childrenPage":"/component/SubjectTreeChooserNodeItem/childrenPage",
+ "van-popup": "@vant/weapp/popup/index",
+ "van-datetime-picker": "@vant/weapp/datetime-picker/index",
+ "van-checkbox": "@vant/weapp/checkbox/index",
+ "van-tab": "@vant/weapp/tab/index",
+ "van-tabs": "@vant/weapp/tabs/index",
+ "van-collapse": "@vant/weapp/collapse/index",
+ "van-collapse-item": "@vant/weapp/collapse-item/index",
+ "van-checkbox-group": "@vant/weapp/checkbox-group/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/finance/list_balance_ranking/list_balance_ranking.wxml b/pages/finance/list_balance_ranking/list_balance_ranking.wxml
new file mode 100644
index 0000000..c5bc2c7
--- /dev/null
+++ b/pages/finance/list_balance_ranking/list_balance_ranking.wxml
@@ -0,0 +1,94 @@
+
+
+
+ 余额表
+
+
+
+
+
+ {{date}}
+
+
+
+
+
+
+ {{subjectName==''?'请选择科目查询':subjectName}}
+
+
+
+
+
+
+ 显示明细
+ 共{{listLength}}条
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/finance/list_balance_ranking/list_balance_ranking.wxss b/pages/finance/list_balance_ranking/list_balance_ranking.wxss
new file mode 100644
index 0000000..d9eb6d3
--- /dev/null
+++ b/pages/finance/list_balance_ranking/list_balance_ranking.wxss
@@ -0,0 +1,229 @@
+.balance-main {
+ background: #fff;
+}
+.balance-main .main-title {
+ margin-bottom: 5PX;
+ padding: 0 10PX;
+ height: 33PX;
+ line-height: 33PX;
+ color: #333;
+ font-size: 13PX;
+ display: flex;
+ justify-content: space-between;
+}
+.balance-main .main-title .nper {
+ text-align: center;
+}
+.balance-main .main-title .amountOf {
+ text-align: right;
+}
+.balance-main .main-center {
+ border: 1PX solid #CACBCC;
+ border-bottom: 0;
+ overflow-x: scroll;
+}
+.balance-main .main-center .datagrid {
+ min-height: 100PX;
+ width: 250%;
+}
+.balance-main .main-center .datagrid .header {
+ background: #f8f8f9;
+ font-weight: bold;
+ display: flex;
+ color: #278dff;
+}
+.balance-main .main-center .datagrid .header_sec view {
+ width: 12.5%;
+}
+.balance-main .main-center .datagrid .kmbm,
+.balance-main .main-center .datagrid .xmmc,
+.balance-main .main-center .datagrid .qj,
+.balance-main .main-center .datagrid .zy,
+.balance-main .main-center .datagrid .jfje,
+.balance-main .main-center .datagrid .dfje,
+.balance-main .main-center .datagrid .fx,
+.balance-main .main-center .datagrid .ye {
+ height: 29PX;
+ line-height: 29PX;
+ font-size: 13PX;
+ border-bottom: 1PX solid #CACBCC;
+ border-right: 1PX solid #CACBCC;
+ text-align: center;
+}
+.balance-main .main-center .datagrid .xmmc {
+ width: 25%;
+ text-align: center;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid .qj {
+ width: 25%;
+ text-align: center;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid .zy {
+ width: 25%;
+ text-align: center;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid .dfje {
+ width: 25%;
+ text-align: center;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid .fx {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid .ye {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+ border-right: 0;
+}
+.balance-main .main-center .datagrid .mok_list {
+ display: block;
+ overflow-y: scroll;
+ height: calc(100vh - 310PX);
+}
+.balance-main .main-center .datagrid .list {
+ width: 100%;
+}
+.balance-main .main-center .datagrid ul {
+ margin: 0;
+ padding: 0;
+}
+.balance-main .main-center .datagrid ul li {
+ display: block;
+ overflow: hidden;
+ list-style: none;
+}
+.balance-main .main-center .datagrid ul li.header {
+ background: #f8f8f9;
+ font-weight: bold;
+}
+.balance-main .main-center .datagrid ul li.header_sec view {
+ width: 12.5%;
+}
+.balance-main .main-center .datagrid ul li:nth-child(even) {
+ background: #e9e9e9;
+}
+.balance-main .main-center .datagrid ul li .kmbm,
+.balance-main .main-center .datagrid ul li .xmmc,
+.balance-main .main-center .datagrid ul li .qj,
+.balance-main .main-center .datagrid ul li .zy,
+.balance-main .main-center .datagrid ul li .jfje,
+.balance-main .main-center .datagrid ul li .dfje,
+.balance-main .main-center .datagrid ul li .fx,
+.balance-main .main-center .datagrid ul li .ye {
+ height: 29PX;
+ line-height: 29PX;
+ float: left;
+ font-size: 13PX;
+ border-bottom: 1PX solid #CACBCC;
+ border-right: 1PX solid #CACBCC;
+ text-align: center;
+}
+.balance-main .main-center .datagrid ul li .xmmc {
+ width: 26%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid ul li .qj {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid ul li .zy {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid ul li .dfje {
+ width: 26%;
+ text-align: left;
+ padding-left: 10PX;
+}
+.balance-main .main-center .datagrid ul li .fx {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+}
+.balance-main .main-center .datagrid ul li .ye {
+ width: 12%;
+ text-align: right;
+ padding-right: 10PX;
+ border-right: 0;
+}
+.search_info {
+ padding: 20px 23px 0;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.search_info .search_block {
+ height: 35px;
+ flex: 1;
+ border-radius: 59px;
+ background: #fff;
+ display: flex;
+ padding-right: 35px;
+ align-items: center;
+ box-shadow: 0px 6px 5px rgba(63, 68, 75, 0.2);
+ margin-left: 20px;
+}
+.search_info .search_block .icon {
+ width: 15px;
+ height: 15px;
+ display: block;
+ margin: 0 8px 0 15px;
+}
+.search_info .search_block .delete_icon {
+ width: 15PX;
+ height: 15PX;
+ display: block;
+ margin: 0 8px 0 26px;
+}
+.search_info .search_block .ipt {
+ flex: 1;
+ font-size: 14px;
+ background: none;
+ border: 0 none;
+ line-height: 59px;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 1;
+ word-break: break-all;
+ overflow: hidden;
+}
+.total{
+ font-size: 14PX;
+ color: #858585;
+}
+.home_wrapper{
+ background: #e9e9e9;
+ /* min-height: 100vh; */
+ width: 100vw;
+}
+.date_box {
+ display: flex;
+ align-items: center;
+ flex-shrink: 0;
+}
+.date_box image {
+ width: 30PX;
+ height: 30px;
+ border-radius: 100%;
+ box-shadow: 0px 6px 10px rgba(63, 68, 75, 0.5);
+}
+.date_box p {
+ font-size: 14PX;
+ margin-left: 5PX;
+ color: #2facfe;
+}
+.radio_box{
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding:20px 23px;
+}
\ No newline at end of file
diff --git a/pages/fixedAssets/fixedAssets.wxml b/pages/fixedAssets/fixedAssets.wxml
index f8ab42b..512d21a 100644
--- a/pages/fixedAssets/fixedAssets.wxml
+++ b/pages/fixedAssets/fixedAssets.wxml
@@ -16,7 +16,7 @@
填报
-
+
@@ -80,6 +80,22 @@
附件
+
+
+
+
+
+ 处置
+
+
+
+
+
+
+
+ 出租
+
+
-
+
+ -->
+
- 发票可拍照
+ 发票
+
-
+
+
- 其他可拍照
+ 其他
+
-
+
+
+
+
+
+
+
+ 四议两公开
+
+
+
+
+
+
+
@@ -450,57 +472,60 @@
审批流程
-
+
-
-
- {{index+1}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{item.assigneeName}}
-
- {{item.deptLabel}}
-
- 同意
- 审核中
- 驳回
-
-
-
-
- {{ item.comment }}
-
- {{ sub.times(item.time) }}
-
+
+ 批次号:{{childrenItem[0]}}
+
+
+ {{index+1}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.actorName}}
+
+ {{item.auditBy}}
+
+ 同意
+ 审核中
+ 驳回
+
-
-
+
+
+ {{ item.auditRemark==null?'无':item.auditRemark }}
+
+ {{ sub.times(item.auditTime) }}
+
+
+
+
+
-
+
-
-
+
+
+
+
+ 主体名录
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 其他信息
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/mainBody/detail/detail.wxss b/pages/mainBody/detail/detail.wxss
new file mode 100644
index 0000000..39ba5d0
--- /dev/null
+++ b/pages/mainBody/detail/detail.wxss
@@ -0,0 +1,11 @@
+/* pages/mainBody/detail/detail.wxss */
+
+.main-box{
+ background: #ffffff;
+ width: 94%;
+ margin: 0 auto;
+ border-radius: 10px;
+ box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.16);
+ position: relative;
+ overflow: hidden;
+}
\ No newline at end of file
diff --git a/pages/mainBody/list/list.js b/pages/mainBody/list/list.js
new file mode 100644
index 0000000..b8d1b77
--- /dev/null
+++ b/pages/mainBody/list/list.js
@@ -0,0 +1,141 @@
+// pages/index/policy/list/list.js
+import * as UTIL from '../../../utils/util.js';
+import * as API from '../../../utils/API.js';
+const app = getApp();
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ //自定义导航栏
+ isIPX: app.globalData.isIPX,
+ value:'',
+ total:0,
+ list:[],
+ pageNums:1,
+ title:'',
+ entityName:'',
+ option1: [
+ { text: '专业合作社', value: 1 },
+ { text: '家庭农场', value: 2 },
+ { text: '龙头企业', value: 3 },
+ { text: '农业庄园', value: 4 },
+ { text: '专业大户', value: 5 }
+ ],
+ value1: 0,
+ statisticsTypeId: 1
+ },
+
+ goDetail(e) {
+ wx.navigateTo({
+ url: '/pages/mainBody/detail/detail?id='+e.currentTarget.dataset.id,
+ })
+ },
+ changeTab(e){
+ var that = this ;
+ console.log(e.detail);
+ that.setData({statisticsTypeId:e.detail});
+ this.getList();
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+ this.getList();
+ },
+ paging(){
+ this.setData({
+ pageNums:this.data.pageNums+1,
+ })
+ this.getList();
+ },
+ getList(){
+ let data = {
+ pageNum:this.data.pageNums,
+ pageSize:10,
+ translate_dict:true,
+ entityName:this.data.entityName,
+ statisticsTypeId:this.data.statisticsTypeId,
+ method: 'GET'
+ }
+ UTIL.httpRequest(API.URL_GET_ENTITYLIST,data,{
+ success: (res) => {
+ if (res.code == API.SUCCESS_CODE) {
+ let arr = this.data.list;
+ if (arr.length>=res.total){return;}
+ res.rows.map(rr=>{
+ rr.releaseTime = rr.releaseTime == null?'':rr.releaseTime.substr(0,10);
+ arr.push(rr)
+ })
+ this.setData({
+ total:res.total,
+ list:arr
+ })
+ }
+ }
+ })
+ },
+ goSearch(e){
+ this.setData({
+ pageNums:1,
+ entityName:e.detail,
+ list:[]
+ })
+ this.getList();
+ },
+
+ back:function(){
+ wx.navigateBack({
+ delta: 1
+ })
+ },
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/mainBody/list/list.json b/pages/mainBody/list/list.json
new file mode 100644
index 0000000..3ab307d
--- /dev/null
+++ b/pages/mainBody/list/list.json
@@ -0,0 +1,10 @@
+{
+ "navigationStyle":"custom",
+ "usingComponents": {
+ "van-search": "@vant/weapp/search/index",
+ "van-icon": "@vant/weapp/icon/index",
+ "van-cell": "@vant/weapp/cell/index",
+ "van-dropdown-menu": "@vant/weapp/dropdown-menu/index",
+ "van-dropdown-item": "@vant/weapp/dropdown-item/index"
+ }
+}
\ No newline at end of file
diff --git a/pages/mainBody/list/list.wxml b/pages/mainBody/list/list.wxml
new file mode 100644
index 0000000..e62251e
--- /dev/null
+++ b/pages/mainBody/list/list.wxml
@@ -0,0 +1,49 @@
+
+
+
+ 主体名录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.entityName}}
+
+
+ {{item.corporateRepresentativeName}}
+ {{item.entityAddress}}
+
+
+
+
\ No newline at end of file
diff --git a/pages/mainBody/list/list.wxss b/pages/mainBody/list/list.wxss
new file mode 100644
index 0000000..1f67948
--- /dev/null
+++ b/pages/mainBody/list/list.wxss
@@ -0,0 +1,42 @@
+/* pages/index/policy/list/list.wxss */
+page{
+ height: 100vh;
+ overflow: hidden;
+}
+.label{
+ display: flex;
+ justify-content: space-between;
+}
+.title{
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 1;
+ word-break: break-all;
+ overflow: hidden;
+}
+.flex_main{
+ width: 92%;
+ background-color: #ffffff;
+ margin: 1.5vh auto 0;
+ padding: 1vw 1vw;
+ border-radius: 15px;
+ box-shadow: 0 8px 20px rgba(3, 3, 67, .1);
+}
+
+.van-search {
+ width: 90%;
+ margin: 0 auto;
+}
+.van-search__content {
+ padding-top: 5px ;
+ padding-bottom: 5px ;
+}
+.list_num{
+ font-size: 24rpx;
+ width: 85%;
+ margin: 0 auto;
+}
+.list_num text{
+ font-weight: bold;
+ color: #2A63EF;
+}
\ No newline at end of file
diff --git a/pages/majorEvent/add/add.js b/pages/majorEvent/add/add.js
index bde22db..099f03a 100644
--- a/pages/majorEvent/add/add.js
+++ b/pages/majorEvent/add/add.js
@@ -25,6 +25,28 @@ Page({
*/
onLoad(options) {
let that = this
+ //所属银行
+ UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'major_type', {method:'GET'}, {
+ success: (res) => {
+ this.setData({
+ majorTypeOptions:res.data
+ });
+ }
+ })
+ let templateQueryParams = {
+ // 分页
+ type:'5'
+ };
+ UTIL.httpRequest(API.URL_GET_TEMPLATELIST , templateQueryParams, {
+ success: (res) => {
+ that.setData({
+ approvalTemplateList:res.rows,
+ ["form.approvalTemplateId"]:res.rows[0].id,
+ ["form.approvalTemplateName"]:res.rows[0].name,
+ })
+ }
+ })
+
if(options.id!=null&&options.id!=""){
this.setData({id:options.id})
UTIL.httpRequest(API.URL_GET_MAJOREVENTGET + this.data.id, {method:'GET'}, {
@@ -33,35 +55,59 @@ Page({
if(res.data.auditStatus!='0'&&res.data.auditStatus!='2'){
this.setData({'showBtn':false});
}
+ res.data.majorTypeText = UTIL.getTransform(res.data.majorType,that.data.majorTypeOptions);
+ let op = that.data.approvalTemplateList.filter(function (e) { return e.id == res.data.approvalTemplateId; });
+ res.data.approvalTemplateName = op[0].name;
this.setData({'form':res.data})
this.selectComponent('#hf_editor').setHtml(res.data.eventContent);
+ this.selectComponent('#hf_editor2').setHtml(res.data.dzbty);
+ this.selectComponent('#hf_editor3').setHtml(res.data.lwhsy);
+ this.selectComponent('#hf_editor4').setHtml(res.data.dqyshsyhjy);
+ this.selectComponent('#hf_editor5').setHtml(res.data.cydbhjy);
+ this.selectComponent('#hf_editor6').setHtml(res.data.jcjggk);
+ this.selectComponent('#hf_editor7').setHtml(res.data.ssqkgk);
}
})
}else{
this.onShow()
}
},
+ onConfirmPickApproval(event) {
+ console.log(event);
+ var that = this;
+ this.setData({
+ ["form.showApprovalTemplateName"]: false,
+ ["form.approvalTemplateName"]: event.detail.value.name,
+ ["form.approvalTemplateId"]: event.detail.value.id,
+ });
+ },
onConfirmEventTime(e){
let data = this.getNewDate(new Date(e.detail.value));
this.setData({'form.eventTime':data});
},
getHtml(e) {//从组件获取值
- this.data.form.eventContent = e.detail.content.html
+ this.setData({
+ [e.currentTarget.dataset.name]:e.detail.content.html
+ });
},
- insertImage(){ //图片上传插入示例
- wx.chooseImage({
+ insertImage(e){ //图片上传插入示例
+ wx.chooseMedia({
count: 1,
success: r => {
// 本地测试图片插入
// this.selectComponent('#hf_editor').insertSrc(res.tempFilePaths[0]);
+ console.log(r.tempFiles[0]);
wx.uploadFile({ //调用图片上传接口
url: wx.getStorageSync('dressCode')+'/common/upload',
- filePath: r.tempFilePaths[0],
- name: 'imgFile',
+ filePath: r.tempFiles[0].tempFilePath,
+ header: {
+ 'Authorization':'Bearer '+getApp().globalData.userInfo.token
+ },
+ name: 'file',
success: res => {
- console.log();
- let imgUrl = JSON.parse(res.data).url
- this.selectComponent('#hf_editor').insertSrc(wx.getStorageSync('dressCode')+'/common/upload' + imgUrl);//调用组件insertSrc方法
+ console.log(111111);
+ let imgUrl = JSON.parse(res.data).fileName
+ this.selectComponent('#'+e.currentTarget.dataset.id).insertSrc(wx.getStorageSync('dressCode')+imgUrl);//调用组件insertSrc方法
}
})
}
@@ -123,11 +169,33 @@ Page({
}else if(this.data.form.eventContent===''||this.data.form.eventContent==null){ //事项内容
UTIL.showToastNoneIcon('事项内容不能为空!');
return false;
+ }else if(this.data.form.dzbty===''||this.data.form.dzbty==null){ //事项内容
+ UTIL.showToastNoneIcon('村党支部提议不能为空!');
+ return false;
+ }else if(this.data.form.lwhsy===''||this.data.form.lwhsy==null){ //事项内容
+ UTIL.showToastNoneIcon('两委会商议不能为空!');
+ return false;
+ }else if(this.data.form.dqyshsyhjy===''||this.data.form.dqyshsyhjy==null){ //事项内容
+ UTIL.showToastNoneIcon('党群议事会审议和决议不能为空!');
+ return false;
+ }else if(this.data.form.jcjggk===''||this.data.form.jcjggk==null){ //事项内容
+ UTIL.showToastNoneIcon('决策结果公开不能为空!');
+ return false;
+ }else if(this.data.form.ssqkgk===''||this.data.form.ssqkgk==null){ //事项内容
+ UTIL.showToastNoneIcon('实施情况公开不能为空!');
+ return false;
}else if(this.data.status=='0'){
this.setData({'status':'1'})
var that = this;
that.data.form.method = 'POST';
that.data.form.eventContent = that.data.form.eventContent.replace(/\\/g,"/")
+ that.data.form.eventContent = that.data.form.eventContent.replace(/"/g,"'")
+ that.data.form.dzbty = that.data.form.dzbty.replace(/"/g,"'")
+ that.data.form.lwhsy = that.data.form.lwhsy.replace(/"/g,"'")
+ that.data.form.dqyshsyhjy = that.data.form.dqyshsyhjy.replace(/"/g,"'")
+ that.data.form.cydbhjy = that.data.form.cydbhjy.replace(/"/g,"'")
+ that.data.form.jcjggk = that.data.form.jcjggk.replace(/"/g,"'")
+ that.data.form.ssqkgk = that.data.form.ssqkgk.replace(/"/g,"'")
console.log(that.data.form);
if(that.data.form.id==""||that.data.form.id==null){
UTIL.httpRequest(API.URL_POST_MAJOREVENTADD, that.data.form , {
@@ -187,6 +255,13 @@ Page({
delta: 1
})
},
+ onConfirm(event) {
+ this.setData({
+ [event.currentTarget.dataset.name]: false,
+ [event.currentTarget.dataset.value]: event.detail.value.dictValue,
+ [event.currentTarget.dataset.value+'Text']: event.detail.value.dictLabel,
+ });
+ },
/**
* 生命周期函数--监听页面隐藏
*/
diff --git a/pages/majorEvent/add/add.wxml b/pages/majorEvent/add/add.wxml
index 1b6104b..8d6ca31 100644
--- a/pages/majorEvent/add/add.wxml
+++ b/pages/majorEvent/add/add.wxml
@@ -4,24 +4,80 @@
{{form.id?"":"新增"}}重大项目
-
-
+
- *发生日期
-
-
- {{form.eventTime?form.eventTime:'发生日期'}}
-
-
+ *发生日期
+
+
+ {{form.eventTime?form.eventTime:'发生日期'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- 保存
-
\ No newline at end of file
+
+
+ 保存
+
+
\ No newline at end of file
diff --git a/pages/majorEvent/add/add.wxss b/pages/majorEvent/add/add.wxss
index 61f66a2..a17849d 100644
--- a/pages/majorEvent/add/add.wxss
+++ b/pages/majorEvent/add/add.wxss
@@ -1,4 +1,7 @@
/* pages/payee/add/add.wxss */
+.van-cell__title, .van-cell__value {
+ max-width: 50%!important;
+}
.main-box{
background: #ffffff;
padding: 20px;
@@ -40,8 +43,6 @@
margin-top: 30px;
margin-bottom: 30px;
display: flex;
- position: absolute;
- bottom: 10%;
}
.bottom view {
diff --git a/pages/noLoginIndex.wxml b/pages/noLoginIndex.wxml
index a363042..e0446a6 100644
--- a/pages/noLoginIndex.wxml
+++ b/pages/noLoginIndex.wxml
@@ -1,2 +1,2 @@
-
+
diff --git a/pages/payee/add/add.js b/pages/payee/add/add.js
index 237e485..0e2b45e 100644
--- a/pages/payee/add/add.js
+++ b/pages/payee/add/add.js
@@ -95,22 +95,21 @@ Page({
bindKeyInput(e){
console.log(e.detail);
var that = this;
- var str = e.detail.value;
- var numArr = str.match(/\d+/g)
- var nameArr = str.match(/[\u4e00-\u9fa5]/g).join("")
+ var str = e.detail.value.replace(/\s/g, "");
+ console.log(str);
+ var numArr = str.match(/\d+/g);
+ var nameArr = str.match(/[\u4e00-\u9fa5]/g).join("");
if (numArr) {
numArr.map(rr=>{
- if (rr.length>16) {
console.log(rr);
console.log(UTIL.isBankCard(rr));
- const carId = UTIL.isBankCard(rr);
- if (carId) {
+ // const carId = UTIL.isBankCard(rr);
+ // if (carId) {
that.setData({
["form.payee"]:nameArr,
["form.payeeAccount"]:rr
})
- }
- }
+ // }
})
}
},
@@ -251,7 +250,7 @@ Page({
}else{
wx.hideLoading();
wx.showToast({
- title: "提交失败!",
+ title: res.msg,
duration: 2000,
icon:"error"
})
diff --git a/pages/payee/add/add.wxml b/pages/payee/add/add.wxml
index e78ffee..108b842 100644
--- a/pages/payee/add/add.wxml
+++ b/pages/payee/add/add.wxml
@@ -50,7 +50,7 @@
value="{{ form.accountType }}"
bind:change="onChange"
direction="horizontal"
- data-value="form.accountType"
+ data-formname="form.accountType"
>
公户
私户
diff --git a/pages/payee/index.js b/pages/payee/index.js
index b4bf0a9..935f48a 100644
--- a/pages/payee/index.js
+++ b/pages/payee/index.js
@@ -24,7 +24,7 @@ Page({
that.setData({
isPeers:options.isPeers,//是否同行
bankType:options.bankType,//所属银行
- // accountType:options.accountType,//账户类型
+ accountType:options.accountType,//账户类型
payeeType:options.transferType,//申请转帐类型
money:options.money,//申请转帐类型
index:options.index
@@ -37,7 +37,7 @@ Page({
isAsc:'desc',
isPeers:that.data.isPeers,//是否同行
bankType:that.data.bankType,//所属银行
- // accountType:that.data.accountType,//账户类型
+ accountType:that.data.accountType,//账户类型
// payeeType:that.data.payeeType,//申请转帐类型
status:'0',
method:'GET'
@@ -91,7 +91,7 @@ Page({
isAsc:'asc',
// isPeers:that.data.isPeers,//是否同行
// bankType:that.data.bankType,//所属银行
- // accountType:that.data.accountType,//账户类型
+ accountType:that.data.accountType,//账户类型
// payeeType:that.data.payeeType,//申请转帐类型
status:'0',
name:e.detail,
@@ -187,7 +187,7 @@ Page({
}
prevPage.setData({
["form.payeeList["+that.data.index+"]"]: array[0],//将想要传的信息赋值给上一个页面data中的值
- ["form.accountType"]:array[0].accountType
+ // ["form.accountType"]:array[0].accountType
})
that.back()
}
diff --git a/pages/paymentManager/paymentManager.js b/pages/paymentManager/paymentManager.js
index beb2223..8a2144e 100644
--- a/pages/paymentManager/paymentManager.js
+++ b/pages/paymentManager/paymentManager.js
@@ -104,9 +104,11 @@ Page({
remark:this.data.name,
paymentState:this.data.value1,
capitalExpenditureType:this.data.value2,
- transferType:this.data.value3
+ transferType:this.data.value3,
+ auditStatus:'3',
+ method:'POST'
}
- UTIL.httpRequest(API.URL_GET_TRANSFERPAYLIST,params,{
+ UTIL.httpRequest(API.URL_GET_TRANSFERLIST,params,{
success: (res) => {
let _this = this
if(res.code == 200){
@@ -194,6 +196,33 @@ Page({
url: '/pages/handle/expenditureAuditNew/expenditureAuditNew?id='+e.currentTarget.dataset.ids+'&&ids='+e.currentTarget.dataset.ids+'&&type=see',
})
},
+ toPayReapply(e){
+ let that = this;
+ wx.showModal({
+ title: '提示',
+ content: '此操作会将单据中支付失败的记录重新申请,请先确保在【首页-收款方】中已修改准确,再执行此操作!',
+ success (res) {
+ if (res.confirm) {
+ UTIL.httpRequest(API.reapply + e.currentTarget.dataset.ids, {method:'GET'}, {
+ success: (res) => {
+ if(res.code == 200){
+ wx.showToast({
+ title: '重新申请成功',
+ icon: 'success',
+ duration: 2000
+ })
+ that.getList();
+ }else{
+ UTIL.showToastNoneIcon('申请失败');
+ }
+ }
+ })
+ } else if (res.cancel) {
+ console.log('用户点击取消')
+ }
+ }
+ })
+ },
scrap(e){
console.log(e.currentTarget.dataset.data.id,e.currentTarget.dataset.data.index);
if(e.currentTarget.dataset.data.assetStatus != 1){
diff --git a/pages/paymentManager/paymentManager.wxml b/pages/paymentManager/paymentManager.wxml
index 7cd0ab0..de10a6f 100644
--- a/pages/paymentManager/paymentManager.wxml
+++ b/pages/paymentManager/paymentManager.wxml
@@ -50,11 +50,32 @@
¥{{item.expenditureAmount}}
+
+
+ (已申请)
+
+
+
+
+ 可重新申请
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/paymentManager/toPay/toPay.js b/pages/paymentManager/toPay/toPay.js
index 1f255a5..15f8053 100644
--- a/pages/paymentManager/toPay/toPay.js
+++ b/pages/paymentManager/toPay/toPay.js
@@ -111,8 +111,8 @@ Page({
confirmText: '确定',
success: function (e) {
//非建行
- if(_this.data.data.accountPassword==null||_this.data.data.accountPassword.length<1){
- UTIL.showToastNoneIcon("请输入支付口令!");
+ if(_this.data.data.alternateField1==null||_this.data.data.alternateField1.length<1){
+ UTIL.showToastNoneIcon("请输入验证码!");
}else{
_this.setData({'showPopup':true})
}
@@ -145,10 +145,34 @@ Page({
confirmPay(){
let _this = this
this.setData({'showPopup':false})
- if(this.data.data.bankType!=4){
+ console.log(this.data.data.bankType);
+ if(this.data.data.bankType==4){
let params = {
id : this.data.data.id,
- accountPassword:this.data.data.accountPassword
+ alternateField1:this.data.data.alternateField1,
+ bankType: this.data.data.bankType
+ }
+ UTIL.httpRequest(API.URL_GET_PAY,params,{
+ success: (res) => {
+ wx.showModal({
+ title: "",
+ showCancel: false,
+ content: "支付成功,请等待银行进行处理,稍后可通过查询结果按钮查询银行处理结果。",
+ confirmText: '确定',
+ success: function (e) {
+ _this.back()
+ }
+ })
+ },
+ fail:(res) => {
+ UTIL.showToastNoneIcon(res)
+ }
+ })
+ }else{
+ let params = {
+ id : this.data.data.id,
+ accountPassword:this.data.data.accountPassword,
+ bankType: this.data.data.bankType
}
UTIL.httpRequest(API.URL_GET_PAY,params,{
success: (res) => {
@@ -169,7 +193,7 @@ Page({
content: res.msg,
confirmText: '确定',
success: function (e) {
- _this.back()
+
}
})
}
@@ -178,27 +202,6 @@ Page({
UTIL.showToastNoneIcon(res)
}
})
- }else{
- let params = {
- id : this.data.data.id,
- accountPassword:this.data.data.accountPassword
- }
- UTIL.httpRequest(API.URL_GET_PAY,params,{
- success: (res) => {
- wx.showModal({
- title: "",
- showCancel: false,
- content: "支付成功,请等待银行进行处理,稍后可通过查询结果按钮查询银行处理结果。",
- confirmText: '确定',
- success: function (e) {
- _this.back()
- }
- })
- },
- fail:(res) => {
- UTIL.showToastNoneIcon(res)
- }
- })
}
},
@@ -208,28 +211,36 @@ Page({
sendMsg(){
let _this = this
let params = {
- id : this.data.data.id
+ id : this.data.data.id,
+ bankType: this.data.data.bankType
}
if(this.data.msgTime>0){
return false
}
UTIL.httpRequest(API.URL_GET_SENDMSG,params,{
success: (res) => {
- if (res.toString().indexOf('短信发送失败') == -1){
- _this.setData({'msgText':180+'s后可重新发送','msgTime':180})
- _this.msgTimer = setInterval(()=>{
- let tt = _this.data.msgTime
- _this.setData({'msgText':tt--+'s后可重新发送','msgTime':tt})
- if (_this.data.msgTime == 0){
- clearInterval(_this.msgTimer);
- _this.msgTime = 0 ;
- _this.smsText = '';
- }
- },1000)
+ if (res.code == API.SUCCESS_CODE) {
+ if (res.toString().indexOf('短信发送失败') == -1){
+ _this.setData({'msgText':180+'s后可重新发送','msgTime':180})
+ _this.msgTimer = setInterval(()=>{
+ let tt = _this.data.msgTime
+ _this.setData({'msgText':tt--+'s后可重新发送','msgTime':tt})
+ if (_this.data.msgTime == 0){
+ clearInterval(_this.msgTimer);
+ _this.msgTime = 0 ;
+ _this.smsText = '';
+ }
+ },1000)
+ }else{
+ UTIL.showToastNoneIcon("短信发送失败,请联系管理员!");
+ }
}else{
- UTIL.showToastNoneIcon("短信发送失败,请联系管理员!");
+ UTIL.showToastNoneIcon(res.msg);
}
- }
+ },
+ fail:(res) => {
+ UTIL.showToastNoneIcon(res)
+ }
})
},
bindPickerChange:function(e){
diff --git a/pages/paymentManager/toPay/toPay.wxml b/pages/paymentManager/toPay/toPay.wxml
index fb5daa2..f71fb1b 100644
--- a/pages/paymentManager/toPay/toPay.wxml
+++ b/pages/paymentManager/toPay/toPay.wxml
@@ -45,25 +45,33 @@
-
-
-
-
-
-
-
-
-
- *{{msgText}}
+
+
+
+ 等待领导复核中。。。
+
+
+ {{ data.doubleConfirmationUser +'已于'+data.doubleConfirmationTime +'进行复核。'}}
+
-
-
- 取消
- 支付
+
+
+
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+ *{{msgText}}
+
+
+
+
+ 取消
+ 支付
+
+
+
+
\ No newline at end of file
diff --git a/pages/transaction/transaction.js b/pages/transaction/transaction.js
index a666e0b..f0bc40d 100644
--- a/pages/transaction/transaction.js
+++ b/pages/transaction/transaction.js
@@ -14,6 +14,7 @@ Page({
option1: [],
option2: [],
option3: [],
+ list: [],
value1: '',
value2: '',
value3: '',
@@ -39,7 +40,21 @@ Page({
});
},
projectId:'',
- projectValue:''
+ projectValue:'',
+ pageNums:1,
+ params:{
+ actacn:'' , //付款账户
+ payeeActacn: '' , //收款账号
+ payeeToname:'' , //收款人
+ transtype:'' ,// 业务类型 数据字典:trans_type
+ direction:'' ,// 来往账标识 数据字典:direction
+ pageSize:'10',
+ pageNum:1,
+ method:'POST',
+ },
+ recordform: {},
+ formSms: {},
+ recordopen4: false
},
/**
@@ -47,6 +62,17 @@ Page({
*/
onLoad(options) {
var that = this;
+ let qu = wx.createSelectorQuery()
+ qu.select("#top_view").boundingClientRect()
+ qu.select("#top_ban").boundingClientRect()
+ qu.select("#top_view1").boundingClientRect()
+ qu.select("#top_view2").boundingClientRect()
+ qu.exec(res => {
+ console.log(res);
+ that.setData({
+ scrollHeight:wx.getWindowInfo().windowHeight-res[3].top
+ })
+ })
// 对账状态字典查询
UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'check_status', {method:'GET'}, {
success: (res) => {
@@ -99,11 +125,9 @@ Page({
method:'GET',
accountType:102
}
-
UTIL.httpRequest(API.URL_GET_ACCOUNTLIST, sendData,{
success: (res) => {
console.log(res.rows)
-
let option1 = [];
res.rows.map(rr=>{
console.log(rr);
@@ -111,28 +135,51 @@ Page({
text: rr.accountName, value: rr.bankAccountNumber
})
})
-
that.setData({
option1:option1,
value1:res.rows[0].bankAccountNumber,
result1:res.rows[0].bankAccountNumber,
accountList:res.rows
})
- let perames = {method:'POST',actacn:res.rows[0].bankAccountNumber,pageSize:'10'}
- //交易明细列表
- UTIL.httpRequest(API.URL_GET_GETRECORDETAILLIST , perames, {
- success: (res) => {
- res.rows.map(rrr=>{
- rrr.directionText = UTIL.getTransform(rrr.direction,that.data.directionOptions);
- })
- that.setData({
- list:res.rows
- })
- }
+ console.log(res.rows[0].bankAccountNumber);
+ let actacnName = (that.data.option1).filter(function (e) { return e.value == that.data.result1; });
+ that.setData({
+ actacnName:actacnName[0].text,
+ ["params.actacn"]:res.rows[0].bankAccountNumber
})
+ that.getData();
}
})
},
+ getData(){
+ var that = this;
+ let data = that.data.list;
+ //交易明细列表
+ UTIL.httpRequest(API.URL_GET_GETRECORDETAILLIST , this.data.params, {
+ success: (res) => {
+ console.log(res);
+ console.log(res.total +'---------------------'+ data.length);
+ if(res.total <= data.length){
+ return;
+ }else{
+ res.rows.map(rrr=>{
+ rrr.directionText = UTIL.getTransform(rrr.direction,that.data.directionOptions);
+ data.push(rrr);
+ })
+ that.setData({
+ list:data
+ })
+ }
+
+ }
+ })
+ },
+ paging(){
+ this.setData({
+ pageNums:this.data.pageNums+1,
+ })
+ this.getData();
+ },
goSubmit(){
var that = this ;
let form = {
@@ -171,13 +218,13 @@ Page({
bindDateBeginChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
- beginApplyDate: e.detail.value
+ ['params.params.beginApplyDate']:e.detail.value,
})
},
bindDateEndChange: function(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
- endApplyDate: e.detail.value
+ ['params.params.endApplyDate']:e.detail.value,
})
},
reset(){
@@ -202,7 +249,10 @@ Page({
})
},
onClose() {
- this.setData({ showPopup: false });
+ this.setData({
+ showPopup: false,
+ recordopen4: false
+ });
},
onChangeZH(event) {
console.log(event.detail);
@@ -225,106 +275,46 @@ Page({
changeTab1(event){
var that = this ;
let actacnName = (that.data.option1).filter(function (e) { return e.value == event.detail; });
- console.log(actacnName);
this.setData({
result1: event.detail,
value1: event.detail,
- actacnName:actacnName[0].text
+ actacnName:actacnName[0].text,
+ ['params.actacn']:event.detail,
+ ['params.pageNum']:1,
+ list:[]
});
- let form = {
- actacn:that.data.result1 , //付款账户
- transtype:that.data.result2 ,// 业务类型 数据字典:trans_type
- direction:that.data.result3 ,// 来往账标识 数据字典:direction
- pageNum:'1',
- pageSize:'10',
- method:'POST',
- }
- console.log(form);
- UTIL.httpRequest(API.URL_GET_GETRECORDETAILLIST , form, {
- success: (res) => {
- res.rows.map(rrr=>{
- rrr.directionText = UTIL.getTransform(rrr.direction,that.data.directionOptions);
- })
- that.setData({
- list:res.rows,
- showPopup:false
- })
- }
- })
- // UTIL.httpRequest(API.URL_GET_GETRECONCILIATIONMOBILE , form, {
- // success: (res) => {
- // res.rows.map(rrr=>{
- // rrr.checkStatusText = UTIL.getTransform(rrr.checkStatus,that.data.checkStatusOptions);
- // })
- // that.setData({
- // list:res.rows,
- // showPopup:false
- // })
- // }
- // })
+ this.getData();
},
changeTab2(event){
this.setData({
result2: event.detail,
- value2: event.detail
+ value2: event.detail,
+ ['params.transtype']:event.detail,
+ ['params.pageNum']:1,
+ list:[]
});
- var that = this ;
- let form = {
- actacn:that.data.result1 , //付款账户
- transtype:that.data.result2 ,// 业务类型 数据字典:trans_type
- direction:that.data.result3 ,// 来往账标识 数据字典:direction
- pageSize:'10',
- method:'POST',
- }
- console.log(form);
- UTIL.httpRequest(API.URL_GET_GETRECORDETAILLIST , form, {
- success: (res) => {
- res.rows.map(rrr=>{
- rrr.directionText = UTIL.getTransform(rrr.direction,that.data.directionOptions);
- })
- that.setData({
- list:res.rows,
- showPopup:false
- })
- }
- })
+ this.getData();
},
changeTab3(event){
this.setData({
result3: event.detail,
- value3: event.detail
+ value3: event.detail,
+ ['params.direction']:event.detail,
+ ['params.pageNum']:1,
+ list:[]
});
- var that = this ;
- let form = {
- actacn:that.data.result1 , //付款账户
- transtype:that.data.result2 ,// 业务类型 数据字典:trans_type
- direction:that.data.result3 ,// 来往账标识 数据字典:direction
- pageSize:'10',
- method:'POST',
- }
- console.log(form);
- UTIL.httpRequest(API.URL_GET_GETRECORDETAILLIST , form, {
- success: (res) => {
- res.rows.map(rrr=>{
- rrr.directionText = UTIL.getTransform(rrr.direction,that.data.directionOptions);
- })
- that.setData({
- list:res.rows,
- showPopup:false
- })
- }
- })
+ this.getData();
},
minInput(e){
var that = this ;
that.setData({
- txnamtMin: e.detail.value, //金额范围 最小
+ ['params.params.txnamtMin']:e.detail.value,
})
},
maxInput(e){
var that = this ;
that.setData({
- xnamtMax: e.detail.value, //金额范围最大
+ ['params.params.xnamtMax']:e.detail.value,
})
},
openDZ(e){
@@ -440,8 +430,6 @@ Page({
})
}
}
-
-
},
showTransactionDialog(){
wx.navigateTo({
@@ -452,31 +440,30 @@ Page({
console.log(e);
var that = this;
let form = {
- actacn:that.data.result1 , //付款账户
- payeeActacn: '' , //收款账号
payeeToname:e.detail , //收款人
- transtype:that.data.result2 ,// 业务类型 数据字典:trans_type
- direction:that.data.result3 ,// 来往账标识 数据字典:direction
params:{
beginTxnDate:that.data.beginApplyDate,
endTxnDate:that.data.endApplyDate,
txnamtMin:that.data.txnamtMin,
txnamtMax:that.data.xnamtMax,
},
- pageSize:'10',
- method:'POST',
}
- UTIL.httpRequest(API.URL_GET_GETRECORDETAILLIST , form, {
- success: (res) => {
- res.rows.map(rrr=>{
- rrr.directionText = UTIL.getTransform(rrr.direction,that.data.directionOptions);
- })
- that.setData({
- list:res.rows,
- showPopup:false
- })
- }
- })
+ this.setData({
+ list:[],
+ ['params.payeeToname']:e.detail
+ });
+ this.getData();
+ // UTIL.httpRequest(API.URL_GET_GETRECORDETAILLIST , form, {
+ // success: (res) => {
+ // res.rows.map(rrr=>{
+ // rrr.directionText = UTIL.getTransform(rrr.direction,that.data.directionOptions);
+ // })
+ // that.setData({
+ // list:res.rows,
+ // showPopup:false
+ // })
+ // }
+ // })
},
/**
* 生命周期函数--监听页面初次渲染完成
@@ -525,5 +512,259 @@ Page({
*/
onShareAppMessage() {
+ },
+
+ handleHuidan(rows) {
+ console.log(rows);
+ this.data.recordform.id = rows.currentTarget.dataset.row.id;
+ this.data.recordform.method = 'GET';
+ this.data.recordListOpen = false;
+ UTIL.httpRequest(API.transactionDetailsQuery2OnlyQuery , this.data.recordform, {
+ success: (response) => {
+ this.setData({
+ tYinnongTradingRecordDetailList: response.data,
+ recordListOpen: true,
+ title: "查看回单列表数据"
+ })
+ }
+ })
+ },
+ handleView1(rows){
+ let dataRow = rows.currentTarget.dataset.row;
+ if(dataRow.alternateField2 != null && dataRow.alternateField2 != "" && dataRow.alternateField2.indexOf('失败') == -1){
+ this.showfileFunction(dataRow.alternateField2);
+ } else{
+ UTIL.showToastNoneIcon("暂无回单,请到村账户模块查询电子回单!");
+ }
+ },
+ handleView2(rows){
+ this.checkId = rows.currentTarget.dataset.row.id;
+ this.yinnongTransfersIndexOpen = false;
+ this.tYinnongTransferDetaiList = [];
+ const baseURL = wx.getStorageSync('dressCode');
+ //console.info(baseURL);
+ const id = rows.currentTarget.dataset.row.id || this.ids
+ if(rows.currentTarget.dataset.row.alternateField2 != null && rows.currentTarget.dataset.row.alternateField2 != "" && rows.currentTarget.dataset.row.alternateField2.indexOf('失败') == -1){
+ this.receiptUrl = baseURL+rows.currentTarget.dataset.row.alternateField2;
+ this.recordopen = true;
+ if(rows.currentTarget.dataset.row.transferId != null){
+ this.yinnongTransfersListOpen = true;
+ this.yinnongTransfersIndexApplyOpen = false;
+ this.tYinnongTransferDetaiList=[];
+ queryTransferDetail(rows.currentTarget.dataset.row.transferId).then((res) => {
+ this.yinnongTransfersIndexOpen = true;
+ for (let i = 0 ; i < res.rows.length; i++){
+ res.rows[i].transferStatus = this.transferStatusFormat(res.rows[i])
+ this.tYinnongTransferDetaiList.push(res.rows[i])
+ }
+ });
+ }else{
+ this.yinnongTransfersListOpen = false;
+ }
+ } else {
+ bankReceiptPhoto(rows.currentTarget.dataset.row.id).then((response) => {
+ //console.info(response);
+ if (response.code === 200) {
+ this.receiptUrl =baseURL+ response.msg;
+ this.recordopen = true;
+ this.getList();
+ }
+ });
+ }
+ },
+ handleView3(rows){
+ const id = rows.currentTarget.dataset.row.id;
+ let dataRow = rows.currentTarget.dataset.row;
+ if(dataRow.alternateField2 != null && dataRow.alternateField2 != "" && dataRow.alternateField2.indexOf('失败') == -1){
+ this.showfileFunction(dataRow.alternateField2);
+ } else{
+ UTIL.httpRequest(API.getDianzihuidan + id , {method: 'GET'}, {
+ success: (response) => {
+ if(response.data.alternateField2 != null && response.data.alternateField2 != "" && response.data.alternateField2.indexOf('失败') ==-1){
+ this.showfileFunction(response.data.alternateField2);
+ } else{
+ UTIL.showToastNoneIcon(response.data.alternateField2);
+ }
+ }
+ })
+ }
+ },
+ handleView4(rows){
+ let row = rows.currentTarget.dataset.row;
+ if(row.alternateField2 != null && row.alternateField2 != "" && row.alternateField2.indexOf('失败') == -1){
+ this.showfileFunction(row.alternateField2);
+ } else {
+ UTIL.httpRequest(API.queryReceiptPhoto4 + row.id , {method: 'GET'}, {
+ success: (response) => {
+ this.setData({
+ recordopen4: true
+ })
+ }
+ })
+ }
+ },
+ handleView5(rows){
+ let dataRow = rows.currentTarget.dataset.row;
+ if(dataRow.alternateField2 != null && dataRow.alternateField2 != "" && dataRow.alternateField2.indexOf('失败') == -1){
+ this.showfileFunction(dataRow.alternateField2);
+ } else {
+ UTIL.httpRequest(API.queryReceiptPhoto5 + dataRow.id , {method: 'GET'}, {
+ success: (response) => {
+ if (response.code === 200) {
+ this.showfileFunction(response.msg);
+ }else{
+ UTIL.showToastNoneIcon(response.msg);
+ }
+ }
+ })
+ }
+ },
+ handleView6(rows){
+ let dataRow = rows.currentTarget.dataset.row;
+ if(dataRow.alternateField2 != null && dataRow.alternateField2 != "" && dataRow.alternateField2.indexOf('失败') == -1){
+ const filenames = dataRow.alternateField2.split("|");
+ if(filenames.length == 1){
+ this.showfileFunction(filenames[0]);
+ }else{
+ for (var i=0;i {
+ if (response.code === 200) {
+ const filenames = response.msg.split("|");
+ if(filenames.length == 1){
+ this.showfileFunction(filenames[0]);
+ }else{
+ for (var i=0;i {
+ if (response.code === 200) {
+ const filenames = response.msg.split("|");
+ if(filenames.length == 1){
+ this.showfileFunction(filenames[0]);
+ }else{
+ for (var i=0;i {
+ if (response.code === 200) {
+ if(response.data.alternateField2 != null && response.data.alternateField2 != "" && response.data.alternateField2.indexOf('失败') ==-1){
+ this.showfileFunction(response.data.alternateField2);
+ } else{
+ UTIL.showToastNoneIcon(response.msg);
+ }
+ }else{
+ UTIL.showToastNoneIcon(response.msg);
+ }
+ }
+ })
+ }
+ },
+ handleView10(rows){
+ let dataRow = rows.currentTarget.dataset.row;
+ if(dataRow.alternateField2 != null && dataRow.alternateField2 != "" && dataRow.alternateField2.indexOf('失败') == -1){
+ this.showfileFunction(dataRow.alternateField2);
+ } else{
+ UTIL.httpRequest(API.queryReceiptPhoto10 + dataRow.id , {method: 'GET'}, {
+ success: (response) => {
+ if (response.code === 200) {
+ if(response.msg != null && response.msg != "" && response.msg.indexOf('失败') ==-1){
+ this.showfileFunction(response.msg);
+ } else{
+ UTIL.showToastNoneIcon(response.msg);
+ }
+ }else{
+ UTIL.showToastNoneIcon(response.msg);
+ }
+ }
+ })
+ }
+ },
+ /** 绑定手机号操作 */
+ smsSubmitForm() {
+ this.formSms.method = 'GET';
+ UTIL.httpRequest(API.bankReceiptPhoto4sms , this.formSms, {
+ success: (response) => {
+ if (response.code === 200) {
+ this.setData({
+ recordopen4: false
+ })
+ this.showfileFunction(response.msg);
+ }else{
+ UTIL.showToastNoneIcon(response.msg);
+ }
+ }
+ })
+ },
+
+ showfileFunction(url){
+ const baseURL = wx.getStorageSync('dressCode');
+ if(url.indexOf('pdf') < 0){
+ wx.previewImage({
+ current: baseURL+ url, // 当前显示图片的http链接
+ urls: [baseURL+ url] // 需要预览的图片http链接列表
+ })
+ }else{
+ wx.downloadFile({
+ // 示例 url,并非真实存在
+ url: baseURL+url,
+ success: function (res) {
+ const filePath = res.tempFilePath;
+ wx.openDocument({
+ filePath: filePath,
+ fileType: 'pdf', // 注意这里需要指定文件类型为'pdf'
+ success: function (res) {
+ console.log('打开文档成功');
+ },
+ fail: function (err) {
+ UTIL.showToastNoneIcon('打开文档失败');
+ }
+ });
+ },
+ fail: function (err) {
+ UTIL.showToastNoneIcon('下载文件失败');
+ }
+ });
+ }
}
+
})
\ No newline at end of file
diff --git a/pages/transaction/transaction.wxml b/pages/transaction/transaction.wxml
index 0ac4547..c86940f 100644
--- a/pages/transaction/transaction.wxml
+++ b/pages/transaction/transaction.wxml
@@ -4,7 +4,7 @@
交易明细
-
+
-
+
@@ -25,54 +25,125 @@
-
+
-
-
-
-
+
+
+
+
+
+ 凭证编号{{item.vchnum}}
+ {{item.payerAccount}}
+
+
+
+
+ 我
+
+ {{actacnName}}
+
+ {{item.directionText}}
+
+
+ 对
+ {{item.payeeToname}}
+ {{item.payeeActacn}}
+
+
+
+ {{item.txndate}}
+ ¥{{item.direction == '1' ? '+' : item.furinfo!='冲正' ? '-':''}}{{item.txnamt}}
+
+
+
+
+
+
+
+
+
+
+ 重查回单列表
+
+
+
+
- 凭证编号{{item.vchnum}}
- {{item.payerAccount}}
+
+ 电子回单
- {{item.vchnum}}
-
- 我
+
+
- {{actacnName}}
+
+ 电子回单
- {{item.directionText}}
-
- 对
- {{item.payeeToname}}
- {{item.payeeActacn}}
+
+
+
+
+ 电子回单
+
-
-
- {{item.txndate}}
- ¥{{item.direction == '1' ? '+' : item.furinfo!='冲正' ? '-':''}}{{item.txnamt}}
+
+
+
+
+ 电子回单
+
-
-
-
-
-
-
-
- 回单
+
+
+
+
+ 电子回单
+
+
+
+
+
+ 电子回单
+
+
+
+
+
+
+ 电子回单
+
+
+
+
+
+
+ 电子回单
+
+
+
+
+
+
+ 电子回单
+
+
+
-
-
+
+
+
+
+
+
var indexOf = function(name,value){
return name.indexOf(value);
diff --git a/pages/user/login/login.js b/pages/user/login/login.js
index fe57d3c..4229aa3 100644
--- a/pages/user/login/login.js
+++ b/pages/user/login/login.js
@@ -64,8 +64,8 @@ Page({
wx.setStorageSync('sessionKey', res.data.sessionKey);
getApp().globalData.userInfo.token = res.token;
}else{
- wx.setstorageSync('openId', res.data.openId);
- wx.setStorageSync('sessionKey', res.data.sessionkey);
+ wx.setStorageSync('openId', res.data.openId);
+ wx.setStorageSync('sessionKey', res.data.sessionKey);
this.setData({showPhoneBtn:true})
}
} else {
@@ -155,7 +155,7 @@ Page({
}
//console.log(detail)
let sendData = {
- sessionKey:STORAGE.getSessionKey(),
+ sessionKey:wx.getStorageSync('sessionKey'),
iv:detail.iv,
encryptedData:detail.encryptedData
}
diff --git a/pages/user/login/login.wxml b/pages/user/login/login.wxml
index 6445f0e..712e408 100644
--- a/pages/user/login/login.wxml
+++ b/pages/user/login/login.wxml
@@ -1,30 +1,33 @@
-
+
+
+
-
-
- {{nowDress == '' ? '暂未选择':nowDress}}
+
+
+ {{nowDress == '' ? '暂未选择':nowDress}}
+
-
+
- 我已阅读并同意【服务须知】
+ 我已查看并同意服务须知相关内容
- 北京中农融信科技技术有限公司
+
@@ -41,7 +44,7 @@
showCancelButton="{{true}}"
>
- 关于”农燊云e三资+“的小程序服务(以下简称“本服务”)的说明:
+ 关于”融信云e三资+“的小程序服务(以下简称“本服务”)的说明:
1.本服务是已线下签约客户的内部办公移动端工具,不统一对外开放!
2.本服务不设用户注册功能,不采集用户信息!
3.”微信一键登录“是通过该微信手机号验证系统后台用户中心是否存在此用户,存在则授权登录令牌!
diff --git a/pages/user/login/login.wxss b/pages/user/login/login.wxss
index e89aa70..ab4109d 100644
--- a/pages/user/login/login.wxss
+++ b/pages/user/login/login.wxss
@@ -1,54 +1,81 @@
+page{
+ background-color: #ffffff;
+}
.container{
width: 100vw;
height: 100vh;
}
.container .header{
- padding-top: 25.24vh;
- height: 36.94vh;
+ /* height: 36.94vh; */
+ padding: 12.24vh 40px 0;
}
.container .header .principal{
height: 6.15vh;
line-height: 6.15vh;
margin-bottom: 0.61vh;
- text-align: center;
+ text-align: left;
font-size: 4.92vh;
- color: #2c7339;
+ color: #000000;
+ font-weight: bold;
}
.container .header .instructions{
- font-size: 2.46vh;
+ font-size: 3.92vh;
height: 4.92vh;
line-height: 4.92vh;
- text-align: center;
- color: #2c7339;
+ text-align: left;
+ font-weight: bold;
+ color: #000000;
+}
+
+.container .header .instructions text{
+ font-weight: bold;
+ color: #1DCA84;
}
.container .quick-login{
- position: fixed;
+ /* position: fixed; */
/* bottom: 8vh; */
width: 100%;
}
.container .quick-login .key-login{
- width: 89vw;
- height: 5.17vh;
- background:#ffffff;
+ width: 80vw;
+ height: 6.17vh;
+ background: linear-gradient( 90deg, #2FE398 0%, #1BCF84 39%, #0ABD73 77%, #00B268 100%);
margin:1vh auto 0;
- border-radius: 5.17vh;
+ border-radius: 6.17vh;
text-align: center;
- line-height: 5.17vh;
+ line-height: 6.17vh;
font-size: 2.21vh;
- color: #2c7339;
- box-shadow: 8rpx 6rpx 20rpx rgba(0,0,0,.3);
+ color: #ffffff;
padding: 0;
}
+.container .quick-login .key-login2{
+ width: 80vw;
+ height: 6.17vh;
+ background: #E5F5EE;
+ margin:1vh auto 0;
+ border-radius: 6.17vh;
+ text-align: center;
+ line-height: 6.17vh;
+ font-size: 2.21vh;
+ color: #00B268;
+ padding: 0;
+ border: none;
+}
+
+.container .quick-login .key-login2::after{
+ border: none;
+}
+
.container .quick-login .authorization{
margin-top: 5vh;
display: flex;
justify-content: center; /* 相对父元素水平居中 */
align-items: center; /* 子元素相对父元素垂直居中 */
- color: #fff;
+ color: #999999;
}
.container .quick-login .authorization .changeSize{
diff --git a/pages/user/region/region.js b/pages/user/region/region.js
index 40dda0a..e0e28bd 100644
--- a/pages/user/region/region.js
+++ b/pages/user/region/region.js
@@ -10,7 +10,8 @@ Page({
data: {
isIPX: app.globalData.isIPX,
activeNames: ['1'],
- nowDress:''
+ nowDress:'',
+ identity:'bzy'
},
/**
@@ -35,16 +36,23 @@ Page({
},
goChangeUrl(e){
// https://192.168.0.112:8080/api e.currentTarget.dataset.url
- const url = e.currentTarget.dataset.url;
+ const url = e.currentTarget.dataset.url; //e.currentTarget.dataset.url;
const name = e.currentTarget.dataset.name;
const parentname = e.currentTarget.dataset.parentname;
- wx.setStorageSync('dressCode', url);
+ wx.setStorageSync('dressCode', url);//'http://116.255.223.226:8082/nsgk_test'
wx.setStorageSync('dressName', parentname+'-'+name);
getApp().globalData.APIURL = url
wx.reLaunch({
url: '../login/login',
})
},
+ identityChange(e){
+ const type = e.currentTarget.dataset.type;
+ wx.setStorageSync('identity', type);
+ this.setData({
+ identity: type,
+ });
+ },
/**
* 生命周期函数--监听页面初次渲染完成
*/
diff --git a/pages/user/region/region.wxml b/pages/user/region/region.wxml
index 7cdb503..e3a0aa4 100644
--- a/pages/user/region/region.wxml
+++ b/pages/user/region/region.wxml
@@ -5,6 +5,18 @@
+
+ 您的身份
+
+
+ 报账员
+
+
+ 审批员
+
+
+
+
您的位置