| | |
| | | label="车牌号" |
| | | labelWidth="20%" |
| | | borderBottom |
| | | required> |
| | | > |
| | | <u--input v-model="registerFormModel.carNo" |
| | | placeholder="请输入内容" |
| | | clearable></u--input> |
| | |
| | | borderBottom |
| | | required v-if="daydata.isWeighing==1"> |
| | | <u--input v-model="skin" |
| | | border="surround" |
| | | placeholder="请输入皮重" |
| | | clearable></u--input> |
| | | </u-form-item> |
| | |
| | | borderBottom |
| | | required v-if="daydata.isWeighing==1"> |
| | | <u--input v-model="hair" |
| | | border="surround" |
| | | placeholder="请输入毛重" |
| | | clearable></u--input> |
| | | </u-form-item> |
| | |
| | | borderBottom |
| | | required v-if="daydata.isWeighing==1"> |
| | | <u--input v-model="clean" |
| | | border="surround" |
| | | disabled |
| | | placeholder="请输入净重" |
| | | clearable></u--input> |
| | | </u-form-item> |
| | |
| | | </uni-table> |
| | | <u-form-item prop='contactPicture'> |
| | | <view class="label-text"> |
| | | <text style="color: #f56c6c;">*</text>原发磅单 |
| | | <text style="color: #f56c6c;">*</text>原发单据 |
| | | </view> |
| | | <u-upload :fileList="fileList1" |
| | | @afterRead="afterRead" |
| | |
| | | </u-form-item> --> |
| | | </u--form> |
| | | </view> |
| | | <view class="history-numbers"> |
| | | <!-- <view class="history-numbers"> |
| | | <scroll-view :scroll-top="scrollTop" |
| | | scroll-y="true" |
| | | class="scroll-Y" |
| | |
| | | <view class="fourth"> |
| | | <view class="fourth-icon"> |
| | | <view |
| | | style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://mx.jzeg.cn:9096/appimg/image/banner/clock.png') no-repeat;background-size: cover"> |
| | | style="width: 24rpx;height: 24rpx;line-height: 24rpx;background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/clock.png') no-repeat;background-size: cover"> |
| | | </view> |
| | | </view> |
| | | <view class="senddate">{{ daydata.sendDate }}</view> |
| | |
| | | <view class="fourth"> |
| | | <view class="fourth-icon"> |
| | | <view |
| | | style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://mx.jzeg.cn:9096/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;"> |
| | | style="width: 26rpx;height: 26rpx;line-height: 26rpx;background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/carnNUm.png') no-repeat;background-size: cover;"> |
| | | </view> |
| | | </view> |
| | | <view class="senddate">{{ daydata.orderCode }}</view> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> |
| | | </scroll-view> |
| | | </view> --> |
| | | <combined-title |
| | | :title="yuYueData.length != 0 ? yuYueData[0].filedName + '——' + yuYueData[0].sendDate : '暂无预约列表'"></combined-title> |
| | | <view class="appointment-table"> |
| | |
| | | import { apiRegister } from '@/api/publicInterface.js'; |
| | | import { mapMutations } from 'vuex'; |
| | | import { BaseUrl } from '@/api/publicInterface.js'; |
| | | import BigNumber from "bignumber.js" |
| | | export default { |
| | | // 监听页面初次渲染完成。注意如果渲染速度快,会在页面进入动画完成前触发 |
| | | onReady() { |
| | |
| | | }, |
| | | skin:"", |
| | | hair:"", |
| | | clean:"", |
| | | TableData:[], |
| | | radiolist1: [{ |
| | | name: '否', |
| | |
| | | trigger: ['change', 'blur'] |
| | | } |
| | | ], |
| | | carNo: [{ |
| | | type: 'string', |
| | | required: true, |
| | | message: '请输入车牌号', |
| | | trigger: ['blur', 'change'] |
| | | }, |
| | | { |
| | | transform(value) { |
| | | return String(value); |
| | | }, |
| | | validator: (rule, value, callback) => { |
| | | return uni.$u.test.carNo(value); |
| | | }, |
| | | message: '请输入正确的车牌号', |
| | | trigger: ['change', 'blur'] |
| | | } |
| | | ], |
| | | // carNo: [{ |
| | | // type: 'string', |
| | | // required: true, |
| | | // message: '请输入车牌号', |
| | | // trigger: ['blur', 'change'] |
| | | // }, |
| | | // { |
| | | // transform(value) { |
| | | // return String(value); |
| | | // }, |
| | | // validator: (rule, value, callback) => { |
| | | // return uni.$u.test.carNo(value); |
| | | // }, |
| | | // message: '请输入正确的车牌号', |
| | | // trigger: ['change', 'blur'] |
| | | // } |
| | | // ], |
| | | }, |
| | | }; |
| | | }, |
| | | computed:{ |
| | | clean() { |
| | | if(this.daydata.isWeighing==1){ |
| | | let xx = BigNumber(this.hair ? this.hair : 0) |
| | | let yy = BigNumber(this.skin ? this.skin : 0) |
| | | return xx.minus(yy).toNumber() > 0 ? xx.minus(yy).toNumber().toFixed(2) : 0 |
| | | }else{ |
| | | //数量 |
| | | if(!this.tmTaskCoalList.length){ |
| | | return false |
| | | }else{ |
| | | const reslut = this.tmTaskCoalList.find(item=>!item.productQuantity); |
| | | if(reslut){ |
| | | return false |
| | | }else{ |
| | | return true |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['changeisUploadimg']), |
| | | // input聚焦 |
| | | inputFocus(v) { |
| | | if (v == 1) { |
| | | this.isfocus1 = true; |
| | | } else { |
| | | this.isfocus2 = true; |
| | | } |
| | | }, |
| | | // input失焦 |
| | | inputBlur() { |
| | | this.isfocus1 = false; |
| | | this.isfocus2 = false; |
| | | }, |
| | | inputChange() { |
| | | if (Number(this.originInfoForm.coalContactHair) > 0 && Number(this.originInfoForm.coalContactSkin > |
| | | 0)) { |
| | | this.isInputOrigin = true; |
| | | } |
| | | }, |
| | | deletePic(event) { |
| | | this.changeisUploadimg(true); |
| | | this[`fileList${event.name}`].splice(event.index, 1); |
| | |
| | | }); |
| | | if (res.code === 0) { |
| | | uni.$u.toast('预约成功') |
| | | this.GetMyDelivery() |
| | | this.GetMyDeliverys() |
| | | } else { |
| | | uni.$u.toast(res.msg ? res.msg : '预约失败') |
| | | } |
| | | }) |
| | | }else{ |
| | | let numDtoList=this.tmTaskCoalList.map(item=>{ |
| | | return {tmId:item.id,num:item.productQuantity,coalName:item.coalName} |
| | | return {tmId:item.productId,num:item.productQuantity,coalName:item.coalName} |
| | | }) |
| | | this.$reqPost('saveMyDelivery',{ |
| | | productName:this.daydata.productName, |
| | |
| | | }); |
| | | if (res.code === 0) { |
| | | uni.$u.toast('预约成功') |
| | | this.GetMyDelivery() |
| | | this.GetMyDeliverys() |
| | | } else { |
| | | uni.$u.toast(res.msg ? res.msg : '预约失败') |
| | | } |
| | |
| | | }); |
| | | if (res.code === 0) { |
| | | uni.$u.toast('预约成功') |
| | | this.GetMyDelivery() |
| | | this.GetMyDeliverys() |
| | | } else { |
| | | uni.$u.toast(res.msg ? res.msg : '预约失败') |
| | | } |
| | |
| | | } |
| | | }) |
| | | }, |
| | | GetMyDeliverys() { |
| | | this.$reqGet('driverYuYueList', {orderPlanId:this.id}).then(res => { |
| | | if (res.code == 0) { |
| | | this.yuYueData = res.data; |
| | | } else { |
| | | this.$u.toast('加载失败'); |
| | | } |
| | | }); |
| | | this.$reqGetId('myDelivery',this.id).then(res => { |
| | | if (res.data) { |
| | | this.daydata=res.data |
| | | this.tmTaskCoalList=res.data.jhOrderPlanList |
| | | } |
| | | }); |
| | | }, |
| | | GetMyDelivery() { |
| | | uni.showLoading({ |
| | | title: '加载中...' |