diff --git a/components/orderCard.vue b/components/orderCard.vue index 7e876a4..ff0389c 100644 --- a/components/orderCard.vue +++ b/components/orderCard.vue @@ -70,6 +70,9 @@ 修改项目 + + 修改价格 + 查看详情 @@ -95,6 +98,12 @@ export default { default: () => { return {} } + }, + userInfo: { + type: Object, + default: () => { + return {} + } } }, computed: { @@ -119,14 +128,11 @@ export default { roleCanJd:false, //当前用户是否可以进行施工、施工过程、结束施工操作--- roleCanSg:false, - //当前用户 - userInfo:{}, ifLeader:false, } }, mounted(){ this.ifLeader = getStrData('ifLeader') - this.userInfo = getUserInfo() if(this.userInfo.roleCodes.includes("service_advisor") || this.userInfo.roleCodes.includes("general_inspection") || (this.userInfo.roleCodes.includes("repair_staff") && getStrData("ifLeader"))){ //服务顾问、总检可以派工,维修班组长需要判断是否可以派工 this.roleCanPg = true @@ -167,6 +173,14 @@ export default { url: '/pages-order/orderDetail/orderDetail?id=' + this.order.id + '&isDetail=' + '1' }) }, + /** + * 修改配件价格 + */ + editWaresPrice(){ + uni.navigateTo({ + url: `/pages-order/orderDetail/orderDetail?id=${this.order.id}&isDetail=0` + }); + }, /** * 作废 diff --git a/pages-home/home/home.vue b/pages-home/home/home.vue index 0c7a3e3..a08f7fb 100644 --- a/pages-home/home/home.vue +++ b/pages-home/home/home.vue @@ -3,6 +3,9 @@ + + {{ companyInfo.simpleName || companyInfo.corpName }} + @@ -67,25 +70,35 @@ + + + + + {{ item }} + + + + + + 维修中 + {{ bossNum.workingNum }} + + + + 已完成 + {{ bossNum.doneNum }} + + + - + 待审批配件申请单 {{serviceNum}} - - - - 维修中 - {{ bossNum.workingNum }} - - - - 已完成 - {{ bossNum.doneNum }} - - 待办工单 @@ -97,7 +110,7 @@ - + @@ -179,6 +192,9 @@ export default { avatar: undefined, nickname: '' }, + //时间可选项--总检、业务管理员用 + timePicker:['当日','累计'], + active:0, menuList: [ { title: '新建工单', @@ -231,6 +247,8 @@ export default { //告知客户的内容 tellCusText:"", ifLeader:false, + //企业信息 + companyInfo:{}, } }, onLoad(){ @@ -239,6 +257,7 @@ export default { url: '/pages/login/login' }) }else{ + this.companyInfo = getJSONData("companyInfo") if(!this.$msgSocket){ this.$startMsgSocket(getTenantId(),getStrData("userId")) } @@ -269,6 +288,11 @@ export default { } }, methods: { + activeTab(index) { + this.active = index + //刷新统计数据 + this.getBossTodo() + }, /** * 作废 */ @@ -557,9 +581,13 @@ export default { * 从总检的角度差维修中、已完成的工单数量 */ getBossTodo(){ + let params={ + selectType:this.active==0?"today":"all" + } request({ url: '/admin-api/repair/tickets/getBossNum', method: 'get', + params:params }).then((res) => { console.log(res) if (res.code == 200) { @@ -751,6 +779,12 @@ export default { overflow: auto; padding-bottom: 30rpx; } + .company-text { + font-size: 30rpx; + font-weight: bold; + display: inline-block; + padding: 8rpx 16rpx; + } .userInfoBox { margin: 0 32rpx 40rpx; @@ -920,7 +954,7 @@ export default { } } .orderCount { - margin: 40rpx 32rpx; + margin: 0 40rpx 32rpx; background: #FFFFFF; border-radius: 8rpx 8rpx 8rpx 8rpx; padding: 40rpx; @@ -1064,6 +1098,35 @@ export default { } } + .body-top-tab { + display: flex; + font-size: 30rpx; + margin: 0 32rpx; + + .body-top-tab-item { + flex: 1; + width: 0; + text-align: center; + padding: 16rpx 20rpx; + position: relative; + + &.active { + color: #0174F6; + } + + .activeLine { + position: absolute; + bottom: 0; + left: 50%; + transform: translateX(-50%); + width: 96rpx; + height: 6rpx; + background: #0174F6; + border-radius: 4rpx 4rpx 0rpx 0rpx; + } + } + } + .repairShop { width: 686rpx; margin: 38rpx auto 0; diff --git a/pages-order/orderDetail/orderDetail.vue b/pages-order/orderDetail/orderDetail.vue index 57b2c01..84b0fc5 100644 --- a/pages-order/orderDetail/orderDetail.vue +++ b/pages-order/orderDetail/orderDetail.vue @@ -120,7 +120,7 @@ - -