| | |
| | | <u-notice-bar :text="text" |
| | | :fontSize="30"></u-notice-bar> |
| | | <view class="notice-icon" |
| | | style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;"> |
| | | style="background: url('https://mr1.res.jzeg.cn:9096/appimg/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;"> |
| | | </view> |
| | | </view> |
| | | <view v-else-if="roleType == 2" |
| | |
| | | forwardSurplus: 0, |
| | | paramsName: {}, |
| | | huoDaiData: [], |
| | | isClickFlag:true,// true 可以 or false for forward and back to the direction of the car direction (default |
| | | fleetData: [], |
| | | // 日计划id |
| | | orderPlanId: '', |
| | |
| | | carNum: null, |
| | | xsUserId: 0, |
| | | fleetId: 0, |
| | | checkboxValue1: '', |
| | | checkboxValue1: '', //全部转发 |
| | | isSelected: false |
| | | }], |
| | | // 索引,利用索引正确显示 |
| | |
| | | formNum: 1, |
| | | // 个人转发数据 |
| | | personalForward: {}, |
| | | whetherClick: false, |
| | | whetherClick: false, //添加按钮 |
| | | whetherClick1: false, |
| | | // 滑动单元格配置 |
| | | options1: [{ |
| | |
| | | }], |
| | | loading: false, //提交loading |
| | | originForwardName: '', //原转发对象 |
| | | laterForwardName: '', //后转发对象 |
| | | laterForwardName: '', //后转发对象 |
| | | errorDataList: [], // 错误数据 |
| | | isDirectAdd: false, // 是否是在原来有对象的item修改 是的为true |
| | | forwardId: '' //原来有对象 点击赋值 |
| | | forwardId: '' //原来有对象 点击赋值 |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | }, |
| | | // 转发 |
| | | forwardObjectClick(index, name, id) { |
| | | if(!id){ |
| | | this.selectPopupShow = true; |
| | | this.index = index; |
| | | this.originForwardName = name || '' |
| | | this.isDirectAdd = this.originForwardName !== '' |
| | | this.forwardId = id |
| | | }else{ |
| | | return |
| | | } |
| | | |
| | | }, |
| | | selectPopupClose() { |
| | | this.selectPopupShow = false; |
| | |
| | | return cur.carNum + prev; |
| | | }, 0); |
| | | console.log(total, '提煤单一共的数据'); |
| | | //roleType 1客户 2 货代 3司机 5装卸员 |
| | | if (this.roleType == 1) { |
| | | if (Number(this.cars2) > total) { |
| | | this.carNumSurplus1 = Number(this.cars2) - total; |
| | | this.whetherClick = false; |
| | | this.whetherClick1 = false; |
| | | } else if (Number(this.cars2) == total) { |
| | | } else if (Number(this.cars2) == total) { //剩余的提煤单为0(添加、提交按钮不能点击) |
| | | this.whetherClick = true; |
| | | this.whetherClick1 = false; |
| | | this.carNumSurplus1 = Number(this.cars2) - total; |
| | |
| | | let time; |
| | | let that = this; |
| | | that.$set(that.jhOrderPlanForwardList[index], 'carNum', Number(value)); |
| | | //forWardType 转发类型 1货代 2车队 |
| | | that.$set(that.jhOrderPlanForwardList[index], 'forWardType', xsUserId ? 1 : 2); |
| | | return (function() { |
| | | if (!time) { |
| | |
| | | return isPass; |
| | | } |
| | | }); |
| | | console.log(this.jhOrderPlanForwardList,'jhOderPlan') |
| | | if (isPass) { |
| | | this.loading = true; |
| | | this.$reqPost('forward', this.jhOrderPlanForwardList, 'json').then(res => { |
| | | console.log(res, 'zh'); |
| | | // res.data.length == 0 提交成功 否则提交失败 |
| | | // res.data.length == 0 提交成功 否则提交失败 |
| | | if (res.data.length == 0) { |
| | | this.loading = false |
| | | this.$u.toast('提交成功'); |
| | |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |