Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
regional-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9fabe599
authored
Jan 16, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+v5.5.3' of 192.168.3.233:saas_plus/regional-assistant into SAAS+v5.5.3
2 parents
c6b21555
ada32ec5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
340 additions
and
126 deletions
packageWorkspace/api.js
packageWorkspace/pages/supervisorDaily/reportFirstAuto.js
packageWorkspace/pages/supervisorDaily/ruleFnObj.js
packageWorkspace/pages/supervisorDaily/supervisorDaily.js
pages/tab/workspace/workspace.js
packageWorkspace/api.js
View file @
9fabe59
...
...
@@ -4,397 +4,407 @@ import api from '~/utils/request/request.js'
module
.
exports
=
{
/**根据商户号获取可选套餐商品列表 */
getGoodsList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.MerchantPackageGoods.list'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.MerchantPackageGoods.list"
,
data
);
},
/**根据订单号获取订单详情(含套餐) */
getPackageGoodsDetail
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.packageGoodsDetail'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.packageGoodsDetail"
,
data
);
},
/**搜索订单(含套餐) */
getWorkPackageGoodsList
(
data
)
{
let
params
=
data
||
{}
params
.
sceneType
=
1
return
api
.
post
(
'dj.api.smartcarlife.order.search.containPackageGoods'
,
{
let
params
=
data
||
{}
;
params
.
sceneType
=
1
;
return
api
.
post
(
"dj.api.smartcarlife.order.search.containPackageGoods"
,
{
pageSize
:
10
,
...
params
})
...
params
,
})
;
},
/** 工单列表 */
getWorkList
(
data
)
{
let
params
=
data
||
{}
params
.
sceneType
=
1
return
api
.
post
(
'dj.api.smartcarlife.order.search'
,
{
let
params
=
data
||
{}
;
params
.
sceneType
=
1
;
return
api
.
post
(
"dj.api.smartcarlife.order.search"
,
{
pageSize
:
10
,
...
params
})
...
params
,
})
;
},
/** 提交施工订单 */
confirmConstruction
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.confirmConstruction'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.confirmConstruction"
,
data
);
},
/**撤销工单 */
revokeOrder
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.revoke'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.revoke"
,
data
);
},
/** 根据订单号获取订单详情 */
getOrderDetail
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.detail'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.detail"
,
data
);
},
/**二维码 */
createWeappQrcode
(
data
)
{
// dj.api.smartcarlife.serviceMerchant.getByMerchantId
return
api
.
post
(
'dj.api.smartcarlife.common.createWeappQrcode'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.common.createWeappQrcode"
,
data
);
},
/**商品列表 */
getOrderBaseGoodsList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.orderUpgradeGoods.listByMerchantId'
,
"dj.api.smartcarlife.orderUpgradeGoods.listByMerchantId"
,
data
)
)
;
},
/** 选择支付方式下单 */
createWithPay
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.createWithPay'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.createWithPay"
,
data
);
},
/**根据手机号查询客户信息 */
checkCustomerPhone
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.customer.queryByPhone'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.customer.queryByPhone"
,
data
);
},
/**改变支付订单状态 */
createPayOrder
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.payOrder.create'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.payOrder.create"
,
data
);
},
/** */
installOnly
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.installOnly'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.installOnly"
,
data
);
},
/**获取精品礼券 */
getCouponDeatil
(
data
)
{
return
api
.
post
(
'dj.api.smartCarLife.customer.coupon.detail'
,
data
)
return
api
.
post
(
"dj.api.smartCarLife.customer.coupon.detail"
,
data
);
},
/** 根据订单号获取种草信息*/
getGrassDetail
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.orderShareRecord.detail'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.orderShareRecord.detail"
,
data
);
},
// 获取园区店配置
getYqStoreConfig
(
data
)
{
return
api
.
get
(
'dj.api.smarcarlife.yqMerchantConfig.detail'
,
data
)
return
api
.
get
(
"dj.api.smarcarlife.yqMerchantConfig.detail"
,
data
);
},
/** 修改工单时间 */
updateOrderTime
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.updateOrderTime'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.updateOrderTime"
,
data
);
},
/** 修改客户信息 */
updateOrderInfo
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.updateOrderInfo'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.updateOrderInfo"
,
data
);
},
/** 根据订单状态统计订单数*/
statByStatus
(
data
)
{
data
=
data
||
{}
data
.
sceneType
=
1
return
api
.
post
(
'dj.api.smartcarlife.order.statByStatus'
,
data
)
data
=
data
||
{}
;
data
.
sceneType
=
1
;
return
api
.
post
(
"dj.api.smartcarlife.order.statByStatus"
,
data
);
},
/** 获取企微活码 */
getWorkWechatLiveQRCode
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.getWorkWechatLiveQRCode'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.getWorkWechatLiveQRCode"
,
data
);
},
/** 订单补录 */
supplementOrder
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.supplementOrder'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.supplementOrder"
,
data
);
},
/** 订单修正 */
correctionOrder
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.correctionOrder'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.correctionOrder"
,
data
);
},
/** 战败订单批量补录 */
notUpgradeOrder
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.notUpgrade.batchInsert'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.notUpgrade.batchInsert"
,
data
);
},
/** 批量新建预录工单 */
createPrerecordedOrderBatch
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.preliminaryOrder.batch'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.preliminaryOrder.batch"
,
data
);
},
/** 新建预录工单 */
createPrerecordedOrder
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.preliminaryOrder'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.preliminaryOrder"
,
data
);
},
/** 升级商品生成条形码 */
createBarCode
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.common.createBarCode'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.common.createBarCode"
,
data
);
},
/** 获取商户基本信息 */
getServiceBaseInfo
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo'
,
"dj.api.smartcarlife.serviceMerchant.getServiceBaseInfo"
,
data
)
)
;
},
/** 根据id查询待补录订单 */
waitinputorderSelectById
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.weapp.waitinputorder.selectById'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.weapp.waitinputorder.selectById"
,
data
);
},
/** 客户确认签名 */
customerConfirmationSignature
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.customerConfirmationSignature'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.customerConfirmationSignature"
,
data
);
},
/** 查询园区店是否开启签名配置 */
getSignatureSwitch
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.serviceMerchant.getSignatureSwitch'
,
"dj.api.smartcarlife.serviceMerchant.getSignatureSwitch"
,
data
)
)
;
},
/** 根据客户优惠券id查询订单 */
getOrderByCustomerCouponId
(
data
)
{
// return api.post('dj.api.smartcarlife.order.getOrderByCustomerCouponId ', data)
return
api
.
get
(
'dj.api.smartcarlife.order.getOrderByCustomerCouponId'
,
data
)
return
api
.
get
(
"dj.api.smartcarlife.order.getOrderByCustomerCouponId"
,
data
);
},
/** 获取园区店配置技师数据 */
getQYTechnicianList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.roleTechnician.list'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.roleTechnician.list"
,
data
);
// return api.post('dj.api.smartcarlife.technician.list', data)
},
/** 根据手机号查询客户建档待跟进订单信息 */
getQueryCouponInfoByPhone
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.customer.queryCouponInfoByPhone'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.customer.queryCouponInfoByPhone"
,
data
);
},
/** 根据订单更新技师信息 */
updateTechnicianInfo
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.updateTechnicianInfo'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.updateTechnicianInfo"
,
data
);
},
/** 根据订单商品获取膜卷号 */
getfilmRollNoByGoods
(
data
)
{
return
api
.
post
(
'dj.api.smarcarlife.stock.filmroll.list'
,
data
)
return
api
.
post
(
"dj.api.smarcarlife.stock.filmroll.list"
,
data
);
},
/** 子订单设置膜卷号 */
setfilmRollNo
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.updateFilmRoll'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.updateFilmRoll"
,
data
);
},
/** 保存员工日报(员工、管理员操作)*/
staffDailyReportSave
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.save'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.staff.daily.report.save"
,
data
);
},
/** 员工日报详情 */
staffDailyReportDetail
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.detail'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.staff.daily.report.detail"
,
data
);
},
/** 查询当周员工日报是否填写列表 */
staffDailyReportDetailWeeklyList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.weekly.list'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.staff.daily.report.weekly.list"
,
data
);
},
/** 批复员工日报 */
staffDailyReportApprove
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.approve'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.staff.daily.report.approve"
,
data
);
},
/** 4s店查询对应的园区店 */
querySceneRefByShop
(
data
)
{
return
api
.
post
(
'dj.api.scenemerchantref.querySceneRefByShop'
,
data
)
return
api
.
post
(
"dj.api.scenemerchantref.querySceneRefByShop"
,
data
);
},
/** 查询该店员工日报是否开启 */
staffDailyReportMerchantValid
(
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
)
return
api
.
post
(
"dj.api.smartcarlife.staff.daily.report.popup.need"
,
data
);
},
/** 查询4s店填写驻店日报的品牌列表 */
staffDailyReportMerchantCarBand
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.car.brand'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.staff.daily.report.car.brand"
,
data
);
},
/** 无需补录订单 */
noNeedSupplementOrder
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.order.noNeedSupplementOrder'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.order.noNeedSupplementOrder"
,
data
);
},
/** 待补录订单统计 */
waitinputorder
(
data
)
{
let
params
=
data
||
{}
params
.
inputStatus
=
0
let
params
=
data
||
{}
;
params
.
inputStatus
=
0
;
// params.payType = 1
return
api
.
post
(
'dj.api.smartcarlife.weapp.waitinputorder.count'
,
params
)
return
api
.
post
(
"dj.api.smartcarlife.weapp.waitinputorder.count"
,
params
);
},
/** 质保价格编辑接口 */
modifyWarrantyPrice
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.customer.warrantyCard.modifyWarrantyPrice'
,
"dj.api.smartcarlife.customer.warrantyCard.modifyWarrantyPrice"
,
data
)
)
;
},
/** 查询用户日报模版 */
getMyTemplate
(
data
)
{
return
api
.
post
(
'dj.api.mindworkplate.app.daily.report.myTemplate'
,
data
)
return
api
.
post
(
"dj.api.mindworkplate.app.daily.report.myTemplate"
,
data
);
},
/** 查询用户指定日期范围内填写日报的日期 */
getDateRecord
(
data
)
{
return
api
.
post
(
'dj.api.mindworkplate.app.daily.report.mySubmittedDateRecord'
,
"dj.api.mindworkplate.app.daily.report.mySubmittedDateRecord"
,
data
)
)
;
},
/** 查询用户指定日期的日报详情 */
getRecordDetail
(
data
)
{
return
api
.
post
(
'dj.api.mindworkplate.app.daily.report.myRecordDetail'
,
"dj.api.mindworkplate.app.daily.report.myRecordDetail"
,
data
)
)
;
},
/** 根据月份查询查询员工周报提交 */
getWeeklyRecordDetail
(
data
)
{
return
api
.
post
(
'dj.api.carboutique.assign.month.find.staff.weekly.report.submit'
,
"dj.api.carboutique.assign.month.find.staff.weekly.report.submit"
,
data
)
)
;
},
/** 根据月份查询查询周 */
getMonthCalWeek
(
data
)
{
return
api
.
post
(
'dj.api.carboutique.assign.month.cal.week'
,
data
)
return
api
.
post
(
"dj.api.carboutique.assign.month.cal.week"
,
data
);
},
/** 根据年份查询查询员工月报提交 */
getMonthlyRecordDetail
(
data
)
{
return
api
.
post
(
'dj.api.carboutique.assign.year.find.staff.monthly.report.submit'
,
"dj.api.carboutique.assign.year.find.staff.monthly.report.submit"
,
data
)
)
;
},
/** 用户提交日报 */
saveTempReport
(
data
)
{
return
api
.
post
(
'dj.api.mindworkplate.app.daily.report.save'
,
data
)
return
api
.
post
(
"dj.api.mindworkplate.app.daily.report.save"
,
data
);
},
/** 获取与会驻店人员 */
getStaffList
(
data
)
{
// return api.post("dj.api.mindworkplate.app.daily.report.staffBaseInfo.pageList", data);
return
api
.
post
(
'dj.api.mindworkplate.app.daily.report.staffBaseInfo.page'
,
"dj.api.mindworkplate.app.daily.report.staffBaseInfo.page"
,
data
)
)
;
},
// 查询店铺配置
getShopMerchantPointConfig
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.shopMerchantPointConfig.get'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.shopMerchantPointConfig.get"
,
data
);
},
// 获取带教管理列表数据
getMentorShipList
(
data
)
{
return
api
.
post
(
'dj.api.businessSchool.miniProgram.teachTask.page'
,
"dj.api.businessSchool.miniProgram.teachTask.page"
,
data
,
[],
'/rop-dj-business-school-miniprogram/router'
)
"/rop-dj-business-school-miniprogram/router"
)
;
},
// 修改带教任务信息
updateMentorShipInfo
(
data
)
{
return
api
.
post
(
'dj.api.businessSchool.miniProgram.teachTask.update'
,
"dj.api.businessSchool.miniProgram.teachTask.update"
,
data
,
[],
'/rop-dj-business-school-miniprogram/router'
)
"/rop-dj-business-school-miniprogram/router"
)
;
},
// 获取带教任务数量
getMentorShipTaskNum
(
data
)
{
return
api
.
post
(
'dj.api.businessSchool.miniProgram.teachTask.count'
,
"dj.api.businessSchool.miniProgram.teachTask.count"
,
data
,
[],
'/rop-dj-business-school-miniprogram/router'
)
"/rop-dj-business-school-miniprogram/router"
)
;
},
// 根据商户号获取可选商品列表
getSelectOrderGoodsList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.selectOrderGoods.list'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.selectOrderGoods.list"
,
data
);
},
// 更新施图
updateCustomerphotos
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.updateCustomerphotos'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.updateCustomerphotos"
,
data
);
},
// 技师施工图片审批
technicianApprove
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.technician.approve'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.technician.approve"
,
data
);
},
// 根据商户号获取可选商品列表
getSelectOrderGoodsList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.selectOrderGoods.list'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.selectOrderGoods.list"
,
data
);
},
// 退款审批列表查询
getRefundReviewListAPI
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.refundApplyRecord.waitForAudit.list'
,
"dj.api.smartcarlife.refundApplyRecord.waitForAudit.list"
,
data
)
)
;
},
// 日报填报前参数校验
dailyReportCheck
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.staff.daily.report.data.check'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.staff.daily.report.data.check"
,
data
);
},
// 获取施工单按钮展示标识
showFlag
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.construction.get.showFlag'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.construction.get.showFlag"
,
data
);
},
// 获取主订单商品列表
listSubOrder
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.construction.list.subOrder'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.construction.list.subOrder"
,
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
);
},
// 批量添加施工单
batchAdd
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.construction.batch.add'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.construction.batch.add"
,
data
);
},
// 查询施工单详情
getConstructionDetail
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.construction.get.construction.detail'
,
"dj.api.smartcarlife.construction.get.construction.detail"
,
data
)
)
;
},
// 根据主订单查询施工单列表
listConstruction
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.construction.list.construction'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.construction.list.construction"
,
data
);
},
// 获取园区店下角色名包含技师员工有效列表
getQYTechnicianList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.roleTechnician.list.effective'
,
data
)
return
api
.
post
(
"dj.api.smartcarlife.roleTechnician.list.effective"
,
data
);
},
/**施工单状态统计 */
statByStatus
(
data
)
{
let
params
=
data
||
{}
return
api
.
post
(
'dj.api.smartcarlife.construction.summary.status'
,
{
...
params
})
}
}
let
params
=
data
||
{};
return
api
.
post
(
"dj.api.smartcarlife.construction.summary.status"
,
{
...
params
,
});
},
/** 首页统计数据 - 日报/周报/月报默认值 */
userStat
(
data
)
{
return
api
.
post
(
"dj.api.smartcarlife.user.stat"
,
data
);
},
};
packageWorkspace/pages/supervisorDaily/reportFirstAuto.js
0 → 100644
View file @
9fabe59
// 日报/周报/月报 首次填写,默认填入的字段数据结构
export
const
reportFirstAutoObj
=
{
/** 1.1轻改区域日报模版 */
'qinggai-temp-001'
:
{
list
:
[{
attrName
:
'todayRegionalTotalOutput'
,
// 今日产值
valueObj
:
'staffTodayTotal'
},
{
attrName
:
'monthRegionalTotalOutput'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.3延保区域日报模版 */
'uuid-temp-001'
:
{
list
:
[{
attrName
:
'dailyCumulativeAchievement'
,
// 今日产值
valueObj
:
'staffTodayTotal'
},
{
attrName
:
'monthlyCumulativeAchievement'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.1权益区域日报模版 */
'uuid-temp-011'
:
{
list
:
[{
attrName
:
'dailyCumulativeAchievement'
,
// 今日产值
valueObj
:
'staffTodayTotal'
},
{
attrName
:
'monthlyCumulativeAchievement'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.1区域经理周报模版 */
'uuid-temp-012'
:
{
list
:
[{
attrName
:
'monthlyStoreCumulativeAchievement012'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 1.1区域经理周报模版 */
'uuid-temp-013'
:
{
list
:
[{
attrName
:
'monthlyStoreCumulativeAchievement013'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.3区域经理周报模版 */
'uuid-temp-014'
:
{
list
:
[{
attrName
:
'monthlyStoreCumulativeAchievement014'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.1运营主管周报模版 */
'uuid-temp-015'
:
{
list
:
[{
attrName
:
'monthlyOutput015'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 1.1运营主管周报模版 */
'uuid-temp-016'
:
{
list
:
[{
attrName
:
'monthlyOutput016'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.3运营主管周报模版 */
'uuid-temp-017'
:
{
list
:
[{
attrName
:
'monthlyOutput017'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 1.1区域经理月报模版 */
'uuid-temp-018'
:
{
list
:
[{
attrName
:
'actualAchievement018'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.1区域经理月报模版 */
'uuid-temp-019'
:
{
list
:
[{
attrName
:
'actualAchievement019'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.3区域经理月报模版 */
'uuid-temp-020'
:
{
list
:
[{
attrName
:
'actualAchievement020'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.1运营主管月报模版 */
'uuid-temp-021'
:
{
list
:
[{
attrName
:
'monthlyOutput021'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 1.1运营主管月报模版 */
'uuid-temp-022'
:
{
list
:
[{
attrName
:
'monthlyOutput022'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
},
/** 2.3运营主管月报模版 */
'uuid-temp-023'
:
{
list
:
[{
attrName
:
'monthlyOutput023'
,
// 本月产值
valueObj
:
'staffMonthTotal'
}]
}
}
\ No newline at end of file
packageWorkspace/pages/supervisorDaily/ruleFnObj.js
View file @
9fabe59
...
...
@@ -54,6 +54,16 @@ export const tempRuleFnObj = {
return
/^$|^
[
0
]
$|^
\d{1}(\.\d{1,2})
$|^
([
1-9
]\d
*
)(\.\d{1,2})?
$/
.
test
(
value
)
?
null
:
{
message
:
'本月累计达成请输入仅有两位小数的数字'
}
}
},
/** 今日累计达成 */
dailyCumulativeAchievement
:
{
ruleFn
:
(
rule
,
value
)
=>
{
const
maxValue
=
100000000
if
(
value
<
0
||
value
>
maxValue
)
{
return
{
message
:
`今日累计达成请输入0-
${
maxValue
}
`
}
}
return
/^$|^
[
0
]
$|^
\d{1}(\.\d{1,2})
$|^
([
1-9
]\d
*
)(\.\d{1,2})?
$/
.
test
(
value
)
?
null
:
{
message
:
'今日累计达成请输入仅有两位小数的数字'
}
}
},
/** 本月时间进度 */
monthlyTimeProgress
:
{
ruleFn
:
(
rule
,
value
)
=>
{
...
...
packageWorkspace/pages/supervisorDaily/supervisorDaily.js
View file @
9fabe59
// tabWorkOrder/pages/supervisorDaily/supervisorDaily.js
var
util
=
require
(
"~/utils/timeFormat/time-utils.js"
);
import
{
resData
}
from
"./resData"
import
{
tempRuleFnObj
}
from
"./ruleFnObj"
import
fn
from
'~/components/GLCustForm/ruleFn'
import
{
resData
}
from
"./resData"
;
import
{
tempRuleFnObj
}
from
"./ruleFnObj"
;
import
{
reportFirstAutoObj
}
from
"./reportFirstAuto"
;
import
fn
from
"~/components/GLCustForm/ruleFn"
;
import
api
from
"../../api"
;
import
apiDefault
from
"~/api/api"
;
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
var
allRuleObj
=
{}
import
{
setConfigInfo
}
from
'~/store/index'
const
app
=
getApp
()
var
allRuleObj
=
{};
import
{
setConfigInfo
}
from
"~/store/index"
;
const
app
=
getApp
();
Page
({
/**
* 页面的初始数据
...
...
@@ -106,6 +106,48 @@ Page({
this
.
initData
(
options
);
});
},
// 获取默认值
getUserStat
()
{
const
userInfo
=
wx
.
$util
.
getUserInfo
();
const
{
routeParams
,
tmlpFormData
,
tmlpInitData
}
=
this
.
data
;
console
.
log
(
routeParams
,
"routeParams"
);
if
(
!
userInfo
)
{
return
;
}
wx
.
$util
.
showLoading
(
"加载中..."
);
api
.
userStat
({
merchantId
:
userInfo
?.
shopMerchantId
||
undefined
,
})
.
then
((
result
)
=>
{
let
{
code
,
data
}
=
result
;
if
(
code
==
0
)
{
const
needDefaultCodeList
=
Object
.
keys
(
reportFirstAutoObj
);
console
.
log
(
needDefaultCodeList
,
"needDefaultCodeList----"
);
if
(
needDefaultCodeList
.
includes
(
routeParams
.
code
))
{
reportFirstAutoObj
[
routeParams
.
code
]?.
list
.
forEach
((
item
)
=>
{
tmlpFormData
[
item
.
attrName
]
=
data
[
item
.
valueObj
].
totalOrderMoney
+
""
;
});
this
.
setData
(
{
tmlpFormData
:
tmlpFormData
,
tabChange
:
false
,
},
()
=>
{
this
.
setData
({
tabChange
:
true
,
});
}
);
}
}
})
.
finally
(()
=>
{
wx
.
hideLoading
();
});
},
async
initData
(
options
)
{
const
{
routeParams
}
=
this
.
data
;
// 获取配置服务数据
...
...
@@ -162,7 +204,13 @@ Page({
radioEvent
(
e
)
{
let
pAttr
=
e
.
target
.
id
;
let
{
attr
}
=
e
.
detail
;
let
{
tmlpFormData
,
tmlpObj
,
trainTmlpSuffix
,
tmlpCode
,
dailyReportTempList
}
=
this
.
data
;
let
{
tmlpFormData
,
tmlpObj
,
trainTmlpSuffix
,
tmlpCode
,
dailyReportTempList
,
}
=
this
.
data
;
tmlpObj
[
"organizeTraining"
+
trainTmlpSuffix
]?.
forEach
((
item
)
=>
{
if
(
!
item
.
name
.
includes
(
"isTrainingOrganized"
))
{
item
.
isHide
=
tmlpFormData
[
attr
]
==
"否"
?
true
:
false
;
...
...
@@ -305,7 +353,7 @@ Page({
currentYear
,
selectedMonth
,
selectedWeek
,
dailyReportTempList
dailyReportTempList
,
}
=
this
.
data
;
console
.
log
(
tmlpEditList
,
"tmlpEditList"
);
console
.
log
(
tmlpCode
,
"tmlpCode"
);
...
...
@@ -425,6 +473,11 @@ Page({
updates
.
isDisable
=
disable
;
updates
.
hasDailyValue
=
false
;
updates
.
isTodayEdit
=
false
;
// 当前月且可提交且未提交
if
(
isCurrentMonth
&&
currentMonthData
.
beAbleSubmit
===
true
)
{
this
.
getUserStat
();
}
}
this
.
setData
(
updates
);
}
...
...
@@ -457,7 +510,6 @@ Page({
});
}
this
.
setData
({
weekList
});
let
currentWeekData
=
weekList
.
find
(
(
w
)
=>
w
.
week
==
this
.
data
.
selectedWeek
);
...
...
@@ -479,6 +531,10 @@ Page({
updates
.
isDisable
=
false
;
updates
.
hasDailyValue
=
false
;
updates
.
isTodayEdit
=
false
;
if
(
currentWeekData
.
beAbleSubmit
===
true
)
{
this
.
getUserStat
();
}
}
}
else
{
// Cannot operate -> Read Only
...
...
@@ -502,12 +558,15 @@ Page({
new
Date
().
format
(
"yyyy-MM-dd"
)
)
{
//改----------------
const
hasDailyValue
=
timeBean
.
weekDayList
[
timeBean
.
selectDay
].
hasDailyValue
||
false
;
this
.
setData
({
isDisable
:
timeBean
.
weekDayList
[
timeBean
.
selectDay
].
hasDailyValue
||
false
,
hasDailyValue
:
timeBean
.
weekDayList
[
timeBean
.
selectDay
].
hasDailyValue
||
false
,
isDisable
:
hasDailyValue
,
hasDailyValue
:
hasDailyValue
,
});
if
(
!
hasDailyValue
)
{
this
.
getUserStat
();
}
}
else
if
(
tmlpEditList
.
includes
(
tmlpCode
))
{
// 往期编辑
this
.
setData
({
...
...
@@ -1328,4 +1387,4 @@ Page({
this
.
getDateRecord
();
this
.
getRecordDetail
();
},
});
\ No newline at end of file
});
pages/tab/workspace/workspace.js
View file @
9fabe59
...
...
@@ -28,7 +28,7 @@ Page({
},
{
name
:
"工作日报"
,
url
:
"packageWorkspace.supervisorDaily"
,
icon
:
"
modifications
-supervisor-daily"
,
icon
:
"
warranty
-supervisor-daily"
,
reportTypeAttr
:
'daily'
,
reportTypeVal
:
'1'
,
trackingCode
:
'regional-modifications-supervisor-daily'
...
...
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