Commit ff174216 by linjinhong

podus添加是否代发

parent 8a4496b4
......@@ -12,7 +12,7 @@ export interface ExportParams extends SearchForm {
export interface SearchForm {
timeType?: number | null
shopNumber?: string
shipmentType?: string
shipmentType?: string | number | null
userMark?: string
processNumber?: string
trackingNumber?: string
......@@ -40,6 +40,7 @@ export interface SearchForm {
sizeType?: number | null
tagsId?: string
tagsIdArr?: (number | null)[]
replaceShipment?: number | null
}
export interface PodUsOrderListData {
id: number
......
......@@ -247,9 +247,10 @@
clearable
:teleported="false"
style="width: 150px"
:disabled="searchForm.replaceShipment === 0"
>
<ElOption
v-for="(item, index) in ['自有物流', '工厂物流']"
v-for="(item, index) in shipmentList"
:key="index"
:value="index"
:label="item"
......@@ -276,6 +277,36 @@
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem label="是否代发">
<ElSelect
v-model="searchForm.replaceShipment"
placeholder="请选择"
clearable
:teleported="false"
style="width: 150px"
@change="
(e:number) => {
if (e == 0) {
shipmentList=['自提','快递']
searchForm.shipmentType=0
}else{
shipmentList=['自有物流', '工厂物流']
searchForm.shipmentType=''
}
}
"
>
<ElOption
v-for="(item, index) in [
{ value: 1, label: '代发' },
{ value: 0, label: '不代发' },
]"
:key="index"
:value="item.value"
:label="item.label"
></ElOption>
</ElSelect>
</ElFormItem>
</ElForm>
<template #reference>
<el-button type="warning" @click="searchVisible = !searchVisible">
......@@ -1389,16 +1420,36 @@
</span>
</div>
<div class="order-detail-item">
<!-- 是否代发 0.否 1.是 -->
<span class="order-detail-item-label">是否代发:</span>
<span
style="color: red; font-weight: 500"
class="order-detail-item-value"
>
{{ ['否', '是'][row.replaceShipment] }}
</span>
</div>
<div class="order-detail-item">
<span class="order-detail-item-label">物流类型:</span>
<span
style="color: red; font-weight: 500"
class="order-detail-item-value"
>
{{ ['自有物流', '工厂物流'][row.shipmentType] }}
{{
row.shipmentType == 0 && row.replaceShipment == 0
? '自提'
: ['自有物流', '工厂物流'][row.shipmentType]
}}
</span>
</div>
<div class="order-detail-item">
<span class="order-detail-item-label">物流跟踪号:</span>
<span class="order-detail-item-label">
{{
row.replaceShipment === 0 && row.shipmentType === 0
? '取货码:'
: '物流跟踪号:'
}}</span
>
<span class="order-detail-item-value">
<el-button
type="primary"
......@@ -1737,7 +1788,14 @@
</ElButton>
</span>
<span v-if="['WAIT_TRACK'].includes(status)" class="operate-item">
<span
v-if="
['WAIT_TRACK'].includes(status) &&
row.replaceShipment !== 0 &&
row.shipmentType !== 0
"
class="operate-item"
>
<ElButton link type="warning" @click="updateTrackingNumber(row)"
>修改跟踪号</ElButton
>
......@@ -1753,6 +1811,7 @@
<span
v-if="
row.shipmentType === 0 &&
row.replaceShipment !== 0 &&
['CREATE_LOGISTICS', 'WAIT_SHIPMENT'].includes(status)
"
class="operate-item"
......@@ -1791,6 +1850,7 @@
<span
v-if="
row.shipmentType === 0 &&
row.replaceShipment !== 0 &&
['CREATE_LOGISTICS', 'WAIT_SHIPMENT'].includes(status)
"
class="operate-item"
......@@ -1805,6 +1865,8 @@
</span>
<span
v-if="
row.shipmentType !== 0 &&
row.replaceShipment !== 0 &&
(status === 'IN_TRANSIT' || status === 'COMPLETE') &&
isPermissionBtn('TRACK')
"
......@@ -3264,6 +3326,9 @@ const handleBatchDelete = async (type: string, id?: string) => {
loading.close()
}
}
const shipmentList = ref(['自有物流', '工厂物流'])
// 批量下载 重新排版
const handleReComposingDesign = async () => {
const row = { ...(typesettingRow.value as PodUsOrderListData) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment