2025021
This commit is contained in:
parent
5c6feb29ae
commit
6f322f80eb
|
|
@ -71,6 +71,17 @@ private IServiceCateService serviceCateService;
|
||||||
util.exportExcel(response, list, "服务内容数据");
|
util.exportExcel(response, list, "服务内容数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取服务内容详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('system:ServiceGoods:query')")
|
||||||
|
@GetMapping(value = "/selectServiceCateList")
|
||||||
|
public AjaxResult selectServiceCateList()
|
||||||
|
{
|
||||||
|
return success(serviceCateService.selectServiceCateList(new ServiceCate()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取服务内容详细信息
|
* 获取服务内容详细信息
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,13 @@ export function getServiceGoods(id) {
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 查询服务内容详细
|
||||||
|
export function selectServiceCateList(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/ServiceGoods/selectServiceCateList',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 新增服务内容
|
// 新增服务内容
|
||||||
export function addServiceGoods(data) {
|
export function addServiceGoods(data) {
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,35 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="价格">
|
||||||
|
<el-input v-model="queryParams.minPrice" class="number-input" type="number" placeholder="最小值" clearable style="width: 120px;" />
|
||||||
|
-
|
||||||
|
<el-input v-model="queryParams.maxPrice" class="number-input" type="number" placeholder="最大值" clearable style="width: 120px;" />
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="分类" prop="status">
|
||||||
|
<el-select v-model="queryParams.status" placeholder="请选择分类" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="cate in serviceCateList"
|
||||||
|
:key="cate.id"
|
||||||
|
:label="cate.title"
|
||||||
|
:value="cate.id"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="创建时间">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="daterangeCreatedAt"
|
||||||
|
style="width: 240px"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
type="daterange"
|
||||||
|
range-separator="-"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
></el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
|
@ -300,7 +329,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listServiceGoods, getServiceGoods, delServiceGoods, addServiceGoods, updateServiceGoods ,changefenleiStatus} from "@/api/system/ServiceGoods"
|
import { listServiceGoods, getServiceGoods, delServiceGoods, addServiceGoods, updateServiceGoods ,changefenleiStatus,selectServiceCateList} from "@/api/system/ServiceGoods"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ServiceGoods",
|
name: "ServiceGoods",
|
||||||
|
|
@ -318,6 +347,9 @@ export default {
|
||||||
// 显示搜索条件
|
// 显示搜索条件
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
// 总条数
|
// 总条数
|
||||||
|
|
||||||
|
serviceCateList: [],
|
||||||
|
|
||||||
total: 0,
|
total: 0,
|
||||||
// 服务内容表格数据
|
// 服务内容表格数据
|
||||||
ServiceGoodsList: [],
|
ServiceGoodsList: [],
|
||||||
|
|
@ -329,11 +361,18 @@ export default {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
type: '1',
|
type: '1',
|
||||||
|
minPrice: null,
|
||||||
|
maxPrice: null,
|
||||||
|
createdStart: null,
|
||||||
|
createdEnd: null,
|
||||||
|
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
title: null,
|
title: null,
|
||||||
subTitle: null,
|
subTitle: null,
|
||||||
status: null,
|
status: null,
|
||||||
project: null,
|
project: null,
|
||||||
|
createdStart: null,
|
||||||
|
createdEnd: null,
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
|
|
@ -362,10 +401,12 @@ export default {
|
||||||
editField: '',
|
editField: '',
|
||||||
editFieldLabel: '',
|
editFieldLabel: '',
|
||||||
editRow: null,
|
editRow: null,
|
||||||
|
daterangeCreatedAt: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
this.getserviceCateList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询服务内容列表 */
|
/** 查询服务内容列表 */
|
||||||
|
|
@ -418,14 +459,25 @@ export default {
|
||||||
},
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
|
// 处理创建时间
|
||||||
|
if (this.daterangeCreatedAt && this.daterangeCreatedAt.length === 2) {
|
||||||
|
this.queryParams.createdStart = this.daterangeCreatedAt[0];
|
||||||
|
this.queryParams.createdEnd = this.daterangeCreatedAt[1];
|
||||||
|
} else {
|
||||||
|
this.queryParams.createdStart = null;
|
||||||
|
this.queryParams.createdEnd = null;
|
||||||
|
}
|
||||||
this.queryParams.pageNum = 1
|
this.queryParams.pageNum = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
|
this.daterangeCreatedAt = [];
|
||||||
this.resetForm("queryForm")
|
this.resetForm("queryForm")
|
||||||
this.handleQuery()
|
this.handleQuery()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.ids = selection.map(item => item.id)
|
this.ids = selection.map(item => item.id)
|
||||||
|
|
@ -490,6 +542,11 @@ export default {
|
||||||
this.$modal.msgSuccess("删除成功")
|
this.$modal.msgSuccess("删除成功")
|
||||||
}).catch(() => {})
|
}).catch(() => {})
|
||||||
},
|
},
|
||||||
|
getserviceCateList(){
|
||||||
|
selectServiceCateList().then(response => {
|
||||||
|
this.serviceCateList = response.data
|
||||||
|
})
|
||||||
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('system/ServiceGoods/export', {
|
this.download('system/ServiceGoods/export', {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue