| | |
| | | <template> |
| | | <!-- 转发 --> |
| | | <view class="forward"> |
| | | <view><u-notice-bar :text="text" :fontSize="30" mode="link"></u-notice-bar></view> |
| | | <view v-if="roleType == 1"><u-notice-bar :text="text" :fontSize="30" mode="link"></u-notice-bar></view> |
| | | <view v-else-if="roleType == 2"><u-notice-bar :text="text1" :fontSize="30" mode="link"></u-notice-bar></view> |
| | | <view class="forward-card" v-for="(val, index) in jhOrderPlanForwardList"> |
| | | <u--form labelPosition="top" :model="forwardForm" ref="form1"> |
| | | <u-form-item label="转发对象" labelWidth="20%" ref="item1" @click="forwardObjectClick(index)"> |
| | |
| | | |
| | | export default { |
| | | onLoad(params) { |
| | | // 客户 |
| | | this.cars2 = Number(params.cars2); |
| | | this.carNumSurplus1 = Number(params.carNumSurplus1); |
| | | // 货代 |
| | | this.carNum = Number(params.carNum); |
| | | this.carNumSurplusHuodai = Number(params.carNumSurplusHuodai); |
| | | if (params.carNumSurplus1 || params.carNumSurplusHuodai) { |
| | | if (params.carNumSurplus1 != 0) { |
| | | this.forwardSurplus = params.carNumSurplus1; |
| | |
| | | checkboxValue1: '' |
| | | }; |
| | | }); |
| | | console.log(this.jhOrderPlanForwardList, '列表'); |
| | | } else { |
| | | this.jhOrderPlanForwardList = this.jhOrderPlanForwardList.map(v => { |
| | | if (!v.orderPlanId) { |
| | |
| | | tabHuoDai: false, |
| | | carNumSurplus1: '', |
| | | cars2: '', |
| | | carNum: '', |
| | | carNumSurplusHuodai: '', |
| | | formNum: 1 |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | text() { |
| | | return `已领取${this.cars2}张日计划单,剩余${this.carNumSurplus1}张日计划单`; |
| | | }, |
| | | text1() { |
| | | return `已拥有${this.carNum}张日计划单,剩余${this.carNumSurplusHuodai}张日计划单`; |
| | | } |
| | | }, |
| | | methods: { |