Commit ec6e09e1 by qinjianhui

Merge branch 'dev_tiktok_bill' into 'dev'

feat:TIKTOK配货打单#ID1009947

See merge request !244
parents b4edcbe2 a067cc23
...@@ -23,7 +23,6 @@ declare module 'vue' { ...@@ -23,7 +23,6 @@ declare module 'vue' {
ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
ElDialog: typeof import('element-plus/es')['ElDialog'] ElDialog: typeof import('element-plus/es')['ElDialog']
ElDivider: typeof import('element-plus/es')['ElDivider']
ElDrawer: typeof import('element-plus/es')['ElDrawer'] ElDrawer: typeof import('element-plus/es')['ElDrawer']
ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdown: typeof import('element-plus/es')['ElDropdown']
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
...@@ -36,8 +35,6 @@ declare module 'vue' { ...@@ -36,8 +35,6 @@ declare module 'vue' {
ElInput: typeof import('element-plus/es')['ElInput'] ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink'] ElLink: typeof import('element-plus/es')['ElLink']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption'] ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination'] ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopover: typeof import('element-plus/es')['ElPopover'] ElPopover: typeof import('element-plus/es')['ElPopover']
...@@ -46,7 +43,6 @@ declare module 'vue' { ...@@ -46,7 +43,6 @@ declare module 'vue' {
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow'] ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect'] ElSelect: typeof import('element-plus/es')['ElSelect']
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable'] ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
...@@ -55,10 +51,8 @@ declare module 'vue' { ...@@ -55,10 +51,8 @@ declare module 'vue' {
ElTag: typeof import('element-plus/es')['ElTag'] ElTag: typeof import('element-plus/es')['ElTag']
ElTimeline: typeof import('element-plus/es')['ElTimeline'] ElTimeline: typeof import('element-plus/es')['ElTimeline']
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
ElTimePicker: typeof import('element-plus/es')['ElTimePicker']
ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElTree: typeof import('element-plus/es')['ElTree'] ElTree: typeof import('element-plus/es')['ElTree']
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
ElUpload: typeof import('element-plus/es')['ElUpload'] ElUpload: typeof import('element-plus/es')['ElUpload']
Icon: typeof import('./src/components/Icon.vue')['default'] Icon: typeof import('./src/components/Icon.vue')['default']
ImageView: typeof import('./src/components/ImageView.vue')['default'] ImageView: typeof import('./src/components/ImageView.vue')['default']
......
...@@ -9,6 +9,7 @@ import { ...@@ -9,6 +9,7 @@ import {
LogisticsData, LogisticsData,
ExportParams, ExportParams,
InterceptStateGroupData, InterceptStateGroupData,
DataItem,
} from '@/types/api/podUsOrder' } from '@/types/api/podUsOrder'
import axios from './axios' import axios from './axios'
import { PodMakeOrderData } from '@/types/api/podMakeOrder' import { PodMakeOrderData } from '@/types/api/podMakeOrder'
...@@ -116,6 +117,11 @@ export function updatePRNDownloadStatus(id: number) { ...@@ -116,6 +117,11 @@ export function updatePRNDownloadStatus(id: number) {
`/factory/podBatchDownload/updatePRNDownloadStatus?id=${id}`, `/factory/podBatchDownload/updatePRNDownloadStatus?id=${id}`,
) )
} }
export function tiktokPrintOrderApi(shopNumber: string | number) {
return axios.get<never, BaseRespData<DataItem[]>>(
`/factory/podJomallOrderUs/tiktok-print-order?shopNumber=${shopNumber}`,
)
}
export function confirmOrderApi( export function confirmOrderApi(
data: number[], data: number[],
productionClient: string, productionClient: string,
...@@ -166,6 +172,17 @@ export function cancelOrderApi(ids: number[], value: string) { ...@@ -166,6 +172,17 @@ export function cancelOrderApi(ids: number[], value: string) {
}, },
) )
} }
export function pendingOrderTobeWeighedApi(
orderId:number,
) {
return axios.post<never, BaseRespData<never>>(
`factory/podJomallOrderUs/podPrintOrderComplete`,
{
orderId: orderId,
},
)
}
export function getOperationLogApi(id: number) { export function getOperationLogApi(id: number) {
return axios.get<never, BaseRespData<LogListData[]>>( return axios.get<never, BaseRespData<LogListData[]>>(
`factory/podJomallOrderUsLog/getPodJomallOrderUsLog?id=${id}`, `factory/podJomallOrderUsLog/getPodJomallOrderUsLog?id=${id}`,
......
...@@ -11,8 +11,8 @@ export interface PodMakeOrderData { ...@@ -11,8 +11,8 @@ export interface PodMakeOrderData {
export interface OrderData { export interface OrderData {
shipmentsNote?: string shipmentsNote?: string
filePath?: string filePath?: string | null
fileData?: string fileData?: string | null
logisticsWayName?: string | null logisticsWayName?: string | null
company?: string | null company?: string | null
orderStatus?: number orderStatus?: number
...@@ -29,7 +29,7 @@ export interface OrderData { ...@@ -29,7 +29,7 @@ export interface OrderData {
trackingNumber?: string trackingNumber?: string
productList?: ProductList[] productList?: ProductList[]
purchaseNumber?: number purchaseNumber?: number
pickingNumber?: number pickingNumber?: number | null
printResult?: string printResult?: string
remark?: string remark?: string
version?: number version?: number
......
...@@ -241,3 +241,52 @@ export interface IAllList { ...@@ -241,3 +241,52 @@ export interface IAllList {
name: string name: string
warehouseName?: string warehouseName?: string
} }
export interface DataItem {
printOrder: PrintOrderItem
pickingVerify: PickingVerifyItem
}
// 打印订单信息
interface PrintOrderItem {
filePath: string
shopNumber: string
id: number
trackingNumber: string
platform: string
fileData: string
}
// 产品项
export interface ProductItem {
id: number
productName: string
variantSku: string
variantImage: string
baseSku: string
thirdSkuCode: string
purchaseNumber: number
podJomallUsNo: string
numberMap: null
count: number | null
imageAry: string
passNum: number
productMark: string
putPackingTime: null
subShopNumber: string
power: boolean
pickingNumber: number | null
}
// 拣货验证信息
export interface PickingVerifyItem {
id: number
shopNumber: string
factoryOrderNumber: string
podOrderUsStatus: string
trackingNumber: string
pickingNumber: null
purchaseNumber: number
filePath: null
fileData: null
version: number
productList: ProductItem[]
}
\ No newline at end of file
...@@ -982,7 +982,10 @@ ...@@ -982,7 +982,10 @@
</span> </span>
</ElFormItem> </ElFormItem>
<ElFormItem <ElFormItem
v-if="['WAIT_TRACK'].includes(status) && [1,2,5].includes(waitTrackStatus)" v-if="
['WAIT_TRACK'].includes(status) &&
[1, 2, 5].includes(waitTrackStatus)
"
> >
<span class="item"> <span class="item">
<ElButton type="success" @click="reissueOrder">补发</ElButton> <ElButton type="success" @click="reissueOrder">补发</ElButton>
...@@ -995,6 +998,13 @@ ...@@ -995,6 +998,13 @@
> >
</span> </span>
</ElFormItem> </ElFormItem>
<ElFormItem v-if="status === 'WAIT_SHIPMENT'">
<span class="item">
<ElButton type="success" @click="distributionBillBtn"
>TIKTOK配货打单</ElButton
>
</span>
</ElFormItem>
</ElForm> </ElForm>
</div> </div>
<div class="header-filter-tab"> <div class="header-filter-tab">
...@@ -2782,6 +2792,14 @@ ...@@ -2782,6 +2792,14 @@
@set-warehouse-id="handleWarehouseIdChange" @set-warehouse-id="handleWarehouseIdChange"
@refresh="onFastRefresh" @refresh="onFastRefresh"
/> />
<DistributionBillOrder
v-model="distributionBillVisible"
:print-order="printOrder"
:warehouse-list="warehouseList"
@set-printer="handlePrinterChange"
@set-warehouse-id="handleWarehouseIdChange"
@refresh="onFastRefresh"
/>
<InspPackagOrder <InspPackagOrder
ref="InspPackagOrderRef" ref="InspPackagOrderRef"
@refresh="onFastRefresh" @refresh="onFastRefresh"
...@@ -3282,6 +3300,7 @@ import { computed, onMounted, ref, nextTick, reactive, h } from 'vue' ...@@ -3282,6 +3300,7 @@ import { computed, onMounted, ref, nextTick, reactive, h } from 'vue'
import FastProduction from './FastProduction.vue' import FastProduction from './FastProduction.vue'
import { filePath } from '@/api/axios' import { filePath } from '@/api/axios'
import PodMakeOrder from './PodMakeOrder.vue' import PodMakeOrder from './PodMakeOrder.vue'
import DistributionBillOrder from './DistributionBillOrder.vue'
import InspPackagOrder from './InspPackagOrder.vue' import InspPackagOrder from './InspPackagOrder.vue'
import { OrderData } from '@/types/api/podMakeOrder' import { OrderData } from '@/types/api/podMakeOrder'
import useLodop, { LODOPObject } from '@/utils/hooks/useLodop' import useLodop, { LODOPObject } from '@/utils/hooks/useLodop'
...@@ -3759,7 +3778,6 @@ const handleBatchDelete = async (type: string, id?: string) => { ...@@ -3759,7 +3778,6 @@ const handleBatchDelete = async (type: string, id?: string) => {
loading.close() loading.close()
} }
} }
const shipmentList = ref(['自有物流', '九猫统筹物流']) const shipmentList = ref(['自有物流', '九猫统筹物流'])
// 批量下载 重新排版 // 批量下载 重新排版
...@@ -4041,7 +4059,6 @@ const rightClick = (e: MouseEvent) => { ...@@ -4041,7 +4059,6 @@ const rightClick = (e: MouseEvent) => {
y: e.clientY, y: e.clientY,
}) })
} }
const handleSelectionChange = (val: PodUsOrderListData[]) => { const handleSelectionChange = (val: PodUsOrderListData[]) => {
selection.value = val selection.value = val
// 当清空选择时,清除补货校验成功的状态 // 当清空选择时,清除补货校验成功的状态
...@@ -5509,7 +5526,14 @@ const printPodOrder = async () => { ...@@ -5509,7 +5526,14 @@ const printPodOrder = async () => {
sheetPrinter.value = lodop.GET_PRINTER_NAME(0) sheetPrinter.value = lodop.GET_PRINTER_NAME(0)
podOrderVisible.value = true podOrderVisible.value = true
} }
const distributionBillVisible = ref(false)
const distributionBillBtn = async () => {
const lodop = getCLodop(null, null)
if (!lodop) return
sheetPrinter.value = lodop.GET_PRINTER_NAME(0)
distributionBillVisible.value = true
}
const InspPackagOrderRef = ref() const InspPackagOrderRef = ref()
// const inspPackagOrder = async () => { // const inspPackagOrder = async () => {
......
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