diff --git a/sub-government-affairs-service/auto-imports.d.ts b/sub-government-affairs-service/auto-imports.d.ts
deleted file mode 100644
index 369aad4..0000000
--- a/sub-government-affairs-service/auto-imports.d.ts
+++ /dev/null
@@ -1,75 +0,0 @@
-/* eslint-disable */
-/* prettier-ignore */
-// @ts-nocheck
-// noinspection JSUnusedGlobalSymbols
-// Generated by unplugin-auto-import
-export {}
-declare global {
- const EffectScope: typeof import('vue')['EffectScope']
- const computed: typeof import('vue')['computed']
- const createApp: typeof import('vue')['createApp']
- const customRef: typeof import('vue')['customRef']
- const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
- const defineComponent: typeof import('vue')['defineComponent']
- const effectScope: typeof import('vue')['effectScope']
- const getCurrentInstance: typeof import('vue')['getCurrentInstance']
- const getCurrentScope: typeof import('vue')['getCurrentScope']
- const h: typeof import('vue')['h']
- const inject: typeof import('vue')['inject']
- const isProxy: typeof import('vue')['isProxy']
- const isReactive: typeof import('vue')['isReactive']
- const isReadonly: typeof import('vue')['isReadonly']
- const isRef: typeof import('vue')['isRef']
- const markRaw: typeof import('vue')['markRaw']
- const nextTick: typeof import('vue')['nextTick']
- const onActivated: typeof import('vue')['onActivated']
- const onBeforeMount: typeof import('vue')['onBeforeMount']
- const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
- const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
- const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
- const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
- const onDeactivated: typeof import('vue')['onDeactivated']
- const onErrorCaptured: typeof import('vue')['onErrorCaptured']
- const onMounted: typeof import('vue')['onMounted']
- const onRenderTracked: typeof import('vue')['onRenderTracked']
- const onRenderTriggered: typeof import('vue')['onRenderTriggered']
- const onScopeDispose: typeof import('vue')['onScopeDispose']
- const onServerPrefetch: typeof import('vue')['onServerPrefetch']
- const onUnmounted: typeof import('vue')['onUnmounted']
- const onUpdated: typeof import('vue')['onUpdated']
- const onWatcherCleanup: typeof import('vue')['onWatcherCleanup']
- const provide: typeof import('vue')['provide']
- const reactive: typeof import('vue')['reactive']
- const readonly: typeof import('vue')['readonly']
- const ref: typeof import('vue')['ref']
- const resolveComponent: typeof import('vue')['resolveComponent']
- const shallowReactive: typeof import('vue')['shallowReactive']
- const shallowReadonly: typeof import('vue')['shallowReadonly']
- const shallowRef: typeof import('vue')['shallowRef']
- const toRaw: typeof import('vue')['toRaw']
- const toRef: typeof import('vue')['toRef']
- const toRefs: typeof import('vue')['toRefs']
- const toValue: typeof import('vue')['toValue']
- const triggerRef: typeof import('vue')['triggerRef']
- const unref: typeof import('vue')['unref']
- const useAttrs: typeof import('vue')['useAttrs']
- const useCssModule: typeof import('vue')['useCssModule']
- const useCssVars: typeof import('vue')['useCssVars']
- const useId: typeof import('vue')['useId']
- const useLink: typeof import('vue-router')['useLink']
- const useModel: typeof import('vue')['useModel']
- const useRoute: typeof import('vue-router')['useRoute']
- const useRouter: typeof import('vue-router')['useRouter']
- const useSlots: typeof import('vue')['useSlots']
- const useTemplateRef: typeof import('vue')['useTemplateRef']
- const watch: typeof import('vue')['watch']
- const watchEffect: typeof import('vue')['watchEffect']
- const watchPostEffect: typeof import('vue')['watchPostEffect']
- const watchSyncEffect: typeof import('vue')['watchSyncEffect']
-}
-// for type re-export
-declare global {
- // @ts-ignore
- export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
- import('vue')
-}
diff --git a/sub-government-affairs-service/components.d.ts b/sub-government-affairs-service/components.d.ts
deleted file mode 100644
index d581204..0000000
--- a/sub-government-affairs-service/components.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/* 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 {
- CustomCard: typeof import('./src/components/CustomCard.vue')['default']
- GridSelect: typeof import('./src/components/GridSelect.vue')['default']
- LandType: typeof import('./src/components/LandType.vue')['default']
- Pagina: typeof import('./src/components/Pagina.vue')['default']
- RouterLink: typeof import('vue-router')['RouterLink']
- RouterView: typeof import('vue-router')['RouterView']
- }
-}
diff --git a/sub-government-affairs-service/src/apis/inputSuppliesApi/material.js b/sub-government-affairs-service/src/apis/inputSuppliesApi/material.js
index 0a424d9..6c80390 100644
--- a/sub-government-affairs-service/src/apis/inputSuppliesApi/material.js
+++ b/sub-government-affairs-service/src/apis/inputSuppliesApi/material.js
@@ -6,6 +6,9 @@ export function getMaterailTypes(params) {
params,
});
}
+/* ------ 农药 ------ */
+// #region
+
/* 获取农药列表 */
export function getPesticideList(params) {
return request('/inputGoods/pesticide/page', {
@@ -19,3 +22,28 @@ export function addPesticide(data) {
data,
});
}
+/* 农药检测报告 */
+export function pesticideReportSave(data) {
+ return request('/inputGoods/pesticide/uploadReport', {
+ data,
+ method: 'PUT',
+ });
+}
+
+// #endregion
+
+/* ------ 肥料 ------ */
+// #region
+export function getFertilizreList(params) {
+ return request('/inputGoods/fertilize/page', {
+ params,
+ });
+}
+export function addFertilizer(data) {
+ return request('/inputGoods/fertilize/save', {
+ method: 'POST',
+ data,
+ });
+}
+// #endregion
+//
diff --git a/sub-government-affairs-service/src/components/CustomCard.vue b/sub-government-affairs-service/src/components/CustomCard.vue
deleted file mode 100644
index cfd5ba2..0000000
--- a/sub-government-affairs-service/src/components/CustomCard.vue
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/sub-government-affairs-service/src/components/CustomSelect.vue b/sub-government-affairs-service/src/components/CustomSelect.vue
deleted file mode 100644
index 8bbe1c7..0000000
--- a/sub-government-affairs-service/src/components/CustomSelect.vue
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-
-
-
-
-
diff --git a/sub-government-affairs-service/src/components/GridSelect.vue b/sub-government-affairs-service/src/components/GridSelect.vue
deleted file mode 100644
index b0c1867..0000000
--- a/sub-government-affairs-service/src/components/GridSelect.vue
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
diff --git a/sub-government-affairs-service/src/components/LandClassificationType.vue b/sub-government-affairs-service/src/components/LandClassificationType.vue
deleted file mode 100644
index b9e669c..0000000
--- a/sub-government-affairs-service/src/components/LandClassificationType.vue
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
- {{ item.label }}
-
-
-
-
-
-
-
diff --git a/sub-government-affairs-service/src/components/LandIsTransfer.vue b/sub-government-affairs-service/src/components/LandIsTransfer.vue
deleted file mode 100644
index cb7febe..0000000
--- a/sub-government-affairs-service/src/components/LandIsTransfer.vue
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
- {{ item.label }}
-
-
-
-
-
-
-
diff --git a/sub-government-affairs-service/src/components/LandType.vue b/sub-government-affairs-service/src/components/LandType.vue
deleted file mode 100644
index 26bae46..0000000
--- a/sub-government-affairs-service/src/components/LandType.vue
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
- {{ item.label }}
-
-
-
-
-
-
-
diff --git a/sub-government-affairs-service/src/components/Pagina.vue b/sub-government-affairs-service/src/components/Pagina.vue
deleted file mode 100644
index e95f5ba..0000000
--- a/sub-government-affairs-service/src/components/Pagina.vue
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
-
-
-
diff --git a/sub-government-affairs-service/src/config/index.js b/sub-government-affairs-service/src/config/index.js
index d52816e..171e4ef 100644
--- a/sub-government-affairs-service/src/config/index.js
+++ b/sub-government-affairs-service/src/config/index.js
@@ -44,28 +44,27 @@ export const CRUD_VIEW_OPTIONS = {
/**
* @Title: 生成avue校验规则
* @param {Object} set 校验配置对象
+ * @param {string} set.disabled 默认校验项是否禁用
* @param {string} set.msg 校验失败提示
* @param {Array} set.trigger 校验触发条件
* @param {Array} set.otherRules 其他校验规则
* @returns {Array} 校验规则数组
*/
-export function customRules(set = {}) {
- const obj = Object.assign(
- {
- msg: '必要参数,不能为空',
- trigger: ['change', 'blur'],
- otherRules: [],
- },
- set
- );
- const { msg, trigger, otherRules } = obj;
- let rulesArr = [
- {
+export function customRules(set = { disabled: false }) {
+ let _set = {
+ msg: '必要参数,不能为空',
+ trigger: ['change', 'blur'],
+ otherRules: [],
+ };
+ _set = Object.assign(_set, set);
+ const { msg, trigger, otherRules } = _set;
+ let rulesArr = [...otherRules];
+ if (!set.disabled) {
+ rulesArr.unshift({
required: true,
message: msg,
trigger,
- },
- ...otherRules,
- ];
+ });
+ }
return rulesArr;
}
diff --git a/sub-government-affairs-service/src/router/modules/inputSupplies/index.js b/sub-government-affairs-service/src/router/modules/inputSupplies/index.js
index a1d6854..9ac0314 100644
--- a/sub-government-affairs-service/src/router/modules/inputSupplies/index.js
+++ b/sub-government-affairs-service/src/router/modules/inputSupplies/index.js
@@ -34,12 +34,12 @@ const inputSuppliesRoutes = [
component: () => import('@/views/inputSuppliesManage/material/pesticide/index.vue'),
meta: { title: '农药管理', icon: 'Document' },
},
- {
- path: '/sub-government-affairs-service/material/fertilizer',
- name: 'input-supplies-fertilizer',
- component: () => import('@/views/inputSuppliesManage/material/fertilizer/index.vue'),
- meta: { title: '肥料管理', icon: 'Document' },
- },
+ // {
+ // path: '/sub-government-affairs-service/material/fertilizer',
+ // name: 'input-supplies-fertilizer',
+ // component: () => import('@/views/inputSuppliesManage/material/fertilizer/index.vue'),
+ // meta: { title: '肥料管理', icon: 'Document' },
+ // },
// {
// path: '/sub-government-affairs-service/material/ratPoison',
// name: 'input-supplies-ratPoison',
diff --git a/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index copy.vue b/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index copy.vue
index 647cd1e..d37a301 100644
--- a/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index copy.vue
+++ b/sub-government-affairs-service/src/views/annualPlan/component/annualPlans/index copy.vue
@@ -1,5 +1,5 @@
-
+
-
+
diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/material/index.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/material/index.vue
index 8f355d0..b6a9d41 100644
--- a/sub-government-affairs-service/src/views/inputSuppliesManage/material/index.vue
+++ b/sub-government-affairs-service/src/views/inputSuppliesManage/material/index.vue
@@ -1,10 +1,9 @@
- 物资信息
+
diff --git a/sub-government-affairs-service/src/views/inputSuppliesManage/material/ratPoison/index.vue b/sub-government-affairs-service/src/views/inputSuppliesManage/material/ratPoison/index.vue
index 0c4f543..4cf6b2a 100644
--- a/sub-government-affairs-service/src/views/inputSuppliesManage/material/ratPoison/index.vue
+++ b/sub-government-affairs-service/src/views/inputSuppliesManage/material/ratPoison/index.vue
@@ -1,12 +1,11 @@
-
+
+
-
-
diff --git a/sub-government-affairs-service/src/views/landManage/index.vue b/sub-government-affairs-service/src/views/landManage/index.vue
deleted file mode 100644
index d7d9c29..0000000
--- a/sub-government-affairs-service/src/views/landManage/index.vue
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
diff --git a/sub-government-affairs-service/yarn.lock b/sub-government-affairs-service/yarn.lock
index 65d3edd..9aeb966 100644
--- a/sub-government-affairs-service/yarn.lock
+++ b/sub-government-affairs-service/yarn.lock
@@ -5531,6 +5531,11 @@ split-string@^3.0.1, split-string@^3.0.2:
dependencies:
extend-shallow "^3.0.0"
+splitpanes@^4.0.3:
+ version "4.0.3"
+ resolved "https://registry.npmmirror.com/splitpanes/-/splitpanes-4.0.3.tgz#342c2b57d906371c2ab44b4578333fbeb13aaa94"
+ integrity sha512-S/f1CoH2JroOib7kzQtTQNtQCa7VzNQ2qKOO5HNj/5EVVcNkfz1eX/sH+X3XKdBdDLihEKDekVGwrLADd2oirA==
+
sprintf-js@~1.0.2:
version "1.0.3"
resolved "https://registry.npmmirror.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"