diff --git a/App.vue b/App.vue index 2aae610..398f6af 100644 --- a/App.vue +++ b/App.vue @@ -1,32 +1,46 @@ + view { + box-sizing: border-box; + } + \ No newline at end of file diff --git a/api/oaUser.js b/api/oaUser.js index 68e6052..ac36c55 100644 --- a/api/oaUser.js +++ b/api/oaUser.js @@ -20,6 +20,11 @@ export const userCenter = (data) => oahttp.get('/user/center', data) */ export const userInfo = (data) => oahttp.get('/user/info', data) +/** + * 修改密码 + */ +export const changePassword = (data) => oahttp.post('/user/changePassword', data) + /** * 新增人员 */ diff --git a/api/task.js b/api/task.js index 5b58e3c..6ca0a7b 100644 --- a/api/task.js +++ b/api/task.js @@ -5,4 +5,7 @@ import oahttp from "@/utils/oahttp.js"; */ export const taskLists = (data) => oahttp.get('/task/lists', data) - +/** + * 任务:更新档案列表 + */ +export const taskInformationgist = (data) => oahttp.get('/task/informationg_list', data) diff --git a/components/company/company.vue b/components/company/company.vue index 96c0338..7ee339d 100644 --- a/components/company/company.vue +++ b/components/company/company.vue @@ -1,126 +1,178 @@ \ No newline at end of file diff --git a/components/companyFinance/companyFinance.vue b/components/companyFinance/companyFinance.vue index 098a5b8..e7a3f50 100644 --- a/components/companyFinance/companyFinance.vue +++ b/components/companyFinance/companyFinance.vue @@ -1,23 +1,23 @@ @@ -55,29 +78,27 @@ width: 92vw; height: AUTO; background-color: #fff; - border-radius: 1vw; - position: relative; - padding: 2vh 2vw; - margin: 0 0 20rpx 0; + overflow: hidden; + border-radius: 2vw; + box-sizing: border-box; + margin-bottom: 30rpx; - .custom-style { - border: 0; - width: 20vw; - position: absolute; - top: 0; - right: 0; - height: 4vh; - border-radius: 0 7px 0 7px; + .tit { + border-bottom: 3px solid #F5F5F5; + font-size: 30rpx; + font-weight: bold; + padding: 20rpx 15rpx; } - P { - font-size: 32rpx; - font-weight: bold; - } + .content { + padding: 20rpx 15rpx; - .address { - font-weight: bold; - margin: 15rpx 0; + .address { + margin: 10rpx 0; + // white-space: nowrap; + // overflow: hidden; + // text-overflow: ellipsis; + } } } diff --git a/components/logistiComptent/logistiCard/logistiCard.vue b/components/logistiComptent/logistiCard/logistiCard.vue index a3eb5f1..b95c2bc 100644 --- a/components/logistiComptent/logistiCard/logistiCard.vue +++ b/components/logistiComptent/logistiCard/logistiCard.vue @@ -1,84 +1,233 @@ diff --git a/components/task/index.vue b/components/task/index.vue index 3d85245..97c8660 100644 --- a/components/task/index.vue +++ b/components/task/index.vue @@ -3,27 +3,31 @@ - + - - + + - - + + \ No newline at end of file diff --git a/pages/logistics/index.vue b/pages/logistics/index.vue index db1f5fb..43949d7 100644 --- a/pages/logistics/index.vue +++ b/pages/logistics/index.vue @@ -1,50 +1,56 @@ \ No newline at end of file diff --git a/pages/logistics/logisticDetil.vue b/pages/logistics/logisticDetil.vue index 7feb663..3bb2157 100644 --- a/pages/logistics/logisticDetil.vue +++ b/pages/logistics/logisticDetil.vue @@ -3,144 +3,174 @@ + + - -

订单号:{{goodsDetil.logistics.order_sn}}

- 收货时间 :  {{goodsDetil.record[0].create_time}} - - - - - - 收货时间 - - - {{goodsDetil.record[0].create_time}} - - - - - 收获详情 - - +

订单编号:  {{goodsDetil.logistics.order_sn}} +

+

+ 订单编号:  {{goodsDetil.logistics.order_sn}}

+ + + + + + 收货时间 + - {{goodsDetil.logistics.user_address}} - - - {{goodsDetil.logistics.user_name||"顾客电话"}} - - - {{goodsDetil.record[0].create_time}} + {{goodsDetil.record[2].create_time}} - - - - - 取货详情 - - + + + 收获详情 + - {{goodsDetil.logistics.shop_address||"商家地址"}} - - - {{goodsDetil.logistics.shop_phone||"商家电话"}} - - - {{goodsDetil.record[1].create_time}} - - - - - - 订单详情 - - - - {{item.content}} + {{goodsDetil.logistics.receiver_address}} - {{item.create_time}} + {{ fuzzyName(goodsDetil.logistics.receiver_name) ||"顾客姓名"}}:  {{goodsDetil.logistics.receiver_phone||"顾客电话"}} + + + {{goodsDetil.record[2].create_time}} + + + + + + + 取货详情 + + + + {{goodsDetil.logistics.shop_address||"商家地址"}} + + + {{goodsDetil.logistics.shop_name||"商家电话"}} + :  {{goodsDetil.logistics.shop_phone||"商家电话"}} + + + {{goodsDetil.record[1].create_time}} + + + + + + + + + + 物流信息 + + + + + + + + + + + 商品信息 + + + + {{item.goods_name}} + X{{item.product_num}}{{item.goods_unit}} - - - 商品信息 - - - - {{item.goods_name}} - X{{item.product_num}}{{item.goods_unit}} - - - - - - - - - 用户名称 - - - {{goodsDetil.logistics.user_name}} - - - - - 收货地址 - - + + + + + 用户名称 + - {{goodsDetil.logistics.user_address}} + {{ fuzzyName(goodsDetil.logistics.receiver_name)}} - - - - 物流信息 - - - - {{item.content}} + + + 联系方式 + + + {{goodsDetil.logistics.receiver_phone}} + + + + + 收货地址 + + - {{item.create_time}} + {{goodsDetil.logistics.receiver_address}} - - - - 商品信息 - - - {{item.goods_name}} - X{{item.product_num}}{{item.goods_unit}} + + 物流信息 + + + + + + + + + + + + + + + 商品信息 + + + + {{item.goods_name}} + X{{item.product_num}}{{item.goods_unit}} + + + + + + + + 共计{{goodsDetil.product_count}}件 + + + + 货物送达 + + + + + + + + + + + - - 共计{{goodsDetil.product_count}}件商品 - - 已送达 - - - - - - - @@ -164,14 +194,30 @@ showLoading: true, goodsDetil: undefined, flag: 0, + take_code: "" + } + }, + computed: { + record() { + return this.goodsDetil.record.reverse() } }, methods: { + callFn(num) { + uni.makePhoneCall({ + phoneNumber: num + }); + // console.log(9999) + }, + fuzzyName(name) { + let length = name.length; + let fuzzyChars = "*".repeat(length - 1); + return name[0] + fuzzyChars; + }, confirm() { - let id = JSON.parse(uni.getStorageSync('USER_INFO')).id + if (!this.take_code) return doneDelivery({ - user_id: id, - // user_id: id, + take_code: this.take_code, logistics_id: this.goodsDetil.logistics.id }).then(res => { this.showToast() @@ -192,13 +238,11 @@ }, }, onLoad(options) { - // console.log(options.id) getDetil({ logistics_id: options.id }).then(res => { this.showLoading = false this.goodsDetil = res.data - console.log(this.goodsDetil) }) }, @@ -208,33 +252,46 @@ \ No newline at end of file diff --git a/pages/logistics/t.vue b/pages/logistics/t.vue deleted file mode 100644 index 1d6def0..0000000 --- a/pages/logistics/t.vue +++ /dev/null @@ -1,311 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/logistics/te.vue b/pages/logistics/te.vue new file mode 100644 index 0000000..967a0ce --- /dev/null +++ b/pages/logistics/te.vue @@ -0,0 +1,347 @@ + + + + + \ No newline at end of file diff --git a/pages/oaHome/oaHome.vue b/pages/oaHome/oaHome.vue index b045783..2a82232 100644 --- a/pages/oaHome/oaHome.vue +++ b/pages/oaHome/oaHome.vue @@ -2,40 +2,46 @@ - + - + - - - + + + + + 工作证: {{ myOaInfo.nickname }} + 身份: {{ myOaInfo.admin_id ? "超级管理员" : "普通用户" }} 立即登录 - - 登录后可查看更多 - + 登录后可查看更多 - + - 电话:{{myOaInfo.account}}
- 公司:{{ myOaInfo.company.company_name }}
- 公司类型:{{ myOaInfo.company.company_type_name }}
+ + 电话:{{ myOaInfo.account }}
+ 公司:{{ + myOaInfo.company.company_name + }}
+ 公司类型:{{ + myOaInfo.company.company_type_name + }}
-
+
-->
- + - + 公告列表 - 更多 + 更多 + - - - {{ item.title }} + + + + + {{item.create_time.substring(0, 10)}} + {{ item.title }} + + @@ -68,10 +79,21 @@ + + + 工作管理 + 更多 + + + + + + + - - + + {{ item.text }} @@ -81,7 +103,8 @@ 配送信息 - 更多 + 更多 + @@ -90,10 +113,9 @@ - - + + - @@ -232,7 +254,7 @@ // }) // }, async getOrderList() { - let id = JSON.parse(uni.getStorageSync('USER_INFO')).id + let id = JSON.parse(uni.getStorageSync('USER_INFO')).id || "" let res = await getList({ courier_id: id // courier_id: 167 @@ -258,6 +280,11 @@ let arr = oaHomeData.filter(item => !item.captain); //过滤掉普通用户专属页面 this.oaHomeData = arr; } + if (this.$store.state.app.userInfo?.company?.company_type_name == '平台公司') { + this.oaHomeData = this.oaHomeData.filter(item => { + return item.text == '人员管理' ? false : true; + }) + } // 判断是否需要显示更多按钮 if (this.oaHomeData >= 8) { this.oaHomeData[7] = this.oaHomeData[this.oaHomeData.length - 1]; @@ -381,9 +408,22 @@ width: 100%; // background-color: $theme-oa-color; margin-bottom: 133.33rpx; - background-image: url('../../static/img/home/home_bg.png'); - background-repeat: no-repeat; - background-size: 100% 100%; + background-color: $theme-oa-color; + border-radius: 0 0 30rpx 30rpx; + + .head_img { + background-color: #FF7C32; + width: 100%; + border-radius: 70rpx 50rpx 50rpx 70rpx; + height: 130.28rpx; + display: flex; + justify-content: space-between; + padding-right: 50rpx; + line-height: 130rpx; + color: white; + font-size: 30rpx; + // font-we + } .my_info { .mesg_box { @@ -428,7 +468,7 @@ bottom: -101.75rpx; transform: translate(-50%); width: 694.74rpx; - background: #FFFFFF; + background: #ffffff; border-radius: 12px; padding: 28.07rpx; display: flex; @@ -455,17 +495,26 @@ text-overflow: ellipsis; /* 使用省略号代表被截断的文本 */ width: 580rpx; - /* 设置元素宽度,根据需要进行调整 */ - &::before { - content: '公告'; + /* 设置元素宽度,根据需要进行调整 */ + .text_time { display: inline-block; - color: #FF8C1A; - padding: 2px 8px; - border-radius: 4px; - border: 1px solid #FF8C1A; - margin-right: 14.04rpx; + background-color: #ff8c1a; + color: white; + padding: 5rpx 10rpx; + margin-right: 10rpx; + border-radius: 15rpx; } + + // &::before { + // content: "公告"; + // display: inline-block; + // color: #ff8c1a; + // padding: 2px 8px; + // border-radius: 4px; + // border: 1px solid #ff8c1a; + // margin-right: 14.04rpx; + // } } } @@ -538,7 +587,7 @@ width: 694rpx; height: 140rpx; padding: 28rpx; - background: #FFFFFF; + background: #ffffff; border-radius: 21rpx 21rpx 21rpx 21rpx; display: flex; flex-direction: column; @@ -547,19 +596,18 @@ .title { font-size: 28rpx; font-weight: 500; - color: #000000CC; + color: #000000cc; line-height: 35rpx; } .tips { font-size: 25rpx; font-weight: 400; - color: #333333FF; + color: #333333ff; line-height: 35rpx; } } - .task_title { font-size: 25rpx; font-weight: 400; @@ -571,11 +619,9 @@ } } - - .task_list { height: 196.49rpx; - border-bottom: 1px solid #CCCCCC; + border-bottom: 1px solid #cccccc; padding: 21.05rpx 0; display: flex; flex-direction: column; @@ -583,20 +629,20 @@ .title { .tag { - color: #F24848; + color: #f24848; font-size: 24.56rpx; padding: 0 7.02rpx; margin-right: 14.04rpx; - background: #FFE4E4; + background: #ffe4e4; border-radius: 4px; } .tag1 { - color: #3274F9; + color: #3274f9; font-size: 24.56rpx; padding: 0 7.02rpx; margin-right: 14.04rpx; - background: #E4EDFF; + background: #e4edff; border-radius: 4px; } @@ -618,18 +664,18 @@ } .take1 { - color: #47B347; - background: #DFFCDF; + color: #47b347; + background: #dffcdf; } .take2 { - color: #3274F9; - background: #E4EDFF; + color: #3274f9; + background: #e4edff; } .take3 { color: #999999; - background: #F5F5F5; + background: #f5f5f5; } } @@ -666,17 +712,17 @@ .text { font-size: 28rpx; font-weight: 500; - color: #FFFFFF; + color: #ffffff; } .btn { width: 158rpx; height: 60rpx; - background: #3274F9; + background: #3274f9; border-radius: 30rpx 30rpx 30rpx 30rpx; font-size: 28rpx; font-weight: 500; - color: #FFFFFF; + color: #ffffff; display: flex; justify-content: center; align-items: center; diff --git a/pages/oaLogin/oaLogin.vue b/pages/oaLogin/oaLogin.vue index f0c3172..af45f4a 100644 --- a/pages/oaLogin/oaLogin.vue +++ b/pages/oaLogin/oaLogin.vue @@ -1,267 +1,328 @@ \ No newline at end of file diff --git a/pages/oaMy/oaMy.vue b/pages/oaMy/oaMy.vue index daf648b..aa0a005 100644 --- a/pages/oaMy/oaMy.vue +++ b/pages/oaMy/oaMy.vue @@ -34,25 +34,25 @@ - - + * {{oaUserInfo.user_money||'0.00'}} **** 账户余额(元) - - + * {{oaUserInfo.income||'0.00'}} @@ -65,7 +65,7 @@ - + @@ -142,7 +142,7 @@ const res = await userInfo(); this.$store.commit('setUserInfo', res.data); }, - naviTo(url) { + navTo(url) { url ? uni.navigateTo({ url: url, diff --git a/pages/oaTask/oaTask.vue b/pages/oaTask/oaTask.vue index 1074f33..836a850 100644 --- a/pages/oaTask/oaTask.vue +++ b/pages/oaTask/oaTask.vue @@ -36,7 +36,8 @@ } }, onLoad() { - this.loadList() + this.loadList(); + uni.$on('initOaTask', this.loadList); }, onShow() { }, @@ -47,11 +48,10 @@ } }, onPullDownRefresh() { - this.close() - uni.stopPullDownRefresh() + this.loadList(); + this.$u.sleep(500).then(()=>{uni.stopPullDownRefresh()}); }, onReachBottom() { - }, } diff --git a/pages/office_app/oaMy/oaMy.vue b/pages/office_app/oaMy/oaMy.vue index feb4308..bb4f263 100644 --- a/pages/office_app/oaMy/oaMy.vue +++ b/pages/office_app/oaMy/oaMy.vue @@ -45,7 +45,7 @@ - + {{ item.name }} @@ -91,7 +91,7 @@ console.log(res,'111'); this.oaUserInfo = res }, - naviTo(url) { + navTo(url) { url ? uni.navigateTo({ url: url diff --git a/pages/updatePasswprd/updatePasswprd.vue b/pages/updatePasswprd/updatePasswprd.vue new file mode 100644 index 0000000..08cb82f --- /dev/null +++ b/pages/updatePasswprd/updatePasswprd.vue @@ -0,0 +1,119 @@ + + + + + \ No newline at end of file diff --git a/router/router.js b/router/router.js index ae29ef5..96a2cec 100644 --- a/router/router.js +++ b/router/router.js @@ -7,10 +7,15 @@ const whiteList = ['/','/pages/oaHome/oaHome', '/pages/oaExamine/oaExamine', '/p ] const hasPermission = (url) => { - if (whiteList.indexOf(url) !== -1 || uni.getStorageSync("TOKEN")) { - return true; + try{ + if (whiteList.indexOf(url) !== -1 || whiteList.indexOf(url.split('?')[0]) || uni.getStorageSync("TOKEN")) { + return true; + } + return false; + }catch(e){ + console.log(e); + return false; } - return false; } const initRouter = () => { diff --git a/static/css/global.scss b/static/css/global.scss new file mode 100644 index 0000000..3d84be3 --- /dev/null +++ b/static/css/global.scss @@ -0,0 +1 @@ +$base-color: #0122c7; diff --git a/static/icons/setting.png b/static/icons/setting.png new file mode 100644 index 0000000..719e7bf Binary files /dev/null and b/static/icons/setting.png differ diff --git a/static/img/logistics/DH.png b/static/img/logistics/DH.png new file mode 100644 index 0000000..a2b602e Binary files /dev/null and b/static/img/logistics/DH.png differ diff --git a/static/img/logistics/QS.png b/static/img/logistics/QS.png new file mode 100644 index 0000000..949bcd8 Binary files /dev/null and b/static/img/logistics/QS.png differ diff --git a/static/img/logistics/SJ.png b/static/img/logistics/SJ.png new file mode 100644 index 0000000..bbcd672 Binary files /dev/null and b/static/img/logistics/SJ.png differ diff --git a/static/mp3/order.mp3 b/static/mp3/order.mp3 new file mode 100644 index 0000000..3bec7be Binary files /dev/null and b/static/mp3/order.mp3 differ diff --git a/static/server/server.js b/static/server/server.js index c27b7cd..c10f4d5 100644 --- a/static/server/server.js +++ b/static/server/server.js @@ -245,7 +245,7 @@ export const oaHomeData = [ // admin: true // }, { - text: '财务管理', + text: '个人财务', icon: prefix + 'oa/gengduo@2x.png', url: '/subpkg/finance/finance' }, @@ -392,6 +392,11 @@ export const myOaData = [ icon: '../../static/icons/manager.png', url: '/pages/oaManager/oaManager' }, + { + name: '安全设置', + icon: '../../static/icons/setting.png', + url: '/pages/updatePasswprd/updatePasswprd' + }, // { // name: '管理后台', // icon: 'custom-icongongzi', diff --git a/store/modules/config.js b/store/modules/config.js index c2dd6b7..a94dd75 100644 --- a/store/modules/config.js +++ b/store/modules/config.js @@ -1,7 +1,12 @@ import Cache from '@/utils/cache'; const state = { - eyeType: Cache.get('eyeType') || true, - request: Cache.get('request') || true, + eyeType: Cache.get('eyeType') || true, // 小眼睛 + request: Cache.get('request') || true, // 网络请求 + timer: [{ + id: -1, + time: 60, + timer: null + }], // }; const mutations = { @@ -12,11 +17,40 @@ const mutations = { SET_REQUEST(state, data=true){ state.request = data; Cache.set('request', state.request); + }, + clearTimer(state, id){ + let time = state.timer.find(item=>item.id==id); + clearInterval(time.timer); + time.timer = null; + time.time = 0; } }; const actions = { - + startTimer({state, commit}, data){ + let time = state.timer.find(item=>item.id==data.id); + if(time){ + time.timer = setInterval(() => { + time.time--; + if (time.time <= 0) { + commit('clearTimer', data.id); + } + }) + }else { + state.timer.push({ + id: data.id, + time: data.time, + timer: null + }) + let new_time = state.timer.find(item=>item.id==data.id); + new_time.timer = setInterval(() => { + new_time.time--; + if (new_time.time <= 0) { + commit('clearTimer', data.id); + } + }, 1000) + } + } }; export default { diff --git a/store/modules/index.js b/store/modules/index.js index 1963883..4a6214d 100644 --- a/store/modules/index.js +++ b/store/modules/index.js @@ -8,7 +8,7 @@ // | Author: CRMEB Team // +---------------------------------------------------------------------- import app from "./app"; -import config from "./config" +import config from "./config"; export default { app, config diff --git a/subpkg/archives/archives.vue b/subpkg/archives/archives.vue index 844e82e..90a6ddc 100644 --- a/subpkg/archives/archives.vue +++ b/subpkg/archives/archives.vue @@ -1,215 +1,463 @@ \ No newline at end of file diff --git a/subpkg/archivesDetail/archivesDetail.vue b/subpkg/archivesDetail/archivesDetail.vue index 2405f46..61ac8e7 100644 --- a/subpkg/archivesDetail/archivesDetail.vue +++ b/subpkg/archivesDetail/archivesDetail.vue @@ -1,334 +1,377 @@ \ No newline at end of file diff --git a/subpkg/blockTransaction/blockTransaction.vue b/subpkg/blockTransaction/blockTransaction.vue index 8ec5122..1c9969f 100644 --- a/subpkg/blockTransaction/blockTransaction.vue +++ b/subpkg/blockTransaction/blockTransaction.vue @@ -19,7 +19,7 @@ - 历史账单 + 历史账单 @@ -69,7 +69,7 @@ onLoad() {}, onShow() {}, methods: { - naviTo(url) { + navTo(url) { url ? uni.navigateTo({ url: url, diff --git a/subpkg/captain/captain.vue b/subpkg/captain/captain.vue index 3391f11..412dd09 100644 --- a/subpkg/captain/captain.vue +++ b/subpkg/captain/captain.vue @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/subpkg/companyFinance/companyFinance.vue b/subpkg/companyFinance/companyFinance.vue index e413875..f836ea9 100644 --- a/subpkg/companyFinance/companyFinance.vue +++ b/subpkg/companyFinance/companyFinance.vue @@ -17,12 +17,20 @@ - 任务名称: + 任务名称: {{item.remark}} - 收益来源: - {{item.type_desc}} + 金额归属: + {{item.userInfo.nickname}} + + + 收益来源: + + {{item.type_desc}} + {{item.type_desc}} + {{item.type_desc}} + {{item.change_amount_desc}} @@ -122,6 +130,11 @@ }, methods: { async loadBill() { + // change_type 200,201,202,203 + // 200 平台增加余额 + // 201 充值增加余额 + // 202 任务收益金额 + // 203 任务账户余额增加 if(this.loadConfig.status=="nomore")return; this.loadConfig.status="loading" let res = await accountDateList({ @@ -299,8 +312,9 @@ line-height: 39rpx; .t_item{ display: flex; - &:nth-child(1){ + .t_title{ margin-bottom: 16rpx; + flex-shrink: 0 !important; } .tips{ font-size: 28rpx; diff --git a/subpkg/companyInfo/companyInfo.vue b/subpkg/companyInfo/companyInfo.vue index 8628aea..1fa1124 100644 --- a/subpkg/companyInfo/companyInfo.vue +++ b/subpkg/companyInfo/companyInfo.vue @@ -1,290 +1,314 @@ \ No newline at end of file diff --git a/subpkg/companySign/companySign.vue b/subpkg/companySign/companySign.vue index 8f90061..d6c878d 100644 --- a/subpkg/companySign/companySign.vue +++ b/subpkg/companySign/companySign.vue @@ -11,7 +11,7 @@ - + @@ -22,6 +22,11 @@ + + + + 查看 + @@ -39,6 +44,11 @@ + + + + 查看 + @@ -71,8 +81,14 @@ this.id = options.id; this.initCompany(); this.initContractTypeList(); + let time = uni.getStorageSync('ctime' + this.id); + if(time>0&&(time - Date.now())/1000>0){ + this.startTimer((time - Date.now())/1000); + } + }, + onUnload() { + if(this.timerCount>0) uni.setStorageSync('ctime'+this.id, this.timerCount*1000+Date.now()); }, - onShow() {}, computed: { cTimerCount() { return this.timerCount; @@ -95,6 +111,12 @@ type: 1 //1-公司,2-个人 }) }, + // 查看合同 + naviToContract(file) { + uni.navigateTo({ + url: `/subpkg/pdfView/pdfView?url=${file}` + }) + }, // 初始化合同类型 async initContractTypeList() { let res = await dictDataLists({ @@ -104,67 +126,92 @@ }, // 生成合同 async createContract(data) { - uni.showLoading({ - title:'合同生成中', - mask: true + uni.showModal({ + content: '请检查信息无误后再生成合同', + confirmText: '确认无误', + cancelText: '我再看看', + confirmColor: '#3175f9', + success: async (e) => { + if (e.confirm) { + uni.showLoading({ + title:'合同生成中', + mask: true + }) + let res = await initiateContract({ + party_b: data.party_b, + contract_type: data.contract_type, + type: data.type + }) + this.initCompany(); + uni.hideLoading(); + Toast(res.msg || '合同已生成'); + this.navTo('/subpkg/submit/submit?type=' + 1); + } + } }) - let res = await initiateContract({ - party_b: data.party_b, - contract_type: data.contract_type, - type: data.type - }) - this.initCompany(); - uni.hideLoading(); - Toast(res.msg || '合同已生成') }, // 发送合同 async addContract(data) { - try{ - uni.showLoading({ - title:'合同发送中', - mask: true - }) - let res = await Draftingcontracts({ - id: this.id - }); - this.initCompany(); - if (this.userInfo.contract.check_status == 3) { - this.timerCount = 60; - this.timer = setInterval(() => { - this.timerCount--; - if (this.timerCount == 0) { - clearInterval(this.timer); + uni.showModal({ + content: '请检查合同无误后再发送', + confirmText: '确认无误', + cancelText: '我再看看', + confirmColor: '#3175f9', + success: async (e) => { + if (e.confirm) { + try{ + uni.showLoading({ + title:'合同发送中', + mask: true + }) + let res = await Draftingcontracts({ + id: this.id + }); this.initCompany(); + this.startTimer(); + uni.hideLoading(); + Toast('合同已发送'); + // this.navTo('/subpkg/submit/submit'); + }catch(e){ + uni.hideLoading(); + Toast(e.msg||'合同发送失败'); } - }, 1000); + } } - uni.hideLoading(); - Toast('合同已发送'); - this.naviTo('/subpkg/submit/submit'); - }catch(e){ - uni.hideLoading(); - Toast('发送失败'); - } + }) }, // 发送短信 async getPostsms() { - if (this.timerCount == 0) { - this.timerCount = 60; - this.timer = setInterval(() => { - this.timerCount--; - if (this.timerCount == 0) { - clearInterval(this.timer); - this.initCompany(); - } - }, 1000); - let res = await postsms({ - id: this.id + try { + uni.showLoading({ + title: '发送中', + mask: true }) - Toast('短信已发送'); - this.naviTo('/subpkg/submit/submit'); + if (this.timerCount == 0) { + this.startTimer(); + let res = await postsms({ + id: this.id + }) + Toast('短信已发送'); + // this.navTo('/subpkg/submit/submit'); + } + } catch (e) { + uni.hideLoading(); + Toast(e.msg || '合同发送失败'); } }, - naviTo(url) { + // 定时器 + startTimer(time=60){ + this.timerCount = time.toFixed(0); + this.timer = setInterval(() => { + this.timerCount--; + if (this.timerCount <= 0) { + clearInterval(this.timer); + this.loadUserDetail(); + } + }, 1000); + }, + navTo(url) { url ? uni.navigateTo({ url: url diff --git a/subpkg/companyUnsign/companyUnsign.vue b/subpkg/companyUnsign/companyUnsign.vue index 6c9b2ac..aaddeba 100644 --- a/subpkg/companyUnsign/companyUnsign.vue +++ b/subpkg/companyUnsign/companyUnsign.vue @@ -2,7 +2,7 @@ - + {{item.company_name}} {{item.company_type_name}} @@ -17,13 +17,14 @@ 联系方式:{{item.master_phone}} 区县乡镇: - {{item.city_name+'/'+item.area_name+'/'+item.street_name}} + {{c_address(item)}} - + @@ -33,76 +34,91 @@ + \ No newline at end of file diff --git a/subpkg/contract/contract.vue b/subpkg/contract/contract.vue index 9404598..0ea4faa 100644 --- a/subpkg/contract/contract.vue +++ b/subpkg/contract/contract.vue @@ -21,23 +21,34 @@ - 合同编号:{{item.contract_no}} - 合同类型:{{item.company.contract_type_name}} - - 修改时间:{{item.update_time}} + + 合同编号: + {{item.contract_no}} + + + 合同类型: + {{item.company.contract_type_name}} + + + 修改时间: + {{item.update_time}} + - 已签订 - - + 已签订 + 签订中 + 未签订 + - - + + @@ -48,7 +59,7 @@ return { changeType: 0, list: [], - loadConfig:{ + loadConfig: { page: 1, limit: 15, loadingText: '努力加载中', @@ -60,8 +71,7 @@ }, onLoad() {}, onShow() { - this.initLoadConfig() - this.initContractList() + this.initLoadConfig(); }, onReady() { uni.setNavigationBarColor({ @@ -70,40 +80,42 @@ }) }, methods: { - naviTo(url) { + navTo(url) { url ? uni.navigateTo({ url: url }) : Toast('暂未开放') }, - initLoadConfig(){ + initLoadConfig() { this.loadConfig.page = 1; this.loadConfig.status = "loadmore"; this.list = []; + this.initContractList(); + uni.stopPullDownRefresh(); }, async initContractList() { - try{ - if(this.loadConfig.status=="nomore")return; - this.loadConfig.status="loading" + try { + if (this.loadConfig.status == "nomore") return; + this.loadConfig.status = "loading" let res = await contractList({ page: this.loadConfig.page, limit: this.loadConfig.limit }) - this.loadConfig.status="loadmore" - if(res.data.data.length @@ -144,7 +156,6 @@ font-weight: 400; color: #999999; line-height: 0rpx; - -webkit-background-clip: text; } } @@ -168,7 +179,8 @@ .top { display: flex; - margin-bottom: 10rpx; + margin-bottom: 28rpx; + image { width: 87.6rpx; height: 87.6rpx; @@ -177,33 +189,33 @@ } .text { - flex: 1; display: flex; flex-direction: column; justify-content: space-between; .name { - display: flex; - justify-content: space-between; - align-items: flex-end; .title { font-size: 32rpx; font-weight: 400; color: #333333; margin-right: 17.5rpx; } - - .number { - font-size: 25rpx; - font-weight: 400; - color: #3274F9; - } } .date { font-size: 25rpx; font-weight: 400; color: #F9AA32; + line-height: 36rpx; + + .number, .time{ + display: flex; + justify-content: left; + flex-wrap: wrap; + .num_left{ + margin-right: 18rpx; + } + } .time { color: #CCCCCCFF; @@ -217,12 +229,17 @@ .bottom { display: flex; justify-content: space-between; - margin-top: 10rpx; + margin-top: 28rpx; + .left { font-size: 28rpx; font-weight: 400; color: #34A853; } + + .yellow { + color: #F9AA32; + } .red { color: #F02828FF; @@ -230,14 +247,15 @@ .right { width: 158rpx; - height: 53rpx; - display: flex; - justify-content: center; - align-items: center; + // height: 53rpx; + // border-radius: 26rpx 26rpx 26rpx 26rpx; + // border: 2rpx solid #3274F9; + // display: flex; + // justify-content: center; + // align-items: center; + text-align: right; background: #FFFFFF; - border-radius: 26rpx 26rpx 26rpx 26rpx; opacity: 1; - border: 2rpx solid #3274F9; font-size: 28rpx; font-weight: 400; color: #3274F9; diff --git a/subpkg/contractDetail/contractDetail.vue b/subpkg/contractDetail/contractDetail.vue index 74b7c1d..2ba0182 100644 --- a/subpkg/contractDetail/contractDetail.vue +++ b/subpkg/contractDetail/contractDetail.vue @@ -25,7 +25,7 @@ }, onShow() {}, methods: { - naviTo(url) { + navTo(url) { url ? uni.navigateTo({ url: url diff --git a/subpkg/fileTask/fileTask.vue b/subpkg/fileTask/fileTask.vue index a7e399f..f715067 100644 --- a/subpkg/fileTask/fileTask.vue +++ b/subpkg/fileTask/fileTask.vue @@ -40,16 +40,16 @@ import { informationList } from "@/api/information.js" export default { data() { return { - ids: [], + ids: -1, list: [] } }, onLoad(options) { try{ - this.ids = JSON.parse(options.id); + this.ids = options.id; this.loadList(); }catch(e){ - this.ids = []; + this.ids = -1; } }, onShow() {}, @@ -76,6 +76,7 @@ export default { let res = await informationList({ 'arr[]': [...this.ids] }); + console.log(res); } }, onPullDownRefresh() { diff --git a/subpkg/finance/finance.vue b/subpkg/finance/finance.vue index 52d4629..88f73a6 100644 --- a/subpkg/finance/finance.vue +++ b/subpkg/finance/finance.vue @@ -2,7 +2,7 @@ - + {{userInfo.nickname}} @@ -12,7 +12,7 @@ {{userInfo.nickname}} - @@ -28,7 +28,7 @@ 可提现金额****元 - + 账户余额(元) {{userInfo.user_money||0.00}} @@ -54,7 +54,7 @@ - + + + + 账单日期: {{current?item.month:item.create_time}} + + + + + 任务名称: + {{item.remark}} + + + 金额归属: + {{$store.state.app.userInfo.nickname}} + + + 收益来源: + + + {{item.type_desc}} + {{item.type_desc}} + {{item.type_desc}} + + + + {{current?(item.expenditure==0?'+'+item.income:'-'+item.income):item.change_amount_desc}} + + @@ -93,7 +121,7 @@ - + @@ -149,7 +177,7 @@ export default { }, methods: { - naviTo(url) { + navTo(url) { url ? uni.navigateTo({ url: url @@ -335,6 +363,7 @@ page{ .bill_list{ // background-color: #f5f5f5; padding-bottom: 100rpx; + padding-top: 28rpx; .card{ padding: 28rpx; background-color: #fff; @@ -389,6 +418,68 @@ page{ } } } + .item { + margin: 0 auto; + margin-bottom: 28rpx; + width: 694rpx; + // height: 238rpx; + background: #FFFFFF; + border-radius: 14rpx 14rpx 14rpx 14rpx; + opacity: 1; + padding: 28rpx; + + .top { + margin-bottom: 28rpx; + font-size: 25rpx; + font-family: PingFang SC-Regular, PingFang SC; + font-weight: 400; + color: #333333; + + &:before { + display: inline-block; + content: '账单详情'; + width: 137rpx; + height: 49rpx; + line-height: 49rpx; + text-align: center; + background: #3274F9; + border-radius: 26rpx 26rpx 26rpx 26rpx; + color: #fff; + margin-right: 28rpx; + } + } + + .bottom { + display: flex; + justify-content: space-between; + + .text { + font-size: 25rpx; + font-weight: 400; + color: #999999; + line-height: 39rpx; + .t_item{ + display: flex; + .t_title{ + margin-bottom: 16rpx; + flex-shrink: 0 !important; + } + .tips{ + font-size: 28rpx; + font-weight: 400; + color: #333333; + } + } + } + .price{ + display: flex; + align-items: center; + font-size: 32rpx; + font-weight: 500; + color: #F02828; + } + } + } } .btn{ diff --git a/subpkg/fixedAssets/fixedAssets.vue b/subpkg/fixedAssets/fixedAssets.vue index 8717ace..6032171 100644 --- a/subpkg/fixedAssets/fixedAssets.vue +++ b/subpkg/fixedAssets/fixedAssets.vue @@ -50,7 +50,7 @@ - + 查看 @@ -72,7 +72,7 @@ onLoad() {}, onShow() {}, methods: { - naviTo(contract_no) { + navTo(contract_no) { download_file({ applyNo: contract_no }).then(res => { if (res.code != 1) { Toast(res.msg) diff --git a/subpkg/newArchives/newArchives.vue b/subpkg/newArchives/newArchives.vue index 6fb1662..95ce837 100644 --- a/subpkg/newArchives/newArchives.vue +++ b/subpkg/newArchives/newArchives.vue @@ -28,9 +28,17 @@ 地区信息 - - - + + + + @@ -144,6 +152,7 @@ demandList: [], //更多需求 demandListChild: [], //更多二级需求 showDemandList: [], //更多需求展示列表 + brigadeList: [], formData: { id_card: '', sex: '', @@ -152,6 +161,7 @@ highway: '', //汽车是否能到家 smart_phone: '', //是否使用智能手机 wechat: '', //微信号 + brigade: '', //小队 address: '', //家庭地址 age: '', //年龄 category_id: '1', @@ -201,6 +211,12 @@ message: '姓名不能为空', trigger: ['change', 'blur'] }, + brigade: { + type: 'string', + required: true, + message: '小队不能为空', + trigger: ['change', 'blur'] + }, address: { type: 'string', required: true, @@ -224,23 +240,26 @@ }, onLoad() { this.initCategoryBusinessList(); + this.initBrigadeList() }, onShow() {}, - computed:{ - nowAddress(){ - let address = this.$store.state.app.userInfo; - let str = ''; - address.province_name?str+=address.province_name:null; - address.city_name?str+=address.city_name:null; - address.area_name?str+=address.area_name:null; - address.street_name?str+=address.street_name:null; - address.village_name?str+=address.village_name:null; - return str; - } - }, + computed: { + nowAddress() { + let address = this.$store.state.app.userInfo; + let str = ''; + address.province_name ? str += address.province_name : null; + address.city_name ? str += address.city_name : null; + address.area_name ? str += address.area_name : null; + address.street_name ? str += address.street_name : null; + address.village_name ? str += address.village_name : null; + address.brigade_name ? str += address.brigade_name : null; + return str; + } + }, methods: { // 新增档案 async addArchives() { + console.log(this.formData); try { // Toast('开发中') // let refsDatas = this.loadRefsDatas(); @@ -250,46 +269,46 @@ // let flag4 = await this.$refs.plantRef.validate(); // return console.log(flag1); await this.$refs.archives.validate(); - uni.showLoading({ - title: '登记中', - mask: true - }) - // let districtForm = { - // area_id: this.$refs.districtSelectorRef.formData.area, - // street_id: this.$refs.districtSelectorRef.formData.street, - // village_id: this.$refs.districtSelectorRef.formData.village, - // brigade_id: this.$refs.districtSelectorRef.formData.brigade, - // } - let res = await informationAdd({ - ...this.formData, - // ...districtForm, - ...this.$refs.residentsRef.residents, - // datas: [{ - // card_id: 32, - // datas: { - // ...this.$refs.breedingRef.formData - // } - // }, - // { - // card_id: 7, - // datas: { - // ...this.$refs.plantRef.formData - // } - // }, - // ...refsDatas - // ] - }); - uni.hideLoading() - uni.showToast({ - icon: "none", - title: "添加成功", - success: () => { - setTimeout(() => { - uni.$emit('loadArchives'); - uni.navigateBack() - }, 1000) - } - }) + uni.showLoading({ + title: '登记中', + mask: true + }) + // let districtForm = { + // area_id: this.$refs.districtSelectorRef.formData.area, + // street_id: this.$refs.districtSelectorRef.formData.street, + // village_id: this.$refs.districtSelectorRef.formData.village, + // brigade_id: this.$refs.districtSelectorRef.formData.brigade, + // } + let res = await informationAdd({ + ...this.formData, + // ...districtForm, + ...this.$refs.residentsRef.residents, + // datas: [{ + // card_id: 32, + // datas: { + // ...this.$refs.breedingRef.formData + // } + // }, + // { + // card_id: 7, + // datas: { + // ...this.$refs.plantRef.formData + // } + // }, + // ...refsDatas + // ] + }); + uni.hideLoading() + uni.showToast({ + icon: "none", + title: "添加成功", + success: () => { + setTimeout(() => { + uni.$emit('loadArchives'); + uni.navigateBack(); + }, 1000) + } + }) } catch (e) { console.log(e); Toast('请填写完整信息') @@ -312,8 +331,31 @@ }, // 初始化商机分类 async initCategoryBusinessList() { - let res = await categoryBusinessList(); - this.demandList = res.data; + try { + uni.showLoading({ + title: '加载中', + mask: true + }) + let res = await categoryBusinessList(); + this.demandList = res.data; + } catch (e) { + console.log(e); + } finally { + uni.hideLoading() + } + }, + initBrigadeList() { + try { + let arr = this.$store.state.app.userInfo.brigade.split(','); + for (let i = 0; i < arr.length; i++) { + this.brigadeList.push({ + id: arr[i], + brigade_name: this.$store.state.app.userInfo.brigade_name[i].brigade_name + }) + } + } catch (e) { + Toast('未负责小队'); + } }, // 选择更多需求 changeHandler(e) { diff --git a/subpkg/newPersonnel/newPersonnel.vue b/subpkg/newPersonnel/newPersonnel.vue index d600184..6e1c185 100644 --- a/subpkg/newPersonnel/newPersonnel.vue +++ b/subpkg/newPersonnel/newPersonnel.vue @@ -228,7 +228,8 @@ title: "添加成功", success: () => { setTimeout(() => { - uni.navigateBack() + uni.$emit('initPersonnel'); + uni.navigateBack(); }, 1000) } }) diff --git a/subpkg/noticeList/noticeList.vue b/subpkg/noticeList/noticeList.vue index 0a7b7a2..46d0aee 100644 --- a/subpkg/noticeList/noticeList.vue +++ b/subpkg/noticeList/noticeList.vue @@ -1,7 +1,8 @@ @@ -22,7 +22,7 @@ export default { onLoad() {}, onShow() {}, methods: { - naviTo(){ + navTo(){ uni.navigateBack(); } }, diff --git a/subpkg/taskAdmin/taskAdmin.vue b/subpkg/taskAdmin/taskAdmin.vue index dcd12a0..bd95245 100644 --- a/subpkg/taskAdmin/taskAdmin.vue +++ b/subpkg/taskAdmin/taskAdmin.vue @@ -11,18 +11,19 @@ - - - - - + + + + + +