Commit da3dbf3b by 张立顺

Merge branch 'SAAS+V4.56.2' into SAAS+V5.1.0

2 parents 608fa93d da7aa914
...@@ -263,15 +263,11 @@ ...@@ -263,15 +263,11 @@
"preloadRule": { "preloadRule": {
"pages/tabWorkOrder/pages/index/index": { "pages/tabWorkOrder/pages/index/index": {
"network": "all", "network": "all",
"packages": [ "packages": ["tabWorkOrder"]
"tabWorkOrder"
]
}, },
"tabIndex/pages/index/index": { "tabIndex/pages/index/index": {
"network": "all", "network": "all",
"packages": [ "packages": ["tabWorkOrder"]
"tabWorkOrder"
]
} }
}, },
"resolveAlias": { "resolveAlias": {
......
...@@ -122,16 +122,19 @@ Page({ ...@@ -122,16 +122,19 @@ Page({
color: '#35C376' color: '#35C376'
} }
}, },
userPermissions: [], // 人员权限 userPermissions: [] // 人员权限
}, },
onRoute(options) { onRoute(options) {
this.setData({ this.setData(
{
queryOptions: options queryOptions: options
}, () => { },
() => {
this.getDetail() this.getDetail()
this.getStaffPermissions() this.getStaffPermissions()
}) }
)
}, },
/** /**
...@@ -139,12 +142,15 @@ Page({ ...@@ -139,12 +142,15 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
if (options.id) { if (options.id) {
this.setData({ this.setData(
{
queryOptions: options queryOptions: options
}, () => { },
() => {
this.getDetail() this.getDetail()
this.getStaffPermissions() this.getStaffPermissions()
}) }
)
} }
if (options?.scene) { if (options?.scene) {
this.setSceneData(options.scene) this.setSceneData(options.scene)
...@@ -159,34 +165,37 @@ Page({ ...@@ -159,34 +165,37 @@ Page({
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {},
},
// 人员权限 // 人员权限
getStaffPermissions() { getStaffPermissions() {
// 假数据开始 // 假数据开始
const res = { const res = {
code: 0, code: 0,
data: [{ data: [
{
name: '施工确认', name: '施工确认',
code: 'SHIGONGQUEREN' code: 'SHIGONGQUEREN'
}, { },
{
name: '完成施工', name: '完成施工',
code: 'WANCHENGSHIGONG' code: 'WANCHENGSHIGONG'
}, { },
{
name: '物料出库', name: '物料出库',
code: 'WULIAOCHUKU' code: 'WULIAOCHUKU'
}, { },
{
name: '审核施工单', name: '审核施工单',
code: 'SHENHESHIGONGDAN' code: 'SHENHESHIGONGDAN'
}] }
]
} }
this.setData({ this.setData({
userPermissions: res.data userPermissions: res.data
}) })
return return
let { userInfo } = this.data let { userInfo } = this.data
staffPermissions({phone: userInfo?.phone}).then(res => { staffPermissions({ phone: userInfo?.phone }).then(res => {
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
...@@ -638,11 +647,16 @@ Page({ ...@@ -638,11 +647,16 @@ Page({
submitFlag: false submitFlag: false
}) })
if (code == 0) { if (code == 0) {
wx.$router.redirectTo('repairOrderDetail', {id: detailInfo.id, constructionCode: detailInfo.constructionCode, orderCode: detailInfo.orderCode}) wx.$router.redirectTo('repairOrderDetail', {
id: detailInfo.id,
constructionCode: detailInfo.constructionCode,
orderCode: detailInfo.orderCode
})
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
}).catch(() => { })
.catch(() => {
this.setData({ this.setData({
submitFlag: false submitFlag: false
}) })
...@@ -659,11 +673,13 @@ Page({ ...@@ -659,11 +673,13 @@ Page({
confirmText: '审核通过', confirmText: '审核通过',
cancelText: '不通过', cancelText: '不通过',
success(res) { success(res) {
api.approvalRepairOrder({ api
.approvalRepairOrder({
id: detailInfo.id, id: detailInfo.id,
constructionCode: detailInfo.constructionCode, constructionCode: detailInfo.constructionCode,
approvalStatus: res.confirm ? 1 : res.cancel ? 2 : '' approvalStatus: res.confirm ? 1 : res.cancel ? 2 : ''
}).then(result => { })
.then(result => {
let { code, message } = result let { code, message } = result
if (code == 0) { if (code == 0) {
wx.$util.showToast('') wx.$util.showToast('')
......
...@@ -14,9 +14,11 @@ page { ...@@ -14,9 +14,11 @@ page {
color: #FFFFFF; color: #FFFFFF;
padding: var(--fontSize48) var(--fontSize40) var(--fontSize48) var(--fontSize60); padding: var(--fontSize48) var(--fontSize40) var(--fontSize48) var(--fontSize60);
box-sizing: border-box; box-sizing: border-box;
.user-info { .user-info {
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
.hide-text { .hide-text {
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
...@@ -25,11 +27,13 @@ page { ...@@ -25,11 +27,13 @@ page {
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
} }
.car { .car {
font-size: var(--fontSize40); font-size: var(--fontSize40);
font-weight: 600; font-weight: 600;
margin-right: var(--fontSize8); margin-right: var(--fontSize8);
max-width: var(--fontSize400); max-width: var(--fontSize400);
image { image {
width: var(--fontSize40); width: var(--fontSize40);
height: var(--fontSize40); height: var(--fontSize40);
...@@ -37,28 +41,33 @@ page { ...@@ -37,28 +41,33 @@ page {
margin-top: var(--fontSize8); margin-top: var(--fontSize8);
} }
} }
.staff-name { .staff-name {
position: relative; position: relative;
background: none; background: none;
max-width: var(--fontSize242); max-width: var(--fontSize242);
&::before { &::before {
content: "("; content: "(";
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
} }
&::after { &::after {
content: ")"; content: ")";
position: absolute; position: absolute;
right: 0; right: 0;
bottom: 0; bottom: 0;
} }
.name { .name {
padding-right: 1.2em; padding-right: 1.2em;
text-indent: 1.2em; text-indent: 1.2em;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 限制显示两行 */ -webkit-line-clamp: 2;
/* 限制显示两行 */
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
...@@ -67,14 +76,17 @@ page { ...@@ -67,14 +76,17 @@ page {
margin-bottom: var(--fontSize32); margin-bottom: var(--fontSize32);
} }
.content { .content {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.tips { .tips {
font-size: var(--fontSize24); font-size: var(--fontSize24);
margin-right: var(--fontSize50); margin-right: var(--fontSize50);
} }
.btn { .btn {
flex-shrink: 0; flex-shrink: 0;
padding: var(--fontSize8) var(--fontSize28); padding: var(--fontSize8) var(--fontSize28);
...@@ -83,6 +95,7 @@ page { ...@@ -83,6 +95,7 @@ page {
} }
} }
} }
.box { .box {
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10); box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
...@@ -90,12 +103,14 @@ page { ...@@ -90,12 +103,14 @@ page {
padding: var(--fontSize40) var(--fontSize40) var(--fontSize2); padding: var(--fontSize40) var(--fontSize40) var(--fontSize2);
position: relative; position: relative;
margin: var(--fontSize20) var(--fontSize20) 0; margin: var(--fontSize20) var(--fontSize20) 0;
.title { .title {
font-size: var(--fontSize32); font-size: var(--fontSize32);
color: #292D33; color: #292D33;
margin-bottom: var(--fontSize20); margin-bottom: var(--fontSize20);
position: relative; position: relative;
font-weight: 600; font-weight: 600;
&::after { &::after {
position: absolute; position: absolute;
content: ''; content: '';
...@@ -107,38 +122,47 @@ page { ...@@ -107,38 +122,47 @@ page {
transform: translateY(-50%); transform: translateY(-50%);
} }
} }
.flex { .flex {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.example { .example {
font-weight: 400; font-weight: 400;
color: #347BFF; color: #347BFF;
font-size: var(--fontSize26); font-size: var(--fontSize26);
} }
} }
.cell { .cell {
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #999EA8; color: #999EA8;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-bottom: var(--fontSize32); margin-bottom: var(--fontSize32);
.label { .label {
flex-shrink: 0; flex-shrink: 0;
width: var(--fontSize208); width: var(--fontSize208);
} }
.value { .value {
color: #292D33; color: #292D33;
display: flex; display: flex;
flex-flow: wrap; flex-flow: wrap;
align-items: center; align-items: center;
} }
.placeholder { .placeholder {
color: #BEC1C7; color: #BEC1C7;
} }
.copy,.edit {
.copy,
.edit {
color: #347BFF; color: #347BFF;
margin-left: auto; margin-left: auto;
.image { .image {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
...@@ -146,10 +170,12 @@ page { ...@@ -146,10 +170,12 @@ page {
} }
} }
} }
.image-box { .image-box {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: var(--fontSize32); margin-bottom: var(--fontSize32);
.tire-block { .tire-block {
width: var(--fontSize196); width: var(--fontSize196);
height: var(--fontSize196); height: var(--fontSize196);
...@@ -161,20 +187,25 @@ page { ...@@ -161,20 +187,25 @@ page {
text-align: center; text-align: center;
border-radius: var(--fontSize8); border-radius: var(--fontSize8);
overflow: hidden; overflow: hidden;
&:not(:nth-child(3n)) { &:not(:nth-child(3n)) {
margin-right: var(--fontSize20); margin-right: var(--fontSize20);
} }
&:nth-child(n+4) { &:nth-child(n+4) {
margin-top: var(--fontSize20); margin-top: var(--fontSize20);
} }
.tire-img-box { .tire-img-box {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
.tire-img { .tire-img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.icon-delete { .icon-delete {
position: absolute; position: absolute;
top: var(--fontSize12); top: var(--fontSize12);
...@@ -183,29 +214,35 @@ page { ...@@ -183,29 +214,35 @@ page {
height: var(--fontSize40); height: var(--fontSize40);
} }
} }
.icon-plus { .icon-plus {
width: var(--fontSize80); width: var(--fontSize80);
height: var(--fontSize80); height: var(--fontSize80);
} }
.plus-text { .plus-text {
color: #999EA8; color: #999EA8;
font-size: var(--fontSize28); font-size: var(--fontSize28);
} }
} }
} }
.service { .service {
padding-bottom: var(--fontSize16); padding-bottom: var(--fontSize16);
.category { .category {
padding-bottom: var(--fontSize8); padding-bottom: var(--fontSize8);
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
} }
.service-item { .service-item {
background: #F7F8FA; background: #F7F8FA;
border-radius: var(--fontSize12); border-radius: var(--fontSize12);
padding: var(--fontSize24); padding: var(--fontSize24);
font-size: var(--fontSize26); font-size: var(--fontSize26);
margin: var(--fontSize16) calc(-1 * var(--fontSize8)); margin: var(--fontSize16) calc(-1 * var(--fontSize8));
.name { .name {
color: #EA6612; color: #EA6612;
margin-bottom: var(--fontSize12); margin-bottom: var(--fontSize12);
...@@ -216,19 +253,23 @@ page { ...@@ -216,19 +253,23 @@ page {
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
} }
.bott { .bott {
display: flex; display: flex;
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #5A5E66; color: #5A5E66;
.split { .split {
margin: 0 var(--fontSize6); margin: 0 var(--fontSize6);
} }
} }
} }
.edit-item { .edit-item {
display: flex; display: flex;
align-items: center; align-items: center;
image { image {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
...@@ -237,6 +278,7 @@ page { ...@@ -237,6 +278,7 @@ page {
} }
} }
} }
.empty-box { .empty-box {
width: 100%; width: 100%;
font-size: var(--fontSize24); font-size: var(--fontSize24);
...@@ -244,27 +286,32 @@ page { ...@@ -244,27 +286,32 @@ page {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
image { image {
width: var(--fontSize86); width: var(--fontSize86);
height: var(--fontSize86); height: var(--fontSize86);
margin-right: var(--fontSize16); margin-right: var(--fontSize16);
} }
} }
.goods { .goods {
margin: 0 calc(-1 * var(--fontSize8)); margin: 0 calc(-1 * var(--fontSize8));
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
padding-bottom: var(--fontSize32); padding-bottom: var(--fontSize32);
.goods-item { .goods-item {
padding: var(--fontSize24); padding: var(--fontSize24);
background: #F7F8FA; background: #F7F8FA;
border-radius: var(--fontSize12); border-radius: var(--fontSize12);
margin-bottom: var(--fontSize16); margin-bottom: var(--fontSize16);
position: relative; position: relative;
.goods-name { .goods-name {
width: calc(100% - var(--fontSize52)); width: calc(100% - var(--fontSize52));
padding-left: var(--fontSize28); padding-left: var(--fontSize28);
} }
&::after { &::after {
position: absolute; position: absolute;
width: var(--fontSize12); width: var(--fontSize12);
...@@ -276,24 +323,29 @@ page { ...@@ -276,24 +323,29 @@ page {
background: #347BFF; background: #347BFF;
border-radius: 100%; border-radius: 100%;
} }
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
} }
.bott { .bott {
margin-top: var(--fontSize12); margin-top: var(--fontSize12);
padding-left: var(--fontSize28); padding-left: var(--fontSize28);
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #999EA8; color: #999EA8;
.split { .split {
margin: 0 var(--fontSize6); margin: 0 var(--fontSize6);
} }
} }
} }
} }
.isFullSucreen-btn { .isFullSucreen-btn {
padding-bottom: 34px !important; padding-bottom: 34px !important;
} }
.btns { .btns {
position: fixed; position: fixed;
left: 0; left: 0;
...@@ -309,6 +361,7 @@ page { ...@@ -309,6 +361,7 @@ page {
font-weight: 500; font-weight: 500;
z-index: 99; z-index: 99;
flex-direction: column; flex-direction: column;
.tips_box { .tips_box {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -320,28 +373,33 @@ page { ...@@ -320,28 +373,33 @@ page {
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #FF9D0A; color: #FF9D0A;
background: #FEF5E7; background: #FEF5E7;
.tipsIcon { .tipsIcon {
flex-shrink: 0; flex-shrink: 0;
width: var(--fontSize28); width: var(--fontSize28);
height: var(--fontSize28); height: var(--fontSize28);
margin-right: var(--fontSize8); margin-right: var(--fontSize8);
} }
.contentText { .contentText {
margin-right: auto; margin-right: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
} }
.close-image { .close-image {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
} }
} }
.btns-con { .btns-con {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
padding: var(--fontSize10) 0; padding: var(--fontSize10) 0;
width: calc(100% - var(--fontSize80)); width: calc(100% - var(--fontSize80));
.confirm { .confirm {
border-radius: var(--fontSize12); border-radius: var(--fontSize12);
height: var(--fontSize80); height: var(--fontSize80);
......
...@@ -15,8 +15,9 @@ ...@@ -15,8 +15,9 @@
</view> </view>
<view class="main {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="main {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="mainheader"> <view class="mainheader">
<!-- catchtap="showStaffPicker" -->
<view class="title">日报切换</view> <view class="title">日报切换</view>
<view class="navigation-title templateNameTitle" bindtap="showStaffPicker"> <view class="navigation-title templateNameTitle">
<picker bindchange="handleTemplagePickerChange" value="{{ orderObj.templateType-1 }}" range-key="name" range="{{ pickerTemplateList }}" disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || isHmStore}}"> <picker bindchange="handleTemplagePickerChange" value="{{ orderObj.templateType-1 }}" range-key="name" range="{{ pickerTemplateList }}" disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || isHmStore}}">
<view class="picker"> <view class="picker">
<view class="text-hide templateName">{{pickerTemplateList[orderObj.templateType-1]['name']}}</view> <view class="text-hide templateName">{{pickerTemplateList[orderObj.templateType-1]['name']}}</view>
...@@ -93,7 +94,7 @@ ...@@ -93,7 +94,7 @@
<block wx:if="{{ item.brandType == 0 }}"> <block wx:if="{{ item.brandType == 0 }}">
<view class="mainheader"> <view class="mainheader">
<view class="title">问界</view> <view class="title">问界</view>
<view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" bindtap="showStaffPicker"> <view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" catchtap="showStaffPicker">
<view class="navigation-title-text text-hide">{{orderObj.staffName}}</view> <view class="navigation-title-text text-hide">{{orderObj.staffName}}</view>
<view class="arrow" wx:if="{{ role == 'super' }}"> <view class="arrow" wx:if="{{ role == 'super' }}">
<image src="/images/arrow_bottom.png" /> <image src="/images/arrow_bottom.png" />
...@@ -119,7 +120,7 @@ ...@@ -119,7 +120,7 @@
<block wx:if="{{ item.brandType == 1 }}"> <block wx:if="{{ item.brandType == 1 }}">
<view class="mainheader"> <view class="mainheader">
<view class="title">鸿蒙</view> <view class="title">鸿蒙</view>
<view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" bindtap="showStaffPicker"> <view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" catchtap="showStaffPicker">
<view class="navigation-title-text text-hide">{{orderObj.staffName}}</view> <view class="navigation-title-text text-hide">{{orderObj.staffName}}</view>
<view class="arrow" wx:if="{{ role == 'super' }}"> <view class="arrow" wx:if="{{ role == 'super' }}">
<image src="/images/arrow_bottom.png" /> <image src="/images/arrow_bottom.png" />
...@@ -145,7 +146,7 @@ ...@@ -145,7 +146,7 @@
<block wx:if="{{ item.brandType == 2 }}"> <block wx:if="{{ item.brandType == 2 }}">
<view class="mainheader"> <view class="mainheader">
<view class="title">{{ item.brandType == 1? '非问界': item.firstBrandName}}</view> <view class="title">{{ item.brandType == 1? '非问界': item.firstBrandName}}</view>
<view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" bindtap="showStaffPicker"> <view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" catchtap="showStaffPicker">
<view class="navigation-title-text text-hide">{{orderObj.staffName}}</view> <view class="navigation-title-text text-hide">{{orderObj.staffName}}</view>
<view class="arrow" wx:if="{{ role == 'super' }}"> <view class="arrow" wx:if="{{ role == 'super' }}">
<image src="/images/arrow_bottom.png" /> <image src="/images/arrow_bottom.png" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!