Browse Source

不合格品

master
songguoqiang 11 months ago
parent
commit
bec839bcd2
  1. 37
      src/views/detection/unqualified/index.vue

37
src/views/detection/unqualified/index.vue

@ -65,16 +65,6 @@ const updataTableColumns = (val) => {
tableColumns.value = val
}
//
const searchTableParams = ref([
//{
// formField: 'productItemCode',
// searchTableTitle: '',
// searchTableAllSchemas: Itembasic.allSchemas,
// searchTablePage: ItembasicApi.getItembasicPage
//}
])
const { tableObject, tableMethods } = useTable({
getListApi: UnqualifiedApi.getRecordsDetailsPage //
})
@ -100,13 +90,7 @@ const HeadButttondata = [
const tableid=ref();
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else if(val == 'batch'){//
@ -134,30 +118,12 @@ const butttondata = [
// -
const buttonTableClick = async (val, row) => {
console.log("row",row)
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
@ -197,7 +163,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
getList();
//importTemplateData.templateUrl = await RecordsApi.importTemplate()
})
</script>

Loading…
Cancel
Save