From 66ec6fd1424551cdbd1bfbb3a17927cdea00b2ba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=AD=E5=BC=BA?= <1959055484@qq.com>
Date: Tue, 4 Feb 2025 15:28:44 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9D=A1=E7=A0=81=E9=98=B2?=
=?UTF-8?q?=E4=BC=AA=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E6=A8=A1=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../barcode/barcodeAntiFakeHistoryApi.js | 20 ++++
.../antiFakeHistory/columns/tableColumn.js | 111 ++++++++++++++++++
.../formFields/searchFields.js | 7 ++
.../traceability/antiFakeHistory/index.vue | 81 +++++++++++++
4 files changed, 219 insertions(+)
create mode 100644 src/api/traceability/barcode/barcodeAntiFakeHistoryApi.js
create mode 100644 src/views/productionBusiness/traceability/antiFakeHistory/columns/tableColumn.js
create mode 100644 src/views/productionBusiness/traceability/antiFakeHistory/formFields/searchFields.js
create mode 100644 src/views/productionBusiness/traceability/antiFakeHistory/index.vue
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 导出
+
+
+
+
+
+ {{ record.barcode }}
+
+
+
+
+
+
+
+
+
+
+
+
+