| | |
| | | <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" |
| | |
| | | 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> |
| | |
| | | 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 |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | 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; |
| | | }) |
| | |
| | | if(res.code === 0){ |
| | | this.$u.toast('操作成功'); |
| | | setTimeout(()=>{ |
| | | uni.navigateBack() |
| | | uni.navigateBack({ |
| | | delta: 2 |
| | | }); |
| | | },500) |
| | | }else{ |
| | | this.$u.toast(res.msg ? res.msg :'操作成功'); |
| | |
| | | |
| | | } |
| | | }, |
| | | |
| | | |
| | | |
| | | } |
| | | </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) |