Commit 89fccaad by 李伟康

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

2 parents bb3b48f5 1eae1432
......@@ -311,11 +311,19 @@ module.exports = {
/**
* 保存日报
*/
saveStaffDailyReport (data) {
saveStaffDailyReport(data) {
return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.save',
projectName: 'boutique',
...data
})
},
/** 不升级常用字符列表 */
getConfigList(data) {
return http.post({ method: 'dj.api.smartcarlife.config.list', projectName: 'boutique', ...data })
},
/** 战败订单批量补录 */
notUpgradeOrder(data) {
return http.post({ method: 'dj.api.smartcarlife.order.notUpgrade.batchInsert', projectName: 'boutique', ...data })
}
}
......@@ -271,7 +271,7 @@ export default {
if (await this.inspectionOfProhibitionBill()) return
this.$emit('jump', 'CreateOrder', this.orderCardDetail)
} else {
this.$emit('jump', 'DefeatOrder')
this.$emit('jump', 'DefeatOrder', this.orderCardDetail)
}
},
cancelSelection() {
......
......@@ -116,7 +116,7 @@ export default {
frontWindow: true,
rearGear: true,
rearWindow: true,
sunRoof: true
sunRoof: true,
},
}
},
......@@ -346,14 +346,19 @@ export default {
// 计算所有产品的总价
changeTotalPrice() {
let total = 0
// 遍历所有产品槽位
Object.keys(this.productSlots).forEach(slotName => {
// 遍历所有商品
const productFields = ['frontGear', 'frontWindow', 'rearGear', 'rearWindow', 'sunRoof', 'package', 'skuGoods']
productFields.forEach(slotName => {
const productList = this.orderObj[slotName]
if (Array.isArray(productList) && productList.length > 0) {
// 计算每个产品的价格 * 数量,并累加到总价
productList.forEach(item => {
if (item.goods && item.goods.sellPrice && item.goods.number) {
total += parseFloat(item.goods.sellPrice) * parseInt(item.goods.number)
} else if (item.packageGoods && item.packageGoods.upgradePrice && item.packageGoods.number) {
total += parseFloat(item.packageGoods.upgradePrice) * parseInt(item.packageGoods.number)
} else if (item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods && item.multipleSpecificationsGoods.goods.sellPrice && item.multipleSpecificationsGoods.number) {
total += parseFloat(item.multipleSpecificationsGoods.goods.sellPrice) * parseInt(item.multipleSpecificationsGoods.number)
}
})
}
......
......@@ -177,6 +177,7 @@
import utils from '@/utils/utils'
import order_mixins from '../../order_mixins.js'
import dayjs from 'dayjs'
import { index } from '@/env'
export default {
name: 'OrderDetail',
props: {
......@@ -255,7 +256,7 @@ export default {
})
}
// 膜类商品 并且服务商开通了使用膜卷号配置 不走签名流程
if (this.baseConfigData?.membraneTypeList?.includes(e?.upgradeGoodsType) && isUseFilmRoll && !signatureSwitch) {
if (this.baseConfigData?.membraneTypeList?.includes(e?.upgradeGoodsType) && this.isUseFilmRoll && !this.signatureSwitch) {
let result = await api.getfilmRollNoByGoods({
upgradeGoodsId: e.upgradeGoodsId,
yqMerchantId: data?.sellerMerchantId,
......@@ -426,9 +427,9 @@ export default {
if (configInfo) {
return resolve(configInfo)
} else {
wx.request({
uni.request({
// url: `${domain}${path}?method=${method}`,
url: `https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-car-boutique-work-wechat-miniapp&env=${target[envIndex]}`,
url: `https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-car-boutique-work-wechat-miniapp&env=${target[index]}`,
// data,
method: 'GET',
// header,
......
......@@ -4,12 +4,15 @@
<input class="uni-input" v-model="keyword" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
</view>
<view class="tab-container">
<view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text>{{ item.tabName }}</text>
<text class="num">{{ item.num }}</text>
<view class="tab-container flex justify-between">
<view class="flex">
<view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text>{{ item.tabName }}</text>
<text class="num">{{ item.num }}</text>
</view>
</view>
<view>
<view class="flex filter-item justify-center align-center" @click="openFilter">
筛选
<view class="sprite-icon icon-filter"></view>
</view>
......@@ -123,7 +126,7 @@
</scroll-view>
</template>
</PublishPopup>
<order-screen ref="test" @onConfirm="回调" />
<order-screen ref="openFilter" @onConfirm="openFilterConfirm" />
</view>
</template>
......@@ -234,6 +237,14 @@ export default {
delete this.searchObj.statusList
this.search()
},
openFilter() {
this.$refs.openFilter.open()
},
openFilterConfirm(val) {
console.log(val)
this.searchObj = val
this.search()
},
tabChange(index) {
this.activeIndex = index
if (!this.normalOrderNoList.length) {
......@@ -507,10 +518,20 @@ export default {
.tab-container {
display: flex;
justify-content: start;
// justify-content: start;
padding: toRpx(0) toRpx(48) toRpx(24);
height: toRpx(80);
margin-bottom: toRpx(20);
.filter-item {
width: toRpx(164);
height: toRpx(72);
border-radius: toRpx(16);
background: #fff;
border: toRpx(2) solid #ffffffcc;
color: #333333;
font-size: toRpx(28);
font-weight: 400;
}
}
.tab-item {
......
......@@ -4,7 +4,7 @@
<view class="package-item" v-for="(item, index) in list" :key="index">
<view class="header">
<view class="header-left">
<view class="sprite-icon icon-blue-delete"></view>
<view class="sprite-icon icon-blue-delete" @click="deleteGoods(index)"></view>
<view class="name">{{item.packageGoods.packageAlias||item.packageGoods.packageName}}</view>
<view class="control">
<view class="minus" @click="decreaseNumber(item)">-</view>
......@@ -135,6 +135,11 @@ export default {
this.$set(this.list[index].packageGoods.goodsList[ind], 'sellPrice', value)
this.$emit('changeTotalPrice')
},
// 删除商品
deleteGoods(index) {
this.list.splice(index, 1)
this.$emit('changeTotalPrice')
}
}
}
</script>
......
......@@ -32,7 +32,7 @@ const FORM_LIST = [
// key: 'staffName',
required: true,
showText: 'merchantName'
},
}
],
[
{
......@@ -87,7 +87,7 @@ const FORM_LIST = [
label: '选择车型',
value: 'carBrand',
type: 'select',
key: 'carInfo',
key: 'carInfo'
},
{
label: '车架号(VIN)',
......@@ -116,7 +116,7 @@ const FORM_LIST = [
name: '否'
}
]
},
}
],
[
{
......@@ -208,7 +208,7 @@ const FORM_LIST = [
name: '4s店收款',
disabled: false
}
],
]
},
{
label: '支付方式',
......@@ -231,7 +231,7 @@ const FORM_LIST = [
// }
],
addHtml: 'otherPay'
},
}
],
[
{
......@@ -241,7 +241,271 @@ const FORM_LIST = [
type: 'textarea',
placeholder: '请输入 (100字以内)',
class: 'cell-break'
}
]
]
const DEFEAT_FORM_LIST = [
[
{
label: '战败日期',
value: 'todayShow',
type: 'select',
// key: 'staffName',
required: true
},
{
label: '销售顾问/录单员',
value: 'employeeName',
type: 'select',
// key: 'staffName',
required: true,
showText: 'shopMerchantName'
},
{
label: '交付专员',
value: 'deliveryEmployeeName',
type: 'select',
required: true,
// key: 'staffName',
hidden: true,
showText: 'shopMerchantName'
},
{
label: '二级流量方',
value: 'subShopMerchantName',
type: 'select',
required: true,
// key: 'subMerchantName',
hidden: true
},
{
label: '转化人员',
value: 'sellerName',
type: 'select',
// key: 'staffName',
required: true,
showText: 'merchantName'
}
],
[
{
label: '车主姓名',
value: 'customerName',
maxlength: '16',
type: 'input',
required: true
},
{
label: '客户来源',
value: 'salesType',
type: 'radio',
current: '0',
radioList: [
{
value: '0',
name: '售前'
},
{
value: '1',
name: '售后'
}
],
required: true,
hidden: true
},
{
label: '性别',
value: 'customerSex',
type: 'radio',
current: '1',
radioList: [
{
value: '1',
name: '男'
},
{
value: '2',
name: '女'
}
]
},
{
label: '手机号',
value: 'customerPhone',
maxlength: '11',
type: 'input',
required: true,
inputType: 'number'
},
{
label: '选择车型',
value: 'carBrand',
type: 'select',
key: 'carInfo'
},
{
label: '车架号(VIN)',
value: 'standNo',
maxlength: '17',
type: 'input'
},
{
label: '车牌号',
value: 'plateNumber',
maxlength: '8',
type: 'input'
},
{
label: '是否体验',
value: 'experienceFlag',
type: 'radio',
current: 'Y',
required: true,
radioList: [
{
value: 'Y',
name: '是'
},
{
value: 'N',
name: '否'
}
]
}
],
[
{
label: '精品礼券',
value: 'couponInfo',
type: 'select',
key: 'name',
required: true,
hidden: true
},
{
label: '请选择产品',
onlyLabel: true,
required: true,
noBorder: true
},
{
label: '前挡',
value: 'frontGear',
type: 'select',
key: 'name',
labellIcon: 'front-gear',
addHtml: 'frontGear',
hidden: true
},
{
label: '前侧窗玻璃',
value: 'frontWindow',
type: 'select',
key: 'name',
labellIcon: 'front-window',
addHtml: 'frontWindow',
hidden: true
},
{
label: '后侧窗玻璃',
value: 'rearGear',
type: 'select',
key: 'name',
labellIcon: 'rear-gear',
addHtml: 'rearGear',
hidden: true
},
{
label: '后档',
value: 'rearWindow',
type: 'select',
key: 'name',
labellIcon: 'rear-window',
addHtml: 'rearWindow',
hidden: true
},
{
label: '天窗',
value: 'sunRoof',
type: 'select',
key: 'name',
labellIcon: 'sun-roof',
addHtml: 'sunRoof',
hidden: true
},
{
label: '套餐',
value: 'package',
type: 'select',
key: 'name',
addHtml: 'package',
hidden: true
},
{
label: '其他精品',
value: 'skuGoods',
type: 'select',
key: 'name',
addHtml: 'skuGoods',
hidden: true
},
{
label: '收款方式',
value: 'payeeType',
type: 'radio',
key: 'name',
current: '1',
radioList: [
{
value: '0',
name: '嘀加收款',
disabled: false
},
{
value: '1',
name: '4s店收款',
disabled: false
}
],
hidden: true
},
{
label: '支付方式',
value: 'selectPayType',
type: 'radio',
key: 'name',
current: '0',
radioList: [
// {
// value: '3',
// name: 'POS机'
// },
// {
// value: '6',
// name: '对公转账'
// },
// {
// value: '7',
// name: '其他收款'
// }
],
addHtml: 'otherPay',
hidden: true
}
],
[
{
label: '车主拒升理由',
value: 'refusalReason',
maxlength: '100',
type: 'textarea',
placeholder: '请输入 (100字以内)',
class: 'cell-break',
required: true,
addHtml: 'reasonList',
noBorder: true
}
]
]
......@@ -315,40 +579,40 @@ const popupTypeEnum = {
},
5: {
key: 'couponInfo',
list: '',
list: ''
},
6: {
key: 'frontGear',
list: '',
list: ''
},
7: {
key: 'frontWindow',
list: '',
list: ''
},
8: {
key: 'rearGear',
list: '',
list: ''
},
9: {
key: 'rearWindow',
list: '',
list: ''
},
10: {
key: 'sunRoof',
list: '',
list: ''
},
11: {
key: 'package',
list: '',
list: ''
},
12: {
key: 'skuGoods',
list: '',
list: ''
},
13: {
key: 'todayShow',
list: ''
}
}
export {
FORM_LIST,
popupTypeEnum,
payTypeList
}
\ No newline at end of file
export { FORM_LIST, popupTypeEnum, payTypeList, DEFEAT_FORM_LIST }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!