陈薪名 11 months ago
parent
commit
26783da76c
  1. 4
      src/api/wms/countRequestMain/index.ts
  2. 1
      src/components/BasicForm/src/BasicForm.vue
  3. 4
      src/components/TableFormCountPlan/src/TableFormCountPlan.vue
  4. 12
      src/utils/disposition/defaultButtons.ts
  5. 17
      src/views/wms/countManage/count/countRequestMain/index.vue
  6. 57
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

4
src/api/wms/countRequestMain/index.ts

@ -106,3 +106,7 @@ export const superviseCount = async (data) => {
export const generateCountadjustRequest = async (id) => { export const generateCountadjustRequest = async (id) => {
return await request.put({ url: `/wms/count-request-main/generateCountadjustRequest?id=` + id }) return await request.put({ url: `/wms/count-request-main/generateCountadjustRequest?id=` + id })
} }
//解冻
export const thaw = async (id) => {
return await request.put({ url: `/wms/count-request-main/thaw?id=` + id })
}

1
src/components/BasicForm/src/BasicForm.vue

@ -90,6 +90,7 @@
ref="tableFormRef" ref="tableFormRef"
@tableFormChange="tableFormChange" @tableFormChange="tableFormChange"
@handleAddTable="handleAddTable" @handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable"
/> />
</div> </div>
<template #footer> <template #footer>

4
src/components/TableFormCountPlan/src/TableFormCountPlan.vue

@ -168,6 +168,10 @@ const tableFormChange = (field, val, row) => {
const handleAddTable = () => { const handleAddTable = () => {
emit('handleAddTable') emit('handleAddTable')
} }
//
const handleDeleteTable = (row, index) => {
emit('handleDeleteTable', row, index)
}
// setup // setup
defineExpose({ defineExpose({
TableBaseComponents_Ref, TableBaseComponents_Ref,

12
src/utils/disposition/defaultButtons.ts

@ -723,6 +723,18 @@ export function mainSuperviseCountBtn(option:any) {
hasPermi: '' hasPermi: ''
}) })
} }
// 主列表-解冻
export function mainThawRequesttBtn(option:any) {
return __defaultBtnOption(option,{
label: '解冻',
name: 'mainThaw',
hide: false,
type: 'primary',
color: '',
link: true, // 文本展现按钮
hasPermi: ''
})
}
// 默认按钮规则 // 默认按钮规则
function __defaultBtnOption(option:any,specific:any){ function __defaultBtnOption(option:any,specific:any){
return { return {

17
src/views/wms/countManage/count/countRequestMain/index.vue

@ -312,7 +312,11 @@ const butttondata = (row) => {
defaultButtons.mainCountAdjustRequesttBtn({ defaultButtons.mainCountAdjustRequesttBtn({
hide: isShowGenerateMainButton(row, ['2']), hide: isShowGenerateMainButton(row, ['2']),
hasPermi: 'wms:count-request-main:generate' hasPermi: 'wms:count-request-main:generate'
}) // }), //
defaultButtons.mainThawRequesttBtn({
hide: isShowGenerateMainButton(row, ['3']),
hasPermi: 'wms:count-request-main:thaw'
}) //
] ]
} }
@ -419,6 +423,17 @@ const buttonTableClick = async (val, row) => {
.catch((err) => { .catch((err) => {
console.log(err) console.log(err)
}) })
} else if (val == 'mainThaw') {
//
await message.confirm('确认要解冻吗?')
CountRequestMainApi.thaw(row.id)
.then(() => {
message.success(t('解冻成功'))
getList()
})
.catch((err) => {
console.log(err)
})
} else if (val == 'edit') { } else if (val == 'edit') {
// //
openForm('update', row) openForm('update', row)

57
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -5,6 +5,9 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain' import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import { DeliverRecordMain } from '../../deliver/deliverRecordMain/deliverRecordMain.data' import { DeliverRecordMain } from '../../deliver/deliverRecordMain/deliverRecordMain.data'
import * as CustomerdockApi from '@/api/wms/customerdock'
import { Customerdock } from '../../../basicDataManage/customerManage/customerdock/customerdock.data'
import * as CarrierApi from '@/api/wms/carrier' import * as CarrierApi from '@/api/wms/carrier'
import { Carrier } from '@/views/wms/basicDataManage/orderManage/carrier/carrier.data' import { Carrier } from '@/views/wms/basicDataManage/orderManage/carrier/carrier.data'
@ -111,6 +114,22 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择客户月台代码', // 输入框占位文本
// searchField: 'customerDockCode', // 查询弹窗赋值字段
// searchTitle: '发货记录信息', // 查询弹窗标题
// searchAllSchemas: Customerdock.allSchemas, // 查询弹窗所需类
// searchPage: CustomerdockApi.getCustomerdockPage, // 查询弹窗所需分页方法
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }]
// }
// }
}, },
{ {
label: '承运商', label: '承运商',
@ -483,6 +502,12 @@ export const CustomerreturnRequestMainRules = reactive({
// toAreaCodes: [ // toAreaCodes: [
// { required: true, message: '请选择到库区代码范围', trigger: 'change' } // { required: true, message: '请选择到库区代码范围', trigger: 'change' }
// ], // ],
deliverRecordNumber: [
{ required: true, message: '请选择发货记录单号', trigger: 'change' }
],
// customerDockCode: [
// { required: true, message: '请选择客户月台代码', trigger: 'change' }
// ],
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }
], ],
@ -744,22 +769,22 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
} }
} }
}, },
{ // {
label: '到库位代码', // label: '到库位代码',
field: 'toLocationCode', // field: 'toLocationCode',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
tableForm: { // tableForm: {
disabled: true // disabled: true
}, // },
form: { // form: {
componentProps: { // componentProps: {
disabled: true // disabled: true
} // }
} // }
}, // },
{ {
label: '库存状态', label: '库存状态',
field: 'inventoryStatus', field: 'inventoryStatus',

Loading…
Cancel
Save