diff --git a/pages/home/my.vue b/pages/home/my.vue
index c63fdaa..f67a0c6 100644
--- a/pages/home/my.vue
+++ b/pages/home/my.vue
@@ -64,7 +64,7 @@
修改密码
-
+
采购记录
diff --git a/pages/home/personalInfo.vue b/pages/home/personalInfo.vue
index 2a01ff8..7880b6c 100644
--- a/pages/home/personalInfo.vue
+++ b/pages/home/personalInfo.vue
@@ -9,10 +9,15 @@
border-bottom:2rpx solid rgba(216, 216, 216, 0.2);
text{
&:first-child{
+ flex-shrink: 0;
color:#999;
margin-right:auto;
}
+ &:nth-child(2){
+ margin-left:20rpx;
+ }
&:nth-child(3){
+ flex-shrink: 0;
color:#999;
margin-left:30rpx;
}
@@ -30,7 +35,7 @@
- 所属企业 {{$store.getters['userInfo'].companyName}}
+ 所属企业 {{$store.getters['userInfo'].companyName}}
系统账号 {{$store.getters['userInfo'].username}}
diff --git a/pages/home/rePassword.vue b/pages/home/rePassword.vue
index afc3e92..1ce6c4d 100644
--- a/pages/home/rePassword.vue
+++ b/pages/home/rePassword.vue
@@ -26,8 +26,9 @@
+
-
+
@@ -37,21 +38,25 @@ import request from '@/common/request'
data(){
return{
formData:{
- confirmPassword: "",
+ confirmpassword: "",
password: "",
+ oldpassword:"",
username: this.$store.getters['userInfo'].username,
}
}
},
methods:{
check(){
- if(!this.formData.password){
+ if(!this.formData.oldpassword){
+ uni.showToast({title:"请输入旧密码!",icon:"none"})
+ return false
+ }else if(!this.formData.password){
uni.showToast({title:"请输入密码!",icon:"none"})
return false
}else if(!/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/.test(this.formData.password)){
uni.showToast({title:"密码格式为6-20位字母和数字的组合!",icon:"none"})
return false
- }else if(!this.formData.confirmPassword){
+ }else if(this.formData.confirmpassword!=this.formData.password){
uni.showToast({title:"输入密码不一致!",icon:"none"})
return false
}
@@ -59,7 +64,7 @@ import request from '@/common/request'
},
async submit(){
if(this.check()){
- var res=await request("/sys/user/changePassword",{
+ var res=await request("/sys/user/updatePassword",{
method:"put",
suffix:"/jeecgboot",
body: this.formData
diff --git a/pages/massif/index.vue b/pages/massif/index.vue
index 0bb9b30..5456c6d 100644
--- a/pages/massif/index.vue
+++ b/pages/massif/index.vue
@@ -19,13 +19,18 @@
}
&>.info{
flex-grow: 1;
+ width:1rpx;
.title{
display:flex;
align-items: center;
- font-weight: bold;
text{
- margin-left:auto;
- color:#333;
+ &:first-child{
+ flex-grow: 1;
+ font-weight: bold;
+ }
+ &:nth-child(2){
+ color:#333;
+ }
}
}
.code,.area{
@@ -86,7 +91,7 @@
- {{v.plotName}}
+ {{v.plotName}}
编号:{{v.plotNumber}}
地块面积:{{v.realityArea}}亩
diff --git a/pages/massif/mana/recovery.vue b/pages/massif/mana/recovery.vue
index 014df48..572715d 100644
--- a/pages/massif/mana/recovery.vue
+++ b/pages/massif/mana/recovery.vue
@@ -49,6 +49,7 @@
}
.detail{
flex-grow: 1;
+ width:1rpx;
.name{
display: flex;
justify-content: space-between;
@@ -56,8 +57,10 @@
text{
&:first-child{
font-weight: bold;
+ flex-grow: 1;
}
&:nth-child(2){
+ flex-shrink: 0;
font-weight: bold;
font-size:32rpx;
&:after{
@@ -97,7 +100,7 @@
- {{v.plantName}}
+ {{v.plantName}}
{{v.harvestNum}}
负责人:{{v.principal}}
@@ -170,10 +173,6 @@ export default {
}
})
if(res.statu){
- this.list=this.list.concat(res.data.records)
- this.list=this.list.concat(res.data.records)
- this.list=this.list.concat(res.data.records)
- this.list=this.list.concat(res.data.records)
this.list=this.list.concat(res.data.records)
this.total=res.data.total
}else{
diff --git a/pages/purchase/agrProdList.vue b/pages/purchase/agrProdList.vue
index f1b4879..d1e39a0 100644
--- a/pages/purchase/agrProdList.vue
+++ b/pages/purchase/agrProdList.vue
@@ -33,8 +33,11 @@
}
}
.company{
+ display:flex;
+ align-items: center;
text{
&:first-child{
+ flex-shrink: 0;
color:#FBA83C;
margin-right:14rpx;
}
@@ -61,7 +64,7 @@
{{v.goodsName}} {{v.detailedType}}
- {{v.detailedParentName}} {{v.supplier}}
+ {{v.detailedParentName}} {{v.supplier}}
diff --git a/pages/purchase/detail.vue b/pages/purchase/detail.vue
new file mode 100644
index 0000000..ee16979
--- /dev/null
+++ b/pages/purchase/detail.vue
@@ -0,0 +1,87 @@
+
+
+
+ 申请日期:2022-12-29
+
+
+
+ 化肥 中量元素水溶肥 (100kg/袋)
+
+
+ 微量元素肥 云南云天化股份有限公司 2袋
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/purchase/record.vue b/pages/purchase/record.vue
new file mode 100644
index 0000000..b540ccd
--- /dev/null
+++ b/pages/purchase/record.vue
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+
+
+ 一号基地
+ 张召忠
+
+
+ 申请日期
+ 2022-12-29
+
+
+ 种类
+ 20种
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/router/purchase.js b/router/purchase.js
index 765eb6d..70ba823 100644
--- a/router/purchase.js
+++ b/router/purchase.js
@@ -52,4 +52,26 @@ module.exports=[
}
}
},
+ {
+ path:"pages/purchase/record",
+ style:{
+ navigationBarTitleText:"采购记录",
+ navigationBarBackgroundColor:"#10C176",
+ navigationBarTextStyle:"white",
+ "app-plus":{
+ titleNView:true
+ }
+ }
+ },
+ {
+ path:"pages/purchase/detail",
+ style:{
+ navigationBarTitleText:"采购详情",
+ navigationBarBackgroundColor:"#10C176",
+ navigationBarTextStyle:"white",
+ "app-plus":{
+ titleNView:true
+ }
+ }
+ },
]
\ No newline at end of file
diff --git a/uni.scss b/uni.scss
index ce0cda6..7af790c 100644
--- a/uni.scss
+++ b/uni.scss
@@ -77,7 +77,7 @@ $uni-font-size-paragraph:15px;
@import '@/common/main.css';
@import 'uview-ui/theme.scss';
-@import url('https://at.alicdn.com/t/c/font_3852037_owoae3ai5lc.css');
+@import url('https://at.alicdn.com/t/c/font_3852037_jjiimlkafse.css');
[class*=plant-]{
font-family: "plantMana" !important;
font-size: 16px;
@@ -118,10 +118,10 @@ view{
white-space: nowrap;
}
-.u-navbar{
- height:calc(var(--status-bar-height) + 44px);
- margin-bottom:15px;
-}
+// .u-navbar{
+// height:calc(var(--status-bar-height) + 44px);
+// margin-bottom:15px;
+// }
.u-button{
&:after{