Commit 900a806d by 胡悦

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

2 parents dcb47bd1 005212bf
......@@ -40,7 +40,7 @@
.icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.2259164535379369) calc(100vmin * (1173 / 768) * -0.6321398124467178);}
.icon-clone { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.35208866155157714) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
background-position: calc(100vmin * (1173 / 768) * -0.39215686274509803) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-coupon-arrow { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.24595055413469735) calc(100vmin * (1173 / 768) * -0.6321398124467178);}
.icon-coupon { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.0076726342710997444);
......@@ -160,7 +160,7 @@
.icon-logo { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662);
background-position: calc(100vmin * (1173 / 768) * -0.5647911338448423) calc(100vmin * (1173 / 768) * -0.10017050298380221);}
.icon-lssl-icon { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.26044330775788577) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
background-position: calc(100vmin * (1173 / 768) * -0.30051150895140666) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-mask-del { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
background-position: calc(100vmin * (1173 / 768) * -0.3614663256606991) calc(100vmin * (1173 / 768) * -0.5848252344416027);}
.icon-mask-edit { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
......@@ -262,7 +262,7 @@
.icon-role-2 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812);
background-position: calc(100vmin * (1173 / 768) * -0.597612958226769) calc(100vmin * (1173 / 768) * -0.5848252344416027);}
.icon-rule { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.27877237851662406) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
background-position: calc(100vmin * (1173 / 768) * -0.3188405797101449) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-scan { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-scene-0 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
......@@ -300,7 +300,7 @@
.icon-study-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.4701619778346121) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-study-tips { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.2971014492753623) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
background-position: calc(100vmin * (1173 / 768) * -0.3371696504688832) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-study { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763);
background-position: calc(100vmin * (1173 / 768) * -0.5208866155157715) calc(100vmin * (1173 / 768) * -0.4825234441602728);}
.icon-submit { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
......@@ -314,7 +314,7 @@
.icon-tag-checked { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.6061381074168798);}
.icon-task-pass { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.011935208866155157);
background-position: calc(100vmin * (1173 / 768) * -0.3154305200341006) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
background-position: calc(100vmin * (1173 / 768) * -0.3554987212276215) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-tdcj-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.02514919011082694) calc(100vmin * (1173 / 768) * -0.6321398124467178);}
.icon-time-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
......@@ -336,7 +336,7 @@
.icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.18030690537084398) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-two-arrow { width: calc(100vmin * (1173 / 768) * 0.011935208866155157); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.3337595907928389) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
background-position: calc(100vmin * (1173 / 768) * -0.37382779198635974) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-visible { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.07203751065643649) calc(100vmin * (1173 / 768) * -0.6321398124467178);}
.icon-warning-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
......@@ -349,7 +349,9 @@
background-position: calc(100vmin * (1173 / 768) * -0.18414322250639387) calc(100vmin * (1173 / 768) * -0.6321398124467178);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.24040920716112532) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-filter { width: calc(100vmin * (1173 / 768) * 0.0068201193520886615); height: calc(100vmin * (1173 / 768) * 0.0068201193520886615);
background-position: calc(100vmin * (1173 / 768) * -0.639386189258312) calc(100vmin * (1173 / 768) * -0.12766410912190965);}
.icon-topTipsRightIcon { width: calc(100vmin * (1173 / 768) * 0.06990622335890878); height: calc(100vmin * (1173 / 768) * 0.05115089514066496);
background-position: calc(100vmin * (1173 / 768) * -0.2855924978687127) calc(100vmin * (1173 / 768) * -0.20758738277919864);}
\ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.2855924978687127) calc(100vmin * (1173 / 768) * -0.20758738277919864);}
.icon-filter { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.26044330775788577) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
.icon-edit { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.2804774083546462) calc(100vmin * (1173 / 768) * -0.6572890025575447);}
\ No newline at end of file

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

1023 Bytes | W: | H:

2.19 KB | W: | H:

assets/spritesmith/filter.png
assets/spritesmith/filter.png
assets/spritesmith/filter.png
assets/spritesmith/filter.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -401,7 +401,7 @@ export default {
this.checkVersion()
},
async entranceClick (item) {
// if (item.name != 'DailyReport' && (await this.checkDailyReport() || await this.inspectionOfProhibitionBill())) return
if (item.name != 'DailyReport' && (await this.checkDailyReport() || await this.inspectionOfProhibitionBill())) return
uni.navigateTo({
url: `/pages/boutique/tool/index?componentName=${item.name}`
})
......
let modalQueue = [],
eventRequest = []
export default {
data() {
data () {
return {}
},
computed: {
userInfo() {
userInfo () {
return uni.$storage.get('userInfo') || {}
}
},
mounted() {},
mounted () { },
methods: {
async checkDailyReport() {
async checkDailyReport () {
modalQueue = []
eventRequest = []
let { sceneType, isSuper, loginRole } = this.userInfo
......@@ -33,7 +33,7 @@ export default {
})
})
},
showNextModal() {
showNextModal () {
if (modalQueue.length > 0) {
const modalInfo = modalQueue.pop()
// if (wx.__HAS_SHOW_MODAL) return;
......@@ -54,7 +54,7 @@ export default {
})
}
},
staffDailyReport() {
staffDailyReport () {
let { userInfo } = this
return new Promise((resolve, reject) => {
uni.$api.interceptionApi
......@@ -79,12 +79,12 @@ export default {
// if (wx.__HAS_NOTLOGIN_MODAL) return false; //
this.addModalToQueue('日报提醒', '您有未填写的日报,请点击前往。', '前往填写', false, 2, res => {
if (res.confirm) {
uni.navigateTo({
const pages = getCurrentPages(),
currentPage = pages[pages.length - 1]
if (currentPage.route == 'pages/boutique/tool/index') uni.$emit('jumpToDailyReport')
else uni.navigateTo({
url: `/pages/boutique/tool/index?componentName=DailyReport`
})
// wx.$router.go("tabWorkOrder.upgradeStaffDaily", {
// reportDate: formattedDate,
// });
}
})
resolve(true)
......@@ -97,7 +97,7 @@ export default {
})
})
},
clockedIntoWork() {
clockedIntoWork () {
return new Promise((resolve, reject) => {
uni.$api.interceptionApi
.clockInConfigPhone({})
......@@ -123,8 +123,8 @@ export default {
})
})
},
equityStaffDailyReport() {},
addModalToQueue(title, content, confirmText, showCancel, priority, eventCallback) {
equityStaffDailyReport () { },
addModalToQueue (title, content, confirmText, showCancel, priority, eventCallback) {
if (modalQueue.findIndex(val => val.content == content) < 0)
modalQueue.push({
title,
......@@ -139,7 +139,7 @@ export default {
/**
* 查询当前员工处罚情况
*/
async inspectionOfProhibitionBill() {
async inspectionOfProhibitionBill () {
const data = await uni.$api.interceptionApi.checkStaffStudyPunish()
if (data)
uni.showModal({
......
......@@ -192,7 +192,7 @@ import OrderPopup from '@/components/OrderPopup/index.vue'
export default {
name: 'OrderConfirm',
props: {
orderObjData: {
transmissionOfData: {
type: Object,
default: () => ({})
}
......@@ -217,7 +217,7 @@ export default {
mounted() {
this.getPositionList()
// 250819144103724
this.getDetail('250819144103724')
this.getDetail(this.transmissionOfData.orderCode)
this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
},
methods: {
......
......@@ -4,18 +4,10 @@
<view class="box">
<scroll-view class="scroll-view" scroll-y="true">
<view class="box-content">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur"
@handleCell="handleCell">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell">
<!-- 使用v-for循环渲染产品组件,减少重复代码 -->
<template v-for="(_, slotName) in productSlots" :slot="slotName" >
<Product
:key="slotName"
v-if="orderObj[slotName] && orderObj[slotName].length"
@changeTotalPrice="changeTotalPrice"
:list="orderObj[slotName]"
:positionTypeList="positionTypeList"
:baseConfigData="baseConfigData">
</Product>
<template v-for="(_, slotName) in productSlots" :slot="slotName">
<Product :key="slotName" v-if="orderObj[slotName] && orderObj[slotName].length" @changeTotalPrice="changeTotalPrice" :list="orderObj[slotName]" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
</template>
<template slot="package">
<Package v-if="orderObj.package" @changeTotalPrice="changeTotalPrice" :list="orderObj.package" :positionTypeList="positionTypeList"></Package>
......@@ -24,7 +16,7 @@
<SkuGoods v-if="orderObj.skuGoods" :list="orderObj.skuGoods" @changeTotalPrice="changeTotalPrice" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></SkuGoods>
<view class="total" v-if="totalPrice > 0">
<view class="total-left">总价</view>
<view class="total-right">¥{{totalPrice}}</view>
<view class="total-right">¥{{ totalPrice }}</view>
</view>
</template>
<template slot="otherPay">
......@@ -58,7 +50,7 @@ export default {
SkuGoods
},
props: {
selectedTradeData: {
transmissionOfData: {
type: Object,
default: () => null
}
......@@ -78,7 +70,7 @@ export default {
},
data() {
return {
orderCreateType: "createWithPay", // supplementOrder(补录订单) createWithPay(新增)
orderCreateType: 'createWithPay', // supplementOrder(补录订单) createWithPay(新增)
formList: utils.deepClone(FORM_LIST),
userInfo: {},
baseConfigData: {},
......@@ -116,8 +108,8 @@ export default {
frontWindow: true,
rearGear: true,
rearWindow: true,
sunRoof: true,
},
sunRoof: true
}
}
},
computed: {
......@@ -127,7 +119,7 @@ export default {
}
},
mounted() {
console.log('mounted', this.orderCreateType)
console.log('mounted', this.orderCreateType)
this.userInfo = uni.$storage.get('userInfo') || {}
this.baseConfigData = uni.$storage.get('mock_data') || {}
const { userInfo } = this
......@@ -190,7 +182,7 @@ export default {
const _typeValue = this.popupTypeEnum[this.popupType]
console.log(_typeValue)
// 定义产品相关字段数组
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods'];
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
if (_typeValue.key == 'carBrand') {
// 车型
this.$set(this.orderObj, _typeValue.key, `${chooseContent.carBrand}-${chooseContent.carChildsBrandName}-${chooseContent.carSeriesName}`)
......@@ -215,9 +207,11 @@ export default {
// 过滤出已选的goodFlag为2的对象
const selectedGoods = this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 2)
const singleGoods = chooseContent.filter(item => item.goodsFlag === 1)
const moreGoods = chooseContent.filter(item => item.goodsFlag === 2).filter(item => {
return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.id === item.multipleSpecificationsGoods.id)
})
const moreGoods = chooseContent
.filter(item => item.goodsFlag === 2)
.filter(item => {
return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.id === item.multipleSpecificationsGoods.id)
})
// 合并已选的goodFlag为2的对象
this.orderObj[_typeValue.key] = [...singleGoods, ...moreGoods, ...selectedGoods]
}
......@@ -310,7 +304,7 @@ export default {
async submit() {
console.log(this.orderObj)
if (!this.checkRequired()) return
const {orderCreateType} = this
const { orderCreateType } = this
const obj = utils.deepClone(this.orderObj)
const otherCustomer = ['standNo', 'plateNumber', 'customerSex', 'experienceFlag', 'salesType']
obj.customer = {
......@@ -329,10 +323,10 @@ export default {
let subGoodsList = []
labelFields.forEach(field => {
if (Array.isArray(obj[field]) && obj[field].length > 0) {
goodsList = goodsList.concat(obj[field]);
goodsList = goodsList.concat(obj[field])
}
delete obj[field];
});
delete obj[field]
})
if (goodsList.length > 0) {
goodsList.map(e => {
if (e.goodsFlag == 1) {
......@@ -415,7 +409,7 @@ export default {
// 更新总价
this.totalPrice = total.toFixed(2)
},
// 获取上一个订单的销售顾问信息 并且不是再次下单
async getLastUserOrderInfo() {
const res = await uni.$api.boutiqueApi.getLastUserOrderInfo({
......@@ -771,12 +765,12 @@ export default {
padding: toRpx(24) toRpx(32) toRpx(24) 0;
font-size: toRpx(28);
border-bottom: toRpx(2) solid #f7f7f6;
&-left {
color: #333;
font-weight: 500;
}
&-right {
color: #f45001;
font-weight: 500;
......
......@@ -68,7 +68,8 @@ export default {
handler(newVal) {
if (newVal) {
console.log('接收到的交易数据:', newVal)
this.orderObj.customer = newVal.customer
// this.orderObj.customer = newVal.customer
this.$set(this.orderObj, 'customer', newVal.customer)
}
},
immediate: true
......@@ -227,6 +228,7 @@ export default {
// 输入框失去焦点事件
inputBlur(e, val) {
console.log(e, val)
console.log(this.orderObj)
this.orderObj.customer[val.value] = this.orderObj[val.value]
},
checkRequired() {
......
<template>
<view class="order-detail">
<view class="common-title">工单详情</view>
<view class="common-title">{{ orderInfo.constructionFlag == 'Y' && orderInfo.status != 10 ? '完成施工' : '工单详情' }}</view>
<view class="px-48 scroll-y" v-if="orderInfo">
<view class="top-tips flex align-center" v-if="orderInfo.status != 10 && orderInfo.status != 9">
<view class="top-tips flex align-center" v-if="orderInfo.status != 10 && orderInfo.status != 9 && orderInfo.constructionFlag !== 'Y'">
<uni-icons class="checkbox-filled" type="checkbox-filled" color="#4ac18e"></uni-icons>
<view>
<view class="fs-34 fw-5">客户已付款</view>
<view class="fs-26">技师施工完毕后,点击完成施工按钮可通知车主前来取车</view>
<view class="fs-26">技师施工完毕后可通知车主前来取车</view>
</view>
<view class="sprite-icon icon-topTipsRightIcon topTipsRightIcon"></view>
</view>
......@@ -18,6 +18,13 @@
<view class="fs-34 fw-7">订单已撤销</view>
<!-- <view class="tips">客户支付超过24小时,系统自动关闭订单</view> -->
</view>
<view class="top-tips flex align-center" v-if="orderInfo.constructionFlag == 'Y'">
<uni-icons class="checkbox-filled" type="checkbox-filled" color="#4ac18e"></uni-icons>
<view>
<view class="fs-34 fw-5">客户{{ orderInfo.customer.customerName }}</view>
<view class="fs-26">完成施工,如客户有新的需要,可点击再次下单。</view>
</view>
</view>
<!-- 商品信息 -->
<view class="box-shell">
<view class="box-shell-title">商品信息</view>
......@@ -122,7 +129,7 @@
</view>
</view>
</view>
<view v-if="orderInfo.selectPayType == 0">
<view v-if="orderInfo.selectPayType == 0" class="order-info">
<view class="flex align-center pt-8">
<view class="label">拒升理由</view>
<view class="value">
......@@ -134,11 +141,17 @@
<view v-if="warrantyCardList.length || warrantyCardVisible" class="box-shell">
<view class="box">
<view class="box-shell-title">{{ orderInfo.selectPayType == 0 ? '客服' : '质保' }}</view>
<view class="box-shell-title">{{ orderInfo.selectPayType == 0 ? '客服' : '质保信息' }}</view>
<view class="warranty-list" v-for="(item, index) in warrantyCardList" :key="index">
<view class="warranty flex align-center pt-8">
<view class="label">质保产品</view>
<view class="value">{{ replaceItemText(item.goodsName) }}</view>
<view class="warranty flex align-center justify-between pt-8">
<view class="flex align-center">
<view class="label">质保产品</view>
<view class="value">{{ replaceItemText(item.goodsName) }}</view>
</view>
<view class="flex align-center edit-warranty">
<view class="sprite-icon icon-edit mr-8"></view>
质保价格
</view>
</view>
<view class="warranty flex align-center pt-8">
<view class="label">质保期</view>
......@@ -155,7 +168,7 @@
<view class="warranty-list">
<view class="warranty flex align-start pt-8">
<view class="label">质保查询</view>
<view class="label">{{ orderInfo.selectPayType == 0 ? '客服号' : '质保查询' }}</view>
<view class="value">
<view class="warranty-tips" v-if="warrantyCardVisible">
{{ orderInfo.selectPayType == 0 ? '建议让客户扫码关注客服号领取礼包' : '建议让客户扫码关注客服查询质保' }}
......@@ -170,6 +183,18 @@
<view class="flex align-center footer-box justify-center">
<view class="edit btn flex-1" @click="repeal">撤销工单</view>
</view>
<!-- 已支付4 战败2 已评价6 三种状态才展示 并且不是通过失效客户录入的战败单 -->
<view v-if="!userInfo.isSuper && userInfo.loginRole != 3 && userInfo.loginRole != 6 && userInfo.userType == 2 && (orderInfo.status == 4 || orderInfo.status == 2 || orderInfo.status == 6) && ((orderInfo.subOrderList && orderInfo.subOrderList.length) || (orderInfo.packageGoodsList && orderInfo.packageGoodsList.length))">
<!-- 不需要走签名逻辑 -->
<view v-if="signatureSwitch && orderInfo.selectPayType != 0" class="btn-box" :class="isFullSucreen ? 'isFullSucreen-btn' : ''">
<view class="btn text-center" bindtap="navOrderSignature">客户签名确认</view>
</view>
<view v-else class="btn-box" :class="isFullSucreen ? 'isFullSucreen-btn' : ''">
<!-- <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" /> -->
<!-- <view class="btn text-center" bindtap="showAgain">继续下单</view> -->
<view class="btn text-center" @click="confirmConstruction">确认完成施工</view>
</view>
</view>
</view>
</view>
</template>
......@@ -227,12 +252,12 @@ export default {
if (data.selectPayType != 2 && (data.status == 4 || data.status == 6 || data.status == 12)) {
// 查询订单可展示按钮
commonApi.getMoreBtnAPI({ orderCode: data.orderCode }).then(res => {
let { code, data } = res
if (code == 0) {
this.showMoreBtn = data.refundApplyButton == 'Y' || data.refundApplyDetailButton == 'Y'
}
})
// commonApi.getMoreBtnAPI({ orderCode: data.orderCode }).then(res => {
// let { code, data } = res
// if (code == 0) {
// this.showMoreBtn = data.refundApplyButton == 'Y' || data.refundApplyDetailButton == 'Y'
// }
// })
}
console.log('3255555666')
// 服务商是否使用膜卷号配置
......@@ -546,6 +571,9 @@ export default {
.ml-12 {
margin-left: toRpx(12);
}
.mr-8 {
margin-right: toRpx(8);
}
.py-8 {
padding: toRpx(8) 0;
}
......@@ -732,6 +760,11 @@ export default {
height: toRpx(158);
}
}
.edit-warranty {
color: #347bff;
font-size: toRpx(28);
font-weight: 400;
}
}
.warranty-tips {
margin-bottom: toRpx(12);
......
<template>
<view class="order-management">
<view class="search-box">
<input class="uni-input" v-model="keyword" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
<input class="search-input" v-model="keyword" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
</view>
<view class="tab-container flex justify-between">
......@@ -463,6 +463,7 @@ export default {
this.$refs.WaitinputorderPopup.closePopup()
},
jump(name, val) {
console.log(name, val, 'jump')
this.$emit('jump', name, val)
}
}
......@@ -507,12 +508,16 @@ export default {
filter: blur(24px);
}
.uni-input {
.search-input {
text-align: center;
height: toRpx(72);
border-radius: toRpx(40);
opacity: 1;
background: #f5f7fa;
.uni-input-placeholder {
color: #999ea8;
font-size: toRpx(28);
}
}
}
......
<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>
......@@ -10,20 +17,45 @@
<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>
......@@ -38,7 +70,10 @@ import OrderDetail from './components/OrderDetail.vue'
import UploadProofOfPayment from './components/UploadProofOfPayment.vue'
import NoticePopup from './components/NoticePopup.vue'
import dayjs from 'dayjs'
import { interceptionMixin } from '@/mixin/index'
export default {
mixins: [interceptionMixin],
components: {
Entrance,
CreateOrder,
......@@ -50,7 +85,7 @@ export default {
UploadProofOfPayment,
OrderDetail
},
data() {
data () {
return {
toolComponentName: '',
transmissionOfData: null,
......@@ -60,12 +95,16 @@ export default {
selectedDays: []
}
},
onLoad(options) {
onLoad (options) {
if (options.componentName) this.toolComponentName = options.componentName
uni.$on('jumpToDailyReport', _ => {
this.toolComponentName = 'DailyReport'
})
},
methods: {
entranceClick(item) {
async entranceClick (item) {
console.log(item)
if (item.name != 'DailyReport' && (await this.checkDailyReport() || await this.inspectionOfProhibitionBill())) return
// 保存当前选择的组件信息,但不立即切换
const selectedItem = item
if (this.toolComponentName == selectedItem.name) return
......@@ -79,32 +118,32 @@ export default {
// 配置弹窗按钮
this.$refs.notice.buttonsList = [
{
text: '确认退出',
type: 'default',
callback: () => {
// 点击确认后才切换组件
this.toolComponentName = selectedItem.name
if (selectedItem.name !== 'CreateOrder') {
this.transmissionOfData = null
text: '确认退出',
type: 'default',
callback: () => {
// 点击确认后才切换组件
this.toolComponentName = selectedItem.name
if (selectedItem.name !== 'CreateOrder') {
this.transmissionOfData = null
}
this.$refs.notice.close()
}
}, {
text: '继续编辑',
type: 'primary',
callback: () => {
this.$refs.notice.close()
}
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)
if (val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!