Browse Source

修改出入库页面名称

master
邓宏 2 years ago
parent
commit
758558164c
  1. 25
      pages/massif/mana/plantPlan.vue
  2. 2
      pages/stock/list.vue
  3. 4
      router/stock.js

25
pages/massif/mana/plantPlan.vue

@ -133,7 +133,7 @@
<view class="recovery" style="--c:#FFC760;">已采收{{v.harvested}}kg</view> <view class="recovery" style="--c:#FFC760;">已采收{{v.harvested}}kg</view>
<view class="mu"> <view class="mu">
<text>{{v.plantArea}}</text> <text>{{v.plantArea}}</text>
<button class="cu-btn bg-white sm plant-shanchu" @click.stop="del">删除</button> <button class="cu-btn bg-white sm plant-shanchu" v-if="v.status!=2" @click.stop="del(k)">删除</button>
</view> </view>
</view> </view>
</view> </view>
@ -250,13 +250,32 @@ export default {
events:{ toRecovery:()=> this.$emit("trigger",{tabIndex:2,plantId}) } events:{ toRecovery:()=> this.$emit("trigger",{tabIndex:2,plantId}) }
}) })
}, },
del(){ del(index){
uni.showModal({ uni.showModal({
title:"提示", title:"提示",
content:"确定删除!", content:"确定删除!",
success: async e=>{ success: async e=>{
if(e.confirm){ if(e.confirm){
var res=await request("/api/plantPlan/deletePlantPlanSchedule",{
method:"delete",
params:{id: this.list[index].id}
})
if(res.statu){
uni.showToast({title:"删除成功!",icon:"success"})
if(this.list.length>this.searchVal.pageNo+3)this.list.splice(index,1);
else{
this.list=[]
this.total=0
this.searchVal.pageNo=1
this.search()
}
}else{
uni.showModal({
title:"提示",
content:res.msg||"删除失败!",
showCancel:false,
})
}
} }
} }
}) })

2
pages/stock/list.vue

@ -268,7 +268,7 @@ export default{
this.formData.substanceType = ({nz:1, ncp:2})[options.type], this.formData.substanceType = ({nz:1, ncp:2})[options.type],
this.mode=options.mode this.mode=options.mode
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title:({out:"出库",in:"入库列表"})[this.mode] title:({out:"出库",in:"入库"})[this.mode]
}) })
this.init() this.init()
}, },

4
router/stock.js

@ -30,10 +30,10 @@ module.exports=[
} }
} }
}, },
{ {//出入库列表
path:"pages/stock/list", path:"pages/stock/list",
style:{ style:{
navigationBarTitleText:"出入库列表", navigationBarTitleText:"",
navigationBarBackgroundColor:"#10C176", navigationBarBackgroundColor:"#10C176",
navigationBarTextStyle:"white", navigationBarTextStyle:"white",
"app-plus":{ "app-plus":{

Loading…
Cancel
Save