Commit 7a965554 by 胡悦

提交

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