浏览代码

网点

master
chenchaod 19 小时前
父节点
当前提交
49a28059cf
共有 2 个文件被更改,包括 48 次插入38 次删除
  1. 10
    0
      src/views/system/agency/index.vue
  2. 38
    38
      src/views/system/branch/index.vue

+ 10
- 0
src/views/system/agency/index.vue 查看文件

@@ -528,6 +528,16 @@ const field = ref({
rows: 5
}
},
{
prop: 'createName',
label: '创建人',
width: '100px',
},
{
prop: 'updateName',
label: '修改人',
width: '100px',
},
{
hide: true,
prop: "agencyModels",

+ 38
- 38
src/views/system/branch/index.vue 查看文件

@@ -158,7 +158,7 @@
</el-form>


<div style="text-align: left">
<!-- <div style="text-align: left">
<div class="as-bold">办理点信息</div>
<el-button type="success" icon="Plus" @click="addBtn" style="margin-bottom: 10px;">添加办理点信息</el-button>
<div style="padding: 10px 50px;text-align: left;font-weight: 700;"
@@ -190,7 +190,7 @@
</el-form-item>
<el-button class="op-btn" type="danger" @click="deleteHandle(index)">删除</el-button>
</el-form>
</div>
</div> -->
</template>

<template #footer>
@@ -260,7 +260,7 @@
<el-table :data="handlePointTableData" v-loading="handlePointTableLoading" border>
<el-table-column type="index" label="序号" width="60"/>
<el-table-column prop="name" label="名称" width="150"/>
<el-table-column prop="address" label="地址" width="200"/>
<el-table-column prop="address" label="地址"/>
<el-table-column prop="longitude" label="经度" width="120"/>
<el-table-column prop="latitude" label="纬度" width="120"/>
<el-table-column prop="radial" label="半径距离(米)" width="120"/>
@@ -436,7 +436,7 @@ const initItem = {
tel: '',
orderSource: 'WEB',
agencyId: '',
locationModels: []
// locationModels: []
}
const addForm: any = ref(initItem)
const formLoding = ref(false)
@@ -559,20 +559,20 @@ const getItmeLiet = () => {
})
}
// 添加
const addBtn = () => {
addForm.value.locationModels.push({
address: '',
latitude: '',
longitude: '',
name: '',
radial: '',
type: '1',
})
}
// const addBtn = () => {
// addForm.value.locationModels.push({
// address: '',
// latitude: '',
// longitude: '',
// name: '',
// radial: '',
// type: '1',
// })
// }
// 删除
const deleteHandle = (index) => {
addForm.value.locationModels.splice(index, 1)
}
// const deleteHandle = (index) => {
// addForm.value.locationModels.splice(index, 1)
// }

// 搜索按钮
function btnSearch() {
@@ -970,14 +970,14 @@ function submitClick() {
params.latitude = Number(params.latitude)
params.longitude = Number(params.longitude)
params.radial = Number(params.radial)
if (!(params.locationModels === '' || params.locationModels === undefined || params.locationModels === null)) {
let locationModels = params.locationModels
locationModels.forEach(item => {
item.latitude = Number(item.latitude)
item.longitude = Number(item.longitude)
item.radial = Number(item.radial)
})
}
// if (!(params.locationModels === '' || params.locationModels === undefined || params.locationModels === null)) {
// let locationModels = params.locationModels
// locationModels.forEach(item => {
// item.latitude = Number(item.latitude)
// item.longitude = Number(item.longitude)
// item.radial = Number(item.radial)
// })
// }
BaseService.postN(api, params).then((res: any) => {
if (res && res.code === 0) {
ElMessage.success('操作成功')
@@ -1153,19 +1153,19 @@ function handleEdit(row: IObject) {
orderSource: 'WEB',
serviceHallId: row.serviceHallId
}
BaseService.postN('/userw/serviceHall/queryLocations', params).then((res: any) => {
if (res && res.code === 0) {
// ElMessage.success('操作成功')
// getList()
// cancel()
res.data.forEach(item => {
item.type = item.type.toString()
})
addForm.value.locationModels = res.data
} else {
ElMessage.error(res.message)
}
})
// BaseService.postN('/userw/serviceHall/queryLocations', params).then((res: any) => {
// if (res && res.code === 0) {
// // ElMessage.success('操作成功')
// // getList()
// // cancel()
// res.data.forEach(item => {
// item.type = item.type.toString()
// })
// addForm.value.locationModels = res.data
// } else {
// ElMessage.error(res.message)
// }
// })
if (row.superServiceHallId) {
isFirstDot.value = false
agencyIdC.value = row.agencyId

正在加载...
取消
保存