| | |
| | | </view> |
| | | </view> |
| | | <view class="senddate">{{ item.orderCode }}</view> |
| | | <view class="rightBtn"><u-button type='primary' text='一键确认' v-if="item.isWeight === 0 && item.tmTaskCoalList.length >1 && item.packingType !== 1" @click.native.stop="allOkBtn(item)"></u-button></view> |
| | | |
| | | <!-- v-if="item.isWeight === 0 && item.tmTaskCoalList.length >1 && item.packingType !== 1" --> |
| | | <view class="rightBtn"><u-button type='primary' v-if=" item.tmTaskCoalList.length >1 && !item.tmTaskCoalList.find(item=>item.isWeight !== 0) && item.packingType !== 1" text='一键确认' @click.native.stop="allOkBtn(item)"></u-button></view> |
| | | </view> |
| | | <view class="fourth"> |
| | | <view class="senddate">{{ proType[item.packingType] }}</view> |
| | | </view> |
| | | |
| | | <view class="table"> |
| | | <uni-table border stripe |
| | | emptyText="暂无更多数据"> |
| | |
| | | <uni-th width='120' |
| | | align="center">操作</uni-th> |
| | | <uni-th align="center" width='800'>产品</uni-th> |
| | | <uni-th align="center" width='110'>等级</uni-th> |
| | | <uni-th align="center" width='110'>包装</uni-th> |
| | | <!-- <uni-th align="center" width='200'>仓库</uni-th> |
| | | <uni-th align="center" width='100'>皮重</uni-th> |
| | | <uni-th align="center" width='100'>毛重</uni-th> |
| | |
| | | <uni-th align="center" width='100'>数量</uni-th> --> |
| | | <uni-th align="center" width='120'>确认量</uni-th> |
| | | <uni-th align="center" width='120'>计划量</uni-th> |
| | | <uni-th align="center" width='120'>计重方式</uni-th> |
| | | |
| | | <!-- <uni-th align="center" width='100'>实际量</uni-th> --> |
| | | |
| | |
| | | <view class="btnBox"> |
| | | <!-- --> |
| | | <!-- <u-button text='查看' @click="viewDetail(subItem)"></u-button> --> |
| | | <u-button type='primary' text='确认装卸' size='mini' v-if="subItem.flag && isBtnShow(item)" @click.native.stop="enterOk(item,subItem)"></u-button> |
| | | <u-button type='primary' text='确认装卸' size='mini' v-if="subItem.flag && isBtnShow(item) && !( item.tmTaskCoalList.length >1 && !item.tmTaskCoalList.find(item=>item.isWeight !== 0) && item.packingType !== 1)" @click.native.stop="enterOk(item,subItem)"></u-button> |
| | | </view></uni-td> |
| | | <uni-td align="left"> |
| | | <view>{{ subItem.productName }}</view></uni-td> |
| | | <uni-td align="center"> |
| | | <view>{{ subItem.productGrade }}</view></uni-td> |
| | | <uni-td align="center"> |
| | | <view>{{ proType[item.packingType] }}</view> |
| | | </uni-td> |
| | | <view>{{ subItem.productName + ( subItem.productGrade ? '-' + subItem.productGrade :'') }}</view></uni-td> |
| | | <!-- <uni-td> |
| | | <view>{{ subItem.bunkerName }}</view> |
| | | </uni-td> |
| | |
| | | <uni-td align="right"> |
| | | <view class="name">{{ subItem.planMeasure }}</view> |
| | | </uni-td> |
| | | |
| | | <uni-td align="right"> |
| | | <u-tag :text="'计数'" plain v-if="subItem.isWeight==0"></u-tag> |
| | | <u-tag :text="'称重'" plain v-else-if="subItem.isWeight==1"></u-tag> |
| | | <u-tag :text="'称重计数'" plain v-else-if="subItem.isWeight==2"></u-tag> |
| | | <u-tag v-else></u-tag> |
| | | </uni-td> |
| | | <!-- <uni-td> |
| | | <view class="name">{{ subItem.realityMeasure }}</view> |
| | | </uni-td> --> |
| | |
| | | </view> |
| | | <view class="senddate">{{ item.orderCode }}</view> |
| | | </view> |
| | | <view class="fourth"> |
| | | <view class="senddate">{{ proType[item.packingType] }}</view> |
| | | </view> |
| | | <view class="table"> |
| | | <uni-table border stripe |
| | | emptyText="暂无更多数据"> |
| | |
| | | <uni-th width='120' |
| | | align="center">操作</uni-th> |
| | | <uni-th align="center" width='800'>产品</uni-th> |
| | | <uni-th align="center" width='90'>等级</uni-th> |
| | | <uni-th align="center" width='90'>包装</uni-th> |
| | | <!-- <uni-th align="center" width='200'>仓库</uni-th> |
| | | <uni-th align="center" width='100'>皮重</uni-th> |
| | | <uni-th align="center" width='100'>毛重</uni-th> |
| | | <uni-th align="center" width='100'>净重</uni-th> |
| | | <uni-th align="center" width='100'>数量</uni-th> --> |
| | | <uni-th align="center" width='100'>确认量</uni-th> |
| | | <uni-th align="center" width='100'>计划量</uni-th> |
| | | <uni-th align="center" width='120'>确认量</uni-th> |
| | | <uni-th align="center" width='120'>计划量</uni-th> |
| | | <uni-th align="center" width='120'>计重方式</uni-th> |
| | | |
| | | |
| | | </uni-tr> |
| | |
| | | <!-- <u-button type='primary' text='修改' size='mini' v-if="subItem.isWeight === 0 || subItem.isWeight === 2 " @click="editOrder(subItem)"></u-button> --> |
| | | <u-button type='primary' text='拼单' size='mini' v-if="isPinShow(item)" @click="pinDan(subItem)"></u-button> |
| | | </view></uni-td> |
| | | <uni-td w align="center"> |
| | | <view>{{ subItem.productName }}</view></uni-td> |
| | | <uni-td align="center"> |
| | | <view>{{ subItem.productGrade }}</view></uni-td> |
| | | <uni-td> |
| | | <view>{{ proType[item.packingType] }}</view> |
| | | </uni-td> |
| | | <uni-td align="left"> |
| | | <view>{{ subItem.productName + ( subItem.productGrade ? '-' + subItem.productGrade :'') }}</view></uni-td> |
| | | <!-- <uni-td> |
| | | <view>{{ subItem.bunkerName }}</view> |
| | | </uni-td> |
| | | </uni-td> |
| | | <uni-td> |
| | | <view class="name" v-if="subItem.skin">{{ Number(subItem.skin).toFixed(2) || '' }}</view> |
| | | </uni-td> |
| | |
| | | <uni-td> |
| | | <view class="name">{{ subItem.productQuantity }}</view> |
| | | </uni-td> --> |
| | | <uni-td> |
| | | <uni-td align="right"> |
| | | <view class="name">{{ subItem.productQuantity }}</view> |
| | | </uni-td> |
| | | <uni-td> |
| | | <uni-td align="right"> |
| | | <view class="name">{{ subItem.planMeasure }}</view> |
| | | </uni-td> |
| | | <uni-td align="right"> |
| | | <u-tag :text="'计数'" plain v-if="subItem.isWeight==0"></u-tag> |
| | | <u-tag :text="'称重'" plain v-else-if="subItem.isWeight==1"></u-tag> |
| | | <u-tag :text="'称重计数'" plain v-else-if="subItem.isWeight==2"></u-tag> |
| | | <u-tag v-else></u-tag> |
| | | </uni-td> |
| | | |
| | | <!-- <uni-td align="center"> |
| | |
| | | <view v-if="activeObj.skin">皮重:{{activeObj.skin.toFixed(2) || ''}}</view> |
| | | <view v-if="activeObj.hair">毛重:{{activeObj.hair.toFixed(2) || ''}}</view> |
| | | </view> |
| | | <view v-if="/聚氯乙烯树脂/.test(activeObj.productName)"> |
| | | <!-- <view v-if="/聚氯乙烯树脂/.test(activeObj.productName)"> |
| | | <view>计划量:{{Number(activeObj.planMeasure)}}</view> |
| | | <view >实际量:{{ Number(activeObj.productQuantity)}}</view> |
| | | </view> |
| | | </view> --> |
| | | <view class="queren" v-show="isCleanFlag === '1'"> |
| | | <text>请输入</text>: |
| | | <text v-if="isNumOk">确认量:</text> |
| | | <text v-if="isNumOk || isFlagNum || blend">请输入:</text> |
| | | <u--input |
| | | type='digit' |
| | | :disabled="yelvFlag" |
| | |
| | | v-model="checkNum" |
| | | > |
| | | </u--input> |
| | | <text> {{isNumOk ? activeObj.productUnit : '吨' }}</text> |
| | | <text v-if="isNumOk || isFlagNum || blend"> {{isNumOk ? activeObj.productUnit : '件' }}</text> |
| | | <text v-if="isClean"> {{'吨' }}</text> |
| | | </view> |
| | | <!-- 是否输入折吨 --> |
| | | <view style="display:flex;margin-top:20rpx" v-if="isClean">是否需要折吨: <u-radio-group |
| | |
| | | <view class="pvcBig" v-if="activeObj.productName === '聚氯乙烯树脂' && activeObj.packingType === 5"> |
| | | |
| | | </view> |
| | | <view v-if="isNumOk && activeObj.planMeasure">计划量:{{activeObj.planMeasure}}{{ activeObj.productUnit || '件' }}</view> |
| | | <view v-if=" activeObj.planMeasure">计划量:{{activeObj.planMeasure}}{{ activeObj.productUnit || '件' }}</view> |
| | | <view v-if="activeObj.containerNumber"><span>集装箱号:</span>{{activeObj.containerNumber}}</view> |
| | | |
| | | </view> |
| | |
| | | |
| | | </view> |
| | | </u-modal> |
| | | <u-modal :show="showConfim" @confirm="confirmEnter" :showCancelButton="true" @cancel="showConfim = false" ref="uModal" :asyncClose="true"> |
| | | <view> 是否确定一键装卸?</view> |
| | | <u-modal :show="showConfim" @confirm="confirmEnter" :showCancelButton="true" @cancel="showConfim = false;isOkNum = ''" ref="uModal" :asyncClose="true"> |
| | | <view class="modalBody"> |
| | | <view style="text-align: center;"> 是否确定一键装卸?</view> |
| | | <view style="display: flex;align-items: center;"><text> 到货:</text> <u--input |
| | | style="display: inline-block;width: 200rpx;border-bottom: solid 1px #ccc;" |
| | | type="digit" |
| | | :placeholder="'数量'" |
| | | v-model="isOkNum" |
| | | > |
| | | </u--input> 件</view> |
| | | </view> |
| | | |
| | | </u-modal> |
| | | <!-- 仓库 --> |
| | | <!-- <u-action-sheet :actions="secondClassActionsList" |
| | |
| | | data() { |
| | | return { |
| | | enterXg:false, |
| | | isOkNum:'', |
| | | fileList1:[], |
| | | activeObjedit:{}, |
| | | discountJpg:'', |
| | |
| | | this.blend = true; |
| | | this.isNumOk = false; |
| | | this.isClean = false; |
| | | this.checkNum = item.productQuantity; |
| | | // this.isCleanFlag = '0'; |
| | | this.isFlagNum = false; |
| | | } |
| | |
| | | this.isCleanFlag = '1'; |
| | | this.blend = false; |
| | | this.isClean = false; |
| | | this.checkNum = item.productQuantity; |
| | | this.isFlagNum = false; |
| | | } |
| | | if( (parintItem.orderType === '外购' ||parintItem.orderType === '外购退' ) && item.isWeight === 0){ |
| | | this.isNumOk = true; |
| | | this.isClean = false; |
| | | this.checkNum = item.productQuantity; |
| | | this.blend = false; |
| | | this.isFlagNum = false; |
| | | this.isCleanFlag = '1'; |
| | |
| | | this.isNumOk = false; |
| | | this.isClean = false; |
| | | this.blend = false; |
| | | this.checkNum = item.productQuantity; |
| | | this.isFlagNum = true; |
| | | this.isCleanFlag = '1'; |
| | | } |
| | |
| | | }, |
| | | //确认 |
| | | confirmEnter(){ |
| | | this.$reqPost('oneClickLoading',{tmId:this.paramsItem.id},'params').then((res) => { |
| | | this.$reqPost('oneClickLoading',{tmId:this.paramsItem.id,kgNum:this.isOkNum},'params').then((res) => { |
| | | if(res.code == 0){ |
| | | console.log(res,'res') |
| | | this.$u.toast('一键确认成功') |
| | |
| | | |
| | | <style lang="scss" |
| | | scoped> |
| | | .modalBody{ |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | } |
| | | ::-webkit-scrollbar{ |
| | | display: none; |
| | | } |