Commit ea4b3257 by 李伟康

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

2 parents 96085441 a3650d02
...@@ -164,12 +164,20 @@ module.exports = { ...@@ -164,12 +164,20 @@ module.exports = {
...data ...data
}) })
}, },
/**补录订单 */ /**补录订单数 */
waitinputorder(data) { waitinputorder(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.weapp.waitinputorder.count', method: 'dj.api.smartcarlife.weapp.waitinputorder.count',
projectName: 'boutique', projectName: 'boutique',
...{ ...data, inputStatus: 0 } ...{ ...data, inputStatus: 0 }
}) })
},
/**交易流水号 */
transactionSerialNumber(data) {
return http.post({
method: 'dj.api.smartcarlife.weapp.waitinputorder.page',
projectName: 'boutique',
...data
})
} }
} }
...@@ -36,3 +36,28 @@ ...@@ -36,3 +36,28 @@
color: #1a1a1a; color: #1a1a1a;
} }
} }
.flex {
display: flex;
}
.justify-between {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.align-center {
align-items: center;
}
.justify-center {
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
}
.flex-wrap {
-ms-flex-wrap: wrap;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
}

2.54 MB | W: | H:

2.54 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="item.type === 'input'"> <template v-if="item.type === 'input'">
<view class="input-box"> <view class="input-box">
<input class="input-value" v-model="formData[item.value]" :placeholder="item.placeholder || '请输入'" <input class="input-value" v-model="formData[item.value]" :type="item.inputType || 'text'" @blur="handleBlur($event, item)" :placeholder="item.placeholder || '请输入'"
:maxlength="item.maxlength || 500" /> :maxlength="item.maxlength || 500" />
<view v-if="item.valueIcon" :class="['sprite-icon', `icon-${item.valueIcon}`]" <view v-if="item.valueIcon" :class="['sprite-icon', `icon-${item.valueIcon}`]"
@click="onValueClick(item)"></view> @click="onValueClick(item)"></view>
...@@ -27,11 +27,11 @@ ...@@ -27,11 +27,11 @@
<!-- 下拉选择 --> <!-- 下拉选择 -->
<template v-else-if="item.type === 'select'"> <template v-else-if="item.type === 'select'">
<view class="value"> <view class="value">
<template v-if="formData[item.value] && formData[item.value][item.key]"> <template v-if="formData[item.value] && formData[item.value]">
<template v-if="item.showText && userInfo && userInfo[item.showText]"> <template v-if="item.showText && userInfo && userInfo[item.showText]">
{{ userInfo[item.showText] }}<text>|</text> {{ userInfo[item.showText] }}<text>|</text>
</template> </template>
{{ formData[item.value][item.key] }} {{ formData[item.value] }}
</template> </template>
<template v-else> <template v-else>
<span class="placeholder">请选择</span> <span class="placeholder">请选择</span>
...@@ -109,6 +109,9 @@ export default { ...@@ -109,6 +109,9 @@ export default {
}, },
onValueClick(item) { onValueClick(item) {
this.$emit('handleValue', item) this.$emit('handleValue', item)
},
handleBlur(e, item) {
this.$emit('inputBlur', e, item)
} }
} }
}; };
...@@ -205,6 +208,7 @@ export default { ...@@ -205,6 +208,7 @@ export default {
align-items: center; align-items: center;
justify-content: flex-end; justify-content: flex-end;
height: 100%; height: 100%;
width: 100%;
.sprite-icon { .sprite-icon {
margin-left: toRpx(8); margin-left: toRpx(8);
...@@ -214,6 +218,7 @@ export default { ...@@ -214,6 +218,7 @@ export default {
.input-value { .input-value {
height: 100%; height: 100%;
text-align: right; text-align: right;
width: 100%;
} }
.input-bottom { .input-bottom {
......
<!--针对弹窗穿透滚动,统一封装的popup-->
<template>
<page-meta :page-style="'overflow:' + (show ? 'hidden' : 'visible')"></page-meta>
<uni-popup :class="popupClass" ref="publishPopup" :type="type" @change="change" :is-mask-click="isMaskClick" :safe-area="safeArea" :showClose="showClose">
<!-- 顶部标题栏插槽 -->
<slot name="header">
<view class="popup-top-box flex justify-between align-center">
<text></text>
<text>{{ title }}</text>
<uni-icons @click="closePopup" class="icon-close" type="closeempty"></uni-icons>
</view>
</slot>
<!-- 主要内容插槽 -->
<slot name="content"></slot>
<!-- 底部插槽 -->
<slot name="footer"></slot>
</uni-popup>
</template>
<script>
export default {
name: 'PublishPopup',
props: {
type: {
type: String,
default: 'bottom'
},
isMaskClick: {
type: Boolean,
default: true
},
safeArea: {
type: Boolean,
default: true
},
popupClass: {
type: String,
default: ''
},
showClose: {
type: Boolean,
default: true
},
title: {
type: String,
default: ''
}
},
data() {
return {
show: false
}
},
methods: {
open() {
this.$refs.publishPopup.open()
},
change(e) {
this.show = e.show
},
closePopup() {
this.$refs.publishPopup.close()
this.$emit('close')
}
}
}
</script>
<style scoped lang="scss">
.popup-top-box {
color: #333333;
font-size: toRpx(36);
font-weight: 500;
text-align: center;
padding: toRpx(32) toRpx(52);
}
.justify-between {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
}
.align-center {
align-items: center;
}
.uniui-closeempty {
color: #1a1a1a;
font-size: toRpx(24);
font-weight: 600;
}
</style>
...@@ -179,7 +179,6 @@ export default { ...@@ -179,7 +179,6 @@ export default {
padding: toRpx(8); padding: toRpx(8);
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 500; font-weight: 500;
font-family: 'HarmonyOSSansSC';
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(1) solid transparent; border: toRpx(1) solid transparent;
} }
...@@ -208,14 +207,12 @@ export default { ...@@ -208,14 +207,12 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999ea8; color: #999ea8;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
} }
.order-value { .order-value {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
.split { .split {
margin: 0 toRpx(6); margin: 0 toRpx(6);
} }
...@@ -233,14 +230,12 @@ export default { ...@@ -233,14 +230,12 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999ea8; color: #999ea8;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
} }
.payType-value { .payType-value {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
} }
} }
...@@ -254,7 +249,6 @@ export default { ...@@ -254,7 +249,6 @@ export default {
margin-right: toRpx(24); margin-right: toRpx(24);
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
color: #999ea8; color: #999ea8;
} }
...@@ -264,7 +258,6 @@ export default { ...@@ -264,7 +258,6 @@ export default {
color: #4673ff; color: #4673ff;
font-size: toRpx(36); font-size: toRpx(36);
font-weight: 700; font-weight: 700;
font-family: 'D-DIN-PRO';
} }
} }
...@@ -278,7 +271,6 @@ export default { ...@@ -278,7 +271,6 @@ export default {
margin-right: toRpx(8); margin-right: toRpx(8);
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 700; font-weight: 700;
font-family: 'D-DIN-PRO';
} }
.construction-staff { .construction-staff {
...@@ -290,14 +282,12 @@ export default { ...@@ -290,14 +282,12 @@ export default {
margin-right: toRpx(24); margin-right: toRpx(24);
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
color: #999ea8; color: #999ea8;
} }
.staff-value { .staff-value {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
} }
} }
...@@ -307,13 +297,12 @@ export default { ...@@ -307,13 +297,12 @@ export default {
opacity: 1; opacity: 1;
border-bottom: toRpx(2) solid #f7f7f6; border-bottom: toRpx(2) solid #f7f7f6;
background: #f5f7fa; background: #f5f7fa;
margin-top: toRpx(20); margin: toRpx(20) 0;
padding: toRpx(20) toRpx(32); padding: toRpx(20) toRpx(32);
.goods { .goods {
color: #333333; color: #333333;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSans';
padding-top: toRpx(12); padding-top: toRpx(12);
.goods-name { .goods-name {
.point { .point {
...@@ -331,7 +320,6 @@ export default { ...@@ -331,7 +320,6 @@ export default {
color: #4673ff; color: #4673ff;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
font-family: 'HarmonyOSSansSC';
text-align: right; text-align: right;
margin-top: toRpx(12); margin-top: toRpx(12);
} }
......
...@@ -2,34 +2,34 @@ const FORM_LIST = [ ...@@ -2,34 +2,34 @@ const FORM_LIST = [
[ [
{ {
label: '销售顾问', label: '销售顾问',
value: 'userInfo', value: 'employeeName',
type: 'select', type: 'select',
key: 'staffName', // key: 'staffName',
required: true, required: true,
showText: 'shopMerchantName' showText: 'shopMerchantName'
}, },
{ {
label: '交付专员', label: '交付专员',
value: 'deliveryUserInfo', value: 'deliveryEmployeeName',
type: 'select', type: 'select',
required: true, required: true,
key: 'staffName', // key: 'staffName',
hidden: true, hidden: true,
showText: 'shopMerchantName' showText: 'shopMerchantName'
}, },
{ {
label: '二级流量方', label: '二级流量方',
value: 'subShopMerchantInfo', value: 'subShopMerchantName',
type: 'select', type: 'select',
required: true, required: true,
key: 'subMerchantName', // key: 'subMerchantName',
hidden: true hidden: true
}, },
{ {
label: '转化人员', label: '转化人员',
value: 'sellerUserInfo', value: 'sellerName',
type: 'select', type: 'select',
key: 'staffName', // key: 'staffName',
required: true, required: true,
showText: 'merchantName' showText: 'merchantName'
}, },
...@@ -37,7 +37,7 @@ const FORM_LIST = [ ...@@ -37,7 +37,7 @@ const FORM_LIST = [
[ [
{ {
label: '车主姓名', label: '车主姓名',
value: 'customer', value: 'customerName',
maxlength: '16', maxlength: '16',
type: 'input', type: 'input',
required: true required: true
...@@ -80,7 +80,8 @@ const FORM_LIST = [ ...@@ -80,7 +80,8 @@ const FORM_LIST = [
value: 'customerPhone', value: 'customerPhone',
maxlength: '11', maxlength: '11',
type: 'input', type: 'input',
required: true required: true,
inputType: 'number'
}, },
{ {
label: '选择车型', label: '选择车型',
...@@ -180,7 +181,7 @@ const FORM_LIST = [ ...@@ -180,7 +181,7 @@ const FORM_LIST = [
addHtml: 'package' addHtml: 'package'
}, },
{ {
label: '精品礼券', label: '其他精品',
value: 'couponInfo', value: 'couponInfo',
type: 'select', type: 'select',
key: 'name', key: 'name',
...@@ -271,11 +272,46 @@ const payType = [ ...@@ -271,11 +272,46 @@ const payType = [
] ]
const popupTypeEnum = { const popupTypeEnum = {
0: 'userInfo', 0: {
1: 'deliveryUserInfo', key: 'employeeName',
2: 'subShopMerchantInfo', list: 'employeeList',
3: 'sellerUserInfo', targetIdKey: 'userId',
4: 'carBrand' targetNameKey: 'employeeName',
sourceIdKey: 'uuid',
sourceNameKey: 'staffName'
},
1: {
key: 'deliveryEmployeeName',
list: 'employeeList',
targetIdKey: 'deliveryUserId',
targetNameKey: 'deliveryEmployeeName',
sourceIdKey: 'uuid',
sourceNameKey: 'staffName'
},
2: {
key: 'subShopMerchantName',
list: 'subShopMerchantList',
targetIdKey: 'subShopMerchantId',
targetNameKey: 'subShopMerchantName',
sourceIdKey: 'subMerchantId',
sourceNameKey: 'subMerchantName'
},
3: {
key: 'sellerName',
list: '',
targetIdKey: 'sellerUserId',
targetNameKey: 'sellerName',
sourceIdKey: 'uuid',
sourceNameKey: 'staffName'
},
4: {
key: 'carBrand',
list: ''
},
5: {
key: 'couponInfo',
list: '',
}
} }
export { export {
......
<template> <template>
<view class="detail-box"> <view class="detail-box">
<view class="nav-bar"> <view class="nav-bar">
<view <view class="back" @click="backPage">
class="back" <uni-icons type="left" :size="20" color="#000"></uni-icons>
@click="backPage"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view> </view>
<view class="title">展业工具</view> <view class="title">展业工具</view>
</view> </view>
...@@ -17,28 +10,22 @@ ...@@ -17,28 +10,22 @@
<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 <image class="banner" src="../../../assets/images/common/tool_banner.png" mode="scaleToFill" />
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></template>
</template>
</view> </view>
</view> </view>
<view class="detail-right"> <view class="detail-right">
<component :is="toolComponentName" /> <component :is="toolComponentName" @jump="jump" :selected-trade-data="selectedTradeData" />
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import Entrance from '@/components/Entrance.vue'; import Entrance from '@/components/Entrance.vue'
import CreateOrder from './components/CreateOrder.vue' import CreateOrder from './components/CreateOrder.vue'
import DailyReport from './components/DailyReport.vue' import DailyReport from './components/DailyReport.vue'
import DefeatOrder from './components/DefeatOrder.vue' import DefeatOrder from './components/DefeatOrder.vue'
...@@ -51,22 +38,34 @@ export default { ...@@ -51,22 +38,34 @@ export default {
DefeatOrder, DefeatOrder,
OrderManagement OrderManagement
}, },
data () { data() {
return { return {
toolComponentName: '' toolComponentName: '',
selectedTradeData: null
} }
}, },
onLoad (options) { onLoad(options) {
if (options.componentName) this.toolComponentName = options.componentName if (options.componentName) this.toolComponentName = options.componentName
}, },
methods: { methods: {
entranceClick (item) { entranceClick(item) {
console.log(item) console.log(item)
this.toolComponentName = item.name this.toolComponentName = item.name
if (item.name !== 'CreateOrder') {
this.selectedTradeData = null
}
}, },
backPage () { backPage() {
uni.navigateBack(); uni.navigateBack()
}, },
// name:跳转组件名,val:跳转参数
jump(name, val) {
this.toolComponentName = name
console.log(this.toolComponentName)
if (val) {
this.selectedTradeData = val
}
}
} }
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!