|
|
@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import TableHead from '@/components/TableHead/src/TableHead.vue' |
|
|
|
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' |
|
|
|
import Detail from '@/components/Detail/src/Detail.vue' |
|
|
|
import { debug } from 'console' |
|
|
|
|
|
|
|
defineOptions({ name: 'CountConfig' }) |
|
|
|
|
|
|
@ -77,10 +78,18 @@ routeName.value = route.name |
|
|
|
const tableColumns = ref(CountConfig.allSchemas.tableColumns) |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { |
|
|
|
nextTick(() => { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
if (formField == 'itemCode') { |
|
|
|
setV['itemName'] = val[0].name |
|
|
|
setV['desc1'] = val[0].backNumber |
|
|
|
setV['uom'] = val[0].uom |
|
|
|
setV['packUnit'] = val[0].defaultPackUnit |
|
|
|
setV['packQty'] = val[0].defaultPackQty |
|
|
|
|
|
|
|
} |
|
|
|
formRef.setValues(setV) |
|
|
|
}) |
|
|
|
} |
|
|
@ -133,8 +142,8 @@ const buttonBaseClick = (val, item) => { |
|
|
|
|
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = [ |
|
|
|
defaultButtons.mainListEditBtn({hasPermi:'wms:countConfig:update'}), // 编辑 |
|
|
|
defaultButtons.mainListDeleteBtn({hasPermi:'wms:countConfig:delete'}), // 删除 |
|
|
|
defaultButtons.mainListEditBtn(), // 编辑 |
|
|
|
defaultButtons.mainListDeleteBtn(), // 删除 |
|
|
|
] |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|