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);
......
...@@ -2,27 +2,30 @@ ...@@ -2,27 +2,30 @@
<wxs src="../../index.wxs" module="filter" /> <wxs src="../../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<block> <block>
<view class="main" style="padding-bottom: {{'var(--fontSize290)'}};"> <view class="main" style="padding-bottom: {{ 'var(--fontSize290)' }};">
<view class="status-box"> <view class="status-box">
<view class="user-info"> <view class="user-info">
<view class="car hide-text"><image wx:if="{{detailInfo.constructionStatus == 1}}" src="{{IMG_URL}}repair-order/complete.png" mode=""/>{{detailInfo.customer.carSeriesName || '无车型客户'}}</view> <view class="car hide-text">
<image wx:if="{{ detailInfo.constructionStatus == 1 }}" src="{{ IMG_URL }}repair-order/complete.png" mode="" />
{{detailInfo.customer.carSeriesName || '无车型客户'}}
</view>
<view class="staff-name"> <view class="staff-name">
<text class="name">{{detailInfo.customer.customerName || '-'}}</text> <text class="name">{{detailInfo.customer.customerName || '-'}}</text>
</view> </view>
</view> </view>
<block wx:if="{{detailInfo.constructionStatus == 0}}"> <block wx:if="{{ detailInfo.constructionStatus == 0 }}">
<view class="content"> <view class="content">
<view class="tips">仓库管理员核销物料出库单后可确认完成施工。</view> <view class="tips">仓库管理员核销物料出库单后可确认完成施工。</view>
<view class="btn text-center" wx:if="{{detailInfo.outboundStatus != 1}}" bindtap="handleOutbound">物料出库</view> <view class="btn text-center" wx:if="{{ detailInfo.outboundStatus != 1 }}" bindtap="handleOutbound">物料出库</view>
</view> </view>
</block> </block>
<block wx:elif="{{detailInfo.constructionStatus == 1}}"> <block wx:elif="{{ detailInfo.constructionStatus == 1 }}">
<view class="content"> <view class="content">
<view class="tips"> <view class="tips">
<view>完成施工,如客户返工请点击</view> <view>完成施工,如客户返工请点击</view>
<view wx:if="{{detailInfo.approvalStatus}}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view> <view wx:if="{{ detailInfo.approvalStatus }}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view>
</view> </view>
<view class="btn text-center" bindtap="handleRedo" wx:if="{{filter.btnPermissions(userPermissions, 'WULIAOCHUKU')}}">客户返工</view> <view class="btn text-center" bindtap="handleRedo" wx:if="{{ filter.btnPermissions(userPermissions, 'WULIAOCHUKU') }}">客户返工</view>
</view> </view>
</block> </block>
</view> </view>
...@@ -38,7 +41,10 @@ ...@@ -38,7 +41,10 @@
</block> </block>
<block wx:else> <block wx:else>
<view class="value"> <view class="value">
<block>{{detailInfo[item.key] || '-'}}<text>{{item.unit}}</text></block> <block>
{{detailInfo[item.key] || '-'}}
<text>{{item.unit}}</text>
</block>
</view> </view>
</block> </block>
<block wx:if="{{ item.copy }}"> <block wx:if="{{ item.copy }}">
...@@ -50,20 +56,25 @@ ...@@ -50,20 +56,25 @@
</view> </view>
</block> </block>
</view> </view>
<view class="box" wx:if="{{detailInfo.constructionStatus == 0}}"> <view class="box" wx:if="{{ detailInfo.constructionStatus == 0 }}">
<view class="title infoTitle"> <view class="title infoTitle">
<view class="flex">施工时间</view> <view class="flex">施工时间</view>
</view> </view>
<block wx:for="{{timeObj}}" wx:key="index"> <block wx:for="{{ timeObj }}" wx:key="index">
<view class="cell"> <view class="cell">
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
<block wx:if="{{item.key == 'constructionDuration' && (detailInfo[item.key] === null || detailInfo[item.key] === undefined)}}"> <block
wx:if="{{ item.key == 'constructionDuration' && (detailInfo[item.key] === null || detailInfo[item.key] === undefined) }}"
>
<view class="value placeholder">{{item.placeholder}}</view> <view class="value placeholder">{{item.placeholder}}</view>
</block> </block>
<block wx:else> <block wx:else>
<view class="value">{{detailInfo[item.key] || '-'}}<text wx:if="{{item.unit}}">{{item.unit}}</text></view> <view class="value">
{{detailInfo[item.key] || '-'}}
<text wx:if="{{ item.unit }}">{{item.unit}}</text>
</view>
</block> </block>
<view wx:if="{{item.edit}}" class="edit" bindtap="editTime" data-key="{{item.key}}"> <view wx:if="{{ item.edit }}" class="edit" bindtap="editTime" data-key="{{ item.key }}">
<image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="image"></image> <image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="image"></image>
</view> </view>
</view> </view>
...@@ -72,26 +83,37 @@ ...@@ -72,26 +83,37 @@
</view> </view>
<view class="box"> <view class="box">
<view class="title infoTitle"> <view class="title infoTitle">
<view class="flex">上传施工图 <view class="flex">
<view wx:if="{{detailInfo.constructionStatus == 0}}" bindtap="handleShowExample" class="example">示例</view> 上传施工图
<view wx:if="{{ detailInfo.constructionStatus == 0 }}" bindtap="handleShowExample" class="example">示例</view>
</view> </view>
</view> </view>
<view class="image-box"> <view class="image-box">
<block wx:if="{{detailInfo.pictureList.length}}"> <block wx:if="{{ detailInfo.pictureList.length }}">
<view class="tire-block" wx:for="{{ detailInfo.pictureList }}" wx:key="index"> <view class="tire-block" wx:for="{{ detailInfo.pictureList }}" wx:key="index">
<view class="tire-img-box" catchtap="handlePreviewImg" data-url="{{ detailInfo.pictureList }}" data-index="{{ index }}"> <view class="tire-img-box" catchtap="handlePreviewImg" data-url="{{ detailInfo.pictureList }}" data-index="{{ index }}">
<image class="icon-delete" catchtap="handleDelete" wx:if="{{detailInfo.constructionStatus == 0}}" data-index="{{ index }}" src="{{ IMG_URL }}zy_paf_del_icon.png" /> <image
class="icon-delete"
catchtap="handleDelete"
wx:if="{{ detailInfo.constructionStatus == 0 }}"
data-index="{{ index }}"
src="{{ IMG_URL }}zy_paf_del_icon.png"
/>
<image class="tire-img" src="{{ item }}" /> <image class="tire-img" src="{{ item }}" />
</view> </view>
</view> </view>
</block> </block>
<block wx:elif="{{detailInfo.constructionStatus == 1}}"> <block wx:elif="{{ detailInfo.constructionStatus == 1 }}">
<view class="empty-box"> <view class="empty-box">
<image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode=""/> <image src="{{ IMG_URL }}repair-order/repair-order-empty.png" mode="" />
暂无数据 暂无数据
</view> </view>
</block> </block>
<view class="tire-block" bindtap="handleUpload" wx:if="{{ (!detailInfo.pictureList || detailInfo.pictureList.length < 9) && detailInfo.constructionStatus == 0}}"> <view
class="tire-block"
bindtap="handleUpload"
wx:if="{{ (!detailInfo.pictureList || detailInfo.pictureList.length < 9) && detailInfo.constructionStatus == 0 }}"
>
<view> <view>
<image class="icon-plus" src="{{ IMG_URL }}miniProgram/camera_icon.png" /> <image class="icon-plus" src="{{ IMG_URL }}miniProgram/camera_icon.png" />
<view class="plus-text">({{detailInfo.pictureList.length}}/9)</view> <view class="plus-text">({{detailInfo.pictureList.length}}/9)</view>
...@@ -104,10 +126,10 @@ ...@@ -104,10 +126,10 @@
<view class="flex">服务项目列表</view> <view class="flex">服务项目列表</view>
</view> </view>
<view class="service"> <view class="service">
<block wx:if="{{detailInfo.serviceItemsList.length}}"> <block wx:if="{{ detailInfo.serviceItemsList.length }}">
<block wx:for="{{detailInfo['serviceItemsList']}}" wx:key="index"> <block wx:for="{{ detailInfo['serviceItemsList'] }}" wx:key="index">
<view class="category text-hide">{{item.title}}</view> <view class="category text-hide">{{item.title}}</view>
<block wx:for="{{item.detailList}}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex"> <block wx:for="{{ item.detailList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view class="service-item"> <view class="service-item">
<view class="name">{{i.serviceItemsName}}</view> <view class="name">{{i.serviceItemsName}}</view>
<view class="bott"> <view class="bott">
...@@ -121,7 +143,7 @@ ...@@ -121,7 +143,7 @@
</block> </block>
<block wx:else> <block wx:else>
<view class="empty-box"> <view class="empty-box">
<image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode=""/> <image src="{{ IMG_URL }}repair-order/repair-order-empty.png" mode="" />
暂无数据 暂无数据
</view> </view>
</block> </block>
...@@ -131,13 +153,13 @@ ...@@ -131,13 +153,13 @@
<view class="title infoTitle"> <view class="title infoTitle">
<view class="flex">商品信息</view> <view class="flex">商品信息</view>
</view> </view>
<block wx:for="{{goodsObj}}" wx:key="index"> <block wx:for="{{ goodsObj }}" wx:key="index">
<view class="cell"> <view class="cell">
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
<block wx:if="{{ item.key == 'status' }}"> <block wx:if="{{ item.key == 'status' }}">
<view class="value" style="color:{{ outboundStatus[detailInfo.outboundStatus].color || '' }};">{{outboundStatus[detailInfo.outboundStatus].text}}</view> <view class="value" style="color:{{ outboundStatus[detailInfo.outboundStatus].color || '' }};">{{outboundStatus[detailInfo.outboundStatus].text}}</view>
</block> </block>
<block wx:elif="{{item.objKey}}"> <block wx:elif="{{ item.objKey }}">
<view class="value text-hide"> <view class="value text-hide">
<block>{{detailInfo[item.objKey][item.key] || '-'}}</block> <block>{{detailInfo[item.objKey][item.key] || '-'}}</block>
</view> </view>
...@@ -150,13 +172,16 @@ ...@@ -150,13 +172,16 @@
</view> </view>
</block> </block>
<view class="goods"> <view class="goods">
<view class="goods-item" wx:for="{{detailInfo.subOrderList}}" wx:key="index"> <view class="goods-item" wx:for="{{ detailInfo.subOrderList }}" wx:key="index">
<view class="goods-name text-hide"> <view class="goods-name text-hide">
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}} {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}
</view> </view>
<view class="bott text-hide" wx:if="{{item.rollNumber || (item.materialsUsed !== null && item.materialsUsed !== undefined)}}"> <view
class="bott text-hide"
wx:if="{{ item.rollNumber || (item.materialsUsed !== null && item.materialsUsed !== undefined) }}"
>
<text class="material">用料{{item.materialsUsed}}米/件</text> <text class="material">用料{{item.materialsUsed}}米/件</text>
<block wx:if="{{item.rollNumber}}"> <block wx:if="{{ item.rollNumber }}">
<text class="split">|</text> <text class="split">|</text>
<text class="cost">膜卷号{{item.rollNumber}}</text> <text class="cost">膜卷号{{item.rollNumber}}</text>
</block> </block>
...@@ -164,29 +189,30 @@ ...@@ -164,29 +189,30 @@
</view> </view>
</view> </view>
</view> </view>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{(detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG')) || (detailInfo.constructionStatus == 1 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN'))}}"> <view
class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}"
wx:if="{{ (detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG')) || (detailInfo.constructionStatus == 1 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN')) }}"
>
<!-- 未施工 技师可操作 --> <!-- 未施工 技师可操作 -->
<block wx:if="{{detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG')}}"> <block wx:if="{{ detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG') }}">
<view class="tips_box" wx:if="{{!hideOutTips && detailInfo.outboundStatus == 0}}"> <view class="tips_box" wx:if="{{ !hideOutTips && detailInfo.outboundStatus == 0 }}">
<image class="tipsIcon" src="{{IMG_URL}}miniProgram/tipsIcon.png" /> <image class="tipsIcon" src="{{ IMG_URL }}miniProgram/tipsIcon.png" />
<view class="contentText"> <view class="contentText">请仓库管理员核销物料出库单</view>
请仓库管理员核销物料出库单 <image class="close-image" bindtap="closeTips" data-key="hideOutTips" src="{{ IMG_URL }}repair-order/close.png" />
</view> </view>
<image class="close-image" bindtap="closeTips" data-key="hideOutTips" src="{{IMG_URL}}repair-order/close.png" /> <view class="tips_box" wx:if="{{ !hideTips }}">
</view> <image class="tipsIcon" src="{{ IMG_URL }}miniProgram/tipsIcon.png" />
<view class="tips_box" wx:if="{{!hideTips}}"> <view class="contentText">在页面中上传施工图片,点击完成施工按钮结束施工单</view>
<image class="tipsIcon" src="{{IMG_URL}}miniProgram/tipsIcon.png" /> <image class="close-image" bindtap="closeTips" data-key="hideTips" src="{{ IMG_URL }}repair-order/close.png" />
<view class="contentText">
在页面中上传施工图片,点击完成施工按钮结束施工单
</view>
<image class="close-image" bindtap="closeTips" data-key="hideTips" src="{{IMG_URL}}repair-order/close.png" />
</view> </view>
<view class="btns-con"> <view class="btns-con">
<view class="confirm text-center" bindtap="submit">确认完成施工</view> <view class="confirm text-center" bindtap="submit">确认完成施工</view>
</view> </view>
</block> </block>
<!-- 已施工/未审核 区域运营/驻店销售可操作 --> <!-- 已施工/未审核 区域运营/驻店销售可操作 -->
<block wx:if="{{detailInfo.constructionStatus == 1 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN')}}"> <block
wx:if="{{ detailInfo.constructionStatus == 1 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN') }}"
>
<view class="btns-con"> <view class="btns-con">
<view class="confirm text-center" bindtap="checkOrder">审核施工单</view> <view class="confirm text-center" bindtap="checkOrder">审核施工单</view>
</view> </view>
...@@ -194,9 +220,32 @@ ...@@ -194,9 +220,32 @@
</view> </view>
</view> </view>
</block> </block>
<time-select show="{{startTimeVisible}}" title="开始施工时间" defaultTime="{{detailInfo.startTime}}" isStartTime="{{true}}" endTime="{{detailInfo.endTime}}" bind:confirm="onStartTimeConfirm" bindcancel="onClosePicker"/> <time-select
<time-select show="{{endTimeVisible}}" title="结束施工时间" defaultTime="{{detailInfo.endTime}}" isStartTime="{{false}}" startTime="{{detailInfo.startTime}}" bind:confirm="onEndTimeConfirm" bindcancel="onClosePicker" /> show="{{ startTimeVisible }}"
<outbound-popup show="{{outboundVisible}}" title="物料出库" detailInfo="{{detailInfo}}" bindcancel="handleOutboundCancel" bindconfirm="handleOutboundConfirm" userPermissions="{{userPermissions}}"></outbound-popup> title="开始施工时间"
defaultTime="{{ detailInfo.startTime }}"
isStartTime="{{ true }}"
endTime="{{ detailInfo.endTime }}"
bind:confirm="onStartTimeConfirm"
bindcancel="onClosePicker"
/>
<time-select
show="{{ endTimeVisible }}"
title="结束施工时间"
defaultTime="{{ detailInfo.endTime }}"
isStartTime="{{ false }}"
startTime="{{ detailInfo.startTime }}"
bind:confirm="onEndTimeConfirm"
bindcancel="onClosePicker"
/>
<outbound-popup
show="{{ outboundVisible }}"
title="物料出库"
detailInfo="{{ detailInfo }}"
bindcancel="handleOutboundCancel"
bindconfirm="handleOutboundConfirm"
userPermissions="{{ userPermissions }}"
></outbound-popup>
<rework-popup <rework-popup
show="{{ reworkVisible }}" show="{{ reworkVisible }}"
title="返工确认" title="返工确认"
......
...@@ -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!