Browse Source

盘点和采购收货

master
zhang_li 12 months ago
parent
commit
98c6e4b850
  1. 7
      src/api/wms/purchasereceiptJobMain/index.ts
  2. 7
      src/api/wms/purchasereceiptRequestMain/index.ts
  3. 2
      src/components/Form/src/Form.vue
  4. 2
      src/views/wms/countManage/count/countPlanMain/index.vue
  5. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue
  6. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

7
src/api/wms/purchasereceiptJobMain/index.ts

@ -80,7 +80,12 @@ export const deletePurchasereceiptJobMain = async (id: number) => {
// 导出采购收货任务主 Excel
export const exportPurchasereceiptJobMain = async (params) => {
return await request.download({ url: `/wms/purchasereceipt-job-main/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereceipt-job-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/purchasereceipt-job-main/export-excel`, params })
}
}
// 下载用户导入模板

7
src/api/wms/purchasereceiptRequestMain/index.ts

@ -64,7 +64,12 @@ export const deletePurchasereceiptRequestMain = async (id: number) => {
// 导出采购收货申请主 Excel
export const exportPurchasereceiptRequestMain = async (params) => {
return await request.download({ url: `/wms/purchasereceipt-request-main/export-excel`, params })
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/purchasereceipt-request-main/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/purchasereceipt-request-main/export-excel`, params })
}
}
// 下载用户导入模板

2
src/components/Form/src/Form.vue

@ -228,7 +228,7 @@ export default defineComponent({
formItemSlotsSearchList[item.field] = () => {
return (
<>
<ElTooltip placement="top" content={formModel.value[item.field]} visible={formModel.value[item.field]}>
<ElTooltip placement="top" content={formModel.value[item.field]} >
<ElInput class={'myInput'} v-model={formModel.value[item.field]} placeholder={item?.componentProps?.searchListPlaceholder} disabled={true} />
</ElTooltip>
<ElButton icon={Search} onClick={()=>{

2
src/views/wms/countManage/count/countPlanMain/index.vue

@ -53,7 +53,7 @@
:tableData="tableData"
:apiUpdate="CountPlanMainApi.updateCountPlanMain"
:apiCreate="CountPlanMainApi.createCountPlanMain"
:isBusiness="true"
:isBusiness="false"
fromeWhere="countPlan"
@handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"

2
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue

@ -210,7 +210,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await PurchasereceiptJobMainApi.exportPurchasereceiptJobMain(setSearchParams)
const data = await PurchasereceiptJobMainApi.exportPurchasereceiptJobMain(tableObject.params)
download.excel(data, '采购收货任务主.xlsx')
} catch {
} finally {

2
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -297,7 +297,7 @@ const handleExport = async () => {
await message.exportConfirm()
//
exportLoading.value = true
const data = await PurchasereceiptRequestMainApi.exportPurchasereceiptRequestMain(setSearchParams)
const data = await PurchasereceiptRequestMainApi.exportPurchasereceiptRequestMain(tableObject.params)
download.excel(data, '采购收货申请主.xlsx')
} catch {
} finally {

Loading…
Cancel
Save