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 = { ...@@ -311,11 +311,19 @@ module.exports = {
/** /**
* 保存日报 * 保存日报
*/ */
saveStaffDailyReport (data) { saveStaffDailyReport(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.staff.daily.report.save', method: 'dj.api.smartcarlife.staff.daily.report.save',
projectName: 'boutique', projectName: 'boutique',
...data ...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 { ...@@ -271,7 +271,7 @@ export default {
if (await this.inspectionOfProhibitionBill()) return if (await this.inspectionOfProhibitionBill()) return
this.$emit('jump', 'CreateOrder', this.orderCardDetail) this.$emit('jump', 'CreateOrder', this.orderCardDetail)
} else { } else {
this.$emit('jump', 'DefeatOrder') this.$emit('jump', 'DefeatOrder', this.orderCardDetail)
} }
}, },
cancelSelection() { cancelSelection() {
......
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
frontWindow: true, frontWindow: true,
rearGear: true, rearGear: true,
rearWindow: true, rearWindow: true,
sunRoof: true sunRoof: true,
}, },
} }
}, },
...@@ -346,14 +346,19 @@ export default { ...@@ -346,14 +346,19 @@ export default {
// 计算所有产品的总价 // 计算所有产品的总价
changeTotalPrice() { changeTotalPrice() {
let total = 0 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] const productList = this.orderObj[slotName]
if (Array.isArray(productList) && productList.length > 0) { if (Array.isArray(productList) && productList.length > 0) {
// 计算每个产品的价格 * 数量,并累加到总价 // 计算每个产品的价格 * 数量,并累加到总价
productList.forEach(item => { productList.forEach(item => {
if (item.goods && item.goods.sellPrice && item.goods.number) { if (item.goods && item.goods.sellPrice && item.goods.number) {
total += parseFloat(item.goods.sellPrice) * parseInt(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 @@ ...@@ -177,6 +177,7 @@
import utils from '@/utils/utils' import utils from '@/utils/utils'
import order_mixins from '../../order_mixins.js' import order_mixins from '../../order_mixins.js'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { index } from '@/env'
export default { export default {
name: 'OrderDetail', name: 'OrderDetail',
props: { props: {
...@@ -255,7 +256,7 @@ export default { ...@@ -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({ let result = await api.getfilmRollNoByGoods({
upgradeGoodsId: e.upgradeGoodsId, upgradeGoodsId: e.upgradeGoodsId,
yqMerchantId: data?.sellerMerchantId, yqMerchantId: data?.sellerMerchantId,
...@@ -426,9 +427,9 @@ export default { ...@@ -426,9 +427,9 @@ export default {
if (configInfo) { if (configInfo) {
return resolve(configInfo) return resolve(configInfo)
} else { } else {
wx.request({ uni.request({
// url: `${domain}${path}?method=${method}`, // 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, // data,
method: 'GET', method: 'GET',
// header, // header,
......
...@@ -4,12 +4,15 @@ ...@@ -4,12 +4,15 @@
<input class="uni-input" v-model="keyword" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" /> <input class="uni-input" v-model="keyword" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
</view> </view>
<view class="tab-container"> <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)"> <view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text>{{ item.tabName }}</text> <text>{{ item.tabName }}</text>
<text class="num">{{ item.num }}</text> <text class="num">{{ item.num }}</text>
</view> </view>
<view> </view>
<view class="flex filter-item justify-center align-center" @click="openFilter">
筛选 筛选
<view class="sprite-icon icon-filter"></view> <view class="sprite-icon icon-filter"></view>
</view> </view>
...@@ -123,7 +126,7 @@ ...@@ -123,7 +126,7 @@
</scroll-view> </scroll-view>
</template> </template>
</PublishPopup> </PublishPopup>
<order-screen ref="test" @onConfirm="回调" /> <order-screen ref="openFilter" @onConfirm="openFilterConfirm" />
</view> </view>
</template> </template>
...@@ -234,6 +237,14 @@ export default { ...@@ -234,6 +237,14 @@ export default {
delete this.searchObj.statusList delete this.searchObj.statusList
this.search() this.search()
}, },
openFilter() {
this.$refs.openFilter.open()
},
openFilterConfirm(val) {
console.log(val)
this.searchObj = val
this.search()
},
tabChange(index) { tabChange(index) {
this.activeIndex = index this.activeIndex = index
if (!this.normalOrderNoList.length) { if (!this.normalOrderNoList.length) {
...@@ -507,10 +518,20 @@ export default { ...@@ -507,10 +518,20 @@ export default {
.tab-container { .tab-container {
display: flex; display: flex;
justify-content: start; // justify-content: start;
padding: toRpx(0) toRpx(48) toRpx(24); padding: toRpx(0) toRpx(48) toRpx(24);
height: toRpx(80); height: toRpx(80);
margin-bottom: toRpx(20); 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 { .tab-item {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="package-item" v-for="(item, index) in list" :key="index"> <view class="package-item" v-for="(item, index) in list" :key="index">
<view class="header"> <view class="header">
<view class="header-left"> <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="name">{{item.packageGoods.packageAlias||item.packageGoods.packageName}}</view>
<view class="control"> <view class="control">
<view class="minus" @click="decreaseNumber(item)">-</view> <view class="minus" @click="decreaseNumber(item)">-</view>
...@@ -135,6 +135,11 @@ export default { ...@@ -135,6 +135,11 @@ export default {
this.$set(this.list[index].packageGoods.goodsList[ind], 'sellPrice', value) this.$set(this.list[index].packageGoods.goodsList[ind], 'sellPrice', value)
this.$emit('changeTotalPrice') this.$emit('changeTotalPrice')
}, },
// 删除商品
deleteGoods(index) {
this.list.splice(index, 1)
this.$emit('changeTotalPrice')
}
} }
} }
</script> </script>
......
...@@ -32,7 +32,7 @@ const FORM_LIST = [ ...@@ -32,7 +32,7 @@ const FORM_LIST = [
// key: 'staffName', // key: 'staffName',
required: true, required: true,
showText: 'merchantName' showText: 'merchantName'
}, }
], ],
[ [
{ {
...@@ -87,7 +87,7 @@ const FORM_LIST = [ ...@@ -87,7 +87,7 @@ const FORM_LIST = [
label: '选择车型', label: '选择车型',
value: 'carBrand', value: 'carBrand',
type: 'select', type: 'select',
key: 'carInfo', key: 'carInfo'
}, },
{ {
label: '车架号(VIN)', label: '车架号(VIN)',
...@@ -116,7 +116,7 @@ const FORM_LIST = [ ...@@ -116,7 +116,7 @@ const FORM_LIST = [
name: '否' name: '否'
} }
] ]
}, }
], ],
[ [
{ {
...@@ -208,7 +208,7 @@ const FORM_LIST = [ ...@@ -208,7 +208,7 @@ const FORM_LIST = [
name: '4s店收款', name: '4s店收款',
disabled: false disabled: false
} }
], ]
}, },
{ {
label: '支付方式', label: '支付方式',
...@@ -231,7 +231,7 @@ const FORM_LIST = [ ...@@ -231,7 +231,7 @@ const FORM_LIST = [
// } // }
], ],
addHtml: 'otherPay' addHtml: 'otherPay'
}, }
], ],
[ [
{ {
...@@ -241,7 +241,271 @@ const FORM_LIST = [ ...@@ -241,7 +241,271 @@ const FORM_LIST = [
type: 'textarea', type: 'textarea',
placeholder: '请输入 (100字以内)', placeholder: '请输入 (100字以内)',
class: 'cell-break' 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 = { ...@@ -315,40 +579,40 @@ const popupTypeEnum = {
}, },
5: { 5: {
key: 'couponInfo', key: 'couponInfo',
list: '', list: ''
}, },
6: { 6: {
key: 'frontGear', key: 'frontGear',
list: '', list: ''
}, },
7: { 7: {
key: 'frontWindow', key: 'frontWindow',
list: '', list: ''
}, },
8: { 8: {
key: 'rearGear', key: 'rearGear',
list: '', list: ''
}, },
9: { 9: {
key: 'rearWindow', key: 'rearWindow',
list: '', list: ''
}, },
10: { 10: {
key: 'sunRoof', key: 'sunRoof',
list: '', list: ''
}, },
11: { 11: {
key: 'package', key: 'package',
list: '', list: ''
}, },
12: { 12: {
key: 'skuGoods', key: 'skuGoods',
list: '', list: ''
}, },
13: {
key: 'todayShow',
list: ''
}
} }
export {
FORM_LIST,
popupTypeEnum,
payTypeList
}
\ No newline at end of file \ 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!