Commit 1d16bbf3 by 张立顺

feat 技师施工套餐

1 parent 62daa711
......@@ -176,14 +176,6 @@ Component({
that.setData({
orderInfo
})
// const customerPhotos = orderInfo.subOrderList[
// index
// ].constructionImgList.map(item => {
// return {
// customerPhoto: item,
// subOrderCode: orderInfo.subOrderList[index].subOrderCode
// }
// })
const customerPhotos = orderInfo.subOrderList.reduce((pre, item) => {
if (item.constructionImgList) {
item.constructionImgList.map(el => {
......@@ -247,6 +239,11 @@ Component({
},
setOrderInfo(orderInfo) {
console.log(orderInfo, 'orderInfo')
orderInfo?.packageGoodsList.forEach(e => {
e.packageGoodsOrderList.forEach(child => {
orderInfo.subOrderList.push(child)
})
})
// constructionImgList
orderInfo.customerPhotos.forEach(item => {
orderInfo.subOrderList.forEach(el => {
......@@ -258,6 +255,7 @@ Component({
}
}
})
})
orderInfo.evaluation = orderInfo.evaluation.split(',')
console.log(orderInfo.subOrderList, 'orderInfo.evaluation')
......
......@@ -171,7 +171,7 @@ Page({
let { payFlag, payType } = e.detail
let paymentMethod = payFlag != 2 ? 1 : payType
if (payFlag == 1 || payType == 3 || payType == 4 || payType == 6) {
wx.$router.go('tabWorkOrder.createOrder', {paymentMethod, ...orderInfo})
wx.$router.go('tabWorkOrder.createOrder', { paymentMethod, ...orderInfo })
} else {
this.tipsEvent()
}
......@@ -372,6 +372,7 @@ Page({
onRoute(options) {
// wx.$router.go("pages.index");
console.log(options);
// options.orderCode = '250908213534979'
if (options.orderCode) {
this.setData({
orderCode: options.orderCode,
......@@ -386,6 +387,7 @@ Page({
onLoad: function (options) {
console.log(options);
// debugger
// options.orderCode = '250908213534979'
if (options.orderCode) {
this.getOrderDetail(options.orderCode);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!