diff --git a/app.json b/app.json index da5321e..ddb68c1 100644 --- a/app.json +++ b/app.json @@ -34,6 +34,9 @@ "pages/fixedAssets/fixedAssets", "pages/fixedAssets/add/add", "pages/finance/finance", + "pages/Bookkeeping/seeBook/seeBook", + "pages/Bookkeeping/seeBookZC/seeBookZC", + "pages/finance/finance", "pages/contractAssets/fixedAssets" ], "window": { diff --git a/pages/Bookkeeping/Bookkeeping.js b/pages/Bookkeeping/Bookkeeping.js index cd81609..cf3a939 100644 --- a/pages/Bookkeeping/Bookkeeping.js +++ b/pages/Bookkeeping/Bookkeeping.js @@ -23,7 +23,6 @@ Page({ */ onLoad(options) { var that = this; - UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'checked_status', {method:'GET'}, { success: (res) => { that.setData({ @@ -45,7 +44,6 @@ Page({ }) } }) - that.SRSelect(); that.ZCSelect(); }, @@ -111,7 +109,7 @@ Page({ }, switchTab(e){ var that = this; - this.setData({showGroup:e.currentTarget.dataset.gid}) + this.setData({showGroup:e.currentTarget.dataset.gid,result:[],result2:[]}) if(e.currentTarget.dataset.gid){ //收入事项 let data = { @@ -180,8 +178,9 @@ Page({ * 生命周期函数--监听页面显示 */ onShow() { - - + var that = this ; + that.SRSelect(); + that.ZCSelect(); }, openPopup(even){ this.setData({ @@ -194,6 +193,8 @@ Page({ [event.currentTarget.dataset.name]: false, checkedStatus: event.detail.value.dictValue, checkedStatusText: event.detail.value.dictLabel, + result:[], + result2:[] }); let data = { pageNum:'1', @@ -231,7 +232,8 @@ Page({ let list = res.rows; for (let i = 0; i < list.length; i++) { const element = list[i]; - element.checkedStatusText = UTIL.getTransform(element.checkedStatus,that.data.capitalExpenditureTypeOptions); + list[i].checkedStatusText = UTIL.getTransform(element.checkedStatus,that.data.capitalExpenditureTypeOptions); + list[i].expenditureTypeText = UTIL.getTransform(element.expenditureType,that.data.expenditureTypeOptions); } this.setData({ flowListZC:list, @@ -306,6 +308,16 @@ Page({ } }, + goSee(event){ + wx.navigateTo({ + url: '/pages/Bookkeeping/seeBook/seeBook?id='+event.currentTarget.dataset.id, + }) + }, + goSeeZC(event){ + wx.navigateTo({ + url: '/pages/Bookkeeping/seeBookZC/seeBookZC?id='+event.currentTarget.dataset.id, + }) + }, goUpdate(event){ wx.navigateTo({ url: '/pages/Bookkeeping/update/update?id='+event.currentTarget.dataset.id, diff --git a/pages/Bookkeeping/Bookkeeping.wxml b/pages/Bookkeeping/Bookkeeping.wxml index 94d9d9d..374e3df 100644 --- a/pages/Bookkeeping/Bookkeeping.wxml +++ b/pages/Bookkeeping/Bookkeeping.wxml @@ -24,9 +24,9 @@ - - - + + + {{item.accountSummary}} @@ -47,7 +47,7 @@ - + @@ -57,9 +57,9 @@ - - - + + + {{item.accountSummary}} @@ -80,7 +80,7 @@ - + @@ -96,6 +96,6 @@ - + 提交记账 \ No newline at end of file diff --git a/pages/Bookkeeping/seeBook/seeBook.js b/pages/Bookkeeping/seeBook/seeBook.js new file mode 100644 index 0000000..4ab6682 --- /dev/null +++ b/pages/Bookkeeping/seeBook/seeBook.js @@ -0,0 +1,534 @@ +// pages/apply/index.js +import * as UTIL from '../../../utils/util.js'; +import * as API from '../../../utils/API.js'; +let EVN_CONFIG = require('../../../env/env'); +const DISTRIBUTE_ENVIROMENT = 'IMGURL'; +let { + URL_PREFIX, +} = EVN_CONFIG[DISTRIBUTE_ENVIROMENT]; +const app = getApp(); +Page({ + + /** + * 页面的初始数据 + */ + data: { + isIPX: app.globalData.isIPX, + bookName:'', //付款单位 + formData:{ + accountType:'', //账户类型 + accountDate:'', //收入时间 + jieAmount:'', //收入金额 + accountName:'', //存入账户 + incomeType:'', //收入类型 + billNum:'', //单据编码 + accountSummary:'', //备注说明 + contractionId:'', //合同编码 + incomeExpensesType:1, //收支类别 + isBill:0 + }, + incomeTypeOptions:[], //收入类型选项 + incomeTypeText:'222', //收入类型显示文字 + contractionOptions:[], //付款人合同信息列表接口 + showHt:false, + payerText:'', //付款人 + sjPics:[], //收据图片列表数据 + fpPics:[], //发票图片列表数据 + qtPics:[], //其他图片列表数据 + //收入时间弹窗显隐 + srShow:false, + minDate: new Date(2021, 6, 1).getTime(), + maxDate: new Date(2023, 0, 31).getTime(), + crzhShow:false, + accountListOptions:[], //存入账户类型选项 + crlxShow:false, //收入类型弹窗显隐 + subjectOptions:[],//科目类型 + showKm:false, + fileForm:[],//上传文件列表 + fileNum:0,//附件总数 + }, + selectKM(){ + this.setData({showKm:true}) + }, + closeBoxKM(){ + this.setData({showKm:false}) + }, + onConfirmContractionKm(value){ + console.log(value); + let obj = value.detail.value; + this.setData({ + 'formData.subjectNameAll':obj.subjectNameAll, + showKm:false, + 'formData.subjectId':obj.subjectId, + }) + }, + onCancelcrlx(){ + this.setData({crlxShow:false,}) + }, + oncrlxShow(){ this.setData({crlxShow:true})}, + onCancelcrzh(){ + this.setData({crzhShow:false}) + }, + oncrzhShow(){ this.setData({crzhShow:true})}, + onConfirmcrzh(e){ + let data = e.detail.value; + this.setData({ + crzhShow:false, + 'formData.accountName':data.accountName, + 'formData.accountId':data.id, + 'formData.accountType':data.accountType + }) + }, + onsrDate(){ + this.setData({srShow:true}) + }, + onClose(){ this.setData({srShow:false})}, + onConfirm(e){ + let data = this.getNewDate(new Date(e.detail)); + this.setData({'formData.accountDate':data}) + this.setData({srShow:false}) + }, + closeBox(){ + this.setData({showHt:false}) + }, + getNewDate(date){ + //date是传过来的时间戳,注意需为13位,10位需*1000 + //也可以不传,获取的就是当前时间 + var time = new Date(date); + var year= time.getFullYear() //年 + var month = ("0" + (time.getMonth() + 1)).slice(-2); //月 + var day = ("0" + time.getDate()).slice(-2); //日 + var mydate = year + "-" + month + "-" + day; + return mydate + }, + onConfirmContraction(value){ + let obj = value.detail.value; + this.setData({ + payerText:obj.name, + showHt:false, + 'formData.contractionId':obj.id, + contractionIdID:obj.code + }) + }, + selectContraction(){ + this.setData({showHt:true}) + }, + bindPickerChange (e) { + let obj = e.detail.value; + this.setData({ + crlxShow:false, + 'formData.incomeType':obj.dictValue, + incomeTypeText:obj.dictLabel + }) + }, + inputChange(e){ + this.setData({ + [e.currentTarget.dataset.prop]: e.detail.value + }) + }, + /** + * 生命周期函数--监听页面加载 + */ + onShow: function () { + + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onLoad: function (options) { + var that = this; + that.setData({ + tableId:options.id + }) + //获取附件字典 + UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'bookkeeping_type', {method:'GET'}, {//查询附件字典 + success: (res) => { + if(res.data.length>0){ + this.setData({ + uploadOptions:res.data, + }) + let uploadList = res.data + uploadList.map( (item,index) => { + console.log(index); + let oData = { + tableId: options.id, + fileType:index+1, + bizPath:'transfer', + tableName:'t_cashier_account_flow', + method:'GET' + } + UTIL.httpRequest( API.URL_GET_FINDLIST, oData ,{//查询每个附件字典下的附件 + success: (res2) => { + console.log(res2); + let list = []; + let fileForm = that.data.fileForm?that.data.fileForm:[]; + res2.data.forEach((item2,index2)=>{ + fileForm.push({ + file: URL_PREFIX+item2.fileUrl, + fileType:index+1, + bizPath:'transfer', + tableName:'t_cashier_account_flow', + tableId:'' + }) + list.push({ + tempFilePath:URL_PREFIX+item2.fileUrl, + id:item2.id + }) + }) + that.setData({ + ["uploadOptions["+index+"].Pics"]:list, + fileForm:fileForm, + fileNum:fileForm.length + }); + console.log(that.data) + } + }) + }) + } + } + }) + + //查询收入详情 + 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); + } + }) + + UTIL.httpRequest(API.URL_GET_SUBJECTLIST , {method:'GET'}, { + success: (res2) => { + if(res2.rows.length>0){ + that.setData({ + subjectOptions:res2.rows, + }) + } + } + }) + }, + + /** + * 生命周期函数--监听页面显示 + */ + 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){ + var that = this ; + let oData = e.currentTarget.dataset; + let index = oData.index + let file = that.data.fileForm; + console.log(that.data.uploadOptions[index].Pics); + for (let i = 0; i < file.length; i++) { + const element = file[i]; + if(element.file == that.data.uploadOptions[index].Pics[oData.id].tempFilePath){ + file.splice(i,1); + } + } + that.data.uploadOptions[index].Pics.splice(oData.id,1); + // let length = this.data.form.transfers[e.currentTarget.dataset.parentsindex].fileNum - 1; + this.setData({ + // ["form.transfers["+e.currentTarget.dataset.parentsindex+"].fileNum"]:length, + [oData.status]:that.data.uploadOptions[index], + fileForm:file, + fileNum:that.data.fileNum-1 + }) + UTIL.httpRequest(API.URL_GET_GETFILEREMOVE+e.currentTarget.dataset.imgid , {method:'GET'}, { + success: (res) => { + wx.showToast({ + title: '删除成功!', + icon: 'success', + duration: 2000, + }) + } + }) + }, + back:function(){ + wx.navigateBack({ + delta: 1 + }) + }, + + uploadSjPics: function (e) { //这里是选取图片的方法 + var that = this; + var detailPics = that.data.uploadOptions[e.currentTarget.dataset.index].Pics; + 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) { + console.log(res) + let fileForm = that.data.fileForm; + let tem = that.data.uploadOptions[e.currentTarget.dataset.index].Pics?that.data.uploadOptions[e.currentTarget.dataset.index].Pics:[]; + res.tempFilePaths.forEach(item => { + fileForm.push({ + file: item, + fileType:e.currentTarget.dataset.index+1, + bizPath:'cashier', + tableName:'t_cashier_account_flow', + tableId:'' + }) + tem.push({ + tempFilePath:item + }) + }) + that.setData({ + ['uploadOptions['+e.currentTarget.dataset.index+'].Pics']:tem, + fileForm:fileForm, + fileNum:fileForm.length + }) + + }, + }) + }, + 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){ + var that = this; + 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.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 = that.data.tableId; + // let vouerId = 1; + // let updataList = [...this.data.sjPics,...this.data.fpPics,...this.data.qtPics]; + let updataList = that.data.fileForm; + console.log(updataList); + for(let i=0; i + + + 收入事项查看 + + + + + 收入单位 + {{bookName}} + +基础信息 + + + 收入时间 + + {{formData.accountDate}} + + + + 收入金额 + + + + 存入账户 + + {{formData.accountName}} + + + + 收入类型 + + {{incomeTypeText}} + + + 单据编码 + + 对方科目 + + {{formData.subjectNameAll == null ? '':formData.subjectNameAll}} + + + 备注说明 + 挂起原因 + + + + 关联合同 + + + + 付款人{{}} + + {{payerText}} + + + 合同编码 + + {{contractionIdID}} + + + + + + + + + 附件可拍照 + + + 总数 {{fileNum}}张 + + + + + + {{item.dictLabel}} + + + + + + + + + + + \ No newline at end of file diff --git a/pages/Bookkeeping/seeBook/seeBook.wxss b/pages/Bookkeeping/seeBook/seeBook.wxss new file mode 100644 index 0000000..2ee508b --- /dev/null +++ b/pages/Bookkeeping/seeBook/seeBook.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 diff --git a/pages/Bookkeeping/seeBookZC/seeBookZC.js b/pages/Bookkeeping/seeBookZC/seeBookZC.js new file mode 100644 index 0000000..bd5464a --- /dev/null +++ b/pages/Bookkeeping/seeBookZC/seeBookZC.js @@ -0,0 +1,527 @@ +// pages/apply/index.js +import * as UTIL from '../../../utils/util.js'; +import * as API from '../../../utils/API.js'; +let EVN_CONFIG = require('../../../env/env'); +const DISTRIBUTE_ENVIROMENT = 'IMGURL'; +let { + URL_PREFIX, +} = EVN_CONFIG[DISTRIBUTE_ENVIROMENT]; +const app = getApp(); +Page({ + + /** + * 页面的初始数据 + */ + data: { + isIPX: app.globalData.isIPX, + bookName:'', //付款单位 + formData:{ + accountType:'', //账户类型 + accountDate:'', //收入时间 + jieAmount:'', //收入金额 + accountName:'', //存入账户 + incomeType:'', //收入类型 + billNum:'', //单据编码 + accountSummary:'', //备注说明 + contractionId:'', //合同编码 + incomeExpensesType:1, //收支类别 + isBill:0 + }, + incomeTypeOptions:[], //收入类型选项 + incomeTypeText:'222', //收入类型显示文字 + contractionOptions:[], //付款人合同信息列表接口 + showHt:false, + payerText:'', //付款人 + sjPics:[], //收据图片列表数据 + fpPics:[], //发票图片列表数据 + qtPics:[], //其他图片列表数据 + //收入时间弹窗显隐 + srShow:false, + minDate: new Date(2021, 6, 1).getTime(), + maxDate: new Date(2023, 0, 31).getTime(), + crzhShow:false, + accountListOptions:[], //存入账户类型选项 + crlxShow:false, //收入类型弹窗显隐 + subjectOptions:[],//科目类型 + showKm:false, + fileForm:[],//上传文件列表 + fileNum:0,//附件总数 + }, + onCancelcrlx(){ + this.setData({crlxShow:false,}) + }, + oncrlxShow(){ this.setData({crlxShow:true})}, + onCancelcrzh(){ + this.setData({crzhShow:false}) + }, + oncrzhShow(){ this.setData({crzhShow:true})}, + onConfirmcrzh(e){ + let data = e.detail.value; + this.setData({ + crzhShow:false, + 'formData.accountName':data.accountName, + 'formData.accountId':data.id, + 'formData.accountType':data.accountType + }) + }, + onsrDate(){ + this.setData({srShow:true}) + }, + onClose(){ this.setData({srShow:false})}, + onConfirm(e){ + let data = this.getNewDate(new Date(e.detail)); + this.setData({'formData.accountDate':data}) + this.setData({srShow:false}) + }, + closeBox(){ + this.setData({showHt:false}) + }, + closeBoxKM(){ + this.setData({showKm:false}) + }, + getNewDate(date){ + //date是传过来的时间戳,注意需为13位,10位需*1000 + //也可以不传,获取的就是当前时间 + var time = new Date(date); + var year= time.getFullYear() //年 + var month = ("0" + (time.getMonth() + 1)).slice(-2); //月 + var day = ("0" + time.getDate()).slice(-2); //日 + var mydate = year + "-" + month + "-" + day; + return mydate + }, + onConfirmContraction(value){ + let obj = value.detail.value; + this.setData({ + payerText:obj.name, + showHt:false, + 'formData.contractionId':obj.id, + contractionIdID:obj.code + }) + }, + onConfirmContractionKm(value){ + console.log(value); + let obj = value.detail.value; + this.setData({ + 'formData.subjectNameAll':obj.subjectNameAll, + showKm:false, + 'formData.subjectId':obj.subjectId, + }) + }, + selectContraction(){ + this.setData({showHt:true}) + }, + selectKM(){ + this.setData({showKm:true}) + }, + bindPickerChange (e) { + let obj = e.detail.value; + this.setData({ + crlxShow:false, + 'formData.expenditureType':obj.dictValue, + expenditureTypeText:obj.dictLabel + }) + }, + inputChange(e){ + this.setData({ + [e.currentTarget.dataset.prop]: e.detail.value + }) + }, + /** + * 生命周期函数--监听页面加载 + */ + onShow: function () { + + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onLoad: function (options) { + console.log(options); + var that = this; + that.setData({ + tableId:options.id + }) + //获取附件字典 + UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'bookkeeping_type', {method:'GET'}, {//查询附件字典 + success: (res) => { + if(res.data.length>0){ + this.setData({ + uploadOptions:res.data, + }) + let uploadList = res.data + uploadList.map( (item,index) => { + console.log(index); + let oData = { + tableId: options.id, + fileType:index+1, + bizPath:'transfer', + tableName:'t_cashier_account_flow', + method:'GET' + } + UTIL.httpRequest( API.URL_GET_FINDLIST, oData ,{//查询每个附件字典下的附件 + success: (res2) => { + console.log(res2); + let list = []; + let fileForm = that.data.fileForm?that.data.fileForm:[]; + res2.data.forEach((item2,index2)=>{ + fileForm.push({ + file: URL_PREFIX+item2.fileUrl, + fileType:index+1, + bizPath:'transfer', + tableName:'t_cashier_account_flow', + tableId:'' + }) + list.push({ + tempFilePath:URL_PREFIX+item2.fileUrl, + id:item2.id + }) + }) + that.setData({ + ["uploadOptions["+index+"].Pics"]:list, + fileForm:fileForm, + fileNum:fileForm.length + }); + console.log(that.data) + } + }) + }) + } + } + }) + + //查询收入详情 + UTIL.httpRequest(API.URL_GET_FLOWGET + options.id , {method:'GET'}, { + success: (res) => { + //获取收入类型状态expenditureTypeText + UTIL.httpRequest(API.URL_GET_GETDICTTYPE + 'capital_expenditure_type', {method:'GET'}, { + success: (res2) => { + if(res2.data.length>0){ + that.setData({ + expenditureTypeOptions:res2.data, + }) + that.setData({ + formData:res.data, + contractionIdID:res.data.code, + expenditureTypeText:UTIL.getTransform(res.data.expenditureType,res2.data) + }) + } + } + }) + console.log(res); + } + }) + + UTIL.httpRequest(API.URL_GET_SUBJECTLIST , {method:'GET'}, { + success: (res2) => { + if(res2.rows.length>0){ + that.setData({ + subjectOptions:res2.rows, + }) + } + } + }) + + }, + + /** + * 生命周期函数--监听页面显示 + */ + 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){ + var that = this ; + let oData = e.currentTarget.dataset; + let index = oData.index + let file = that.data.fileForm; + console.log(that.data.uploadOptions[index].Pics); + for (let i = 0; i < file.length; i++) { + const element = file[i]; + if(element.file == that.data.uploadOptions[index].Pics[oData.id].tempFilePath){ + file.splice(i,1); + } + } + that.data.uploadOptions[index].Pics.splice(oData.id,1); + // let length = this.data.form.transfers[e.currentTarget.dataset.parentsindex].fileNum - 1; + this.setData({ + // ["form.transfers["+e.currentTarget.dataset.parentsindex+"].fileNum"]:length, + [oData.status]:that.data.uploadOptions[index], + fileForm:file, + fileNum:that.data.fileNum-1 + }) + UTIL.httpRequest(API.URL_GET_GETFILEREMOVE+e.currentTarget.dataset.imgid , {method:'GET'}, { + success: (res) => { + wx.showToast({ + title: '删除成功!', + icon: 'success', + duration: 2000, + }) + } + }) + + }, + back:function(){ + wx.navigateBack({ + delta: 1 + }) + }, + + uploadSjPics: function (e) { //这里是选取图片的方法 + var that = this; + var detailPics = that.data.uploadOptions[e.currentTarget.dataset.index].Pics; + 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) { + console.log(res) + let fileForm = that.data.fileForm; + let tem = that.data.uploadOptions[e.currentTarget.dataset.index].Pics?that.data.uploadOptions[e.currentTarget.dataset.index].Pics:[]; + res.tempFilePaths.forEach(item => { + fileForm.push({ + file: item, + fileType:e.currentTarget.dataset.index+1, + bizPath:'cashier', + tableName:'t_cashier_account_flow', + tableId:'' + }) + tem.push({ + tempFilePath:item + }) + }) + that.setData({ + ['uploadOptions['+e.currentTarget.dataset.index+'].Pics']:tem, + fileForm:fileForm, + fileNum:fileForm.length + }) + + }, + }) + }, + 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){ + var that = this; + 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.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); + console.log(that.data.fileForm); + UTIL.httpRequest(API.URL_POST_GERFLOWEDIT,data,{ + success: (res) => { + if(res.code == 200){ + let vouerId = that.data.tableId; + // let vouerId = 1; + // let updataList = [...this.data.sjPics,...this.data.fpPics,...this.data.qtPics]; + let updataList = that.data.fileForm; + for(let i=0; i + + + 支出事项查看 + + + + + 收入单位 + {{bookName}} + +基础信息 + + + 支出时间 + + {{formData.accountDate}} + + + + 支出金额 + + + + 账户名称 + + {{formData.accountName}} + + + + 支出类型 + + {{expenditureTypeText}} + + + 单据编码 + + + 对方科目 + + {{formData.subjectNameAll == null ? '':formData.subjectNameAll}} + + + + 备注说明 + 挂起原因 + + + + 关联合同 + + + + 付款人{{}} + + {{payerText}} + + + 合同编码 + + {{contractionIdID}} + + + + + + + + + 附件可拍照 + + + 总数 {{fileNum}}张 + + + + + + {{item.dictLabel}} + + + + + + + + + + diff --git a/pages/Bookkeeping/seeBookZC/seeBookZC.wxss b/pages/Bookkeeping/seeBookZC/seeBookZC.wxss new file mode 100644 index 0000000..2ee508b --- /dev/null +++ b/pages/Bookkeeping/seeBookZC/seeBookZC.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 diff --git a/pages/Bookkeeping/update/update.js b/pages/Bookkeeping/update/update.js index 906968d..4ab6682 100644 --- a/pages/Bookkeeping/update/update.js +++ b/pages/Bookkeeping/update/update.js @@ -405,6 +405,7 @@ Page({ }, swichAccounting:function(e){ + var that = this; let codeStr = e.currentTarget.dataset.code; let formDataObj = this.data.formData; if(formDataObj.jieAmount==''){ //收入金额 @@ -427,9 +428,11 @@ Page({ UTIL.httpRequest(API.URL_POST_GERFLOWEDIT,data,{ success: (res) => { if(res.code == 200){ - let vouerId = res.data; + let vouerId = that.data.tableId; // let vouerId = 1; - let updataList = [...this.data.sjPics,...this.data.fpPics,...this.data.qtPics]; + // let updataList = [...this.data.sjPics,...this.data.fpPics,...this.data.qtPics]; + let updataList = that.data.fileForm; + console.log(updataList); for(let i=0; i - 收入登记 + 收入登记修改 @@ -79,7 +79,7 @@ 对方科目 - 请选择对方科目 + 请选择对方科目 {{formData.subjectNameAll}} diff --git a/pages/Bookkeeping/updateZC/update.js b/pages/Bookkeeping/updateZC/update.js index 421c61c..bd5464a 100644 --- a/pages/Bookkeeping/updateZC/update.js +++ b/pages/Bookkeeping/updateZC/update.js @@ -425,7 +425,6 @@ Page({ // let vouerId = 1; // let updataList = [...this.data.sjPics,...this.data.fpPics,...this.data.qtPics]; let updataList = that.data.fileForm; - console.log(updataList); for(let i=0; i 支出金额 - + 账户名称 @@ -80,7 +80,7 @@ 对方科目 - 请选择对方科目 + 请选择对方科目 {{formData.subjectNameAll}} diff --git a/pages/apply/approval/approval.js b/pages/apply/approval/approval.js index f2900a9..a2e8017 100644 --- a/pages/apply/approval/approval.js +++ b/pages/apply/approval/approval.js @@ -40,13 +40,29 @@ Page({ console.log(JSON.parse(options.form)); if(options.type == 'template'){ let list = []; + let array = JSON.parse(options.applyOptions).approvalTemplateDetailList; console.log(JSON.parse(options.applyOptions)); - JSON.parse(options.applyOptions).approvalTemplateDetailList.map(rr => { - list.push(rr.userId+"") - }) - this.setData({ - templateDetailList:JSON.parse(options.applyOptions).approvalTemplateDetailList, - result:list + UTIL.httpRequest(API.URL_GET_GETINFO, {method:'GET'}, { + success: (res2) => { + JSON.parse(options.applyOptions).approvalTemplateDetailList.map((rr,index )=> { + console.log(rr); + console.log(JSON.parse(options.applyOptions).approvalTemplateDetailList); + console.log(rr.nickName == res2.user.nickName); + console.log(index); + if(rr.nickName == res2.user.nickName){ + array.splice(index,1); + }else{ + list.push(rr.userId+"") + } + }) + array.map((rrr,index)=>{ + array.name = index+1 + }) + this.setData({ + templateDetailList:array, + result:list + }) + } }) }else{ // this.townList(); @@ -438,6 +454,14 @@ Page({ }, submit:function(){ let _this = this + if(this.data.templateDetailList.length==0){ + wx.showToast({ + title: "请选择审批人", + duration: 2000, + icon:"error" + }) + return; + } let data={ approvalTemplate:{ name:this.data.temName, diff --git a/pages/apply/approval/approval.wxml b/pages/apply/approval/approval.wxml index 08cda93..ae16814 100644 --- a/pages/apply/approval/approval.wxml +++ b/pages/apply/approval/approval.wxml @@ -110,9 +110,10 @@ - + + + + 为使用农燊云微信小程序服务(以下简称“本服务”或“小程序服务”),您应当阅读并遵守《农燊云微信小程序用户协议》,请务必审慎阅读、充分理解各条款内容,特别是免除或限制责任的相应条款,以及开通或使用某项服务的单独协议,并选择接受或不接受。 + 除非您已阅读并接受本条款所有条款,否则您无权使用农燊云微信小程序服务。您对本服务的登录、查看、发布信息等行为即视为已阅读并同意本条款的约束。 + 如果您未满18周岁,请在法定监护人的陪同下阅读本您协议,并特别注意未成年人使用条款。 + 一、协议的范围 + 1.1本条款是用户(以下简称“您”)与农燊云之间关于用户使用小程序服务所订立的协议。“用户”是指注册、登录、使用微信小程序的个人或组织;“其他用户”是指包括其他微信小程序用户、微信公众账号用户和微信用户等除您本人外与小程序服务相关的用户。 + 1.2本服务是指农燊云根据本协议向您提供的服务,包括协助您交接和管理租赁车辆等。我们会不断丰富您使用本服务的终端、形式等,如您已注册使用一种形式的服务,则可以以同一账号使用其他服务,本协议自动适用于您对所有版本的软件和服务的使用。 + 1.3提供本服务的微信小程序的所有权和全部的使用权均归农燊云所有,您开通后仅授权使用部分功能,具体以产品展示的为准。 + 1.4小程序属于微信公众账号,在不与本协议冲突的情况下,您应遵守《微信公众平台服务协议》、《腾讯微信软件许可及服务协议》等关于微信公众账号的其他相关规定。 + 1.5本协议内容包括本协议正文及所有我们已经发布或将来可能发布的隐私权政策、各项政策、规则、声明、通知、警示、提示、说明(以下统称为“用户规则”)。前述用户规则为本协议不可分割的补充部分,与本协议具有同等法律效力。如您使用农燊云产品及服务,视为您同意上述补充部分。 + + 二、小程序注册与审核 + + 2.1账号注册 + 2.1.1您在使用本服务前需要先进行注册和认证。您确认,在您开始注册使用农燊云产品及服务前,您应当是具备完全民事权利能力和与所从事的民事行为相适应的行为能力的自然人、法人或其他组织。若您不具备前述主体资格,请勿使用服务,否则您及您的监护人应承担因此而导致的一切后果,且我们有权注销(永久冻结)您的账户,并向您及您的监护人索偿。 + 2.1.2当您按照注册页面提示填写信息、阅读并同意本协议且完成全部注册程序后,您可获得农燊云平台账户并成为产品用户,即有权使用农燊云平台并获得相应服务。农燊云平台只允许每位用户使用一个主账户,但您可以在授权范围内获得多个子账号。 + 2.1.3该账户是您通过农燊云平台寻求并获得服务的唯一有效身份证明,请您妥善保管账号和密码。为使您更好地使用农燊云平台的各项服务,保障您的账户安全,本小程序主体可要求您按本协议、用户规则及我国法律规定完成实名认证。 + 2.1.4为维护小程序的健康运营,您应当准确完整地提供您的最新信息(包括您的名称及电子邮件地址、联系电话、联系地址等)。并且您承诺,在使用本服务的过程中提交和发布的信息均是真实、合法的,因不实信息导致农燊云或者第三方合法权益受损的,由您独立承担全部责任。 + 2.2账号安全 + 2.2.1在您成功注册后,我们将根据您的身份要素识别您的身份和授权登录。“身份要素”包括但不限于您的账户名称、密码、短信校验码、手机号码、身份证件号码及人脸信息、眼纹信息。您同意基于不同的终端以及您的使用习惯,我们可能采取不同的验证措施识别您的身份。 + 2.2.2如您发现账号遭他人非法使用,应立即通知本小程序主体。因黑客行为或您自身保管疏忽导致账号、密码遭他人非法使用所发生的一切责任,均应由您本人承担,本小程序主体不承担任何责任。 + 2.2.3您注册成功后,农燊云将给予您一个帐号,并由您自行设置相应密码,任何该账户项下的预订及支付等行为均视为您本人的操作。您应对您账户项下的所有行为结果(包括但不限于授权、绑定、结算)负责。 + + 三、服务及规范 + + 3.1服务内容 + 3.1.1本服务内容包含【支持通讯录、车辆调度、车辆管理、账单管理、业务信息推荐及】等技术功能,这些功能服务可能根据用户需求的变化,随着因服务版本不同、或服务提供方的单方判断而被优化或修改,或因定期、不定期的维护而暂缓提供。 + 3.1.2农燊云有权自行决定对服务或服务任何部分及其相关功能、应用软件进行变更、升级、修改、转移,并有权决定以适当的方式进行公示或通知。 + 3.2服务费用 + 3.2.1农燊云平台向您提供的服务目前是免费的。我们保留日后就程序及/或服务向您收费的权利。如果我们决定收取此类费用,我们会采取合理途径并以足够合理的期限提前通过法定程序并以本协议约定的方式通知您,确保您有充分选择的权利。 + 3.2.2您在使用小程序的过程中与第三方发生的费用结算,农燊云仅为您使用微信小程序服务提供技术支持,本协议的签署不代表农燊云成为您在汽车租赁过程中的参与者。农燊云不对基于服务而产生的任何行为担保、许可或向任何第三人承担共同责任。 + 3.3服务使用规则 + 3.3.1您在本服务中或通过本服务所传送、发布的任何内容并不反映或代表,也不得被视为反映或代表农燊云的观点、立场或政策,农燊云对此不承担任何责任。 + 3.3.2您不得利用农燊云账号或本服务进行如下行为:\n(1)提交、发布虚假信息,或盗用他人头像或资料,冒充、利用他人名义的;\n(2)强制、诱导其他您关注、点击链接页面或分享信息的;\n(3)虚构事实、隐瞒真相以误导、欺骗他人的;\n(4)利用技术手段批量建立虚假账号的;\n(5)利用平台账号或本服务从事任何违法犯罪活动的;\n(6)制作、发布与以上行为相关的方法、工具,或对此类方法、工具进行运营或传播,无论这些行为是否为商业目的;\n(7)其他违反法律法规规定、侵犯其他您合法权益、干扰农燊云正常运营或农燊云未明示授权的行为。 + 3.3.3农燊云有权查阅您的注册、交易数据及交易行为,如发现可能存在违反法律法规、本协议或相关规则的情形或其他任何问题,农燊云有权直接做出其认为合理的处理,包括但不限于通知修改、删除相关信息,停止被协议项下的服务内容等。前述约定不代表农燊云应对您的行为承担任何连带责任,您应对此产生的法律责任独立负责。 + + 四、法律责任 + + 4.1用户责任 + 4.1.1您应遵守《微信公众平台服务协议》中关于“法律责任”的约定,除非该等约定与本协议存在冲突。 + 4.1.2如果我们发现或收到他人举报或投诉您违反本协议约定的,我们有权不经通知随时对相关内容,包括但不限于对您的资料、聊天记录进行审查、删除,并视情节轻重对违规账号处以包括但不限于警告、账号封禁、设备封禁、功能封禁的处罚,且通知您处理结果。 + 4.1.3您理解并同意,因您违反相关法律法规或本协议约定引发的任何后果,均由您独立承担责任、赔偿损失,与我们无关。如侵害到农燊云或他人权益的,您须自行承担全部责任和赔偿一切损失。 + 4.2平台责任本小程序主体保证并承诺,本小程序主体系合法成立的法人,依据本协议约定向您提供相关网络服务,并会参考您提出的建议不断改善我们的服务,努力提高您的使用满意度。 + 4.3责任限制 + 4.3.1本服务仅为您与第三方之间的汽车租赁行为而提供协助,农燊云并非其中的参与者,对汽车租赁过程中产生的一切纠纷不承担任何责任。 + 4.3.2您理解并确认,我们需要定期或不定期地对农燊云平台或相关的设备进行检修或者维护,且互联网连接能力受到全球网路稳定性、技术状态、使用者所在地与使用的网路、电力供应、政府管制、计算机病毒、黑客攻击等既存不确定性的限制,如因此类情况而造成服务在合理时间内的中断,我们无需为此承担任何责任,但会事先进行通告。 + 4.3.3您理解并同意,在使用本服务的过程中,可能会遇到不可抗力等风险因素,使本服务发生中断。不可抗力是指不能预见、不能克服并不能避免且对一方或双方造成重大影响的客观事件,包括但不限于自然灾害如洪水、地震、瘟疫流行和风暴等以及社会事件如战争、动乱、政府行为等。出现上述情况时,农燊云将努力在第一时间与相关单位配合,及时进行修复,但是由此给您造成的损失农燊云在法律允许的范围内免责。 + 4.3.4农燊云不保证为向您提供便利而设置的外部链接的准确性和完整性。同时,对于该等外部链接指向的不由农燊云实际控制的任何网页上的内容,农燊云不承担任何责任。 + 4.4知识产权声明 + 4.4.1农燊云在本服务中提供的内容(包括但不限于网页、文字、图片、音频、视频、图表等)的知识产权归农燊云所有,您在使用本服务中所产生的内容的知识产权归您或相关权利人所有。 + 4.4.2除另有特别声明外,农燊云提供本服务时所依托软件的著作权、专利权、代码技术及其他知识产权均归农燊云所有。 + + 五、隐私政策 + + 5.1保护用户隐私是的农燊云一项基本政策,农燊云保证不对外公开或向第三方提供您的注册资料及您在使用网络服务时存储在农燊云的非公开内容,但下列情况除外:\n(1)事先获得用户的明确授权;\n(2)根据有关的法律法规要求;\n(3)按照相关政府主管部门的要求;\n(4)为维护社会公众的利益;\n(5)为维护农燊云的合法权益。 + 5.2当农燊云与第三方合作向用户提供相关的网络服务,在此情况下,如该第三方允诺严格承担与农燊云同等的保护用户隐私的责任,则视为您授权农燊云将包含个人注册资料在内的相关信息仅提供给该等第三方。 + + 六、协议解除和终止 + + 6.1如有下列情形的,我们有权单方面解除本协议,终止向您提供服务:\n(1)您为了非法目的而使用本服务的;\n(2)您使用本服务损害农燊云或其他第三方合法权益的;\n(3)您违反法律法规或本协议约定或违反与腾讯的其他约定的;\n(4)根据法律规定平台用户应提交真实信息,而您提供的资料不真实、或未能提供合理证明以证明其真实性的; + 6.2您同意,除上述所述情形外,农燊云有权根据风险及自身业务运营情况需要,随时终止向您提供本服务及接口的部分及全部,因此导致您无法使用服务或服务受到限制的,农燊云不构成违约,亦不承担任何法律责任。 + 6.3您停用该服务,或农燊云终止向您提供本协议项下的服务后,农燊云不再为您保留原账户中与之相关的任何信息。 + 6.4您使用本服务即视为您已阅读并同意受本协议的约束。农燊云小程序主体有权在必要时修改本协议。您可以在相关服务页面查阅最新版本的协议。本协议变更后,如果您继续使用微信小程序服务,即视为您已接受修改后的协议。如果您不接受修改后的协议,应当停止使用小程序服务。 + + 七、违约责任如 + + 如您因为使用本服务给农燊云造成损失的或者给第三方造成损失的,该损失(包括为维权而产生的合理支出)由您来承担。 + + 八、法律管辖 + + 8.1如双方就本协议内容或其执行发生任何争议,双方应友好协商解决;协商不成时,任何一方均可向农燊云所在地的人民法院提起诉讼。 + 8.2本协议的成立、生效、履行、解释及纠纷解决,适用中华人民共和国大陆地区法律(不包括冲突法)8.3本协议条款无论因何种原因部分无效或不可执行,其余条款仍有效,对双方都具有约束力。 + + + \ No newline at end of file diff --git a/pages/user/login/login.wxss b/pages/user/login/login.wxss index b7ebd37..59c4a2c 100644 --- a/pages/user/login/login.wxss +++ b/pages/user/login/login.wxss @@ -59,4 +59,9 @@ } .container .quick-login .authorization text{ margin-left: -.5vw; +} +scroll-view text{ + display: block; + line-height: 24px; + text-indent: 2rem; } \ No newline at end of file