From 3a57b78e4de42dbb934d3ecf12006c47f1ff52de Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期一, 30 十二月 2024 10:36:18 +0800 Subject: [PATCH] feat:临时司机填原发限制&分配吨数输入框修改类型 --- subPages/allocaTetonnage/index.vue | 58 ++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 48 insertions(+), 10 deletions(-) diff --git a/subPages/allocaTetonnage/index.vue b/subPages/allocaTetonnage/index.vue index 7c31bf2..711cb78 100644 --- a/subPages/allocaTetonnage/index.vue +++ b/subPages/allocaTetonnage/index.vue @@ -1,6 +1,16 @@ <template> <view class="warp"> -<view> + + <view + class="notice-bar"> + <u-notice-bar :text="text" + style="font-size:30rpx" + :fontSize="20"></u-notice-bar> + <view class="notice-icon" + style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;"> + </view> + </view> + <view> <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" @@ -14,18 +24,21 @@ stripe emptyText="鏆傛棤鏇村鏁版嵁"> <uni-tr> - <uni-th align="center">搴忓彿</uni-th> - <uni-th width='200' align="center">浜у搧鍚嶇О</uni-th> + <uni-th align="center">杞﹂槦</uni-th> + <uni-th align="center">浜у搧鍚嶇О</uni-th> + <uni-th align="center">浜у搧绛夌骇</uni-th> <uni-th align="center">鍚ㄦ暟</uni-th> </uni-tr> <uni-tr v-for="(item, index) in pageList" :key="item.id"> - <uni-td align="center">{{index + 1}}</uni-td> + <uni-td align="center">{{item.fleetName}}</uni-td> <uni-td align="center">{{ item.productName}}</uni-td> + <uni-td align="center">{{ item.productGrade}}</uni-td> <uni-td align="center"> <u--input placeholder="璇疯緭鍏ュ惃鏁�" border="surround" + type='digit' @change="(val)=>inpChange(val,item.planMeasure)" v-model="item.planMeasure" ></u--input> @@ -54,22 +67,31 @@ pageList:[], orderPlanId:'', customerId:'', - status:'' + status:'', + fleetId:'', + pvcPlanMeasure:'' } }, computed:{ - + text() { + return `鏃ヨ鍒掓�诲惃鏁�${this.pvcPlanMeasure}鍚╜; + }, }, onLoad(params){ console.log(params,'鍙傛暟') this.orderPlanId = params.orderPlanId; this.customerId = params.customerId; - if(params.status === '0'){ + this.pvcPlanMeasure = params.pvcPlanMeasure + + if(params.status === '1'){ this.status = params.status }else{ this.status = ''; } - + if(params.fleetId){ + this.fleetId = params.fleetId + } + @@ -80,7 +102,7 @@ methods: { getBuild(){ console.log(this.productName,'opr') - this.$reqGet('getBuildList',{orderPlanId:this.orderPlanId,customerId:this.customerId,status:this.status}).then(res=>{ + this.$reqGet('getBuildList',{orderPlanId:this.orderPlanId,customerId:this.customerId,status:this.status,fleetId:this.fleetId}).then(res=>{ console.log(res,'resss') this.pageList = res.data; }) @@ -96,7 +118,9 @@ if(res.code === 0){ this.$u.toast('鎿嶄綔鎴愬姛'); setTimeout(()=>{ - uni.navigateBack() + uni.navigateBack({ + delta: 2 + }); },500) }else{ this.$u.toast(res.msg ? res.msg :'鎿嶄綔鎴愬姛'); @@ -116,13 +140,27 @@ } }, + } </script> <style lang='scss' scoped> +.notice-bar { + width: 688rpx; + height: 56rpx; + margin: 0 auto; + position: relative; + // top: -200rpx; + background: transparent; + .notice-icon { + position: absolute; + top: 21rpx; + left: 7rpx; + } + } .warp{ width: 100%; height: calc(100vh - 75rpx) -- Gitblit v1.9.1