|
@@ -77,10 +77,10 @@
|
|
|
|
|
|
<!-- 姓名输入后弹出 -->
|
|
|
<van-popup v-model="nameShowA" :style="{ height: '100%', width: '100%', }">
|
|
|
- <div style="display: flex; justify-content: space-between;">
|
|
|
+ <form action="" style="display: flex; justify-content: space-between;">
|
|
|
<van-search ref="searchNameRef" style="width: 100%;" @search="searchCrux" v-model="searchKey"
|
|
|
placeholder="请输入搜索关键词" />
|
|
|
- </div>
|
|
|
+ </form>
|
|
|
<div style="height: calc(100vh - 105px); overflow-y: auto; padding: 0 20px;">
|
|
|
<van-cell-group class="vanPopup" @click="onGroup(item)" v-for="(item, index) in searchNameList"
|
|
|
:key="index" inset>
|
|
@@ -94,10 +94,10 @@
|
|
|
</van-popup>
|
|
|
<!-- 手机号输入后弹出 -->
|
|
|
<van-popup v-model="nameShowB" :style="{ height: '100%', width: '100%', }">
|
|
|
- <div style="display: flex; justify-content: space-between;">
|
|
|
+ <form action="" style="display: flex; justify-content: space-between;">
|
|
|
<van-search ref="searchPhoneRef" style="width: 100%;" @search="searchCruxPhone" v-model="searchKeyPhone"
|
|
|
placeholder="请输入手机后四位" />
|
|
|
- </div>
|
|
|
+ </form>
|
|
|
<div style="height: calc(100vh - 105px); overflow-y: auto; padding: 0 20px;">
|
|
|
<van-cell-group class="vanPopup" @click="onGroupPhone(item)"
|
|
|
v-for="(item, index) in searchNameListPhone" :key="index" inset>
|
|
@@ -306,11 +306,9 @@ export default {
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- if (getPrinters.data.length != []) {
|
|
|
- this.getPrintersList = getPrinters.data.map((item) => {
|
|
|
- return { printerName: item.printerName, id: item.id }
|
|
|
- })
|
|
|
- }
|
|
|
+ this.getPrintersList = getPrinters.data.map((item) => {
|
|
|
+ return { printerName: item.printerName, id: item.id }
|
|
|
+ })
|
|
|
|
|
|
if (this.getPrintersList.length === 1) {
|
|
|
this.save(this.getPrintersList[0].id)
|
|
@@ -319,8 +317,6 @@ export default {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
} else {
|
|
|
Toast('系统异常')
|
|
|
}
|