Commit da3dbf3b by 张立顺

Merge branch 'SAAS+V4.56.2' into SAAS+V5.1.0

2 parents 608fa93d da7aa914
{
"pages": [
"pages/loading/loading",
"pages/sceneIndex/sceneIndex",
"pages/wxLogin/wxLogin",
"tabIndex/pages/index/index",
"pages/accountItems/accountItems",
"pages/merchantList/merchantList",
"pages/nothing/nothing",
"pages/webView/webView",
"pages/tabWorkOrder/pages/index/index",
"pages/tabMine/pages/index/index",
"pages/tabDateIndex/pages/tabDateIndex",
"pages/log/log",
"pages/changeScene/changeScene",
"pages/materails/index",
"pages/pointsReview/pointsReview",
"pages/h5AuthPhone/h5AuthPhone",
"pages/tabRepairOrder/pages/index/index"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "生意助手员工版",
"navigationBarTextStyle": "black",
"pageOrientation": "auto"
},
"tabBar": {
"color": "#757980",
"selectedColor": "#347BFF",
"backgroundColor": "#FFFFFF",
"position": "bottom",
"list": [
{
"pagePath": "tabIndex/pages/index/index",
"text": "首页",
"iconPath": "images/tab-home.png",
"selectedIconPath": "images/tab-home-active.png"
},
{
"pagePath": "pages/tabDateIndex/pages/tabDateIndex",
"text": "预约管理",
"iconPath": "images/tab-date.png",
"selectedIconPath": "images/tab-date-active.png"
},
{
"pagePath": "pages/tabWorkOrder/pages/index/index",
"text": "客户工单",
"iconPath": "images/tab-order.png",
"selectedIconPath": "images/tab-order-active.png"
},
{
"pagePath": "pages/tabRepairOrder/pages/index/index",
"text": "施工单",
"iconPath": "images/tab-repair.png",
"selectedIconPath": "images/tab-repair-active.png"
},
{
"pagePath": "pages/tabMine/pages/index/index",
"text": "个人中心",
"iconPath": "images/tab-mine.png",
"selectedIconPath": "images/tab-mine-active.png"
}
]
},
"subpackages": [
{
"root": "tabDate",
"name": "tabDate",
"pages": [
"pages/detail/detail",
"pages/apprManage/apprManage",
"pages/userPortrait/userPortrait"
]
},
{
"root": "integration",
"name": "integration",
"pages": [
"pages/bankAccount/list/list",
"pages/bankAccount/detail/detail",
"pages/point/index/index",
"pages/point/record/record",
"pages/point/toCash/toCash",
"pages/point/success/success"
]
},
{
"root": "tabMine",
"name": "tabMine",
"pages": [
"pages/technicianSetup/technicianSetup",
"pages/completeBuild/completeBuild",
"pages/collectCoupons/collectCoupons"
]
},
{
"root": "tabRepairOrder",
"name": "tabRepairOrder",
"pages": [
"pages/confirmWorkOrder/confirmWorkOrder",
"pages/repairOrderDetail/repairOrderDetail"
]
},
{
"root": "tabWorkOrder",
"name": "tabWorkOrder",
"pages": [
"pages/createOrder/createOrder",
"pages/additionRecordOrder/additionRecordOrder",
"pages/orderDetail/orderDetail",
"pages/constructionOrderDetail/constructionOrderDetail",
"pages/confirmOrder/confirmOrder",
"pages/updateOrderInfo/updateOrderInfo",
"pages/createArchives/createArchives",
"pages/orderSignature/orderSignature",
"pages/fullSignture/fullSignture",
"pages/ocr/ocr",
"pages/premiumUpgrade/premiumUpgrade",
"pages/defeatOrder/defeatOrder",
"pages/staffDaily/staffDaily",
"pages/upgradeStaffDaily/upgradeStaffDaily",
"pages/supervisorDaily/supervisorDaily",
"pages/residentManage/residentManage",
"pages/mentorshipManage/mentorshipManage",
"pages/tabWorkOrderRelevance/index",
"pages/invoiceCode/invoiceCode",
"pages/invoiceResult/invoiceResult",
"pages/technicianSearchList/pages/index/technicianSearchList",
"pages/refundOperationList/refundOperationList",
"pages/refundDetailList/refundDetailList",
"pages/refundApply/refundApply",
"pages/createAConstructionOrder/createAConstructionOrder"
]
},
{
"root": "packageEquity",
"name": "packageEquity",
"pages": [
"pages/carQuotation/signature/signature",
"pages/carQuotation/index/index",
"pages/carQuotation/relevanceOrderSelect/index",
"pages/carQuotation/fullSignture/fullSignture",
"pages/carQuotation/schemeConfirmation/schemeConfirmation",
"pages/carQuotation/CarQuotationDetail/CarQuotationDetail",
"pages/carQuotation/CarQuotationPay/CarQuotationPay",
"pages/carQuotation/createOrderCarQuotation/createOrderCarQuotation",
"pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple",
"pages/carQuotation/updateOrderInfo/updateOrderInfo",
"pages/ocrEquityModules/ocrEquityModules",
"pages/carEquity/previewList/previewList",
"pages/carEquity/serviceInfo/serviceInfo",
"pages/carEquity/carBrands/carBrands",
"pages/carEquity/carSeries/carSeries",
"pages/TabBar/equityPage",
"pages/carEquity/previewContract/previewContract",
"pages/collegeScene/collegeScene",
"pages/clueList/clueList",
"pages/clueDetail/clueDetail",
"pages/residentTarget/residentTarget",
"pages/aiInspection/aiInspection",
"pages/aiInspectionDetail/aiInspectionDetail",
"pages/aiInspectionReception/aiInspectionReception",
"pages/employeeInspection/employeeInspection",
"pages/trainingMaterials/trainingMaterials",
"pages/trainingMaterials/pages/playVideo/index",
"pages/createDeafeatOrder/createDeafeatOrder",
"pages/createDeafeatOrderAi/createDeafeatOrderAi",
"pages/aiExcercise/ai/ai",
"pages/aiExcercise/detail/detail",
"pages/aiExcercise/list/list",
"pages/aiExcercise/result/result",
"pages/beforeCreate/beforeCreate",
"pages/deliveryTarget/deliveryTarget",
"pages/carQuotation/reception/reception",
"pages/aiCheck/chat/chat",
"pages/aiCheck/result/result",
"pages/aiCheck/scene/scene",
"pages/aiCheck/start/start",
"pages/orderList/orderList",
"pages/equityQualityOrderList/equityQualityOrderList",
"pages/createDeafeatOrderBefore/createDeafeatOrderBefore",
"pages/receptionRecords/receptionRecords",
"pages/aiCheck/redundance/redundance",
"pages/aiCheck/detail/detail",
"pages/receptionDetail/receptionDetail",
"pages/aiCheck/defense/defense",
"pages/extract/extract/extract",
"pages/extract/confirm/confirm",
"pages/extract/success/success",
"pages/sceneMarket/index/index",
"pages/sceneMarket/clue/clue",
"pages/sceneMarket/clueForm/clueForm",
"pages/sceneMarket/materialPage/materialPage",
"pages/newReceptionRecords/newReceptionRecords"
]
},
{
"root": "tabOperating",
"name": "tabOperating",
"pages": [
"pages/4sOverview/4sOverview",
"pages/index/index",
"pages/operatingShow/operatingShow"
]
},
{
"root": "packageCrowdFunding",
"name": "packageCrowdFunding",
"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"
]
},
{
"root": "subvehicleConversion",
"name": "subvehicleConversion",
"pages": [
"pages/TabBar/conversionPage",
"pages/activityPage/activityManagement/activityManagement",
"pages/activityPage/visitor/visitor",
"pages/activityPage/order/order",
"pages/orderPage/supplementaryOrderList/supplementaryOrderList",
"pages/orderPage/supplementaryOrderPay/supplementaryOrderPay",
"pages/orderPage/relatedFinalPayment/relatedFinalPayment",
"pages/orderPage/paySuccess/paySuccess"
]
}
],
"usingComponents": {
"gl-textarea": "/components/GlTextarea/GlTextarea",
"gl-cell": "/components/GlCell/GlCell",
"gl-cust-form": "/components/GLCustForm/GLCustForm",
"calendar": "/components/Calendar/Calendar",
"navigation-bar": "/components/navigationBar/navigationBar",
"popup": "/components/Popup/Popup",
"search-input": "/components/SearchInput/SearchInput",
"order-popup": "/components/OrderPopup/OrderPopup",
"date-picker": "/components/DatePicker/DatePicker",
"remark-popup": "/components/RemarkPopup/RemarkPopup",
"tab-bar": "/components/TabBar/TabBar",
"order-confirm": "/components/Confirm/Confirm",
"qr-box": "components/Qrbox/Qrbox",
"modal": "components/modal/modal",
"tips-bottom": "components/tipsBottom/index",
"gl-image": "components/GlImage/index",
"van-field": "@vant/weapp/field/index",
"van-radio-group": "@vant/weapp/radio-group/index",
"van-radio": "@vant/weapp/radio/index",
"van-popup": "@vant/weapp/popup/index",
"van-dialog": "@vant/weapp/dialog/index",
"van-uploader": "@vant/weapp/uploader/index",
"glsx-privacy": "glsk-applet-component/GlsxPrivacy/index",
"empty-data": "/components/EmptyData/EmptyData",
"van-switch": "@vant/weapp/switch/index"
},
"preloadRule": {
"pages/tabWorkOrder/pages/index/index": {
"network": "all",
"packages": [
"tabWorkOrder"
]
},
"tabIndex/pages/index/index": {
"network": "all",
"packages": [
"tabWorkOrder"
]
}
},
"resolveAlias": {
"~/*": "/*"
},
"sitemapLocation": "sitemap.json",
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"lazyCodeLoading": "requiredComponents",
"resizable": true
}
\ No newline at end of file \ No newline at end of file
{
"pages": [
"pages/loading/loading",
"pages/sceneIndex/sceneIndex",
"pages/wxLogin/wxLogin",
"tabIndex/pages/index/index",
"pages/accountItems/accountItems",
"pages/merchantList/merchantList",
"pages/nothing/nothing",
"pages/webView/webView",
"pages/tabWorkOrder/pages/index/index",
"pages/tabMine/pages/index/index",
"pages/tabDateIndex/pages/tabDateIndex",
"pages/log/log",
"pages/changeScene/changeScene",
"pages/materails/index",
"pages/pointsReview/pointsReview",
"pages/h5AuthPhone/h5AuthPhone",
"pages/tabRepairOrder/pages/index/index"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "生意助手员工版",
"navigationBarTextStyle": "black",
"pageOrientation": "auto"
},
"tabBar": {
"color": "#757980",
"selectedColor": "#347BFF",
"backgroundColor": "#FFFFFF",
"position": "bottom",
"list": [
{
"pagePath": "tabIndex/pages/index/index",
"text": "首页",
"iconPath": "images/tab-home.png",
"selectedIconPath": "images/tab-home-active.png"
},
{
"pagePath": "pages/tabDateIndex/pages/tabDateIndex",
"text": "预约管理",
"iconPath": "images/tab-date.png",
"selectedIconPath": "images/tab-date-active.png"
},
{
"pagePath": "pages/tabWorkOrder/pages/index/index",
"text": "客户工单",
"iconPath": "images/tab-order.png",
"selectedIconPath": "images/tab-order-active.png"
},
{
"pagePath": "pages/tabRepairOrder/pages/index/index",
"text": "施工单",
"iconPath": "images/tab-repair.png",
"selectedIconPath": "images/tab-repair-active.png"
},
{
"pagePath": "pages/tabMine/pages/index/index",
"text": "个人中心",
"iconPath": "images/tab-mine.png",
"selectedIconPath": "images/tab-mine-active.png"
}
]
},
"subpackages": [
{
"root": "tabDate",
"name": "tabDate",
"pages": [
"pages/detail/detail",
"pages/apprManage/apprManage",
"pages/userPortrait/userPortrait"
]
},
{
"root": "integration",
"name": "integration",
"pages": [
"pages/bankAccount/list/list",
"pages/bankAccount/detail/detail",
"pages/point/index/index",
"pages/point/record/record",
"pages/point/toCash/toCash",
"pages/point/success/success"
]
},
{
"root": "tabMine",
"name": "tabMine",
"pages": [
"pages/technicianSetup/technicianSetup",
"pages/completeBuild/completeBuild",
"pages/collectCoupons/collectCoupons"
]
},
{
"root": "tabRepairOrder",
"name": "tabRepairOrder",
"pages": [
"pages/confirmWorkOrder/confirmWorkOrder",
"pages/repairOrderDetail/repairOrderDetail"
]
},
{
"root": "tabWorkOrder",
"name": "tabWorkOrder",
"pages": [
"pages/createOrder/createOrder",
"pages/additionRecordOrder/additionRecordOrder",
"pages/orderDetail/orderDetail",
"pages/constructionOrderDetail/constructionOrderDetail",
"pages/confirmOrder/confirmOrder",
"pages/updateOrderInfo/updateOrderInfo",
"pages/createArchives/createArchives",
"pages/orderSignature/orderSignature",
"pages/fullSignture/fullSignture",
"pages/ocr/ocr",
"pages/premiumUpgrade/premiumUpgrade",
"pages/defeatOrder/defeatOrder",
"pages/staffDaily/staffDaily",
"pages/upgradeStaffDaily/upgradeStaffDaily",
"pages/supervisorDaily/supervisorDaily",
"pages/residentManage/residentManage",
"pages/mentorshipManage/mentorshipManage",
"pages/tabWorkOrderRelevance/index",
"pages/invoiceCode/invoiceCode",
"pages/invoiceResult/invoiceResult",
"pages/technicianSearchList/pages/index/technicianSearchList",
"pages/refundOperationList/refundOperationList",
"pages/refundDetailList/refundDetailList",
"pages/refundApply/refundApply",
"pages/createAConstructionOrder/createAConstructionOrder"
]
},
{
"root": "packageEquity",
"name": "packageEquity",
"pages": [
"pages/carQuotation/signature/signature",
"pages/carQuotation/index/index",
"pages/carQuotation/relevanceOrderSelect/index",
"pages/carQuotation/fullSignture/fullSignture",
"pages/carQuotation/schemeConfirmation/schemeConfirmation",
"pages/carQuotation/CarQuotationDetail/CarQuotationDetail",
"pages/carQuotation/CarQuotationPay/CarQuotationPay",
"pages/carQuotation/createOrderCarQuotation/createOrderCarQuotation",
"pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple",
"pages/carQuotation/updateOrderInfo/updateOrderInfo",
"pages/ocrEquityModules/ocrEquityModules",
"pages/carEquity/previewList/previewList",
"pages/carEquity/serviceInfo/serviceInfo",
"pages/carEquity/carBrands/carBrands",
"pages/carEquity/carSeries/carSeries",
"pages/TabBar/equityPage",
"pages/carEquity/previewContract/previewContract",
"pages/collegeScene/collegeScene",
"pages/clueList/clueList",
"pages/clueDetail/clueDetail",
"pages/residentTarget/residentTarget",
"pages/aiInspection/aiInspection",
"pages/aiInspectionDetail/aiInspectionDetail",
"pages/aiInspectionReception/aiInspectionReception",
"pages/employeeInspection/employeeInspection",
"pages/trainingMaterials/trainingMaterials",
"pages/trainingMaterials/pages/playVideo/index",
"pages/createDeafeatOrder/createDeafeatOrder",
"pages/createDeafeatOrderAi/createDeafeatOrderAi",
"pages/aiExcercise/ai/ai",
"pages/aiExcercise/detail/detail",
"pages/aiExcercise/list/list",
"pages/aiExcercise/result/result",
"pages/beforeCreate/beforeCreate",
"pages/deliveryTarget/deliveryTarget",
"pages/carQuotation/reception/reception",
"pages/aiCheck/chat/chat",
"pages/aiCheck/result/result",
"pages/aiCheck/scene/scene",
"pages/aiCheck/start/start",
"pages/orderList/orderList",
"pages/equityQualityOrderList/equityQualityOrderList",
"pages/createDeafeatOrderBefore/createDeafeatOrderBefore",
"pages/receptionRecords/receptionRecords",
"pages/aiCheck/redundance/redundance",
"pages/aiCheck/detail/detail",
"pages/receptionDetail/receptionDetail",
"pages/aiCheck/defense/defense",
"pages/extract/extract/extract",
"pages/extract/confirm/confirm",
"pages/extract/success/success",
"pages/sceneMarket/index/index",
"pages/sceneMarket/clue/clue",
"pages/sceneMarket/clueForm/clueForm",
"pages/sceneMarket/materialPage/materialPage",
"pages/newReceptionRecords/newReceptionRecords"
]
},
{
"root": "tabOperating",
"name": "tabOperating",
"pages": [
"pages/4sOverview/4sOverview",
"pages/index/index",
"pages/operatingShow/operatingShow"
]
},
{
"root": "packageCrowdFunding",
"name": "packageCrowdFunding",
"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"
]
},
{
"root": "subvehicleConversion",
"name": "subvehicleConversion",
"pages": [
"pages/TabBar/conversionPage",
"pages/activityPage/activityManagement/activityManagement",
"pages/activityPage/visitor/visitor",
"pages/activityPage/order/order",
"pages/orderPage/supplementaryOrderList/supplementaryOrderList",
"pages/orderPage/supplementaryOrderPay/supplementaryOrderPay",
"pages/orderPage/relatedFinalPayment/relatedFinalPayment",
"pages/orderPage/paySuccess/paySuccess"
]
}
],
"usingComponents": {
"gl-textarea": "/components/GlTextarea/GlTextarea",
"gl-cell": "/components/GlCell/GlCell",
"gl-cust-form": "/components/GLCustForm/GLCustForm",
"calendar": "/components/Calendar/Calendar",
"navigation-bar": "/components/navigationBar/navigationBar",
"popup": "/components/Popup/Popup",
"search-input": "/components/SearchInput/SearchInput",
"order-popup": "/components/OrderPopup/OrderPopup",
"date-picker": "/components/DatePicker/DatePicker",
"remark-popup": "/components/RemarkPopup/RemarkPopup",
"tab-bar": "/components/TabBar/TabBar",
"order-confirm": "/components/Confirm/Confirm",
"qr-box": "components/Qrbox/Qrbox",
"modal": "components/modal/modal",
"tips-bottom": "components/tipsBottom/index",
"gl-image": "components/GlImage/index",
"van-field": "@vant/weapp/field/index",
"van-radio-group": "@vant/weapp/radio-group/index",
"van-radio": "@vant/weapp/radio/index",
"van-popup": "@vant/weapp/popup/index",
"van-dialog": "@vant/weapp/dialog/index",
"van-uploader": "@vant/weapp/uploader/index",
"glsx-privacy": "glsk-applet-component/GlsxPrivacy/index",
"empty-data": "/components/EmptyData/EmptyData",
"van-switch": "@vant/weapp/switch/index"
},
"preloadRule": {
"pages/tabWorkOrder/pages/index/index": {
"network": "all",
"packages": ["tabWorkOrder"]
},
"tabIndex/pages/index/index": {
"network": "all",
"packages": ["tabWorkOrder"]
}
},
"resolveAlias": {
"~/*": "/*"
},
"sitemapLocation": "sitemap.json",
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示"
}
},
"lazyCodeLoading": "requiredComponents",
"resizable": true
}
...@@ -122,16 +122,19 @@ Page({ ...@@ -122,16 +122,19 @@ Page({
color: '#35C376' color: '#35C376'
} }
}, },
userPermissions: [], // 人员权限 userPermissions: [] // 人员权限
}, },
onRoute(options) { onRoute(options) {
this.setData({ this.setData(
queryOptions: options {
}, () => { queryOptions: options
this.getDetail() },
this.getStaffPermissions() () => {
}) this.getDetail()
this.getStaffPermissions()
}
)
}, },
/** /**
...@@ -139,12 +142,15 @@ Page({ ...@@ -139,12 +142,15 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
if (options.id) { if (options.id) {
this.setData({ this.setData(
queryOptions: options {
}, () => { queryOptions: options
this.getDetail() },
this.getStaffPermissions() () => {
}) this.getDetail()
this.getStaffPermissions()
}
)
} }
if (options?.scene) { if (options?.scene) {
this.setSceneData(options.scene) this.setSceneData(options.scene)
...@@ -159,34 +165,37 @@ Page({ ...@@ -159,34 +165,37 @@ Page({
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {},
},
// 人员权限 // 人员权限
getStaffPermissions() { getStaffPermissions() {
// 假数据开始 // 假数据开始
const res = { const res = {
code: 0, code: 0,
data: [{ data: [
name: '施工确认', {
code: 'SHIGONGQUEREN' name: '施工确认',
}, { code: 'SHIGONGQUEREN'
name: '完成施工', },
code: 'WANCHENGSHIGONG' {
}, { name: '完成施工',
name: '物料出库', code: 'WANCHENGSHIGONG'
code: 'WULIAOCHUKU' },
}, { {
name: '审核施工单', name: '物料出库',
code: 'SHENHESHIGONGDAN' code: 'WULIAOCHUKU'
}] },
{
name: '审核施工单',
code: 'SHENHESHIGONGDAN'
}
]
} }
this.setData({ this.setData({
userPermissions: res.data userPermissions: res.data
}) })
return return
let { userInfo } = this.data let { userInfo } = this.data
staffPermissions({phone: userInfo?.phone}).then(res => { staffPermissions({ phone: userInfo?.phone }).then(res => {
let { code, data, message } = res let { code, data, message } = res
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
...@@ -638,11 +647,16 @@ Page({ ...@@ -638,11 +647,16 @@ Page({
submitFlag: false submitFlag: false
}) })
if (code == 0) { if (code == 0) {
wx.$router.redirectTo('repairOrderDetail', {id: detailInfo.id, constructionCode: detailInfo.constructionCode, orderCode: detailInfo.orderCode}) wx.$router.redirectTo('repairOrderDetail', {
id: detailInfo.id,
constructionCode: detailInfo.constructionCode,
orderCode: detailInfo.orderCode
})
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
}).catch(() => { })
.catch(() => {
this.setData({ this.setData({
submitFlag: false submitFlag: false
}) })
...@@ -659,25 +673,27 @@ Page({ ...@@ -659,25 +673,27 @@ Page({
confirmText: '审核通过', confirmText: '审核通过',
cancelText: '不通过', cancelText: '不通过',
success(res) { success(res) {
api.approvalRepairOrder({ api
id: detailInfo.id, .approvalRepairOrder({
constructionCode: detailInfo.constructionCode, id: detailInfo.id,
approvalStatus: res.confirm ? 1 : res.cancel ? 2 : '' constructionCode: detailInfo.constructionCode,
}).then(result => { approvalStatus: res.confirm ? 1 : res.cancel ? 2 : ''
let { code, message } = result })
if (code == 0) { .then(result => {
wx.$util.showToast('') let { code, message } = result
wx.showToast({ if (code == 0) {
title: '操作成功', wx.$util.showToast('')
icon: 'success' wx.showToast({
}) title: '操作成功',
setTimeout(() => { icon: 'success'
wx.$router.back() })
}, 200) setTimeout(() => {
} else { wx.$router.back()
wx.$util.showToast(message) }, 200)
} } else {
}) wx.$util.showToast(message)
}
})
} }
}) })
}, },
......
...@@ -14,22 +14,26 @@ page { ...@@ -14,22 +14,26 @@ page {
color: #FFFFFF; color: #FFFFFF;
padding: var(--fontSize48) var(--fontSize40) var(--fontSize48) var(--fontSize60); padding: var(--fontSize48) var(--fontSize40) var(--fontSize48) var(--fontSize60);
box-sizing: border-box; box-sizing: border-box;
.user-info { .user-info {
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
.hide-text { .hide-text {
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
} }
.car { .car {
font-size: var(--fontSize40); font-size: var(--fontSize40);
font-weight: 600; font-weight: 600;
margin-right: var(--fontSize8); margin-right: var(--fontSize8);
max-width: var(--fontSize400); max-width: var(--fontSize400);
image { image {
width: var(--fontSize40); width: var(--fontSize40);
height: var(--fontSize40); height: var(--fontSize40);
...@@ -37,44 +41,52 @@ page { ...@@ -37,44 +41,52 @@ page {
margin-top: var(--fontSize8); margin-top: var(--fontSize8);
} }
} }
.staff-name { .staff-name {
position: relative; position: relative;
background: none; background: none;
max-width: var(--fontSize242); max-width: var(--fontSize242);
&::before { &::before {
content: "("; content: "(";
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
} }
&::after { &::after {
content: ")"; content: ")";
position: absolute; position: absolute;
right: 0; right: 0;
bottom: 0; bottom: 0;
} }
.name { .name {
padding-right: 1.2em; padding-right: 1.2em;
text-indent: 1.2em; text-indent: 1.2em;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 限制显示两行 */ -webkit-line-clamp: 2;
/* 限制显示两行 */
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
} }
} }
margin-bottom: var(--fontSize32); margin-bottom: var(--fontSize32);
} }
.content { .content {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.tips { .tips {
font-size: var(--fontSize24); font-size: var(--fontSize24);
margin-right: var(--fontSize50); margin-right: var(--fontSize50);
} }
.btn { .btn {
flex-shrink: 0; flex-shrink: 0;
padding: var(--fontSize8) var(--fontSize28); padding: var(--fontSize8) var(--fontSize28);
...@@ -83,6 +95,7 @@ page { ...@@ -83,6 +95,7 @@ page {
} }
} }
} }
.box { .box {
background: #FFFFFF; background: #FFFFFF;
box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10); box-shadow: 0 var(--fontSize4) var(--fontSize20) 0 rgba(0, 0, 0, 0.10);
...@@ -90,12 +103,14 @@ page { ...@@ -90,12 +103,14 @@ page {
padding: var(--fontSize40) var(--fontSize40) var(--fontSize2); padding: var(--fontSize40) var(--fontSize40) var(--fontSize2);
position: relative; position: relative;
margin: var(--fontSize20) var(--fontSize20) 0; margin: var(--fontSize20) var(--fontSize20) 0;
.title { .title {
font-size: var(--fontSize32); font-size: var(--fontSize32);
color: #292D33; color: #292D33;
margin-bottom: var(--fontSize20); margin-bottom: var(--fontSize20);
position: relative; position: relative;
font-weight: 600; font-weight: 600;
&::after { &::after {
position: absolute; position: absolute;
content: ''; content: '';
...@@ -107,38 +122,47 @@ page { ...@@ -107,38 +122,47 @@ page {
transform: translateY(-50%); transform: translateY(-50%);
} }
} }
.flex { .flex {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.example { .example {
font-weight: 400; font-weight: 400;
color: #347BFF; color: #347BFF;
font-size: var(--fontSize26); font-size: var(--fontSize26);
} }
} }
.cell { .cell {
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #999EA8; color: #999EA8;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-bottom: var(--fontSize32); margin-bottom: var(--fontSize32);
.label { .label {
flex-shrink: 0; flex-shrink: 0;
width: var(--fontSize208); width: var(--fontSize208);
} }
.value { .value {
color: #292D33; color: #292D33;
display: flex; display: flex;
flex-flow: wrap; flex-flow: wrap;
align-items: center; align-items: center;
} }
.placeholder { .placeholder {
color: #BEC1C7; color: #BEC1C7;
} }
.copy,.edit {
.copy,
.edit {
color: #347BFF; color: #347BFF;
margin-left: auto; margin-left: auto;
.image { .image {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
...@@ -146,10 +170,12 @@ page { ...@@ -146,10 +170,12 @@ page {
} }
} }
} }
.image-box { .image-box {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: var(--fontSize32); margin-bottom: var(--fontSize32);
.tire-block { .tire-block {
width: var(--fontSize196); width: var(--fontSize196);
height: var(--fontSize196); height: var(--fontSize196);
...@@ -161,20 +187,25 @@ page { ...@@ -161,20 +187,25 @@ page {
text-align: center; text-align: center;
border-radius: var(--fontSize8); border-radius: var(--fontSize8);
overflow: hidden; overflow: hidden;
&:not(:nth-child(3n)) { &:not(:nth-child(3n)) {
margin-right: var(--fontSize20); margin-right: var(--fontSize20);
} }
&:nth-child(n+4) { &:nth-child(n+4) {
margin-top: var(--fontSize20); margin-top: var(--fontSize20);
} }
.tire-img-box { .tire-img-box {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
.tire-img { .tire-img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.icon-delete { .icon-delete {
position: absolute; position: absolute;
top: var(--fontSize12); top: var(--fontSize12);
...@@ -183,29 +214,35 @@ page { ...@@ -183,29 +214,35 @@ page {
height: var(--fontSize40); height: var(--fontSize40);
} }
} }
.icon-plus { .icon-plus {
width: var(--fontSize80); width: var(--fontSize80);
height: var(--fontSize80); height: var(--fontSize80);
} }
.plus-text { .plus-text {
color: #999EA8; color: #999EA8;
font-size: var(--fontSize28); font-size: var(--fontSize28);
} }
} }
} }
.service { .service {
padding-bottom: var(--fontSize16); padding-bottom: var(--fontSize16);
.category { .category {
padding-bottom: var(--fontSize8); padding-bottom: var(--fontSize8);
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
} }
.service-item { .service-item {
background: #F7F8FA; background: #F7F8FA;
border-radius: var(--fontSize12); border-radius: var(--fontSize12);
padding: var(--fontSize24); padding: var(--fontSize24);
font-size: var(--fontSize26); font-size: var(--fontSize26);
margin: var(--fontSize16) calc(-1 * var(--fontSize8)); margin: var(--fontSize16) calc(-1 * var(--fontSize8));
.name { .name {
color: #EA6612; color: #EA6612;
margin-bottom: var(--fontSize12); margin-bottom: var(--fontSize12);
...@@ -216,19 +253,23 @@ page { ...@@ -216,19 +253,23 @@ page {
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-all; word-break: break-all;
} }
.bott { .bott {
display: flex; display: flex;
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #5A5E66; color: #5A5E66;
.split { .split {
margin: 0 var(--fontSize6); margin: 0 var(--fontSize6);
} }
} }
} }
.edit-item { .edit-item {
display: flex; display: flex;
align-items: center; align-items: center;
image { image {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
...@@ -237,6 +278,7 @@ page { ...@@ -237,6 +278,7 @@ page {
} }
} }
} }
.empty-box { .empty-box {
width: 100%; width: 100%;
font-size: var(--fontSize24); font-size: var(--fontSize24);
...@@ -244,27 +286,32 @@ page { ...@@ -244,27 +286,32 @@ page {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
image { image {
width: var(--fontSize86); width: var(--fontSize86);
height: var(--fontSize86); height: var(--fontSize86);
margin-right: var(--fontSize16); margin-right: var(--fontSize16);
} }
} }
.goods { .goods {
margin: 0 calc(-1 * var(--fontSize8)); margin: 0 calc(-1 * var(--fontSize8));
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #292D33; color: #292D33;
padding-bottom: var(--fontSize32); padding-bottom: var(--fontSize32);
.goods-item { .goods-item {
padding: var(--fontSize24); padding: var(--fontSize24);
background: #F7F8FA; background: #F7F8FA;
border-radius: var(--fontSize12); border-radius: var(--fontSize12);
margin-bottom: var(--fontSize16); margin-bottom: var(--fontSize16);
position: relative; position: relative;
.goods-name { .goods-name {
width: calc(100% - var(--fontSize52)); width: calc(100% - var(--fontSize52));
padding-left: var(--fontSize28); padding-left: var(--fontSize28);
} }
&::after { &::after {
position: absolute; position: absolute;
width: var(--fontSize12); width: var(--fontSize12);
...@@ -276,24 +323,29 @@ page { ...@@ -276,24 +323,29 @@ page {
background: #347BFF; background: #347BFF;
border-radius: 100%; border-radius: 100%;
} }
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
} }
.bott { .bott {
margin-top: var(--fontSize12); margin-top: var(--fontSize12);
padding-left: var(--fontSize28); padding-left: var(--fontSize28);
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #999EA8; color: #999EA8;
.split { .split {
margin: 0 var(--fontSize6); margin: 0 var(--fontSize6);
} }
} }
} }
} }
.isFullSucreen-btn { .isFullSucreen-btn {
padding-bottom: 34px !important; padding-bottom: 34px !important;
} }
.btns { .btns {
position: fixed; position: fixed;
left: 0; left: 0;
...@@ -309,6 +361,7 @@ page { ...@@ -309,6 +361,7 @@ page {
font-weight: 500; font-weight: 500;
z-index: 99; z-index: 99;
flex-direction: column; flex-direction: column;
.tips_box { .tips_box {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -320,28 +373,33 @@ page { ...@@ -320,28 +373,33 @@ page {
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #FF9D0A; color: #FF9D0A;
background: #FEF5E7; background: #FEF5E7;
.tipsIcon { .tipsIcon {
flex-shrink: 0; flex-shrink: 0;
width: var(--fontSize28); width: var(--fontSize28);
height: var(--fontSize28); height: var(--fontSize28);
margin-right: var(--fontSize8); margin-right: var(--fontSize8);
} }
.contentText { .contentText {
margin-right: auto; margin-right: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
} }
.close-image { .close-image {
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
} }
} }
.btns-con { .btns-con {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
padding: var(--fontSize10) 0; padding: var(--fontSize10) 0;
width: calc(100% - var(--fontSize80)); width: calc(100% - var(--fontSize80));
.confirm { .confirm {
border-radius: var(--fontSize12); border-radius: var(--fontSize12);
height: var(--fontSize80); height: var(--fontSize80);
......
...@@ -2,205 +2,254 @@ ...@@ -2,205 +2,254 @@
<wxs src="../../index.wxs" module="filter" /> <wxs src="../../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<block> <block>
<view class="main" style="padding-bottom: {{'var(--fontSize290)'}};"> <view class="main" style="padding-bottom: {{ 'var(--fontSize290)' }};">
<view class="status-box"> <view class="status-box">
<view class="user-info"> <view class="user-info">
<view class="car hide-text"><image wx:if="{{detailInfo.constructionStatus == 1}}" src="{{IMG_URL}}repair-order/complete.png" mode=""/>{{detailInfo.customer.carSeriesName || '无车型客户'}}</view> <view class="car hide-text">
<view class="staff-name"> <image wx:if="{{ detailInfo.constructionStatus == 1 }}" src="{{ IMG_URL }}repair-order/complete.png" mode="" />
<text class="name">{{detailInfo.customer.customerName || '-'}}</text> {{detailInfo.customer.carSeriesName || '无车型客户'}}
</view> </view>
</view> <view class="staff-name">
<block wx:if="{{detailInfo.constructionStatus == 0}}"> <text class="name">{{detailInfo.customer.customerName || '-'}}</text>
<view class="content"> </view>
<view class="tips">仓库管理员核销物料出库单后可确认完成施工。</view> </view>
<view class="btn text-center" wx:if="{{detailInfo.outboundStatus != 1}}" bindtap="handleOutbound">物料出库</view> <block wx:if="{{ detailInfo.constructionStatus == 0 }}">
</view> <view class="content">
</block> <view class="tips">仓库管理员核销物料出库单后可确认完成施工。</view>
<block wx:elif="{{detailInfo.constructionStatus == 1}}"> <view class="btn text-center" wx:if="{{ detailInfo.outboundStatus != 1 }}" bindtap="handleOutbound">物料出库</view>
<view class="content"> </view>
<view class="tips"> </block>
<view>完成施工,如客户返工请点击</view> <block wx:elif="{{ detailInfo.constructionStatus == 1 }}">
<view wx:if="{{detailInfo.approvalStatus}}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view> <view class="content">
</view> <view class="tips">
<view class="btn text-center" bindtap="handleRedo" wx:if="{{filter.btnPermissions(userPermissions, 'WULIAOCHUKU')}}">客户返工</view> <view>完成施工,如客户返工请点击</view>
</view> <view wx:if="{{ detailInfo.approvalStatus }}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view>
</block> </view>
</view> <view class="btn text-center" bindtap="handleRedo" wx:if="{{ filter.btnPermissions(userPermissions, 'WULIAOCHUKU') }}">客户返工</view>
<view class="box"> </view>
<view class="title infoTitle"> </block>
<view class="flex">施工单信息</view> </view>
</view> <view class="box">
<block wx:for="{{ detailInfo.constructionStatus == 1 ? constructionOrderObj : orderObj }}" wx:key="index"> <view class="title infoTitle">
<view class="cell"> <view class="flex">施工单信息</view>
<view class="label">{{item.label}}</view> </view>
<block wx:if="{{ item.key == 'status' }}"> <block wx:for="{{ detailInfo.constructionStatus == 1 ? constructionOrderObj : orderObj }}" wx:key="index">
<view class="value" style="color:{{ status[detailInfo.constructionStatus].color || '' }};">{{status[detailInfo.constructionStatus].text}}</view> <view class="cell">
</block> <view class="label">{{item.label}}</view>
<block wx:else> <block wx:if="{{ item.key == 'status' }}">
<view class="value"> <view class="value" style="color:{{ status[detailInfo.constructionStatus].color || '' }};">{{status[detailInfo.constructionStatus].text}}</view>
<block>{{detailInfo[item.key] || '-'}}<text>{{item.unit}}</text></block> </block>
</view> <block wx:else>
</block> <view class="value">
<block wx:if="{{ item.copy }}"> <block>
<view class="copy" bindtap="setCopyData" data-content="{{ detailInfo[item.key] }}"> {{detailInfo[item.key] || '-'}}
<!-- 复制 --> <text>{{item.unit}}</text>
<image src="{{ IMG_URL }}equity/copy.png" class="image" binderror="" bindload=""></image> </block>
</view> </view>
</block> </block>
</view> <block wx:if="{{ item.copy }}">
</block> <view class="copy" bindtap="setCopyData" data-content="{{ detailInfo[item.key] }}">
</view> <!-- 复制 -->
<view class="box" wx:if="{{detailInfo.constructionStatus == 0}}"> <image src="{{ IMG_URL }}equity/copy.png" class="image" binderror="" bindload=""></image>
<view class="title infoTitle"> </view>
<view class="flex">施工时间</view> </block>
</view> </view>
<block wx:for="{{timeObj}}" wx:key="index"> </block>
<view class="cell"> </view>
<view class="label">{{item.label}}</view> <view class="box" wx:if="{{ detailInfo.constructionStatus == 0 }}">
<block wx:if="{{item.key == 'constructionDuration' && (detailInfo[item.key] === null || detailInfo[item.key] === undefined)}}"> <view class="title infoTitle">
<view class="value placeholder">{{item.placeholder}}</view> <view class="flex">施工时间</view>
</block> </view>
<block wx:else> <block wx:for="{{ timeObj }}" wx:key="index">
<view class="value">{{detailInfo[item.key] || '-'}}<text wx:if="{{item.unit}}">{{item.unit}}</text></view> <view class="cell">
</block> <view class="label">{{item.label}}</view>
<view wx:if="{{item.edit}}" class="edit" bindtap="editTime" data-key="{{item.key}}"> <block
<image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="image"></image> wx:if="{{ item.key == 'constructionDuration' && (detailInfo[item.key] === null || detailInfo[item.key] === undefined) }}"
</view> >
</view> <view class="value placeholder">{{item.placeholder}}</view>
</block> </block>
<view class=""></view> <block wx:else>
</view> <view class="value">
<view class="box"> {{detailInfo[item.key] || '-'}}
<view class="title infoTitle"> <text wx:if="{{ item.unit }}">{{item.unit}}</text>
<view class="flex">上传施工图 </view>
<view wx:if="{{detailInfo.constructionStatus == 0}}" bindtap="handleShowExample" class="example">示例</view> </block>
</view> <view wx:if="{{ item.edit }}" class="edit" bindtap="editTime" data-key="{{ item.key }}">
</view> <image src="{{ IMG_URL }}miniProgram/edit_icon.png" class="image"></image>
<view class="image-box"> </view>
<block wx:if="{{detailInfo.pictureList.length}}"> </view>
<view class="tire-block" wx:for="{{ detailInfo.pictureList }}" wx:key="index"> </block>
<view class="tire-img-box" catchtap="handlePreviewImg" data-url="{{ detailInfo.pictureList }}" data-index="{{ index }}"> <view class=""></view>
<image class="icon-delete" catchtap="handleDelete" wx:if="{{detailInfo.constructionStatus == 0}}" data-index="{{ index }}" src="{{ IMG_URL }}zy_paf_del_icon.png" /> </view>
<image class="tire-img" src="{{ item }}" /> <view class="box">
</view> <view class="title infoTitle">
</view> <view class="flex">
</block> 上传施工图
<block wx:elif="{{detailInfo.constructionStatus == 1}}"> <view wx:if="{{ detailInfo.constructionStatus == 0 }}" bindtap="handleShowExample" class="example">示例</view>
<view class="empty-box"> </view>
<image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode=""/> </view>
暂无数据 <view class="image-box">
</view> <block wx:if="{{ detailInfo.pictureList.length }}">
</block> <view class="tire-block" wx:for="{{ detailInfo.pictureList }}" wx:key="index">
<view class="tire-block" bindtap="handleUpload" wx:if="{{ (!detailInfo.pictureList || detailInfo.pictureList.length < 9) && detailInfo.constructionStatus == 0}}"> <view class="tire-img-box" catchtap="handlePreviewImg" data-url="{{ detailInfo.pictureList }}" data-index="{{ index }}">
<view> <image
<image class="icon-plus" src="{{ IMG_URL }}miniProgram/camera_icon.png" /> class="icon-delete"
<view class="plus-text">({{detailInfo.pictureList.length}}/9)</view> catchtap="handleDelete"
</view> wx:if="{{ detailInfo.constructionStatus == 0 }}"
</view> data-index="{{ index }}"
</view> src="{{ IMG_URL }}zy_paf_del_icon.png"
</view> />
<view class="box"> <image class="tire-img" src="{{ item }}" />
<view class="title infoTitle"> </view>
<view class="flex">服务项目列表</view> </view>
</view> </block>
<view class="service"> <block wx:elif="{{ detailInfo.constructionStatus == 1 }}">
<block wx:if="{{detailInfo.serviceItemsList.length}}"> <view class="empty-box">
<block wx:for="{{detailInfo['serviceItemsList']}}" wx:key="index"> <image src="{{ IMG_URL }}repair-order/repair-order-empty.png" mode="" />
<view class="category text-hide">{{item.title}}</view> 暂无数据
<block wx:for="{{item.detailList}}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex"> </view>
<view class="service-item"> </block>
<view class="name">{{i.serviceItemsName}}</view> <view
<view class="bott"> class="tire-block"
<view class="material">用料标准{{i.materialStandard}}米/件</view> bindtap="handleUpload"
<text class="split">|</text> wx:if="{{ (!detailInfo.pictureList || detailInfo.pictureList.length < 9) && detailInfo.constructionStatus == 0 }}"
<view class="cost">施工标准{{i.serviceCost}}min</view> >
</view> <view>
</view> <image class="icon-plus" src="{{ IMG_URL }}miniProgram/camera_icon.png" />
</block> <view class="plus-text">({{detailInfo.pictureList.length}}/9)</view>
</block> </view>
</block> </view>
<block wx:else> </view>
<view class="empty-box"> </view>
<image src="{{IMG_URL}}repair-order/repair-order-empty.png" mode=""/> <view class="box">
暂无数据 <view class="title infoTitle">
</view> <view class="flex">服务项目列表</view>
</block> </view>
</view> <view class="service">
</view> <block wx:if="{{ detailInfo.serviceItemsList.length }}">
<view class="box"> <block wx:for="{{ detailInfo['serviceItemsList'] }}" wx:key="index">
<view class="title infoTitle"> <view class="category text-hide">{{item.title}}</view>
<view class="flex">商品信息</view> <block wx:for="{{ item.detailList }}" wx:key="sindex" wx:for-item="i" wx:for-index="sindex">
</view> <view class="service-item">
<block wx:for="{{goodsObj}}" wx:key="index"> <view class="name">{{i.serviceItemsName}}</view>
<view class="cell"> <view class="bott">
<view class="label">{{item.label}}</view> <view class="material">用料标准{{i.materialStandard}}米/件</view>
<block wx:if="{{ item.key == 'status' }}"> <text class="split">|</text>
<view class="value" style="color:{{ outboundStatus[detailInfo.outboundStatus].color || '' }};">{{outboundStatus[detailInfo.outboundStatus].text}}</view> <view class="cost">施工标准{{i.serviceCost}}min</view>
</block> </view>
<block wx:elif="{{item.objKey}}"> </view>
<view class="value text-hide"> </block>
<block>{{detailInfo[item.objKey][item.key] || '-'}}</block> </block>
</view> </block>
</block> <block wx:else>
<block wx:else> <view class="empty-box">
<view class="value text-hide"> <image src="{{ IMG_URL }}repair-order/repair-order-empty.png" mode="" />
<block>{{detailInfo[item.key] || '-'}}</block> 暂无数据
</view> </view>
</block> </block>
</view> </view>
</block> </view>
<view class="goods"> <view class="box">
<view class="goods-item" wx:for="{{detailInfo.subOrderList}}" wx:key="index"> <view class="title infoTitle">
<view class="goods-name text-hide"> <view class="flex">商品信息</view>
{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}} </view>
</view> <block wx:for="{{ goodsObj }}" wx:key="index">
<view class="bott text-hide" wx:if="{{item.rollNumber || (item.materialsUsed !== null && item.materialsUsed !== undefined)}}"> <view class="cell">
<text class="material">用料{{item.materialsUsed}}米/件</text> <view class="label">{{item.label}}</view>
<block wx:if="{{item.rollNumber}}"> <block wx:if="{{ item.key == 'status' }}">
<text class="split">|</text> <view class="value" style="color:{{ outboundStatus[detailInfo.outboundStatus].color || '' }};">{{outboundStatus[detailInfo.outboundStatus].text}}</view>
<text class="cost">膜卷号{{item.rollNumber}}</text> </block>
</block> <block wx:elif="{{ item.objKey }}">
</view> <view class="value text-hide">
</view> <block>{{detailInfo[item.objKey][item.key] || '-'}}</block>
</view> </view>
</view> </block>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{(detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG')) || (detailInfo.constructionStatus == 1 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN'))}}"> <block wx:else>
<!-- 未施工 技师可操作 --> <view class="value text-hide">
<block wx:if="{{detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG')}}"> <block>{{detailInfo[item.key] || '-'}}</block>
<view class="tips_box" wx:if="{{!hideOutTips && detailInfo.outboundStatus == 0}}"> </view>
<image class="tipsIcon" src="{{IMG_URL}}miniProgram/tipsIcon.png" /> </block>
<view class="contentText"> </view>
请仓库管理员核销物料出库单 </block>
</view> <view class="goods">
<image class="close-image" bindtap="closeTips" data-key="hideOutTips" src="{{IMG_URL}}repair-order/close.png" /> <view class="goods-item" wx:for="{{ detailInfo.subOrderList }}" wx:key="index">
</view> <view class="goods-name text-hide">
<view class="tips_box" wx:if="{{!hideTips}}"> {{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || item.packageName||''}}
<image class="tipsIcon" src="{{IMG_URL}}miniProgram/tipsIcon.png" /> </view>
<view class="contentText"> <view
在页面中上传施工图片,点击完成施工按钮结束施工单 class="bott text-hide"
</view> wx:if="{{ item.rollNumber || (item.materialsUsed !== null && item.materialsUsed !== undefined) }}"
<image class="close-image" bindtap="closeTips" data-key="hideTips" src="{{IMG_URL}}repair-order/close.png" /> >
</view> <text class="material">用料{{item.materialsUsed}}米/件</text>
<view class="btns-con"> <block wx:if="{{ item.rollNumber }}">
<view class="confirm text-center" bindtap="submit">确认完成施工</view> <text class="split">|</text>
</view> <text class="cost">膜卷号{{item.rollNumber}}</text>
</block> </block>
<!-- 已施工/未审核 区域运营/驻店销售可操作 --> </view>
<block wx:if="{{detailInfo.constructionStatus == 1 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN')}}"> </view>
<view class="btns-con"> </view>
<view class="confirm text-center" bindtap="checkOrder">审核施工单</view> </view>
</view> <view
</block> class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}"
</view> wx:if="{{ (detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG')) || (detailInfo.constructionStatus == 1 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN')) }}"
</view> >
<!-- 未施工 技师可操作 -->
<block wx:if="{{ detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG') }}">
<view class="tips_box" wx:if="{{ !hideOutTips && detailInfo.outboundStatus == 0 }}">
<image class="tipsIcon" src="{{ IMG_URL }}miniProgram/tipsIcon.png" />
<view class="contentText">请仓库管理员核销物料出库单</view>
<image class="close-image" bindtap="closeTips" data-key="hideOutTips" src="{{ IMG_URL }}repair-order/close.png" />
</view>
<view class="tips_box" wx:if="{{ !hideTips }}">
<image class="tipsIcon" src="{{ IMG_URL }}miniProgram/tipsIcon.png" />
<view class="contentText">在页面中上传施工图片,点击完成施工按钮结束施工单</view>
<image class="close-image" bindtap="closeTips" data-key="hideTips" src="{{ IMG_URL }}repair-order/close.png" />
</view>
<view class="btns-con">
<view class="confirm text-center" bindtap="submit">确认完成施工</view>
</view>
</block>
<!-- 已施工/未审核 区域运营/驻店销售可操作 -->
<block
wx:if="{{ detailInfo.constructionStatus == 1 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN') }}"
>
<view class="btns-con">
<view class="confirm text-center" bindtap="checkOrder">审核施工单</view>
</view>
</block>
</view>
</view>
</block> </block>
<time-select show="{{startTimeVisible}}" title="开始施工时间" defaultTime="{{detailInfo.startTime}}" isStartTime="{{true}}" endTime="{{detailInfo.endTime}}" bind:confirm="onStartTimeConfirm" bindcancel="onClosePicker"/> <time-select
<time-select show="{{endTimeVisible}}" title="结束施工时间" defaultTime="{{detailInfo.endTime}}" isStartTime="{{false}}" startTime="{{detailInfo.startTime}}" bind:confirm="onEndTimeConfirm" bindcancel="onClosePicker" /> show="{{ startTimeVisible }}"
<outbound-popup show="{{outboundVisible}}" title="物料出库" detailInfo="{{detailInfo}}" bindcancel="handleOutboundCancel" bindconfirm="handleOutboundConfirm" userPermissions="{{userPermissions}}"></outbound-popup> title="开始施工时间"
defaultTime="{{ detailInfo.startTime }}"
isStartTime="{{ true }}"
endTime="{{ detailInfo.endTime }}"
bind:confirm="onStartTimeConfirm"
bindcancel="onClosePicker"
/>
<time-select
show="{{ endTimeVisible }}"
title="结束施工时间"
defaultTime="{{ detailInfo.endTime }}"
isStartTime="{{ false }}"
startTime="{{ detailInfo.startTime }}"
bind:confirm="onEndTimeConfirm"
bindcancel="onClosePicker"
/>
<outbound-popup
show="{{ outboundVisible }}"
title="物料出库"
detailInfo="{{ detailInfo }}"
bindcancel="handleOutboundCancel"
bindconfirm="handleOutboundConfirm"
userPermissions="{{ userPermissions }}"
></outbound-popup>
<rework-popup <rework-popup
show="{{ reworkVisible }}" show="{{ reworkVisible }}"
title="返工确认" title="返工确认"
detailInfo="{{ detailInfo }}" detailInfo="{{ detailInfo }}"
bindcancel="handleReworkCancel" bindcancel="handleReworkCancel"
bindconfirm="handleReworkConfirm" bindconfirm="handleReworkConfirm"
></rework-popup> ></rework-popup>
\ No newline at end of file \ No newline at end of file
...@@ -15,8 +15,9 @@ ...@@ -15,8 +15,9 @@
</view> </view>
<view class="main {{ isFullSucreen?'isFullSucreen':'' }}"> <view class="main {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="mainheader"> <view class="mainheader">
<!-- catchtap="showStaffPicker" -->
<view class="title">日报切换</view> <view class="title">日报切换</view>
<view class="navigation-title templateNameTitle" bindtap="showStaffPicker"> <view class="navigation-title templateNameTitle">
<picker bindchange="handleTemplagePickerChange" value="{{ orderObj.templateType-1 }}" range-key="name" range="{{ pickerTemplateList }}" disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || isHmStore}}"> <picker bindchange="handleTemplagePickerChange" value="{{ orderObj.templateType-1 }}" range-key="name" range="{{ pickerTemplateList }}" disabled="{{ filter.filterDisabled(role, weeklyList, orderObj.reportDate, isEditReport) || isHmStore}}">
<view class="picker"> <view class="picker">
<view class="text-hide templateName">{{pickerTemplateList[orderObj.templateType-1]['name']}}</view> <view class="text-hide templateName">{{pickerTemplateList[orderObj.templateType-1]['name']}}</view>
...@@ -93,7 +94,7 @@ ...@@ -93,7 +94,7 @@
<block wx:if="{{ item.brandType == 0 }}"> <block wx:if="{{ item.brandType == 0 }}">
<view class="mainheader"> <view class="mainheader">
<view class="title">问界</view> <view class="title">问界</view>
<view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" bindtap="showStaffPicker"> <view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" catchtap="showStaffPicker">
<view class="navigation-title-text text-hide">{{orderObj.staffName}}</view> <view class="navigation-title-text text-hide">{{orderObj.staffName}}</view>
<view class="arrow" wx:if="{{ role == 'super' }}"> <view class="arrow" wx:if="{{ role == 'super' }}">
<image src="/images/arrow_bottom.png" /> <image src="/images/arrow_bottom.png" />
...@@ -119,7 +120,7 @@ ...@@ -119,7 +120,7 @@
<block wx:if="{{ item.brandType == 1 }}"> <block wx:if="{{ item.brandType == 1 }}">
<view class="mainheader"> <view class="mainheader">
<view class="title">鸿蒙</view> <view class="title">鸿蒙</view>
<view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" bindtap="showStaffPicker"> <view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" catchtap="showStaffPicker">
<view class="navigation-title-text text-hide">{{orderObj.staffName}}</view> <view class="navigation-title-text text-hide">{{orderObj.staffName}}</view>
<view class="arrow" wx:if="{{ role == 'super' }}"> <view class="arrow" wx:if="{{ role == 'super' }}">
<image src="/images/arrow_bottom.png" /> <image src="/images/arrow_bottom.png" />
...@@ -145,7 +146,7 @@ ...@@ -145,7 +146,7 @@
<block wx:if="{{ item.brandType == 2 }}"> <block wx:if="{{ item.brandType == 2 }}">
<view class="mainheader"> <view class="mainheader">
<view class="title">{{ item.brandType == 1? '非问界': item.firstBrandName}}</view> <view class="title">{{ item.brandType == 1? '非问界': item.firstBrandName}}</view>
<view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" bindtap="showStaffPicker"> <view class="navigation-title" wx:if="{{ orderObj.staffName && arr_index == 0 }}" catchtap="showStaffPicker">
<view class="navigation-title-text text-hide">{{orderObj.staffName}}</view> <view class="navigation-title-text text-hide">{{orderObj.staffName}}</view>
<view class="arrow" wx:if="{{ role == 'super' }}"> <view class="arrow" wx:if="{{ role == 'super' }}">
<image src="/images/arrow_bottom.png" /> <image src="/images/arrow_bottom.png" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!