Merge branch 'dev' of http://47.109.205.240:3000/Web/daimp-front into dev
This commit is contained in:
commit
40169c27fe
19
sub-government-affairs-service/components.d.ts
vendored
Normal file
19
sub-government-affairs-service/components.d.ts
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/* eslint-disable */
|
||||||
|
/* prettier-ignore */
|
||||||
|
// @ts-nocheck
|
||||||
|
// Generated by unplugin-vue-components
|
||||||
|
// Read more: https://github.com/vuejs/core/pull/3399
|
||||||
|
export {}
|
||||||
|
|
||||||
|
declare module 'vue' {
|
||||||
|
export interface GlobalComponents {
|
||||||
|
AreaCascader: typeof import('./src/components/AreaCascader/index.vue')['default']
|
||||||
|
AreaSelect: typeof import('./src/components/AreaSelect/index.vue')['default']
|
||||||
|
CodeDialog: typeof import('./src/components/code-dialog/index.vue')['default']
|
||||||
|
FileUploader: typeof import('./src/components/FileUploader/index.vue')['default']
|
||||||
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
|
TableComponent: typeof import('./src/components/tableComponent.vue')['default']
|
||||||
|
UrlSelect: typeof import('./src/components/UrlSelect/index.vue')['default']
|
||||||
|
}
|
||||||
|
}
|
12388
sub-government-affairs-service/package-lock.json
generated
Normal file
12388
sub-government-affairs-service/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -34,6 +34,7 @@
|
|||||||
"screenfull": "^6.0.2",
|
"screenfull": "^6.0.2",
|
||||||
"splitpanes": "^4.0.3",
|
"splitpanes": "^4.0.3",
|
||||||
"vue": "^3.3.11",
|
"vue": "^3.3.11",
|
||||||
|
"vue-demi": "^0.14.10",
|
||||||
"vue-router": "^4.2.5",
|
"vue-router": "^4.2.5",
|
||||||
"vue-tianditu": "^2.7.6"
|
"vue-tianditu": "^2.7.6"
|
||||||
},
|
},
|
||||||
|
@ -29,3 +29,28 @@ export function delSeedUseRegulatory(ids) {
|
|||||||
export function getRowDetails({ url, id }) {
|
export function getRowDetails({ url, id }) {
|
||||||
return request(`${url}${id}`);
|
return request(`${url}${id}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 肥料使用监管-列表 */
|
||||||
|
export function getFertilizeUseRegulatoryRecords(params) {
|
||||||
|
return request('/inputGoods/supervise/fertilize/page', {
|
||||||
|
params,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/* 肥料使用监管-新增 */
|
||||||
|
export function fertilizeUseRegulatorySave(data) {
|
||||||
|
return request('/inputGoods/supervise/fertilize/save', {
|
||||||
|
method: 'POST',
|
||||||
|
data,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/* 肥料使用监管-编辑 */
|
||||||
|
export function editFertilizeUseRegulatory(data) {
|
||||||
|
return request('/inputGoods/supervise/fertilize/edit', {
|
||||||
|
data,
|
||||||
|
method: 'PUT',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/* 肥料使用监管-删除 */
|
||||||
|
export function delFertilizeUseRegulatory(ids) {
|
||||||
|
return request(`/inputGoods/supervise/fertilize/delete/${ids}`);
|
||||||
|
}
|
||||||
|
@ -37,8 +37,8 @@
|
|||||||
>
|
>
|
||||||
<!-- 自定义-操作 -->
|
<!-- 自定义-操作 -->
|
||||||
<template #action="slotProps">
|
<template #action="slotProps">
|
||||||
<el-button type="primary" @click="seeDetails(slotProps.row)">详情</el-button>
|
<!-- <el-button type="primary" @click="seeDetails(slotProps.row)">详情</el-button> -->
|
||||||
<el-button type="primary" @click="handleEdit(slotProps.row)">编辑</el-button>
|
<!-- <el-button type="primary" @click="handleEdit(slotProps.row)">编辑</el-button> -->
|
||||||
<el-button @click="handleDelete(slotProps.row)">删除</el-button>
|
<el-button @click="handleDelete(slotProps.row)">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</tableComponent>
|
</tableComponent>
|
||||||
|
@ -6,14 +6,14 @@
|
|||||||
<div class="search-bar">
|
<div class="search-bar">
|
||||||
<div class="search-bar-left">
|
<div class="search-bar-left">
|
||||||
<el-form ref="searchForm" :inline="true" :model="formInline" class="demo-form-inline" :label-width="'auto'">
|
<el-form ref="searchForm" :inline="true" :model="formInline" class="demo-form-inline" :label-width="'auto'">
|
||||||
<el-form-item label="关键字" prop="seedName">
|
<el-form-item label="关键字" prop="name">
|
||||||
<el-input v-model="formInline.seedName" placeholder="请输入姓名" clearable />
|
<el-input v-model="formInline.name" placeholder="请输入姓名" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="分类" prop="seedTypeId">
|
<!-- <el-form-item label="分类" prop="seedTypeId">
|
||||||
<el-select v-model="formInline.seedTypeId" placeholder="请选择" clearable @change="seedTypeChange">
|
<el-select v-model="formInline.seedTypeId" placeholder="请选择" clearable @change="seedTypeChange">
|
||||||
<el-option v-for="item in seedTypeList" :key="item.id" :value="item.id" :label="item.dataName" />
|
<el-option v-for="item in seedTypeList" :key="item.id" :value="item.id" :label="item.dataName" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item label="">
|
<el-form-item label="">
|
||||||
<el-button type="primary" icon="Search" @click="onSubmit">查询</el-button>
|
<el-button type="primary" icon="Search" @click="onSubmit">查询</el-button>
|
||||||
<el-button icon="Refresh" @click="resetForm">重置</el-button>
|
<el-button icon="Refresh" @click="resetForm">重置</el-button>
|
||||||
@ -34,7 +34,7 @@
|
|||||||
:total="tableTotal"
|
:total="tableTotal"
|
||||||
:current-page="formInline.current"
|
:current-page="formInline.current"
|
||||||
:page-size="formInline.size"
|
:page-size="formInline.size"
|
||||||
:show-sort="true"
|
:show-sort="false"
|
||||||
@page-change="handlePaginationChange"
|
@page-change="handlePaginationChange"
|
||||||
>
|
>
|
||||||
<!-- 自定义-操作 -->
|
<!-- 自定义-操作 -->
|
||||||
@ -110,13 +110,20 @@ import { ref, reactive, computed, onMounted, onBeforeUnmount, nextTick } from 'v
|
|||||||
import tableComponent from '@/components/tableComponent.vue';
|
import tableComponent from '@/components/tableComponent.vue';
|
||||||
import { ElMessage } from 'element-plus';
|
import { ElMessage } from 'element-plus';
|
||||||
import inputSuppliesApi from '@/apis/inputSuppliesApi';
|
import inputSuppliesApi from '@/apis/inputSuppliesApi';
|
||||||
const { getSeedList, seedSave, delSeed, getMaterailTypes } = inputSuppliesApi;
|
const { getMaterailTypes } = inputSuppliesApi;
|
||||||
|
import {
|
||||||
|
getFertilizeUseRegulatoryRecords,
|
||||||
|
fertilizeUseRegulatorySave,
|
||||||
|
editFertilizeUseRegulatory,
|
||||||
|
delFertilizeUseRegulatory,
|
||||||
|
getRowDetails,
|
||||||
|
} from '@/apis/inputSuppliesApi/supervisionOfInputs';
|
||||||
import { useApp } from '@/hooks';
|
import { useApp } from '@/hooks';
|
||||||
const app = useApp();
|
const app = useApp();
|
||||||
|
|
||||||
// 查询条件
|
// 查询条件
|
||||||
const formInline = reactive({
|
const formInline = reactive({
|
||||||
seedName: '',
|
name: '',
|
||||||
seedTypeId: '',
|
seedTypeId: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
@ -136,14 +143,17 @@ const selectedIds = ref([]);
|
|||||||
const tableLoading = ref(false);
|
const tableLoading = ref(false);
|
||||||
const tableTotal = ref(0);
|
const tableTotal = ref(0);
|
||||||
const columns = ref([
|
const columns = ref([
|
||||||
{ prop: 'id', label: '编码' },
|
{ prop: 'regionName', label: '所属行政区域' },
|
||||||
{ prop: 'seedName', label: '种子种苗名称' },
|
{ prop: 'regionCode', label: '行政区域编号' },
|
||||||
{ prop: 'varietyName', label: '品种名称' },
|
{ prop: 'landName', label: '地块名称' },
|
||||||
{ prop: 'brand', label: '品牌' },
|
{ prop: 'landId', label: '地块编号' },
|
||||||
{ prop: 'manufacturer', label: '生产厂家' },
|
{ prop: 'gridName', label: '所属网格' },
|
||||||
{ prop: 'classifyName', label: '分类' },
|
{ prop: 'gridId', label: '网格编号' },
|
||||||
{ prop: 'productUnit', label: '产品规格' },
|
{ prop: 'name', label: '负责人姓名' },
|
||||||
{ prop: 'action', label: '操作', slotName: 'action', width: 230, fixed: 'right' },
|
{ prop: 'phone', label: '联系方式' },
|
||||||
|
{ prop: 'fertilizeId', label: '化肥编号' },
|
||||||
|
{ prop: 'fertilizeName', label: '化肥名称' },
|
||||||
|
// { prop: 'action', label: '操作', slotName: 'action', width: 230, fixed: 'right' },
|
||||||
]);
|
]);
|
||||||
const handlePaginationChange = ({ page, pageSize }) => {
|
const handlePaginationChange = ({ page, pageSize }) => {
|
||||||
formInline.current = page;
|
formInline.current = page;
|
||||||
@ -153,7 +163,7 @@ const handlePaginationChange = ({ page, pageSize }) => {
|
|||||||
const loadData = async () => {
|
const loadData = async () => {
|
||||||
tableLoading.value = true;
|
tableLoading.value = true;
|
||||||
try {
|
try {
|
||||||
let response = await getSeedList(formInline);
|
let response = await getFertilizeUseRegulatoryRecords(formInline);
|
||||||
tableLoading.value = false;
|
tableLoading.value = false;
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
tableData.value = response.data.records;
|
tableData.value = response.data.records;
|
||||||
@ -281,7 +291,7 @@ const handleDelete = (row) => {
|
|||||||
};
|
};
|
||||||
const deleteGoods = async (ids) => {
|
const deleteGoods = async (ids) => {
|
||||||
try {
|
try {
|
||||||
let res = await delSeed(ids);
|
let res = await delFertilizeUseRegulatory(ids);
|
||||||
return res;
|
return res;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return false;
|
return false;
|
||||||
@ -298,9 +308,9 @@ const onSaveCategory = () => {
|
|||||||
console.log(param);
|
console.log(param);
|
||||||
let response;
|
let response;
|
||||||
if (dialogTitle.value == '新增') {
|
if (dialogTitle.value == '新增') {
|
||||||
response = await seedSave(param);
|
response = await fertilizeUseRegulatorySave(param);
|
||||||
} else {
|
} else {
|
||||||
response = await seedSave(param);
|
response = await editFertilizeUseRegulatory(param);
|
||||||
}
|
}
|
||||||
if (response.code == 200) {
|
if (response.code == 200) {
|
||||||
cancelDialog();
|
cancelDialog();
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<div class="search-bar">
|
<div class="search-bar">
|
||||||
<div class="search-bar-left">
|
<div class="search-bar-left">
|
||||||
<el-form ref="searchForm" :inline="true" :model="formInline" class="demo-form-inline" :label-width="'auto'">
|
<el-form ref="searchForm" :inline="true" :model="formInline" class="demo-form-inline" :label-width="'auto'">
|
||||||
<el-form-item label="关键字" prop="seedName">
|
<el-form-item label="关键字" prop="name">
|
||||||
<el-input v-model="formInline.seedName" placeholder="请输入" clearable />
|
<el-input v-model="formInline.name" placeholder="请输入" clearable />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="分类" prop="seedTypeId">
|
<!-- <el-form-item label="分类" prop="seedTypeId">
|
||||||
<el-select v-model="formInline.seedTypeId" placeholder="请选择" clearable @change="seedTypeChange">
|
<el-select v-model="formInline.seedTypeId" placeholder="请选择" clearable @change="seedTypeChange">
|
||||||
@ -119,7 +119,7 @@ const app = useApp();
|
|||||||
|
|
||||||
// 查询条件
|
// 查询条件
|
||||||
const formInline = reactive({
|
const formInline = reactive({
|
||||||
seedName: '',
|
name: '',
|
||||||
seedTypeId: '',
|
seedTypeId: '',
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
@ -139,14 +139,17 @@ const selectedIds = ref([]);
|
|||||||
const tableLoading = ref(false);
|
const tableLoading = ref(false);
|
||||||
const tableTotal = ref(0);
|
const tableTotal = ref(0);
|
||||||
const columns = ref([
|
const columns = ref([
|
||||||
{ prop: 'landName', label: '地块名称' },
|
|
||||||
{ prop: 'regionName', label: '所属行政区域' },
|
{ prop: 'regionName', label: '所属行政区域' },
|
||||||
|
{ prop: 'regionCode', label: '行政区域编号' },
|
||||||
|
{ prop: 'landName', label: '地块名称' },
|
||||||
|
{ prop: 'landId', label: '地块编号' },
|
||||||
{ prop: 'gridName', label: '所属网格' },
|
{ prop: 'gridName', label: '所属网格' },
|
||||||
|
{ prop: 'gridId', label: '网格编号' },
|
||||||
{ prop: 'name', label: '负责人姓名' },
|
{ prop: 'name', label: '负责人姓名' },
|
||||||
{ prop: 'phone', label: '联系方式' },
|
{ prop: 'phone', label: '联系方式' },
|
||||||
{ prop: 'provenanceId', label: '种子编号' },
|
{ prop: 'provenanceId', label: '种子编号' },
|
||||||
{ prop: 'provenanceName', label: '种子名称' },
|
{ prop: 'provenanceName', label: '种子名称' },
|
||||||
{ prop: 'action', label: '操作', slotName: 'action', width: 230, fixed: 'right' },
|
// { prop: 'action', label: '操作', slotName: 'action', width: 230, fixed: 'right' },
|
||||||
]);
|
]);
|
||||||
const handlePaginationChange = ({ page, pageSize }) => {
|
const handlePaginationChange = ({ page, pageSize }) => {
|
||||||
formInline.current = page;
|
formInline.current = page;
|
||||||
@ -220,10 +223,11 @@ const dialogFormRules = ref({
|
|||||||
|
|
||||||
// 新增操作
|
// 新增操作
|
||||||
const addItem = async () => {
|
const addItem = async () => {
|
||||||
restDialogForm();
|
ElMessage.success('点击新增!');
|
||||||
dialogTitle.value = '新增';
|
// restDialogForm();
|
||||||
formDisabled.value = false;
|
// dialogTitle.value = '新增';
|
||||||
dialogFormVisible.value = true;
|
// formDisabled.value = false;
|
||||||
|
// dialogFormVisible.value = true;
|
||||||
};
|
};
|
||||||
// 查看详情
|
// 查看详情
|
||||||
const seeDetails = async (row) => {
|
const seeDetails = async (row) => {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user