From cbae7277e6b1c98e3aec75ea21013a92847cf292 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Mon, 30 Jan 2023 14:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 6 +- {components/colorui => common}/main.css | 0 common/request.js | 4 +- components/colorui/animation.css | 184 ------------------ components/colorui/components/cu-custom.vue | 69 ------- components/cu-navbar.vue | 72 ------- main.js | 2 - pages.js | 27 +++ pages.json | 15 +- pages/demo.nvue | 29 +++ pages/home/login.vue | 3 + pages/massif/detail.vue | 10 +- pages/massif/info.vue | 12 +- pages/massif/mana/index.vue | 26 ++- pages/massif/mana/plantPlan.vue | 16 +- pages/massif/plant_info.vue | 33 +++- pages/massif/plant_plan.vue | 12 +- pages/purchase/agrProdList.vue | 28 ++- pages/purchase/apply.vue | 12 +- pages/purchase/newAgr.vue | 107 +++++++++- pages/purchase/specs.vue | 31 ++- uni.scss | 4 +- .../d-form/components/d-form/d-form.vue | 38 ++-- 23 files changed, 319 insertions(+), 421 deletions(-) rename {components/colorui => common}/main.css (100%) delete mode 100644 components/colorui/animation.css delete mode 100644 components/colorui/components/cu-custom.vue delete mode 100644 components/cu-navbar.vue create mode 100644 pages/demo.nvue diff --git a/App.vue b/App.vue index d30aba9..a8c1b05 100644 --- a/App.vue +++ b/App.vue @@ -20,9 +20,9 @@ if(this.$store.getters.token){ }else{ - uni.reLaunch({ - url:"pages/home/login", - }) + // uni.reLaunch({ + // url:"pages/home/login", + // }) } }, onShow: function() { diff --git a/components/colorui/main.css b/common/main.css similarity index 100% rename from components/colorui/main.css rename to common/main.css diff --git a/common/request.js b/common/request.js index 42aafc8..d913056 100644 --- a/common/request.js +++ b/common/request.js @@ -3,8 +3,8 @@ import store from "@/store" export function host(host='default',suffix='/plant_manage'){ return( process.env.NODE_ENV === 'development'?{ - // default:`http://10.0.0.217${suffix}` //陈 - default:`http://mq3s8b.natappfree.cc${suffix}` //马 + default:`http://xvff42.natappfree.cc${suffix}` //陈 + // default:`http://mq3s8b.natappfree.cc${suffix}` //马 }:{ default:`http://qv6mj8.natappfree.cc${suffix}` } diff --git a/components/colorui/animation.css b/components/colorui/animation.css deleted file mode 100644 index 931bb51..0000000 --- a/components/colorui/animation.css +++ /dev/null @@ -1,184 +0,0 @@ -/* - Animation 微动画 - 基于ColorUI组建库的动画模块 by 文晓港 2019年3月26日19:52:28 - */ - -/* css 滤镜 控制黑白底色gif的 */ -.gif-black{ - mix-blend-mode: screen; -} -.gif-white{ - mix-blend-mode: multiply; -} - - -/* Animation css */ -[class*=animation-] { - animation-duration: .5s; - animation-timing-function: ease-out; - animation-fill-mode: both -} - -.animation-fade { - animation-name: fade; - animation-duration: .8s; - animation-timing-function: linear -} - -.animation-scale-up { - animation-name: scale-up -} - -.animation-scale-down { - animation-name: scale-down -} - -.animation-slide-top { - animation-name: slide-top -} - -.animation-slide-bottom { - animation-name: slide-bottom -} - -.animation-slide-left { - animation-name: slide-left -} - -.animation-slide-right { - animation-name: slide-right -} - -.animation-shake { - animation-name: shake -} - -.animation-reverse { - animation-direction: reverse -} - -@keyframes fade { - 0% { - opacity: 0 - } - - 100% { - opacity: 1 - } -} - -@keyframes scale-up { - 0% { - opacity: 0; - transform: scale(.2) - } - - 100% { - opacity: 1; - transform: scale(1) - } -} - -@keyframes scale-down { - 0% { - opacity: 0; - transform: scale(1.8) - } - - 100% { - opacity: 1; - transform: scale(1) - } -} - -@keyframes slide-top { - 0% { - opacity: 0; - transform: translateY(-100%) - } - - 100% { - opacity: 1; - transform: translateY(0) - } -} - -@keyframes slide-bottom { - 0% { - opacity: 0; - transform: translateY(100%) - } - - 100% { - opacity: 1; - transform: translateY(0) - } -} - -@keyframes shake { - - 0%, - 100% { - transform: translateX(0) - } - - 10% { - transform: translateX(-9px) - } - - 20% { - transform: translateX(8px) - } - - 30% { - transform: translateX(-7px) - } - - 40% { - transform: translateX(6px) - } - - 50% { - transform: translateX(-5px) - } - - 60% { - transform: translateX(4px) - } - - 70% { - transform: translateX(-3px) - } - - 80% { - transform: translateX(2px) - } - - 90% { - transform: translateX(-1px) - } -} - -@keyframes slide-left { - 0% { - opacity: 0; - transform: translateX(-100%) - } - - 100% { - opacity: 1; - transform: translateX(0) - } -} - -@keyframes slide-right { - 0% { - opacity: 0; - transform: translateX(100%) - } - - 100% { - opacity: 1; - transform: translateX(0) - } -} \ No newline at end of file diff --git a/components/colorui/components/cu-custom.vue b/components/colorui/components/cu-custom.vue deleted file mode 100644 index a4e1773..0000000 --- a/components/colorui/components/cu-custom.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - diff --git a/components/cu-navbar.vue b/components/cu-navbar.vue deleted file mode 100644 index e275c15..0000000 --- a/components/cu-navbar.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - \ No newline at end of file diff --git a/main.js b/main.js index 34c3620..a179037 100644 --- a/main.js +++ b/main.js @@ -2,11 +2,9 @@ import Vue from 'vue' import App from './App' import store from './store' import uView from 'uview-ui'; -// import cuNavbar from './components/cu-navbar.vue' import {defineObj} from 'black-knight/lib/config/custom' Vue.use(uView) -// Vue.component("cuNavbar", cuNavbar) Vue.prototype.$store=store Vue.config.productionTip = false diff --git a/pages.js b/pages.js index 456f679..a6d10b4 100644 --- a/pages.js +++ b/pages.js @@ -9,6 +9,19 @@ module.exports = hot((pagesJson)=>{ ...require("./router/massif.js"), ...require('./router/purchase.js'), ...require('./router/stock.js'), + // { + // "path":"pages/demo", + // "style":{ + // "navigationBarTitleText":"测试地图", + // "navigationBarBackgroundColor":"#10C176", + // "navigationBarTextStyle":"white", + // "app-plus":{ + // "titleNView":true, + // "nvueCompiler":"uni-app", + // "nvueStyleCompiler":"uni-app" + // } + // } + // }, ], tabBar:{ color:"#999", @@ -21,5 +34,19 @@ module.exports = hot((pagesJson)=>{ {pagePath:"pages/home/my",text:"我的",iconPath: "/static/tab_my.png",selectedIconPath: "/static/tab_my_active.png"}, ] }, + condition : { + current: 0, + list: [ + // {name:"测试页面",path:"pages/demo"}, + {name: "登录",path: "pages/home/login","query": ""}, + {name: "首页",path: "pages/home/index","query": ""}, + {name: "仓库管理",path: "pages/warehouse/mana","query": ""}, + {name: "仓库基本信息",path: "pages/warehouse/info","query": ""}, + {name: "仓库详情",path: "pages/warehouse/detail","query": ""}, + {name: "地块管理",path: "pages/massifMana","query": ""}, + {name: "地块详情",path: "pages/massifDetail","query": ""}, + {name: "地块基本信息",path: "pages/massifInfo","query": ""} + ] + } } }) \ No newline at end of file diff --git a/pages.json b/pages.json index db5269b..5d99eac 100644 --- a/pages.json +++ b/pages.json @@ -9,17 +9,8 @@ "backgroundColor": "#F8F8F8" }, "uniIdRouter": {}, - "condition" : { //模式配置,仅开发期间生效 - "current": 0, //当前激活的模式(list 的索引项) - "list": [ - {"name": "登录","path": "pages/home/login","query": ""}, - {"name": "首页","path": "pages/home/index","query": ""}, - {"name": "仓库管理","path": "pages/warehouse/mana","query": ""}, - {"name": "仓库基本信息","path": "pages/warehouse/info","query": ""}, - {"name": "仓库详情","path": "pages/warehouse/detail","query": ""}, - {"name": "地块管理","path": "pages/massifMana","query": ""}, - {"name": "地块详情","path": "pages/massifDetail","query": ""}, - {"name": "地块基本信息","path": "pages/massifInfo","query": ""} - ] + "condition" : { + "current": 0, + "list": [] } } diff --git a/pages/demo.nvue b/pages/demo.nvue new file mode 100644 index 0000000..7e6312e --- /dev/null +++ b/pages/demo.nvue @@ -0,0 +1,29 @@ + + + + diff --git a/pages/home/login.vue b/pages/home/login.vue index 10a0857..d3b571a 100644 --- a/pages/home/login.vue +++ b/pages/home/login.vue @@ -73,6 +73,9 @@ export default { } }, onLoad(){ + uni.navigateTo({ + url:"/pages/demo" + }) if(process.env.NODE_ENV === 'development'){ this.formData.username="13383434048" this.formData.password="1qaz@WSX" diff --git a/pages/massif/detail.vue b/pages/massif/detail.vue index 6d57bdc..583be8a 100644 --- a/pages/massif/detail.vue +++ b/pages/massif/detail.vue @@ -32,11 +32,9 @@ width:100%; display:flex; flex-wrap: wrap; - image{ - height:160rpx; - margin:0 20rpx 20rpx 0; + &>view{ width:calc((100% - 40rpx)/3); - border-radius: 8rpx; + margin:0 20rpx 20rpx 0; &:nth-child(3n){ margin-right:0; } @@ -74,7 +72,9 @@ 地块图片 - + + + diff --git a/pages/massif/info.vue b/pages/massif/info.vue index a98e897..9b7987e 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.indexs;formData[k]=$event.value[0].value" + @select="fields[k].value=$event.value.map(v=>v.value);formData[k]=$event.value[0].value" @imgs="fields[k].value=$event"/> @@ -29,7 +29,7 @@ import request from '@/common/request' data(){ return{ fields:{ - plantBaseName:{label:"基地名称",type:"select",columns:[[]],value:[null]}, + plantBaseInfoId:{label:"基地名称",type:"select",columns:[[]],value:[]}, plotNumber:{label:"地块编号"}, plotName:{label:"地块名称"}, drawArea:{label:"地块面积(亩)",type:'digit'}, @@ -40,7 +40,7 @@ import request from '@/common/request' address:{label:"详细地址",type:"textarea"}, }, formData:{ - plantBaseName:"", + plantBaseInfoId:"", plotNumber:"", plotName:"", drawArea:'', @@ -53,7 +53,7 @@ import request from '@/common/request' address:"", }, rules:{ - plantBaseName:{required:true, message:"基地名称必填!", trigger:"change"}, + plantBaseInfoId:{required:true, message:"基地名称必填!", trigger:"change"}, plotNumber:{required:true, message:"地块编号必填!", trigger:"blur"}, plotName:{required:true, message:"地块名称必填!", trigger:"blur"}, drawArea:{required:true, type:'number', message:"地块面积必填!", trigger:"blur"}, @@ -82,7 +82,7 @@ import request from '@/common/request' params:{companyId:this.$store.getters.userInfo.companyId} }) if(res.statu){ - this.fields.plantBaseName.columns = [res.data.map(v=>({label:v.baseName,value:v.id}))] + this.fields.plantBaseInfoId.columns = [res.data.map(v=>({label:v.baseName,value:v.id}))] }else{ uni.showModal({ title:"提示", @@ -129,7 +129,7 @@ import request from '@/common/request' if(res.statu){ this.formData=res.data this.fields.date.value=[res.data.beginTime, res.data.endTime] - this.fields.plantBaseName.value=[this.fields.plantBaseName.columns[0].findIndex(v=>v.value==res.data.plantBaseName)] + this.fields.plantBaseInfoId.value=[res.data.plantBaseInfoId]//[this.fields.plantBaseInfoId.columns[0].findIndex(v=>v.value==res.data.plantBaseName)] this.fields.image.value=res.data.image.join(',') }else{ uni.showModal({ diff --git a/pages/massif/mana/index.vue b/pages/massif/mana/index.vue index 58af1b5..9e84348 100644 --- a/pages/massif/mana/index.vue +++ b/pages/massif/mana/index.vue @@ -16,7 +16,7 @@