Commit 7a965554 by 胡悦

提交

1 parent 0d7c0b1a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:54:28 * @Date: 2024-04-07 14:54:28
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-10 09:43:41 * @LastEditTime: 2024-04-10 10:02:02
--> -->
<template> <template>
<view class="information-entry"> <view class="information-entry">
...@@ -95,8 +95,8 @@ ...@@ -95,8 +95,8 @@
confirmBtnText="是" confirmBtnText="是"
></MessageBox> ></MessageBox>
<MessageBox <MessageBox
ref="carBoxVisible"
position="bottom" position="bottom"
v-if="carBoxVisible"
:isFooter="false" :isFooter="false"
title="请选择车型" title="请选择车型"
@cancel="carBoxVisible = false" @cancel="carBoxVisible = false"
...@@ -104,8 +104,8 @@ ...@@ -104,8 +104,8 @@
<view class="select-box"> <view class="select-box">
<view <view
class="select-item" class="select-item"
:class="{ checked: selectId == item.id }" :class="{ checked: formData.carModel == item.name }"
@click="handleSelect(item, 'carBoxVisible')" @click="handleSelect(item,'carBoxVisible')"
v-for="(item, index) in carlist" v-for="(item, index) in carlist"
:key="index" :key="index"
> >
...@@ -113,10 +113,9 @@ ...@@ -113,10 +113,9 @@
</view> </view>
</view> </view>
</MessageBox> </MessageBox>
<template v-if="employeeBoxVisible">
<MessageBox <MessageBox
ref="employeeBoxVisible"
position="bottom" position="bottom"
:popupH="480"
:isFooter="false" :isFooter="false"
title="请选择销售" title="请选择销售"
@cancel="employeeBoxVisible = false" @cancel="employeeBoxVisible = false"
...@@ -124,8 +123,8 @@ ...@@ -124,8 +123,8 @@
<view class="select-box"> <view class="select-box">
<view <view
class="select-item" class="select-item"
:class="{ checked: selectId == item.id }" :class="{ checked: formData.salesUuid == item.uuid }"
@click="handleSelect(item, 'employeeBoxVisible')" @click="handleSelect(item,'employeeBoxVisible')"
v-for="(item, index) in employeeList" v-for="(item, index) in employeeList"
:key="index" :key="index"
> >
...@@ -133,7 +132,6 @@ ...@@ -133,7 +132,6 @@
</view> </view>
</view> </view>
</MessageBox> </MessageBox>
</template>
</view> </view>
</template> </template>
<script> <script>
...@@ -279,6 +277,8 @@ export default { ...@@ -279,6 +277,8 @@ export default {
uni.reLaunch({ uni.reLaunch({
url: "/pages/home/home", url: "/pages/home/home",
}); });
this.$store.dispatch("clearCustomerInfo");
this.infoList = INFO_LIST.map(item => delete item.imgUrl)
} }
} catch (error) { } catch (error) {
console.log(error); console.log(error);
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
}, },
handleSelect(item, popkey) { handleSelect(item, popkey) {
console.log(item); console.log(item);
this[popkey] = false; this.$refs[popkey].close()
if (popkey == "employeeBoxVisible") { if (popkey == "employeeBoxVisible") {
this.formData.salesUuid = item.uuid; this.formData.salesUuid = item.uuid;
this.formData.staffName = item.staffName; this.formData.staffName = item.staffName;
...@@ -311,7 +311,7 @@ export default { ...@@ -311,7 +311,7 @@ export default {
this.errorTip = false; this.errorTip = false;
}, },
showPopup(e) { showPopup(e) {
this[e] = true; this.$refs[e].open()
}, },
blur(popkey) { blur(popkey) {
console.log(popkey); console.log(popkey);
...@@ -503,4 +503,8 @@ export default { ...@@ -503,4 +503,8 @@ export default {
} }
} }
} }
// .preview-img {
// width: 100%;
// height: 100%;
// }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!