ljlong_2630 6 months ago
parent
commit
8994e3a18f
  1. 11
      src/api/wms/customerStatementDetail/index.ts
  2. 2
      src/api/wms/productreceiptRequestMain/index.ts
  3. 3
      src/components/Detail/src/Detail.vue
  4. 58
      src/components/ImportForm/src/ImportCustomerStatementForm.vue
  5. 9
      src/locales/en-US.ts
  6. 10
      src/locales/zh-CN.ts
  7. 2
      src/utils/disposition/defaultButtons.ts
  8. 20
      src/views/login/components/LoginForm.vue
  9. 183
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts
  10. 175
      src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue
  11. 31
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts
  12. 1
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue
  13. 29
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts
  14. 8
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  15. 50
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
  16. 3
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  17. 5
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  18. 15
      src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts
  19. 4
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  20. 15
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts
  21. 2
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue
  22. 13
      src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
  23. 6
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts
  24. 93
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

11
src/api/wms/customerStatementDetail/index.ts

@ -45,7 +45,16 @@ export const getCustomerStatementDetailPage = async (params) => {
return await request.get({ url: `/wms/customer-statement-detail/page`, params }) return await request.get({ url: `/wms/customer-statement-detail/page`, params })
} }
} }
// 查询客户对账单子信息明细表(WMS)列表或者查询客户对账单对账差异列表 二者共用一个
export const getCustomerStatementReconciliationPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/wms/customer-statement-detail/senior', data })
} else {
return await request.get({ url: `/wms/customer-statement-detail/page`, params })
}
}
// 查询客户对账单子信息表(WMS)详情 // 查询客户对账单子信息表(WMS)详情
export const getCustomerStatementDetail = async (id: number) => { export const getCustomerStatementDetail = async (id: number) => {
return await request.get({ url: `/wms/customer-statement-detail/get?id=` + id }) return await request.get({ url: `/wms/customer-statement-detail/get?id=` + id })

2
src/api/wms/productreceiptRequestMain/index.ts

@ -84,7 +84,7 @@ export const deleteProductreceiptRequestMain = async (id: number) => {
// 导出制品收货申请主 Excel // 导出制品收货申请主 Excel
export const exportProductreceiptRequestMain = async (params) => { export const exportProductreceiptRequestMain = async (params) => {
params.type = 'predict' params.type = 'scrap'
if (params.isSearch) { if (params.isSearch) {
const data = {...params} const data = {...params}
return await request.downloadPost({ url: `/wms/productreceipt-request-main/export-excel-senior`, data }) return await request.downloadPost({ url: `/wms/productreceipt-request-main/export-excel-senior`, data })

3
src/components/Detail/src/Detail.vue

@ -912,6 +912,9 @@ const buttonBaseClick = (val, item) => {
}else{ }else{
openForm('create') openForm('create')
} }
} else if (val == 'export') {
//
emit('buttonBaseClick',val, item,tableObject)
} else if (val == 'refresh') { } else if (val == 'refresh') {
// //
getList() getList()

58
src/components/ImportForm/src/ImportCustomerStatementForm.vue

@ -2,34 +2,38 @@
<template> <template>
<Dialog v-model="dialogVisible" :title="t('ts.导入')" width="600" :close-on-click-modal="false"> <Dialog v-model="dialogVisible" :title="t('ts.导入')" width="600" :close-on-click-modal="false">
<el-form <el-form
:inline="true" :inline="true"
:model="queryParams" :model="queryParams"
class="demo-form-inline" class="demo-form-inline"
style="margin-bottom: 10px" style="margin-bottom: 10px"
label-width="100px" label-width="70px"
>
<el-form-item label="客户代码" style="margin-right: 20px;">
<el-select
v-model="queryParams.customerCode"
placeholder="请选择客户代码"
clearable
style="width: 100px"
> >
<el-option v-for="(item) in customerList" :key="item.code" :label="item.name" :value="item.code" /> <el-row>
</el-select> <el-col :span="12">
</el-form-item> <el-form-item label="客户代码">
<el-select
<el-form-item label="年月" style="margin-right: 20px;"> v-model="queryParams.customerCode"
<el-date-picker placeholder="请选择客户代码"
v-model="queryParams.yearsMonthStr" clearable
type="month" >
placeholder="选择年月" <el-option v-for="(item) in customerList" :key="item.code" :label="item.name" :value="item.code" />
format="YYYY-MM" </el-select>
value-format="YYYY-MM" </el-form-item>
style="width: 100%"> </el-col>
</el-date-picker> <el-col :span="12">
</el-form-item> <el-form-item label="年月">
</el-form> <el-date-picker
v-model="queryParams.yearsMonthStr"
type="month"
placeholder="选择年月"
format="YYYY-MM"
value-format="YYYY-MM"
style="width: 100%"
/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<el-upload <el-upload
ref="uploadRef" ref="uploadRef"
v-model:file-list="fileList" v-model:file-list="fileList"

9
src/locales/en-US.ts

@ -1302,7 +1302,14 @@ export default {
: 'The range of invoices is', : 'The range of invoices is',
: 'Re compare', : 'Re compare',
: 'Confirm the comparison results', : 'Confirm the comparison results',
: 'Confirm the shared amount' : 'Confirm the shared amount',
: 'Import mold allocation statement',
: 'Do you want to re compare?',
: 'Are you sure about the comparison results?',
退: 'Do you want to return it?',
: 'Do you want to invalidate it?',
: 'Do you want to confirm the allocation amount?',
: 'Create an invoice request?',
}, },

10
src/locales/zh-CN.ts

@ -1301,8 +1301,16 @@ export default {
: '发票回转成功', : '发票回转成功',
:'最后更新人', :'最后更新人',
: '可开票数量范围是', : '可开票数量范围是',
: '重新对比',
: '确认对比结果', : '确认对比结果',
: '确认分摊金额' : '确认分摊金额',
: '导入模具分摊对账单',
: '是否重新比对?',
: "是否确认对比结果?",
退: '是否退回?',
: '是否作废?',
: '是否确认分摊金额?',
: '创建开票申请',
}, },
} }

2
src/utils/disposition/defaultButtons.ts

@ -470,7 +470,7 @@ export function mainListCancelBtn(option: any) {
label: t(`ts.作废`).replace('ts.', ''), label: t(`ts.作废`).replace('ts.', ''),
name: 'cancel', name: 'cancel',
hide: false, hide: false,
type: 'primary', type: 'danger',
color: '', color: '',
link: true, // 文本展现按钮 link: true, // 文本展现按钮
hasPermi: '' hasPermi: ''

20
src/views/login/components/LoginForm.vue

@ -307,16 +307,16 @@
authUtil.removeLoginForm() authUtil.removeLoginForm()
} }
authUtil.setToken(res) authUtil.setToken(res)
if(getSystermUpdateAlert()=='true'||getSystermUpdateAlert()===true){ // if(getSystermUpdateAlert()=='true'||getSystermUpdateAlert()===true){
await ElMessageBox.alert( // await ElMessageBox.alert(
'<strong>系统迁移,请移步至</strong>' + // '<strong></strong>' +
`<a href=${getSystermUpdateUrl()} target="_blank">${getSystermUpdateUrl()}</a>`, // `<a href=${getSystermUpdateUrl()} target="_blank">${getSystermUpdateUrl()}</a>`,
'重要提示', // '',
{ // {
dangerouslyUseHTMLString: true, // dangerouslyUseHTMLString: true,
} // }
) // )
} // }
if (!redirect.value) { if (!redirect.value) {
redirect.value = '/' redirect.value = '/'
} }

183
src/views/wms/deliversettlementManage/moldAllocation/customerStatement/customerStatementMain.data.ts

@ -25,7 +25,7 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true, isSearch: true,
}, },
{ {
label: '客户编号', label: '客户代码',
field: 'customerCode', field: 'customerCode',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
@ -53,13 +53,7 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
detail: { detail: {
dateFormat: 'YYYY-MM' dateFormat: 'YYYY-MM'
}, },
table: { isTable:false,
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'YYYY-MM'
}
},
form: { form: {
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
@ -68,6 +62,15 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
}, },
{
label: '年月',
field: 'yearsMonthStr',
sort: 'custom',
detail: {
dateFormat: 'YYYY-MM'
},
isForm:false,
},
{ {
label: '状态', label: '状态',
field: 'status', field: 'status',
@ -80,145 +83,12 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
component: 'Select', component: 'Select',
}, },
}, },
{ {
label: '重新比对时间', label: '创建者',
field: 'comparisonTime',
sort: 'custom',
isTable:false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '发布时间',
field: 'publishTime',
sort: 'custom',
isTable:false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '已分摊时间',
field: 'shareTime',
sort: 'custom',
isTable:false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '待开票时间',
field: 'beInvoicedTime',
sort: 'custom',
isTable:false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '开票中时间',
field: 'invoicedTime',
sort: 'custom',
isTable:false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '已开票时间',
field: 'issuedInvoicedTime',
sort: 'custom',
isTable:false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '已作废时间',
field: 'abrogateTime',
sort: 'custom',
isTable:false,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
formatter: dateFormatter,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
},
{
label: '操作人',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
}, },
{
label: '版本号',
field: 'versionNumber',
sort: 'custom',
},
// {
// label: '备注',
// field: 'remark',
// sort: 'custom',
// },
// {
// label: '是否可用默认TRUE',
// field: 'available',
// sort: 'custom',
// },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -238,23 +108,13 @@ export const CustomerStatementMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
// {
// label: '地点ID',
// field: 'siteId',
// sort: 'custom',
// },
// {
// label: '并发乐观锁',
// field: 'concurrencyStamp',
// sort: 'custom',
// },
{ {
label: '操作', label: '操作',
isDetail:false, isDetail:false,
field: 'action', field: 'action',
isForm: false, isForm: false,
table: { table: {
width: 300, width: 360,
fixed: 'right' fixed: 'right'
} }
} }
@ -282,9 +142,6 @@ export const CustomerStatementDetail = useCrudSchemas(reactive<CrudSchema[]>([
label: '开票种类', label: '开票种类',
field: 'invoiceType', field: 'invoiceType',
sort: 'custom', sort: 'custom',
form: {
component: 'SelectV2'
},
isForm: false, isForm: false,
}, },
{ {
@ -396,14 +253,14 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
}, },
{ {
label: '背番', label: '背番',
field: 'articleName', field: 'backNumber',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isForm: false, isForm: false,
}, },
{ {
label: '出荷日期', label: '出荷日期',
field: 'checkTime', field: 'dischargingTime',
sort: 'custom', sort: 'custom',
formatter: dateFormatter, formatter: dateFormatter,
isSearch: true, isSearch: true,
@ -426,7 +283,7 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
}, },
{ {
label: '验收日期', label: '验收日期',
field: 'uom', field: 'checkTime',
sort: 'custom', sort: 'custom',
isForm: false, isForm: false,
}, },
@ -449,7 +306,7 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
}, },
{ {
label: '数量差异', label: '数量差异',
field: 'amount', field: 'quantityVariance',
sort: 'custom', sort: 'custom',
}, },
{ {
@ -465,7 +322,7 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
{ {
label: '单价差异', label: '单价差异',
field: 'amount', field: 'amount',
sort: 'custom', sort: 'priceVariance',
}, },
{ {
label: '金额-INTEX', label: '金额-INTEX',
@ -479,7 +336,7 @@ export const CustomerStatementReconciliation = useCrudSchemas(reactive<CrudSchem
}, },
{ {
label: '金额差异', label: '金额差异',
field: 'amount', field: 'amountVariance',
sort: 'custom', sort: 'custom',
}, },
{ {

175
src/views/wms/deliversettlementManage/moldAllocation/customerStatement/index.vue

@ -60,7 +60,7 @@
:tableObjectExtend="tableObjectExtend" :tableObjectExtend="tableObjectExtend"
@buttonBaseClick="detailButtonBaseClick" @buttonBaseClick="detailButtonBaseClick"
> >
<template #qty="{row}"> <template #qty="{row}" v-if="tabCurrent.prop == 'ShareReconciliation'">
<span :style="{color:row.qty>0?'red':row.qty<0?'#409eff':'#000'}">{{ row.qty }}</span> <span :style="{color:row.qty>0?'red':row.qty<0?'#409eff':'#000'}">{{ row.qty }}</span>
</template> </template>
<template #amount="{row}" v-if="tabCurrent.prop == 'ShareReconciliation'"> <template #amount="{row}" v-if="tabCurrent.prop == 'ShareReconciliation'">
@ -72,6 +72,7 @@
</Detail> </Detail>
<!-- 导入 --> <!-- 导入 -->
<ImportCustomerStatementForm ref="importFormRef" url="/wms/customer-statement-main/import" :importTemplateData="importTemplateData" @success="importSuccess" /> <ImportCustomerStatementForm ref="importFormRef" url="/wms/customer-statement-main/import" :importTemplateData="importTemplateData" @success="importSuccess" />
<ImportCustomerStatementShareForm ref="importShareFormRef" url="/wms/customer-tool-apport-statement-detail/import" :importTemplateData="importShareTemplateData" @success="importSuccess" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -83,6 +84,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportCustomerStatementForm from '@/components/ImportForm/src/ImportCustomerStatementForm.vue' import ImportCustomerStatementForm from '@/components/ImportForm/src/ImportCustomerStatementForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
import ImportCustomerStatementShareForm from '@/components/ImportForm/src/ImportCustomerStatementShareForm.vue'
import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'CustomerStatementMain' }) defineOptions({ name: 'CustomerStatementMain' })
@ -125,10 +128,8 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
//defaultButtons.defaultAddBtn({hasPermi:'wms:customerStatementMain:create'}), // //defaultButtons.defaultAddBtn({hasPermi:'wms:customerStatementMain:create'}), //
//defaultButtons.defaultImportBtn({hasPermi:'wms:customerStatementMain:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:customer-statement-main:import'}), //
//defaultButtons.defaultExportBtn({hasPermi:'wms:customerStatementMain:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:customer-statement-main:export'}), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -168,37 +169,55 @@ const butttondata = (row, $index) => {
// defaultButtons.mainListEditBtn({hasPermi:'wms:customerStatementMain:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'wms:customerStatementMain:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:customerStatementMain:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:customerStatementMain:delete'}), //
{ {
label: t('重新对'), label: t('ts.重新对'),
name: 'rematch', name: 'rematch',
hide: isShowMainButton(row, ['2']), hide: isShowMainButton(row, ['2']),
type: 'primary', type: 'primary',
icon: '', icon: '',
color: '', color: '',
hasPermi: '', hasPermi: 'wms:customer-statement-main:recontrast',
link: true // link: true //
}, },
{ {
label: t('确认对比结果'), label: t('ts.确认对比结果'),
name: 'confirmationContrast', name: 'confirmationContrast',
hide: isShowMainButton(row, ['2']), hide: isShowMainButton(row, ['2']),
type: 'primary', type: 'primary',
icon: '', icon: '',
color: '', color: '',
hasPermi: '', hasPermi: 'wms:customer-statement-main:confirmationContrast',
link: true // link: true //
}, },
defaultButtons.mainSendBackBtn({ hide: isShowMainButton(row, ['3','4','5']) }), // 退
//defaultButtons.mainListCancelBtn({ hide: isShowMainButton(row, ['2','3','4','5']), hasPermi: 'wms:purchase-plan-main:update' }), //
defaultButtons.mainListCancelBtn({ hide: isShowMainButton(row, ['2','3','4','5'])}), //
{ {
label: t('导入'), label: t('ts.导入模具分摊对账单'),
name: 'import', name: 'importShareReconciliation',
hide: isShowMainButton(row, ['3','4']), hide: isShowMainButton(row, ['3','4']),
type: 'warning', type: 'primary',
color: '',
hasPermi: 'wms:customer-statement-main:import',
link: true //
},
{
label: t('ts.确认分摊金额'),
name: 'confirmShareMoney',
hide: isShowMainButton(row, ['4']),
type: 'primary',
color: '',
hasPermi: 'wms:customer-statement-main:confirmationShare',
link: true //
},
{
label: t('ts.创建开票申请'),
name: 'createTicketApply',
hide: isShowMainButton(row, ['5']),
type: 'primary',
color: '', color: '',
hasPermi: '', hasPermi: '',
link: true // link: true //
}, },
defaultButtons.mainSendBackBtn({hasPermi: 'wms:customer-statement-main:sendBack', hide: isShowMainButton(row, ['3','4','5']) }), // 退
defaultButtons.mainListCancelBtn({ hasPermi: 'wms:customer-statement-main:publish',hide: isShowMainButton(row, ['2','3','4','5'])}), //
] ]
} }
@ -209,12 +228,16 @@ const buttonTableClick = async (val, row) => {
tapRematch(row.id); tapRematch(row.id);
} else if (val == 'confirmationContrast') { // } else if (val == 'confirmationContrast') { //
tapConfirmationContrast(row.id) tapConfirmationContrast(row.id)
} else if (val == 'importShareReconciliation') { //
handleShareImport(row.id)
} else if (val == 'confirmShareMoney') { //
handleConfirmShareMoney(row.id)
} else if (val == 'createTicketApply') { //
// handleConfirmShareMoney(row.id)
}else if (val == 'sendBack') { // 退 }else if (val == 'sendBack') { // 退
tapSendBack(row.id) tapSendBack(row.id)
}else if (val == 'cancel') { // }else if (val == 'cancel') { //
tapCancel(row.id) tapCancel(row.id)
}else if (val == 'import') { //
handleDelete(row.id)
} }
} }
@ -277,8 +300,9 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const excelTitle = ref(route.meta.title)
const data = await CustomerStatementMainApi.exportCustomerStatementMain(tableObject.params) const data = await CustomerStatementMainApi.exportCustomerStatementMain(tableObject.params)
download.excel(data, '客户对账单主信息表(WMS).xlsx') download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false
@ -287,13 +311,25 @@ const handleExport = async () => {
/** 导入 */ /** 导入 */
const importFormRef = ref() const importFormRef = ref()
//
const importShareFormRef = ref()
const handleImport = () => { const handleImport = () => {
importFormRef.value.open() importFormRef.value.open()
} }
const handleShareImport = (id:number) => {
importShareTemplateData.customerId = id
importShareFormRef.value.open()
}
// //
const importTemplateData = reactive({ const importTemplateData = reactive({
templateUrl: '', templateUrl: '',
templateTitle: '客户对账单导入模版.xlsx' templateTitle: `${route.meta.title}】导入模版.xlsx`
})
//
const importShareTemplateData = reactive({
templateUrl: '',
templateTitle: '模具分摊对账单导入模版.xlsx',
customerId: 0
}) })
// //
const importSuccess = () => { const importSuccess = () => {
@ -318,7 +354,7 @@ onMounted(async () => {
const tapRematch = async (id:number) => { const tapRematch = async (id:number) => {
try { try {
// //
await message.confirm('是否重新比对') await message.confirm( t('ts.是否重新比对'))
await CustomerStatementMainApi.recontrast(id); await CustomerStatementMainApi.recontrast(id);
// //
//exportLoading.value = true //exportLoading.value = true
@ -333,7 +369,7 @@ const tapRematch = async (id:number) => {
// //
const tapConfirmationContrast = async (id:number) => { const tapConfirmationContrast = async (id:number) => {
try { try {
await message.confirm('是否确认对比结果') await message.confirm( t('ts.是否确认对比结果'))
await CustomerStatementMainApi.confirmationContrast(id); await CustomerStatementMainApi.confirmationContrast(id);
// //
//exportLoading.value = true //exportLoading.value = true
@ -348,7 +384,7 @@ const tapConfirmationContrast = async (id:number) => {
//退 //退
const tapSendBack = async (id:number) => { const tapSendBack = async (id:number) => {
try { try {
await message.confirm('是否退回') await message.confirm(t('ts.是否退回'))
await CustomerStatementMainApi.sendBack(id); await CustomerStatementMainApi.sendBack(id);
// //
//exportLoading.value = true //exportLoading.value = true
@ -363,7 +399,7 @@ const tapSendBack = async (id:number) => {
// //
const tapCancel = async (id:number) => { const tapCancel = async (id:number) => {
try { try {
await message.confirm('是否作废') await message.confirm(t('ts.是否作废'))
await CustomerStatementMainApi.nodeAbrogate(id); await CustomerStatementMainApi.nodeAbrogate(id);
// //
//exportLoading.value = true //exportLoading.value = true
@ -374,14 +410,23 @@ const tapCancel = async (id:number) => {
await getList() await getList()
} }
} }
//
// const handleConfirmShareMoney = async (id:number) => {
const isShowMainButton = (row, val) => { try {
if (val.indexOf(row.status) > -1) { await message.confirm(t('ts.是否确认分摊金额'))
return false await CustomerStatementMainApi.confirmationShare(id);
} else { } finally {
return true //
} await getList()
}
}
//
const isShowMainButton = (row, val) => {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
} }
const tabCurrent = ref({}) const tabCurrent = ref({})
const changeTabs = async (item) => { const changeTabs = async (item) => {
@ -398,12 +443,12 @@ const changeTabs = async (item) => {
DetailAllSchemas.value = CustomerStatementDetail.allSchemas DetailAllSchemas.value = CustomerStatementDetail.allSchemas
otherHeadButttonData.value = [{ otherHeadButttonData.value = [{
label: t(`ts.导出`).replace('ts.', ''), label: t(`ts.导出`).replace('ts.', ''),
name: 'exportDetail', name: 'export',
hide: false, hide: false,
type: 'success', type: 'success',
icon: 'ep:download', icon: 'ep:download',
color: '', color: '',
hasPermi: '' hasPermi: 'wms:customer-statement-main:export'
}] }]
} else if (item.prop == 'Reconciliation') { } else if (item.prop == 'Reconciliation') {
// //
@ -414,7 +459,7 @@ const changeTabs = async (item) => {
value: chooseRow.value.id value: chooseRow.value.id
}] }]
DetailAllSchemas.value = CustomerStatementReconciliation.allSchemas DetailAllSchemas.value = CustomerStatementReconciliation.allSchemas
apiPage.value = CustomerStatementMainApi.getCustomerStatementMainPage apiPage.value = CustomerStatementDetailApi.getCustomerStatementReconciliationPage
otherHeadButttonData.value = [ otherHeadButttonData.value = [
{ {
label: t(`ts.导出`).replace('ts.', ''), label: t(`ts.导出`).replace('ts.', ''),
@ -423,24 +468,24 @@ const changeTabs = async (item) => {
type: 'success', type: 'success',
icon: 'ep:download', icon: 'ep:download',
color: '', color: '',
hasPermi: '' hasPermi: 'wms:customer-statement-main:export'
}, },
{ {
label:'重新对比', label: t('ts.重新对比'),
name: 'againContrast', name: 'againContrast',
hide: false, hide: isShowMainButton( chooseRow.value, ['2']),
type: 'primary', type: 'primary',
color: '', color: '',
float:'left', float:'left',
hasPermi: '' hasPermi: 'wms:customer-statement-main:recontrast'
},{ },{
label: t('ts.确认对比结果'), label: t('ts.确认对比结果'),
name: 'confirmResults', name: 'confirmResults',
hide: false, hide: isShowMainButton( chooseRow.value, ['2']),
type: 'primary', type: 'primary',
color: '', color: '',
float:'left', float:'left',
hasPermi: '' hasPermi: 'wms:customer-statement-main:confirmationContrast'
}] }]
} else if (item.prop == 'ShareReconciliation') { } else if (item.prop == 'ShareReconciliation') {
// //
@ -453,23 +498,23 @@ const changeTabs = async (item) => {
apiPage.value = CustomerStatementDetailApi.getCustomerStatementDetailPage apiPage.value = CustomerStatementDetailApi.getCustomerStatementDetailPage
DetailAllSchemas.value = CustomerStatementShareReconciliation.allSchemas DetailAllSchemas.value = CustomerStatementShareReconciliation.allSchemas
otherHeadButttonData.value = [ otherHeadButttonData.value = [
{ {
label: t(`ts.导出`).replace('ts.', ''), label: t(`ts.导出`).replace('ts.', ''),
name: 'exportConfirmShareMoney', name: 'exportConfirmShareMoney',
hide: false, hide: false,
type: 'success', type: 'success',
icon: 'ep:download', icon: 'ep:download',
color: '', color: '',
hasPermi: '' hasPermi: 'wms:customer-statement-main:export'
}, },
{ {
label: t('ts.确认分摊金额'), label: t('ts.确认分摊金额'),
name: 'confirmShareMoney', name: 'confirmShareMoney',
hide: false, hide: isShowMainButton(chooseRow.value, ['4']),
type: 'primary', type: 'primary',
color: '', color: '',
float:'left', float:'left',
hasPermi: '' hasPermi: 'wms:customer-statement-main:confirmationShare'
}] }]
} else{ } else{
tableObjectExtend.value = [] tableObjectExtend.value = []
@ -479,9 +524,17 @@ const changeTabs = async (item) => {
} }
} }
// //
const detailButtonBaseClick = (val, item) => { const detailButtonBaseClick = (val, item,detailTableObject) => {
if (val == 'exportReconciliation') { if (val == 'export') {
// //
if (tabCurrent.value.prop == 'Detail') {
handleExportDetail(detailTableObject)
} else if (tabCurrent.value.prop == 'Reconciliation') {
//
handleExportReconciliation(detailTableObject)
} {
}
}else if (val == 'againContrast') { }else if (val == 'againContrast') {
// //
}else if (val == 'confirmResults') { }else if (val == 'confirmResults') {
@ -491,6 +544,34 @@ const detailButtonBaseClick = (val, item) => {
}else if (val == 'confirmShareMoney') { }else if (val == 'confirmShareMoney') {
// //
} }
}
//
const handleExportDetail = async (detailTableObject) => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await CustomerStatementDetailApi.exportCustomerStatementDetail(detailTableObject.params)
download.excel(data, `对账差异【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
}
}
//
const handleExportReconciliation = async (detailTableObject) => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await CustomerStatementDetailApi.exportCustomerStatementCompareDetail(detailTableObject.params)
download.excel(data, `对账差异【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
}
} }
// //
const openDetailForm = (row) => { const openDetailForm = (row) => {

31
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance' import * as BalanceApi from '@/api/wms/balance'
@ -395,6 +395,33 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
isTableForm: true, isTableForm: true,
isForm: false, isForm: false,
}, },
{
label: '生产日期',
field: 'produceDate',
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
table: {
width: 180
},
sortTableDefault:7,
form: {
component: 'DatePicker',
componentProps: {
style: {width: '100%'},
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
}
},
tableForm: {
type: 'FormDate',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
}
},
{ {
label: '批次', label: '批次',
field: 'fromBatch', field: 'fromBatch',
@ -403,7 +430,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
}, },
tableForm: { tableForm: {
disabled: true disabled: true,
}, },
form: { form: {
componentProps: { componentProps: {

1
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue

@ -91,6 +91,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as LocationApi from '@/api/wms/location' import * as LocationApi from '@/api/wms/location'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
import * as ruleApi from '@/api/wms/rule/index'
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
// //
// 使 // 使

29
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/inventorymoveRequestMain.data.ts

@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as BalanceApi from '@/api/wms/balance' import * as BalanceApi from '@/api/wms/balance'
@ -549,6 +549,33 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{
label: '生产日期',
field: 'produceDate',
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
table: {
width: 180
},
sortTableDefault:7,
form: {
component: 'DatePicker',
componentProps: {
style: {width: '100%'},
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
}
},
tableForm: {
type: 'FormDate',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x',
}
},
{ {
label: '从批次', label: '从批次',
field: 'fromBatch', field: 'fromBatch',

8
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -260,7 +260,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
if(formField == 'packingNumber'){ if(formField == 'itemCode'){
row['containerNumber'] = val[0]['containerNumber'] row['containerNumber'] = val[0]['containerNumber']
row['itemCode'] = val[0]['itemCode'] row['itemCode'] = val[0]['itemCode']
row['packingNumber'] = val[0]['packingNumber'] row['packingNumber'] = val[0]['packingNumber']
@ -303,6 +303,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
} }
const setV = {}
if (formField == 'shift') {
setV['shift'] = val[0]['code']
setV['shiftName'] = val[0]['name']
}
formRef.setValues(setV)
}) })
} }
// //

50
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

@ -129,7 +129,7 @@ export const ProductdismantleRequestMain = useCrudSchemas(reactive<CrudSchema[]>
} }
}, },
{ {
label: '班次', label: '班次代码',
field: 'shift', field: 'shift',
sort: 'custom', sort: 'custom',
table: { table: {
@ -161,6 +161,19 @@ export const ProductdismantleRequestMain = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
{
label: '班次名称',
field: 'shiftName',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
},
},
{ {
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',
@ -691,16 +704,16 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
} }
}, },
{ {
label: '包装号', label: '物料代码',
field: 'packingNumber', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
tableForm:{ tableForm:{
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择包装号', searchListPlaceholder: '请选择物料代码',
searchField: 'packingNumber', searchField: 'itemCode',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalanceItemPage searchPage: BalanceApi.getBalanceItemPage
@ -709,31 +722,14 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, isSearchList: true,
searchListPlaceholder: '请选择包装号', searchListPlaceholder: '请选择物料代码',
searchField: 'packingNumber', searchField: 'itemCode',
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalanceItemPage searchPage: BalanceApi.getBalanceItemPage
} }
} }
}, },
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps:{
disabled: true
}
},
tableForm: {
disabled: true
}
},
{ {
label: '成品库位代码', label: '成品库位代码',
field: 'fromLocationCode', field: 'fromLocationCode',
@ -1140,9 +1136,9 @@ export const ProductdismantleRequestDetailaRules = reactive({
productionLineCode: [ productionLineCode: [
{ required: true, message: '请选择生产线代码', trigger: 'change' } { required: true, message: '请选择生产线代码', trigger: 'change' }
], ],
packingNumber: [ // packingNumber: [
{ required: true, message: '请选择包装号', trigger: 'change' } // { required: true, message: '请选择包装号', trigger: 'change' }
], // ],
batch: [ batch: [
{ required: true, message: '请输入批次', trigger: 'blur' } { required: true, message: '请输入批次', trigger: 'blur' }
], ],

3
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -599,12 +599,11 @@ const submitForm = async (formType, submitData) => {
if (formType === 'create') { if (formType === 'create') {
data.subList = tableData.value // data.subList = tableData.value //
await ProductionMainApi.createProductionMain(data).then((res) => { await ProductionMainApi.createProductionMain(data).then((res) => {
// console.log(565,res)
if (res.status == '6') { if (res.status == '6') {
autoCreatePlanRequest(res) autoCreatePlanRequest(res)
} }
message.success(t('common.createSuccess'))
}) })
// message.success(t('common.createSuccess'))
} else { } else {
await ProductionMainApi.updateProductionMain(data) await ProductionMainApi.updateProductionMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))

5
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -170,6 +170,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}else{ }else{
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }
// const setV = {}
if (formField == 'shift') {
setV['shift'] = val[0]['code']
setV['shiftName'] = val[0]['name']
}
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })

15
src/views/wms/productionManage/productionplan/productionMainAssemble/productionMainAssemble.data.ts

@ -199,7 +199,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '班次', label: '班次代码',
field: 'shift', field: 'shift',
sort: 'custom', sort: 'custom',
table: { table: {
@ -231,6 +231,19 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '班次名称',
field: 'shiftName',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
},
},
// { // {
// label: '物料代码', // label: '物料代码',
// field: 'detailItemCode', // field: 'detailItemCode',

4
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -162,6 +162,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
}else{ }else{
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }
if (formField == 'shift') {
setV['shift'] = val[0]['code']
setV['shiftName'] = val[0]['name']
}
formRef.setValues(setV) formRef.setValues(setV)
} }
}) })

15
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/productionMainAssembleSparePart.data.ts

@ -203,7 +203,7 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '班次', label: '班次代码',
field: 'shift', field: 'shift',
sort: 'custom', sort: 'custom',
table: { table: {
@ -235,6 +235,19 @@ export const ProductionMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{
label: '班次名称',
field: 'shiftName',
sort: 'custom',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
},
},
// { // {
// label: '物料代码', // label: '物料代码',
// field: 'detailItemCode', // field: 'detailItemCode',

2
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -237,7 +237,7 @@ const butttondata = (row,$index) => {
return [] return []
} }
return [ return [
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// // defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),// defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), // defaultButtons.mainListPointBtn(null), //
defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE

13
src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts

@ -564,13 +564,14 @@ export const ProductredressRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
action: '==', // 查询拼接条件 action: '==', // 查询拼接条件
isSearch: true, // 使用自定义拼接条件 isSearch: true, // 使用自定义拼接条件
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用
},{
key: 'packingNumber', // 查询列表中字段
value: '', // 指查询具体值
action: 'isNotStr', // 查询拼接条件
isSearch: true, // 使用自定义拼接条件
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用
}, },
// {
// key: 'packingNumber', // 查询列表中字段
// value: '', // 指查询具体值
// action: 'isNotStr', // 查询拼接条件
// isSearch: true, // 使用自定义拼接条件
// isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用
// },
{ {
key: 'inOrOut', key: 'inOrOut',
value: "out", value: "out",

6
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -1114,9 +1114,9 @@ export const ProductrepairRequestDetailaRules = reactive({
productionLineCode: [ productionLineCode: [
{ required: true, message: '请选择生产线代码', trigger: 'change' } { required: true, message: '请选择生产线代码', trigger: 'change' }
], ],
packingNumber: [ // packingNumber: [
{ required: true, message: '请选择包装号', trigger: 'change' } // { required: true, message: '请选择包装号', trigger: 'change' }
], // ],
batch: [ batch: [
{ required: true, message: '请输入批次', trigger: 'blur' } { required: true, message: '请输入批次', trigger: 'blur' }
], ],

93
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -1049,43 +1049,72 @@ const handleTur = async (id: number) => {
/** 处理按钮操作 */ /** 处理按钮操作 */
const genRecords = async (id: number) => { const genRecords = async (id: number) => {
let getLoading = null let getLoading = null
await SupplierdeliverRequestMainApi.selfCheckReport(id) //
.then(async (res) => { await message.confirm(t('ts.是否处理所选中数据?'))
if (!res) { getLoading = ElLoading.service({
message.warning(t('ts.请先上传自检报告!')) lock: true,
return text: 'loading...',
} else { background: 'rgba(0, 0, 0, 0.7)'
// })
await message.confirm(t('ts.是否处理所选中数据?')) //
getLoading = ElLoading.service({ SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id)
lock: true, .then((res) => {
text: 'loading...', message.success(t('ts.处理成功!'))
background: 'rgba(0, 0, 0, 0.7)' console.log('resresresresres', res)
}) //
// getList()
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id) console.log('刷新列表')
.then((res) => { getLoading?.close()
message.success(t('ts.处理成功!'))
console.log('resresresresres', res) //
// handleDocumentPrint(res)
getList()
console.log('刷新列表')
getLoading?.close()
//
handleDocumentPrint(res)
})
.catch((err) => {
console.log('发起处理', err)
getLoading?.close()
})
}
}) })
.catch((err) => { .catch((err) => {
console.log('自检报告校验异常', err) console.log('发起处理', err)
getLoading?.close() getLoading?.close()
}) })
} }
//
// const genRecords = async (id: number) => {
// let getLoading = null
// await SupplierdeliverRequestMainApi.selfCheckReport(id)
// .then(async (res) => {
// if (!res) {
// message.warning(t('ts.!'))
// return
// } else {
// //
// await message.confirm(t('ts.'))
// getLoading = ElLoading.service({
// lock: true,
// text: 'loading...',
// background: 'rgba(0, 0, 0, 0.7)'
// })
// //
// SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id)
// .then((res) => {
// message.success(t('ts.!'))
// console.log('resresresresres', res)
// //
// getList()
// console.log('')
// getLoading?.close()
// //
// handleDocumentPrint(res)
// })
// .catch((err) => {
// console.log('', err)
// getLoading?.close()
// })
// }
// })
// .catch((err) => {
// console.log('', err)
// getLoading?.close()
// })
// }
/** 导出按钮操作 */ /** 导出按钮操作 */
const handleExport = async () => { const handleExport = async () => {

Loading…
Cancel
Save