| | |
| | | </view> |
| | | <view v-if="roleType == 1" class="notice-bar"> |
| | | <u-notice-bar :text="text" :fontSize="30"></u-notice-bar> |
| | | <view class="notice-icon" style="background: url('../../../static/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;"></view> |
| | | <view |
| | | class="notice-icon" |
| | | style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;" |
| | | ></view> |
| | | </view> |
| | | <view v-else-if="roleType == 2" class="notice-bar"><u-notice-bar :text="text1" :fontSize="30"></u-notice-bar></view> |
| | | <view class="card-main"> |
| | | <view class="card-block"> |
| | | <view class="forward-card" v-for="(val, index) in jhOrderPlanForwardList" :key="index"> |
| | | <view class="forward-card" v-for="(val, index) in jhOrderPlanForwardList" :key="val.vid"> |
| | | <u-swipe-action> |
| | | <u-swipe-action-item :options="options1" @click="deleteGroup(index, val)"> |
| | | <u-swipe-action-item :options="options1" @click="deleteGroup(index, val)" :name="val.vid"> |
| | | <view class="card-content"> |
| | | <u--form labelPosition="left" :model="forwardForm" ref="form1"> |
| | | <u-form-item label="转发对象" labelWidth="21%" ref="item1" @click="forwardObjectClick(index)"> |
| | |
| | | carNum: item.carNum, |
| | | xsUserId: item.xsUserId === null ? 0 : item.xsUserId, |
| | | fleetId: item.fleetId === null ? 0 : item.fleetId, |
| | | checkboxValue1: '' |
| | | checkboxValue1: '', |
| | | vid: new Date().getTime() |
| | | }; |
| | | }); |
| | | } else if (res.data.length !== 0 && this.roleType == 2) { |
| | |
| | | carNum: item.carNum, |
| | | xsUserId: item.xsUserId === null ? 0 : item.xsUserId, |
| | | fleetId: item.fleetId === null ? 0 : item.fleetId, |
| | | checkboxValue1: '' |
| | | checkboxValue1: '', |
| | | vid: new Date().getTime() |
| | | }; |
| | | }); |
| | | } else { |
| | |
| | | if (!v.orderPlanId) { |
| | | return { |
| | | ...v, |
| | | orderPlanId: params.orderPlanId |
| | | orderPlanId: params.orderPlanId, |
| | | vid: new Date().getTime() |
| | | }; |
| | | } |
| | | }); |
| | |
| | | let time; |
| | | let that = this; |
| | | that.$set(that.jhOrderPlanForwardList[index], 'carNum', Number(value)); |
| | | if (that.roleType == 1) { |
| | | if (that.jhOrderPlanForwardList[index].carNum < that.carNumSurplus1) { |
| | | that.jhOrderPlanForwardList[index].checkboxValue1 = ''; |
| | | } |
| | | } |
| | | if (that.roleType == 2) { |
| | | if (that.jhOrderPlanForwardList[index].carNum < that.carNumSurplusHuodai) { |
| | | that.jhOrderPlanForwardList[index].checkboxValue1 = ''; |
| | | } |
| | | } |
| | | return (function() { |
| | | if (!time) { |
| | | time = setTimeout(() => { |
| | |
| | | xsUserId: 0, |
| | | fleetId: 0, |
| | | checkboxValue1: '', |
| | | ischecked: false |
| | | ischecked: false, |
| | | vid: new Date().getTime() |
| | | }); |
| | | } else { |
| | | this.jhOrderPlanForwardList.push({ |
| | |
| | | xsUserId: 0, |
| | | fleetId: 0, |
| | | checkboxValue1: '', |
| | | ischecked: true |
| | | ischecked: true, |
| | | vid: new Date().getTime() |
| | | }); |
| | | } |
| | | this.calculate(this.jhOrderPlanForwardList); |