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 09ddf2eb
authored
Apr 03, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V4.37.2-0402' into 'SAAS+V4.38.0-0425'
上线合并 See merge request
!256
2 parents
fa862601
bb2da658
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
267 additions
and
431 deletions
app.js
app.json
config.js
package-lock.json
package.json
packageEquity/api.js
packageEquity/pages/TabBar/equityPage.js
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.js
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.wxml
packageEquity/pages/trainingMaterials/api/api.js
packageEquity/pages/trainingMaterials/components/Materials/materials.js
packageEquity/pages/trainingMaterials/pages/playVideo/index.js
packageEquity/pages/trainingMaterials/pages/playVideo/index.wxml
packageEquity/pages/trainingMaterials/trainingMaterials.js
pages/accountItems/accountItems.js
pages/wxLogin/wxLogin.js
store/index.js
tabIndex/api.js
tabIndex/pages/index/index.js
tabWorkOrder/pages/staffDaily/staffDaily.js
tabWorkOrder/pages/staffDaily/staffDaily.wxml
utils/request/environment.js
app.js
View file @
09ddf2e
...
@@ -19,7 +19,7 @@ import { checkYqdSuper, checkScene } from '~/store/index'
...
@@ -19,7 +19,7 @@ import { checkYqdSuper, checkScene } from '~/store/index'
import
eventbus
from
'./utils/eventbus'
import
eventbus
from
'./utils/eventbus'
import
api
from
'./api/api'
import
api
from
'./api/api'
import
{
Version
}
from
'glsx-common-sdk'
import
{
Version
}
from
'glsx-common-sdk'
import
{
areaList
}
from
'@vant/area-data'
;
//预加载省市区
import
{
areaList
}
from
'@vant/area-data'
//预加载省市区
App
({
App
({
onLaunch
()
{
onLaunch
()
{
/**挂载到wx对象 */
/**挂载到wx对象 */
...
@@ -66,11 +66,20 @@ App({
...
@@ -66,11 +66,20 @@ App({
})
})
// console.log('lifeshow')
// console.log('lifeshow')
getUpdateManager
()
getUpdateManager
()
// options = {
// query: {
// page: 'playVideo',
// type: 1,
// title: '内容通知-培训资料-视频',
// id: 30,
// merchantId: 44211025
// }
// }
if
(
options
)
{
if
(
options
)
{
console
.
log
(
'options'
,
options
)
console
.
log
(
'options'
,
options
)
let
res
=
checkScene
(
options
)
let
res
=
checkScene
(
options
)
//
console.log(res, 'res')
console
.
log
(
res
,
'res'
)
// 如果需要重新登录
// 如果需要重新登录
res
&&
this
.
login
(
true
,
res
)
res
&&
this
.
login
(
true
,
res
)
}
}
...
...
app.json
View file @
09ddf2e
...
@@ -64,20 +64,12 @@
...
@@ -64,20 +64,12 @@
{
{
"root"
:
"tabDate"
,
"root"
:
"tabDate"
,
"name"
:
"tabDate"
,
"name"
:
"tabDate"
,
"pages"
:
[
"pages"
:
[
"pages/detail/detail"
,
"pages/apprManage/apprManage"
,
"pages/userPortrait/userPortrait"
]
"pages/detail/detail"
,
"pages/apprManage/apprManage"
,
"pages/userPortrait/userPortrait"
]
},
},
{
{
"root"
:
"tabMine"
,
"root"
:
"tabMine"
,
"name"
:
"tabMine"
,
"name"
:
"tabMine"
,
"pages"
:
[
"pages"
:
[
"pages/technicianSetup/technicianSetup"
,
"pages/completeBuild/completeBuild"
,
"pages/collectCoupons/collectCoupons"
]
"pages/technicianSetup/technicianSetup"
,
"pages/completeBuild/completeBuild"
,
"pages/collectCoupons/collectCoupons"
]
},
},
{
{
"root"
:
"tabWorkOrder"
,
"root"
:
"tabWorkOrder"
,
...
@@ -132,25 +124,12 @@
...
@@ -132,25 +124,12 @@
{
{
"root"
:
"tabOperating"
,
"root"
:
"tabOperating"
,
"name"
:
"tabOperating"
,
"name"
:
"tabOperating"
,
"pages"
:
[
"pages"
:
[
"pages/4sOverview/4sOverview"
,
"pages/index/index"
,
"pages/operatingShow/operatingShow"
]
"pages/4sOverview/4sOverview"
,
"pages/index/index"
,
"pages/operatingShow/operatingShow"
]
},
},
{
{
"root"
:
"packageCrowdFunding"
,
"root"
:
"packageCrowdFunding"
,
"name"
:
"packageCrowdFunding"
,
"name"
:
"packageCrowdFunding"
,
"pages"
:
[
"pages"
:
[
"pages/TabBar/crowdFundingPage"
,
"pages/activityPage/paidOrder/orderList"
,
"pages/activityPage/activityList/activityList"
,
"pages/activityPage/activityPay/activityPay"
,
"pages/activityPage/paymentSuccess/paymentSuccess"
,
"pages/activityPage/balanceNote/balanceNote"
,
"pages/activityPage/newOrder/newOrder"
,
"pages/activityPage/additionRecordOrder/additionRecordOrder"
]
"pages/TabBar/crowdFundingPage"
,
"pages/activityPage/paidOrder/orderList"
,
"pages/activityPage/activityList/activityList"
,
"pages/activityPage/activityPay/activityPay"
,
"pages/activityPage/paymentSuccess/paymentSuccess"
,
"pages/activityPage/balanceNote/balanceNote"
,
"pages/activityPage/newOrder/newOrder"
,
"pages/activityPage/additionRecordOrder/additionRecordOrder"
]
},
},
{
{
"root"
:
"subvehicleConversion"
,
"root"
:
"subvehicleConversion"
,
...
@@ -187,21 +166,17 @@
...
@@ -187,21 +166,17 @@
"van-popup"
:
"@vant/weapp/popup/index"
,
"van-popup"
:
"@vant/weapp/popup/index"
,
"van-dialog"
:
"@vant/weapp/dialog/index"
,
"van-dialog"
:
"@vant/weapp/dialog/index"
,
"van-uploader"
:
"@vant/weapp/uploader/index"
,
"van-uploader"
:
"@vant/weapp/uploader/index"
,
"glsx-privacy"
:
"gls
x
-applet-component/GlsxPrivacy/index"
,
"glsx-privacy"
:
"gls
k
-applet-component/GlsxPrivacy/index"
,
"empty-data"
:
"/components/EmptyData/EmptyData"
"empty-data"
:
"/components/EmptyData/EmptyData"
},
},
"preloadRule"
:
{
"preloadRule"
:
{
"pages/tabWorkOrder/pages/index/index"
:
{
"pages/tabWorkOrder/pages/index/index"
:
{
"network"
:
"all"
,
"network"
:
"all"
,
"packages"
:
[
"packages"
:
[
"tabWorkOrder"
]
"tabWorkOrder"
]
},
},
"tabIndex/pages/index/index"
:
{
"tabIndex/pages/index/index"
:
{
"network"
:
"all"
,
"network"
:
"all"
,
"packages"
:
[
"packages"
:
[
"tabWorkOrder"
]
"tabWorkOrder"
]
}
}
},
},
"resolveAlias"
:
{
"resolveAlias"
:
{
...
...
config.js
View file @
09ddf2e
...
@@ -19,7 +19,6 @@ export const appId = 'wx570d9331f9ace0bd'
...
@@ -19,7 +19,6 @@ export const appId = 'wx570d9331f9ace0bd'
* 5cdptest
* 5cdptest
*/
*/
let
index
=
2
let
index
=
2
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
...
...
package-lock.json
View file @
09ddf2e
...
@@ -12,10 +12,10 @@
...
@@ -12,10 +12,10 @@
"resolved"
:
"https://registry.npmmirror.com/@vant/weapp/-/weapp-1.10.24.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/@vant/weapp/-/weapp-1.10.24.tgz"
,
"integrity"
:
"sha512-oovAaaJq3mlB+wto5bHVCn/rov8IgRDg+gJXy6hPX0A3c9WF1GqLqSmoXyaktgidJ9IaV1RADd3PAFlw4lUsnQ=="
"integrity"
:
"sha512-oovAaaJq3mlB+wto5bHVCn/rov8IgRDg+gJXy6hPX0A3c9WF1GqLqSmoXyaktgidJ9IaV1RADd3PAFlw4lUsnQ=="
},
},
"gls
x
-applet-component"
:
{
"gls
k
-applet-component"
:
{
"version"
:
"1.
1.25
"
,
"version"
:
"1.
0.0
"
,
"resolved"
:
"https://registry.npm
mirror.com/glsx-applet-component/-/glsx-applet-component-1.1.25
.tgz"
,
"resolved"
:
"https://registry.npm
js.org/glsk-applet-component/-/glsk-applet-component-1.0.0
.tgz"
,
"integrity"
:
"sha512-
tE84hW6y+1YG6hFroDEUvP/0rC0Bsgk/Z+xkKfp2++V3qs/7xFtYvz15ShThMSemLd7lcZCi0aMh9Xp4QNytLA
=="
"integrity"
:
"sha512-
ulz1OquWy4y4Q26Zu4FLDWzyqK+sInPWs4o8MKj2N8V/TnYQlUXoWkkgKh8fERK8A+rsusf3eiyZB0odchKk8g
=="
},
},
"glsx-common-sdk"
:
{
"glsx-common-sdk"
:
{
"version"
:
"0.2.8"
,
"version"
:
"0.2.8"
,
...
...
package.json
View file @
09ddf2e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"dependencies"
:
{
"dependencies"
:
{
"@vant/area-data"
:
"^1.5.1"
,
"@vant/area-data"
:
"^1.5.1"
,
"@vant/weapp"
:
"^1.10.24"
,
"@vant/weapp"
:
"^1.10.24"
,
"gls
x-applet-component"
:
"^1.1.25
"
,
"gls
k-applet-component"
:
"^1.0.0
"
,
"glsx-common-sdk"
:
"^0.2.8"
,
"glsx-common-sdk"
:
"^0.2.8"
,
"number-precision"
:
"^1.6.0"
,
"number-precision"
:
"^1.6.0"
,
"rfdc"
:
"^1.3.0"
"rfdc"
:
"^1.3.0"
...
...
packageEquity/api.js
View file @
09ddf2e
...
@@ -170,5 +170,6 @@ module.exports = {
...
@@ -170,5 +170,6 @@ module.exports = {
/** 员工是否需要推送开单预警 */
/** 员工是否需要推送开单预警 */
orderStaffValid
(
data
)
{
orderStaffValid
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.staff.valid'
,
data
)
return
api
.
post
(
'dj.api.smartcarlife.order.staff.valid'
,
data
)
}
},
}
}
packageEquity/pages/TabBar/equityPage.js
View file @
09ddf2e
...
@@ -228,6 +228,12 @@ Page({
...
@@ -228,6 +228,12 @@ Page({
// }
// }
// })
// })
},
},
checkDailyRecport
()
{
let
{
tabIndex
}
=
this
.
data
const
isStaff
=
app
.
globalData
.
isStaff
// 如果是员工 判读是否要填写日报
isStaff
&&
tabIndex
==
0
&&
this
.
staffDailyReport
(
wx
.
$util
.
getUserInfo
())
},
getMerchant4SMode
()
{
getMerchant4SMode
()
{
let
storeInfo
=
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
let
storeInfo
=
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
// console.log(wx.$util.getUserInfo()?.default4SStoreInfo ,'wx.$util.getUserInfo()?.default4SStoreInfo ');
// console.log(wx.$util.getUserInfo()?.default4SStoreInfo ,'wx.$util.getUserInfo()?.default4SStoreInfo ');
...
@@ -347,73 +353,6 @@ Page({
...
@@ -347,73 +353,6 @@ Page({
})
})
})
})
},
},
// test (){
// const params ={
// mode: 1,
// insurancePrice: 0,
// outTradeNo: '0120230111614687537054883840',
// referrerId: '390664aa685c4c43855f5b80122affa3',
// referrer: '负责人',
// quotedPriceUpdate: 47600,
// minEquityPrice: 1,
// goodsId: 687,
// goodsName: '测试2.0商品',
// merchantId4s: 44211468,
// merchantName4s: '明明长岭4s店A',
// owner:{
// owner: 'test',
// phone: 15626599738,
// // certificateNo: '',
// // carVin: '',
// seat: 5,
// price: 2222200,
// confirmStatus: false,
// saveStatus: false,
// },
// check: true,
// }
// console.log(params);
// quotationRecording(params).then((result) => {
// console.log(result);
// }).catch((err) => {
// });
// },
// getStoreList(e) {
// // 获取园区店下的4s店数据 超管拉全部数据
// let { userInfo } = this.data
// // {
// // merchantId: options.yqMerchantId,
// // scene: 0,
// // merchantName: options.merchantName
// // }
// let params = {
// merchantId: userInfo?.isSuper ? '' : userInfo?.merchantId,
// merchantName: e?.detail.value,
// staffUUID: userInfo?.isSuper ? '' : userInfo?.uuid
// }
// get4SStoreList(params)
// .then(result => {
// console.log(result)
// userInfo = wx.$util.getUserInfo()
// let selectStroeIndex =
// result?.findIndex(v => {
// return v.merchantId == userInfo?.default4SStoreInfo?.merchantId
// }) > -1
// ? result?.findIndex(v => {
// return v.merchantId == userInfo?.default4SStoreInfo?.merchantId
// })
// : 0
// this.setData({
// storeListRange: result,
// userInfo,
// selectStroeIndex,
// showPage: true
// })
// this.getMerchant4SMode()
// })
// .catch(err => {})
// },
showStorePicker
()
{
showStorePicker
()
{
this
.
setData
({
this
.
setData
({
...
@@ -486,12 +425,7 @@ Page({
...
@@ -486,12 +425,7 @@ Page({
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
}
}
},
},
checkDailyRecport
()
{
let
{
tabIndex
}
=
this
.
data
const
isStaff
=
app
.
globalData
.
isStaff
// 如果是员工 判读是否要填写日报
isStaff
&&
tabIndex
==
0
&&
this
.
staffDailyReport
(
wx
.
$util
.
getUserInfo
())
},
onRoute
(
options
)
{
onRoute
(
options
)
{
console
.
log
(
options
,
'options'
)
console
.
log
(
options
,
'options'
)
if
(
options
&&
options
.
tabIndex
)
{
if
(
options
&&
options
.
tabIndex
)
{
...
...
packageEquity/pages/aiInspectionDetail/aiInspectionDetail.js
View file @
09ddf2e
...
@@ -52,7 +52,8 @@ Page({
...
@@ -52,7 +52,8 @@ Page({
},
},
message
message
}
=
await
carLifeApi
.
getInspectionDetail
({
}
=
await
carLifeApi
.
getInspectionDetail
({
batchId
batchId
,
pageSize
:
99999
})
})
if
(
code
==
0
&&
list
)
{
if
(
code
==
0
&&
list
)
{
let
titleList
=
Array
.
from
(
new
Set
([...
list
.
map
(
e
=>
e
.
firstClassify
)]))
let
titleList
=
Array
.
from
(
new
Set
([...
list
.
map
(
e
=>
e
.
firstClassify
)]))
...
...
packageEquity/pages/carQuotation/components/GoodsPackage/Goods.wxml
View file @
09ddf2e
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.goods}}">
<block wx:if="{{i.goods}}">
<view class="name text-hide ">
<view class="name text-hide ">
<view>{{filter.replaceItemText(i.goods.
upgradeG
oodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName) || filter.replaceItemText(i.goods.goodsInfo.goodsName)}}</view>
<view>{{filter.replaceItemText(i.goods.
g
oodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName) || filter.replaceItemText(i.goods.goodsInfo.goodsName)}}</view>
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view>
<view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view>
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
...
...
packageEquity/pages/trainingMaterials/api/api.js
View file @
09ddf2e
...
@@ -16,5 +16,8 @@ module.exports = {
...
@@ -16,5 +16,8 @@ module.exports = {
let
params
=
data
||
{}
let
params
=
data
||
{}
return
api
.
post
(
'dj.api.customer.dynamic.record.leave'
,
params
)
return
api
.
post
(
'dj.api.customer.dynamic.record.leave'
,
params
)
},
},
/** 资料详情 */
materialDetail
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.material.detail'
,
data
)
}
}
}
packageEquity/pages/trainingMaterials/components/Materials/materials.js
View file @
09ddf2e
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
import
{
materialListApi
,
leavePageTrack
}
from
"../../api/api"
import
{
materialListApi
,
leavePageTrack
}
from
"../../api/api"
let
currentTabType
=
'video'
;
let
currentTabType
=
'video'
;
Component
({
Component
({
properties
:
{
properties
:
{
...
@@ -94,7 +94,11 @@ Component({
...
@@ -94,7 +94,11 @@ Component({
materialListApi
(
params
).
then
(
res
=>
{
materialListApi
(
params
).
then
(
res
=>
{
if
(
res
&&
res
.
data
)
{
if
(
res
&&
res
.
data
)
{
res
.
data
.
forEach
(
el
=>
{
res
.
data
.
forEach
(
el
=>
{
if
(
el
.
createdDate
)
el
.
createdDate
=
new
Date
(
el
.
createdDate
).
format
(
'yyyy-MM-dd'
)
if
(
el
.
createdDate
)
{
let
date
=
el
.
createdDate
+
''
date
=
date
.
replace
(
/-/g
,
'/'
).
split
(
' '
)[
0
]
// 日期格式处理
el
.
createdDate
=
date
}
})
})
}
}
list
=
res
.
data
||
[]
list
=
res
.
data
||
[]
...
@@ -134,7 +138,7 @@ Component({
...
@@ -134,7 +138,7 @@ Component({
})
})
}
}
},
},
onHide
(){
onHide
()
{
clearInterval
(
this
.
intaval
)
clearInterval
(
this
.
intaval
)
}
}
}
}
...
...
packageEquity/pages/trainingMaterials/pages/playVideo/index.js
View file @
09ddf2e
import
{
enterPageTrack
,
leavePageTrack
}
from
"../../api/api"
import
{
enterPageTrack
,
leavePageTrack
,
materialDetail
}
from
"../../api/api"
Page
({
Page
({
data
:
{
data
:
{
martrialURL
:
''
martrialURL
:
''
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
)
{
console
.
log
(
options
);
// if () {
options
&&
this
.
getDetail
(
options
)
// }
},
getDetail
(
options
)
{
materialDetail
({
id
:
options
.
id
}).
then
((
res
)
=>
{
console
.
log
(
res
,
'result'
);
const
sys
=
wx
.
getSystemInfoSync
()
const
sys
=
wx
.
getSystemInfoSync
()
const
styleCss
=
`width:100%;height:100vh`
const
styleCss
=
`width:100%;height:100vh`
const
{
type
,
title
,
id
}
=
options
let
{
type
,
title
,
id
}
=
options
const
_tempArr
=
JSON
.
parse
(
wx
.
getStorageSync
(
'pageQueryOfcontent'
))
let
{
materialDetailInfoList
:
_tempArr
}
=
res
.
data
// const _tempArr = JSON.parse(wx.getStorageSync('pageQueryOfcontent'))
this
.
id
=
id
this
.
id
=
id
wx
.
removeStorageSync
(
'pageQueryOfcontent'
);
wx
.
removeStorageSync
(
'pageQueryOfcontent'
);
// 添加埋点
// 添加埋点
this
.
toAddTrack
(
id
)
this
.
toAddTrack
(
id
)
// let typeNum = type
let
url
=
''
let
url
=
''
if
([
'1'
,
'2'
,
'0'
,
1
,
2
,
0
].
includes
(
type
))
{
const
typeOpt
=
{
'1'
:
'video'
,
'2'
:
'PDF'
,
'0'
:
'image'
,
1
:
'video'
,
2
:
'PDF'
,
0
:
'image'
}
type
=
typeOpt
[
type
]
console
.
log
(
type
,
'type'
);
}
if
(
type
==
'video'
||
type
==
'PDF'
)
{
if
(
type
==
'video'
||
type
==
'PDF'
)
{
url
=
_tempArr
[
0
]
url
=
_tempArr
[
0
]
.
image
}
}
wx
.
setNavigationBarTitle
({
wx
.
setNavigationBarTitle
({
title
title
:
decodeURIComponent
(
title
)
})
})
if
(
type
==
'PDF'
)
{
if
(
type
==
'PDF'
)
{
wx
.
showLoading
()
wx
.
showLoading
()
...
@@ -71,7 +94,9 @@ Page({
...
@@ -71,7 +94,9 @@ Page({
type
:
type
,
type
:
type
,
materials
:
_tempArr
materials
:
_tempArr
})
})
}
}).
catch
((
err
)
=>
{
console
.
log
(
err
,
'err'
);
});
},
},
onShow
()
{
onShow
()
{
if
(
this
.
openPdf
)
{
if
(
this
.
openPdf
)
{
...
...
packageEquity/pages/trainingMaterials/pages/playVideo/index.wxml
View file @
09ddf2e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
</block> -->
</block> -->
<block wx:if="{{type=='image'}}">
<block wx:if="{{type=='image'}}">
<block wx:for="{{materials}}" wx:key="index">
<block wx:for="{{materials}}" wx:key="index">
<image mode="widthFix" src="{{item
}}" />
<image mode="widthFix" src="{{item.image
}}" />
</block>
</block>
</block>
</block>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/trainingMaterials/trainingMaterials.js
View file @
09ddf2e
...
@@ -99,7 +99,12 @@ Page({
...
@@ -99,7 +99,12 @@ Page({
materialListApi
(
params
).
then
(
res
=>
{
materialListApi
(
params
).
then
(
res
=>
{
if
(
res
&&
res
.
data
)
{
if
(
res
&&
res
.
data
)
{
res
.
data
.
forEach
(
el
=>
{
res
.
data
.
forEach
(
el
=>
{
if
(
el
.
createdDate
)
el
.
createdDate
=
new
Date
(
el
.
createdDate
).
format
(
'yyyy-MM-dd'
)
if
(
el
.
createdDate
)
{
let
date
=
el
.
createdDate
+
''
date
=
date
.
replace
(
/-/g
,
'/'
).
split
(
' '
)[
0
]
// 日期格式处理
el
.
createdDate
=
date
}
})
})
}
}
list
=
res
.
data
list
=
res
.
data
...
@@ -148,7 +153,7 @@ Page({
...
@@ -148,7 +153,7 @@ Page({
})
})
}
}
},
},
onHide
(){
onHide
()
{
clearInterval
(
this
.
intaval
)
clearInterval
(
this
.
intaval
)
}
}
})
})
\ No newline at end of file
\ No newline at end of file
pages/accountItems/accountItems.js
View file @
09ddf2e
...
@@ -32,7 +32,9 @@ Page({
...
@@ -32,7 +32,9 @@ Page({
console
.
log
(
id
,
'id'
);
console
.
log
(
id
,
'id'
);
id
?
this
.
qrCodeScene
(
id
)
:
this
.
getListSelectAccount
()
id
?
this
.
qrCodeScene
(
id
)
:
this
.
getListSelectAccount
()
},
},
getSceneArr
(
yqMerchantId
,
loginUserObj
)
{
async
getSceneArr
(
yqMerchantId
,
loginUserObj
)
{
// let checkAgree = await this.checkAgree()
// if (!checkAgree) return false
// 超管开通全部场景
// 超管开通全部场景
if
(
loginUserObj
?.
isSuper
)
return
if
(
loginUserObj
?.
isSuper
)
return
// 获取4s店关联场景数据
// 获取4s店关联场景数据
...
...
pages/wxLogin/wxLogin.js
View file @
09ddf2e
// pages/wxLogin/wxLogin.js
// pages/wxLogin/wxLogin.js
import
api
from
'../../api/api.js'
import
api
from
'../../api/api.js'
import
{
setNoSignInUuid
,
getNoSignInUuid
,
rmNoSignInUuid
}
from
'~/utils/cache/storageApi.js'
import
{
setNoSignInUuid
,
getNoSignInUuid
,
rmNoSignInUuid
}
from
'~/utils/cache/storageApi.js'
import
{
get4SStoreList
,
getYQList
}
from
'~/store/index'
import
{
get4SStoreList
,
getYQList
}
from
'~/store/index'
const
app
=
getApp
()
const
app
=
getApp
()
Page
({
Page
({
/**
/**
...
@@ -115,7 +115,7 @@ Page({
...
@@ -115,7 +115,7 @@ Page({
if
(
!
flag
)
return
if
(
!
flag
)
return
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
if
(
this
.
data
.
jumpPageFlag
)
return
if
(
this
.
data
.
jumpPageFlag
)
return
this
.
setData
({
jumpPageFlag
:
true
})
this
.
setData
({
jumpPageFlag
:
true
})
getYQList
()
getYQList
()
// console.log(smsLogin,'smsLogin');
// console.log(smsLogin,'smsLogin');
if
(
loginType
==
1
)
{
if
(
loginType
==
1
)
{
...
@@ -128,7 +128,7 @@ Page({
...
@@ -128,7 +128,7 @@ Page({
})
})
.
then
(
result
=>
{
.
then
(
result
=>
{
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
let
{
code
,
data
,
message
}
=
result
let
{
code
,
data
,
message
}
=
result
if
(
code
==
0
)
{
if
(
code
==
0
)
{
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
data
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
data
...
@@ -136,7 +136,7 @@ Page({
...
@@ -136,7 +136,7 @@ Page({
const
loginUserObj
=
loginUserInfoList
.
filter
(
val
=>
val
.
subLoginUser
&&
Object
.
keys
(
val
.
subLoginUser
)?.
length
)[
0
]
||
{}
const
loginUserObj
=
loginUserInfoList
.
filter
(
val
=>
val
.
subLoginUser
&&
Object
.
keys
(
val
.
subLoginUser
)?.
length
)[
0
]
||
{}
wx
.
$util
.
setSessionId
(
sessionId
)
wx
.
$util
.
setSessionId
(
sessionId
)
getYQList
()
getYQList
()
noSignInUuid
?
setNoSignInUuid
(
noSignInUuid
)
:
rmNoSignInUuid
()
noSignInUuid
?
setNoSignInUuid
(
noSignInUuid
)
:
rmNoSignInUuid
()
// 记录登录信息 已选园区店、4s店和场景
// 记录登录信息 已选园区店、4s店和场景
if
(
!
needSelectAccount
&&
Object
.
keys
(
loginUserObj
)?.
length
&&
loginUserObj
?.
shopMerchantId
&&
!
((
loginUserObj
?.
sceneType
??
''
)
===
''
))
{
if
(
!
needSelectAccount
&&
Object
.
keys
(
loginUserObj
)?.
length
&&
loginUserObj
?.
shopMerchantId
&&
!
((
loginUserObj
?.
sceneType
??
''
)
===
''
))
{
this
.
getYqMerchantSceneConfig
(
loginUserObj
,
0
)
this
.
getYqMerchantSceneConfig
(
loginUserObj
,
0
)
...
@@ -155,7 +155,7 @@ Page({
...
@@ -155,7 +155,7 @@ Page({
}
}
}
else
{
}
else
{
wx
.
hideLoading
()
wx
.
hideLoading
()
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
wx
.
showModal
({
wx
.
showModal
({
title
:
'温馨提示'
,
title
:
'温馨提示'
,
content
:
message
,
content
:
message
,
...
@@ -174,7 +174,7 @@ Page({
...
@@ -174,7 +174,7 @@ Page({
})
})
.
then
(
result
=>
{
.
then
(
result
=>
{
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
let
{
code
,
data
,
message
}
=
result
let
{
code
,
data
,
message
}
=
result
if
(
code
==
0
)
{
if
(
code
==
0
)
{
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
data
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
data
...
@@ -182,7 +182,7 @@ Page({
...
@@ -182,7 +182,7 @@ Page({
const
loginUserObj
=
loginUserInfoList
.
filter
(
val
=>
val
.
subLoginUser
&&
Object
.
keys
(
val
.
subLoginUser
)?.
length
)[
0
]
||
{}
const
loginUserObj
=
loginUserInfoList
.
filter
(
val
=>
val
.
subLoginUser
&&
Object
.
keys
(
val
.
subLoginUser
)?.
length
)[
0
]
||
{}
wx
.
$util
.
setSessionId
(
sessionId
)
wx
.
$util
.
setSessionId
(
sessionId
)
getYQList
()
getYQList
()
noSignInUuid
?
setNoSignInUuid
(
noSignInUuid
)
:
rmNoSignInUuid
()
noSignInUuid
?
setNoSignInUuid
(
noSignInUuid
)
:
rmNoSignInUuid
()
// 记录登录信息 已选园区店、4s店和场景
// 记录登录信息 已选园区店、4s店和场景
if
(
!
needSelectAccount
&&
Object
.
keys
(
loginUserObj
)?.
length
&&
loginUserObj
?.
shopMerchantId
&&
!
((
loginUserObj
?.
sceneType
??
''
)
===
''
))
{
if
(
!
needSelectAccount
&&
Object
.
keys
(
loginUserObj
)?.
length
&&
loginUserObj
?.
shopMerchantId
&&
!
((
loginUserObj
?.
sceneType
??
''
)
===
''
))
{
this
.
getYqMerchantSceneConfig
(
loginUserObj
,
0
)
this
.
getYqMerchantSceneConfig
(
loginUserObj
,
0
)
...
@@ -195,11 +195,11 @@ Page({
...
@@ -195,11 +195,11 @@ Page({
}
}
}
else
{
}
else
{
wx
.
$router
.
reLaunch
(
'pages.nothing'
)
wx
.
$router
.
reLaunch
(
'pages.nothing'
)
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
}
}
}
else
{
}
else
{
wx
.
hideLoading
()
wx
.
hideLoading
()
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
wx
.
showModal
({
wx
.
showModal
({
title
:
'温馨提示'
,
title
:
'温馨提示'
,
content
:
message
,
content
:
message
,
...
@@ -256,7 +256,7 @@ Page({
...
@@ -256,7 +256,7 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
console
.
log
(
options
,
'options'
);
console
.
log
(
options
,
'options'
);
let
id
=
decodeURIComponent
(
options
.
scene
).
split
(
'='
)[
1
]
let
id
=
decodeURIComponent
(
options
.
scene
).
split
(
'='
)[
1
]
id
&&
this
.
qrCodeScene
(
id
)
id
&&
this
.
qrCodeScene
(
id
)
},
},
...
@@ -290,9 +290,9 @@ Page({
...
@@ -290,9 +290,9 @@ Page({
}
}
// }
// }
})
})
.
catch
(
err
=>
{})
.
catch
(
err
=>
{
})
},
},
noLoginFn
()
{
noLoginFn
()
{
let
that
=
this
let
that
=
this
let
{
noLogin
}
=
this
.
data
let
{
noLogin
}
=
this
.
data
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
...
@@ -304,12 +304,12 @@ Page({
...
@@ -304,12 +304,12 @@ Page({
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
if
(
result
.
code
==
0
)
{
if
(
result
.
code
==
0
)
{
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
result
.
data
let
{
loginUserInfoList
,
sessionId
,
noSignInUuid
,
needSelectAccount
}
=
result
.
data
console
.
log
(
result
,
loginUserInfoList
,
'loginUserInfoList'
);
console
.
log
(
result
,
loginUserInfoList
,
'loginUserInfoList'
);
if
(
loginUserInfoList
.
length
)
{
if
(
loginUserInfoList
.
length
)
{
const
loginUserObj
=
loginUserInfoList
.
filter
(
val
=>
val
.
subLoginUser
&&
Object
.
keys
(
val
.
subLoginUser
)?.
length
)[
0
]
||
{}
const
loginUserObj
=
loginUserInfoList
.
filter
(
val
=>
val
.
subLoginUser
&&
Object
.
keys
(
val
.
subLoginUser
)?.
length
)[
0
]
||
{}
wx
.
$util
.
setSessionId
(
sessionId
)
wx
.
$util
.
setSessionId
(
sessionId
)
getYQList
()
getYQList
()
noSignInUuid
?
setNoSignInUuid
(
noSignInUuid
)
:
rmNoSignInUuid
()
noSignInUuid
?
setNoSignInUuid
(
noSignInUuid
)
:
rmNoSignInUuid
()
// 记录登录信息 已选园区店、4s店和场景
// 记录登录信息 已选园区店、4s店和场景
if
(
!
needSelectAccount
&&
Object
.
keys
(
loginUserObj
)?.
length
&&
loginUserObj
?.
shopMerchantId
&&
!
((
loginUserObj
?.
sceneType
??
''
)
===
''
))
{
if
(
!
needSelectAccount
&&
Object
.
keys
(
loginUserObj
)?.
length
&&
loginUserObj
?.
shopMerchantId
&&
!
((
loginUserObj
?.
sceneType
??
''
)
===
''
))
{
this
.
getYqMerchantSceneConfig
(
loginUserObj
,
0
)
this
.
getYqMerchantSceneConfig
(
loginUserObj
,
0
)
...
@@ -329,6 +329,39 @@ Page({
...
@@ -329,6 +329,39 @@ Page({
wx
.
hideLoading
()
wx
.
hideLoading
()
})
})
},
},
// 检测一下是否能微信端小程序登录
checkAgreeClient
(
loginUserObj
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
sysInfo
=
wx
.
getSystemInfoSync
()
// let { environment } = sysInfo
// 1企业微信 0微信
let
envName
=
sysInfo
.
environment
?
1
:
0
let
{
merchantId
:
yqMerchantId
}
=
loginUserObj
api
.
getYqStoreConfig
({
yqMerchantId
}).
then
(
res
=>
{
let
{
code
,
data
:
{
loginControlList
=
[]
}
}
=
res
if
(
code
==
'0'
)
{
// const loginControlList = []
// const loginControlList = [0, 1]
if
(
loginControlList
.
includes
(
envName
))
{
resolve
(
true
)
}
else
{
wx
.
hideLoading
()
wx
.
showModal
({
title
:
'温馨提示'
,
content
:
`请在
${
envName
==
0
?
'企业微信'
:
'微信'
}
中打开`
,
showCancel
:
false
,
confirmText
:
'知道了'
,
confirmColor
:
'#347BFF'
})
resolve
(
false
)
}
}
})
})
},
/**
/**
* 获取授权手机号
* 获取授权手机号
*/
*/
...
@@ -357,7 +390,7 @@ Page({
...
@@ -357,7 +390,7 @@ Page({
const
loginUserObj
=
loginUserInfoList
.
filter
(
val
=>
val
.
subLoginUser
&&
Object
.
keys
(
val
.
subLoginUser
)?.
length
)[
0
]
||
{}
const
loginUserObj
=
loginUserInfoList
.
filter
(
val
=>
val
.
subLoginUser
&&
Object
.
keys
(
val
.
subLoginUser
)?.
length
)[
0
]
||
{}
wx
.
$util
.
setSessionId
(
sessionId
)
wx
.
$util
.
setSessionId
(
sessionId
)
getYQList
()
getYQList
()
noSignInUuid
?
setNoSignInUuid
(
noSignInUuid
)
:
rmNoSignInUuid
()
noSignInUuid
?
setNoSignInUuid
(
noSignInUuid
)
:
rmNoSignInUuid
()
// 记录登录信息 已选园区店、4s店和场景
// 记录登录信息 已选园区店、4s店和场景
if
(
!
needSelectAccount
&&
Object
.
keys
(
loginUserObj
)?.
length
&&
loginUserObj
?.
shopMerchantId
&&
!
((
loginUserObj
?.
sceneType
??
''
)
===
''
))
{
if
(
!
needSelectAccount
&&
Object
.
keys
(
loginUserObj
)?.
length
&&
loginUserObj
?.
shopMerchantId
&&
!
((
loginUserObj
?.
sceneType
??
''
)
===
''
))
{
this
.
getYqMerchantSceneConfig
(
loginUserObj
,
0
)
this
.
getYqMerchantSceneConfig
(
loginUserObj
,
0
)
...
@@ -384,6 +417,8 @@ Page({
...
@@ -384,6 +417,8 @@ Page({
})
})
},
},
async
getYqMerchantSceneConfig
(
loginUserObj
,
num
)
{
async
getYqMerchantSceneConfig
(
loginUserObj
,
num
)
{
// let checkAgreeClient = await this.checkAgreeClient(loginUserObj)
// if (!checkAgreeClient) return wx.$router.go('pages.accountItems')
// num 0已选园区店、4s店和场景 1已选园区店、4s店 2仅选择园区店
// num 0已选园区店、4s店和场景 1已选园区店、4s店 2仅选择园区店
let
pageUrl
=
[
'pages.loading'
,
'pages.sceneIndex'
,
'pages.merchantList'
]
let
pageUrl
=
[
'pages.loading'
,
'pages.sceneIndex'
,
'pages.merchantList'
]
let
{
shopMerchantId
,
shopMerchantName
}
=
loginUserObj
let
{
shopMerchantId
,
shopMerchantName
}
=
loginUserObj
...
@@ -409,14 +444,14 @@ Page({
...
@@ -409,14 +444,14 @@ Page({
})
})
if
(
num
==
0
)
wx
.
$router
.
reLaunch
(
pageUrl
[
num
])
if
(
num
==
0
)
wx
.
$router
.
reLaunch
(
pageUrl
[
num
])
else
wx
.
$router
.
go
(
pageUrl
[
num
])
else
wx
.
$router
.
go
(
pageUrl
[
num
])
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
}
}
},
},
// 获取园区店下4s店数据
// 获取园区店下4s店数据
get4SStoreList
(
loginUserObj
,
pageUrl
)
{
get4SStoreList
(
loginUserObj
,
pageUrl
)
{
let
{
merchantId
,
isSuper
,
uuid
}
=
loginUserObj
let
{
merchantId
,
isSuper
,
uuid
}
=
loginUserObj
get4SStoreList
({
merchantId
:
isSuper
?
undefined
:
merchantId
,
staffUUID
:
isSuper
?
undefined
:
uuid
}).
then
(
result
=>
{
get4SStoreList
({
merchantId
:
isSuper
?
undefined
:
merchantId
,
staffUUID
:
isSuper
?
undefined
:
uuid
}).
then
(
result
=>
{
// 超管跳过选择4s店
// 超管跳过选择4s店
if
(
isSuper
)
{
if
(
isSuper
)
{
let
{
merchantName
,
merchantId
}
=
result
[
0
]
let
{
merchantName
,
merchantId
}
=
result
[
0
]
...
@@ -426,7 +461,7 @@ Page({
...
@@ -426,7 +461,7 @@ Page({
shopMerchantId
:
merchantId
shopMerchantId
:
merchantId
})
})
wx
.
$router
.
go
(
'pages.sceneIndex'
)
wx
.
$router
.
go
(
'pages.sceneIndex'
)
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
return
return
}
}
// 仅一家4s店
// 仅一家4s店
...
@@ -450,13 +485,13 @@ Page({
...
@@ -450,13 +485,13 @@ Page({
}
}
})
})
wx
.
$router
.
go
(
'pages.sceneIndex'
)
wx
.
$router
.
go
(
'pages.sceneIndex'
)
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
}
else
if
(
!
result
?.
length
)
{
}
else
if
(
!
result
?.
length
)
{
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
return
wx
.
$util
.
showToast
(
'园区店关联的4s店商户账号无效,请联系总部管理员'
)
return
wx
.
$util
.
showToast
(
'园区店关联的4s店商户账号无效,请联系总部管理员'
)
}
else
{
}
else
{
wx
.
$router
.
go
(
pageUrl
)
wx
.
$router
.
go
(
pageUrl
)
this
.
setData
({
jumpPageFlag
:
false
})
this
.
setData
({
jumpPageFlag
:
false
})
}
}
})
})
},
},
...
@@ -470,7 +505,7 @@ Page({
...
@@ -470,7 +505,7 @@ Page({
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
:
function
()
{},
onReady
:
function
()
{
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
...
@@ -479,7 +514,7 @@ Page({
...
@@ -479,7 +514,7 @@ Page({
wx
.
hideHomeButton
()
wx
.
hideHomeButton
()
this
.
login
()
this
.
login
()
let
noSignInUuid
=
getNoSignInUuid
()
let
noSignInUuid
=
getNoSignInUuid
()
noSignInUuid
&&
app
.
login
(
true
)
noSignInUuid
&&
app
.
login
(
true
)
this
.
setData
({
this
.
setData
({
jumpPageFlag
:
false
jumpPageFlag
:
false
})
})
...
@@ -512,20 +547,20 @@ Page({
...
@@ -512,20 +547,20 @@ Page({
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
onHide
:
function
()
{},
onHide
:
function
()
{
},
/**
/**
* 生命周期函数--监听页面卸载
* 生命周期函数--监听页面卸载
*/
*/
onUnload
:
function
()
{},
onUnload
:
function
()
{
},
/**
/**
* 页面相关事件处理函数--监听用户下拉动作
* 页面相关事件处理函数--监听用户下拉动作
*/
*/
onPullDownRefresh
:
function
()
{},
onPullDownRefresh
:
function
()
{
},
/**
/**
* 页面上拉触底事件的处理函数
* 页面上拉触底事件的处理函数
*/
*/
onReachBottom
:
function
()
{}
onReachBottom
:
function
()
{
}
})
})
store/index.js
View file @
09ddf2e
...
@@ -220,7 +220,7 @@ export const checkScene = options => {
...
@@ -220,7 +220,7 @@ export const checkScene = options => {
}
}
console
.
log
(
query
,
'query'
)
console
.
log
(
query
,
'query'
)
let
userInfo
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
let
userInfo
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
if
(
query
&&
query
.
reportDate
)
{
if
(
query
&&
query
.
reportDate
&&
Object
.
hasOwnProperty
(
query
.
approvedSource
)
)
{
// const app = getApp()
// const app = getApp()
// console.log(app, 'app');
// console.log(app, 'app');
// app.globalData.yqdInfo = {}
// app.globalData.yqdInfo = {}
...
@@ -235,39 +235,35 @@ export const checkScene = options => {
...
@@ -235,39 +235,35 @@ export const checkScene = options => {
// console.log(query, ' query')
// console.log(query, ' query')
if
(
query
&&
(
query
.
scene
||
query
.
merchantId
||
query
.
type
||
query
.
page
))
{
if
(
query
&&
(
query
.
scene
||
query
.
merchantId
||
query
.
type
||
query
.
page
))
{
// 如果是跳转员工日报页面,需先情况之前的用户登录信息
// 如果是跳转员工日报页面,需先情况之前的用户登录信息
if
(
query
.
merchantId
&&
!
query
.
reportDate
)
{
// &&options.patch == 'tabIndex/pages/index/index'
// 需要当前门店的 不是就重新登录
if
(
userInfo
?.
subLoginUser
?.
merchantId
!=
query
.
merchantId
)
{
wx
.
$SCENE
=
null
// return this.login(true)
// return true // 重新登录
return
'订单与当前登录园区不一致,请重新登录。'
}
if
(
query
.
page
)
{
//订单跟进
options
.
path
=
'tabWorkOrder/pages/createOrder/createOrder'
}
else
{
//订单补录
options
.
path
=
'pages/index/index'
}
}
// h5跳转小程序 路径处理
// h5跳转小程序 路径处理
if
(
query
.
page
)
{
if
(
query
.
page
)
{
const
pagePath
=
{
const
pagePath
=
{
createArchives
:
'tabWorkOrder/pages/createArchives/createArchives'
,
createArchives
:
'tabWorkOrder/pages/createArchives/createArchives'
,
createOrder
:
'tabWorkOrder/pages/createOrder/createOrder'
,
createOrder
:
'tabWorkOrder/pages/createOrder/createOrder'
,
followUpOrder
:
'tabDate/pages/detail'
,
followUpOrder
:
'tabDate/pages/detail'
,
staffDaily
:
'tabWorkOrder/pages/staffDaily/staffDaily'
staffDaily
:
'tabWorkOrder/pages/staffDaily/staffDaily'
,
playVideo
:
'packageEquity/pages/trainingMaterials/pages/playVideo/index'
}
}
options
.
path
=
pagePath
[
query
.
page
]
options
.
path
=
pagePath
[
query
.
page
]
}
}
console
.
log
(
options
,
'options'
)
console
.
log
(
options
,
query
,
'options'
)
console
.
log
(
userInfo
,
'userInfo'
);
wx
.
$SCENE
=
options
wx
.
$SCENE
=
options
if
(
query
.
merchantId
&&
!
query
.
reportDate
&&
!
query
.
title
)
{
// &&options.patch == 'tabIndex/pages/index/index'
// 需要当前门店的 不是就重新登录
if
(
userInfo
?.
subLoginUser
?.
merchantId
!=
query
.
merchantId
)
{
wx
.
$SCENE
=
null
// return this.login(true)
// return true // 重新登录
return
'当前登录园区不一致,请重新登录。'
}
}
console
.
log
(
options
.
path
,
'options.path'
)
console
.
log
(
options
.
path
,
'options.path'
)
if
(
!
userInfo
&&
!
[
'pages/accountItems/accountItems'
,
'pages/wxLogin/wxLogin'
,
'tabWorkOrder/pages/staffDaily/staffDaily'
].
includes
(
options
.
path
))
{
// wx.$SCENE = options
if
(
!
userInfo
&&
!
[
'pages/accountItems/accountItems'
,
'pages/wxLogin/wxLogin'
,
'tabWorkOrder/pages/staffDaily/staffDaily'
,
'packageEquity/pages/trainingMaterials/pages/playVideo/index'
].
includes
(
options
.
path
))
{
// if (!userInfo) {
// if (!userInfo) {
// console.log(userInfo);
// console.log(userInfo);
console
.
log
(
'未登录,请登录。'
)
console
.
log
(
'未登录,请登录。'
)
...
...
tabIndex/api.js
View file @
09ddf2e
...
@@ -55,7 +55,8 @@ module.exports = {
...
@@ -55,7 +55,8 @@ module.exports = {
},
},
/** 查询该店员工日报是否开启 */
/** 查询该店员工日报是否开启 */
staffDailyReportMerchantValid
(
data
)
{
staffDailyReportMerchantValid
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.merchant.valid'
,
data
)
// return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.popup.need'
,
data
)
},
},
/** 员工是否需要推送开单预警 */
/** 员工是否需要推送开单预警 */
orderStaffValid
(
data
)
{
orderStaffValid
(
data
)
{
...
...
tabIndex/pages/index/index.js
View file @
09ddf2e
...
@@ -633,8 +633,51 @@ Page({
...
@@ -633,8 +633,51 @@ Page({
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
async
staffDailyReport
(
userInfo
)
{
// 是配置的园区店并且没有填写上一天的日报
let
merchantStaffDailyReportMerchantValid
=
await
this
.
staffDailyReportMerchantValid
(
userInfo
)
// 没有开启就不走下一步逻辑
// if (!merchantStaffDailyReportMerchantValid) return false
if
(
merchantStaffDailyReportMerchantValid
)
{
// 获取当前日期
let
currentDate
=
new
Date
()
// 获取上一天的日期
let
previousDate
=
new
Date
(
currentDate
)
previousDate
.
setDate
(
currentDate
.
getDate
()
-
1
)
// 格式化日期为"yyyy-mm-dd"
let
formattedDate
=
previousDate
.
toISOString
().
split
(
'T'
)[
0
]
if
(
wx
.
__HAS_NOREPORT_MODAL
||
wx
.
__HAS_NOTLOGIN_MODAL
)
return
false
wx
.
__HAS_NOREPORT_MODAL
=
true
wx
.
showModal
({
title
:
'日报提醒'
,
content
:
'您有未填写的日报,请点击前往。'
,
showCancel
:
false
,
// cancelText: '取消', // '取消
cancelColor
:
'#292D33'
,
confirmText
:
'前往填写'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
$router
.
go
(
'tabWorkOrder.staffDaily'
,
{
// reportDate: hasNeedReport.date
reportDate
:
formattedDate
})
}
},
complete
:
()
=>
{
// 这个延迟的目的是为了避免短时间内重复弹出
// 你要是没有这个需要也可以去掉,直接把标志位改成 false 就行
setTimeout
(()
=>
{
wx
.
__HAS_NOREPORT_MODAL
=
false
},
2000
)
}
})
}
},
checkDailyRecport
()
{
checkDailyRecport
()
{
let
{
tabIndex
}
=
this
.
data
//
let { tabIndex } = this.data
const
isStaff
=
app
.
globalData
.
isStaff
const
isStaff
=
app
.
globalData
.
isStaff
// 如果是员工 判读是否要填写日报
// 如果是员工 判读是否要填写日报
isStaff
&&
this
.
staffDailyReport
(
wx
.
$util
.
getUserInfo
())
isStaff
&&
this
.
staffDailyReport
(
wx
.
$util
.
getUserInfo
())
...
@@ -654,7 +697,6 @@ Page({
...
@@ -654,7 +697,6 @@ Page({
// 产品需求:该场景无需再放开入口
// 产品需求:该场景无需再放开入口
// this.checkDailyRecport()
// this.checkDailyRecport()
this.checkStaffOrderStatus()
this.checkStaffOrderStatus()
// this.checkDailyRecport()
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
...
@@ -740,7 +782,10 @@ Page({
...
@@ -740,7 +782,10 @@ Page({
// console.log(userInfo, 'userInfo')
// console.log(userInfo, 'userInfo')
api
api
.staffDailyReportMerchantValid({
.staffDailyReportMerchantValid({
merchantId: userInfo.shopMerchantId
// merchantId: userInfo.shopMerchantId
merchantId: userInfo.shopMerchantId,
yqMerchantId: userInfo.merchantId,
staffUuid: userInfo.uuid
})
})
.then(res => {
.then(res => {
// console.log(res, 'staffDailyReportMerchantValid')
// console.log(res, 'staffDailyReportMerchantValid')
...
@@ -751,135 +796,6 @@ Page({
...
@@ -751,135 +796,6 @@ Page({
})
})
})
})
},
},
async staffDailyReport(userInfo) {
// debugger
let merchantStaffDailyReportMerchantValid = await this.staffDailyReportMerchantValid(userInfo)
console.log(merchantStaffDailyReportMerchantValid, 'merchantStaffDailyReportMerchantValid')
// 没有开启就不走下一步逻辑
if (!merchantStaffDailyReportMerchantValid) return false
let { isStaff } = this.data
// 获取当前日期
if (isStaff) {
const { merchantId, merchantName, name, uuid, shopMerchantId, shopMerchantName } = userInfo
let timeBean = util.getWeekDayList(0)
let params = {
yqMerchantId: merchantId,
yqMerchantName: merchantName,
staffName: name,
staffUuid: uuid,
// shopMerchantId: shopMerchantId,
// shopMerchantName: shopMerchantName
merchantId: shopMerchantId,
merchantName: shopMerchantName,
...timeBean
}
api.staffDailyReportDetailWeeklyList(params).then(res => {
let { code, data, message } = res
if (code == 0) {
console.log(data, 'data')
// timeBean.weekDayList = timeBean.weekDayList.map((item, index) => {
// // item.weeklyList = data[index]
// item.hasDailyValue = data.includes(item.date)
// return item
// })
// timeBean
// let dateStaffPop = wx.$storage.get('dateStaffPop')
// 判断 有没有填写日报
let hasNeedReport = timeBean.weekDayList.find((item, index) => {
// item.hasDailyValue =
return !data.includes(item.date) && !item.disabled
})
console.log(hasNeedReport, 'hasNeedReport')
let nowDate = new Date().format('yyyy-MM-dd')
// let num = 0
// if (dateStaffPop?.date && nowDate == dateStaffPop?.date) {
// num = dateStaffPop?.num || 0
// num = num + 1
// } else {
// num = num + 1
// }
// num <= 2
if (hasNeedReport && isStaff) {
// if (num <= 2) {
// wx.$util.showToast('驻店日报未填写,请及时填写')
if (wx.__HAS_NOREPORT_MODAL || wx.__HAS_NOTLOGIN_MODAL) return false
wx.__HAS_NOREPORT_MODAL = true
wx.showModal({
title: '日报提醒',
content: '您有未填写的日报,请点击前往。',
showCancel: false,
// cancelText: '取消', // '取消
cancelColor: '#292D33',
confirmText: '前往填写',
confirmColor: '#347BFF',
success(res) {
if (res.confirm) {
wx.$router.go('tabWorkOrder.staffDaily', {
reportDate: hasNeedReport.date
})
}
},
complete: () => {
// 这个延迟的目的是为了避免短时间内重复弹出
// 你要是没有这个需要也可以去掉,直接把标志位改成 false 就行
setTimeout(() => {
wx.__HAS_NOREPORT_MODAL = false
}, 2000)
}
})
// }
}
// let num = hasNeedReport ? dateStaffPop?.num + 1 : dateStaffPop?.num
console.log(num)
wx.$storage.set('dateStaffPop', {
date: new Date().format('yyyy-MM-dd'),
num
})
console.log(hasNeedReport, 'hasNeedReport')
this.setData({
// weeklyList: data
// timeBean
})
} else {
wx.$util.showToast(message)
}
})
// this.setData({
// timeBean: util.getWeekDayList(this.data.selectWeek)
// })
}
},
// onRoute(options) {
// options && this.checkShowOrderPop(options)
// // options && options.resetStoreList && this.get4SStoreList()
// // 跳转工单/预约详情
// // listStatus 0 待跟进 1已升级 2战败 3待支付
// if (options?.isGoPage) {
// // status 1待跟进(有inviteRecordId跳转预约详情无跳转待跟进工单页面 微信支付跳转工单确认页面)3待支付(跳转工单确认页面)constructionFlag(已施工页面)
// let pageName = options?.status == 1 && options?.pageParams?.id ? 'tabDate.detail' : options.status == 3 || (options.status == 1 && options.selectPayType == 1) ? 'tabWorkOrder.confirmOrder' : options.constructionFlag == 'Y' && options.status != 10 ? 'tabWorkOrder.constructionOrderDetail' : 'tabWorkOrder.orderDetail'
// wx.$router.go(`
$
{
pageName
}?
id
=
$
{
options
?.
pageParams
?.
id
}
&
orderCode
=
$
{
options
?.
pageParams
?.
orderCode
}
`, { ...options?.pageParams })
// }
// },
/**
* 生命周期函数--监听页面加载
*/
// onLoad: function (options) {
// options && this.checkShowOrderPop(options)
// let today = new Date()
// let startDate = today.format('yyyy-MM-dd')
// let endDate = today.format('yyyy-MM-dd')
// this.setData({
// maxDate: new Date().format('yyyy-MM-dd'),
// startDate,
// endDate
// })
// this.setData({
// isStaff: app.globalData.isStaff
// })
// this.get4SStoreList()
// },
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
...
...
tabWorkOrder/pages/staffDaily/staffDaily.js
View file @
09ddf2e
...
@@ -226,6 +226,8 @@ Page({
...
@@ -226,6 +226,8 @@ Page({
})
})
orderObj
[
name
]
=
arr
orderObj
[
name
]
=
arr
})
})
orderObj
.
isAdmin
=
role
==
'super'
?
true
:
false
orderObj
.
oprBy
=
orderObj
.
staffUuid
// console.log(orderObj, 'orderObj')
// console.log(orderObj, 'orderObj')
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
api
api
...
@@ -572,12 +574,12 @@ Page({
...
@@ -572,12 +574,12 @@ Page({
wx
.
$router
.
back
()
wx
.
$router
.
back
()
},
},
initData
(
userInfo
)
{
initData
(
userInfo
)
{
let
{
orderObj
,
reportDate
,
role
}
=
this
.
data
let
{
orderObj
,
reportDate
,
role
,
approvedSource
}
=
this
.
data
// console.log(this.data, 'initData');
// console.log(this.data, 'initData');
// const { sceneType, } = userInfo
// const { sceneType, } = userInfo
// 根据不同角色做页面回显
// 根据不同角色做页面回显
const
isStaff
=
app
.
globalData
.
isStaff
||
false
const
isStaff
=
app
.
globalData
.
isStaff
||
orderObj
.
approvedSource
==
'3'
||
false
console
.
log
(
reportDate
,
'reportDate'
);
console
.
log
(
isStaff
,
reportDate
,
'reportDate'
);
if
(
reportDate
)
{
if
(
reportDate
)
{
var
dateisSunday
=
new
Date
(
reportDate
);
var
dateisSunday
=
new
Date
(
reportDate
);
this
.
setData
({
this
.
setData
({
...
@@ -593,14 +595,14 @@ Page({
...
@@ -593,14 +595,14 @@ Page({
this
.
setReportDate
()
this
.
setReportDate
()
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// console.log(this.data.role, this.data, 'roleOther');
// console.log(this.data.role, this.data, 'roleOther');
if
(
this
.
data
.
role
==
'other'
)
{
if
(
this
.
data
.
role
==
'other'
||
approvedSource
==
'3'
)
{
this
.
getStaffReport
()
this
.
getStaffReport
()
this
.
getStaffDailyReportDetailWeeklyList
()
this
.
getStaffDailyReportDetailWeeklyList
()
return
return
}
}
})
})
if
(
isStaff
)
{
if
(
isStaff
&&
approvedSource
!=
'3'
)
{
// console.log(userInfo, 'userInfo');
// console.log(userInfo, 'userInfo');
const
{
merchantId
,
merchantName
,
name
,
uuid
,
shopMerchantId
,
shopMerchantName
}
=
userInfo
const
{
merchantId
,
merchantName
,
name
,
uuid
,
shopMerchantId
,
shopMerchantName
}
=
userInfo
this
.
setData
({
this
.
setData
({
...
@@ -691,6 +693,14 @@ Page({
...
@@ -691,6 +693,14 @@ Page({
}
}
}
}
// 初始化日期
if
(
options
.
hasOwnProperty
(
'reportDate'
))
{
this
.
setData
({
reportDate
:
options
.
reportDate
})
this
.
initData
(
wx
.
$util
.
getUserInfo
())
}
console
.
log
(
options
,
'options,onLoad'
);
console
.
log
(
options
,
'options,onLoad'
);
this
.
setData
({
this
.
setData
({
flag
:
true
flag
:
true
...
@@ -699,8 +709,15 @@ Page({
...
@@ -699,8 +709,15 @@ Page({
let
{
orderObj
}
=
this
.
data
let
{
orderObj
}
=
this
.
data
// console.log(options.hasOwnProperty('approvedSource'), options, 'approvedSource');
// console.log(options.hasOwnProperty('approvedSource'), options, 'approvedSource');
if
(
options
.
hasOwnProperty
(
'approvedSource'
))
{
if
(
options
.
hasOwnProperty
(
'approvedSource'
))
{
let
role
=
''
if
(
options
.
approvedSource
==
'3'
)
{
role
=
'staff'
}
else
{
role
=
'ohter'
}
this
.
setData
({
this
.
setData
({
role
:
'other'
,
role
,
approvedSource
:
options
.
approvedSource
,
approvedSource
:
options
.
approvedSource
,
merchantRange
:
[{
merchantName
:
options
.
merchantName
,
merchantId
:
options
.
merhchantid
}],
merchantRange
:
[{
merchantName
:
options
.
merchantName
,
merchantId
:
options
.
merhchantid
}],
orderObj
:
{
orderObj
:
{
...
@@ -712,6 +729,7 @@ Page({
...
@@ -712,6 +729,7 @@ Page({
}
}
},
},
onRoute
(
options
)
{
onRoute
(
options
)
{
console
.
log
(
options
,
'staffoptions'
);
if
(
options
?.
scene
)
{
if
(
options
?.
scene
)
{
let
id
=
decodeURIComponent
(
options
.
scene
).
split
(
'='
)[
1
]
let
id
=
decodeURIComponent
(
options
.
scene
).
split
(
'='
)[
1
]
// return
// return
...
@@ -738,8 +756,15 @@ Page({
...
@@ -738,8 +756,15 @@ Page({
}
}
if
(
options
.
hasOwnProperty
(
'approvedSource'
))
{
if
(
options
.
hasOwnProperty
(
'approvedSource'
))
{
let
role
=
''
if
(
options
.
approvedSource
==
'3'
)
{
role
=
'staff'
}
else
{
role
=
'ohter'
}
this
.
setData
({
this
.
setData
({
role
:
'other'
,
role
,
approvedSource
:
options
.
approvedSource
,
approvedSource
:
options
.
approvedSource
,
merchantRange
:
[{
merchantName
:
options
.
merchantName
,
merchantId
:
options
.
merhchantid
}],
merchantRange
:
[{
merchantName
:
options
.
merchantName
,
merchantId
:
options
.
merhchantid
}],
orderObj
:
{
orderObj
:
{
...
@@ -749,9 +774,6 @@ Page({
...
@@ -749,9 +774,6 @@ Page({
reportDate
:
options
.
reportDate
reportDate
:
options
.
reportDate
},
this
.
initData
({}))
},
this
.
initData
({}))
}
}
},
},
/**
/**
...
...
tabWorkOrder/pages/staffDaily/staffDaily.wxml
View file @
09ddf2e
<!--tabWorkOrder/pages/staffDaily/staffDaily.wxml-->
<!--tabWorkOrder/pages/staffDaily/staffDaily.wxml-->
<!-- <block wx:if="{{ flag }}"> -->
<!-- <block wx:if="{{ flag }}"> -->
<view class="layout {{ flag?'opacity':'' }}">
<view class="layout {{ flag?'opacity':'' }}">
<navigation-bar bindback="jump" bindnavbarReady="navbarReady" showBack="{{ role!='other'
? true:false }}">
<navigation-bar bindback="jump" bindnavbarReady="navbarReady" showBack="{{ role!='other' && approvedSource != '3'
? true:false }}">
<view class="navigation-title" bindtap="showStorePicker">
<view class="navigation-title" bindtap="showStorePicker">
<view class="navigation-title-text text-hide">{{merchantRange[subIndex].merchantName}}</view>
<view class="navigation-title-text text-hide">{{merchantRange[subIndex].merchantName}}</view>
<view class="arrow" wx:if="{{ userInfo.isSuper }}">
<view class="arrow" wx:if="{{ userInfo.isSuper }}">
...
@@ -23,77 +23,15 @@
...
@@ -23,77 +23,15 @@
</view>
</view>
</view>
</view>
<view class="box">
<view class="box">
<gl-cell-staff
<gl-cell-staff class="{{ (role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days)?'disabled':'' }}" border valueAlign="right" labelText="每日按门店填写新车交付数" label="新车交付数" requiredAfter labelWidth="530rpx" required>
class="{{ (role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days)?'disabled':'' }}"
border
valueAlign="right"
labelText="每日按门店填写新车交付数"
label="新车交付数"
requiredAfter
labelWidth="530rpx"
required
>
<!-- <view slot='headerSlot'>陈希</view> -->
<!-- <view slot='headerSlot'>陈希</view> -->
<input
<input placeholder="请输入" class="input" placeholder-class="placeholder-class" maxlength="3" type="number" value="{{ orderObj.deliveryCount }}" bindinput="input" data-name="deliveryCount" disabled="{{ (role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days) }}" always-embed></input>
placeholder="请输入"
class="input"
placeholder-class="placeholder-class"
maxlength="3"
type="number"
value="{{ orderObj.deliveryCount }}"
bindinput="input"
data-name="deliveryCount"
disabled="{{ (role != 'staff'|| !orderObj.isDateWithin7Days) && (role != 'super'|| !orderObj.isDateWithin60Days) }}"
always-embed
></input>
</gl-cell-staff>
</gl-cell-staff>
<gl-cell-staff
<gl-cell-staff headerSlot="{{ orderObj.staffName }}" class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的新车客户接待数" label="新车到店流量(会员权益/延保)" requiredAfter labelWidth="530rpx" required>
headerSlot="{{ orderObj.staffName }}"
<input placeholder="请输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.equityToShopCount }}" bindinput="input" data-name="equityToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input>
class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}"
border
valueAlign="right"
labelText="每日填写本人该业务的新车客户接待数"
label="新车到店流量(会员权益/延保)"
requiredAfter
labelWidth="530rpx"
required
>
<input
placeholder="请输入"
class="input"
type="number"
placeholder-class="placeholder-class"
maxlength="3"
value="{{ orderObj.equityToShopCount }}"
bindinput="input"
data-name="equityToShopCount"
disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}"
always-embed
></input>
</gl-cell-staff>
</gl-cell-staff>
<gl-cell-staff
<gl-cell-staff headerSlot="{{ orderObj.staffName }}" class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}" border valueAlign="right" labelText="每日填写本人该业务的售后客户接待数" label="售后到店流量(会员权益/延保)" requiredAfter labelWidth="530rpx" required>
headerSlot="{{ orderObj.staffName }}"
<input placeholder="请输入" class="input" type="number" placeholder-class="placeholder-class" maxlength="3" value="{{ orderObj.afterSaleEquityToShopCount }}" bindinput="input" data-name="afterSaleEquityToShopCount" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" always-embed></input>
class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}"
border
valueAlign="right"
labelText="每日填写本人该业务的售后客户接待数"
label="售后到店流量(会员权益/延保)"
requiredAfter
labelWidth="530rpx"
required
>
<input
placeholder="请输入"
class="input"
type="number"
placeholder-class="placeholder-class"
maxlength="3"
value="{{ orderObj.afterSaleEquityToShopCount }}"
bindinput="input"
data-name="afterSaleEquityToShopCount"
disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}"
always-embed
></input>
</gl-cell-staff>
</gl-cell-staff>
<view class="user-portrait">
<view class="user-portrait">
<view wx:for="{{ formData }}" wx:key="index" class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}">
<view wx:for="{{ formData }}" wx:key="index" class="{{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}">
...
@@ -114,16 +52,7 @@
...
@@ -114,16 +52,7 @@
/>
/>
</view> -->
</view> -->
<view wx:if="{{ item.optionList }}" class="check-block {{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}">
<view wx:if="{{ item.optionList }}" class="check-block {{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}">
<view
<view class="check-box {{ subItem.active ? 'active' : '' }}" wx:for="{{ item.optionList }}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" bindtap="click" data-pidx="{{ index }}" data-idx="{{ idx }}">
class="check-box {{ subItem.active ? 'active' : '' }}"
wx:for="{{ item.optionList }}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx"
bindtap="click"
data-pidx="{{ index }}"
data-idx="{{ idx }}"
>
{{subItem.confName}}
{{subItem.confName}}
<image wx:if="{{ item.isMult && subItem.active }}" class="mult" src="../../images/check-active.png"></image>
<image wx:if="{{ item.isMult && subItem.active }}" class="mult" src="../../images/check-active.png"></image>
</view>
</view>
...
@@ -133,14 +62,7 @@
...
@@ -133,14 +62,7 @@
<view class="remark_box">
<view class="remark_box">
<view class="label">备注</view>
<view class="label">备注</view>
<view class="textArea_box {{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}">
<view class="textArea_box {{ role != 'staff' || !orderObj.isDateWithin7Days?'disabled':'' }}">
<textarea
<textarea value="{{ orderObj.remark }}" maxlength="800" placeholder="请输入" class="textarea" bindinput="remarkInput" disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}" />
value="{{ orderObj.remark }}"
maxlength="800"
placeholder="请输入"
class="textarea"
bindinput="remarkInput"
disabled="{{ role != 'staff' || !orderObj.isDateWithin7Days }}"
/>
<view class="currentWordNumber">{{currentWordNumber || 0}} / 800</view>
<view class="currentWordNumber">{{currentWordNumber || 0}} / 800</view>
</view>
</view>
</view>
</view>
...
@@ -172,14 +94,7 @@
...
@@ -172,14 +94,7 @@
<view class="remark_box" wx:if="{{ role == 'other' }}">
<view class="remark_box" wx:if="{{ role == 'other' }}">
<view class="label">填写批复</view>
<view class="label">填写批复</view>
<view class="textArea_box">
<view class="textArea_box">
<textarea
<textarea value="{{ approvedContent }}" maxlength="800" placeholder="请输入" class="textarea" bindinput="approveRemarkInput" disabled="{{ role == 'ohter' }}" />
value="{{ approvedContent }}"
maxlength="800"
placeholder="请输入"
class="textarea"
bindinput="approveRemarkInput"
disabled="{{ role == 'ohter' }}"
/>
<view class="currentWordNumber">{{approvedContentCurrentWordNumber || 0}} / 800</view>
<view class="currentWordNumber">{{approvedContentCurrentWordNumber || 0}} / 800</view>
</view>
</view>
</view>
</view>
...
@@ -195,12 +110,5 @@
...
@@ -195,12 +110,5 @@
</view>
</view>
</view>
</view>
</view>
</view>
<store-picker
<store-picker subIndex="{{ subIndex }}" pickList="{{ rangeList }}" show="{{ showPicker }}" bindsearch="inputSearch" bindconfirm="changePicker" pickerType="{{ pickerType }}" />
subIndex="{{ subIndex }}"
pickList="{{ rangeList }}"
show="{{ showPicker }}"
bindsearch="inputSearch"
bindconfirm="changePicker"
pickerType="{{ pickerType }}"
/>
<!-- </block> -->
<!-- </block> -->
\ No newline at end of file
\ No newline at end of file
utils/request/environment.js
View file @
09ddf2e
...
@@ -60,10 +60,10 @@ const domain_items = {
...
@@ -60,10 +60,10 @@ const domain_items = {
ip
:
{
ip
:
{
// dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.165:8292',
// dj: 'http://192.168.1.104:8292', //叶立庆
// dj: 'http://192.168.1.104:8292', //叶立庆
//
dj: 'http://192.168.1.169:8292',//蔡远明
dj
:
'http://192.168.1.169:8292'
,
//蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.174:8292',//范富荣
// dj: 'http://192.168.1.88:8292', //周杭
// dj: 'http://192.168.1.88:8292', //周杭
dj
:
'http://192.168.1.116:8292'
,
//陈希
//
dj: 'http://192.168.1.116:8292',//陈希
// dj:'http://192.168.2.59:8292/',//周立明
// dj:'http://192.168.2.59:8292/',//周立明
// scrm: 'http://192.168.1.165:8292'
// scrm: 'http://192.168.1.165:8292'
scrm
:
'https://scrm.dev.glsx.com.cn'
scrm
:
'https://scrm.dev.glsx.com.cn'
...
...
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