Browse Source

Q2通知单

hella_online_20240823
wangyufei 3 months ago
parent
commit
5f17a681b6
  1. 20
      src/views/qms/inspectionQ2/index.vue

20
src/views/qms/inspectionQ2/index.vue

@ -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()
} }
} }

Loading…
Cancel
Save