Commit 7d34c712 by 李伟康

Merge branch 'V4.56.0' of http://192.168.3.233:8090/glsx/gl_tape into V4.56.0

2 parents e5d28ee9 354ef210
......@@ -64,11 +64,11 @@
</view>
</view>
</view>
<view class="flex align-center py-8">
<view class="flex align-center py-8" v-if="orderInfo">
<view class="sprite-icon icon-coupon fs-14"></view>
<text class="fs-14 coupon-name">{{ orderInfo.couponName || '' }}{{ orderInfo.customerCoupon.customerCouponCode || '' }}({{ orderInfo.customerCoupon.employeeName || '' }})</text>
</view>
<view class="flex justify-end align-center">
<view class="flex justify-end align-center" v-if="orderInfo">
<text class="good-total-lable">商品总金额:</text>
<text class="good-total-value">
<text class="unit">¥</text>
......@@ -223,6 +223,21 @@ export default {
PublishPopup,
OrderPopup
},
watch: {
transmissionOfData: {
handler(newVal) {
if (newVal) {
console.log('接收到的交易数据:', newVal)
console.log(this.transmissionOfData, 'this.transmissionOfData')
this.getPositionList()
// 250819144103724
this.getDetail(this.transmissionOfData.orderCode)
this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
}
},
immediate: true
}
},
data() {
return {
...order_mixins.data,
......@@ -236,12 +251,7 @@ export default {
posQrCode: ''
}
},
mounted() {
this.getPositionList()
// 250819144103724
this.getDetail(this.transmissionOfData.orderCode)
this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
},
mounted() {},
methods: {
replaceItemText(item) {
var reg = getRegExp(';~;', 'g')
......
......@@ -65,7 +65,6 @@ export default {
this.orderObj.outTradeNo = newVal.selectedItems.map(item => item.outTradeNo).join(',')
this.orderObj.tradeNo = newVal.selectedItems.map(item => item.tradeNo).join(',')
}
}
},
immediate: true
......@@ -150,7 +149,7 @@ export default {
const cell = this.formList[2].find(item => item.value == 'payeeType')
if (cell) {
cell.current = 0
cell.radioList[1].disabled = true // 禁用4s店收款
cell.radioList[1].disabled = true // 禁用4s店收款
}
this.djPayList = [
{
......@@ -377,7 +376,7 @@ export default {
baseGoodsId: e.multipleSpecificationsGoods.goods.baseGoodsId,
totalPrice: Number(e.multipleSpecificationsGoods.goods.sellPrice),
number: e.multipleSpecificationsGoods.number,
merchantGoodsId: e.multipleSpecificationsGoods.goods.id || e.multipleSpecificationsGoods.goods.merchantGoodsId,
merchantGoodsId: e.multipleSpecificationsGoods.goods.id || e.multipleSpecificationsGoods.goods.merchantGoodsId
})
}
})
......@@ -386,7 +385,7 @@ export default {
delete obj.carBrand
delete obj.couponInfo
console.log(obj, 'rucan')
uni.showLoading({
title: '提交中...',
mask: true
......@@ -399,7 +398,7 @@ export default {
title: '保存成功',
icon: 'success'
})
this.$emit('jump', 'ConfirmOrder', res.data)
this.$emit('jump', 'ConfirmOrder', res)
}
},
// 计算所有产品的总价
......
......@@ -184,7 +184,7 @@
<view class="label">质保编码</view>
<view class="codeImg-box">
<image v-if="item.barCodeUrl" :src="item.barCodeUrl" class="barCodeImg" />
<view class="barCode">{{ item.cardCode }}</view>
<!-- <view class="barCode">{{ item.cardCode }}</view> -->
</view>
</view>
</view>
......@@ -219,6 +219,11 @@
</view>
</view>
</view>
<PublishPopup ref="calendarPopup" popupClass="calendarPopup" :showClose="false" :showTitle="false" @confirm="confirmCalendar">
<template #content>
<uni-calendar class="calendar" :showMonth="false" @change="calendarChange" />
</template>
</PublishPopup>
</view>
</template>
<script>
......@@ -226,8 +231,12 @@ import utils from '@/utils/utils'
import order_mixins from '../../order_mixins.js'
import dayjs from 'dayjs'
import { index } from '@/env'
import PublishPopup from '@/components/PublishPopup.vue'
export default {
name: 'OrderDetail',
components: {
PublishPopup
},
props: {
transmissionOfData: {
type: Object,
......@@ -244,7 +253,8 @@ export default {
warrantyCardVisible: true,
signatureSwitch: false, //不需要走签名逻辑 没有开启签名功能或则是战败订单
warrantyCardList: [],
isMake: true
isMake: true,
selectDate: null
}
},
async mounted() {
......@@ -541,6 +551,40 @@ export default {
icon: 'success'
})
})
},
customizeDate() {
console.log(this.$refs.calendarPopup, 'this.$refs.calendarPopup')
this.$refs.calendarPopup.open()
},
confirmCalendar() {
this.rangeSelect(this.selectDate)
},
// 修改订单时间
rangeSelect(date) {
let { orderInfo } = this
let params = {
orderCode: orderInfo.orderCode,
orderTime: date + ' 00:00:00'
}
uni.$api.boutiqueApi
.updateOrderTime(params)
.then(result => {
if (result) {
uni.showToast({ title: '修改日期成功' })
this.orderInfo.time = params.orderTime
} else {
uni.showToast({ title: '修改日期失败' })
}
})
.catch(err => {
console.log(err)
})
this.$refs.calendarPopup.closePopup()
},
calendarChange(date) {
console.log(date)
this.selectDate = date.year + '-' + date.month + '-' + date.date
}
}
}
......@@ -549,7 +593,14 @@ export default {
.order-detail {
position: relative;
height: 100%;
::v-deep .calendarPopup .uni-popup__wrapper {
width: 100%;
height: 62vh;
.calendar {
width: 100%;
height: calc(100% - #{toRpx(164)});
}
}
.scroll-y {
height: calc(100% - #{toRpx(296)});
overflow-y: scroll;
......
......@@ -108,7 +108,7 @@
</template>
</PublishPopup>
<PublishPopup ref="abnormalTipsPopup" popupClass="abnormalTipsPopup" :showClose="true" title="超分账期">
<PublishPopup ref="abnormalTipsPopup" popupClass="abnormalTipsPopup" :showClose="true" title="超分账期" @confirm="confirmTips">
<template #content>
<scroll-view scroll-y class="ul px-48">
<view class="title">字段定义</view>
......@@ -437,6 +437,9 @@ export default {
showQuestionPopup() {
this.$refs.abnormalTipsPopup.open()
},
confirmTips() {
this.$refs.abnormalTipsPopup.closePopup()
},
activeClick(item) {
if (this.checkListObj[item.tradeNo]) {
this.$delete(this.checkListObj, item.tradeNo)
......
<template>
<view class="detail-box">
<view class="nav-bar">
<view
class="back"
@click="backPage"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
<view class="back" @click="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">展业工具</view>
</view>
......@@ -17,45 +10,20 @@
<view class="detail-left">
<view class="common-title">展业</view>
<view class="content">
<image
class="banner"
src="../../../assets/images/common/tool_banner.png"
mode="scaleToFill"
/>
<image class="banner" src="../../../assets/images/common/tool_banner.png" mode="scaleToFill" />
<template v-if="toolComponentName !== 'DailyReport'">
<Entrance @entranceClick="entranceClick"></Entrance>
</template>
<template v-else>
<uni-calendar
ref="calendar"
:clearDate="false"
:endDate="endDate"
:showMonth="false"
@monthSwitch="currentMonth = `${$event.year}-${$event.month}`"
@change="currentDate = $event.fulldate"
backgroundColor="transparent"
:selected="selectedDays"
/>
<uni-calendar ref="calendar" :clearDate="false" :endDate="endDate" :showMonth="false" @monthSwitch="currentMonth = `${$event.year}-${$event.month}`" @change="currentDate = $event.fulldate" backgroundColor="transparent" :selected="selectedDays" />
</template>
</view>
</view>
<view class="detail-right">
<component
:is="toolComponentName"
@jump="jump"
:transmission-of-data="transmissionOfData"
:currentDate="currentDate"
:currentMonth="currentMonth"
@setCalendarSelected="selectedDays = $event"
/>
<component :is="toolComponentName" @jump="jump" :transmission-of-data="transmissionOfData" :currentDate="currentDate" :currentMonth="currentMonth" @setCalendarSelected="selectedDays = $event" />
</view>
</view>
<NoticePopup
ref="notice"
title="重要提示"
text="当前页面暂未保存,是否确认退出"
type="warning"
></NoticePopup>
<NoticePopup ref="notice" title="重要提示" text="当前页面暂未保存,是否确认退出" type="warning"></NoticePopup>
</view>
</template>
......@@ -85,7 +53,7 @@ export default {
UploadProofOfPayment,
OrderDetail
},
data () {
data() {
return {
toolComponentName: '',
transmissionOfData: null,
......@@ -95,16 +63,16 @@ export default {
selectedDays: []
}
},
onLoad (options) {
onLoad(options) {
if (options.componentName) this.toolComponentName = options.componentName
uni.$on('jumpToDailyReport', _ => {
this.toolComponentName = 'DailyReport'
})
},
methods: {
async entranceClick (item) {
async entranceClick(item) {
console.log(item)
if (item.name != 'DailyReport' && (await this.checkDailyReport() || await this.inspectionOfProhibitionBill())) return
if (item.name != 'DailyReport' && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return
// 保存当前选择的组件信息,但不立即切换
const selectedItem = item
if (this.toolComponentName == selectedItem.name) return
......@@ -129,24 +97,26 @@ export default {
}
this.$refs.notice.close()
}
}, {
},
{
text: '继续编辑',
type: 'primary',
callback: () => {
this.$refs.notice.close()
}
}]
}
]
// 打开弹窗
this.$refs.notice.open()
},
backPage () {
backPage() {
uni.navigateBack()
},
// name:跳转组件名,val:跳转参数
jump (name, val) {
jump(name, val) {
this.toolComponentName = name
console.log(this.toolComponentName)
console.log(this.toolComponentName, val)
if (val) {
this.transmissionOfData = val
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!