Commit 01070396 by zhuzhequan

工厂端提交

parent 5dc1a684
...@@ -11,6 +11,7 @@ declare module 'vue' { ...@@ -11,6 +11,7 @@ declare module 'vue' {
ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElDate: typeof import('element-plus/es')['ElDate']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog'] ElDialog: typeof import('element-plus/es')['ElDialog']
ElDrawer: typeof import('element-plus/es')['ElDrawer'] ElDrawer: typeof import('element-plus/es')['ElDrawer']
......
...@@ -35,6 +35,7 @@ export function getOrderTabData() { ...@@ -35,6 +35,7 @@ export function getOrderTabData() {
'factory/customJomallOrder/findStateGroupList', 'factory/customJomallOrder/findStateGroupList',
) )
} }
// 确认生产 // 确认生产
export function confirmProductionOrder(ids: number[]) { export function confirmProductionOrder(ids: number[]) {
return axios.post<never, BaseRespData<never>>( return axios.post<never, BaseRespData<never>>(
...@@ -50,18 +51,23 @@ export function downloadOrder(id: number) { ...@@ -50,18 +51,23 @@ export function downloadOrder(id: number) {
{ params: { id } }, { params: { id } },
) )
} }
// 重新生成稿件 // 重新生成稿件
export function reGenerateScriptUrlApi(ids: number[]) { export function reGenerateScriptUrlApi(ids: string) {
return axios.post<never, BaseRespData<never>>( return axios.post<never, BaseRespData<never>>(
'factory/customJomallOrder/downloadAgain', 'factory/customJomallOrder/rebuildFileByOrderId',
ids, ids,
) )
} }
export function reCreateScriptUrlApi(ids: number[]) { export function reCreateScriptUrlApi(id: string) {
return axios.post<never, BaseRespData<never>>( return axios.get<never, BaseRespData<never>>(
'factory/customJomallOrder/rebuildFileByOrderIds', 'factory/customJomallOrder/rebuildFileByOrderId',
ids, {
params:{
id
}
},
) )
} }
...@@ -74,14 +80,10 @@ export function printOrder(ids: number[]) { ...@@ -74,14 +80,10 @@ export function printOrder(ids: number[]) {
} }
// 导出生产单 // 导出生产单
export function exportOrder(status?: string | number) { export function exportOrder(data?: { ids: number[], status: string | number }) {
return axios.get<never, BaseRespData<never>>( return axios.post<never, BaseRespData<never>>(
'factory/customJomallOrder/exportData', 'factory/customJomallOrder/exportData',
{ data,
params: {
status,
},
},
) )
} }
...@@ -96,6 +98,7 @@ export function getOrderBySubOrderNumber(orderNumber: string) { ...@@ -96,6 +98,7 @@ export function getOrderBySubOrderNumber(orderNumber: string) {
}, },
) )
} }
export function getQaOrderBySubOrderNumber(orderNumber: string) { export function getQaOrderBySubOrderNumber(orderNumber: string) {
return axios.get<never, BaseRespData<QaData[]>>( return axios.get<never, BaseRespData<QaData[]>>(
'factory/customJomallOrder/inspectionQuery', 'factory/customJomallOrder/inspectionQuery',
...@@ -106,6 +109,7 @@ export function getQaOrderBySubOrderNumber(orderNumber: string) { ...@@ -106,6 +109,7 @@ export function getQaOrderBySubOrderNumber(orderNumber: string) {
}, },
) )
} }
// 质检完成 // 质检完成
export function qaFinishedApi(data: InspectionData[]) { export function qaFinishedApi(data: InspectionData[]) {
return axios.post<never, BaseRespData<never>>( return axios.post<never, BaseRespData<never>>(
...@@ -132,6 +136,7 @@ export function addInternalTagApi(idList: number[], memo: string) { ...@@ -132,6 +136,7 @@ export function addInternalTagApi(idList: number[], memo: string) {
{ idList, content: memo }, { idList, content: memo },
) )
} }
// 查看发货单 // 查看发货单
export function loadSendOutList(id: number) { export function loadSendOutList(id: number) {
return axios.get<never, BaseRespData<SendOrderData[]>>( return axios.get<never, BaseRespData<SendOrderData[]>>(
...@@ -143,6 +148,7 @@ export function loadSendOutList(id: number) { ...@@ -143,6 +148,7 @@ export function loadSendOutList(id: number) {
}, },
) )
} }
// 操作日志 // 操作日志
export function getLogList(id: number) { export function getLogList(id: number) {
return axios.get<never, BaseRespData<LogListData[]>>( return axios.get<never, BaseRespData<LogListData[]>>(
...@@ -181,6 +187,7 @@ export function refreshProductInfo(data: number[]) { ...@@ -181,6 +187,7 @@ export function refreshProductInfo(data: number[]) {
data, data,
) )
} }
export function getDeliveryNoteList( export function getDeliveryNoteList(
data: DeliveryNoteSearchForm, data: DeliveryNoteSearchForm,
currentPage: number, currentPage: number,
...@@ -195,6 +202,7 @@ export function getDeliveryNoteList( ...@@ -195,6 +202,7 @@ export function getDeliveryNoteList(
}, },
) )
} }
export function customJomallReconciliation( export function customJomallReconciliation(
data: AccountStatementNoteSearchForm, data: AccountStatementNoteSearchForm,
currentPage: number, currentPage: number,
...@@ -209,7 +217,8 @@ export function customJomallReconciliation( ...@@ -209,7 +217,8 @@ export function customJomallReconciliation(
}, },
) )
} }
export function printDeliveryNote(data: string[],userMark?:string) {
export function printDeliveryNote(data: string[], userMark?: string) {
return axios.post<never, BaseRespData<never>>( return axios.post<never, BaseRespData<never>>(
'factory/customJomallShipment/printInvoiceStatistics', 'factory/customJomallShipment/printInvoiceStatistics',
{ {
...@@ -219,6 +228,7 @@ export function printDeliveryNote(data: string[],userMark?:string) { ...@@ -219,6 +228,7 @@ export function printDeliveryNote(data: string[],userMark?:string) {
}, },
) )
} }
export function createReconciliation(data: { shipmentIdList: number[] }) { export function createReconciliation(data: { shipmentIdList: number[] }) {
return axios.post<never, BaseRespData<never>>( return axios.post<never, BaseRespData<never>>(
'factory/customJomallReconciliation/createReconciliation', 'factory/customJomallReconciliation/createReconciliation',
...@@ -247,6 +257,7 @@ export function getOrderByIdApi(id?: number) { ...@@ -247,6 +257,7 @@ export function getOrderByIdApi(id?: number) {
}, },
) )
} }
export function getReconciliationAmount(id?: number) { export function getReconciliationAmount(id?: number) {
return axios.get<never, BaseRespData<CountStatus[]>>( return axios.get<never, BaseRespData<CountStatus[]>>(
'factory/customJomallReconciliation/getReconciliationAmount', 'factory/customJomallReconciliation/getReconciliationAmount',
...@@ -257,17 +268,18 @@ export function getReconciliationAmount(id?: number) { ...@@ -257,17 +268,18 @@ export function getReconciliationAmount(id?: number) {
}, },
) )
} }
export function getCustomJomallReconciliationById(id?: number) { export function getCustomJomallReconciliationById(id?: number) {
return axios.get<never, BaseRespData<OrderData>>( return axios.get<never, BaseRespData<OrderData>>(
'factory/customJomallReconciliation/getById', 'factory/customJomallReconciliation/getById',
{ {
params:{ params: {
id id,
} },
} },
) )
} }
export function customJomallReconciliationLog(reconciliationId?: number) { export function customJomallReconciliationLog(reconciliationId?: number) {
return axios.get<never, BaseRespData<OrderData>>( return axios.get<never, BaseRespData<OrderData>>(
'factory/customJomallReconciliationLog/getListById', 'factory/customJomallReconciliationLog/getListById',
...@@ -278,6 +290,7 @@ export function customJomallReconciliationLog(reconciliationId?: number) { ...@@ -278,6 +290,7 @@ export function customJomallReconciliationLog(reconciliationId?: number) {
}, },
) )
} }
export function updateReconciliation( export function updateReconciliation(
data: AccountStatementNote, data: AccountStatementNote,
) { ) {
...@@ -286,6 +299,7 @@ export function updateReconciliation( ...@@ -286,6 +299,7 @@ export function updateReconciliation(
data, data,
) )
} }
export function getShipmentDetailsById(shipmentId?: string) { export function getShipmentDetailsById(shipmentId?: string) {
return axios.get<never, BaseRespData<AccountStatementNote[]>>( return axios.get<never, BaseRespData<AccountStatementNote[]>>(
'factory/customJomallReconciliation/getShipmentDetailsById', 'factory/customJomallReconciliation/getShipmentDetailsById',
...@@ -302,6 +316,6 @@ export function factoryConfirm( ...@@ -302,6 +316,6 @@ export function factoryConfirm(
) { ) {
return axios.post( return axios.post(
'factory/customJomallReconciliation/factoryConfirm', 'factory/customJomallReconciliation/factoryConfirm',
data data,
) )
} }
\ No newline at end of file
...@@ -2,27 +2,70 @@ ...@@ -2,27 +2,70 @@
import { Splitpanes, Pane } from 'splitpanes' import { Splitpanes, Pane } from 'splitpanes'
import 'splitpanes/dist/splitpanes.css' import 'splitpanes/dist/splitpanes.css'
import { onMounted, onUnmounted, ref } from 'vue'
defineProps({ const props = defineProps({
size: { size: {
default: '15', default: '',
type: String type: String,
},
})
const domSize = ref<number>(0)
function domResize() {
const father = document.getElementsByClassName('splitpanes')[0]
const top = document.getElementById('top')
const v = ((top.clientHeight / father.clientHeight) * 100).toFixed(2)
if (props.size === '') {
domSize.value = v
} else {
domSize.value = props.size
} }
}
onUnmounted(()=>{
window.removeEventListener('resize', domResize)
})
onMounted(() => {
window.addEventListener('resize', domResize)
domResize()
})
defineExpose({
domResize
}) })
</script> </script>
<template> <template>
<splitpanes horizontal style="height: 100%"> <splitpanes horizontal style="height: 100%">
<pane :size="size"> <pane :size="domSize">
<div id="top">
<slot name="top"></slot> <slot name="top"></slot>
</div>
</pane> </pane>
<pane style="flex: 1; flex-shrink: 0"> <pane style="flex: 1; flex-shrink: 0">
<div id="bottom">
<slot name="bottom"></slot> <slot name="bottom"></slot>
</div>
</pane> </pane>
</splitpanes> </splitpanes>
</template> </template>
<style scoped lang="scss"> <style scoped lang="scss">
#top {
height: fit-content;
}
#bottom {
height: 100%;
}
#top, #bottom {
display: flex;
flex-direction: column;
}
::v-deep(.splitpanes__splitter) { ::v-deep(.splitpanes__splitter) {
width: 100%; width: 100%;
border-left: 1px solid #eee; border-left: 1px solid #eee;
...@@ -35,7 +78,8 @@ import 'splitpanes/dist/splitpanes.css' ...@@ -35,7 +78,8 @@ import 'splitpanes/dist/splitpanes.css'
min-width: 1px; min-width: 1px;
margin-top: 5px; margin-top: 5px;
margin-bottom: 5px; margin-bottom: 5px;
&::before{
&::before {
margin-top: -2px; margin-top: -2px;
background-color: #00000040; background-color: #00000040;
transform: translate(-50%); transform: translate(-50%);
...@@ -47,7 +91,8 @@ import 'splitpanes/dist/splitpanes.css' ...@@ -47,7 +91,8 @@ import 'splitpanes/dist/splitpanes.css'
left: 50%; left: 50%;
transition: background-color .3s; transition: background-color .3s;
} }
&::after{
&::after {
margin-top: 1px; margin-top: 1px;
background-color: #00000040; background-color: #00000040;
transform: translate(-50%); transform: translate(-50%);
......
...@@ -5,6 +5,9 @@ export interface SearchForm { ...@@ -5,6 +5,9 @@ export interface SearchForm {
endProductId: string endProductId: string
orderNumber: string orderNumber: string
shopNumber: string shopNumber: string
timeType: string | null
startTime?: string | null
endTime?: string | null
logisticsTracking: string logisticsTracking: string
lanshouName: string lanshouName: string
billNumber: string billNumber: string
......
...@@ -286,6 +286,7 @@ const productProps = [ ...@@ -286,6 +286,7 @@ const productProps = [
{ label: '质检(不通过)', key: 'notPassNum' }, { label: '质检(不通过)', key: 'notPassNum' },
], ],
] ]
const logisticsProps = [ const logisticsProps = [
{ label: '订单号', key: 'orderNumber', copyable: true }, { label: '订单号', key: 'orderNumber', copyable: true },
{ {
......
<template> <template>
<div class="card flex-column h-100 overflow-hidden"> <div class="card flex-column h-100 overflow-hidden">
<split-div size="10"> <split-div ref="splitRef">
<template #top> <template #top>
<div class="header-filter"> <div class="header-filter">
<div class="header-filter-form"> <div class="header-filter-form">
<ElForm :model="searchForm" size="default" inline> <ElForm :model="searchForm" size="default" inline>
<ElFormItem>
<el-select v-model="searchForm.timeType" clearable style="width:100px;margin-right: 5px ;" placeholder="时间类型" >
<el-option v-if="statusCode !== 6" value="1" label="创建时间"></el-option>
<el-option value="2" label="确认时间"></el-option>
<el-option v-if="statusCode !== 6" value="3" label="完成时间"></el-option>
<el-option v-if="statusCode === 6" value="4" label="发货时间"></el-option>
</el-select>
<el-date-picker
v-model="timeRange"
:default-time="[new Date(0,0,0,0,0,0),new Date(0,0,0,23,59,59)]"
placeholder="收货人"
value-format="YYYY-MM-DD HH:mm:ss"
type="datetimerange"
:shortcuts="pickerOptions.shortcuts"
start-placeholder="开始时间"
end-placeholder="结束时间"
clearable
style="width: 210px"
>
</el-date-picker>
</ElFormItem>
<ElFormItem label="SKU"> <ElFormItem label="SKU">
<ElInput <ElInput
v-model="searchForm.mainSku" v-model="searchForm.mainSku"
...@@ -90,12 +112,14 @@ ...@@ -90,12 +112,14 @@
style="width: 130px" style="width: 130px"
></ElInput> ></ElInput>
</ElFormItem> </ElFormItem>
<ElFormItem> <ElFormItem>
<ElButton type="primary" @click="search">查询</ElButton> <ElButton type="primary" @click="search">查询</ElButton>
</ElFormItem> </ElFormItem>
<!-- <ElFormItem>--> <!-- <ElFormItem>-->
<!-- <ElButton @click="resetSearchForm">重置</ElButton>--> <!-- <ElButton @click="resetSearchForm">重置</ElButton>-->
<!-- </ElFormItem>--> <!-- </ElFormItem>-->
</ElForm> </ElForm>
</div> </div>
<div class="header-filter-tab"> <div class="header-filter-tab">
...@@ -126,7 +150,9 @@ ...@@ -126,7 +150,9 @@
v-if="statusCode === 2 || statusCode === 3 || statusCode === 4" v-if="statusCode === 2 || statusCode === 3 || statusCode === 4"
class="item" class="item"
> >
<ElButton :disabled="selection.find(item=>item.manuscriptStatus !== 30)" type="warning" is-dark @click="downloadManuscript" <ElButton
:disabled="selection.find(item=>item.manuscriptStatus !== 30)" type="warning" is-dark
@click="downloadManuscript"
>下载稿件</ElButton >下载稿件</ElButton
> >
</span> </span>
...@@ -134,7 +160,9 @@ ...@@ -134,7 +160,9 @@
v-if="statusCode === 2 || statusCode === 3 || statusCode === 4" v-if="statusCode === 2 || statusCode === 3 || statusCode === 4"
class="item" class="item"
> >
<ElButton :disabled="selection.find(item=>item.manuscriptStatus !== 30)" type="success" is-dark @click="reGenerateManuscript" <ElButton
:disabled="selection.find(item=>item.manuscriptStatus !== 30) || selection.length!==1" type="success" is-dark
@click="reGenerateManuscript"
>重新打包稿件 </ElButton >重新打包稿件 </ElButton
> >
</span> </span>
...@@ -142,7 +170,9 @@ ...@@ -142,7 +170,9 @@
v-if="statusCode === 2 || statusCode === 3 || statusCode === 4" v-if="statusCode === 2 || statusCode === 3 || statusCode === 4"
class="item" class="item"
> >
<ElButton type="warning" is-dark @click="reCreateManuscript" <ElButton
:disabled="selection.find(item=>item.manuscriptStatus !== 30) || selection.length!==1"
type="warning" is-dark @click="reCreateManuscript"
>重新生成稿件 </ElButton >重新生成稿件 </ElButton
> >
</span> </span>
...@@ -468,8 +498,10 @@ ...@@ -468,8 +498,10 @@
row.orderNumber row.orderNumber
}}</span> }}</span>
<el-icon class="icon" @click="copy(row.orderNumber || '')" <el-icon class="icon" @click="copy(row.orderNumber || '')"
><DocumentCopy >
/></el-icon> <DocumentCopy
/>
</el-icon>
</div> </div>
<!-- <div class="order-list-expand_item_info_title">--> <!-- <div class="order-list-expand_item_info_title">-->
...@@ -781,7 +813,7 @@ import type { ...@@ -781,7 +813,7 @@ import type {
LogListData, LogListData,
ProductList, ProductList,
} from '@/types/api/order' } from '@/types/api/order'
import { onMounted, reactive, ref } from 'vue' import { nextTick, onMounted, reactive, ref } from 'vue'
import useElTableColumnWidth from '@/utils/hooks/useElTableColumnWidth' import useElTableColumnWidth from '@/utils/hooks/useElTableColumnWidth'
import { ArrowDown, ArrowUp, DocumentCopy } from '@element-plus/icons-vue' import { ArrowDown, ArrowUp, DocumentCopy } from '@element-plus/icons-vue'
import usePageList from '@/utils/hooks/usePageList' import usePageList from '@/utils/hooks/usePageList'
...@@ -799,7 +831,7 @@ import { ...@@ -799,7 +831,7 @@ import {
reGenerateScriptUrlApi, reGenerateScriptUrlApi,
refreshProductInfo, reCreateScriptUrlApi, refreshProductInfo, reCreateScriptUrlApi,
} from '@/api/order' } from '@/api/order'
import { showError, showConfirm } from '@/utils/ui' import { showConfirm } from '@/utils/ui'
import { useValue } from '@/utils/hooks/useValue' import { useValue } from '@/utils/hooks/useValue'
import { filePath } from '@/api/axios' import { filePath } from '@/api/axios'
import { getLogisticsCompanyList } from '@/api/common' import { getLogisticsCompanyList } from '@/api/common'
...@@ -816,6 +848,7 @@ import Quarantine from './Quarantine.vue' ...@@ -816,6 +848,7 @@ import Quarantine from './Quarantine.vue'
const [searchForm] = useValue<SearchForm>({ const [searchForm] = useValue<SearchForm>({
mainSku: '', mainSku: '',
endProductId: '', endProductId: '',
timeType: '',
logisticsTracking: '', logisticsTracking: '',
lanshouName: '', lanshouName: '',
billNumber: '', billNumber: '',
...@@ -825,10 +858,128 @@ const [searchForm] = useValue<SearchForm>({ ...@@ -825,10 +858,128 @@ const [searchForm] = useValue<SearchForm>({
subOrderNumber: '', subOrderNumber: '',
}) })
const tabsNav = ref<Tab[]>([]) const tabsNav = ref<Tab[]>([])
const splitRef = ref<never>()
const btnLoading = ref<boolean>(false) const btnLoading = ref<boolean>(false)
function getStartTime() {
const date = new Date()
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
return `${year}-${month}-${day} 00:00:00`
}
const pickerOptions = {
shortcuts: [
{
text: '今日',
value:() =>{
const start = new Date(new Date(getStartTime()).getTime())
const end = new Date()
return [start, end]
}
},
{
text: '昨天',
value:() =>{
const start = new Date()
const end = new Date(new Date(getStartTime()).getTime() - 1)
start.setTime(end.getTime() - 3600 * 1000 * 24 * 1 + 1)
return [start, end]
}
},
{
text: '最近7天',
value:() =>{
const end = new Date()
const start = new Date(getStartTime())
start.setTime(start.getTime() - 3600 * 1000 * 24 * 6)
return [start, end]
}
},
{
text: '最近14天',
value:() =>{
const end = new Date()
const start = new Date(getStartTime())
start.setTime(start.getTime() - 3600 * 1000 * 24 * 13)
return [start, end]
}
},
{
text: '最近30天',
value:() =>{
const end = new Date()
const start = new Date(getStartTime())
start.setTime(start.getTime() - 3600 * 1000 * 24 * 29)
return [start, end]
}
},
{
text: '本星期',
value:() =>{
const end = new Date()
const start = new Date()
const nowDay = new Date().getDay() - 1
start.setTime(
new Date(getStartTime()).getTime() - 3600 * 1000 * 24 * nowDay
)
return [start, end]
}
},
{
text: '上星期',
value:() =>{
const end = new Date()
const start = new Date()
const nowDay = new Date().getDay() - 1
end.setTime(
new Date(getStartTime()).getTime() - 3600 * 1000 * 24 * nowDay - 1
)
start.setTime(end.getTime() - 3600 * 1000 * 24 * 7 + 1)
return [start, end]
}
},
{
text: '这个月',
value:() =>{
const end = new Date()
const start = new Date()
const nowDate = new Date().getDate() - 1
start.setTime(
new Date(getStartTime()).getTime() - 3600 * 1000 * 24 * nowDate
)
return [start, end]
}
},
{
text: '上个月',
value:() =>{
const date = new Date()
let year = date.getFullYear()
let month = date.getMonth()
const end = new Date(
new Date(`${year}-${month + 1}-1 00:00:00`).getTime() - 1
)
if (month === 0) {
month = 12
year = year - 1
}
const start = new Date(
new Date(`${year}-${month}-1 00:00:00`).getTime()
)
return [start, end]
}
},
{
text: '历史',
value:() =>{
return ['', '']
}
}
]
}
const statusCode = ref(2) const statusCode = ref(2)
const selection = ref<OrderData[]>([]) const selection = ref<OrderData[]>([])
const timeRange = ref<string[]>([])
const logisticsCompanyList = ref<LogisticsData[]>([]) const logisticsCompanyList = ref<LogisticsData[]>([])
const rules = reactive<FormRules<ShipmentForm>>({ const rules = reactive<FormRules<ShipmentForm>>({
shippingWay: [ shippingWay: [
...@@ -870,7 +1021,13 @@ const { ...@@ -870,7 +1021,13 @@ const {
} = usePageList({ } = usePageList({
query: (page, pageSize) => query: (page, pageSize) =>
getOrderList( getOrderList(
{ ...searchForm.value, status: statusCode.value }, {
...searchForm.value,
status: statusCode.value,
timeType: timeRange.value.length > 0 ? searchForm.value.timeType : null,
startTime: searchForm.value.timeType === '' ? null : timeRange.value.length > 0 ? timeRange.value[0] : null,
endTime: searchForm.value.timeType === '' ? null : timeRange.value.length > 0 ? timeRange.value[1] : null,
},
page, page,
pageSize, pageSize,
).then((res) => res.data), ).then((res) => res.data),
...@@ -948,7 +1105,11 @@ const arraySpanMethod = ({ columnIndex }: SpanMethodProps) => { ...@@ -948,7 +1105,11 @@ const arraySpanMethod = ({ columnIndex }: SpanMethodProps) => {
} }
const changeTab = (item: Tab) => { const changeTab = (item: Tab) => {
statusCode.value = item.statusCode statusCode.value = item.statusCode
searchForm.value.timeType = ''
search() search()
nextTick(()=>{
splitRef.value.domResize()
})
} }
const copy = (text: string) => { const copy = (text: string) => {
navigator.clipboard.writeText(text) navigator.clipboard.writeText(text)
...@@ -1031,7 +1192,7 @@ const downloadManuscript = async () => { ...@@ -1031,7 +1192,7 @@ const downloadManuscript = async () => {
window.open(filePath + path) window.open(filePath + path)
}) })
} }
// 重新生成稿件 // 重新打包稿件
const reGenerateManuscript = async () => { const reGenerateManuscript = async () => {
if (selection.value.length === 0) { if (selection.value.length === 0) {
return ElMessage({ return ElMessage({
...@@ -1058,6 +1219,7 @@ const reGenerateManuscript = async () => { ...@@ -1058,6 +1219,7 @@ const reGenerateManuscript = async () => {
// showError(e) // showError(e)
} }
} }
//重新生成稿件
const reCreateManuscript = async () => { const reCreateManuscript = async () => {
if (selection.value.length === 0) { if (selection.value.length === 0) {
return ElMessage({ return ElMessage({
...@@ -1077,7 +1239,7 @@ const reCreateManuscript = async () => { ...@@ -1077,7 +1239,7 @@ const reCreateManuscript = async () => {
return return
} }
try { try {
const res = await reCreateScriptUrlApi(ids) const res = await reCreateScriptUrlApi(ids[0])
ElMessage.success(res.message) ElMessage.success(res.message)
search() search()
} catch (e) { } catch (e) {
...@@ -1117,7 +1279,7 @@ const printManuscript = async () => { ...@@ -1117,7 +1279,7 @@ const printManuscript = async () => {
// 导出生产单 // 导出生产单
const exportManuscript = async () => { const exportManuscript = async () => {
try { try {
const res = await exportOrder(statusCode.value) const res = await exportOrder({ids:selection.value.map(el=>el.id),status: statusCode.value })
window.open(filePath + res.message) window.open(filePath + res.message)
} catch (e) { } catch (e) {
// showError(e) // showError(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