Commit 9fa98f3b by 张立顺

feat 功能开发

1 parent 07e080af
<scroll-view scroll-y class="confirm-box" style="height:calc(100% - {{height}}px);margin-top:{{navBarHeight}}px;" <scroll-view scroll-y class="confirm-box" style="height:calc(100% - {{height}}px);margin-top:{{navBarHeight}}px;" hidden="{{!show}}">
hidden="{{!show}}">
<view class="main" style="padding-bottom:{{btnHeight}}px"> <view class="main" style="padding-bottom:{{btnHeight}}px">
<view class="box"> <view class="box">
<view class="title"> <view class="title">
转化人员 转化人员
<block wx:if="{{form.merchantRange.data.length > 1}}"> <block wx:if="{{form.merchantRange.data.length > 1}}">
<picker range="{{form.merchantRange.data}}" range-key="merchantName" bindchange="changeMerchantPicker" <picker range="{{form.merchantRange.data}}" range-key="merchantName" bindchange="changeMerchantPicker" bindtap="tapPicker" bindcancel="tapPicker" data-type="m_moveArrow">
bindtap="tapPicker" bindcancel="tapPicker" data-type="m_moveArrow">
<view class="picker-box"> <view class="picker-box">
<view class="picker-text text-hide">{{form.merchantRange.data[merchantIndex].merchantName}}</view> <view class="picker-text text-hide">{{form.merchantRange.data[merchantIndex].merchantName}}</view>
<view class="arrow {{m_moveArrow?'move':''}}"> <view class="arrow {{m_moveArrow?'move':''}}">
...@@ -18,8 +16,7 @@ ...@@ -18,8 +16,7 @@
</view> </view>
<view class="list-box"> <view class="list-box">
<block wx:for="{{form.conversionEmployeeList.data}}" wx:key="index"> <block wx:for="{{form.conversionEmployeeList.data}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" <view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="conversionEmployeeList" data-index="{{index}}">
data-list-name="conversionEmployeeList" data-index="{{index}}">
{{item.staffName}} {{item.staffName}}
</view> </view>
</block> </block>
...@@ -29,8 +26,7 @@ ...@@ -29,8 +26,7 @@
<view class="title"> <view class="title">
销售顾问 销售顾问
<block wx:if="{{form.range_4s.data.length > 1}}"> <block wx:if="{{form.range_4s.data.length > 1}}">
<picker range="{{form.range_4s.data}}" range-key="merchantName" bindchange="changePicker" bindtap="tapPicker" <picker range="{{form.range_4s.data}}" range-key="merchantName" bindchange="changePicker" bindtap="tapPicker" bindcancel="tapPicker" data-type="moveArrow">
bindcancel="tapPicker" data-type="moveArrow">
<view class="picker-box"> <view class="picker-box">
<view class="picker-text text-hide">{{form.range_4s.data[index_4s].merchantName}}</view> <view class="picker-text text-hide">{{form.range_4s.data[index_4s].merchantName}}</view>
<view class="arrow {{moveArrow?'move':''}}"> <view class="arrow {{moveArrow?'move':''}}">
...@@ -42,8 +38,7 @@ ...@@ -42,8 +38,7 @@
</view> </view>
<view class="list-box"> <view class="list-box">
<block wx:for="{{form.salesmanList.data}}" wx:key="index"> <block wx:for="{{form.salesmanList.data}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="salesmanList" <view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="salesmanList" data-index="{{index}}">{{item.staffName}}</view>
data-index="{{index}}">{{item.staffName}}</view>
</block> </block>
</view> </view>
</view> </view>
...@@ -55,14 +50,12 @@ ...@@ -55,14 +50,12 @@
<view class="list-box"> <view class="list-box">
<block wx:for="{{form.timeList.data}}" wx:key="index"> <block wx:for="{{form.timeList.data}}" wx:key="index">
<block wx:if="{{item.type}}"> <block wx:if="{{item.type}}">
<calendar allowSameDay shortcut bindselect='rangeSelect' data-index="{{index}}" rangeAll dateType='range' calenderColor='#347BFF' <calendar allowSameDay shortcut bindselect='rangeSelect' data-index="{{index}}" rangeAll dateType='range' calenderColor='#347BFF' vertical minDate="2020-10-01" maxDate="{{maxDate}}" isComponents>
vertical minDate="2020-10-01" maxDate="{{maxDate}}" isComponents>
<view class="item text-center {{item.active?'active':''}}">{{item.name}}</view> <view class="item text-center {{item.active?'active':''}}">{{item.name}}</view>
</calendar> </calendar>
</block> </block>
<block wx:else> <block wx:else>
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="timeList" <view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="timeList" data-index="{{index}}">{{item.name}}</view>
data-index="{{index}}">{{item.name}}</view>
</block> </block>
</block> </block>
</view> </view>
...@@ -73,8 +66,7 @@ ...@@ -73,8 +66,7 @@
</view> </view>
<view class="list-box"> <view class="list-box">
<block wx:for="{{form.statusList.data}}" wx:key="index"> <block wx:for="{{form.statusList.data}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose" <view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose" data-list-name="statusList" data-index="{{index}}">{{item.name}}</view>
data-list-name="statusList" data-index="{{index}}">{{item.name}}</view>
</block> </block>
</view> </view>
</view> </view>
...@@ -84,8 +76,7 @@ ...@@ -84,8 +76,7 @@
</view> </view>
<view class="list-box"> <view class="list-box">
<block wx:for="{{form.orderType.data}}" wx:key="index"> <block wx:for="{{form.orderType.data}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="orderType" <view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="orderType" data-index="{{index}}">{{item.name}}</view>
data-index="{{index}}">{{item.name}}</view>
</block> </block>
</view> </view>
</view> </view>
...@@ -97,8 +88,7 @@ ...@@ -97,8 +88,7 @@
</view> </view>
<view class="list-box"> <view class="list-box">
<block wx:for="{{form.inviteType.data}}" wx:key="index"> <block wx:for="{{form.inviteType.data}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="inviteType" <view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="inviteType" data-index="{{index}}">{{item.name}}</view>
data-index="{{index}}">{{item.name}}</view>
</block> </block>
</view> </view>
</view> </view>
...@@ -110,15 +100,13 @@ ...@@ -110,15 +100,13 @@
<block wx:for="{{form.timeList.data}}" wx:key="index"> <block wx:for="{{form.timeList.data}}" wx:key="index">
<block wx:if="{{item.type}}"> <block wx:if="{{item.type}}">
<view class="calendar"> <view class="calendar">
<calendar allowSameDay shortcut bindselect='rangeSelect' data-index="{{index}}" rangeAll dateType='range' <calendar allowSameDay shortcut bindselect='rangeSelect' data-index="{{index}}" rangeAll dateType='range' calenderColor='#347BFF' vertical minDate="{{minDate}}" maxDate="{{maxDate}}" isComponents>
calenderColor='#347BFF' vertical minDate="{{minDate}}" maxDate="{{maxDate}}" isComponents>
<view class="item text-center {{item.active?'active':''}}">{{item.name}}</view> <view class="item text-center {{item.active?'active':''}}">{{item.name}}</view>
</calendar> </calendar>
</view> </view>
</block> </block>
<block wx:else> <block wx:else>
<view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="timeList" <view class="item text-center {{item.active?'active':''}}" bindtap="choose" data-list-name="timeList" data-index="{{index}}">{{item.name}}</view>
data-index="{{index}}">{{item.name}}</view>
</block> </block>
</block> </block>
</view> </view>
...@@ -129,8 +117,7 @@ ...@@ -129,8 +117,7 @@
</view> </view>
<view class="list-box"> <view class="list-box">
<block wx:for="{{form.inviteStatusList.data}}" wx:key="index"> <block wx:for="{{form.inviteStatusList.data}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose" <view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose" data-list-name="inviteStatusList" data-index="{{index}}">{{item.name}}</view>
data-list-name="inviteStatusList" data-index="{{index}}">{{item.name}}</view>
</block> </block>
</view> </view>
</view> </view>
......
...@@ -86,17 +86,36 @@ Component({ ...@@ -86,17 +86,36 @@ Component({
name: '已失效', name: '已失效',
value: [11] value: [11]
}, },
// {
// name: '未施工',
// value: ['N']
// },
// {
// name: '已施工',
// value: ['Y']
// },
{ {
name: '未施工', name: '已退款',
value: ['N'] value: [5, 12]
}
],
constructionStatusList: [
{
name: '全部',
active: true,
value: []
}, },
{ {
name: '已施工', name: '已施工',
value: ['Y'] value: 1
}, },
{ {
name: '已退款', name: '待施工',
value: [5, 12] value: 0
},
{
name: '无需施工',
value: 3
} }
], ],
maxDate: new Date().format('yyyy-MM-dd'), maxDate: new Date().format('yyyy-MM-dd'),
...@@ -206,7 +225,7 @@ Component({ ...@@ -206,7 +225,7 @@ Component({
this.getsellerUserIdList(userInfo?.shopMerchantId, 1) this.getsellerUserIdList(userInfo?.shopMerchantId, 1)
}, },
init() { init() {
let { orderTimeList, payTimeList, userInfo } = this.data let { orderTimeList, payTimeList, userInfo, constructionStatusList } = this.data
// 非超管 // 非超管
if (!(userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6)) { if (!(userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6)) {
// 获取支付方式 // 获取支付方式
...@@ -262,7 +281,8 @@ Component({ ...@@ -262,7 +281,8 @@ Component({
} }
this.setData({ this.setData({
['form.orderTimeList']: wx.$util.deepClone(orderTimeList), ['form.orderTimeList']: wx.$util.deepClone(orderTimeList),
['form.payTimeList']: wx.$util.deepClone(payTimeList) ['form.payTimeList']: wx.$util.deepClone(payTimeList),
['form.constructionStatus']: wx.$util.deepClone(constructionStatusList)
}) })
}, },
showMore(e) { showMore(e) {
......
...@@ -134,6 +134,16 @@ ...@@ -134,6 +134,16 @@
</view> </view>
<view class="box"> <view class="box">
<view class="title"> <view class="title">
施工状态
</view>
<view class="list-box">
<block wx:for="{{form.constructionStatus}}" wx:key="index">
<view class="item text-center {{item.active?'active':''}} {{item.disabled ?'disabled':''}}" bindtap="choose" data-list-name="constructionStatus" data-index="{{index}}">{{item.name}}</view>
</block>
</view>
</view>
<view class="box">
<view class="title">
支付方式 支付方式
</view> </view>
<view class="list-box"> <view class="list-box">
......
...@@ -9,6 +9,186 @@ Page({ ...@@ -9,6 +9,186 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
subOrderRelationList: [
{
constructionStatus: 0,
electronicFlag: 0,
startTime: '2020-06-12 15:12:52',
sellerMerchantName: '重庆市西南大区华兴时代公司',
sellerName: '小沈阳',
constructionDuration: 65,
mainTechnicianList: [
{
id: 6178,
technicianName: '王志慧',
technicianUuid: 'fc6089faabc748a98a4b9f4d3e4e1198',
technicianType: 0
},
{
id: 5904,
technicianName: '技师A',
technicianUuid: '4aab9b514a08437c89bdf973859517b6',
technicianType: 1
}
],
customer: {
customerName:
'陈小星陈小星陈小星陈小星陈小星陈小星陈小星陈小星重庆市西南大区华兴时代公司',
carTypeName: '问界M5'
},
successTime: '2020-06-12 15:12:52',
subOrderList: [
{
upgradeGoodsName: '乐享焕颜系列 前挡g-70 至尊版',
upgradeGoodsId: 1,
materialsUsed: 0.8
},
{
upgradeGoodsName: '乐享焕颜系列 前挡g-70 至尊版',
materialsUsed: 1
},
{
upgradeGoodsName: '乐享焕颜系列 前挡g-70 至尊版',
materialsUsed: 0.8
},
{
upgradeGoodsName: '乐享焕颜系列 前挡g-70 至尊版前挡g-70 至尊版',
materialsUsed: 99999.99
}
],
serviceItemsList: [
{
title: '膜类-太阳膜',
detailList: [
{
id: 1,
serviceItemsName: '免费基础膜(半年)',
materialStandard: 0.8,
serviceCost: 99999.9
}
]
},
{
title: '膜类-车衣/改色',
detailList: [
{
id: 4,
serviceItemsName: '免费基础膜(半年)',
materialStandard: 0.8,
serviceCost: 99999.9
},
{
id: 6,
serviceItemsName:
'免费基础膜(半年)精品-撕膜除胶(前挡/后挡)精品-撕膜除胶(前挡/后挡)精品-撕膜除胶(前挡/后挡)',
materialStandard: 0.8,
serviceCost: 99999.9
}
]
}
],
subTechnicianList: [
{
technicianName: '单单'
},
{
technicianName: '宇文'
},
{
technicianName: '李三亚'
}
]
},
{
constructionStatus: 0,
electronicFlag: 0,
startTime: '2020-06-12 15:12:52',
sellerMerchantName: '重庆市西南大区华兴时代公司',
sellerName: '小沈阳',
constructionDuration: 65,
mainTechnicianList: [
{
id: 6178,
technicianName: '王志慧',
technicianUuid: 'fc6089faabc748a98a4b9f4d3e4e1198',
technicianType: 0
},
{
id: 5904,
technicianName: '技师A',
technicianUuid: '4aab9b514a08437c89bdf973859517b6',
technicianType: 1
}
],
customer: {
customerName:
'陈小星陈小星陈小星陈小星陈小星陈小星陈小星陈小星重庆市西南大区华兴时代公司',
carTypeName: '问界M5'
},
successTime: '2020-06-12 15:12:52',
subOrderList: [
{
upgradeGoodsName: '乐享焕颜系列 前挡g-70 至尊版',
upgradeGoodsId: 1,
materialsUsed: 0.8
},
{
upgradeGoodsName: '乐享焕颜系列 前挡g-70 至尊版',
materialsUsed: 1
},
{
upgradeGoodsName: '乐享焕颜系列 前挡g-70 至尊版',
materialsUsed: 0.8
},
{
upgradeGoodsName: '乐享焕颜系列 前挡g-70 至尊版前挡g-70 至尊版',
materialsUsed: 99999.99
}
],
serviceItemsList: [
{
title: '膜类-太阳膜',
detailList: [
{
id: 1,
serviceItemsName: '免费基础膜(半年)',
materialStandard: 0.8,
serviceCost: 99999.9
}
]
},
{
title: '膜类-车衣/改色',
detailList: [
{
id: 4,
serviceItemsName: '免费基础膜(半年)',
materialStandard: 0.8,
serviceCost: 99999.9
},
{
id: 6,
serviceItemsName:
'免费基础膜(半年)精品-撕膜除胶(前挡/后挡)精品-撕膜除胶(前挡/后挡)精品-撕膜除胶(前挡/后挡)',
materialStandard: 0.8,
serviceCost: 99999.9
}
]
}
],
subTechnicianList: [
{
technicianName: '单单'
},
{
technicianName: '宇文'
},
{
technicianName: '李三亚'
}
]
},
],
confirmInfo: { confirmInfo: {
constructionStatus: 0, constructionStatus: 0,
electronicFlag: 0, electronicFlag: 0,
...@@ -98,7 +278,7 @@ Page({ ...@@ -98,7 +278,7 @@ Page({
} }
] ]
}, },
tabList: ['全部', '待报价', '待确认', '待支付', '已支付', '已完成', '战败'], tabList: ['施工单1',],
tabIndex: 0, tabIndex: 0,
showTips: true, showTips: true,
IMG_URL, IMG_URL,
...@@ -172,7 +352,11 @@ Page({ ...@@ -172,7 +352,11 @@ Page({
// 关联商品弹窗确认 // 关联商品弹窗确认
handelRelateGoodsConfirm(e) { handelRelateGoodsConfirm(e) {
console.log(e) let { detail } = e
console.log(handelRelateGoodsConfirm, 'detail')
this.setData({
['confirmInfo.subOrderList']: detail
})
this.handelRelateGoodsCancel() this.handelRelateGoodsCancel()
}, },
...@@ -484,35 +668,35 @@ Page({ ...@@ -484,35 +668,35 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() {}, onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() {}, onShow() { },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() {}, onHide() { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() {}, onUnload() { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {} onShareAppMessage() { }
}) })
...@@ -11,19 +11,9 @@ ...@@ -11,19 +11,9 @@
<view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="main {{ sublistVisible?'hildden':''}} {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="box"> <view class="box">
<view class="orderBox"> <view class="orderBox">
<gl-cell <gl-cell border="{{ false }}" valueAlign="right" label="选择商品并创建此施工单" labelWidth="var(--fontSize330)" haveArrow bindclick="relateGoods" data-show-name="selesBox" placeholder="请选择" disabled="{{ false }}"></gl-cell>
border="{{ false }}" <view class="goodsListCon" wx:if="{{confirmInfo.subOrderList && confirmInfo.subOrderList.length}}">
valueAlign="right" <view class="goods" wx:for="{{ confirmInfo.subOrderList }}" wx:key="index">
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 }}" wx:key="{{item.upgradeGoodsId}}">
<view class="dot"></view> <view class="dot"></view>
<view class="name">{{item.upgradeGoodsName}}</view> <view class="name">{{item.upgradeGoodsName}}</view>
</view> </view>
...@@ -32,31 +22,12 @@ ...@@ -32,31 +22,12 @@
</view> </view>
<view class="servies-content box"> <view class="servies-content box">
<view class="title">选择技师</view> <view class="title">选择技师</view>
<gl-cell <gl-cell border valueAlign="right" label="主技师" requiredAfter labelWidth="var(--fontSize140)" required haveArrow bindclick="showPopup" placeholder="请选择">
border
valueAlign="right"
label="主技师"
requiredAfter
labelWidth="var(--fontSize140)"
required
haveArrow
bindclick="showPopup"
placeholder="请选择"
>
<block wx:if="{{ mainSelected.length }}"> <block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide">{{mainSelected[0] && mainSelected[0].staffName}}</view> <view class="techic-value text-hide">{{mainSelected[0] && mainSelected[0].staffName}}</view>
</block> </block>
</gl-cell> </gl-cell>
<gl-cell <gl-cell border valueAlign="right" label="副手技师" labelWidth="var(--fontSize140)" haveArrow bindclick="showPopup" data-type="deputy" placeholder="请选择">
border
valueAlign="right"
label="副手技师"
labelWidth="var(--fontSize140)"
haveArrow
bindclick="showPopup"
data-type="deputy"
placeholder="请选择"
>
<block wx:if="{{ deputySelected.length }}"> <block wx:if="{{ deputySelected.length }}">
<view class="techic-value text-hide">{{filter.techicianName(deputySelected)}}</view> <view class="techic-value text-hide">{{filter.techicianName(deputySelected)}}</view>
</block> </block>
...@@ -128,21 +99,5 @@ ...@@ -128,21 +99,5 @@
</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
<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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!