fix: 茅台预约,自测问题修复及功能优化。

This commit is contained in:
tianyongbao
2024-12-10 11:29:58 +08:00
parent 6e05995751
commit cfb41b8a48

View File

@@ -23,24 +23,21 @@
<div class="content-con" v-loading="loading">
<el-table v-loading="loading" :data="iuserList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="手机号" align="center" prop="mobile" />
<!-- <el-table-column label="用户id" align="center" prop="userId" /> -->
<el-table-column label="预约项目code" align="center" prop="itemCode" />
<el-table-column label="默认预约门店" align="center" prop="ishopId" />
<el-table-column label="省份" align="center" prop="provinceName" />
<el-table-column label="城市" align="center" prop="cityName" />
<el-table-column label="手机号" width="120" align="center" prop="mobile" />
<el-table-column label="姓名" width="100" align="center" prop="userName" />
<el-table-column label="预约商品" align="center" prop="itemName" />
<el-table-column label="默认预约门店" align="center" prop="shopName" />
<el-table-column label="预约类型" align="center" prop="shopType">
<template #default="scope">
<dict-tag :options="reservation_type" :value="scope.row.shopType" />
</template>
</el-table-column>
<el-table-column label="随机时间预约" align="center" prop="randomMinute">
<el-table-column label="随机时间预约" width="120" align="center" prop="randomMinute">
<template #default="scope">
<dict-tag :options="open_close" :value="scope.row.randomMinute" />
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="到期时间" align="center" prop="expireTime" width="180"> </el-table-column>
<el-table-column label="到期时间" align="center" prop="expireTime" width="160"> </el-table-column>
<el-table-column label="操作" align="center" width="400" class-name="small-padding fixed-width">
<template v-slot="scope">
<div class="ctrl-btn d-flex">
@@ -227,9 +224,9 @@ const districtList = ref([])
const ishopList = ref([])
const operateList = ref([
{ id: 'reservation', icon: 'View', name: '预约', title: '预约', hasPermi: ['invest:iuser:query'] },
{ id: 'travel', icon: 'View', name: '旅行', title: '旅行', hasPermi: ['invest:iuser:query'] },
{ id: 'token', icon: 'View', name: '刷新token', title: '刷新token', hasPermi: ['invest:iuser:query'] },
{ id: 'reservation', icon: 'View', name: '预约', title: '预约', hasPermi: ['invest:iuser:edit'] },
{ id: 'travel', icon: 'View', name: '旅行', title: '旅行', hasPermi: ['invest:iuser:edit'] },
{ id: 'token', icon: 'View', name: '刷新token', title: '刷新token', hasPermi: ['invest:iuser:edit'] },
{ id: 'edit', icon: 'Edit', name: '修改', title: '修改', hasPermi: ['invest:iuser:edit'] },
{ id: 'delete', icon: 'Delete', name: '删除', title: '删除', hasPermi: ['invest:iuser:remove'] }
])
@@ -396,9 +393,9 @@ function reset() {
address: null,
lat: null,
lng: null,
minute: null,
shopType: null,
randomMinute: null,
minute: 8,
shopType: '1',
randomMinute: '0',
pushPlusToken: null,
jsonResult: null,
remark: null,
@@ -441,14 +438,23 @@ function handleSelectionChange(selection) {
/** 修改按钮操作 */
function handleUpdate(row) {
reset()
getProvinceList()
getCityList()
getDistrictList()
getShopList()
const _mobile = row.mobile || ids.value
getIuser(_mobile).then((response) => {
form.value = response.data
queryDistrictParams.value.provinceName = form.value.provinceName
listCity(queryDistrictParams.value).then((response) => {
cityList.value = response.rows
queryDistrictParams.value.cityName = form.value.cityName
listDistrict(queryDistrictParams.value).then((response) => {
districtList.value = response.rows
queryShopParams.value.provinceName = form.value.provinceName
queryShopParams.value.cityName = form.value.cityName
queryShopParams.value.districtName = form.value.districtName
listIshop(queryShopParams.value).then((response) => {
ishopList.value = response.rows
})
})
})
open.value = true
itemSelect.value = []
if (form.value.itemCode.indexOf('@') == -1 && form.value.itemCode !== '') {
@@ -461,7 +467,7 @@ function handleUpdate(row) {
}
})
}
title.value = '修改账号管理'
title.value = '修改账号'
})
}