Commit 82aa2669 by linjinhong

feat:【工厂端】【订单】POD(US)订单跟踪中新增普品筛选;POD(CN)订单跟踪中新增两个类型栏筛选;修改“类型”字段#1001774

parent 017d5a98
...@@ -878,10 +878,11 @@ onMounted(() => { ...@@ -878,10 +878,11 @@ onMounted(() => {
</ElSelect> </ElSelect>
</ElFormItem> </ElFormItem>
<ElFormItem label="类型"> <ElFormItem label="印刷">
<el-radio-group v-model="searchForm.customizedQuantity"> <el-radio-group v-model="searchForm.customizedQuantity">
<el-radio-button value="single">单面</el-radio-button> <el-radio-button value="single">单面</el-radio-button>
<el-radio-button value="multiple">多面</el-radio-button> <el-radio-button value="multiple">多面</el-radio-button>
<el-radio-button value="normal">普品</el-radio-button>
</el-radio-group> </el-radio-group>
</ElFormItem> </ElFormItem>
<ElFormItem label="数量"> <ElFormItem label="数量">
...@@ -1283,12 +1284,4 @@ onMounted(() => { ...@@ -1283,12 +1284,4 @@ onMounted(() => {
} }
} }
} }
.search-form {
::v-deep .el-radio-button {
width: 75px;
.el-radio-button__inner {
width: 100%;
}
}
}
</style> </style>
...@@ -102,7 +102,8 @@ const tableColumns = computed(() => { ...@@ -102,7 +102,8 @@ const tableColumns = computed(() => {
prop: 'replaceShipment', prop: 'replaceShipment',
width: 120, width: 120,
align: 'center', align: 'center',
},{ },
{
label: '物流类型', label: '物流类型',
slot: 'shipmentType', slot: 'shipmentType',
prop: 'shipmentType', prop: 'shipmentType',
...@@ -297,6 +298,24 @@ const goodsColumns = computed(() => { ...@@ -297,6 +298,24 @@ const goodsColumns = computed(() => {
}, },
] ]
}) })
const productMarkList = [
{
label: '普通商品',
value: 'normal',
},
{
label: 'pod商品',
value: 'pod',
},
{
label: '一件定制局部印',
value: 'custom_part',
},
{
label: '一件定制满印',
value: 'custom_full',
},
]
const tableData = ref<PodCnOrderListData[]>([]) const tableData = ref<PodCnOrderListData[]>([])
const goodsData = ref<ProductList[]>([]) const goodsData = ref<ProductList[]>([])
const searchVisible = ref(false) const searchVisible = ref(false)
...@@ -377,7 +396,7 @@ const search = () => { ...@@ -377,7 +396,7 @@ const search = () => {
goodsData.value = [] goodsData.value = []
logList.value = [] logList.value = []
getOrderListFn() getOrderListFn()
if(tabValue.value==='2'){ if (tabValue.value === '2') {
zoneType.value = 'Asia/Shanghai' zoneType.value = 'Asia/Shanghai'
operationLog() operationLog()
} }
...@@ -442,10 +461,10 @@ const submitExportForm = async () => { ...@@ -442,10 +461,10 @@ const submitExportForm = async () => {
...params, ...params,
...(resourceType === 2 ...(resourceType === 2
? { ? {
...searchForm.value, ...searchForm.value,
startTime: timeRange.value?.[0] || null, startTime: timeRange.value?.[0] || null,
endTime: timeRange.value?.[1] || null, endTime: timeRange.value?.[1] || null,
} }
: {}), : {}),
}) })
ElMessage.success('请求成功,请稍后到右上角[我的下载]中查看') ElMessage.success('请求成功,请稍后到右上角[我的下载]中查看')
...@@ -652,7 +671,7 @@ const refreshAddress = async () => { ...@@ -652,7 +671,7 @@ const refreshAddress = async () => {
ElMessage.success('操作成功') ElMessage.success('操作成功')
search() search()
await loadTabData() await loadTabData()
if(tabValue.value==='2'){ if (tabValue.value === '2') {
zoneType.value = 'Asia/Shanghai' zoneType.value = 'Asia/Shanghai'
await operationLog() await operationLog()
} }
...@@ -663,7 +682,6 @@ const refreshAddress = async () => { ...@@ -663,7 +682,6 @@ const refreshAddress = async () => {
} }
} }
/** /**
* @description: 获取打印面单 * @description: 获取打印面单
*/ */
...@@ -900,12 +918,13 @@ onMounted(() => { ...@@ -900,12 +918,13 @@ onMounted(() => {
</ElSelect> </ElSelect>
</ElFormItem> </ElFormItem>
<!-- <ElFormItem label="类型"> <ElFormItem label="印刷">
<el-radio-group v-model="searchForm.customizedQuantity"> <el-radio-group v-model="searchForm.customizedQuantity">
<el-radio-button value="single">单面</el-radio-button> <el-radio-button value="single">单面</el-radio-button>
<el-radio-button value="multiple">多面</el-radio-button> <el-radio-button value="multiple">多面</el-radio-button>
<el-radio-button value="normal">普品</el-radio-button>
</el-radio-group> </el-radio-group>
</ElFormItem> --> </ElFormItem>
<ElFormItem label="数量"> <ElFormItem label="数量">
<el-radio-group v-model="searchForm.multi"> <el-radio-group v-model="searchForm.multi">
<el-radio-button :value="false">单件</el-radio-button> <el-radio-button :value="false">单件</el-radio-button>
...@@ -1042,7 +1061,32 @@ onMounted(() => { ...@@ -1042,7 +1061,32 @@ onMounted(() => {
></ElOption> ></ElOption>
</ElSelect> </ElSelect>
</ElFormItem> </ElFormItem>
<ElFormItem v-if="searchForm.replaceShipment || searchForm.replaceShipment===0" label="物流类型"> <ElFormItem label="商品类型">
<ElSelect
v-model="searchForm.productMark"
placeholder="请选择商品类型"
clearable
filterable
collapse-tags
collapse-tags-tooltip
:teleported="false"
style="width: 150px"
>
<ElOption
v-for="(item, index) in productMarkList"
:key="index"
:value="item.value"
:label="item.label"
></ElOption>
</ElSelect>
</ElFormItem>
<ElFormItem
v-if="
searchForm.replaceShipment ||
searchForm.replaceShipment === 0
"
label="物流类型"
>
<ElSelect <ElSelect
v-model="searchForm.shipmentType" v-model="searchForm.shipmentType"
placeholder="物流类型" placeholder="物流类型"
...@@ -1050,7 +1094,9 @@ onMounted(() => { ...@@ -1050,7 +1094,9 @@ onMounted(() => {
style="width: 150px" style="width: 150px"
> >
<ElOption <ElOption
v-for="(item, index) in searchForm.replaceShipment === 0? ['自提', '快递']:['自有物流', '工厂物流']" v-for="(item, index) in searchForm.replaceShipment === 0
? ['自提', '快递']
: ['自有物流', '工厂物流']"
:key="index" :key="index"
:value="index" :value="index"
:label="item" :label="item"
...@@ -1084,7 +1130,7 @@ onMounted(() => { ...@@ -1084,7 +1130,7 @@ onMounted(() => {
<ElFormItem> <ElFormItem>
<span> <span>
<ElButton link @click="resetSearchForm" style="font-size: 12px" <ElButton link @click="resetSearchForm" style="font-size: 12px"
><span title="重置查询条件">重置</span></ElButton ><span title="重置查询条件">重置</span></ElButton
> >
</span> </span>
</ElFormItem> </ElFormItem>
...@@ -1098,14 +1144,14 @@ onMounted(() => { ...@@ -1098,14 +1144,14 @@ onMounted(() => {
<ElFormItem> <ElFormItem>
<span> <span>
<ElButton type="primary" @click="getOrderByIdApi('getPrintOrder')" <ElButton type="primary" @click="getOrderByIdApi('getPrintOrder')"
>获取打印面单</ElButton >获取打印面单</ElButton
> >
</span> </span>
</ElFormItem> </ElFormItem>
<ElFormItem> <ElFormItem>
<span> <span>
<ElButton type="success" @click="refreshAddress" <ElButton type="success" @click="refreshAddress"
>刷新地址</ElButton >刷新地址</ElButton
> >
</span> </span>
</ElFormItem> </ElFormItem>
...@@ -1136,10 +1182,14 @@ onMounted(() => { ...@@ -1136,10 +1182,14 @@ onMounted(() => {
<div>{{ getStatus(row.status) }}</div> <div>{{ getStatus(row.status) }}</div>
</template> </template>
<template #shipmentType="{ row }"> <template #shipmentType="{ row }">
{{ (row.replaceShipment === 0 ? ['自提', '快递'] : ['自有物流', '工厂物流'])[row.shipmentType] }} {{
(row.replaceShipment === 0
? ['自提', '快递']
: ['自有物流', '工厂物流'])[row.shipmentType]
}}
</template> </template>
<template #replaceShipment="{ row }"> <template #replaceShipment="{ row }">
{{['不代发', '代发'][row.replaceShipment] }} {{ ['不代发', '代发'][row.replaceShipment] }}
</template> </template>
</TableView> </TableView>
</div> </div>
...@@ -1163,7 +1213,7 @@ onMounted(() => { ...@@ -1163,7 +1213,7 @@ onMounted(() => {
<template #other> <template #other>
<div class="bottom-table"> <div class="bottom-table">
<el-tabs v-model="tabValue"> <el-tabs v-model="tabValue">
<el-tab-pane name="1" label="商品明细"> <el-tab-pane name="1" label="商品明细">
<TableView <TableView
ref="goodsRef" ref="goodsRef"
v-loading="goodsLoading" v-loading="goodsLoading"
...@@ -1176,7 +1226,7 @@ onMounted(() => { ...@@ -1176,7 +1226,7 @@ onMounted(() => {
</template> </template>
</TableView> </TableView>
</el-tab-pane> </el-tab-pane>
<el-tab-pane name="2" label="操作日志" @tab-click="operationLog"> <el-tab-pane name="2" label="操作日志" @tab-click="operationLog">
<div> <div>
<el-button <el-button
:type="zoneType === 'Asia/Shanghai' ? 'primary' : ''" :type="zoneType === 'Asia/Shanghai' ? 'primary' : ''"
...@@ -1184,27 +1234,24 @@ onMounted(() => { ...@@ -1184,27 +1234,24 @@ onMounted(() => {
link link
style="margin-left: 10px" style="margin-left: 10px"
@click="changeChinaTime('Asia/Shanghai')" @click="changeChinaTime('Asia/Shanghai')"
>北京时间 >北京时间
</el-button </el-button>
>
<el-button <el-button
:type="zoneType === 'America/New_York' ? 'primary' : ''" :type="zoneType === 'America/New_York' ? 'primary' : ''"
size="small" size="small"
link link
style="margin-left: 10px" style="margin-left: 10px"
@click="changeChinaTime('America/New_York')" @click="changeChinaTime('America/New_York')"
>新泽西时间 >新泽西时间
</el-button </el-button>
>
<el-button <el-button
:type="zoneType === 'America/Los_Angeles' ? 'primary' : ''" :type="zoneType === 'America/Los_Angeles' ? 'primary' : ''"
size="small" size="small"
link link
style="margin-left: 10px" style="margin-left: 10px"
@click="changeChinaTime('America/Los_Angeles')" @click="changeChinaTime('America/Los_Angeles')"
>洛杉矶时间 >洛杉矶时间
</el-button </el-button>
>
</div> </div>
<LogList <LogList
...@@ -1239,7 +1286,7 @@ onMounted(() => { ...@@ -1239,7 +1286,7 @@ onMounted(() => {
:loading="exportLoading" :loading="exportLoading"
type="primary" type="primary"
@click="submitExportForm" @click="submitExportForm"
>确认</el-button >确认</el-button
> >
</span> </span>
</template> </template>
...@@ -1334,14 +1381,4 @@ onMounted(() => { ...@@ -1334,14 +1381,4 @@ onMounted(() => {
} }
} }
} }
.search-form {
::v-deep .el-radio-button {
width: 75px;
.el-radio-button__inner {
width: 100%;
}
}
}
</style> </style>
...@@ -229,13 +229,14 @@ ...@@ -229,13 +229,14 @@
<el-option value="desc" label="倒序"></el-option> <el-option value="desc" label="倒序"></el-option>
</el-select> </el-select>
</ElFormItem> </ElFormItem>
<ElFormItem label="类型" v-if="status !== 'BATCH_DOWNLOAD'"> <ElFormItem label="印刷" v-if="status !== 'BATCH_DOWNLOAD'">
<el-radio-group <el-radio-group
v-model="searchForm.customizedQuantity" v-model="searchForm.customizedQuantity"
@click.stop="(e: Event) => handleRadioGroupClick(e)" @click.stop="(e: Event) => handleRadioGroupClick(e)"
> >
<el-radio-button value="single">单面</el-radio-button> <el-radio-button label="single">单面</el-radio-button>
<el-radio-button value="multiple">多面</el-radio-button> <el-radio-button label="multiple">多面</el-radio-button>
<el-radio-button label="normal">普品</el-radio-button>
</el-radio-group> </el-radio-group>
</ElFormItem> </ElFormItem>
<ElFormItem label="数量" v-if="status !== 'BATCH_DOWNLOAD'"> <ElFormItem label="数量" v-if="status !== 'BATCH_DOWNLOAD'">
...@@ -372,6 +373,7 @@ ...@@ -372,6 +373,7 @@
></ElOption> ></ElOption>
</ElSelect> </ElSelect>
</ElFormItem> </ElFormItem>
<ElFormItem <ElFormItem
v-if="searchForm.replaceShipment === 0" v-if="searchForm.replaceShipment === 0"
label="物流类型" label="物流类型"
...@@ -6166,14 +6168,14 @@ useEnterKeyTrigger({ ...@@ -6166,14 +6168,14 @@ useEnterKeyTrigger({
color: white; color: white;
font-weight: bold; font-weight: bold;
} }
.search-form { // .search-form {
::v-deep .el-radio-button { // ::v-deep .el-radio-button {
width: 75px; // width: 75px;
.el-radio-button__inner { // .el-radio-button__inner {
width: 100%; // width: 100%;
} // }
} // }
} // }
.triangle-container-wrap { .triangle-container-wrap {
position: absolute; position: absolute;
top: 0; top: 0;
......
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
</ElSelect> </ElSelect>
</ElFormItem> </ElFormItem>
<!-- </div> --> <!-- </div> -->
<ElFormItem label="类型" v-if="status !== 'BATCH_DOWNLOAD'"> <ElFormItem label="印刷" v-if="status !== 'BATCH_DOWNLOAD'">
<el-radio-group <el-radio-group
v-model="searchForm.customizedQuantity" v-model="searchForm.customizedQuantity"
@click.stop="(e: Event) => handleRadioGroupClick(e)" @click.stop="(e: Event) => handleRadioGroupClick(e)"
......
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