Commit fcfdbb8e by 张立顺

feat 功能开发

1 parent 38ed417f
var replaceItemText = function (item) {
var reg = getRegExp(';~;', 'g')
// return item.replace(reg, ' ')
return item ? item.replace(reg, ' ') : null
......@@ -11,11 +11,19 @@ var isIncludesItem = function (list, item) {
// var flag = list.indexOf(item)
return list.indexOf(item) != -1
}
var subStatus = function (item) {
var staus = {
"Y": 'constructionFlaged',
"N": 'constructionFlaging',
"Z": ''
}
return staus[item.constructionFlaged] || 'constructionFlaging'
}
/*
* 导出
*/
module.exports = {
replaceItemText: replaceItemText,
isIncludesItem: isIncludesItem
isIncludesItem: isIncludesItem,
subStatus: subStatus
}
......@@ -233,6 +233,18 @@ page {
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 {
font-size: var(--fontSize28);
color: #292D33;
......@@ -576,6 +588,7 @@ page {
color: #292D33;
padding-left: 24rpx;
margin: 0 auto;
&+.modalbox {
margin-top: 16rpx;
}
......
......@@ -53,7 +53,7 @@
<view class="goods-list" style="padding-bottom:{{ li.subOrderList.length<1?0:'' }}">
<block wx:if="{{ li.subOrderList.length }}">
<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">
{{filter.replaceItemText(i.upgradeGoodsAlias) ||filter.replaceItemText(i.upgradeGoodsName) || i.packageName||''}}
</view>
......@@ -131,51 +131,44 @@
<!-- </block> -->
<!-- </block> -->
<!-- footer -->
</view>
<block wx:if="{{ isMake }}">
<view
wx:if="{{ !li['confirmIndex'] }}"
class="del"
catchtap="delBtn"
data-ind="{{ ind }}"
data-item="{{ li }}"
data-index="{{ index }}"
>
<view>撤销</view>
<view>工单</view>
</view>
<view wx:else class="del confirm" catchtap="repeal" data-item="{{ li }}" data-index="{{ index }}">确认删除</view>
</block>
</view>
</block>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<empty-data />
</block>
</scroll-view>
</block>
</view>
<block wx:if="{{ (!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 )&& showIcon1 && isMake }}">
<view class="fixed-btns">
<view class="btn text-center" bindtap="jump" data-name="createOrder" data-flag="new">
<image src="{{ IMG_URL }}upgrade/scancode_verification02.png" />
新增工单
</view>
<view class="btn text-center" bindtap="scan">
<image src="{{ IMG_URL }}upgrade/create_newworkorder01.png" />
扫码核销
</view>
</view>
</block>
<block wx:if="{{ !userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 && !showIcon1 }}">
<view class="arrowIcon">
<image class="image" src="{{ IMG_URL }}upgrade/arrow-left.png" />
</view>
</block>
</view>
<block wx:if="{{ isMake }}">
<view wx:if="{{ !li['confirmIndex'] }}" class="del" catchtap="delBtn" data-ind="{{ ind }}" data-item="{{ li }}" data-index="{{ index }}">
<view>撤销</view>
<view>工单</view>
</view>
<view wx:else class="del confirm" catchtap="repeal" data-item="{{ li }}" data-index="{{ index }}">确认删除</view>
</block>
</view>
</block>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<empty-data />
</block>
</scroll-view>
</block>
</view>
<block wx:if="{{ (!userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 )&& showIcon1 && isMake }}">
<view class="fixed-btns">
<view class="btn text-center" bindtap="jump" data-name="createOrder" data-flag="new">
<image src="{{ IMG_URL }}upgrade/scancode_verification02.png" />
新增工单
</view>
<view class="btn text-center" bindtap="scan">
<image src="{{ IMG_URL }}upgrade/create_newworkorder01.png" />
扫码核销
</view>
</view>
</block>
<block wx:if="{{ !userInfo.isSuper && userInfo.merchantType && userInfo.userType == 2 && !showIcon1 }}">
<view class="arrowIcon">
<image class="image" src="{{ IMG_URL }}upgrade/arrow-left.png" />
</view>
</block>
</block>
<page-container show="{{ show_confirm }}" duration="{{ 0 }}" overlay="{{ false }}" bind:afterleave="back">
<view wx:if="{{ showRendering }}">
......@@ -193,10 +186,10 @@
战败下单
</view>
<view wx:if="{{isSettingExpiredTraffic && !isScan}}" class="modalbox cancle {{ selectType == 3?'act': '' }}" bindtap="selectType" data-type="3">
<gl-image class="icon" src="/miniProgram/order4.png"></gl-image>
失效客户
</view>
</view>
<gl-image class="icon" src="/miniProgram/order4.png"></gl-image>
失效客户
</view>
</view>
</modal>
<recording-order-popup wx:if="{{ showOrderpop }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<order-prompt-popup wx:if="{{ showPromptDialog }}" show="{{ showPromptDialog }}" bindcancel="promptCancel" bindconfirm="promptHandleConfirm" sceneObj="{{sceneObj}}"></order-prompt-popup>
<order-prompt-popup wx:if="{{ showPromptDialog }}" show="{{ showPromptDialog }}" bindcancel="promptCancel" bindconfirm="promptHandleConfirm" sceneObj="{{sceneObj}}"></order-prompt-popup>
\ No newline at end of file
class RouterBefore {
constructor(options) {
console.log('---------------- 路由初始化 ----------------')
// console.log('---------------- 路由初始化 ----------------')
this.initPageProxy()
}
/**监听页面 */
......
// 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()
}
}
})
{
"component": true,
"usingComponents": {
"modal": "/components/modal/modal"
}
}
\ No newline at end of file
/* 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: #347bff1a;
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
<!--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
// 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
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* 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;
}
}
}
<!--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
......@@ -93,29 +93,62 @@ var filterOrderStatus = function (infoData) {
var subOrderList = infoData.subOrderList
var refundApplyDetailList = infoData.refundApplyDetailList
subOrderList.forEach(function (val) {
refundApplyDetailList && refundApplyDetailList.forEach(function (v) {
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = false
})
refundApplyDetailList &&
refundApplyDetailList.forEach(function (v) {
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = false
})
})
return flag
}
// 判断退款详情是否可操作
var filterRefundDisabled = function (infoData, userInfo,) {
var filterRefundDisabled = function (infoData, userInfo) {
var afterStatus = infoData.afterStatus
var subOrderList = infoData.subOrderList
var refundApplyDetailList = infoData.refundApplyDetailList
var loginRole = userInfo.loginRole
var flag = false
subOrderList.forEach(function (val) {
refundApplyDetailList && refundApplyDetailList.forEach(function (v) {
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = true
})
refundApplyDetailList &&
refundApplyDetailList.forEach(function (v) {
if (val.subOrderCode == v.subOrderCode && val.status == 2) flag = true
})
})
return afterStatus === 0
|| (afterStatus && afterStatus != 5)
|| loginRole == 3
|| (afterStatus == 5 && flag)
return (
afterStatus === 0 ||
(afterStatus && afterStatus != 5) ||
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 = {
filterTemplateList: filterTemplateList,
filterShowBtn: filterShowBtn,
filterOrderStatus: filterOrderStatus,
filterRefundDisabled: filterRefundDisabled
filterRefundDisabled: filterRefundDisabled,
activeNum: activeNum,
techicianName: techicianName
}
......@@ -5,6 +5,7 @@
"orderRatingPopup": "/tabWorkOrder/components/orderRatingPopup/orderRatingPopup",
"select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal",
"apply-refund-btn": "/tabWorkOrder/components/applyRefundBtn/applyRefundBtn",
"order-prompt-popup": "/components/orderPromptPop/orderPromptPop"
"order-prompt-popup": "/components/orderPromptPop/orderPromptPop",
"ConstructionDetailModal": "/tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal"
}
}
{
"navigationBarTitleText": "创建施工订单",
"enablePullDownRefresh": true,
"usingComponents": {}
"usingComponents": {
"relate-goods-popup": "../../components/relateGoodsPop/index",
"artificer-select-popup": "/components/ArtificerSelectPopup/artificerSelectPopup"
}
}
......@@ -3,14 +3,28 @@ page {
background-color: rgb(246, 247, 247);
}
.box {
background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
border-radius: var(--fontSize16);
overflow: hidden;
margin-top: var(--fontSize20);
.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;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
border-radius: var(--fontSize16);
overflow: hidden;
margin-top: var(--fontSize20);
}
}
.btns-con {
box-sizing: border-box;
display: flex;
......@@ -95,4 +109,254 @@ page {
.isFullSucreen-btn {
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
......@@ -4,56 +4,145 @@
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<!-- wx:if="{{flag}}" -->
<block>
<view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}">
<view>
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" scroll activeIndex="{{ tabIndex }}" />
</view>
<view class="box">
<view class="userId">
<view>
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" scroll activeIndex="{{ tabIndex }}" />
</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="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
border
valueAlign="right"
label="{{ pointsMultiRole=='Y'?'销售顾问 /录单员':'销售顾问' }}"
label="主技师"
requiredAfter
labelWidth="var(--fontSize140)"
required
haveArrow
bindclick="showPopup"
data-show-name="selesBox"
placeholder="点击选择"
disabled="{{ orderObj.orderSource == 5 }}"
placeholder="请选择"
>
<block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide">{{mainSelected[0] && mainSelected[0].staffName}}</view>
</block>
</gl-cell>
<gl-cell
border
valueAlign="right"
label="副手技师"
labelWidth="var(--fontSize140)"
haveArrow
bindclick="showPopup"
data-type="deputy"
placeholder="请选择"
>
<block wx:if="{{ orderObj.merchantName && orderObj.employeeName }}">
<view class="between">
<view class="start text-hide">{{orderObj.merchantName}}</view>
<view class="end text-hide">
<text>|</text>
{{orderObj.employeeName}}
<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 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>
</view>
</view>
</view>
</block>
</view>
</block>
</gl-cell>
</view>
</view>
</view>
</view>
</scroll-view>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<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="tradeNoCon">
<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 class="btns-con">
<view class="save text-center {{ isErrorOrder || isAlreadyExistOrder ?'disabled':'' }}" bindtap="submit" data-save>建档</view>
<view class="confirm text-center" bindtap="submit">直接下单</view>
<view class="save text-center" bindtap="backup">上一步</view>
<view class="confirm text-center" bindtap="submit">提交施工单</view>
</view>
</view>
</block>
\ No newline at end of file
</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
......@@ -44,13 +44,19 @@ Page({
invoiceName: '申请开票',
invoiveVisible: false,
showModal: false,
sublistVisible: true
sublistVisible: false,
constructionVisible: false
},
sublistCancel() {
this.setData({
sublistVisible: false
})
},
constructionCancel() {
this.setData({
constructionVisible: false
})
},
jumpUserPortrait() {
wx.$router.go('tabDate.userPortrait', this.data.orderInfo)
},
......
......@@ -7,6 +7,7 @@
"select-invoice-modal": "/components/SelectInvoiceModal/SelectInvoiceModal",
"sublist-modal": "/tabWorkOrder/components/SublistModal/SublistModal",
"apply-refund-btn": "/tabWorkOrder/components/applyRefundBtn/applyRefundBtn",
"dialog": "/tabWorkOrder/components/Dialog/Dialog"
"dialog": "/tabWorkOrder/components/Dialog/Dialog",
"ConstructionDetailModal": "/tabWorkOrder/components/ConstructionDetailModal/ConstructionDetailModal"
}
}
\ No newline at end of file
}
......@@ -336,5 +336,6 @@
/>
<select-invoice-modal invoiveVisible="{{ invoiveVisible }}" orderInfo="{{ orderInfo }}"></select-invoice-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> -->
\ No newline at end of file
......@@ -627,8 +627,8 @@ Page({
// orderObj.reportType = reportType
// console.log(orderObj, 'orderObj')
// 非调休 日报填报前参数校验
let check = this.dailyReportCheck(orderObj)
if (check) return false;
// let check = this.dailyReportCheck(orderObj)
// if (check) return false;
wx.$util.showLoading()
api
......
......@@ -25,7 +25,7 @@ const track_interval_time = 30 * 1e3,
class TRACK {
constructor() {
console.log('---------------- 埋点初始化 ----------------')
// console.log('---------------- 埋点初始化 ----------------')
this.initPageProxy()
this.sendTrack()
this.appHide()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!