From 00dc3484c449f49452f55f3fd40cec43cdca80ea Mon Sep 17 00:00:00 2001 From: pangdongxu <850374051@qq.com> Date: Fri, 27 May 2022 08:59:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- image/icon/icon_no.png | Bin 0 -> 1263 bytes image/icon/icon_other.png | Bin 0 -> 701 bytes image/icon/icon_white.png | Bin 0 -> 867 bytes image/icon/icon_yes.png | Bin 0 -> 1008 bytes pages/Bookkeeping/update/update.js | 457 +++++++++++++++++++++++++++ pages/Bookkeeping/update/update.json | 24 ++ pages/Bookkeeping/update/update.wxml | 237 ++++++++++++++ pages/Bookkeeping/update/update.wxss | 292 +++++++++++++++++ 8 files changed, 1010 insertions(+) create mode 100644 image/icon/icon_no.png create mode 100644 image/icon/icon_other.png create mode 100644 image/icon/icon_white.png create mode 100644 image/icon/icon_yes.png create mode 100644 pages/Bookkeeping/update/update.js create mode 100644 pages/Bookkeeping/update/update.json create mode 100644 pages/Bookkeeping/update/update.wxml create mode 100644 pages/Bookkeeping/update/update.wxss diff --git a/image/icon/icon_no.png b/image/icon/icon_no.png new file mode 100644 index 0000000000000000000000000000000000000000..2147546550831bed475c33398be57396649b3545 GIT binary patch literal 1263 zcmVXn5d+vFb zcxb0Ys`kFrE^=oO*e=X(^|xq6H}h!yyYZ?8lqAb9$3km!9i<4d?_!Gb?h-`(S9RjMlgxo=q56mq}cSI^ji&W!CV&NYOuO3ZL z7hvG0$f$-QuS1n61P<_IfH$)c1@kBRNdzX<7s)8;h;%)Z^KUFNll{|~wl{mSnD?%m zFE7{%fUCs-ZD%!_FH_k7=t?i3p*+tx0=#h$dSBx`J^!A_%X4^x;4e92h#IXZE=*+w z=e4;s!0tU*a0Ek!83p`+4=)7%0=J?`4|O%n$)&Y8R9R$|M}bSwJ2B29c4p!Joyuoh zZm!cdhE-WiC2SM_)nfO44C??;y7B6DZc!iZY_6pVgs4bEE1yO+3<+L?D-s1UFoi&# zVJx1F^_#5cxEgEIAjY8GK8O<{5$cuqsYsiOBF8bX2{@<0@mZY5V!cX6qp1*gcoi5a zA6RF=(&)eUT_j$?(;*CoK)#S6MEJc(g?i;D%giC+tTTotSOmj)+|V5bGAoM=ax#}A zP_H2CCT)9#u_O5=5*>gFYjD|HFZxFl-5r3Gqru6k{ z`B|2F(=&2K;$lU7?Q{7C_kuMLA;(n^#I81K^RAW4RHj~ey(hw?FVBQvM15=z=~J5Ph_%N0U;!D?n}x7 zoYYyJ$kQY4K+oc4#VL3TCVskBEE$hU0`4IBUy6`P6S!XLWoi%EgNG;D?svIE@6=qb zoSg{%XXAJ?0qcs)9D;ZZl}*3~$0hA>iC+Fz^y@78!j(OxRR;M}xo;Z)i>CWITKi2m zfoF&KYQouqO!_8c%tYRSS`s;>ZbFt^|UuRwbT0h8+#V6_BS;S7{3N+_2DkD>99}OEsIB zjjITw~Nz2uhTa?2mf+9KRI^2uLWZYzzak7 z76MlWo}wsRw3ngQ;Hr$H#6vb5pg$l$^@rgjd@%%QG~bcTyU<&psFvNjC!3Nf8CQob zM8kqR8fp!XfCbDoF@$T6AT|qKV2`Hg3=~?1x3qW++lmF(9qLMiO(J5)XbA+VrP6hy z^Uj*_XGmIzTw}h4hz=A5>d;FBcMIVEtu+DJicM_*Zmw&%{0A25-^>fvvTBIDD+$zD Z{{tTmHk?LzUIG9B002ovPDHLkV1n>oI==t_ literal 0 HcmV?d00001 diff --git a/image/icon/icon_other.png b/image/icon/icon_other.png new file mode 100644 index 0000000000000000000000000000000000000000..7c0001446e6c397648eda5d03f2d473c2ae77117 GIT binary patch literal 701 zcmV;u0z&6t%!Vbp_xGtShkc_*Pb+tUz6XxB_tnmKCVqyjK9O zKv;qJ57cuyxlHbu)!cwc%Yz)0dwNOpfa`qH;!PYR0PPg0T z`_5v-jj(OoEEEd&uIoO)D8X390;Jx>kxRZ~>;hxky-D-h7z~_!KxJ;FQn}0Ja&LHl26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blqNFX+vx0c+h>f@(kd8zFfK-g5V^<=C@Ks)hd4YOceXrf;O0tIl(( z2OMoZ_t|p1+dx}5OY1lpu`F&&Sbe?j5RqK#>;! zTSDNj5c+pUzxVnY5aVY7H{T2A)0EfJCkdxAI`stNXA<+0WbJztcn=`!y~6n<>6=&p zY;gwhTUaq7J_3lTKoMMy0K0Tij$}WC6iyVV`gP%p@leEx1YoRIBjaLnGKyayu%jf7 zS6!yVq*R{1YZ1uzMjy@;%KCNbyqgNZ(crWyL0j&Bk7pS6qW0pMHDuFuM++&Y9y3xMSa#FRj6qY%@6@nT0i+t2q0pQ>-R z-d0R<^VL!)oD8G-u*X~gH|^}hb*yq_Io1+^xWq(WPCK2RxcSrn=CW73s6lzy98(+) zxx!JN=Kh9qLu5FJD#cbGWyFtOvF$-+*qD&?zI_k|VAB%?%(C#b7sU_P@-WH5_f-as zmMu`^0bl^+5-Pbd>^GN7st*J)ltTQ>tshCsHQ|>5G>Mdadwlwphm9@>I5uLU+b><5 z@c$gs-?(v0@2EAezQcOL<(&3FdC;8cDwUA`l&aj(bhl%IW#zoKCXkU^jlxv2iWiUThApc3l11O&rb2If2etQQQM56m0x zIh09y+WK$ZaG~TogNZW_*ow%oqRVJfip9MT^@xR%9{^Zn`10iPTIHr#ZQj|G4I3Al z311i3m+`fz5jC|s-1=Olvj#<0J@~DpBkre+0M{iM5(r6#Q zq9yKz#v6(@9n%BS99E1%w&J!S_l`sW0XOuL0UlYOr$Ul*0qNBZkh&$@Q-$lUvrnW3 ekjC=Y$ov5W-&8+)9zbUR0000 { + if(res.data.length>0){ + this.setData({ + uploadOptions:res.data, + }) + let uploadList = res.data + let newList = [] + let _this = this + uploadList.map( res => { + let oData = { + tableId: id, + tableName: "t_contraction_info", //上传表 + bizPath: "contraction", + fileType: res.dictValue, //附件类型 1原始发票 2会议纪要 3会议照片 4 参会人员签字 + method:'GET' + } + UTIL.httpRequest(API.URL_GET_ATTACHMENTLIST, oData, { + success: (rr) => { + console.log(rr.rows); + rr.rows.map((rrr,index) => { + rrr.url = URL_PREFIX + rrr.fileUrl + if(index==rr.rows.length-1){ + newList.push(Object.assign({},res,{"list":rr.rows})) + _this.setData({"fileList":_this.data.fileList.concat(newList)}); + _this.setData({"showUpload":true}) + } + }) + + }, + fail:(rr) =>{ + console.log(rr); + }, + complete:(rr) => { + console.log(rr); + } + }) + }) + } + } + }) + + //查询收入详情 + UTIL.httpRequest(API.URL_GET_FLOWGET + options.id , {method:'GET'}, { + success: (res) => { + if(res.data.incomeType == 2){ + UTIL.httpRequest(API.URL_GET_INFOGET + res.data.contractionId , {method:'GET'}, { + success: (res3) => { + that.setData({ + contractionIdID:res3.data.code, + payerText:res3.data.name, + }) + } + }) + } + + //获取收入类型状态 + UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'income_type', {method:'GET'}, { + success: (res2) => { + if(res2.data.length>0){ + that.setData({ + incomeTypeOptions:res2.data, + }) + that.setData({ + formData:res.data, + contractionIdID:res.data.code, + incomeTypeText:UTIL.getTransform(res.data.incomeType,res2.data) + }) + } + } + }) + console.log(res); + } + }) + }, + + /** + * 生命周期函数--监听页面显示 + */ + onReady: function () { + let that = this; + + //获取收入单位 + UTIL.httpRequest(API.URL_GET_GETINFO, {method:'GET'}, { + success: (res) => { + if (res.code == API.SUCCESS_CODE) { + this.setData({bookName:res.user.bookName}) + } + } + }) + + + // 获取合同信息列表 + UTIL.httpRequest(API.URL_GET_CONTRACTIONLIST , {method:'GET'}, { + success: (res) => { + that.setData({ + contractionOptions:res.rows, + }) + } + }) + + //获取当前账套付款账户列表 + UTIL.httpRequest(API.URL_GET_ACCOUNTLIST , {method:'GET'}, { + success: (res) => { + that.setData({ + accountListOptions:res.rows, + }) + } + }) + }, + + deleteimg:function(e){ + let oData = e.currentTarget.dataset; + let file = this.data[oData.status]; + file.splice(oData.id,1) + this.setData({ + [oData.status]:file + }) + }, + back:function(){ + wx.navigateBack({ + delta: 1 + }) + }, + + uploadSjPics: function (e) { //这里是选取图片的方法 + var that = this; + var detailPics = that.data.sjPics; + if (detailPics.length >= that.data.count) { + wx.showToast({ + title: '最多选择' + that.data.count + '张!', + }) + return; + } + wx.chooseImage({ + count: that.data.count, // 最多可以选择的图片张数,默认9 + sizeType: ['original', 'compressed'], // original 原图,compressed 压缩图,默认二者都有 + sourceType: ['album', 'camera'], // album 从相册选图,camera 使用相机,默认二者都有 + success: function (res) { + let fileForm = that.data.sjPics + res.tempFilePaths.forEach(item => { + fileForm.push({ + file: item, + fileType:'1', + bizPath:'cashier', + tableName:'t_cashier_account_flow', + tableId:'' + }) + }) + that.setData({ + sjPics:fileForm + }) + + }, + }) + }, + uploadFpPics: function (e) { //这里是选取图片的方法 + var that = this; + var pics = []; + var detailPics = that.data.fpPics; + if (detailPics.length >= that.data.count) { + wx.showToast({ + title: '最多选择' + that.data.count + '张!', + }) + return; + } + wx.chooseImage({ + count: that.data.count, // 最多可以选择的图片张数,默认9 + sizeType: ['original', 'compressed'], // original 原图,compressed 压缩图,默认二者都有 + sourceType: ['album', 'camera'], // album 从相册选图,camera 使用相机,默认二者都有 + success: function (res) { + let fileForm = that.data.fpPics + res.tempFilePaths.forEach(item => { + fileForm.push({ + file: item, + fileType:'2', + bizPath:'cashier', + tableName:'t_cashier_account_flow', + tableId:'' + }) + }) + that.setData({ + fpPics:fileForm + }) + }, + }) + }, + uploadQtPics: function (e) { //这里是选取图片的方法 + var that = this; + var pics = []; + var detailPics = that.data.qtPics; + if (detailPics.length >= that.data.count) { + wx.showToast({ + title: '最多选择' + that.data.count + '张!', + }) + return; + } + wx.chooseImage({ + count: that.data.count, // 最多可以选择的图片张数,默认9 + sizeType: ['original', 'compressed'], // original 原图,compressed 压缩图,默认二者都有 + sourceType: ['album', 'camera'], // album 从相册选图,camera 使用相机,默认二者都有 + success: function (res) { + let fileForm = that.data.qtPics + res.tempFilePaths.forEach(item => { + fileForm.push({ + file: item, + fileType:'3', + bizPath:'cashier', + tableName:'t_cashier_account_flow', + tableId:'' + }) + }) + that.setData({ + qtPics:fileForm + }) + }, + }) + }, + + swichAccounting:function(e){ + let codeStr = e.currentTarget.dataset.code; + let formDataObj = this.data.formData; + if(formDataObj.jieAmount==''){ //收入金额 + UTIL.showToastNoneIcon('请填写收入金额!'); + return false; + }else if(formDataObj.accountName==''){ //存入账户 + UTIL.showToastNoneIcon('请选择存入账户!'); + return false; + }else if(formDataObj.billNum==''){ //单据编码 + UTIL.showToastNoneIcon('请输入单据编码!'); + return false; + }else if(formDataObj.accountSummary==''){ //备注说明 + UTIL.showToastNoneIcon('请输入备注说明!'); + return false; + }else if(formDataObj.incomeType == '2' && formDataObj.contractionId==''){ + UTIL.showToastNoneIcon('收入类型为发包收入,必须选择关联合同!'); + return false; + } + let data = this.data.formData; + data.method = "POST"; + data.checkedStatus = codeStr; + console.log(data); + UTIL.httpRequest(API.URL_POST_GERFLOWEDIT,data,{ + success: (res) => { + if(res.code == 200){ + let vouerId = res.data; + // let vouerId = 1; + let updataList = [...this.data.sjPics,...this.data.fpPics,...this.data.qtPics]; + for(let i=0; i + + + 收入登记 + + + + + 收入单位 + {{bookName}} + +基础信息 + + + 收入时间 + + {{formData.accountDate}} + + + + + 收入金额 + + + 存入账户 + + + + 请选择存入账户 + {{formData.accountName}} + + + + + + + + + + + + + 收入类型 + + 请选择收入类型 + {{incomeTypeText}} + + + + + + + 单据编码 + 备注说明 + + + + 关联合同 + + + + 付款人{{}} + + 请选择付款人 + {{payerText}} + + + + + + + 合同编码 + + 请选择合同编码 + {{contractionIdID}} + + + + + + + + + + 附件可拍照 + + + 总数 {{form.transfers[index].fileNum?form.transfers[index].fileNum:0}}张 + + + + + + 收\n据 + + + + + + + + + + + + + + 发\n票 + + + + + + + + + + + + + + + 其\n他 + + + + + + + + + + + + + + + + + + + 暂存 + 提交 + + + \ No newline at end of file diff --git a/pages/Bookkeeping/update/update.wxss b/pages/Bookkeeping/update/update.wxss new file mode 100644 index 0000000..2ee508b --- /dev/null +++ b/pages/Bookkeeping/update/update.wxss @@ -0,0 +1,292 @@ +/* pages/apply/index.wxss */ +.inComeUnit{ + border:1rpx solid #ddd; + width:90%; + margin:0 auto; + +} +.top{ + display: flex; + width: 94%; + margin: 0 auto; + border-radius: 10rpx; + margin-top: 3vw; + overflow: hidden; +} +.top view{ + padding: 40rpx 15rpx; + align-items: center; + justify-content: center; + position: relative; +} +.top image{ + position: absolute; + width: 94%; +} +.top-title{ + flex: 1; + text-align: center; +} +.top-tit{ + color: #fff; +} +.rules:before{ + content:'*'; + color:red; +} +.rules.no::before{ + content:' '; + padding-left: 14rpx; + color:'#fff'; +} +.main-title{ + background-image: linear-gradient(to right, #2C8E68 , #B3DB62); + color: #ffffff; + font-size: 18rpx; + padding: 10rpx 0; + text-align: center; +} +.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); +} +.main-box block{ + float: right; +} + +.main-box .color-gray{ + color: #888; +} +.title{ + padding: 10px calc(3% + 20px); + display: block; +} +.van-cell{ + padding-left: 0!important; + padding-right: 0!important; + padding-top: 0!important; + margin-bottom: 15px; +} +.table-box .flex-block{ + margin-bottom: 15px; + display: flex; + justify-content: space-between; + align-items: center; +} +.table-box .flex-block:last-child{ + margin-bottom: 0px; +} +.table-box .rules{ + width: 200rpx; +} +.table-box .picker_wrap{ + /* display: flex; + justify-content: flex-end; + align-items: center; */ +} +.table-box .picker{text-align: right;} +.table-box .wrap{flex:1; text-align: right;} +.fjLable{ + display: flex; + width:24px; + margin:25rpx 5rpx; + color:#fff; + background:#07c160; + text-align: center; + border-radius: 10rpx; + justify-content: center; /* 相对父元素水平居中 */ + align-items: center; + padding:25rpx 0; +} +.content { + width: 100%; + background-color: #fff; +} + +.img-list { + display: flex; + display: -webkit-flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + flex-wrap: wrap; +} + +.img-item { + width: 30%; + text-align: left; + margin-right: 3%; + margin-bottom: 10rpx; + position: relative; +} +.img-item .close-ico{ + position: absolute; + right: -10rpx; + top: -10rpx; +} +.img-item .imagea { + width: 160rpx; + height: 160rpx; +} + +.submit-btn { + width: 100%; + background-color: #fff; + height: 80rpx; + text-align: center; + line-height: 80rpx; + font-size: 30rpx; + position: fixed; + bottom: 100rpx; +} + +.chooseimg { + height: 160rpx; + background-color: #fff; + display: flex; + justify-content: center; /* 相对父元素水平居中 */ + align-items: center; +} + +.weui-uploader__input-box { + + float: left; + position: relative; + /* margin-right: 9rpx; + margin-bottom: 9rpx; */ + width: 120rpx; + height: 120rpx; + border: 1px solid #d9d9d9; +} + +.weui-uploader__input-box:before { + width: 2px; + height: 39.5px; +} + +.weui-uploader__input-box:after, .weui-uploader__input-box:before { + content: " "; + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + background-color: #d9d9d9; +} + +.weui-uploader__input-box:after { + width: 39.5px; + height: 2px; +} + +.weui-uploader__input-box:after, .weui-uploader__input-box:before { + content: " "; + position: absolute; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + background-color: #d9d9d9; +} + +.tips { + color: #666; + font-size: 24rpx; + padding-bottom: 20rpx; +} + +.img-box { + width: 92%; + margin: auto; + padding-top: 20rpx; +} +.btn button{ + line-height: 1.7; + padding-left:80rpx; + padding-right:80rpx; + border-radius: 30rpx; +} + +.fj-box text{ + background-color: #5CAE77; + color: #ffffff; + text-align: center; + border-radius: 5px; + white-space:pre-wrap; + padding: 22px 8px; + display: block; +} +.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; +} +.img_box{ + position: relative; + width: 100%; + display: flex; + flex-wrap: wrap; +} +.img_box .img_list{ + width: 25%; + margin-left: 5%; + position: relative; +} +.img_box .img_list .van-icon{ + font-size: 20px; + position: absolute; + top: 0; + right: 0; + transform: translate(50%,-50%); +} +.img_box .img_list:nth-child(n+4){ + margin-top: 15px; +} +.bottom{ + width: 84%; + margin: 0 auto; + text-align: center; + margin-top: 50px; + margin-bottom: 50px; + display: flex; +} + +.bottom view { + width: 47%; + margin: 0 auto; + border-radius: 30px; + display: inline-block; +} + +.bottom .btn1{ + border: 1px solid #2C8E68; + padding: 8px 0px; + color: #2C8E68; +} + +.bottom .btn2{ + border: 1px solid transparent; + padding: 8px 0px; + background-image: linear-gradient(to right, #2C8E68, #5CAE77); + margin-left: 6%; + color: #fff; +} +.bottom .btn3{ + border: 1px solid transparent; + padding: 8px 0px; + background-image: linear-gradient(to right, #2C8E68, #5CAE77); + color: #fff; + width: 100%; +} \ No newline at end of file