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 67e2ff56
authored
Dec 19, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 功能开发
1 parent
9f556bfe
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
140 additions
and
19 deletions
config.js
tabIndex/pages/index/index.wxml
tabWorkOrder/api.js
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.js
config.js
View file @
67e2ff5
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
...
@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 4预发布
* 5cdptest
* 5cdptest
*/
*/
let
index
=
2
let
index
=
1
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
envName
=
accountInfo
.
miniProgram
.
envVersion
const
envName
=
accountInfo
.
miniProgram
.
envVersion
...
...
tabIndex/pages/index/index.wxml
View file @
67e2ff5
<!-- src引入filter.wxs, module给模块起名 -->
<!-- src引入filter.wxs, module给模块起名 -->
<wxs src="../index.wxs" module="filter" />
<wxs src="../index.wxs" module="filter" />
<navigation-bar bindnavbarReady="navbarReady" showWhiteMenu showMenu="{{ true }}" bindback="back" bindshowMenuPopup="showMenuPopup" navStyle="{{ navStyle }}">
<navigation-bar
bindnavbarReady="navbarReady"
showWhiteMenu
showMenu="{{ true }}"
bindback="back"
bindshowMenuPopup="showMenuPopup"
navStyle="{{ navStyle }}"
>
<view class="navigation-title">
<view class="navigation-title">
<view class="navigation-title-text text-hide">{{userInfo.shopMerchantName || '全部'}}</view>
<view class="navigation-title-text text-hide">{{userInfo.shopMerchantName || '全部'}}</view>
<!-- <view class="arrow" wx:if="{{ userInfo.isSuper }}">
<!-- <view class="arrow" wx:if="{{ userInfo.isSuper }}">
...
@@ -10,7 +17,10 @@
...
@@ -10,7 +17,10 @@
</navigation-bar>
</navigation-bar>
<view class="bg"></view>
<view class="bg"></view>
<view style="height:100vh;overflow: hidden;">
<view style="height:100vh;overflow: hidden;">
<view class="layout {{ flag?'opacity':''}} {{waitInputCount?'mtTips':'' }}" style="height:calc(100vh - {{ navBarHeight}}px); margin-top:{{ navBarHeight + 'px' }}">
<view
class="layout {{ flag?'opacity':''}} {{waitInputCount?'mtTips':'' }}"
style="height:calc(100vh - {{ navBarHeight}}px); margin-top:{{ navBarHeight + 'px' }}"
>
<block wx:if="{{ navBarHeight > 0 }}">
<block wx:if="{{ navBarHeight > 0 }}">
<view class="tips">
<view class="tips">
<view class="tips-text text-hide">
<view class="tips-text text-hide">
...
@@ -78,13 +88,52 @@
...
@@ -78,13 +88,52 @@
</view>
</view>
</swiper-item>
</swiper-item>
</block>
</block>
<block wx:if="{{ loginRole == 7 }}">
<swiper-item>
<view class="swiper-item">
<view class="total-wrap">
<view class="item left">
<view class="title">本月施工单</view>
<view class="number">
<text class="unit">¥</text>
<text>{{0}}</text>
</view>
</view>
<view class="item">
<view class="title">累计施工单</view>
<view class="number">
<text class="unit">¥</text>
<text>{{0}}</text>
</view>
</view>
</view>
<view class="custom-statistic">
<view class="customItem" wx:for="{{ totalList }}" data-item="{{ item }}" wx:key="index">
<!-- <block wx:if="{{ item.index==2 }}"> -->
<view class="label">
<text>{{item.name}} </text>
<text data-item="{{ item }}">/{{item.waitname}}</text>
</view>
<view class="number">
<view class="firstValue">{{0}}</view>
<view class="lastValue">/{{0}}</view>
</view>
</view>
</view>
</view>
</swiper-item>
</block>
</swiper>
</swiper>
<view class="dots">
<view class="dots">
<view wx:for="{{ 3 }}" wx:key="item" wx:for-index="idx" class="dot {{ changeSelectIndex==idx?'active':'' }}"></view>
<view
wx:for="{{ loginRole == 7? 4: 3 }}"
wx:key="item"
wx:for-index="idx"
class="dot {{ changeSelectIndex==idx?'active':'' }}"
></view>
</view>
</view>
</view>
</view>
<view wx:if="{{userInfo.loginRole != 7}}">
<view wx:if="{{ userInfo.loginRole != 7 }}">
<block wx:if="{{ isWait&&todoList.length>0 }}">
<block wx:if="{{ isWait&&todoList.length>0 }}">
<view class="todo-list">
<view class="todo-list">
<view class="title">今日待办·{{todoList.length}}</view>
<view class="title">今日待办·{{todoList.length}}</view>
...
@@ -123,7 +172,7 @@
...
@@ -123,7 +172,7 @@
<div class="menu noStaff">
<div class="menu noStaff">
<block wx:for="{{ menu }}" wx:key="index">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jumpThrottle" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<view class="item" bindtap="jumpThrottle" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image wx:if="{{item.name != '招聘管理'
}}" src="{{ IMG_URL}}upgrade/{{item.icon }}.png" />
<image wx:if="{{ item.name != '招聘管理'
}}" src="{{ IMG_URL}}upgrade/{{item.icon }}.png" />
<image wx:else src="{{ IMG_URL}}crowdFunding/{{item.icon }}.png" />
<image wx:else src="{{ IMG_URL}}crowdFunding/{{item.icon }}.png" />
<view class="label">{{item.name}}</view>
<view class="label">{{item.name}}</view>
<view class="hot_icon" wx:if="{{ item.tipsNum }}">{{item.tipsNum > 99?'99+': item.tipsNum}}</view>
<view class="hot_icon" wx:if="{{ item.tipsNum }}">{{item.tipsNum > 99?'99+': item.tipsNum}}</view>
...
@@ -147,7 +196,20 @@
...
@@ -147,7 +196,20 @@
<view class="myPerformance {{ loginRole==4?'mb':'' }}" wx:if="{{ isWait }}">
<view class="myPerformance {{ loginRole==4?'mb':'' }}" wx:if="{{ isWait }}">
<view class="title">
<view class="title">
<view class="conTitle">我的绩效</view>
<view class="conTitle">我的绩效</view>
<CalendarMonthSingle monType="{{ true }}" allowSameDay shortcut bindselect="monthSelect" bindtapCalendar="tapCalendar" dateType="single" calenderColor="#347BFF" vertical minDate="2020-10-01" maxDate="{{ dateObj.today }}" forceFullSucreen="{{ bottomLift>0?true:false }}" isComponents>
<CalendarMonthSingle
monType="{{ true }}"
allowSameDay
shortcut
bindselect="monthSelect"
bindtapCalendar="tapCalendar"
dateType="single"
calenderColor="#347BFF"
vertical
minDate="2020-10-01"
maxDate="{{ dateObj.today }}"
forceFullSucreen="{{ bottomLift>0?true:false }}"
isComponents
>
<view class="item dateNum">
<view class="item dateNum">
{{dateObj.label}}
{{dateObj.label}}
<view class="arrow {{ whiteArrow?'move':'' }}">
<view class="arrow {{ whiteArrow?'move':'' }}">
...
@@ -250,7 +312,17 @@
...
@@ -250,7 +312,17 @@
<view class="table-control-btn">
<view class="table-control-btn">
<block wx:for="{{ tableBtn }}" wx:key="index">
<block wx:for="{{ tableBtn }}" wx:key="index">
<block wx:if="{{ item.type == 'date' && delayShow }}">
<block wx:if="{{ item.type == 'date' && delayShow }}">
<calendar allowSameDay shortcut bindselect="rangeSelect" rangeAll dateType="range" calenderColor="#347BFF" vertical minDate="2020-10-01" maxDate="{{ maxDate }}">
<calendar
allowSameDay
shortcut
bindselect="rangeSelect"
rangeAll
dateType="range"
calenderColor="#347BFF"
vertical
minDate="2020-10-01"
maxDate="{{ maxDate }}"
>
<view class="{{ item.active?'active':'' }} table-control-btn-view">{{item.text}}</view>
<view class="{{ item.active?'active':'' }} table-control-btn-view">{{item.text}}</view>
</calendar>
</calendar>
</block>
</block>
...
@@ -260,13 +332,28 @@
...
@@ -260,13 +332,28 @@
</block>
</block>
</view>
</view>
</view>
</view>
<scroll-view scroll-x scroll-y show-scrollbar="{{ false }}" bindrefresherrefresh="restPageNum" bindscrolltolower="scrollonReachBottom" refresher-threshold="304" refresher-triggered="{{ triggered }}" class="table">
<scroll-view
scroll-x
scroll-y
show-scrollbar="{{ false }}"
bindrefresherrefresh="restPageNum"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="304"
refresher-triggered="{{ triggered }}"
class="table"
>
<view class="table-box" style="width: var(--fontSize{{ tableWidth }})">
<view class="table-box" style="width: var(--fontSize{{ tableWidth }})">
<view class="table-header" style="width: var(--fontSize{{ tableWidth }})">
<view class="table-header" style="width: var(--fontSize{{ tableWidth }})">
<view class="label">合作门店</view>
<view class="label">合作门店</view>
<view class="values">
<view class="values">
<block wx:for="{{ tableObj }}" wx:key="index">
<block wx:for="{{ tableObj }}" wx:key="index">
<view class="value {{ tableSort == index?'active':'' }}" style="width: {{ item.width }};" bindtap="changeTableSort" id="header-{{ index }}" data-index="{{ index }}">
<view
class="value {{ tableSort == index?'active':'' }}"
style="width: {{ item.width }};"
bindtap="changeTableSort"
id="header-{{ index }}"
data-index="{{ index }}"
>
<view class="lable">
<view class="lable">
<view class="name">{{item.name}}{{item.unit}}</view>
<view class="name">{{item.name}}{{item.unit}}</view>
</view>
</view>
...
@@ -301,7 +388,12 @@
...
@@ -301,7 +388,12 @@
<block wx:for="{{ tableObj }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<block wx:for="{{ tableObj }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<view class="td text-center" style="width: {{ tableObj[ind]['width'] }};">
<view class="td text-center" style="width: {{ tableObj[ind]['width'] }};">
<block wx:if="{{ i.key == 'filmTimes' }}">
<block wx:if="{{ i.key == 'filmTimes' }}">
<view class="text-center" style="width:100%;height: 100%;color:{{ isYqdSuper?'#347BFF':'#333333' }}" data-item="{{ item }}" bindtap="changeTableData">{{item[i.key] || 0}}</view>
<view
class="text-center"
style="width:100%;height: 100%;color:{{ isYqdSuper?'#347BFF':'#333333' }}"
data-item="{{ item }}"
bindtap="changeTableData"
>{{item[i.key] || 0}}</view>
</block>
</block>
<block wx:elif="{{ i.key == 'upgradeRate' }}">{{item[i.key] || 0}}%</block>
<block wx:elif="{{ i.key == 'upgradeRate' }}">{{item[i.key] || 0}}%</block>
<block wx:else>{{item[i.key] || 0}}</block>
<block wx:else>{{item[i.key] || 0}}</block>
...
@@ -340,14 +432,37 @@
...
@@ -340,14 +432,37 @@
</view>
</view>
</view>
</view>
</modal>
</modal>
<remark-popup wx:if="{{ showRemark }}" show="{{ showRemark }}" isLimitNum="{{ false }}" title="{{ '修改贴膜台次' }}" btnName="{{ '确认' }}" bind:confirm="remarkConfirm" placeholder="{{ '请输入整数' }}" maxlength="4" value="{{ methodUpdateInfo.filmTimes }}" isInt="{{ true }}" />
<remark-popup
wx:if="{{ showRemark }}"
show="{{ showRemark }}"
isLimitNum="{{ false }}"
title="{{ '修改贴膜台次' }}"
btnName="{{ '确认' }}"
bind:confirm="remarkConfirm"
placeholder="{{ '请输入整数' }}"
maxlength="4"
value="{{ methodUpdateInfo.filmTimes }}"
isInt="{{ true }}"
/>
<recording-order-popup wx:if="{{ showOrderpop }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<recording-order-popup wx:if="{{ showOrderpop }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<block wx:if="{{ userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6 }}">
<block wx:if="{{ userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6 }}">
<side-select-by-page-popup show="{{ shopSideSelectPopup }}" bindconfirm="storeSearchEvent" subIndex="{{ subIndex }}" hasTabBar="true" />
<side-select-by-page-popup show="{{ shopSideSelectPopup }}" bindconfirm="storeSearchEvent" subIndex="{{ subIndex }}" hasTabBar="true" />
</block>
</block>
<block wx:else>
<block wx:else>
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{ storeRange }}" bindconfirm="storeSearchEvent" subIndex="{{ subIndex }}" hasTabBar="true" />
<side-select-popup
show="{{ shopSideSelectPopup }}"
storeList="{{ storeRange }}"
bindconfirm="storeSearchEvent"
subIndex="{{ subIndex }}"
hasTabBar="true"
/>
</block>
</block>
<task-dialog wx:if="{{ showTaskDialog }}" showDialog="{{ showTaskDialog }}" taskInfo="{{ taskInfo }}"></task-dialog>
<task-dialog wx:if="{{ showTaskDialog }}" showDialog="{{ showTaskDialog }}" taskInfo="{{ taskInfo }}"></task-dialog>
<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>
<study-permission-modal id="customModal" />
<study-permission-modal id="customModal" />
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/api.js
View file @
67e2ff5
...
@@ -346,6 +346,7 @@ module.exports = {
...
@@ -346,6 +346,7 @@ module.exports = {
/**获取服务项目列表数据 */
/**获取服务项目列表数据 */
getServiceItemList
(
data
)
{
getServiceItemList
(
data
)
{
return
api
.
post
(
'dj.api.carboutique.construction.item.group.list'
,
data
)
return
api
.
post
(
'dj.api.carboutique.construction.item.group.list'
,
data
)
// return api.post('dj.api.carboutique.construction.item.group.list', data)
},
},
// 批量添加施工单
// 批量添加施工单
batchAdd
(
data
)
{
batchAdd
(
data
)
{
...
@@ -375,10 +376,13 @@ module.exports = {
...
@@ -375,10 +376,13 @@ module.exports = {
},
},
// 查询门店轻改录单设置
// 查询门店轻改录单设置
lightChangeSettingList
(
data
){
lightChangeSettingList
(
data
)
{
let
params
=
data
||
{}
let
params
=
data
||
{}
return
api
.
post
(
'dj.api.smartcarlife.order.field.lightChange.setting.list'
,
{
return
api
.
post
(
'dj.api.smartcarlife.order.field.lightChange.setting.list'
,
{
...
params
...
params
})
}
)
}
}
}
}
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.js
View file @
67e2ff5
...
@@ -289,7 +289,9 @@ Page({
...
@@ -289,7 +289,9 @@ Page({
},
},
// 获取服务项目数据
// 获取服务项目数据
getServicesList
()
{
getServicesList
()
{
api
.
getServiceItemList
({}).
then
(
res
=>
{
let
{
goodsList
}
=
this
.
data
const
subOrderCodeList
=
goodsList
.
map
(
item
=>
item
.
subOrderCode
)
api
.
getServiceItemList
({
subOrderCodeList
}).
then
(
res
=>
{
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
console
.
log
(
data
,
'getServiceItemList'
)
console
.
log
(
data
,
'getServiceItemList'
)
...
...
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