From 77b8a5e471b2a64865986b58b28cae9d6678bdd3 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Sun, 15 Jan 2023 17:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=20=E7=A7=8D=E6=A4=8D?= =?UTF-8?q?=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/request.js | 5 +- components/form.vue | 45 +++++++++-- pages/home/index.vue | 9 ++- pages/massif/detail.vue | 48 ++++++++--- pages/massif/index.vue | 20 ++--- pages/massif/info.vue | 12 +-- pages/massif/mana/index.vue | 8 +- pages/massif/mana/plantPlan.vue | 52 ++++++++++-- pages/massif/plant_plan.vue | 66 +++++++++++---- pages/purchase/agrProdList.vue | 37 ++++++++- pages/purchase/apply.vue | 21 ++++- pages/purchase/specs.vue | 11 +++ uni_modules/d-search/changelog.md | 0 .../d-search/components/d-search/d-search.vue | 45 +++++++++++ uni_modules/d-search/package.json | 81 +++++++++++++++++++ uni_modules/d-search/readme.md | 1 + .../components/uni-calendar/uni-calendar.vue | 8 +- 17 files changed, 401 insertions(+), 68 deletions(-) create mode 100644 uni_modules/d-search/changelog.md create mode 100644 uni_modules/d-search/components/d-search/d-search.vue create mode 100644 uni_modules/d-search/package.json create mode 100644 uni_modules/d-search/readme.md diff --git a/common/request.js b/common/request.js index 61b2d92..4281dc5 100644 --- a/common/request.js +++ b/common/request.js @@ -3,7 +3,8 @@ import store from "@/store" export function host(host='default',suffix='/plant_manage'){ return( process.env.NODE_ENV === 'development'?{ - default:`http://jtsfcq.natappfree.cc${suffix}` + // default:`http://f27zx4.natappfree.cc${suffix}` //陈 + default:`http://jtsfcq.natappfree.cc${suffix}` //马 }:{ default:`http://qv6mj8.natappfree.cc${suffix}` } @@ -59,7 +60,7 @@ const request=async function(url,param={}){ if(res){ if(res.data.code==401){ uni.reLaunch({ - url:"pages/home/login", + url:"/pages/home/login", }) return{statu:false, msg:"登录超时!"} } diff --git a/components/form.vue b/components/form.vue index d3113f8..d0e7031 100644 --- a/components/form.vue +++ b/components/form.vue @@ -104,7 +104,7 @@ } } } - .checkBox{ + .checkBox,.radio{ margin-top:14rpx; } .calendar{ @@ -158,6 +158,11 @@ - {{value[1]||endPlaceholder||'结束时间'}} + + + + + @@ -172,11 +177,13 @@ :columns="columns" :show="show" keyName="label" - :defaultIndex="[value||0]" + ref="picker" + :defaultIndex="(value||[]).map(v=>v||0)" closeOnClickOverlay @close="show=false" @cancel="show=false" - @confirm="$emit('select',$event.indexs[0]);show=false"/> + @confirm="$emit('select',$event.indexs[0]);show=false" + @change="pickerChange"/> - + \ No newline at end of file diff --git a/pages/home/index.vue b/pages/home/index.vue index 2def362..d42cc82 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -335,11 +335,13 @@ import request from '@/common/request.js' }, onLoad() { this.getMassif() + this.getPurchase() }, onShow(){ }, methods: { + //获取地块信息 async getMassif(){ var res=await request("/api/plantIndex/queryPlot",{ params:{companyId: this.$store.getters.userInfo.companyId} @@ -353,7 +355,12 @@ import request from '@/common/request.js' showCancel:false, }) } - } + }, + //获取采购申请数据 + async getPurchase(){ + var res=await request("/purchaseMain/purchaseMain/listPlantPurchaseSubByMainId") + console.log(res,'------------res----------') + }, } } diff --git a/pages/massif/detail.vue b/pages/massif/detail.vue index 2901601..6d57bdc 100644 --- a/pages/massif/detail.vue +++ b/pages/massif/detail.vue @@ -45,9 +45,10 @@ .detail{ background:#F7F7F7; border-radius: 24rpx; - padding:30rpx; + padding:20rpx; color:#999; font-size:28rpx; + width:100%; } } } @@ -59,42 +60,63 @@ 基本信息 - 基地名称 A122323 + 基地名称 {{detail.plantBaseName}} - 地块编号 东方红壹号基地 + 地块编号 {{detail.plotNumber}} - 地块面积 45亩 + 地块面积 {{detail.drawArea}}亩 - 实际面积 44亩 + 实际面积 {{detail.realityArea}}亩 地块图片 - - - + - 使用日期 2021-10-15 至 2026-12-23 + 使用日期 {{detail.beginTime}} 至 {{detail.endTime}} 经纬度 东经97°31′,北纬21°8′ 详细地址 - - 这里是地址信息这里是地址信息这里是地址信息这里是地址信息 - + {{detail.address}} diff --git a/pages/massif/index.vue b/pages/massif/index.vue index c5ce94b..13d1175 100644 --- a/pages/massif/index.vue +++ b/pages/massif/index.vue @@ -83,7 +83,7 @@ - + {{v.plotName}} @@ -93,9 +93,9 @@ {{v.usedArea}} (在用面积) - 修改 + 修改 删除 - 地块管理 + 地块管理 @@ -125,12 +125,14 @@ import request from '@/common/request' toInfo(){ uni.navigateTo({ url:"/pages/massif/info", - events:{ - update:()=>{ - this.clean() - this.search() - } - }, + events:{update:()=>{ this.clean();this.search() }} + }) + }, + //修改详情 + reDetail(id){ + uni.navigateTo({ + url:`/pages/massif/info?id=${id}`, + events:{update:()=>{ this.clean();this.search() }} }) }, clean(){ diff --git a/pages/massif/info.vue b/pages/massif/info.vue index 197e02d..7e22da7 100644 --- a/pages/massif/info.vue +++ b/pages/massif/info.vue @@ -17,7 +17,7 @@ :value="(/^dateRange$|^select$/.test(v.type)?fields[k].value:formData[k])" @input="formData[k]=$event" @selectRDate="selectDate" - @select="fields[k].value=$event;formData[k]=fields[k].columns[0][$event].value" + @select="fields[k].value=[$event];formData[k]=fields[k].columns[0][$event].value" @imgs="fields[k].value=$event"/> @@ -25,18 +25,16 @@ \ No newline at end of file diff --git a/pages/massif/mana/plantPlan.vue b/pages/massif/mana/plantPlan.vue index f64a822..f25772f 100644 --- a/pages/massif/mana/plantPlan.vue +++ b/pages/massif/mana/plantPlan.vue @@ -89,33 +89,71 @@ \ No newline at end of file diff --git a/pages/purchase/apply.vue b/pages/purchase/apply.vue index deb3397..6da6f76 100644 --- a/pages/purchase/apply.vue +++ b/pages/purchase/apply.vue @@ -129,7 +129,26 @@ \ No newline at end of file diff --git a/pages/purchase/specs.vue b/pages/purchase/specs.vue index f514ee2..2e54715 100644 --- a/pages/purchase/specs.vue +++ b/pages/purchase/specs.vue @@ -149,7 +149,18 @@ \ No newline at end of file diff --git a/uni_modules/d-search/changelog.md b/uni_modules/d-search/changelog.md new file mode 100644 index 0000000..e69de29 diff --git a/uni_modules/d-search/components/d-search/d-search.vue b/uni_modules/d-search/components/d-search/d-search.vue new file mode 100644 index 0000000..6eb74da --- /dev/null +++ b/uni_modules/d-search/components/d-search/d-search.vue @@ -0,0 +1,45 @@ + + + \ No newline at end of file diff --git a/uni_modules/d-search/package.json b/uni_modules/d-search/package.json new file mode 100644 index 0000000..378c1e2 --- /dev/null +++ b/uni_modules/d-search/package.json @@ -0,0 +1,81 @@ +{ + "id": "d-search", + "displayName": "d-search", + "version": "1.0.0", + "description": "d-search", + "keywords": [ + "d-search" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "type": "component-vue", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "", + "data": "", + "permissions": "" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "u", + "aliyun": "u" + }, + "client": { + "Vue": { + "vue2": "u", + "vue3": "u" + }, + "App": { + "app-vue": "u", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "u", + "Android Browser": "u", + "微信浏览器(Android)": "u", + "QQ浏览器(Android)": "u" + }, + "H5-pc": { + "Chrome": "u", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "u", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/d-search/readme.md b/uni_modules/d-search/readme.md new file mode 100644 index 0000000..bbb0e35 --- /dev/null +++ b/uni_modules/d-search/readme.md @@ -0,0 +1 @@ +# d-search \ No newline at end of file diff --git a/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue b/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue index 9cd0e69..8b88846 100644 --- a/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue +++ b/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue @@ -1,12 +1,12 @@