Commit 1d16bbf3 by 张立顺

feat 技师施工套餐

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