diff --git a/main/.env.development b/main/.env.development index 8fed54f..5413cd1 100644 --- a/main/.env.development +++ b/main/.env.development @@ -13,8 +13,8 @@ VITE_APP_SUB_GSR = '//localhost:9530/new-digital-agriculture-screen/' VITE_APP_BASE_API = '/apis' VITE_APP_UPLOAD_API = '/uploadApis' # 阿里云接口地址 -VITE_APP_BASE_URL = 'http://47.109.205.240:8080' -VITE_APP_UPLOAD_URL = 'http://47.109.205.240:9300' +# VITE_APP_BASE_URL = 'http://47.109.205.240:8080' +# VITE_APP_UPLOAD_URL = 'http://47.109.205.240:9300' # 内网接口地址 -# VITE_APP_BASE_URL = 'http://192.168.18.99:8080' -# VITE_APP_UPLOAD_URL = 'http://192.168.18.99:8080' +VITE_APP_BASE_URL = 'http://192.168.18.99:8080' +VITE_APP_UPLOAD_URL = 'http://192.168.18.99:8080' diff --git a/sub-government-affairs-service/.env.development b/sub-government-affairs-service/.env.development index 2d00994..7a86ca4 100644 --- a/sub-government-affairs-service/.env.development +++ b/sub-government-affairs-service/.env.development @@ -9,9 +9,9 @@ VITE_APP_BASE_API = '/apis' VITE_APP_UPLOAD_API = '/uploadApis' # 阿里云接口地址 -VITE_APP_BASE_URL = 'http://47.109.205.240:8080' -VITE_APP_UPLOAD_URL = 'http://47.109.205.240:9300' +# VITE_APP_BASE_URL = 'http://47.109.205.240:8080' +# VITE_APP_UPLOAD_URL = 'http://47.109.205.240:9300' # 内网接口地址 -# VITE_APP_BASE_URL = 'http://192.168.18.99:8080' -# VITE_APP_UPLOAD_URL = 'http://192.168.18.99:8080' +VITE_APP_BASE_URL = 'http://192.168.18.99:8080' +VITE_APP_UPLOAD_URL = 'http://192.168.18.99:8080' diff --git a/sub-government-affairs-service/src/apis/businessEntity/index.js b/sub-government-affairs-service/src/apis/businessEntity/index.js index b06ea45..2dd4827 100644 --- a/sub-government-affairs-service/src/apis/businessEntity/index.js +++ b/sub-government-affairs-service/src/apis/businessEntity/index.js @@ -2,10 +2,10 @@ import request from '@/utils/axios'; /** - * 生产经营主体农户 - 列表查询 + * 农户 - 列表查询 * @param {Object} params 查询参数 */ -export function getFarmerList(params) { +export function fetchFarmerList(params) { return request({ url: '/product-business/business/farmer/businessPage', method: 'get', @@ -14,7 +14,7 @@ export function getFarmerList(params) { } /** - * 生产经营主体农户 - 新增 + * 农户 - 新增 * @param {Object} data 经营主体数据 */ export function saveFarmerList(data) { @@ -26,7 +26,7 @@ export function saveFarmerList(data) { } /** - * 生产经营主体农户 - 编辑 + * 农户 - 编辑 * @param {Object} data 经营主体数据 */ export function editFarmer(data) { @@ -37,7 +37,7 @@ export function editFarmer(data) { }); } /** - * 生产经营主体农户 - 审批 + * 农户 - 审批 * @param {Object} data 审批数据 */ export function approveFarmer(data) { @@ -48,10 +48,10 @@ export function approveFarmer(data) { }); } /** - * 生产经营主体农户 - 详情查询 + * 农户 - 详情查询 * @param {string} id 主体ID */ -export function fetchBusinessSubjectInfo(id) { +export function fetchFarmerById(id) { return request({ url: `/product-business/business/farmer/businessInfo/${id}`, method: 'get', @@ -59,14 +59,18 @@ export function fetchBusinessSubjectInfo(id) { } /** - * 生产经营主体 - 批量删除 - * @param {string} businessId 主体ID + * 删除农户接口(严格匹配文档规范) + * @param {string|string[]} ids - 单个ID或ID数组(会自动转为逗号分隔字符串) + * @returns {Promise} 请求Promise */ -export function deleteBusinessSubject(businessId) { +export function deleteFarmers(ids) { + // 统一参数格式:数组转逗号分隔字符串,非数组直接使用 + const idStr = Array.isArray(ids) ? ids.join(',') : ids; + return request({ - url: '/product-business/business/deleteBusiness', + url: '/product-business/business/farmer/deleteBusiness', method: 'delete', - params: { businessId }, + params: { ids: idStr }, }); } @@ -93,3 +97,11 @@ export function fetchBusinessCheckList(params) { params, }); } +// 农企合作社-列表查询/product-business/business/enter/businessPage +export function getEnterList(params) { + return request({ + url: '/product-business/business/enter/businessPage', + method: 'get', + params, + }); +} diff --git a/sub-government-affairs-service/src/components/AreaSelect/index.vue b/sub-government-affairs-service/src/components/AreaSelect/index.vue index 3af5001..ddc8b67 100644 --- a/sub-government-affairs-service/src/components/AreaSelect/index.vue +++ b/sub-government-affairs-service/src/components/AreaSelect/index.vue @@ -1,7 +1,15 @@ @@ -11,6 +19,10 @@ import request from '@/utils/axios'; import { useUserStore } from '@/store/modules/user'; const props = defineProps({ + inheritAttrs: { + type: Boolean, + default: false, + }, modelValue: { type: Array, default: () => [], diff --git a/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabBasicInfo.vue b/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabBasicInfo.vue new file mode 100644 index 0000000..16a8a03 --- /dev/null +++ b/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabBasicInfo.vue @@ -0,0 +1,87 @@ + + + diff --git a/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabBusinessInfo.vue b/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabBusinessInfo.vue new file mode 100644 index 0000000..5145b67 --- /dev/null +++ b/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabBusinessInfo.vue @@ -0,0 +1,139 @@ + + + + + diff --git a/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabCreditEvaluation.vue b/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabCreditEvaluation.vue new file mode 100644 index 0000000..7730f73 --- /dev/null +++ b/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabCreditEvaluation.vue @@ -0,0 +1,54 @@ + + + diff --git a/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabRegister.vue b/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabRegister.vue new file mode 100644 index 0000000..6004d24 --- /dev/null +++ b/sub-government-affairs-service/src/views/productOperateMain/coOp/components/TabRegister.vue @@ -0,0 +1,81 @@ + + + diff --git a/sub-government-affairs-service/src/views/productOperateMain/coOp/index.vue b/sub-government-affairs-service/src/views/productOperateMain/coOp/index.vue index b9cdb79..a6266a5 100644 --- a/sub-government-affairs-service/src/views/productOperateMain/coOp/index.vue +++ b/sub-government-affairs-service/src/views/productOperateMain/coOp/index.vue @@ -1,9 +1,353 @@ - + diff --git a/sub-government-affairs-service/src/views/productOperateMain/individual/index.vue b/sub-government-affairs-service/src/views/productOperateMain/individual/index.vue index 0c30127..d16cf14 100644 --- a/sub-government-affairs-service/src/views/productOperateMain/individual/index.vue +++ b/sub-government-affairs-service/src/views/productOperateMain/individual/index.vue @@ -30,31 +30,31 @@ - - + + - + - + - - + + - + + + - - - + @@ -62,36 +62,39 @@ - + + + - + - + - + + - + - - - - - - + + + + + +