Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

master_hella_20240701
gaojs 6 months ago
parent
commit
73664ea074
  1. 10
      src/api/wms/countJobMain/index.ts
  2. 4
      src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts
  3. 2
      src/views/wms/basicDataManage/itemManage/itemwarehouse/itemwarehouse.data.ts
  4. 2
      src/views/wms/countManage/count/countJobMain/countJobMain.data.ts
  5. 35
      src/views/wms/countManage/count/countJobMain/index.vue
  6. 2
      src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts
  7. 4
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/packageoverJobMain.data.ts
  8. 2
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/packageoverRetrospect.data.ts
  9. 2
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts

10
src/api/wms/countJobMain/index.ts

@ -89,5 +89,13 @@ export const importTemplate = () => {
// 关闭盘点任务主
export const closeCountJobMain = (id: number) => {
return request.download({ url: '/wms/count-job-main/close?id=' + id })
return request.put({ url: '/wms/count-job-main/close?id=' + id })
}
// 关闭盘点任务主
export const handleExportCountJob = async (id: number) => {
let params = {
masterId:id
}
return await request.download({ url: `/wms/count-job-main/export-excel-single`, params })
}

4
src/views/wms/basicDataManage/itemManage/itemarea/itemarea.data.ts

@ -16,7 +16,7 @@ import { t } from '@/hooks/web/useI18n'
export const Itemarea = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '物代码',
label: '物代码',
field: 'itemCode',
sort: 'custom',
isSearch: true,
@ -752,4 +752,4 @@ export const ItemareaDetail = useCrudSchemas(reactive<CrudSchema[]>([
// 表单校验
export const ItemareaDetailRules = reactive({
})
})

2
src/views/wms/basicDataManage/itemManage/itemwarehouse/itemwarehouse.data.ts

@ -9,7 +9,7 @@ import { Itempackaging } from '../itempackage/itempackage.data'
export const Itemwarehouse = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '物代码',
label: '物代码',
field: 'itemCode',
sort: 'custom',
isSearch: true,

2
src/views/wms/countManage/count/countJobMain/countJobMain.data.ts

@ -501,7 +501,7 @@ export const CountJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false,
table: {
width: 120,
width: 180,
fixed: 'right'
},
}

35
src/views/wms/countManage/count/countJobMain/index.vue

@ -186,7 +186,25 @@ const butttondata = (row,$index) => {
}
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:count-job-main:close'}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1','2']),hasPermi:'wms:count-job-main:close'}), //
{
label: '导出',
name: 'exportCountJob',
hide: isShowMainButton(row,['1','2']),
type: 'success',
color: '',
link: true, //
hasPermi: '' // wms:count-job-main:exportCountJob
},
{
label: '导入',
name: 'importCountJob',
hide: isShowMainButton(row,['1','2']),
type: 'success',
color: '',
link: true, //
hasPermi: '' // wms:count-job-main:importCountJob
}
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
]
@ -202,6 +220,8 @@ const buttonTableClick = async (val, row) => {
handleClose(row.masterId)
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
} else if (val == 'exportCountJob'){//
handleExportCountJob(row.masterId,row.number)
}
}
@ -240,6 +260,19 @@ const handleExport = async () => {
}
}
/** 单条任务导出 */
const handleExportCountJob = async (id: number,number: string) => {
try {
await message.exportConfirm()
exportLoading.value = true
const data = await CountJobMainApi.handleExportCountJob(id)
download.excel(data, '盘点任务主'+number+'.xlsx')
} catch {
}finally {
exportLoading.value = false
}
}
//
const searchFormClick = (searchData) => {
tableObject.params = {

2
src/views/wms/deliversettlementManage/saleShipmentMainRecord/saleShipmentMainRecord.data.ts

@ -201,7 +201,7 @@ export const SaleShipmentDetailRecord = useCrudSchemas(reactive<CrudSchema[]>([
isTable:false
},
{
label: '物代码',
label: '物代码',
field: 'itemCode',
sort: 'custom',
table: {

4
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/packageoverJobMain.data.ts

@ -545,7 +545,7 @@ export const PackageoverJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
},
},
{
label: '物代码',
label: '物代码',
field: 'itemCode',
sort: 'custom',
table: {
@ -818,4 +818,4 @@ export const PackageoverJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
// 表单校验
export const PackageoverJobDetailRules = reactive({
})
})

2
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRetrospect/packageoverRetrospect.data.ts

@ -56,7 +56,7 @@ export const PackageoverRetrospect = useCrudSchemas(reactive<CrudSchema[]>([
},
},
{
label: '物代码',
label: '物代码',
field: 'itemCode',
sort: 'custom',
isSearch: true,

2
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/productreceiptAssembleRecordMain.data.ts

@ -1028,7 +1028,7 @@ export const ProductreceiptDetailb = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
},
{
label: '物代码',
label: '物代码',
field: 'itemCode',
sort: 'custom',
isSearch: true,

Loading…
Cancel
Save