103 lines
2.6 KiB
Vue
103 lines
2.6 KiB
Vue
<template>
|
|
<tpx-page>
|
|
<tpx-layout>
|
|
<template v-slot:header></template>
|
|
<template v-slot:body>
|
|
<view class="mt-30">
|
|
<bo-detail-tmp v-model:value="submitParam" :billCode="queryOption.billCode"></bo-detail-tmp>
|
|
</view>
|
|
</template>
|
|
<template v-slot:footer>
|
|
<view class="blcok-white-noradius">
|
|
<u-row justify="space-around">
|
|
<u-button v-if="submitParam.waybillStatus == 0" @click="goto(`post/post?type=edit&billCode=${queryOption.billCode}&orderSn=${queryOption.orderSn}`)" :plain="true" size="large" shape="circle" custom-style="margin: 0 10rpx;height:80rpx;font-size: 30rpx;"
|
|
>修改
|
|
</u-button>
|
|
<u-button v-if="submitParam.orderStatus == 0" @click="handleCancel" :plain="true" size="large" shape="circle" custom-style="margin: 0 10rpx;height:80rpx;font-size: 30rpx;"
|
|
>取消
|
|
</u-button>
|
|
<u-button @click="goto(`post/post?copyBillCode=${queryOption.billCode}`)" type="primary" size="large" shape="circle" custom-style="margin: 0 10rpx;height:80rpx;font-size: 30rpx;"
|
|
>再来一单
|
|
</u-button>
|
|
</u-row>
|
|
</view>
|
|
</template>
|
|
</tpx-layout>
|
|
|
|
<tpx-com-dialog v-model:show="cancelModal.show" ref="cancelRef" title="确认取消">
|
|
<template v-slot:body>
|
|
<u-textarea v-model="cancelModal.data.orderRemark" border="surround" height="120" placeholder="请输入"
|
|
maxlength="300" count></u-textarea>
|
|
</template>
|
|
</tpx-com-dialog>
|
|
</tpx-page>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import BoDetailTmp from "@/components/buns-order-templates/bo-detail-tmp"
|
|
import * as apiService from "@/common/api"
|
|
|
|
export default {
|
|
components: { BoDetailTmp },
|
|
props: {
|
|
// hasLeftWin: {
|
|
// type: Boolean
|
|
// }
|
|
},
|
|
computed: {
|
|
},
|
|
data() {
|
|
return {
|
|
submitParam: {},
|
|
queryOption: {
|
|
billCode: '', // 运单id
|
|
},
|
|
cancelModal: {
|
|
show: false,
|
|
data: {
|
|
orderRemark: ''
|
|
}
|
|
},
|
|
}
|
|
},
|
|
onShareAppMessage() {
|
|
return {
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
this.queryOption = option
|
|
this.initData();
|
|
},
|
|
onUnload() {
|
|
|
|
},
|
|
methods: {
|
|
initData(){
|
|
|
|
},
|
|
async handleCancel(){
|
|
let canBl = await this.$refs.cancelRef.getConfirmResult()
|
|
if(canBl) {
|
|
await apiService.cancelOrder({ orderSn: item.orderSn, ...this.cancelModal.data })
|
|
this.showToast('取消成功')
|
|
this.goBack()
|
|
}
|
|
this.cancelModal.data = { }
|
|
this.cancelModal.show = false
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import '@/common/uni-nvue.scss';
|
|
page {
|
|
background-color: #F6F6F6;
|
|
height: 100% !important;
|
|
}
|
|
|
|
</style>
|
|
<style scoped lang="scss">
|
|
|
|
</style> |