|
@ -56,7 +56,18 @@ |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
:isBusiness="false" |
|
|
:isBusiness="false" |
|
|
@onChange="onChange" |
|
|
@onChange="onChange" |
|
|
/> |
|
|
> |
|
|
|
|
|
<template #searchQuerypurchaseReceiptNumber> |
|
|
|
|
|
<el-form :inline="true"> |
|
|
|
|
|
<el-form-item label="供应商物料代码"> |
|
|
|
|
|
<el-input v-model="basicFormRef.formRef.formModel.itemCode" placeholder="请输入供应商" disabled></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="供应商代码"> |
|
|
|
|
|
<el-input v-model="basicFormRef.formRef.formModel.supplierCode" placeholder="请输入物料号" disabled></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
</template> |
|
|
|
|
|
</BasicForm> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="Q2.allSchemas" /> |
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="Q2.allSchemas" /> |
|
@ -83,8 +94,9 @@ import { formatDate } from '@/utils/formatTime' |
|
|
import * as SupplieritemApi from '@/api/wms/supplieritem' |
|
|
import * as SupplieritemApi from '@/api/wms/supplieritem' |
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
|
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
const userStore = useUserStore() |
|
|
const userStore = useUserStore() |
|
|
|
|
|
|
|
|
defineOptions({ name: 'InspectionQ2' }) |
|
|
defineOptions({ name: 'InspectionQ2' }) |
|
@ -487,13 +499,13 @@ const handleExport = async () => { |
|
|
// 导出的二次确认 |
|
|
// 导出的二次确认 |
|
|
await message.exportConfirm() |
|
|
await message.exportConfirm() |
|
|
// 发起导出 |
|
|
// 发起导出 |
|
|
exportLoading.value = true |
|
|
loadStart() |
|
|
const excelTitle = ref(route.meta.title) |
|
|
const excelTitle = ref(route.meta.title) |
|
|
const data = await Q2Api.exportQ2(tableObject.params) |
|
|
const data = await Q2Api.exportQ2(tableObject.params) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) |
|
|
} catch { |
|
|
} catch { |
|
|
} finally { |
|
|
} finally { |
|
|
exportLoading.value = false |
|
|
loadDone() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|