diff --git a/src/api/traceability/barcode/barcodeAntiFakeHistoryApi.js b/src/api/traceability/barcode/barcodeAntiFakeHistoryApi.js new file mode 100644 index 0000000..f56e910 --- /dev/null +++ b/src/api/traceability/barcode/barcodeAntiFakeHistoryApi.js @@ -0,0 +1,20 @@ +import { baseRequest } from '@/utils/request' + +const request = (url, ...arg) => baseRequest(`/traceability/barcode/` + url, ...arg) + +/** + * 条码防伪历史记录Api接口管理器 + * + * @author Luck + * @date 2024/12/24 21:18 + **/ +export default { + // 获取条码防伪历史记录分页 + barcodeAntiFakeHistoryPage(data) { + return request('page', data, 'get') + }, + // 获取条码防伪历史记录详情 + barcodeAntiFakeHistoryDetail(data) { + return request('detail', data, 'get') + } +} diff --git a/src/views/productionBusiness/traceability/antiFakeHistory/columns/tableColumn.js b/src/views/productionBusiness/traceability/antiFakeHistory/columns/tableColumn.js new file mode 100644 index 0000000..9303b92 --- /dev/null +++ b/src/views/productionBusiness/traceability/antiFakeHistory/columns/tableColumn.js @@ -0,0 +1,111 @@ +export const tableColumns = [ + { + title: '条码', + dataIndex: 'barcode', + align: 'center', + resizable: true, + width: 200, + ellipsis: true + }, + { + title: '内码', + dataIndex: 'internalBarcode', + align: 'center', + resizable: true, + width: 200, + ellipsis: true + }, + { + title: '查询时间', + dataIndex: 'createTime', + align: 'center', + sorter: true, + sortDirections: ['descend', 'ascend'], + resizable: true, + width: 200, + ellipsis: true + }, + { + title: '商品', + dataIndex: 'productName', + align: 'center', + resizable: true, + width: 200, + ellipsis: true + }, + { + title: '商品编码', + dataIndex: 'productNumber', + align: 'center', + resizable: true, + width: 200, + ellipsis: true + }, + { + title: '品牌名称', + dataIndex: 'brandName', + align: 'center', + resizable: true, + width: 200, + ellipsis: true + }, + { + title: 'IP', + dataIndex: 'ip', + align: 'center', + resizable: true, + width: 150, + ellipsis: true + }, + { + title: '验证通过', + dataIndex: 'isValid', + align: 'center', + resizable: true, + width: 90, + ellipsis: true + }, + { + title: '所在地区', + dataIndex: 'province', + align: 'center', + resizable: true, + width: 200, + ellipsis: true + }, + { + title: '经度', + dataIndex: 'longitude', + align: 'center', + resizable: true, + width: 90, + ellipsis: true + }, + { + title: '纬度', + dataIndex: 'latitude', + align: 'center', + resizable: true, + width: 90, + ellipsis: true + }, + + { + title: '黑名单', + dataIndex: 'isJoinBlack', + align: 'center', + resizable: true, + width: 90, + ellipsis: true + }, + { + title: '查询次数', + dataIndex: 'queryTimes', + sorter: true, + sortDirections: ['descend', 'ascend'], + align: 'center', + resizable: true, + width: 90, + ellipsis: true + } +] diff --git a/src/views/productionBusiness/traceability/antiFakeHistory/formFields/searchFields.js b/src/views/productionBusiness/traceability/antiFakeHistory/formFields/searchFields.js new file mode 100644 index 0000000..f418627 --- /dev/null +++ b/src/views/productionBusiness/traceability/antiFakeHistory/formFields/searchFields.js @@ -0,0 +1,7 @@ +import tool from '@/utils/tool' + +export const searchFields = [ + { name: 'barcode', label: '条码', component: 'a-input', props: { placeholder: '请输入条码' } }, + { name: 'barcodeInterior', label: '内码', component: 'a-input', props: { placeholder: '请输入内码' } } + +] diff --git a/src/views/productionBusiness/traceability/antiFakeHistory/index.vue b/src/views/productionBusiness/traceability/antiFakeHistory/index.vue new file mode 100644 index 0000000..ba3604d --- /dev/null +++ b/src/views/productionBusiness/traceability/antiFakeHistory/index.vue @@ -0,0 +1,81 @@ + + + +