| | |
| | | <view class="forward"> |
| | | <view class="forward-banner"> |
| | | <view class="banner-block"> |
| | | <view class="arrow-left" @click="back"><u-icon name="arrow-left" size="40" color="#ffffff"></u-icon></view> |
| | | <view class="arrow-left" |
| | | @click="back"><u-icon name="arrow-left" |
| | | size="40" |
| | | color="#ffffff"></u-icon></view> |
| | | <view class="forward-text">转发</view> |
| | | </view> |
| | | </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('https://mx.jzeg.cn:9095/appimg/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;" |
| | | ></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('https://mx.jzeg.cn:9095/appimg/image/banner/notice.png') no-repeat;background-size: cover; width: 42rpx;height: 42rpx;"> |
| | | </view> |
| | | <view v-else-if="roleType == 2" class="notice-bar"><u-notice-bar :text="text1" :fontSize="30"></u-notice-bar></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"> |
| | | <u-swipe-action> |
| | | <u-swipe-action-item :options="options1" v-for="(val, index) in jhOrderPlanForwardList" :key="val.vid" :name="val.vid" @click="deleteGroup(index, val)"> |
| | | <u-swipe-action-item :options="options1" |
| | | v-for="(val, index) in jhOrderPlanForwardList" |
| | | :key="val.vid" |
| | | :name="val.vid" |
| | | @click="deleteGroup(index, val)"> |
| | | <view class="forward-card"> |
| | | <view class="card-content"> |
| | | <u--form labelPosition="left" :model="forwardForm" ref="form1"> |
| | | <u-form-item label="转发对象" labelWidth="21%" ref="item1" @click="forwardObjectClick(index)"> |
| | | <u--input v-model="val.name" placeholder="点击选择转发对象" :readonly="true" border="bottom"></u--input> |
| | | <u--form labelPosition="left" |
| | | :model="forwardForm" |
| | | ref="form1"> |
| | | <u-form-item label="转发对象" |
| | | labelWidth="21%" |
| | | ref="item1" |
| | | @click="forwardObjectClick(index)"> |
| | | <u--input v-model="val.name" |
| | | placeholder="点击选择转发对象" |
| | | :readonly="true" |
| | | border="bottom"></u--input> |
| | | </u-form-item> |
| | | <u-form-item label="输入数量" ref="item2" labelWidth="21%"> |
| | | <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" |
| | | <u--input v-model="val.carNum" |
| | | placeholder="请输入转发数量" |
| | | @input="debouncecarNumInput(index, val.carNum)" |
| | | @blur="blurInput(index, val.carNum)" |
| | | border="bottom" |
| | | ></u--input> |
| | | border="bottom"></u--input> |
| | | </view> |
| | | <u-checkbox-group v-model="val.checkboxValue1" placement="column" @change="v => checkboxChange(v, index, val)"> |
| | | <u-checkbox |
| | | size="30" |
| | | <u-checkbox-group v-model="val.checkboxValue1" |
| | | placement="column" |
| | | @change="v => checkboxChange(v, index, val)"> |
| | | <u-checkbox size="30" |
| | | shape="circle" |
| | | labelSize="30" |
| | | label="全部转发" |
| | | name="全部转发" |
| | | :disabled="val.ischecked" |
| | | :checked="val.isSelected" |
| | | ></u-checkbox> |
| | | :checked="val.isSelected"></u-checkbox> |
| | | </u-checkbox-group> |
| | | </view> |
| | | </u-form-item> |
| | |
| | | |
| | | <view class="utils-buttonGroup"> |
| | | <!-- 添加按钮 --> |
| | | <view class="AdddBtn"><u-button text="添加" :hairline="false" @click.stop="addForm" :disabled="whetherClick"></u-button></view> |
| | | <view class="AdddBtn"><u-button text="添加" |
| | | :hairline="false" |
| | | @click.stop="addForm" |
| | | :disabled="whetherClick"></u-button></view> |
| | | <!-- 提交按钮 --> |
| | | <view class="forwardBtn"><u-button text="提交" :hairline="false" type="warning" @click.stop="submitForm" :disabled="whetherClick1"></u-button></view> |
| | | <view class="forwardBtn"><u-button text="提交" |
| | | :hairline="false" |
| | | type="warning" |
| | | @click.stop="submitForm" |
| | | :disabled="whetherClick1"></u-button></view> |
| | | </view> |
| | | <!-- 增加按钮 --> |
| | | |
| | | <!-- 选择货代或车队弹出框 --> |
| | | <view class="selectHuoDaiOrFleet-container"> |
| | | <u-popup :show="selectPopupShow" mode="bottom" @close="selectPopupClose" @open="selectPopupOpen"> |
| | | <u-popup :show="selectPopupShow" |
| | | mode="bottom" |
| | | @close="selectPopupClose" |
| | | @open="selectPopupOpen"> |
| | | <view class="selectHuoDaiOrFleet-container-box"> |
| | | <u-tabs :list="list1" @click="tabClick"></u-tabs> |
| | | <view class="" v-if="!tabHuoDai"> |
| | | <u-tabs :list="list1" |
| | | @click="tabClick"></u-tabs> |
| | | <view class="" |
| | | v-if="!tabHuoDai"> |
| | | <u-cell-group> |
| | | <u-cell v-for="(item, index) in fleetData" :key="index" :title="item.name"> |
| | | <view class="cell-util" slot="value"> |
| | | <u-button @click="forwardFleetObjectSelect(item, index)" text="选择" type="primary" size="mini"></u-button> |
| | | <u-cell v-for="(item, index) in fleetData" |
| | | :key="index" |
| | | :title="item.name"> |
| | | <view class="cell-util" |
| | | slot="value"> |
| | | <u-button @click="forwardFleetObjectSelect(item, index)" |
| | | text="选择" |
| | | type="primary" |
| | | size="mini"></u-button> |
| | | </view> |
| | | </u-cell> |
| | | </u-cell-group> |
| | | </view> |
| | | <view class="" v-else-if="tabHuoDai"> |
| | | <view class="" |
| | | v-else-if="tabHuoDai"> |
| | | <u-cell-group> |
| | | <u-cell v-for="(item, index) in huoDaiData" :key="index" :title="item.name"> |
| | | <view class="cell-util" slot="value"> |
| | | <u-button @click="forwardHuoDaiObjectSelect(item, index)" text="选择" type="primary" size="mini"></u-button> |
| | | <u-cell v-for="(item, index) in huoDaiData" |
| | | :key="index" |
| | | :title="item.name"> |
| | | <view class="cell-util" |
| | | slot="value"> |
| | | <u-button @click="forwardHuoDaiObjectSelect(item, index)" |
| | | text="选择" |
| | | type="primary" |
| | | size="mini"></u-button> |
| | | </view> |
| | | </u-cell> |
| | | </u-cell-group> |
| | |
| | | return { |
| | | id: item.id, |
| | | orderPlanId: item.orderPlanId, |
| | | name: item.xsUserName === null ? item.fleetName : item.xsUserName, |
| | | name: item.xsUserName === '' ? item.fleetName : item.xsUserName, |
| | | carNum: item.carNum, |
| | | xsUserId: item.xsUserId === null ? 0 : item.xsUserId, |
| | | fleetId: item.fleetId === null ? 0 : item.fleetId, |
| | | xsUserId: item.xsUserId === '' ? 0 : item.xsUserId, |
| | | fleetId: item.fleetId === '' ? 0 : item.fleetId, |
| | | checkboxValue1: '', |
| | | vid: `${new Date().getTime()}${index}${item.id}` |
| | | }; |
| | |
| | | orderPlanId: item.orderPlanId, |
| | | name: item.fleetName, |
| | | carNum: item.carNum, |
| | | xsUserId: item.xsUserId === null ? 0 : item.xsUserId, |
| | | fleetId: item.fleetId === null ? 0 : item.fleetId, |
| | | xsUserId: item.xsUserId === '' ? 0 : item.xsUserId, |
| | | fleetId: item.fleetId === '' ? 0 : item.fleetId, |
| | | checkboxValue1: '', |
| | | vid: `${new Date().getTime()}${index}${item.id}` |
| | | }; |
| | |
| | | fleetData: [], |
| | | // 日计划id |
| | | orderPlanId: '', |
| | | jhOrderPlanForwardList: [ |
| | | { |
| | | jhOrderPlanForwardList: [{ |
| | | orderPlanId: '', |
| | | name: '', |
| | | carNum: null, |
| | |
| | | fleetId: 0, |
| | | checkboxValue1: '', |
| | | isSelected: false |
| | | } |
| | | ], |
| | | }], |
| | | // 索引,利用索引正确显示 |
| | | index: '', |
| | | checkboxValue1: '', |
| | |
| | | whetherClick: false, |
| | | whetherClick1: false, |
| | | // 滑动单元格配置 |
| | | options1: [ |
| | | { |
| | | options1: [{ |
| | | text: '删除', |
| | | style: { |
| | | backgroundColor: '#FB0101' |
| | | } |
| | | } |
| | | ] |
| | | }] |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | }); |
| | | if (value.length != 0) { |
| | | if (this.roleType == 1) { |
| | | this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.carNumSurplus1, this.jhOrderPlanForwardList[index].carNum); |
| | | this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.carNumSurplus1, this |
| | | .jhOrderPlanForwardList[index].carNum); |
| | | this.calculate(this.jhOrderPlanForwardList); |
| | | } |
| | | if (this.roleType == 2) { |
| | | this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.carNumSurplusHuodai, this.jhOrderPlanForwardList[index].carNum); |
| | | this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.carNumSurplusHuodai, this |
| | | .jhOrderPlanForwardList[index].carNum); |
| | | this.calculate(this.jhOrderPlanForwardList); |
| | | } |
| | | // 选择一个后其余禁止复选 |
| | |
| | | time = setTimeout(() => { |
| | | that.calculate(that.jhOrderPlanForwardList); |
| | | if (that.roleType == 1) { |
| | | if (that.jhOrderPlanForwardList[index].carNum < Number(that.carNumSurplus1)) { |
| | | if (that.jhOrderPlanForwardList[index].carNum < Number(that |
| | | .carNumSurplus1)) { |
| | | that.$set(that.jhOrderPlanForwardList[index], 'checkboxValue1', ''); |
| | | that.jhOrderPlanForwardList.forEach((v, i) => { |
| | | if (index != i) { |
| | |
| | | } |
| | | |
| | | if (that.roleType == 2) { |
| | | if (that.jhOrderPlanForwardList[index].carNum < Number(that.carNumSurplusHuodai)) { |
| | | if (that.jhOrderPlanForwardList[index].carNum < Number(that |
| | | .carNumSurplusHuodai)) { |
| | | that.$set(that.jhOrderPlanForwardList[index], 'checkboxValue1', ''); |
| | | that.jhOrderPlanForwardList.forEach((v, i) => { |
| | | if (index != i) { |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | <style lang="scss" |
| | | scoped> |
| | | @mixin flex { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: center; |
| | | } |
| | | |
| | | /deep/ .u-notice-bar { |
| | | background: rgba(255, 255, 255, 0.3) !important; |
| | | box-shadow: 0rpx 0rpx 5rpx 0rpx rgba(27, 103, 255, 0); |
| | | border-radius: 28rpx; |
| | | |
| | | .u-notice__content { |
| | | text { |
| | | text-shadow: 3rpx 3rpx 8rpx #4784fe; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | /deep/ .u-input { |
| | | border-bottom: 1px solid #c4c4c4; |
| | | width: 458rpx; |
| | | } |
| | | |
| | | ::v-deep.forward { |
| | | width: 100%; |
| | | margin: 0 auto; |
| | | |
| | | .forward-banner { |
| | | width: 100%; |
| | | height: 430rpx; |
| | |
| | | @include flex; |
| | | justify-content: flex-start; |
| | | overflow: hidden; |
| | | |
| | | .banner-block { |
| | | width: 50%; |
| | | @include flex; |
| | | position: relative; |
| | | top: -75rpx; |
| | | left: 32rpx; |
| | | |
| | | .forward-text { |
| | | width: 80rpx; |
| | | font-size: 40rpx; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .notice-bar { |
| | | width: 688rpx; |
| | | height: 56rpx; |
| | |
| | | position: relative; |
| | | top: -200rpx; |
| | | background: transparent; |
| | | |
| | | .notice-icon { |
| | | position: absolute; |
| | | top: 21rpx; |
| | | left: 7rpx; |
| | | } |
| | | } |
| | | |
| | | .card-main { |
| | | width: 100%; |
| | | @include flex; |
| | |
| | | top: -100rpx; |
| | | z-index: 1; |
| | | margin-bottom: vww(40); |
| | | |
| | | .card-block { |
| | | width: 690rpx; |
| | | @include flex; |
| | | flex-direction: column; |
| | | |
| | | .forward-card { |
| | | margin-top: vww(10); |
| | | width: 690rpx; |
| | |
| | | background: #ffffff; |
| | | box-shadow: 4rpx 6rpx 25rpx 0rpx rgba(73, 120, 240, 0.15); |
| | | border-radius: 20rpx; |
| | | |
| | | .card-content { |
| | | width: 612rpx; |
| | | margin-left: 48rpx; |
| | | margin-top: 24rpx; |
| | | |
| | | // margin: 56rpx 30rpx 70rpx 48rpx; |
| | | .u-form { |
| | | .u-form-item { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .u-form-item__body__right { |
| | | .u-form-item__body__right__content { |
| | | .u-form-item__body__right__content__slot { |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | align-items: flex-end; |
| | | |
| | | .forward-card-amount-input { |
| | | .u-input { |
| | | width: 263rpx; |
| | | } |
| | | } |
| | | |
| | | .u-checkbox-group { |
| | | position: relative; |
| | | top: vww(8); |
| | | left: vww(4); |
| | | |
| | | .u-checkbox { |
| | | .u-checkbox__icon-wrap { |
| | | border-color: rgba(42, 97, 255, 1) !important; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .utils-buttonGroup { |
| | | width: 610rpx; |
| | | @include flex; |
| | |
| | | bottom: vww(30); |
| | | left: vww(30); |
| | | z-index: 3; |
| | | |
| | | .AdddBtn, |
| | | .forwardBtn { |
| | | width: 290rpx; |
| | | } |
| | | |
| | | .AdddBtn { |
| | | .u-button { |
| | | height: 74rpx; |
| | |
| | | color: #3b56eb; |
| | | } |
| | | } |
| | | |
| | | .forwardBtn { |
| | | .u-button { |
| | | height: 74rpx; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .selectHuoDaiOrFleet-container { |
| | | .u-popup { |
| | | .u-transition { |
| | |
| | | |
| | | .u-popup__content { |
| | | overflow: scroll !important; |
| | | |
| | | .selectHuoDaiOrFleet-container-box { |
| | | width: 90%; |
| | | margin: 0 auto; |