| | |
| | | :readonly="true" |
| | | border="bottom"></u--input> |
| | | </u-form-item> |
| | | <u-form-item label="输入数量" |
| | | <u-form-item label="输入车数" |
| | | ref="item2" |
| | | labelWidth="21%"> |
| | | <view class="forward-card-amount"> |
| | | <view class="forward-card-amount-input"> |
| | | <u--input v-model="val.carNum" |
| | | placeholder="请输入转发数量" |
| | | placeholder="请输入转发车数" |
| | | @input="debouncecarNumInput(index, val.carNum,val.xsUserId)" |
| | | @blur="blurInput(index, val.carNum,val.xsUserId)" |
| | | border="bottom"></u--input> |
| | |
| | | </u-form-item> |
| | | |
| | | </u--form> |
| | | <view><u-button v-if="/聚氯乙烯树脂/.test(this.productName) && isShow" text="分配日计划吨数" type="primary" :plain="true" @click="todoFenPei(val)"></u-button></view> |
| | | <view><u-button v-if="fenpeiFlag " text="分配日计划吨数" type="primary" :plain="true" @click="todoFenPei(val)"></u-button></view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | :disabled="whetherClick"></u-button></view> |
| | | <!--分享日计划 --> |
| | | <view |
| | | class="AdddBtn" v-if="isshow && roleType!== 2 "><u-button text="分享日计划" |
| | | class="AdddBtn" v-if="isshow && roleType!== 2 && btnFlag"><u-button text="分享日计划" |
| | | :hairline="false" |
| | | open-type="share" |
| | | :loading='loading'></u-button></view> |
| | |
| | | this.isshow=!reg.test(params.orderType) |
| | | this.productName = params.productName; |
| | | this.customerId = params.customerId; |
| | | this.packingType = params.packingType; |
| | | this.pvcPlanMeasure = params.pvcPlanMeasure; |
| | | this.productId = params.productId; |
| | | // 客户 |
| | | this.cars2 = Number(params.cars2); |
| | | this.tempcarNumSurplus1 = this.carNumSurplus1 = Number(params.carNumSurplus1 || 0); |
| | |
| | | pvcPlanMeasure:'', |
| | | forwardSurplus: 0, |
| | | paramsName: {}, |
| | | packingType:'', |
| | | productId:'', |
| | | productName:'', |
| | | customerId:'', |
| | | huoDaiData: [], |
| | |
| | | formNum: 1, |
| | | // 个人转发数据 |
| | | personalForward: {}, |
| | | falseProductNames:['1818237609508347905','1818237832536268801','1818211942485995521'], |
| | | whetherClick: false, //添加按钮 |
| | | whetherClick1: false, |
| | | // 滑动单元格配置 |
| | |
| | | }, |
| | | text1() { |
| | | return `已拥有${this.carNum}张收发单,剩余${this.carNumSurplusHuodai}张收发单`; |
| | | }, |
| | | fenpeiFlag(){ |
| | | console.log(this.productName,this.packingType,'122222222cumped',/聚氯乙烯树脂/.test(this.productName) || (this.packingType && this.packingType == '1')) |
| | | if(/聚氯乙烯树脂/.test(this.productName) || (this.packingType && this.packingType == '1')){ |
| | | return true |
| | | }else{ |
| | | return false |
| | | } |
| | | }, |
| | | btnFlag(){ |
| | | if(this.falseProductNames.includes(this.productId) || this.carNumSurplus1 <= 0){ |
| | | return false; |
| | | }else{ |
| | | return true; |
| | | } |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | this.$u.toast('请输入合法数字'); |
| | | isPass = false; |
| | | return isPass; |
| | | } else if (!v.name){ |
| | | this.$u.toast('请选择车队'); |
| | | isPass = false; |
| | | return isPass; |
| | | } else { |
| | | isPass = true; |
| | | return isPass; |
| | |
| | | this.$reqPost('forward', this.jhOrderPlanForwardList, 'json').then(res => { |
| | | console.log(res, 'zh'); |
| | | // res.data.length == 0 提交成功 否则提交失败 |
| | | if (res.data.length == 0) { |
| | | if (res.code === 0) { |
| | | this.loading = false |
| | | this.$u.toast('提交成功'); |
| | | if(/聚氯乙烯树脂/.test(this.productName)){ |
| | | if(this.fenpeiFlag){ |
| | | setTimeout(()=>{ |
| | | uni |
| | | .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${1}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); |
| | |
| | | todoFenPei(val){ |
| | | uni |
| | | .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&fleetId=${val.fleetId}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); |
| | | } |
| | | }, |
| | | |
| | | } |
| | | }; |
| | | </script> |