From a3a990c24165512fbdbb116db9ac0b9f0311711d Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Tue, 1 Aug 2023 16:43:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/oaPbulic.js | 8 +- .../districtSelector/districtSelector.vue | 22 ++- components/newArchives/breeding.vue | 76 +++++--- components/newArchives/deepProcessing.vue | 17 ++ components/newArchives/residents.vue | 65 +++++-- components/newArchives/store.vue | 125 +++++++------ pages/oaTask/oaTask.vue | 2 +- subpkg/archives/archives.vue | 5 +- subpkg/archivesDetail/archivesDetail.vue | 82 ++++++--- subpkg/contract/contract.vue | 35 ++-- subpkg/newArchives/newArchives.vue | 173 ++++++++++-------- subpkg/personnel/personnel.vue | 2 +- 12 files changed, 394 insertions(+), 218 deletions(-) diff --git a/api/oaPbulic.js b/api/oaPbulic.js index 31f1e46..6e5daf7 100644 --- a/api/oaPbulic.js +++ b/api/oaPbulic.js @@ -28,4 +28,10 @@ export const commonVillage = (data) => oahttp.get('/common/village', data) /** * 获取小队 */ -export const commonBrigade = (data) => oahttp.get('/common/brigade', data) \ No newline at end of file +export const commonBrigade = (data) => oahttp.get('/common/brigade', data) + + +/** + * 获取商机分类 + */ +export const categoryBusinessList = (data) => oahttp.get('/CategoryBusiness/list', data) \ No newline at end of file diff --git a/components/districtSelector/districtSelector.vue b/components/districtSelector/districtSelector.vue index 61c59ab..79de74c 100644 --- a/components/districtSelector/districtSelector.vue +++ b/components/districtSelector/districtSelector.vue @@ -19,7 +19,7 @@ - + @@ -37,6 +37,16 @@ import { Toast } from "../../libs/uniApi" export default { name:"districtSelector", + props:{ + readonly: { + type: Boolean, + default: false + }, + datas:{ + type: Object, + default: null + } + }, data() { return { showProvince: false, @@ -98,8 +108,15 @@ changeType: '', //当前选择的城市类型 }; }, + watch:{ + datas(newValue, oldValue){ + if(newValue){ + console.log('获取地址'); + } + } + }, mounted() { - this.initProvinceAndCity(); + if(!this.$props.readonly) this.initProvinceAndCity(); }, methods:{ async validate(){ @@ -135,6 +152,7 @@ }, // 选择城市 changeCity(type) { + if(this.$props.readonly)return ; if (this[type + 'List'].length == 0) return Toast('请先选择上一级地区'); this.changeType = type; this.showProvince = true; diff --git a/components/newArchives/breeding.vue b/components/newArchives/breeding.vue index 68488ae..d6881fa 100644 --- a/components/newArchives/breeding.vue +++ b/components/newArchives/breeding.vue @@ -3,16 +3,16 @@ 种养殖 - + - + - + @@ -20,7 +20,7 @@ - + @@ -28,38 +28,38 @@ - + - + - + - + - + - + - + - - + @@ -67,13 +67,13 @@ - + - + - + @@ -81,7 +81,7 @@ - + @@ -89,7 +89,7 @@ - + @@ -97,7 +97,7 @@ - + @@ -105,7 +105,7 @@ - + @@ -113,10 +113,10 @@ - + - @@ -126,12 +126,22 @@ diff --git a/pages/oaTask/oaTask.vue b/pages/oaTask/oaTask.vue index 46f9fa8..70cc3d4 100644 --- a/pages/oaTask/oaTask.vue +++ b/pages/oaTask/oaTask.vue @@ -25,7 +25,7 @@ - + diff --git a/subpkg/archives/archives.vue b/subpkg/archives/archives.vue index 55c78b3..a7258f0 100644 --- a/subpkg/archives/archives.vue +++ b/subpkg/archives/archives.vue @@ -30,7 +30,7 @@ 居住地址: - {{item.address}} + {{item.area_name+item.street_name+item.village_name}} @@ -70,7 +70,8 @@ }, } }, - onLoad() { + onLoad(options) { + console.log(options); }, onShow() { this.initLoadconfig(); diff --git a/subpkg/archivesDetail/archivesDetail.vue b/subpkg/archivesDetail/archivesDetail.vue index 3a6e1ae..bf208f1 100644 --- a/subpkg/archivesDetail/archivesDetail.vue +++ b/subpkg/archivesDetail/archivesDetail.vue @@ -1,6 +1,10 @@ @@ -109,6 +113,7 @@ data() { return { readonly: true, + current: 0, showDemandList: [], formData: { id_card: '', @@ -120,8 +125,8 @@ wechat: '', //微信号 address: '', //家庭地址 age: '', //年龄 - category_id: '1', - category_child: '2', + category_id: 1, + category_child: 1, data_type: '1', }, @@ -147,6 +152,27 @@