Browse Source

界面优化

master
孙家正 1 year ago
parent
commit
f9cdc2b4c5
  1. 2
      pages/massif/add_farming.vue
  2. 1
      pages/purchase/apply.vue
  3. 20
      pages/purchase/record.vue

2
pages/massif/add_farming.vue

@ -238,8 +238,8 @@ export default {
fields:{
principal:{label:"操作人",styleType:"parallel", disabled:true},
farmingTime:{label:"操作日期",styleType:"parallel",type:"calendar"},
userNum:{label:"人工投入(个)",type:"number"},
farmingPlanId:{label:"种植计划",type:"select",columns:[],value:[]},
userNum:{label:"人工投入(个)",type:"number"},
workTime:{label:"工时(天)",type:"number"},
images:{label:"农事图片",type:"upImg",num:3},
farmingRemarks:{label:"备注",type:"textarea"},

1
pages/purchase/apply.vue

@ -135,6 +135,7 @@ export default {
data(){
return{
formData:{
baseId:this.$store.state.baseInfo.id,
applicantId: "",
applicantName: "",
applicantTime: "",

20
pages/purchase/record.vue

@ -94,10 +94,10 @@
</view>
<view class="foot">
<view class="examine">
<text v-if="true">审核人xxx</text>
<text v-if="true" class="over">原因此处是原因此处是原因此处是处是原因此处是原因此处是</text>
<text>审核部门{{v.auditDepart}}</text>
<text class="over">意见{{v.reason}}</text>
</view>
<text class="type" :style="{'--bg':({2:'#FFCB69',3:'#10C176',4:'#EE263A',5:'#2196f3'})[v.applicantStatus]}">{{({2:"审核中",3:"通过",4:"未通过",5:"农资入库"})[v.applicantStatus]}}</text>
<text class="type" :style="{'--bg':({1:'#EE263A',2:'#FFCB69',3:'#FFCB69',4:'#FFCB69',5:'#00ff00'})[v.applicantStatus]}">{{({1:"审核未通过",2:"待审核",3:"待审核",4:"审核",5:"审核通过"})[v.applicantStatus]}}</text>
</view>
</view>
<u-empty :show="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/>
@ -111,10 +111,11 @@ export default {
return{
searchVal:{
goodsName:"",
roleCode:this.$store.getters['userInfo'].roleCode,
// roleCode:this.$store.getters['userInfo'].roleCode,
pageNo:1,
pageSize:6,
companyId:this.$store.getters['userInfo'].companyId
baseId:this.$store.state.baseInfo.id,
// companyId:this.$store.getters['userInfo'].companyId
},
total:0,
list:[],
@ -131,12 +132,13 @@ export default {
},
async search(){
if(this.total==0||this.list.length<this.total){
var res = await request("/api/purchase/purchaseList",{
params:this.searchVal
var res = await request("/api/purchase/purchasePageList",{
method:"post",
body:this.searchVal
})
if(res.statu){
this.list=this.list.concat(res.data.records)
this.total=res.data.total
this.list=this.list.concat(res.data.realRecords)
this.total=res.data.page.total
this.searchVal.pageNo++
if(this.list.length==this.total)uni.showToast({title:"加载完成!",icon:"none"})
}else{

Loading…
Cancel
Save