From 30fdd2100ce6c2f978f9f793504b2a6ed76b074f Mon Sep 17 00:00:00 2001 From: 13713575202 <1345916905@qq.com> Date: Sun, 27 Apr 2025 14:48:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E7=BB=8F=E8=90=A5?= =?UTF-8?q?=E4=B8=BB=E4=BD=93=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/apis/productOperateMain.js | 2 +- .../inputSuppliesManage/common/Attrs.vue | 2 +- .../landManage/component/plantPlan/index.vue | 1 + .../businessEntity/index.vue | 363 +++++----- .../views/productOperateMain/examine/list.vue | 645 +++++++++++------- .../productOperateMain/examine/record.vue | 230 +++---- .../views/productOperateMain/home/index.vue | 8 +- 7 files changed, 687 insertions(+), 564 deletions(-) diff --git a/sub-government-affairs-service/src/apis/productOperateMain.js b/sub-government-affairs-service/src/apis/productOperateMain.js index b217256..0eb6692 100644 --- a/sub-government-affairs-service/src/apis/productOperateMain.js +++ b/sub-government-affairs-service/src/apis/productOperateMain.js @@ -18,7 +18,7 @@ export function saveBuiness(data = {}) { export function editBuiness(data = {}) { return request('/product-business/business/businessEdit', { - method: 'POST', + method: 'PUT', data, }); } diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/common/Attrs.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/common/Attrs.vue index 592afa5..a8c2bca 100644 --- a/sub-government-affairs-service/src/views/inputSuppliesManage/common/Attrs.vue +++ b/sub-government-affairs-service/src/views/inputSuppliesManage/common/Attrs.vue @@ -13,7 +13,7 @@
- +
diff --git a/sub-government-affairs-service/src/views/landManage/component/plantPlan/index.vue b/sub-government-affairs-service/src/views/landManage/component/plantPlan/index.vue index d9f469c..b5d3164 100644 --- a/sub-government-affairs-service/src/views/landManage/component/plantPlan/index.vue +++ b/sub-government-affairs-service/src/views/landManage/component/plantPlan/index.vue @@ -110,6 +110,7 @@ const state = reactive({ searchSpan: 6, searchGutter: 80, searchMenuPosition: 'center', + selection: true, column: [ { label: '地块名', diff --git a/sub-government-affairs-service/src/views/productOperateMain/businessEntity/index.vue b/sub-government-affairs-service/src/views/productOperateMain/businessEntity/index.vue index 51c56f2..1cfe5a5 100644 --- a/sub-government-affairs-service/src/views/productOperateMain/businessEntity/index.vue +++ b/sub-government-affairs-service/src/views/productOperateMain/businessEntity/index.vue @@ -31,6 +31,13 @@ 批量删除 + + + diff --git a/sub-government-affairs-service/src/views/productOperateMain/examine/record.vue b/sub-government-affairs-service/src/views/productOperateMain/examine/record.vue index a40d632..00283e7 100644 --- a/sub-government-affairs-service/src/views/productOperateMain/examine/record.vue +++ b/sub-government-affairs-service/src/views/productOperateMain/examine/record.vue @@ -35,15 +35,6 @@ import { useApp } from '@/hooks'; import { CRUD_OPTIONS } from '@/config'; import { isEmpty, downloadFile } from '@/utils'; import { useUserStore } from '@/store/modules/user'; -import { - getOperationRecord, - saveOperationRecord, - editOperationRecord, - delOperationRecord, - exportOperationRecord, - getAddrCropByLand, - importOperationRecord, -} from '@/apis/land'; import { getBuinesCheckRecord, exportBusinessCheckRecord } from '@/apis/productOperateMain'; const { VITE_APP_BASE_API } = import.meta.env; @@ -51,11 +42,6 @@ const app = useApp(); const UserStore = useUserStore(); const crudRef = ref(null); -const jobTypeOptions = reactive([ - { label: '蔬菜', value: '0' }, - { label: '水果', value: '1' }, -]); - const bTypeOptions = reactive([ { label: '个体', value: '0' }, { label: '村集体', value: '1' }, @@ -74,27 +60,6 @@ const productTypeOptions = reactive([ { label: '水果', value: '1' }, ]); -let bTypeVal = ref('0'); -const baseColumn = reactive([]); -const individualBase = [ - { label: '身份证号', prop: 'crop' }, - { label: '联系电话', prop: 'crop' }, - { label: '联系地址', prop: 'crop' }, -]; - -const collectiveBase = [ - { label: '负责人', prop: 'crop' }, - { label: '负责人电话', prop: 'crop' }, - { label: '联系地址', prop: 'crop' }, -]; - -const enterpriseBase = [ - { label: '企业规模', prop: 'crop' }, - { label: '负责人', prop: 'crop' }, - { label: '负责人电话', prop: 'crop' }, - { label: '公司地址', prop: 'crop' }, -]; - const state = reactive({ loading: false, query: { @@ -111,6 +76,7 @@ const state = reactive({ searchSpan: 8, searchGutter: 100, searchMenuPosition: 'center', + menu: false, column: [ { label: '主体类型', @@ -152,91 +118,91 @@ const state = reactive({ search: true, rules: { required: true, message: '请输入', trigger: 'blur' }, }, - { - label: '经营产品种类', - prop: 'productType', - type: 'select', - width: '120px', - remote: false, - search: true, - props: { - label: 'dictLabel', - value: 'dictValue', - }, - dicUrl: `${VITE_APP_BASE_API}/system/dict/data/list`, - dicQuery: { - dictType: 'sys_business_product_type', - current: 1, - size: 100, - }, - dicHeaders: { - authorization: UserStore.token, - }, - dicFormatter: (res) => res.data.records ?? [], - rules: [{ required: true, message: '请选择', trigger: 'blur' }], - }, - { - label: '主要经营产品', - prop: 'primaryProduct', - width: '120px', - showOverflowTooltip: true, - search: false, - rules: { - required: true, - message: '请输入', - trigger: 'blur', - }, - }, - { - label: '统一信用代码/证件号码', - prop: 'idCard', - search: false, - width: '200px', - labelWidth: '160px', - rules: { required: true, message: '请输入', trigger: 'blur' }, - }, - { - label: '联系地址', - prop: 'addressCode', - type: 'cascader', - checkStrictly: false, - width: '200px', - ellipsis: true, - showOverflowTooltip: true, - addDisplay: true, - editDisplay: true, - search: true, - props: { - label: 'areaName', - value: 'areaCode', - children: 'areaChildVOS', - }, - dicUrl: `${VITE_APP_BASE_API}/system/area/region?areaCode=530000`, - dicHeaders: { - authorization: UserStore.token, - }, - dicFormatter: (res) => res.data ?? [], - rules: [{ required: true, message: '请选择', trigger: 'blur' }], - }, - { - label: '详细地址', - prop: 'detailAddress', - search: false, - ellipsis: true, - showOverflowTooltip: true, - rules: { required: true, message: '请输入', trigger: 'blur' }, - }, - { - label: '联系电话', - prop: 'phone', - width: '160px', - search: false, - rules: { - required: true, - message: '请输入', - trigger: 'blur', - }, - }, + // { + // label: '经营产品种类', + // prop: 'productType', + // type: 'select', + // width: '120px', + // remote: false, + // search: true, + // props: { + // label: 'dictLabel', + // value: 'dictValue', + // }, + // dicUrl: `${VITE_APP_BASE_API}/system/dict/data/list`, + // dicQuery: { + // dictType: 'sys_business_product_type', + // current: 1, + // size: 100, + // }, + // dicHeaders: { + // authorization: UserStore.token, + // }, + // dicFormatter: (res) => res.data.records ?? [], + // rules: [{ required: true, message: '请选择', trigger: 'blur' }], + // }, + // { + // label: '主要经营产品', + // prop: 'primaryProduct', + // width: '120px', + // showOverflowTooltip: true, + // search: false, + // rules: { + // required: true, + // message: '请输入', + // trigger: 'blur', + // }, + // }, + // { + // label: '统一信用代码/证件号码', + // prop: 'idCard', + // search: false, + // width: '200px', + // labelWidth: '160px', + // rules: { required: true, message: '请输入', trigger: 'blur' }, + // }, + // { + // label: '联系地址', + // prop: 'addressCode', + // type: 'cascader', + // checkStrictly: false, + // width: '200px', + // ellipsis: true, + // showOverflowTooltip: true, + // addDisplay: true, + // editDisplay: true, + // search: true, + // props: { + // label: 'areaName', + // value: 'areaCode', + // children: 'areaChildVOS', + // }, + // dicUrl: `${VITE_APP_BASE_API}/system/area/region?areaCode=530000`, + // dicHeaders: { + // authorization: UserStore.token, + // }, + // dicFormatter: (res) => res.data ?? [], + // rules: [{ required: true, message: '请选择', trigger: 'blur' }], + // }, + // { + // label: '详细地址', + // prop: 'detailAddress', + // search: false, + // ellipsis: true, + // showOverflowTooltip: true, + // rules: { required: true, message: '请输入', trigger: 'blur' }, + // }, + // { + // label: '联系电话', + // prop: 'phone', + // width: '160px', + // search: false, + // rules: { + // required: true, + // message: '请输入', + // trigger: 'blur', + // }, + // }, { label: '审核状态', prop: 'status', @@ -244,11 +210,7 @@ const state = reactive({ addDisplay: false, editDisplay: false, search: false, - rules: { - required: true, - message: '请输入', - trigger: 'blur', - }, + rules: { required: true, message: '请输入', trigger: 'blur' }, }, { label: '审核意见', @@ -264,7 +226,7 @@ const state = reactive({ trigger: 'blur', }, }, - { label: '创建时间', prop: 'createTime', addDisplay: false, editDisplay: false, search: false }, + { label: '创建时间', prop: 'createTime', width: '180px', addDisplay: false, editDisplay: false, search: false }, ], searchColumn: [ { label: '主体代码', prop: 'landName', search: true }, @@ -440,26 +402,20 @@ const state = reactive({ column: [ { label: '是否通过', - prop: 'isIllegal', + prop: 'status', span: 24, display: true, type: 'radio', editDisplay: true, addDisplay: false, dicData: [ - { - label: '是', - value: '1', - }, - { - label: '否', - value: '0', - }, + { label: '是', value: 1 }, + { label: '否', value: 0 }, ], }, { label: '审核意见', - prop: 'note', + prop: 'reviewSuggestion', type: 'textarea', span: 24, minRows: 3, // 设置最小行数 @@ -538,7 +494,7 @@ const onExport = () => { return; } state.loading = true; - const fileName = '网格明细表'; + const fileName = '经营主体审核历史列表'; exportBusinessCheckRecord(state.query) .then((res) => { if (res.status === 200) { diff --git a/sub-government-affairs-service/src/views/productOperateMain/home/index.vue b/sub-government-affairs-service/src/views/productOperateMain/home/index.vue index 352769f..e7601aa 100644 --- a/sub-government-affairs-service/src/views/productOperateMain/home/index.vue +++ b/sub-government-affairs-service/src/views/productOperateMain/home/index.vue @@ -1,12 +1,14 @@ + From b27bc1ba09d9e72515b76fac4043467c1206ffdd Mon Sep 17 00:00:00 2001 From: 13713575202 <1345916905@qq.com> Date: Sun, 27 Apr 2025 15:50:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BB=8F=E8=90=A5=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E4=B8=BB=E4=BD=93=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/router/modules/productOperateMain.js | 4 +- .../businessEntity/index.vue | 11 +- .../views/productOperateMain/examine/list.vue | 99 ++++--- .../productOperateMain/examine/record.vue | 277 ++++++------------ 4 files changed, 153 insertions(+), 238 deletions(-) diff --git a/sub-government-affairs-service/src/router/modules/productOperateMain.js b/sub-government-affairs-service/src/router/modules/productOperateMain.js index ef0591b..c3d447d 100644 --- a/sub-government-affairs-service/src/router/modules/productOperateMain.js +++ b/sub-government-affairs-service/src/router/modules/productOperateMain.js @@ -48,13 +48,13 @@ export default [ path: '/sub-government-affairs-service/examineList', component: () => import('@/views/productOperateMain/examine/list.vue'), name: 'examineList', - meta: { title: '主体审核管理', icon: 'Document' }, + meta: { title: '待审核', icon: 'Document' }, }, { path: '/sub-government-affairs-service/examineRecord', component: () => import('@/views/productOperateMain/examine/record.vue'), name: 'examineRecord', - meta: { title: '主体审核历史', icon: 'Document' }, + meta: { title: '审核历史', icon: 'Document' }, }, ], }, diff --git a/sub-government-affairs-service/src/views/productOperateMain/businessEntity/index.vue b/sub-government-affairs-service/src/views/productOperateMain/businessEntity/index.vue index 1cfe5a5..26ff9c4 100644 --- a/sub-government-affairs-service/src/views/productOperateMain/businessEntity/index.vue +++ b/sub-government-affairs-service/src/views/productOperateMain/businessEntity/index.vue @@ -39,7 +39,7 @@ @@ -87,7 +87,6 @@ let businessType = reactive({ label: '主体类型', prop: 'businessType', type: 'radio', - className: 'el-col-md-24', props: { label: 'dictLabel', value: 'dictValue', @@ -343,6 +342,7 @@ const state = reactive({ }, { ...businessType, + className: 'el-col-md-24', change: (val) => bTypeChange(val.value), }, { @@ -496,8 +496,8 @@ const state = reactive({ editDisabled: true, viewDisabled: true, dicData: [ - { label: '是', value: '1' }, - { label: '否', value: '0' }, + { label: '是', value: 1 }, + { label: '否', value: 0 }, ], }, { @@ -586,6 +586,9 @@ const loadData = (resetPage) => { if (res.code === 200) { const { current, size, total, records } = res.data; state.data = records; + state.data = state.data.map((m) => { + return { ...m, addressCode: [m.provinceCode, m.cityCode, m.countyCode, m.townCode] }; + }); pageData.value.total = res.data.total; } }) diff --git a/sub-government-affairs-service/src/views/productOperateMain/examine/list.vue b/sub-government-affairs-service/src/views/productOperateMain/examine/list.vue index 6f7774e..c2cd635 100644 --- a/sub-government-affairs-service/src/views/productOperateMain/examine/list.vue +++ b/sub-government-affairs-service/src/views/productOperateMain/examine/list.vue @@ -3,8 +3,8 @@ @@ -48,7 +48,7 @@