Commit c910f98e by cen

fix: 补充工单确认页面逻辑

1 parent 068c7a67

2.61 MB | W: | H:

2.61 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -136,9 +136,16 @@ export default { ...@@ -136,9 +136,16 @@ export default {
components: { components: {
PublishPopup PublishPopup
}, },
computed: {
payType() {
return order_mixins.data.payType || {}
},
status() {
return order_mixins.data.status || {}
}
},
data() { data() {
return { return {
...order_mixins.data,
IMG_URL: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/', IMG_URL: 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/',
isSettingExpiredTraffic: false, // 是否启用流量失效 isSettingExpiredTraffic: false, // 是否启用流量失效
selectType: 1, selectType: 1,
...@@ -278,8 +285,21 @@ export default { ...@@ -278,8 +285,21 @@ export default {
console.log(await this.inspectionOfProhibitionBill()) console.log(await this.inspectionOfProhibitionBill())
if (await this.inspectionOfProhibitionBill()) return if (await this.inspectionOfProhibitionBill()) return
this.$emit('jump', 'CreateOrder', { paramsData: this.orderCardDetail, type: 'createWithPay' }) this.$emit('jump', 'CreateOrder', { paramsData: this.orderCardDetail, type: 'createWithPay' })
} else { } else if (this.selectType == 2) {
this.$emit('jump', 'DefeatOrder', { paramsData: this.orderCardDetail, type: 'createWithPay' }) this.$emit('jump', 'DefeatOrder', { paramsData: this.orderCardDetail, type: 'createWithPay' })
} else if (this.selectType == 4) {
let _this = this
uni.$api.boutiqueApi
.revokeOrder({
orderCode: this.orderCardDetail.orderCode
})
.then(data => {
uni.showToast({
title: '操作成功',
icon: 'success'
})
this.$emit('refresh')
})
} }
}, },
cancelSelection() { cancelSelection() {
......
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
<uni-calendar class="calendar" :showMonth="false" @change="calendarChange" /> <uni-calendar class="calendar" :showMonth="false" @change="calendarChange" />
</template> </template>
</PublishPopup> </PublishPopup>
<!-- <OrderPopup :orderType="orderInfo.selectPayType" v-if="showPopup" :show="showPopup" :qrCode="orderInfo.payOrder.outTradeNo || ''" :price="orderInfo.total_price" :orderCode="orderInfo.orderCode" /> --> <order-popup ref="openDate" popupType="13" @onConfirm="confirmDate" />
<PublishPopup ref="payPopup" popupClass="payPopup" type="center" :isShowFooter="false"> <PublishPopup ref="payPopup" popupClass="payPopup" type="center" :isShowFooter="false">
<template #header> <template #header>
<view class="popup-top"> <view class="popup-top">
...@@ -252,10 +252,10 @@ export default { ...@@ -252,10 +252,10 @@ export default {
} }
}, },
mounted() { mounted() {
// this.getPositionList() this.getPositionList()
// // "this.transmissionOfData.orderCode" // "this.transmissionOfData.orderCode"
// this.getDetail('250826151911809') this.getDetail('250826172036851')
// this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss') this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
}, },
methods: { methods: {
replaceItemText(item) { replaceItemText(item) {
...@@ -499,7 +499,7 @@ export default { ...@@ -499,7 +499,7 @@ export default {
this.createPayOrder() this.createPayOrder()
}, },
openDate() { openDate() {
this.$refs.test.open() this.$refs.openDate.open()
}, },
customizeDate() { customizeDate() {
console.log(this.$refs.calendarPopup, 'this.$refs.calendarPopup') console.log(this.$refs.calendarPopup, 'this.$refs.calendarPopup')
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</view> </view>
<z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10"> <z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
<OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump"></OrderCard> <OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()"></OrderCard>
</z-paging> </z-paging>
<PublishPopup ref="WaitinputorderPopup" popupClass="waitinputorderPopup" :showClose="true" title="选择交易参考号"> <PublishPopup ref="WaitinputorderPopup" popupClass="waitinputorderPopup" :showClose="true" title="选择交易参考号">
...@@ -147,6 +147,17 @@ export default { ...@@ -147,6 +147,17 @@ export default {
PublishPopup, PublishPopup,
OrderScreen OrderScreen
}, },
computed: {
orderObj() {
return order_mixins.data.orderObj || []
},
payType() {
return order_mixins.data.payType || {}
},
status() {
return order_mixins.data.status || {}
}
},
data() { data() {
return { return {
itemFormObj: [ itemFormObj: [
...@@ -200,8 +211,7 @@ export default { ...@@ -200,8 +211,7 @@ export default {
abnormalPages: 1, abnormalPages: 1,
normalPages: 1, normalPages: 1,
checkListObj: {}, checkListObj: {},
localUserInfo: null, localUserInfo: null
...order_mixins.data
} }
}, },
mounted() { mounted() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!