Browse Source

不合格品

master
宋国强 2 years 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 tableColumns.value = val
} }
//
const searchTableParams = ref([
//{
// formField: 'productItemCode',
// searchTableTitle: '',
// searchTableAllSchemas: Itembasic.allSchemas,
// searchTablePage: ItembasicApi.getItembasicPage
//}
])
const { tableObject, tableMethods } = useTable({ const { tableObject, tableMethods } = useTable({
getListApi: UnqualifiedApi.getRecordsDetailsPage // getListApi: UnqualifiedApi.getRecordsDetailsPage //
}) })
@ -100,13 +90,7 @@ const HeadButttondata = [
const tableid=ref(); const tableid=ref();
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'refresh') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList() getList()
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else if(val == 'batch'){// } else if(val == 'batch'){//
@ -134,30 +118,12 @@ const butttondata = [
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
console.log("row",row)
if (val == 'edit') { // if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) 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) => { const handleDelete = async (id: number) => {
try { try {
@ -197,7 +163,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList(); getList();
//importTemplateData.templateUrl = await RecordsApi.importTemplate()
}) })
</script> </script>

Loading…
Cancel
Save