|
|
@ -31,7 +31,7 @@ |
|
|
|
<el-button type="primary" link @click="openDetail(row, '物料号', row.itemCode)"> |
|
|
|
<span>{{ row.itemCode }}</span> |
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
<template #action="{ row }"> |
|
|
|
<ButtonBase :Butttondata="butttondata(row)" @button-base-click="buttonTableClick($event,row)" /> |
|
|
@ -84,7 +84,7 @@ |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm ref="importFormRef" url="/wms/itemarea/import" :importTemplateData="importTemplateData" |
|
|
|
<ImportForm ref="importFormRef" url="/wms/itemarea/import" :importTemplateData="importTemplateData" |
|
|
|
@success="importSuccess" :coverIsDisable="true" :mode="2" /> |
|
|
|
</template> |
|
|
|
|
|
|
@ -98,7 +98,7 @@ import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 发货申请 |
|
|
|
defineOptions({ name: 'Itemarea' }) |
|
|
@ -128,7 +128,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
if(formField == 'locationCode') { |
|
|
|
if(tableData.value.find(item1=>item1['locationCode'] == item['code'])) return |
|
|
|
newRow['locationCode'] = item['code'] |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
newRow[formField] = item[searchField] |
|
|
|
} |
|
|
|
newRow['id'] = item['id'] |
|
|
@ -137,16 +137,16 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
} else { |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
const setV = {} |
|
|
|
const setV = {} |
|
|
|
if(formField == 'areaCode') { |
|
|
|
console.log(val[0]); |
|
|
|
setV['areaCode'] = val[0]['code'] |
|
|
|
setV['areaType'] = val[0]['type'] |
|
|
|
setV['manageMode'] = val[0]['manageMode'] |
|
|
|
|
|
|
|
|
|
|
|
}else if(formField == 'inPackUnit') { |
|
|
|
setV['inPackUnit'] = val[0]['packUnit'] |
|
|
|
}else if(formField == 'outPackUnit') { |
|
|
@ -157,7 +157,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
setV['overflowLocationCode'] = val[0]['code'] |
|
|
|
}else if(formField == 'repleinshFromArea') { |
|
|
|
setV['repleinshFromArea'] = val[0]['code'] |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
setV[formField] = setV[0][searchField] |
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
@ -259,7 +259,7 @@ const butttondata = (row) => { |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'edit') { // 编辑 |
|
|
|
if (val == 'edit') { // 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.id) |
|
|
@ -287,7 +287,7 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
if (item.field == 'itemCode') { |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
@ -295,7 +295,7 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
|
|
|
|
/** |
|
|
|
* 详情 编辑页面打开 |
|
|
|
* @param row |
|
|
|
* @param row |
|
|
|
*/ |
|
|
|
const detailOpenForm = (type) => { |
|
|
|
|
|
|
@ -309,7 +309,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name |
|
|
|
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) |
|
|
|
row.status = "1"; |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue,'itemarea') |
|
|
|
detailRef.value.openDetail(row, titleName, titleValue,'basicItemarea') |
|
|
|
} |
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
|