From 9d49ff293e973b3cdd4812ee6e373919ddeb6a8d Mon Sep 17 00:00:00 2001 From: zhaodengke Date: Sat, 12 Oct 2024 17:37:17 +0800 Subject: [PATCH] =?UTF-8?q?Task=20=E9=9B=B6=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/form/CommonUpload.vue | 160 ++++++++++++ src/components/form/FieldDatePicker.vue | 3 + src/router/index.js | 18 ++ src/views/sunVillage_info/list_tourists.vue | 10 +- .../sunVillage_info/list_tourists_add.vue | 83 +------ .../sunVillage_info/list_tourists_detail.vue | 67 +++-- .../sunVillage_info/list_tourists_edit.vue | 96 +------- .../sunVillage_info/list_tourists_ranking.vue | 18 +- .../list_tourists_registration.vue | 159 +++++++++++- .../list_tourists_registration_add.vue | 136 +++++++---- .../list_tourists_registration_detail.vue | 188 ++++++++++++++ .../list_tourists_registration_edit.vue | 230 ++++++++++++++++++ 12 files changed, 903 insertions(+), 265 deletions(-) create mode 100644 src/components/form/CommonUpload.vue create mode 100644 src/views/sunVillage_info/list_tourists_registration_detail.vue create mode 100644 src/views/sunVillage_info/list_tourists_registration_edit.vue diff --git a/src/components/form/CommonUpload.vue b/src/components/form/CommonUpload.vue new file mode 100644 index 00000000..4fdbd0ab --- /dev/null +++ b/src/components/form/CommonUpload.vue @@ -0,0 +1,160 @@ + + + + + + + diff --git a/src/components/form/FieldDatePicker.vue b/src/components/form/FieldDatePicker.vue index 5ed1cbfb..f1c76d61 100644 --- a/src/components/form/FieldDatePicker.vue +++ b/src/components/form/FieldDatePicker.vue @@ -41,6 +41,8 @@ :type="type || 'date'" :readonly="readonly" :title="label || ''" + :min-date="minDate" + :max-date="maxDate" @confirm="onConfirm" @cancel="onCancel" @change="onChanged" @@ -62,6 +64,7 @@ export default { 'formatter', // value的格式化 String|Function|undefined 字符串为格式字符串, 函数则必须有返回 undefined则不转换 'clearable', // 点击取消时清空绑定值 'yearRangeLength', // type === 'year' 时生成的年份数量范围 [YEAR - yearRangeLength, YEAR + yearRangeLength] + 'minDate', 'maxDate' ], watch: { value: function (newVal, oldVal) { diff --git a/src/router/index.js b/src/router/index.js index 92eabada..59babb26 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3597,6 +3597,24 @@ export const constantRoutes = [ }, component: (resolve) => require(['@/views/sunVillage_info/list_tourists_registration_add'], resolve) }, + { ////阳光村务(新)-- 零工登记详情 + path: '/sunVillage_info/list_tourists_registration_detail', + name: 'sunVillageInfoListTouristsRegistrationDetail', + meta: { + title: '查看零工登记', + hidden: true, + }, + component: (resolve) => require(['@/views/sunVillage_info/list_tourists_registration_detail'], resolve) + }, + { ////阳光村务(新)-- 零工登记修改 + path: '/sunVillage_info/list_tourists_registration_edit', + name: 'sunVillageInfoListTouristsRegistrationEdit', + meta: { + title: '修改零工登记', + hidden: true, + }, + component: (resolve) => require(['@/views/sunVillage_info/list_tourists_registration_edit'], resolve) + }, { ////阳光村务(新)-- 合同信息 path: '/sunVillage_info/list_register', name: 'sunVillageInfoListRegister', diff --git a/src/views/sunVillage_info/list_tourists.vue b/src/views/sunVillage_info/list_tourists.vue index b59066fd..07f9a5a4 100644 --- a/src/views/sunVillage_info/list_tourists.vue +++ b/src/views/sunVillage_info/list_tourists.vue @@ -53,6 +53,14 @@ +
+
+ +
+
+ +
+
@@ -93,7 +101,7 @@ projectIndex:'', showBtn:true, nowYear:new Date().getFullYear(), - yearList:[] + yearList:[], }; }, created() { diff --git a/src/views/sunVillage_info/list_tourists_add.vue b/src/views/sunVillage_info/list_tourists_add.vue index 786205f2..17e5ac2e 100644 --- a/src/views/sunVillage_info/list_tourists_add.vue +++ b/src/views/sunVillage_info/list_tourists_add.vue @@ -46,27 +46,12 @@ - - - - - - - - - - +
+ diff --git a/src/views/sunVillage_info/list_tourists_registration_edit.vue b/src/views/sunVillage_info/list_tourists_registration_edit.vue new file mode 100644 index 00000000..7cb5d01a --- /dev/null +++ b/src/views/sunVillage_info/list_tourists_registration_edit.vue @@ -0,0 +1,230 @@ + + +