|
|
@ -25,105 +25,108 @@ |
|
|
|
<view class="os-wait" v-if="curTab == 0"> |
|
|
|
<!-- 没数据 --> |
|
|
|
<view class="os-null" v-if="!waitdeliverLs.length"> |
|
|
|
<image></image> |
|
|
|
<view>无已发货</view> |
|
|
|
<image src="/subpackage/order/static/images/package_icon.png"></image> |
|
|
|
<view>无待发货</view> |
|
|
|
</view> |
|
|
|
<view class="oh-box ow-goods" v-else> |
|
|
|
<view class="og-header"> |
|
|
|
<view class="oh-tit"><text>*</text>请选择商品发货</view> |
|
|
|
<view class="oh-select"> |
|
|
|
<view @click="sendOutSelectAll">全选</view> |
|
|
|
<view> |
|
|
|
<image v-if="isSelectedAllSendOut" mode="aspectFit" src="/subpackage/order/static/images/selected.png"></image> |
|
|
|
<block v-else> |
|
|
|
<view class="oh-box ow-goods"> |
|
|
|
<view class="og-header"> |
|
|
|
<view class="oh-tit"><text>*</text>请选择商品发货</view> |
|
|
|
<view class="oh-select"> |
|
|
|
<view @click="sendOutSelectAll">全选</view> |
|
|
|
<view> |
|
|
|
<image v-if="isSelectedAllSendOut" mode="aspectFit" src="/subpackage/order/static/images/selected.png"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="og-list"> |
|
|
|
<view class="ol-item" v-for="(e, i) in waitdeliverLs" :key="i" @click="goodsItemClick(e)"> |
|
|
|
<view class="oi-select"> |
|
|
|
<image v-if="selectedSendOutIds.includes(e.product_id)" mode="aspectFit" src="/subpackage/order/static/images/selected.png"></image> |
|
|
|
</view> |
|
|
|
<image mode="aspecfFill" :src="e.product_imgs"></image> |
|
|
|
<view class="oi-info"> |
|
|
|
<view class="oi-tit">{{ e.product_name || '-' }}</view> |
|
|
|
<view class="oi-spec" v-if="e.product_spec_multi_info&&e.product_spec_multi_info.spec_info&&e.product_spec_multi_info.spec_info.length"> |
|
|
|
<block v-for="(k, j) in e.product_spec_multi_info.spec_info" :key="j"> |
|
|
|
{{ k + ';' }} |
|
|
|
</block> |
|
|
|
<view class="og-list"> |
|
|
|
<view class="ol-item" v-for="(e, i) in waitdeliverLs" :key="i" @click="goodsItemClick(e)"> |
|
|
|
<view class="oi-select"> |
|
|
|
<image v-if="selectedSendOutIds.includes(e.product_id)" mode="aspectFit" src="/subpackage/order/static/images/selected.png"></image> |
|
|
|
</view> |
|
|
|
<image mode="aspecfFill" :src="e.product_imgs"></image> |
|
|
|
<view class="oi-info"> |
|
|
|
<view class="oi-tit">{{ e.product_name || '-' }}</view> |
|
|
|
<view class="oi-spec" v-if="e.product_spec_multi_info&&e.product_spec_multi_info.spec_info&&e.product_spec_multi_info.spec_info.length"> |
|
|
|
<block v-for="(k, j) in e.product_spec_multi_info.spec_info" :key="j"> |
|
|
|
{{ k + ';' }} |
|
|
|
</block> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="oh-box ow-warehouse" > |
|
|
|
<view class="oh-tit"><text>*</text>发货仓库</view> |
|
|
|
<picker :range="warehouseList" range-key="erp_name" @change="warehouseChange"> |
|
|
|
<view class="ow-picker"> |
|
|
|
<input disabled placeholder="请选择发货仓库" :value="selectedWarehouse.erp_name" /> |
|
|
|
<image mode="aspectFit" src="/subpackage/order/static/images/down_arrow.png"></image> |
|
|
|
</view> |
|
|
|
</picker> |
|
|
|
<view class="ow-tip">商品如果不在同一仓库,请分开发货</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="oh-box ow-logistics"> |
|
|
|
<view class="oh-tit">发货物流</view> |
|
|
|
<view class="ol-line"> |
|
|
|
<view class="ol-name"><text>* </text>发货方式</view> |
|
|
|
<view class="ol-mode"> |
|
|
|
<view class="om-item"> |
|
|
|
<view :class="[ sendOutMethod == 0 ? 'active' : '' ]" @click="sendOutMethod = 0"></view> |
|
|
|
<view @click="sendOutMethod = 0">快递</view> |
|
|
|
<view class="oh-box ow-warehouse" > |
|
|
|
<view class="oh-tit"><text>*</text>发货仓库</view> |
|
|
|
<picker :range="warehouseList" range-key="erp_name" @change="warehouseChange"> |
|
|
|
<view class="ow-picker"> |
|
|
|
<input disabled placeholder="请选择发货仓库" :value="selectedWarehouse.erp_name" /> |
|
|
|
<image mode="aspectFit" src="/subpackage/order/static/images/down_arrow.png"></image> |
|
|
|
</view> |
|
|
|
<view class="om-item"> |
|
|
|
<view :class="[ sendOutMethod == 1 ? 'active' : '' ]" @click="sendOutMethod = 1"></view> |
|
|
|
<view @click="sendOutMethod = 1">无需快递</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</picker> |
|
|
|
<view class="ow-tip">商品如果不在同一仓库,请分开发货</view> |
|
|
|
</view> |
|
|
|
<block v-if="sendOutMethod == 0"> |
|
|
|
|
|
|
|
<view class="oh-box ow-logistics"> |
|
|
|
<view class="oh-tit">发货物流</view> |
|
|
|
<view class="ol-line"> |
|
|
|
<view class="ol-name"><text>* </text>物流公司</view> |
|
|
|
<view class="ol-company"> |
|
|
|
<picker :range="logisticsCompanyLs" @change="logisticsChange"> |
|
|
|
<view class="ol-name"><text>* </text>发货方式</view> |
|
|
|
<view class="ol-mode"> |
|
|
|
<view class="om-item"> |
|
|
|
<view :class="[ sendOutMethod == 0 ? 'active' : '' ]" @click="sendOutMethod = 0"></view> |
|
|
|
<view @click="sendOutMethod = 0">快递</view> |
|
|
|
</view> |
|
|
|
<view class="om-item"> |
|
|
|
<view :class="[ sendOutMethod == 1 ? 'active' : '' ]" @click="sendOutMethod = 1"></view> |
|
|
|
<view @click="sendOutMethod = 1">无需快递</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<block v-if="sendOutMethod == 0"> |
|
|
|
<view class="ol-line"> |
|
|
|
<view class="ol-name"><text>* </text>物流公司</view> |
|
|
|
<view class="ol-company"> |
|
|
|
<picker :range="logisticsCompanyLs" @change="logisticsChange"> |
|
|
|
<view class="oc-ipt-frame"> |
|
|
|
<input disabled placeholder="请选择物流公司" :value="curlogisticsName" /> |
|
|
|
<image mode="aspectFit" src="/subpackage/order/static/images/down_arrow.png"></image> |
|
|
|
</view> |
|
|
|
</picker> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="ol-line"> |
|
|
|
<view class="ol-name"><text>* </text>物流单号</view> |
|
|
|
<view class="ol-company"> |
|
|
|
<view class="oc-ipt-frame"> |
|
|
|
<input disabled placeholder="请选择物流公司" :value="curlogisticsName" /> |
|
|
|
<image mode="aspectFit" src="/subpackage/order/static/images/down_arrow.png"></image> |
|
|
|
<input placeholder="请输入物流单号" v-model="logisticsOrderNum" /> |
|
|
|
</view> |
|
|
|
</picker> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="ol-line"> |
|
|
|
<view class="ol-name"><text>* </text>物流单号</view> |
|
|
|
</block> |
|
|
|
|
|
|
|
|
|
|
|
<view class="ol-line" v-if="sendOutMethod == 1"> |
|
|
|
<view class="ol-name"><text>* </text>备注</view> |
|
|
|
<view class="ol-company"> |
|
|
|
<view class="oc-ipt-frame"> |
|
|
|
<input placeholder="请输入物流单号" v-model="logisticsOrderNum" /> |
|
|
|
<input placeholder="备注" v-model="sendOutRemark" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</block> |
|
|
|
|
|
|
|
|
|
|
|
<view class="ol-line" v-if="sendOutMethod == 1"> |
|
|
|
<view class="ol-name"><text>* </text>备注</view> |
|
|
|
<view class="ol-company"> |
|
|
|
<view class="oc-ipt-frame"> |
|
|
|
<input placeholder="备注" v-model="sendOutRemark" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<cover-view class="ow-btn"> |
|
|
|
<cover-view class="ob-btn" @click="confirmSendOutBtn">确认发货</cover-view> |
|
|
|
</cover-view> |
|
|
|
<cover-view class="ow-btn"> |
|
|
|
<cover-view class="ob-btn" @click="confirmSendOutBtn">确认发货</cover-view> |
|
|
|
</cover-view> |
|
|
|
</block> |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
<!-- 已发货 --> |
|
|
|
<view class="os-yet" v-if="curTab == 1"> |
|
|
|
<!-- 没数据 --> |
|
|
|
<view class="os-null" v-if="!shippedLs.length"> |
|
|
|
<image></image> |
|
|
|
<image mode="aspectFit" src="/subpackage/order/static/images/package_icon.png"></image> |
|
|
|
<view>无已发货</view> |
|
|
|
</view> |
|
|
|
<view class="package-list" v-else> |
|
|
@ -720,7 +723,6 @@ export default { |
|
|
|
margin: 0 auto 68upx; |
|
|
|
width: 260upx; |
|
|
|
height: 260upx; |
|
|
|
background-color: skyblue; |
|
|
|
} |
|
|
|
>view{ |
|
|
|
line-height: 44upx; |
|
|
|