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 @@ ...@@ -40,7 +40,7 @@
.icon-change-account { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .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);} 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); .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); .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);} 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); .icon-coupon { width: calc(100vmin * (1173 / 768) * 0.020460358056265986); height: calc(100vmin * (1173 / 768) * 0.0076726342710997444);
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
.icon-logo { width: calc(100vmin * (1173 / 768) * 0.06820119352088662); height: calc(100vmin * (1173 / 768) * 0.06820119352088662); .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);} 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); .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); .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);} 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); .icon-mask-edit { width: calc(100vmin * (1173 / 768) * 0.03410059676044331); height: calc(100vmin * (1173 / 768) * 0.03410059676044331);
...@@ -262,7 +262,7 @@ ...@@ -262,7 +262,7 @@
.icon-role-2 { width: calc(100vmin * (1173 / 768) * 0.028985507246376812); height: calc(100vmin * (1173 / 768) * 0.028985507246376812); .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);} 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); .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); .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);} 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); .icon-scene-0 { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
.icon-study-active { width: calc(100vmin * (1173 / 768) * 0.0443307757885763); height: calc(100vmin * (1173 / 768) * 0.0443307757885763); .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);} 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); .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); .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);} 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); .icon-submit { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
.icon-tag-checked { width: calc(100vmin * (1173 / 768) * 0.02557544757033248); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .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);} 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); .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); .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);} 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); .icon-time-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
.icon-total { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323); .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);} 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); .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); .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);} 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); .icon-warning-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
...@@ -349,7 +349,9 @@ ...@@ -349,7 +349,9 @@
background-position: calc(100vmin * (1173 / 768) * -0.18414322250639387) calc(100vmin * (1173 / 768) * -0.6321398124467178);} 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); .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);} 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); .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);} 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 \ 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 { ...@@ -401,7 +401,7 @@ export default {
this.checkVersion() this.checkVersion()
}, },
async entranceClick (item) { 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({ uni.navigateTo({
url: `/pages/boutique/tool/index?componentName=${item.name}` url: `/pages/boutique/tool/index?componentName=${item.name}`
}) })
......
let modalQueue = [], let modalQueue = [],
eventRequest = [] eventRequest = []
export default { export default {
data() { data () {
return {} return {}
}, },
computed: { computed: {
userInfo() { userInfo () {
return uni.$storage.get('userInfo') || {} return uni.$storage.get('userInfo') || {}
} }
}, },
mounted() {}, mounted () { },
methods: { methods: {
async checkDailyReport() { async checkDailyReport () {
modalQueue = [] modalQueue = []
eventRequest = [] eventRequest = []
let { sceneType, isSuper, loginRole } = this.userInfo let { sceneType, isSuper, loginRole } = this.userInfo
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
}) })
}) })
}, },
showNextModal() { showNextModal () {
if (modalQueue.length > 0) { if (modalQueue.length > 0) {
const modalInfo = modalQueue.pop() const modalInfo = modalQueue.pop()
// if (wx.__HAS_SHOW_MODAL) return; // if (wx.__HAS_SHOW_MODAL) return;
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
}) })
} }
}, },
staffDailyReport() { staffDailyReport () {
let { userInfo } = this let { userInfo } = this
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.$api.interceptionApi uni.$api.interceptionApi
...@@ -79,12 +79,12 @@ export default { ...@@ -79,12 +79,12 @@ export default {
// if (wx.__HAS_NOTLOGIN_MODAL) return false; // // if (wx.__HAS_NOTLOGIN_MODAL) return false; //
this.addModalToQueue('日报提醒', '您有未填写的日报,请点击前往。', '前往填写', false, 2, res => { this.addModalToQueue('日报提醒', '您有未填写的日报,请点击前往。', '前往填写', false, 2, res => {
if (res.confirm) { 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` url: `/pages/boutique/tool/index?componentName=DailyReport`
}) })
// wx.$router.go("tabWorkOrder.upgradeStaffDaily", {
// reportDate: formattedDate,
// });
} }
}) })
resolve(true) resolve(true)
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
}) })
}) })
}, },
clockedIntoWork() { clockedIntoWork () {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.$api.interceptionApi uni.$api.interceptionApi
.clockInConfigPhone({}) .clockInConfigPhone({})
...@@ -123,8 +123,8 @@ export default { ...@@ -123,8 +123,8 @@ export default {
}) })
}) })
}, },
equityStaffDailyReport() {}, equityStaffDailyReport () { },
addModalToQueue(title, content, confirmText, showCancel, priority, eventCallback) { addModalToQueue (title, content, confirmText, showCancel, priority, eventCallback) {
if (modalQueue.findIndex(val => val.content == content) < 0) if (modalQueue.findIndex(val => val.content == content) < 0)
modalQueue.push({ modalQueue.push({
title, title,
...@@ -139,7 +139,7 @@ export default { ...@@ -139,7 +139,7 @@ export default {
/** /**
* 查询当前员工处罚情况 * 查询当前员工处罚情况
*/ */
async inspectionOfProhibitionBill() { async inspectionOfProhibitionBill () {
const data = await uni.$api.interceptionApi.checkStaffStudyPunish() const data = await uni.$api.interceptionApi.checkStaffStudyPunish()
if (data) if (data)
uni.showModal({ uni.showModal({
......
...@@ -192,7 +192,7 @@ import OrderPopup from '@/components/OrderPopup/index.vue' ...@@ -192,7 +192,7 @@ import OrderPopup from '@/components/OrderPopup/index.vue'
export default { export default {
name: 'OrderConfirm', name: 'OrderConfirm',
props: { props: {
orderObjData: { transmissionOfData: {
type: Object, type: Object,
default: () => ({}) default: () => ({})
} }
...@@ -217,7 +217,7 @@ export default { ...@@ -217,7 +217,7 @@ export default {
mounted() { mounted() {
this.getPositionList() this.getPositionList()
// 250819144103724 // 250819144103724
this.getDetail('250819144103724') this.getDetail(this.transmissionOfData.orderCode)
this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss') this.successDate = dayjs().format('YYYY-MM-DD HH:mm:ss')
}, },
methods: { methods: {
......
...@@ -4,18 +4,10 @@ ...@@ -4,18 +4,10 @@
<view class="box"> <view class="box">
<scroll-view class="scroll-view" scroll-y="true"> <scroll-view class="scroll-view" scroll-y="true">
<view class="box-content"> <view class="box-content">
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" <GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell">
@handleCell="handleCell">
<!-- 使用v-for循环渲染产品组件,减少重复代码 --> <!-- 使用v-for循环渲染产品组件,减少重复代码 -->
<template v-for="(_, slotName) in productSlots" :slot="slotName" > <template v-for="(_, slotName) in productSlots" :slot="slotName">
<Product <Product :key="slotName" v-if="orderObj[slotName] && orderObj[slotName].length" @changeTotalPrice="changeTotalPrice" :list="orderObj[slotName]" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></Product>
:key="slotName"
v-if="orderObj[slotName] && orderObj[slotName].length"
@changeTotalPrice="changeTotalPrice"
:list="orderObj[slotName]"
:positionTypeList="positionTypeList"
:baseConfigData="baseConfigData">
</Product>
</template> </template>
<template slot="package"> <template slot="package">
<Package v-if="orderObj.package" @changeTotalPrice="changeTotalPrice" :list="orderObj.package" :positionTypeList="positionTypeList"></Package> <Package v-if="orderObj.package" @changeTotalPrice="changeTotalPrice" :list="orderObj.package" :positionTypeList="positionTypeList"></Package>
...@@ -24,7 +16,7 @@ ...@@ -24,7 +16,7 @@
<SkuGoods v-if="orderObj.skuGoods" :list="orderObj.skuGoods" @changeTotalPrice="changeTotalPrice" :positionTypeList="positionTypeList" :baseConfigData="baseConfigData"></SkuGoods> <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" v-if="totalPrice > 0">
<view class="total-left">总价</view> <view class="total-left">总价</view>
<view class="total-right">¥{{totalPrice}}</view> <view class="total-right">¥{{ totalPrice }}</view>
</view> </view>
</template> </template>
<template slot="otherPay"> <template slot="otherPay">
...@@ -58,7 +50,7 @@ export default { ...@@ -58,7 +50,7 @@ export default {
SkuGoods SkuGoods
}, },
props: { props: {
selectedTradeData: { transmissionOfData: {
type: Object, type: Object,
default: () => null default: () => null
} }
...@@ -78,7 +70,7 @@ export default { ...@@ -78,7 +70,7 @@ export default {
}, },
data() { data() {
return { return {
orderCreateType: "createWithPay", // supplementOrder(补录订单) createWithPay(新增) orderCreateType: 'createWithPay', // supplementOrder(补录订单) createWithPay(新增)
formList: utils.deepClone(FORM_LIST), formList: utils.deepClone(FORM_LIST),
userInfo: {}, userInfo: {},
baseConfigData: {}, baseConfigData: {},
...@@ -116,8 +108,8 @@ export default { ...@@ -116,8 +108,8 @@ export default {
frontWindow: true, frontWindow: true,
rearGear: true, rearGear: true,
rearWindow: true, rearWindow: true,
sunRoof: true, sunRoof: true
}, }
} }
}, },
computed: { computed: {
...@@ -190,7 +182,7 @@ export default { ...@@ -190,7 +182,7 @@ export default {
const _typeValue = this.popupTypeEnum[this.popupType] const _typeValue = this.popupTypeEnum[this.popupType]
console.log(_typeValue) 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') { if (_typeValue.key == 'carBrand') {
// 车型 // 车型
this.$set(this.orderObj, _typeValue.key, `${chooseContent.carBrand}-${chooseContent.carChildsBrandName}-${chooseContent.carSeriesName}`) this.$set(this.orderObj, _typeValue.key, `${chooseContent.carBrand}-${chooseContent.carChildsBrandName}-${chooseContent.carSeriesName}`)
...@@ -215,7 +207,9 @@ export default { ...@@ -215,7 +207,9 @@ export default {
// 过滤出已选的goodFlag为2的对象 // 过滤出已选的goodFlag为2的对象
const selectedGoods = this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 2) const selectedGoods = this.orderObj[_typeValue.key].filter(item => item.goodsFlag === 2)
const singleGoods = chooseContent.filter(item => item.goodsFlag === 1) const singleGoods = chooseContent.filter(item => item.goodsFlag === 1)
const moreGoods = chooseContent.filter(item => item.goodsFlag === 2).filter(item => { const moreGoods = chooseContent
.filter(item => item.goodsFlag === 2)
.filter(item => {
return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.id === item.multipleSpecificationsGoods.id) return !selectedGoods.some(selectedItem => selectedItem.multipleSpecificationsGoods.id === item.multipleSpecificationsGoods.id)
}) })
// 合并已选的goodFlag为2的对象 // 合并已选的goodFlag为2的对象
...@@ -310,7 +304,7 @@ export default { ...@@ -310,7 +304,7 @@ export default {
async submit() { async submit() {
console.log(this.orderObj) console.log(this.orderObj)
if (!this.checkRequired()) return if (!this.checkRequired()) return
const {orderCreateType} = this const { orderCreateType } = this
const obj = utils.deepClone(this.orderObj) const obj = utils.deepClone(this.orderObj)
const otherCustomer = ['standNo', 'plateNumber', 'customerSex', 'experienceFlag', 'salesType'] const otherCustomer = ['standNo', 'plateNumber', 'customerSex', 'experienceFlag', 'salesType']
obj.customer = { obj.customer = {
...@@ -329,10 +323,10 @@ export default { ...@@ -329,10 +323,10 @@ export default {
let subGoodsList = [] let subGoodsList = []
labelFields.forEach(field => { labelFields.forEach(field => {
if (Array.isArray(obj[field]) && obj[field].length > 0) { 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) { if (goodsList.length > 0) {
goodsList.map(e => { goodsList.map(e => {
if (e.goodsFlag == 1) { if (e.goodsFlag == 1) {
......
...@@ -68,7 +68,8 @@ export default { ...@@ -68,7 +68,8 @@ export default {
handler(newVal) { handler(newVal) {
if (newVal) { if (newVal) {
console.log('接收到的交易数据:', newVal) console.log('接收到的交易数据:', newVal)
this.orderObj.customer = newVal.customer // this.orderObj.customer = newVal.customer
this.$set(this.orderObj, 'customer', newVal.customer)
} }
}, },
immediate: true immediate: true
...@@ -227,6 +228,7 @@ export default { ...@@ -227,6 +228,7 @@ export default {
// 输入框失去焦点事件 // 输入框失去焦点事件
inputBlur(e, val) { inputBlur(e, val) {
console.log(e, val) console.log(e, val)
console.log(this.orderObj)
this.orderObj.customer[val.value] = this.orderObj[val.value] this.orderObj.customer[val.value] = this.orderObj[val.value]
}, },
checkRequired() { checkRequired() {
......
<template> <template>
<view class="order-detail"> <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="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> <uni-icons class="checkbox-filled" type="checkbox-filled" color="#4ac18e"></uni-icons>
<view> <view>
<view class="fs-34 fw-5">客户已付款</view> <view class="fs-34 fw-5">客户已付款</view>
<view class="fs-26">技师施工完毕后,点击完成施工按钮可通知车主前来取车</view> <view class="fs-26">技师施工完毕后可通知车主前来取车</view>
</view> </view>
<view class="sprite-icon icon-topTipsRightIcon topTipsRightIcon"></view> <view class="sprite-icon icon-topTipsRightIcon topTipsRightIcon"></view>
</view> </view>
...@@ -18,6 +18,13 @@ ...@@ -18,6 +18,13 @@
<view class="fs-34 fw-7">订单已撤销</view> <view class="fs-34 fw-7">订单已撤销</view>
<!-- <view class="tips">客户支付超过24小时,系统自动关闭订单</view> --> <!-- <view class="tips">客户支付超过24小时,系统自动关闭订单</view> -->
</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">
<view class="box-shell-title">商品信息</view> <view class="box-shell-title">商品信息</view>
...@@ -122,7 +129,7 @@ ...@@ -122,7 +129,7 @@
</view> </view>
</view> </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="flex align-center pt-8">
<view class="label">拒升理由</view> <view class="label">拒升理由</view>
<view class="value"> <view class="value">
...@@ -134,12 +141,18 @@ ...@@ -134,12 +141,18 @@
<view v-if="warrantyCardList.length || warrantyCardVisible" class="box-shell"> <view v-if="warrantyCardList.length || warrantyCardVisible" class="box-shell">
<view class="box"> <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-list" v-for="(item, index) in warrantyCardList" :key="index">
<view class="warranty flex align-center pt-8"> <view class="warranty flex align-center justify-between pt-8">
<view class="flex align-center">
<view class="label">质保产品</view> <view class="label">质保产品</view>
<view class="value">{{ replaceItemText(item.goodsName) }}</view> <view class="value">{{ replaceItemText(item.goodsName) }}</view>
</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="warranty flex align-center pt-8">
<view class="label">质保期</view> <view class="label">质保期</view>
<view class="value">{{ item.warrantyPeriod }}</view> <view class="value">{{ item.warrantyPeriod }}</view>
...@@ -155,7 +168,7 @@ ...@@ -155,7 +168,7 @@
<view class="warranty-list"> <view class="warranty-list">
<view class="warranty flex align-start pt-8"> <view class="warranty flex align-start pt-8">
<view class="label">质保查询</view> <view class="label">{{ orderInfo.selectPayType == 0 ? '客服号' : '质保查询' }}</view>
<view class="value"> <view class="value">
<view class="warranty-tips" v-if="warrantyCardVisible"> <view class="warranty-tips" v-if="warrantyCardVisible">
{{ orderInfo.selectPayType == 0 ? '建议让客户扫码关注客服号领取礼包' : '建议让客户扫码关注客服查询质保' }} {{ orderInfo.selectPayType == 0 ? '建议让客户扫码关注客服号领取礼包' : '建议让客户扫码关注客服查询质保' }}
...@@ -170,6 +183,18 @@ ...@@ -170,6 +183,18 @@
<view class="flex align-center footer-box justify-center"> <view class="flex align-center footer-box justify-center">
<view class="edit btn flex-1" @click="repeal">撤销工单</view> <view class="edit btn flex-1" @click="repeal">撤销工单</view>
</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>
</view> </view>
</template> </template>
...@@ -227,12 +252,12 @@ export default { ...@@ -227,12 +252,12 @@ export default {
if (data.selectPayType != 2 && (data.status == 4 || data.status == 6 || data.status == 12)) { if (data.selectPayType != 2 && (data.status == 4 || data.status == 6 || data.status == 12)) {
// 查询订单可展示按钮 // 查询订单可展示按钮
commonApi.getMoreBtnAPI({ orderCode: data.orderCode }).then(res => { // commonApi.getMoreBtnAPI({ orderCode: data.orderCode }).then(res => {
let { code, data } = res // let { code, data } = res
if (code == 0) { // if (code == 0) {
this.showMoreBtn = data.refundApplyButton == 'Y' || data.refundApplyDetailButton == 'Y' // this.showMoreBtn = data.refundApplyButton == 'Y' || data.refundApplyDetailButton == 'Y'
} // }
}) // })
} }
console.log('3255555666') console.log('3255555666')
// 服务商是否使用膜卷号配置 // 服务商是否使用膜卷号配置
...@@ -546,6 +571,9 @@ export default { ...@@ -546,6 +571,9 @@ export default {
.ml-12 { .ml-12 {
margin-left: toRpx(12); margin-left: toRpx(12);
} }
.mr-8 {
margin-right: toRpx(8);
}
.py-8 { .py-8 {
padding: toRpx(8) 0; padding: toRpx(8) 0;
} }
...@@ -732,6 +760,11 @@ export default { ...@@ -732,6 +760,11 @@ export default {
height: toRpx(158); height: toRpx(158);
} }
} }
.edit-warranty {
color: #347bff;
font-size: toRpx(28);
font-weight: 400;
}
} }
.warranty-tips { .warranty-tips {
margin-bottom: toRpx(12); margin-bottom: toRpx(12);
......
<template> <template>
<view class="order-management"> <view class="order-management">
<view class="search-box"> <view class="search-box">
<input class="uni-input" v-model="keyword" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" /> <input class="search-input" v-model="keyword" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
</view> </view>
<view class="tab-container flex justify-between"> <view class="tab-container flex justify-between">
...@@ -463,6 +463,7 @@ export default { ...@@ -463,6 +463,7 @@ export default {
this.$refs.WaitinputorderPopup.closePopup() this.$refs.WaitinputorderPopup.closePopup()
}, },
jump(name, val) { jump(name, val) {
console.log(name, val, 'jump')
this.$emit('jump', name, val) this.$emit('jump', name, val)
} }
} }
...@@ -507,12 +508,16 @@ export default { ...@@ -507,12 +508,16 @@ export default {
filter: blur(24px); filter: blur(24px);
} }
.uni-input { .search-input {
text-align: center; text-align: center;
height: toRpx(72); height: toRpx(72);
border-radius: toRpx(40); border-radius: toRpx(40);
opacity: 1; opacity: 1;
background: #f5f7fa; background: #f5f7fa;
.uni-input-placeholder {
color: #999ea8;
font-size: toRpx(28);
}
} }
} }
......
<template> <template>
<view class="detail-box"> <view class="detail-box">
<view class="nav-bar"> <view class="nav-bar">
<view class="back" @click="backPage"> <view
<uni-icons type="left" :size="20" color="#000"></uni-icons> class="back"
@click="backPage"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view> </view>
<view class="title">展业工具</view> <view class="title">展业工具</view>
</view> </view>
...@@ -10,20 +17,45 @@ ...@@ -10,20 +17,45 @@
<view class="detail-left"> <view class="detail-left">
<view class="common-title">展业</view> <view class="common-title">展业</view>
<view class="content"> <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'"> <template v-if="toolComponentName !== 'DailyReport'">
<Entrance @entranceClick="entranceClick"></Entrance> <Entrance @entranceClick="entranceClick"></Entrance>
</template> </template>
<template v-else> <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> </template>
</view> </view>
</view> </view>
<view class="detail-right"> <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>
</view> </view>
<NoticePopup ref="notice" title="重要提示" text="当前页面暂未保存,是否确认退出" type="warning"></NoticePopup> <NoticePopup
ref="notice"
title="重要提示"
text="当前页面暂未保存,是否确认退出"
type="warning"
></NoticePopup>
</view> </view>
</template> </template>
...@@ -38,7 +70,10 @@ import OrderDetail from './components/OrderDetail.vue' ...@@ -38,7 +70,10 @@ import OrderDetail from './components/OrderDetail.vue'
import UploadProofOfPayment from './components/UploadProofOfPayment.vue' import UploadProofOfPayment from './components/UploadProofOfPayment.vue'
import NoticePopup from './components/NoticePopup.vue' import NoticePopup from './components/NoticePopup.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { interceptionMixin } from '@/mixin/index'
export default { export default {
mixins: [interceptionMixin],
components: { components: {
Entrance, Entrance,
CreateOrder, CreateOrder,
...@@ -50,7 +85,7 @@ export default { ...@@ -50,7 +85,7 @@ export default {
UploadProofOfPayment, UploadProofOfPayment,
OrderDetail OrderDetail
}, },
data() { data () {
return { return {
toolComponentName: '', toolComponentName: '',
transmissionOfData: null, transmissionOfData: null,
...@@ -60,12 +95,16 @@ export default { ...@@ -60,12 +95,16 @@ export default {
selectedDays: [] selectedDays: []
} }
}, },
onLoad(options) { onLoad (options) {
if (options.componentName) this.toolComponentName = options.componentName if (options.componentName) this.toolComponentName = options.componentName
uni.$on('jumpToDailyReport', _ => {
this.toolComponentName = 'DailyReport'
})
}, },
methods: { methods: {
entranceClick(item) { async entranceClick (item) {
console.log(item) console.log(item)
if (item.name != 'DailyReport' && (await this.checkDailyReport() || await this.inspectionOfProhibitionBill())) return
// 保存当前选择的组件信息,但不立即切换 // 保存当前选择的组件信息,但不立即切换
const selectedItem = item const selectedItem = item
if (this.toolComponentName == selectedItem.name) return if (this.toolComponentName == selectedItem.name) return
...@@ -100,11 +139,11 @@ export default { ...@@ -100,11 +139,11 @@ export default {
// 打开弹窗 // 打开弹窗
this.$refs.notice.open() this.$refs.notice.open()
}, },
backPage() { backPage () {
uni.navigateBack() uni.navigateBack()
}, },
// name:跳转组件名,val:跳转参数 // name:跳转组件名,val:跳转参数
jump(name, val) { jump (name, val) {
this.toolComponentName = name this.toolComponentName = name
console.log(this.toolComponentName) console.log(this.toolComponentName)
if (val) { if (val) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!