| | |
| | | @click.stop="addForm" |
| | | :disabled="whetherClick"></u-button></view> |
| | | <!-- 提交按钮 --> |
| | | <view class="forwardBtn"><u-button text="提交" |
| | | <view |
| | | @click.stop="submitForm" |
| | | class="forwardBtn"><u-button text="提交" |
| | | :hairline="false" |
| | | type="warning" |
| | | @click.stop="submitForm" |
| | |
| | | this.carNumSurplusHuodai = this.forwardSurplus = Number(params.carNumSurplusHuodai || 0); |
| | | this.orderPlanId = params.orderPlanId; |
| | | // 判断是否转发完成 完成则不可再添加 |
| | | if (this.roleType === 1) { |
| | | if (this.roleType === 1) { //roleType 1客户 |
| | | this.whetherClick = this.carNumSurplus1 === 0 |
| | | } else if (this.roleType === 2) { |
| | | } else if (this.roleType === 2) { //roleType 2货代 |
| | | this.whetherClick = this.forwardSurplus === 0 |
| | | } |
| | | this.getOrderPlan() |
| | |
| | | return { |
| | | forwardSurplus: 0, |
| | | paramsName: {}, |
| | | huoDaiData: [], |
| | | fleetData: [], |
| | | huoDaiData: [], //货代Data |
| | | fleetData: [], //车队Data |
| | | // 日计划id |
| | | orderPlanId: '', |
| | | jhOrderPlanForwardList: [{ |
| | | orderPlanId: '', |
| | | name: '', |
| | | carNum: null, |
| | | xsUserId: 0, |
| | | fleetId: 0, |
| | | jhOrderPlanForwardList: [{ //转发对象 |
| | | orderPlanId: '', //日计划Id |
| | | name: '', //车队或货代名称 |
| | | carNum: null, //转发数量 |
| | | xsUserId: 0, //货代Id |
| | | fleetId: 0, //车队Id |
| | | checkboxValue1: '', //全部转发 |
| | | isSelected: false |
| | | }], |
| | |
| | | selectPopupShow: false, |
| | | list1: [{ name: '车队' }, { name: '货代' }], |
| | | tabHuoDai: false, |
| | | carNumSurplus1: '', |
| | | carNumSurplus1: '', //剩余的提煤单数量(转发的数量 - 领取的数量) |
| | | tempcarNumSurplus1: '', |
| | | cars2: '', |
| | | cars2: '', //已经领取的车数 |
| | | carNum: '', |
| | | carNumSurplusHuodai: '', |
| | | formNum: 1, |
| | |
| | | this.fleetData = res.data; |
| | | }); |
| | | }, |
| | | // 转发 |
| | | // 转发对象 |
| | | forwardObjectClick(index, name, id) { |
| | | this.selectPopupShow = true; |
| | | this.index = index; |
| | |
| | | this.jhOrderPlanForwardList[this.index].xsUserId = item.userId; |
| | | this.jhOrderPlanForwardList[this.index].name = item.name; |
| | | this.jhOrderPlanForwardList[this.index].fleetId = 0; |
| | | this.jhOrderPlanForwardList[this.index].forWardType = 1; |
| | | this.jhOrderPlanForwardList[this.index].forWardType = 1; //forWardType 转发类型 货代1 车队2 |
| | | } |
| | | // } |
| | | }); |