Browse Source

缺陷:HL-5877,HL-6040

hella_online_20240924
zhaoxuebing 2 months ago
parent
commit
cfb24cbdcf
  1. 10
      src/api/wms/productreceiptRecordMain/index.ts
  2. 2
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  3. 79
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue
  4. 15
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/productreceiptscrapRecordMain.data.ts

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

@ -138,3 +138,13 @@ export const createInspectRequest = async (number:string) => {
export const handleRecoveryProductreceiptRecord = async (data: ProductreceiptRecordMainVO) => {
return await request.put({ url: `/wms/productreceipt-record-main/handleRecovery`, data })
}
// 接收隔离收货
export const receive = (id) => {
return request.put({ url: '/wms/productreceipt-record-main/receive?id=' + id })
}
// 拒收隔离收货
export const refuse = (id) => {
return request.put({ url: '/wms/productreceipt-record-main/refuse?id=' + id })
}

2
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -259,7 +259,7 @@ const butttondata = (row,$index) => {
return []
}
return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:'wms:inventoryinit-request-main:close'}), //
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4']),hasPermi:'wms:inventoryinit-request-main:close'}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['5']),hasPermi:'wms:inventoryinit-request-main:reAdd'}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:inventoryinit-request-main:submit'}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:inventoryinit-request-main:refused'}), //

79
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/index.vue

@ -171,18 +171,95 @@ const buttonBaseClick = (val, item) => {
}
}
//
const isShowMainButton = (row,val) => {
if (val.indexOf(row.receiveStatus) > -1) {
return false
} else {
return true
}
}
// -
const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
if(findIndex>-1&&findIndex<$index){
return []
}
return []
return [
{
label: '拒收',
name: 'mainJobRefusal',
hide: isShowMainButton(row, ['0']),
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true //
},
{
label: '接收',
name: 'mainJobRecept',
hide: isShowMainButton(row, ['0']),
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true //
}
]
}
// -
const buttonTableClick = async (val, row) => {
if(val == 'mainJobRefusal'){
//
handleRefusal(row)
}else if(val == 'mainJobRecept'){
//
handleRecept(row)
}
}
//
const handleRefusal = async (row) => {
try {
loadStart()
//
ProductreceiptRecordMainApi.refuse(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} catch {
} finally {
loadDone()
}
}
//
const handleRecept = async (row) => {
try {
loadStart()
//
ProductreceiptRecordMainApi.receive(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} catch {
} finally {
loadDone()
}
}
//
const { wsCache } = useCache()
/** 详情操作 */

15
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRecordMain/productreceiptscrapRecordMain.data.ts

@ -19,6 +19,7 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '申请单号',
field: 'requestNumber',
sort: 'custom',
sortTableDefault:996,
table: {
width: 180
},
@ -28,6 +29,7 @@ export const ProductreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '任务单号',
field: 'jobNumber',
sort: 'custom',
sortTableDefault:997,
table: {
width: 180
},
@ -395,6 +397,18 @@ export const ProductreceiptRecordMainRules = reactive({
* @returns {Array}
*/
export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '接收状态',
field: 'receiveStatus',
sort: 'custom',
dictType: DICT_TYPE.RECEIVE_STATUS,
dictClass: 'string',
sortTableDefault:998,
isTable: true,
table: {
width: 150
},
},
{
label: '生产线代码',
field: 'productionlineCode',
@ -730,7 +744,6 @@ export const ProductreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
width: 150,
fixed: 'right'
},
hiddenInMain:true,
isTableForm:false,
}
]))

Loading…
Cancel
Save