Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fcfdbb8e
authored
Sep 25, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 功能开发
1 parent
38ed417f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
930 additions
and
80 deletions
pages/tabWorkOrder/index.wxs
pages/tabWorkOrder/pages/index/index.sass
pages/tabWorkOrder/pages/index/index.wxml
router/routerBefore.js
tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal.js
tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal.json
tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal.sass
tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal.wxml
tabWorkOrder/components/relateGoodsPop/index.js
tabWorkOrder/components/relateGoodsPop/index.json
tabWorkOrder/components/relateGoodsPop/index.sass
tabWorkOrder/components/relateGoodsPop/index.wxml
tabWorkOrder/index.wxs
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.json
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.js
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.json
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.sass
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.wxml
tabWorkOrder/pages/orderDetail/orderDetail.js
tabWorkOrder/pages/orderDetail/orderDetail.json
tabWorkOrder/pages/orderDetail/orderDetail.wxml
tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.js
utils/track.js
pages/tabWorkOrder/index.wxs
View file @
fcfdbb8
...
@@ -11,11 +11,19 @@ var isIncludesItem = function (list, item) {
...
@@ -11,11 +11,19 @@ var isIncludesItem = function (list, item) {
// var flag = list.indexOf(item)
// var flag = list.indexOf(item)
return list.indexOf(item) != -1
return list.indexOf(item) != -1
}
}
var subStatus = function (item) {
var staus = {
"Y": 'constructionFlaged',
"N": 'constructionFlaging',
"Z": ''
}
return staus[item.constructionFlaged] || 'constructionFlaging'
}
/*
/*
* 导出
* 导出
*/
*/
module.exports = {
module.exports = {
replaceItemText: replaceItemText,
replaceItemText: replaceItemText,
isIncludesItem: isIncludesItem
isIncludesItem: isIncludesItem,
subStatus: subStatus
}
}
pages/tabWorkOrder/pages/index/index.sass
View file @
fcfdbb8
...
@@ -233,6 +233,18 @@ page {
...
@@ -233,6 +233,18 @@ page {
border-radius
:
100%
;
border-radius
:
100%
;
}
}
.
list
.
item
.
goods-list
.
constructionFlaging
:
:
after
{
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
background
:
url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaging.png)
;
}
.
list
.
item
.
goods-list
.
constructionFlaged
:
:
after
{
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
background
:
url(https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/constructionFlaged.png)
;
}
.list
.item
.goods-list
.goods
.goods-name
{
.list
.item
.goods-list
.goods
.goods-name
{
font-size
:
var
(
--
fontSize28
)
;
font-size
:
var
(
--
fontSize28
)
;
color
:
#292D33
;
color
:
#292D33
;
...
@@ -576,6 +588,7 @@ page {
...
@@ -576,6 +588,7 @@ page {
color
:
#292D33
;
color
:
#292D33
;
padding-left
:
24rpx
;
padding-left
:
24rpx
;
margin
:
0
auto
;
margin
:
0
auto
;
&
+
.modalbox
{
&
+
.modalbox
{
margin-top
:
16rpx
;
margin-top
:
16rpx
;
}
}
...
...
pages/tabWorkOrder/pages/index/index.wxml
View file @
fcfdbb8
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}">
<view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}">
<block wx:if="{{ li.subOrderList.length }}">
<block wx:if="{{ li.subOrderList.length }}">
<block wx:for="{{ li.subOrderList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<block wx:for="{{ li.subOrderList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view class="goods" wx:if="{{ li.showAllGoodsListFlag ? true : sindex < 2 }}">
<view class="goods
{{filter.subStatus(li.constructionFlag)}}
" wx:if="{{ li.showAllGoodsListFlag ? true : sindex < 2 }}">
<view class="goods-name text-hide">
<view class="goods-name text-hide">
{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || i.packageName||''}}
{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || i.packageName||''}}
</view>
</view>
...
@@ -133,14 +133,7 @@
...
@@ -133,14 +133,7 @@
<!-- footer -->
<!-- footer -->
</view>
</view>
<block wx:if="{{ isMake }}">
<block wx:if="{{ isMake }}">
<view
<view wx:if="{{ !li['confirmIndex'] }}" class="del" catchtap="delBtn" data-ind="{{ ind }}" data-item="{{ li }}" data-index="{{ index }}">
wx:if="{{ !li['confirmIndex'] }}"
class="del"
catchtap="delBtn"
data-ind="{{ ind }}"
data-item="{{ li }}"
data-index="{{ index }}"
>
<view>撤销</view>
<view>撤销</view>
<view>工单</view>
<view>工单</view>
</view>
</view>
...
...
router/routerBefore.js
View file @
fcfdbb8
class
RouterBefore
{
class
RouterBefore
{
constructor
(
options
)
{
constructor
(
options
)
{
console
.
log
(
'---------------- 路由初始化 ----------------'
)
//
console.log('---------------- 路由初始化 ----------------')
this
.
initPageProxy
()
this
.
initPageProxy
()
}
}
/**监听页面 */
/**监听页面 */
...
...
tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal.js
0 → 100644
View file @
fcfdbb8
// components/SelectInvoiceModal/SelectInvoiceModal.js
import
commonApi
from
'~/api/api'
Component
({
/**
* 组件的属性列表
*/
properties
:
{
visible
:
{
type
:
Boolean
,
value
:
false
,
observer
:
function
(
n
,
o
)
{
this
.
handleOpen
()
}
},
orderInfo
:
{
type
:
Object
,
value
:
{}
}
},
/**
* 组件的初始数据
*/
data
:
{
selectType
:
82
,
loading
:
false
},
/**
* 组件的方法列表
*/
methods
:
{
selectType
(
e
)
{
let
{
type
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
selectType
:
type
})
},
handleOpen
()
{
wx
.
$modal
(
this
,
{
show
:
true
,
tabTitleShow
:
true
,
tapTitle
:
'查看客户施工单'
,
success
:
res
=>
{
},
error
:
()
=>
{
}
},
'#modal'
)
},
handleCancel
()
{
this
.
triggerEvent
(
'cancel'
)
},
handleConfirm
()
{
this
.
triggerEvent
(
'confirm'
)
this
.
handleCancel
()
}
}
})
tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal.json
0 → 100644
View file @
fcfdbb8
{
"component"
:
true
,
"usingComponents"
:
{
"modal"
:
"/components/modal/modal"
}
}
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal.sass
0 → 100644
View file @
fcfdbb8
/* components/SelectInvoiceModal/SelectInvoiceModal.wxss */
.modatcontent
{
box-sizing
:
border-box
;
margin
:
var
(
--
fontSize48
)
0
0
;
max-height
:
600rpx
;
overflow-y
:
scroll
;
display
:
flex
;
flex-direction
:
column
;
.itemContent
{
box-sizing
:
border-box
;
display
:
flex
;
align-items
:
center
;
border-bottom
:
1rpx
solid
#f2f2f3
;
// margin-top: 24rpx;
margin
:
24rpx
2rpx
0
;
}
.itembox
{
box-sizing
:
border-box
;
padding
:
0
48rpx
;
height
:
120rpx
;
display
:
flex
;
// align-items: center;
flex-direction
:
column
;
.subName
{
overflow
:
hidden
;
//
一定要写
text-overflow
:
ellipsis
;
//
超出省略号
display
:
-
webkit-box
;
//
一定要写
-webkit-line-clamp
:
1
;
//
控制行数
-webkit-box-orient
:
vertical
;
//
一定要写
width
:
480rpx
;
height
:
40rpx
;
margin-bottom
:
18rpx
;
}
.part
{
display
:
flex
;
align-items
:
center
;
.position
{
font-size
:
24rpx
;
color
:
#999EA8
;
margin-right
:
16rpx
;
}
.statusBox
{
font-weight
:
500
;
font-size
:
18rpx
;
width
:
67rpx
;
height
:
26rpx
;
color
:
#35C376
;
border
:
1
.6rpx
solid
#35C376
;
border-radius
:
4rpx
;
line-height
:
26rpx
;
text-align
:
center
;
}
.wait
{
color
:
#FF9D0A
;
border
:
1
.6rpx
solid
#FF9D0A
;
}
}
}
.itembox
+
.itembox
{
border-top
:
1rpx
solid
#EFF0F2
;
}
.right
{
.arrow
{
display
:
inline-block
;
width
:
32rpx
;
height
:
32rpx
;
}
}
}
.modal
{
.icon
{
width
:
96rpx
;
height
:
96rpx
;
margin-right
:
30rpx
;
}
.modalbox
{
display
:
flex
;
align-items
:
center
;
box-sizing
:
border-box
;
width
:
522rpx
;
height
:
136rpx
;
background
:
#F7F8FA
;
border-radius
:
8rpx
;
font-family
:
PingFangSC-Medium
;
font-weight
:
500
;
font-size
:
28rpx
;
color
:
#292D33
;
padding-left
:
24rpx
;
margin
:
0
auto
;
&
+
.modalbox
{
margin-top
:
16rpx
;
}
.txt
{
font-size
:
24rpx
;
}
}
.act
{
background
:
#347bff
1a
;
border
:
2rpx
solid
#347BFF
;
color
:
#3582EE
;
}
}
.btnbox
{
// margin-top: 32rpx;
display
:
flex
;
justify-content
:
center
;
.btn
{
width
:
250rpx
;
height
:
100rpx
;
line-height
:
100rpx
;
text-align
:
center
;
border-radius
:
12rpx
;
font-size
:
32rpx
;
// margin-bottom: 48rpx;
}
.cancel
{
background
:
#FFFFFF
;
// border: 2rpx solid #DEE0E3;
color
:
#222222
;
}
.confirm
{
color
:
#FFFFFF
;
background
:
#347BFF
;
margin-left
:
24rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal.wxml
0 → 100644
View file @
fcfdbb8
<!--components/SelectInvoiceModal/SelectInvoiceModal.wxml-->
<!-- 申请开票 - 选择发票类型弹窗 -->
<!-- btns="{{ ['取消','确定'] }}" -->
<modal id="modal" class="modal" custom="true" btns="{{ [] }}" maskEnable="{{ false }}" tapTitle="查看客户施工单">
<view class="modatcontent">
<view wx:for="{{ 10 }}" class="itemContent">
<view class="itembox">
<view class="subName">强生尊誉版GH7车身强生尊誉版强生尊誉版GH7车身强生尊誉版强生尊誉版GH7车身强生尊誉版22222222222</view>
<view class="part">
<view class="position">麦麦/左中单</view>
<!-- <view class="statusBox" wx:if="{{ true }}">已施工</view> -->
<view class="statusBox wait" wx:if="{{ true }}">待施工</view>
</view>
</view>
<view class="right">
<image class="arrow" src="/components/images/arrow-x.png"></image>
</view>
</view>
</view>
<view class="btnbox">
<view class="btn cancel" bind:tap="handleCancel">关闭</view>
<!-- <view class="btn confirm" bind:tap="handleConfirm">下一步</view> -->
</view>
</modal>
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/components/relateGoodsPop/index.js
0 → 100644
View file @
fcfdbb8
// tabRepairOrder/components/relateGoodsPop/index.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
goodsList
:
Array
,
selected
:
Array
,
baseConfigData
:
Object
,
show
:
{
type
:
Boolean
,
observer
:
function
(
n
)
{
if
(
n
)
{
let
{
goodsList
,
selected
}
=
this
.
data
goodsList
?.
map
(
val
=>
{
val
.
active
=
false
if
(
selected
?.
findIndex
(
v
=>
v
.
upgradeGoodsId
==
val
.
upgradeGoodsId
)
>
-
1
)
val
.
active
=
true
return
val
})
this
.
setData
({
goodsList
})
}
}
}
},
/**
* 组件的初始数据
*/
data
:
{
},
/**
* 组件的方法列表
*/
methods
:
{
choose
(
e
)
{
let
{
item
}
=
e
.
currentTarget
.
dataset
let
{
goodsList
}
=
this
.
data
goodsList
?.
forEach
(
val
=>
{
if
(
val
.
upgradeGoodsId
==
item
.
upgradeGoodsId
)
val
.
active
=
!
val
.
active
})
this
.
setData
({
goodsList
})
},
cancel
()
{
this
.
triggerEvent
(
'cancel'
)
},
confirm
()
{
let
{
goodsList
}
=
this
.
data
const
arr
=
goodsList
?.
filter
(
val
=>
val
.
active
)
if
(
!
arr
.
length
)
return
wx
.
$util
.
showToast
(
'请选择关联商品'
)
this
.
triggerEvent
(
'confirm'
,
arr
)
}
}
})
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/components/relateGoodsPop/index.json
0 → 100644
View file @
fcfdbb8
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/components/relateGoodsPop/index.sass
0 → 100644
View file @
fcfdbb8
/* tabRepairOrder/components/relateGoodsPop/index.wxss */
.goods-content
{
width
:
calc
(
100%
+
var
(
--
fontSize64
))
;
height
:
100%
;
margin-left
:
calc
(
-1
*
var
(
--
fontSize32
))
;
.content
{
height
:
calc
(
100%
-
var
(
--
fontSize104
))
;
.box
{
border-bottom
:
var
(
--
fontSize2
)
solid
#EBEDF0
;
.itemBox
{
display
:
flex
;
align-items
:
center
;
.choose
{
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
margin
:
0
var
(
--
fontSize32
)
;
}
.item
{
flex
:
1
;
justify-content
:
space-between
;
padding-right
:
var
(
--
fontSize32
)
;
width
:
calc
(
100%
-
var
(
--
fontSize130
))
;
border-top
:
var
(
--
fontSize2
)
solid
#EBEDF0
;
height
:
var
(
--
fontSize84
)
;
display
:
flex
;
align-items
:
center
;
font-size
:
var
(
--
fontSize28
)
;
color
:
#888888
;
position
:
relative
;
.labelWidth
{
width
:
calc
(
100%
-
var
(
--
fontSize180
))
;
}
.value
{
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
.name
{
max-width
:
85%
;
width
:calc
(
100vw
-
var
(
--fontSize100
))
}
.text-hide
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
}
}
}
}
.selected-box
{
text-align
:
center
;
font-size
:
var
(
--
fontSize28
)
;
color
:
#888888
;
margin-top
:
var
(
--
fontSize30
)
;
text
{
color
:
#347BFF
;
}
}
}
tabWorkOrder/components/relateGoodsPop/index.wxml
0 → 100644
View file @
fcfdbb8
<!--tabRepairOrder/components/relateGoodsPop/index.wxml-->
<wxs src="../../index.wxs" module="filter" />
<popup show="{{show}}" title="选择关联商品" bindconfirm="confirm" height="50%" bindcancel="cancel">
<view class="goods-content">
<scroll-view class="content" scroll-y show-scrollbar="{{false}}">
<block wx:if="{{goodsList.length > 0}}">
<view class="box">
<block wx:for="{{goodsList}}" wx:key="ind" wx:for-index="ind" wx:for-item="i">
<view class="item-wrap">
<view class="itemBox">
<view class="choose" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<image src="{{i.active ? '../../../components/images/radio.png' : '../../../components/images/radio_icon.png'}}" />
</view>
<view class="item">
<view class="value {{i.active?'labelWidth':''}}" catchtap="choose" data-ind="{{ind}}" data-item="{{i}}">
<view class="name text-hide {{i.active?'textWidth':''}}">
<text>{{filter.replaceItemText(i.goodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || filter.replaceItemText(i.goodsName)}}</text>
<text wx:if="{{i.position && (i.goodsType == 1 || i.goodsType == baseConfigData.selfBuildFilmType)}}">{{'「' + i.positionStr+'」'}}</text>
<!-- <text class="warning_text" wx:if="{{!i.goods.merchantGoodsPosition && (i.goods.goodsInfo.goodsType == 1 || i.goods.goodsInfo.goodsType == baseConfigData.selfBuildFilmType)}}">无部位</text> -->
</view>
</view>
</view>
</view>
</view>
</block>
</view>
</block>
<block wx:else>
<view class="nothing">暂无数据</view>
</block>
</scroll-view>
<view class="selected-box">已选商品 <text>{{filter.activeNum(goodsList)}}</text> 件</view>
</view>
</popup>
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/index.wxs
View file @
fcfdbb8
...
@@ -93,7 +93,8 @@ var filterOrderStatus = function (infoData) {
...
@@ -93,7 +93,8 @@ var filterOrderStatus = function (infoData) {
var subOrderList = infoData.subOrderList
var subOrderList = infoData.subOrderList
var refundApplyDetailList = infoData.refundApplyDetailList
var refundApplyDetailList = infoData.refundApplyDetailList
subOrderList.forEach(function (val) {
subOrderList.forEach(function (val) {
refundApplyDetailList && refundApplyDetailList.forEach(function (v) {
refundApplyDetailList &&
refundApplyDetailList.forEach(function (v) {
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = false
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = false
})
})
})
})
...
@@ -101,21 +102,53 @@ var filterOrderStatus = function (infoData) {
...
@@ -101,21 +102,53 @@ var filterOrderStatus = function (infoData) {
}
}
// 判断退款详情是否可操作
// 判断退款详情是否可操作
var filterRefundDisabled = function (infoData, userInfo
,
) {
var filterRefundDisabled = function (infoData, userInfo) {
var afterStatus = infoData.afterStatus
var afterStatus = infoData.afterStatus
var subOrderList = infoData.subOrderList
var subOrderList = infoData.subOrderList
var refundApplyDetailList = infoData.refundApplyDetailList
var refundApplyDetailList = infoData.refundApplyDetailList
var loginRole = userInfo.loginRole
var loginRole = userInfo.loginRole
var flag = false
var flag = false
subOrderList.forEach(function (val) {
subOrderList.forEach(function (val) {
refundApplyDetailList && refundApplyDetailList.forEach(function (v) {
refundApplyDetailList &&
refundApplyDetailList.forEach(function (v) {
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = true
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = true
})
})
})
})
return afterStatus === 0
return (
|| (afterStatus && afterStatus != 5)
afterStatus === 0 ||
|| loginRole == 3
(afterStatus && afterStatus != 5) ||
|| (afterStatus == 5 && flag)
loginRole == 3 ||
(afterStatus == 5 && flag)
)
}
var activeNum = function (array, subKey) {
var count = 0
for (var i = 0; i < array.length; i++) {
if (array[i][subKey]) {
for (var j = 0; j < array[i][subKey].length; j++) {
if (array[i][subKey][j] && array[i][subKey][j].active) {
count++
}
}
} else {
if (array[i] && array[i].active) {
count++
}
}
}
return count
}
var techicianName = function (array) {
var result = ''
for (var i = 0; i < array.length; i++) {
if (array[i] && array[i].staffName) {
if (result !== '') {
result += '/'
}
result += array[i].staffName
}
}
return result
}
}
/*
/*
...
@@ -130,5 +163,7 @@ module.exports = {
...
@@ -130,5 +163,7 @@ module.exports = {
filterTemplateList: filterTemplateList,
filterTemplateList: filterTemplateList,
filterShowBtn: filterShowBtn,
filterShowBtn: filterShowBtn,
filterOrderStatus: filterOrderStatus,
filterOrderStatus: filterOrderStatus,
filterRefundDisabled: filterRefundDisabled
filterRefundDisabled: filterRefundDisabled,
activeNum: activeNum,
techicianName: techicianName
}
}
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.json
View file @
fcfdbb8
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
"orderRatingPopup"
:
"/tabWorkOrder/components/orderRatingPopup/orderRatingPopup"
,
"orderRatingPopup"
:
"/tabWorkOrder/components/orderRatingPopup/orderRatingPopup"
,
"select-invoice-modal"
:
"/components/SelectInvoiceModal/SelectInvoiceModal"
,
"select-invoice-modal"
:
"/components/SelectInvoiceModal/SelectInvoiceModal"
,
"apply-refund-btn"
:
"/tabWorkOrder/components/applyRefundBtn/applyRefundBtn"
,
"apply-refund-btn"
:
"/tabWorkOrder/components/applyRefundBtn/applyRefundBtn"
,
"order-prompt-popup"
:
"/components/orderPromptPop/orderPromptPop"
"order-prompt-popup"
:
"/components/orderPromptPop/orderPromptPop"
,
"ConstructionDetailModal"
:
"/tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal"
}
}
}
}
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.wxml
View file @
fcfdbb8
...
@@ -3,7 +3,10 @@
...
@@ -3,7 +3,10 @@
<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 wx:if="{{ flag }}">
<block wx:if="{{ flag }}">
<view class="main {{ isFullSucreen?'isFullSucreen':'' }}" style="{{ showRatingPopup ? 'overflow: hidden;height:100vh;' : '' }}">
<view
class="main {{ isFullSucreen?'isFullSucreen':'' }}"
style="{{ showRatingPopup ? 'overflow: hidden;height:100vh;' : '' }}"
>
<view class="status-box">
<view class="status-box">
<view class="userInfo" hover-class="none" hover-stop-propagation="false">
<view class="userInfo" hover-class="none" hover-stop-propagation="false">
<image class="" src="../../images/activeIcon.png" />
<image class="" src="../../images/activeIcon.png" />
...
@@ -72,7 +75,9 @@
...
@@ -72,7 +75,9 @@
<view class="price">¥{{item.price}}</view>
<view class="price">¥{{item.price}}</view>
</view>
</view>
<view class="subItem_box">
<view class="subItem_box">
<view style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}">
<view
style="{{ !orderInfo.isOpenArtificer || !item.upgradeGoodsPosition ? 'display: flex; justify-content: space-between; width: 100%;' : 'display: flex;' }}"
>
<view class="position">
<view class="position">
{{item.positionStr || item.upgradeGoodsTypeName}}
{{item.positionStr || item.upgradeGoodsTypeName}}
<text class="type">x{{item.number}}</text>
<text class="type">x{{item.number}}</text>
...
@@ -109,14 +114,19 @@
...
@@ -109,14 +114,19 @@
</view>
</view>
<view class="box">
<view class="box">
<view class="title infoTitle">
<view class="title infoTitle">
<view class="flex">工单信息
<view class="flex">
工单信息
<view style="display: flex;gap: var(--fontSize32);margin-left: var(--fontSize32);">
<view style="display: flex;gap: var(--fontSize32);margin-left: var(--fontSize32);">
<view wx:if="{{orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2}}" class="invoice-btn" bindtap="handleBtnInvoice">
<view
wx:if="{{ orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2 }}"
class="invoice-btn"
bindtap="handleBtnInvoice"
>
<gl-image class="icon" src="/icon-invoice.png"></gl-image>
<gl-image class="icon" src="/icon-invoice.png"></gl-image>
{{invoiceName}}
{{invoiceName}}
</view>
</view>
<view wx:if="{{isStaff && showMoreBtn
}}">
<view wx:if="{{ isStaff && showMoreBtn
}}">
<apply-refund-btn orderInfo="{{orderInfo
}}"></apply-refund-btn>
<apply-refund-btn orderInfo="{{ orderInfo
}}"></apply-refund-btn>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -149,11 +159,20 @@
...
@@ -149,11 +159,20 @@
</block>
</block>
</view>
</view>
</block>
</block>
<block wx:if="{{ (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length }}">
<block
wx:if="{{ (orderInfo.selectPayType == 2 || orderInfo.selectPayType == 5 || orderInfo.selectPayType == 6 || orderInfo.selectPayType == 7) && orderInfo.payVoucherList.length }}"
>
<view class="cell">
<view class="cell">
<view class="label">付款凭证</view>
<view class="label">付款凭证</view>
<view class="image-box">
<view class="image-box">
<view class="value" bindtap="previewImage" wx:for="{{ orderInfo.payVoucherList }}" wx:key="index" data-index="{{ index }}" data-url="{{ orderInfo.payVoucherList }}">
<view
class="value"
bindtap="previewImage"
wx:for="{{ orderInfo.payVoucherList }}"
wx:key="index"
data-index="{{ index }}"
data-url="{{ orderInfo.payVoucherList }}"
>
<view class="image">
<view class="image">
<image src="{{ item.payVoucher }}" />
<image src="{{ item.payVoucher }}" />
</view>
</view>
...
@@ -169,11 +188,18 @@
...
@@ -169,11 +188,18 @@
<view class="title userTitle">
<view class="title userTitle">
<view>客户信息</view>
<view>客户信息</view>
<!-- 已退款或已开票不可修改客户任何信息 -->
<!-- 已退款或已开票不可修改客户任何信息 -->
<view bindtap="jumpUserPortrait" class="updateInfo icon {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}">
<view
bindtap="jumpUserPortrait"
class="updateInfo icon {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}"
>
<image src="{{ IMG_URL }}miniProgram/custom_portrait_icon.png" class="iconImage"></image>
<image src="{{ IMG_URL }}miniProgram/custom_portrait_icon.png" class="iconImage"></image>
画像
画像
</view>
</view>
<view wx:if="{{ isYqdSuper||isStaff }}" bindtap="jumpUpdate" class="updateInfo {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}">
<view
wx:if="{{ isYqdSuper||isStaff }}"
bindtap="jumpUpdate"
class="updateInfo {{ orderInfo.status == 12 || orderInfo.invoiceStatus == 2 ||!isMake? 'isHide' : '' }}"
>
<image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="iconImage"></image>
<image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="iconImage"></image>
客户信息
客户信息
</view>
</view>
...
@@ -239,11 +265,9 @@
...
@@ -239,11 +265,9 @@
<view class="warranty-card">
<view class="warranty-card">
<view class="warranty-name">
<view class="warranty-name">
<view class="name text-hide value">{{filter.replaceItemText(item.goodsName)}}</view>
<view class="name text-hide value">{{filter.replaceItemText(item.goodsName)}}</view>
<view wx:if="{{item.warrantyPeriod}}" class="right" bind:tap="showWarranty" data-item="{{item
}}">
<view wx:if="{{ item.warrantyPeriod }}" class="right" bind:tap="showWarranty" data-item="{{ item
}}">
<gl-image class="editIcon" src="/miniProgram/edit_icon.png"></gl-image>
<gl-image class="editIcon" src="/miniProgram/edit_icon.png"></gl-image>
<view class="warranty-price">
<view class="warranty-price">质保价格</view>
质保价格
</view>
</view>
</view>
</view>
</view>
<view class="value">
<view class="value">
...
@@ -336,24 +360,40 @@
...
@@ -336,24 +360,40 @@
</view>
</view>
</view>
</view>
</modal>
</modal>
<modal id="modal4" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<modal id="modal4" class="modal" custom="true" btns="{{ ['取消','确定'] }}">
<view class="modatcontent">
<view class="modatcontent">
<view class="title">
<view class="title">质保价格</view>
质保价格
<view class="productName">产品: {{filter.replaceItemText(warrantyEditObj.goodsName)}}</view>
</view>
<view class="productName">
产品: {{filter.replaceItemText(warrantyEditObj.goodsName)}}
</view>
<view class="label">质保价格</view>
<view class="label">质保价格</view>
<view class="textarea">
<view class="textarea">
<gl-textarea focus="{{focus}}" showWordLimit="{{true}}" value="{{warrantyEditObj.warrantyPrice}}" bindinput="blur" bindblur="blur" maxlength="50" placeholder="请输入内容,最多50字" />
<gl-textarea
</view>
focus="{{ focus }}"
<view class="tips">
showWordLimit="{{ true }}"
质保价格输入的内容会在车主查询质保卡时显示
value="{{ warrantyEditObj.warrantyPrice }}"
</view>
bindinput="blur"
bindblur="blur"
maxlength="50"
placeholder="请输入内容,最多50字"
/>
</view>
<view class="tips">质保价格输入的内容会在车主查询质保卡时显示</view>
</view>
</view>
</modal>
</modal>
<orderRatingPopup bind:close="RatingPopupSetting" title="查看签名/施工图" flag="{{ showRatingPopup }}" wx:if="{{ showRatingPopup }}" orderInfoSetting="{{ orderInfo }}" />
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{orderInfo}}"></select-invoice-modal>
<order-prompt-popup wx:if="{{ showPromptDialog }}" show="{{ showPromptDialog }}" bindcancel="promptCancel" bindconfirm="promptHandleConfirm" popupSlotStyle="height: calc(100% - var(--fontSize160));" height="var(--fontSize540);" includesChildHeight="var(--fontSize1020);" sceneObj="{{orderInfo}}"></order-prompt-popup>
\ No newline at end of file
\ No newline at end of file
<orderRatingPopup
bind:close="RatingPopupSetting"
title="查看签名/施工图"
flag="{{ showRatingPopup }}"
wx:if="{{ showRatingPopup }}"
orderInfoSetting="{{ orderInfo }}"
/>
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal>
<order-prompt-popup
wx:if="{{ showPromptDialog }}"
show="{{ showPromptDialog }}"
bindcancel="promptCancel"
bindconfirm="promptHandleConfirm"
popupSlotStyle="height: calc(100% - var(--fontSize160));"
height="var(--fontSize540);"
includesChildHeight="var(--fontSize1020);"
sceneObj="{{ orderInfo }}"
></order-prompt-popup>
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.js
View file @
fcfdbb8
This diff is collapsed.
Click to expand it.
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.json
View file @
fcfdbb8
{
{
"navigationBarTitleText"
:
"创建施工订单"
,
"navigationBarTitleText"
:
"创建施工订单"
,
"enablePullDownRefresh"
:
true
,
"enablePullDownRefresh"
:
true
,
"usingComponents"
:
{}
"usingComponents"
:
{
"relate-goods-popup"
:
"../../components/relateGoodsPop/index"
,
"artificer-select-popup"
:
"/components/ArtificerSelectPopup/artificerSelectPopup"
}
}
}
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.sass
View file @
fcfdbb8
...
@@ -3,14 +3,28 @@ page {
...
@@ -3,14 +3,28 @@ page {
background-color
:
rgb
(
246
,
247
,
247
)
;
background-color
:
rgb
(
246
,
247
,
247
)
;
}
}
.box
{
.main
{
box-sizing
:
border-box
;
// padding: 0 var(--fontSize20) var(--fontSize376);
padding
:
0rpx
20rpx
200rpx
;
padding-bottom
:
250rpx
;
// overflow-y: scroll;
&
.showTips
{
padding-bottom
:
360rpx
;
}
.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
)
;
border-radius
:
var
(
--
fontSize16
)
;
border-radius
:
var
(
--
fontSize16
)
;
overflow
:
hidden
;
overflow
:
hidden
;
margin-top
:
var
(
--
fontSize20
)
;
margin-top
:
var
(
--
fontSize20
)
;
}
}
}
.btns-con
{
.btns-con
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
flex
;
display
:
flex
;
...
@@ -96,3 +110,253 @@ page {
...
@@ -96,3 +110,253 @@ page {
.isFullSucreen-btn
{
.isFullSucreen-btn
{
padding-bottom
:
34px
!
important
;
padding-bottom
:
34px
!
important
;
}
}
.tipsadd
{
position
:
relative
;
box-sizing
:
border-box
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
line-height
:
52rpx
;
background
:
#FFF5E6
;
height
:
var
(
--
fontSize52
)
;
padding-left
:
24rpx
;
width
:
100%
;
color
:
#FF9D0A
;
font-size
:
var
(
--
fontSize24
)
;
}
.tipsIcon
{
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
margin-right
:
var
(
--
fontSize20
)
;
z-index
:
1
;
}
.tipsadd
.contentText
{
// margin-left: var(--fontSize20);
margin-right
:
auto
;
display
:
flex
;
font-weight
:
500
;
flex-direction
:
column
;
.tradeNo
{
max-width
:
400rpx
;
margin-right
:
10rpx
;
}
.tradeNoCon
{
display
:
flex
;
justify-content
:
space-between
;
}
.tipsbox
{
margin-top
:
20rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.tipsbtn
{
position
:
absolute
;
right
:
120rpx
;
bottom
:
20rpx
;
color
:
#347BFF
;
padding
:
var
(
--
fontSize6
)
var
(
--
fontSize20
)
;
margin-left
:
auto
;
border
:
1px
solid
#347BFF
;
border-radius
:
var
(
--
fontSize28
)
;
margin-top
:
-26rpx
;
margin-right
:
-90rpx
;
}
}
.orderBox
{
.cell-label
{
font-weight
:
500
;
}
.goodsListCon
{
box-sizing
:
border-box
;
// width: 686rpx;
// width: 100%;
display
:
flex
;
flex-direction
:
column
;
background
:
#F7F8FA
;
border-radius
:
12rpx
;
padding
:
24rpx
;
margin
:
0
16rpx
16rpx
;
.goods
{
display
:
flex
;
align-items
:
center
;
.dot
{
width
:
12rpx
;
height
:
12rpx
;
background
:
#347BFF
;
border-radius
:
100%
;
margin-right
:
16rpx
;
}
.name
{
overflow
:
hidden
;
//
一定要写
text-overflow
:
ellipsis
;
//
超出省略号
display
:
-
webkit-box
;
//
一定要写
-webkit-line-clamp
:
1
;
//
控制行数
-webkit-box-orient
:
vertical
;
//
一定要写
// width: 480rpx;
flex
:
1
;
height
:
40rpx
;
}
}
.goods
+
.goods
{
margin-top
:
16rpx
;
}
}
}
.servies-content
{
// margin: 0 calc(-1 * var(--fontSize32));
margin-top
:
32rpx
;
height
:
100%
;
width
:
100%
;
.title
{
display
:
flex
;
font-weight
:
500
;
font-size
:
28rpx
;
color
:
#292D33
;
height
:
96rpx
;
line-height
:
96rpx
;
box-sizing
:
border-box
;
padding
:
0
32rpx
;
.check-tip
{
margin-left
:
auto
;
color
:
#757980
;
font-size
:
var
(
--
fontSize24
)
;
text
{
color
:
#347BFF
;
}
}
}
.content
{
margin
:
0
var
(
--
fontSize32
)
;
// border-top: var(--fontSize2) solid #EFF0F2;
height
:
calc
(
100%
-
var
(
--
fontSize200
))
;
.item-top
{
height
:
var
(
--
fontSize96
)
;
margin-top
:
var
(
--
fontSize16
)
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
color
:
#292D33
;
font-size
:
var
(
--
fontSize28
)
;
.left
{
display
:
flex
;
align-items
:
center
;
}
.rotate-180
{
transform
:
rotate
(
180deg
)
;
}
image
{
width
:
var
(
--
fontSize48
)
;
height
:
var
(
--
fontSize48
)
;
margin-right
:
var
(
--
fontSize8
)
;
}
.check-tip
{
color
:
#757980
;
font-size
:
var
(
--
fontSize24
)
;
text
{
color
:
#347BFF
;
}
}
}
.mt
{
&
.mt
{
margin-top
:
16rpx
;
}
}
.item-box
{
background
:
#F7F8FA
;
border-radius
:
var
(
--
fontSize12
)
;
padding
:
var
(
--
fontSize24
)
var
(
--
fontSize32
)
var
(
--
fontSize24
)
var
(
--
fontSize24
)
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
var
(
--
fontSize16
)
;
&
:last-child
{
margin-bottom
:
0
;
}
.cellBox
{
width
:
calc
(
100%
-
var
(
--
fontSize56
))
;
.ser-name
{
color
:
#EA6612
;
margin-bottom
:
var
(
--
fontSize12
)
;
font-size
:
var
(
--
fontSize26
)
;
}
.text-hide
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.other
{
color
:
#5A5E66
;
font-size
:
var
(
--
fontSize24
)
;
}
}
.check
{
flex
:
0
0
var
(
--
fontSize32
)
;
flex-shrink
:
0
;
image
{
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
}
.arc
{
width
:
var
(
--
fontSize32
)
;
height
:
var
(
--
fontSize32
)
;
border-radius
:
var
(
--
fontSize6
)
;
border
:
var
(
--
fontSize2
)
solid
#D0D2D6
;
}
}
}
}
.bottom
{
height
:
var
(
--
fontSize96
)
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
color
:
#888888
;
font-size
:
var
(
--
fontSize28
)
;
text
{
color
:
#347BFF
;
margin
:
0
var
(
--
fontSize8
)
;
}
}
}
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.wxml
View file @
fcfdbb8
...
@@ -4,56 +4,145 @@
...
@@ -4,56 +4,145 @@
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- wx:if="{{flag}}" -->
<!-- wx:if="{{flag}}" -->
<block>
<block>
<view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}">
<view>
<view>
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" scroll activeIndex="{{ tabIndex }}" />
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" scroll activeIndex="{{ tabIndex }}" />
</view>
</view>
<scroll-view scroll-y style="height: 80vh;" enhanced="{{ true }}" show-scrollbar="{{ false }}">
<view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="box">
<view class="box">
<view class="userId">
<view class="orderBox">
<gl-cell
border="{{ false }}"
valueAlign="right"
label="选择商品并创建此施工单"
labelWidth="var(--fontSize330)"
haveArrow
bindclick="relateGoods"
data-show-name="selesBox"
placeholder="请选择"
disabled="{{ false }}"
></gl-cell>
<view class="goodsListCon">
<view class="goods" wx:for="{{ confirmInfo.subOrderList }}">
<view class="dot"></view>
<view class="name">{{item.upgradeGoodsName}}</view>
</view>
</view>
</view>
</view>
<view class="servies-content box">
<view class="title">选择技师</view>
<gl-cell
<gl-cell
border
border
valueAlign="right"
valueAlign="right"
label="
{{ pointsMultiRole=='Y'?'销售顾问 /录单员':'销售顾问' }}
"
label="
主技师
"
requiredAfter
requiredAfter
labelWidth="var(--fontSize140)"
labelWidth="var(--fontSize140)"
required
required
haveArrow
haveArrow
bindclick="showPopup"
bindclick="showPopup"
data-show-name="selesBox"
placeholder="请选择"
placeholder="点击选择"
disabled="{{ orderObj.orderSource == 5 }}"
>
>
<block wx:if="{{ orderObj.merchantName && orderObj.employeeName }}">
<block wx:if="{{ mainSelected.length }}">
<view class="between">
<view class="techic-value text-hide">{{mainSelected[0] && mainSelected[0].staffName}}</view>
<view class="start text-hide">{{orderObj.merchantName}}</view>
</block>
<view class="end text-hide">
</gl-cell>
<text>|</text>
<gl-cell
{{orderObj.employeeName}}
border
valueAlign="right"
label="副手技师"
labelWidth="var(--fontSize140)"
haveArrow
bindclick="showPopup"
data-type="deputy"
placeholder="请选择"
>
<block wx:if="{{ deputySelected.length }}">
<view class="techic-value text-hide">{{filter.techicianName(deputySelected)}}</view>
</block>
</gl-cell>
</view>
<view class="servies-content box">
<view class="title">
选择服务项目
<view class="check-tip">
共选择:
<text>{{filter.activeNum(servicesList, 'detailList')}}</text>
个
</view>
</view>
<view class="content">
<block wx:for="{{ servicesList }}" wx:key="index">
<view class="content-box">
<view class="item-top" bindtap="handleShowItem" data-index="{{ index }}">
<view class="left">
<image src="{{ IMG_URL }}collapse_icon.png" class="{{ !item.showItemFlag ? 'rotate-180' : '' }}" mode="" />
<text calss="name">{{item.title}}</text>
</view>
<view class="check-tip">
已选择:
<text>{{filter.activeNum(item.detailList)}}</text>
个
</view>
</view>
<block wx:for="{{ item.detailList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
<view hidden="{{ !item.showItemFlag }}" class="mt">
<view class="item-box">
<view class="cellBox">
<view class="ser-name text-hide">{{i.serviceItemsName}}</view>
<view class="other">
<text>用料标准{{i.materialStandard}}米/件</text>
|
<text>施工标准{{i.timeStandard}}min</text>
</view>
</view>
</view>
</view>
<view class="check" bindtap="handleChecked" data-target="{{ i }}">
<block wx:if="{{ i.active }}">
<image src="{{ IMG_URL }}check.png" mode="" />
</block>
<block wx:else>
<view class="arc"></view>
</block>
</block>
</gl-cell>
</view>
</view>
</view>
</view>
</view>
</view>
</block>
</view>
</block>
</view>
</view>
</view>
</scroll-view>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="tipsadd" wx:if="{{ showTips }}">
<view class="tipsadd" wx:if="{{ showTips }}">
<
image class="tipsIcon" src="../../../images/tips.png" /
>
<
gl-image class="tipsIcon" webp src="/miniProgram/tipsIcon.png"></gl-image
>
<view class="contentText">
<view class="contentText">
<view class="tradeNoCon">
<view class="tradeNoCon">
<view>交易参考号:</view>
<view>需要将客户已选的商品全部生成施工单</view>
<view class="tradeNo text-hide">{{tradeNo}}</view>
<view>(共{{selectOutTradeNoArr.length}}条)</view>
</view>
<view class="tipsbox">
<view>支付金额:¥{{totalFee/100}}</view>
<view class="tipsbtn" bindtap="tipsEvent">补录订单</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="btns-con">
<view class="btns-con">
<view class="save text-center
{{ isErrorOrder || isAlreadyExistOrder ?'disabled':'' }}" bindtap="submit" data-save>建档
</view>
<view class="save text-center
" bindtap="backup">上一步
</view>
<view class="confirm text-center" bindtap="submit">
直接下
单</view>
<view class="confirm text-center" bindtap="submit">
提交施工
单</view>
</view>
</view>
</view>
</view>
</block>
</block>
<relate-goods-popup
show="{{ relateGoodsVisable }}"
goodsList="{{ goodsList }}"
bindconfirm="handelRelateGoodsConfirm"
selected="{{ editGoodsList }}"
bindcancel="handelRelateGoodsCancel"
baseConfigData="{{ baseConfigData }}"
></relate-goods-popup>
<artificer-select-popup
show="{{ artificerSelectPopup }}"
title="选择技师"
copyArtificerList="{{ artificerList }}"
multiple="{{ technicianMultiple }}"
artificerSelectObj="{{ technicianMultiple ? deputySelected : mainSelected }}"
disabledSelectObj="{{ technicianMultiple ? mainSelected : deputySelected }}"
bindconfirm="changeArtificer"
bindcancel="cancelTechnician"
/>
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/orderDetail/orderDetail.js
View file @
fcfdbb8
...
@@ -44,13 +44,19 @@ Page({
...
@@ -44,13 +44,19 @@ Page({
invoiceName
:
'申请开票'
,
invoiceName
:
'申请开票'
,
invoiveVisible
:
false
,
invoiveVisible
:
false
,
showModal
:
false
,
showModal
:
false
,
sublistVisible
:
true
sublistVisible
:
false
,
constructionVisible
:
false
},
},
sublistCancel
()
{
sublistCancel
()
{
this
.
setData
({
this
.
setData
({
sublistVisible
:
false
sublistVisible
:
false
})
})
},
},
constructionCancel
()
{
this
.
setData
({
constructionVisible
:
false
})
},
jumpUserPortrait
()
{
jumpUserPortrait
()
{
wx
.
$router
.
go
(
'tabDate.userPortrait'
,
this
.
data
.
orderInfo
)
wx
.
$router
.
go
(
'tabDate.userPortrait'
,
this
.
data
.
orderInfo
)
},
},
...
...
tabWorkOrder/pages/orderDetail/orderDetail.json
View file @
fcfdbb8
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
"select-invoice-modal"
:
"/components/SelectInvoiceModal/SelectInvoiceModal"
,
"select-invoice-modal"
:
"/components/SelectInvoiceModal/SelectInvoiceModal"
,
"sublist-modal"
:
"/tabWorkOrder/components/SublistModal/SublistModal"
,
"sublist-modal"
:
"/tabWorkOrder/components/SublistModal/SublistModal"
,
"apply-refund-btn"
:
"/tabWorkOrder/components/applyRefundBtn/applyRefundBtn"
,
"apply-refund-btn"
:
"/tabWorkOrder/components/applyRefundBtn/applyRefundBtn"
,
"dialog"
:
"/tabWorkOrder/components/Dialog/Dialog"
"dialog"
:
"/tabWorkOrder/components/Dialog/Dialog"
,
"ConstructionDetailModal"
:
"/tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal"
}
}
}
}
tabWorkOrder/pages/orderDetail/orderDetail.wxml
View file @
fcfdbb8
...
@@ -336,5 +336,6 @@
...
@@ -336,5 +336,6 @@
/>
/>
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal>
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-modal>
<sublist-modal visible="{{ sublistVisible }}" orderInfo="{{ orderInfo }}" bindcancel="sublistCancel"></sublist-modal>
<sublist-modal visible="{{ sublistVisible }}" orderInfo="{{ orderInfo }}" bindcancel="sublistCancel"></sublist-modal>
<ConstructionDetailModal visible="{{ constructionVisible }}" orderInfo="{{ orderInfo }}" bindcancel="constructionCancel"></ConstructionDetailModal>
<!-- <dialog show="{{showModal}}" confirmText="确定" cancelText="取消" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}">
<!-- <dialog show="{{showModal}}" confirmText="确定" cancelText="取消" showCancelButton success="{{success}}" bindconfirm="dialogConfirm" bindcancel="dialogClose" text="{{dialogText}}">
</dialog> -->
</dialog> -->
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/upgradeStaffDaily/upgradeStaffDaily.js
View file @
fcfdbb8
...
@@ -627,8 +627,8 @@ Page({
...
@@ -627,8 +627,8 @@ Page({
// orderObj.reportType = reportType
// orderObj.reportType = reportType
// console.log(orderObj, 'orderObj')
// console.log(orderObj, 'orderObj')
// 非调休 日报填报前参数校验
// 非调休 日报填报前参数校验
let
check
=
this
.
dailyReportCheck
(
orderObj
)
//
let check = this.dailyReportCheck(orderObj)
if
(
check
)
return
false
;
//
if (check) return false;
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
api
api
...
...
utils/track.js
View file @
fcfdbb8
...
@@ -25,7 +25,7 @@ const track_interval_time = 30 * 1e3,
...
@@ -25,7 +25,7 @@ const track_interval_time = 30 * 1e3,
class
TRACK
{
class
TRACK
{
constructor
()
{
constructor
()
{
console
.
log
(
'---------------- 埋点初始化 ----------------'
)
//
console.log('---------------- 埋点初始化 ----------------')
this
.
initPageProxy
()
this
.
initPageProxy
()
this
.
sendTrack
()
this
.
sendTrack
()
this
.
appHide
()
this
.
appHide
()
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment