Commit 6ba572f6 by 李伟康

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

2 parents 2cb3b8dd e629d991

2.65 MB | W: | H:

2.65 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -477,7 +477,7 @@ export default {
}
} else {
if (!this.successDate && !this.isErrorOrder && this.orderInfo.selectPayType != 0) return uni.showToast({ title: this.orderInfo.selectPayType == 2 ? '请选择4S店收款时间' : '请选择嘀加收款时间' })
this.$emit('jump', 'UploadProofOfPayment', { orderCode: this.orderInfo.orderCode, payType: this.orderInfo.selectPayType, payeeType: this.orderInfo.payeeType })
this.$emit('jump', 'UploadProofOfPayment', { orderCode: this.orderInfo.orderCode, payType: this.orderInfo.selectPayType, payeeType: this.orderInfo.payeeType, successDate: this.successDate })
}
},
confirmTips() {
......@@ -505,7 +505,7 @@ export default {
}
// 支付方式 2:门店收款 5:嘀加收款 6:对公转账 7:其它收款
if ([2, 5, 6, 7].includes(Number(selectPayType)) && !isErrorOrder) {
obj.successDate = new Date(successDate).format('yyyy-MM-dd hh:mm:ss')
obj.successDate = successDate
}
if (payVoucherList?.length && outTradeNo) {
obj.payVoucherList = payVoucherList.map(v => {
......
......@@ -156,6 +156,23 @@ export default {
}
console.log(this.orderObj, 'orderObj')
handleTransactionData(newVal)
} else {
this.orderCreateType = 'createWithPay'
this.orderObj = {
customer: {},
customerSex: '1',
experienceFlag: 'Y',
payeeType: 1,
salesType: '0',
frontGear: null, // 1 ,回显upgradeGoodsPosition == 1
frontWindow: null, // 2
rearWindow: null, // 3
rearGear: null, // 4
sunRoof: null, // 5, 6,7
package: null,
skuGoods: null // upgradeGoodsPosition 为空,则是其他精品单商品
}
this.initData()
}
},
immediate: true
......@@ -260,6 +277,12 @@ export default {
]
this.changePayee()
} else {
// 防止从补录进来4s店收款为禁用
const cell = this.formList[2].find(item => item.value == 'payeeType')
if (cell) {
cell.current = 1
cell.radioList[1].disabled = false
}
this.getConfig()
}
// this.getEmployeeList()
......
......@@ -87,8 +87,7 @@ export default {
this.orderCreateType = newVal.type
// 新增订单处理
const {
paramsData: { customer, customerCoupon, ...rest },
isExpiredTraffic
paramsData: { customer, customerCoupon, ...rest }
} = newVal
// 基础字段映射
......@@ -453,8 +452,8 @@ export default {
})
}
obj.notUpgradeOrderList = [{ customer: obj.customer, subOrderList: obj.subOrderList, confirmIndex: false, isTouchMove: false, txtStyle: 'left:0' }]
obj.subOrderList = !this.transmissionOfData.isExpiredTraffic ? obj.subOrderList : []
if (this.transmissionOfData.isExpiredTraffic) {
obj.subOrderList = !this.transmissionOfData?.isExpiredTraffic ? obj.subOrderList : []
if (this.transmissionOfData?.isExpiredTraffic) {
delete obj.customer?.['experienceFlag'] // 删除是否体验参数
obj['packageGoodsList'] = [] // 删除商品参数
}
......@@ -687,7 +686,7 @@ export default {
// 失效客户进来的战败单
console.log(this.transmissionOfData, '失效客户进来的战败单')
console.log(this.formList, '失效客户进来的战败单')
if (this.transmissionOfData.isExpiredTraffic) {
if (this.transmissionOfData?.isExpiredTraffic) {
this.formList[2].map(item => {
item.hidden = true
})
......
......@@ -3,7 +3,7 @@
<view class="common-title">{{ orderInfo.constructionFlag == 'Y' && orderInfo.status != 10 ? '完成施工' : '工单详情' }}</view>
<view v-if="isShow" class="px-48 scroll-y" :class="{ 'construction-flag-y': !isMake }">
<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 class="sprite-icon icon-successIcon checkbox-filled"></view>
<view>
<view class="fs-34 fw-5">客户已付款</view>
<view class="fs-26 mt-12 cl-gray">技师施工完毕后可通知车主前来取车</view>
......@@ -19,7 +19,7 @@
<!-- <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 class="sprite-icon icon-successIcon checkbox-filled"></view>
<view>
<view class="fs-34 fw-5">客户{{ orderInfo.customer.customerName }}</view>
<view class="fs-26">完成施工,如客户有新的需要,可点击再次下单。</view>
......@@ -132,24 +132,26 @@
<view class="order-info pt-16">
<view class="flex align-center pt-20" v-for="(item, index) in customerObj" :key="index">
<view class="label">{{ item.label }}</view>
<view class="value" :style="{ color: item.color || '#333' }">
<view v-if="item.arr">
<view v-if="orderInfo[item.arr[1]]" class="flex">
<view v-for="(i, ind) in item.arr" :key="ind">
<view class="value-item text-hide">
<text v-if="ind == 1" class="lineText">|</text>
{{ orderInfo[i] }}
<view class="flex flex-1">
<view class="value" :style="{ color: item.color || '#333' }">
<view v-if="item.arr">
<view v-if="orderInfo[item.arr[1]]" class="flex">
<view v-for="(i, ind) in item.arr" :key="ind">
<view class="value-item text-hide">
<text v-if="ind == 1" class="lineText">|</text>
{{ orderInfo[i] }}
</view>
</view>
</view>
</view>
<view v-else>
{{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }}
</view>
</view>
<view v-else>
{{ item.enum ? item.enum[orderInfo[item.key]] : orderInfo[item.key] || '' }}
<view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
</view>
<view v-if="item.copy" class="copy-btn" @click="setCopyData(orderInfo[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
</view>
</view>
<view v-if="orderInfo.selectPayType == 0" class="order-info">
......@@ -720,6 +722,7 @@ export default {
border-radius: 12px;
background: #f4f5f7;
height: toRpx(216);
width: 100%;
margin-bottom: toRpx(24);
padding: toRpx(32) toRpx(32) toRpx(32) toRpx(32);
.uni-textarea-placeholder {
......@@ -827,6 +830,9 @@ export default {
.cl-gray {
color: #666666;
}
.flex-1 {
flex: 1;
}
.date-box {
display: flex;
align-items: center;
......@@ -879,7 +885,6 @@ export default {
padding: 0 toRpx(32);
position: relative;
.checkbox-filled {
font-size: toRpx(56) !important;
margin-right: toRpx(24);
}
.topTipsRightIcon {
......
......@@ -8,7 +8,7 @@
交易流水号
<text class="required">*</text>
</view>
<input v-model="outTradeNo" type="text" @input="outTradeNoInput" @blur="outTradeNoBlur" class="uni-input" maxlength="150" placeholder="请输入" />
<input v-model="outTradeNo" type="text" @input="outTradeNoInput" class="uni-input" maxlength="150" placeholder="请输入" />
</view>
<view class="payment">
<view class="payment-label">
......@@ -91,16 +91,15 @@ export default {
this.payVoucherList.splice(index, 1)
},
createPayOrder() {
const { orderCode, payType, payeeType } = this.transmissionOfData
const { orderCode, payType, payeeType, successDate } = this.transmissionOfData
let obj = {
orderCode,
payType: payType,
payeeType: payeeType
payeeType: payeeType,
successDate
}
if (this.payVoucherList?.length && this.outTradeNo) {
obj.payVoucherList = this.payVoucherList.map(v => {
return v?.url
})
obj.payVoucherList = this.payVoucherList
obj.outTradeNo = this.outTradeNo
}
uni.showLoading({
......
......@@ -110,7 +110,7 @@ export default {
if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()) || (await this.inspectionOfProhibitionBill()))) return
// 保存当前选择的组件信息,但不立即切换
const selectedItem = item
if (this.toolComponentName == selectedItem.name) return
if (this.toolComponentName === selectedItem.name && (!this.transmissionOfData || this.transmissionOfData.type !== 'supplementOrder')) return
// 如果当前组件是OrderManagement,直接切换组件,不显示弹窗
// 只有从CreateOrder、DefeatOrder切换其他组件时需要二次确认
if (this.toolComponentName !== 'CreateOrder' && this.toolComponentName !== 'DefeatOrder') {
......@@ -127,9 +127,13 @@ export default {
callback: () => {
// 点击确认后才切换组件
this.toolComponentName = selectedItem.name
if (selectedItem.name !== 'CreateOrder') {
this.transmissionOfData = null
}
// if (selectedItem.name !== 'CreateOrder') {
// this.transmissionOfData = null
// }else {
// console.log(111)
// this.transmissionOfData = null
// }
this.transmissionOfData = null
this.$refs.notice.close()
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!