|
@@ -1,5 +1,5 @@
|
|
|
import Mock from 'mockjs'
|
|
|
-import TagApplyState from '@@/entries/TagApplyState'
|
|
|
+// import TagApplyState from '@@/entries/TagApplyState'
|
|
|
import TagType from '@@/entries/TagType'
|
|
|
import TagPurchaseState from '@@/entries/TagPurchaseState'
|
|
|
import Provider from '@@/entries/Provider'
|
|
@@ -7,36 +7,36 @@ import Constant from '@/utils/Constant'
|
|
|
|
|
|
const API_BASE_PATH = Constant.REQUEST_PREFIX
|
|
|
|
|
|
-Mock.mock(`${API_BASE_PATH}/tag/apply/state/list`, 'post', {
|
|
|
- type: 'success',
|
|
|
- data: [
|
|
|
- new TagApplyState(0, '待支付'),
|
|
|
- new TagApplyState(1, '待发货'),
|
|
|
- new TagApplyState(2, '已发货')
|
|
|
- ]
|
|
|
-})
|
|
|
+// Mock.mock(`${API_BASE_PATH}/tag/apply/state/list`, 'post', {
|
|
|
+// type: 'success',
|
|
|
+// data: [
|
|
|
+// new TagApplyState(0, '待支付'),
|
|
|
+// new TagApplyState(1, '待发货'),
|
|
|
+// new TagApplyState(2, '已发货')
|
|
|
+// ]
|
|
|
+// })
|
|
|
|
|
|
-Mock.mock(/\/tag\/apply\/page/, 'post', {
|
|
|
- type: 'success',
|
|
|
- data: {
|
|
|
- 'count|10-40': 1,
|
|
|
- 'list|1-20': [{
|
|
|
- 'id|1-20': 1,
|
|
|
- dataTime: '2024/01/01 00:00:00',
|
|
|
- orderNo: '123456',
|
|
|
- expectedReceiptDate: '2024/01/02 00:00:00',
|
|
|
- 'providerName|1': ['人民电器集团有限公司', '上海东生供用电器材厂', '上海辉电电力设备工程有限公司'],
|
|
|
- 'tagTypeName|1': ['高性能不干胶标签', '柔性抗金属标签', '扎带标签'],
|
|
|
- number: 123,
|
|
|
- 'amount|1-100.1-2': 30,
|
|
|
- 'tagApplyStateId|0-2': 0,
|
|
|
- operatorName: '操作员',
|
|
|
- applicantName: '申领人',
|
|
|
- 'unitPrice|1-100.1-2': 10,
|
|
|
- createTime: '2024/01/01 00:00:00'
|
|
|
- }]
|
|
|
- }
|
|
|
-})
|
|
|
+// Mock.mock(/\/tag\/apply\/page/, 'post', {
|
|
|
+// type: 'success',
|
|
|
+// data: {
|
|
|
+// 'count|10-40': 1,
|
|
|
+// 'list|1-20': [{
|
|
|
+// 'id|1-20': 1,
|
|
|
+// dataTime: '2024/01/01 00:00:00',
|
|
|
+// orderNo: '123456',
|
|
|
+// expectedReceiptDate: '2024/01/02 00:00:00',
|
|
|
+// 'providerName|1': ['人民电器集团有限公司', '上海东生供用电器材厂', '上海辉电电力设备工程有限公司'],
|
|
|
+// 'tagTypeName|1': ['高性能不干胶标签', '柔性抗金属标签', '扎带标签'],
|
|
|
+// number: 123,
|
|
|
+// 'amount|1-100.1-2': 30,
|
|
|
+// 'tagApplyStateId|0-2': 0,
|
|
|
+// operatorName: '操作员',
|
|
|
+// applicantName: '申领人',
|
|
|
+// 'unitPrice|1-100.1-2': 10,
|
|
|
+// createTime: '2024/01/01 00:00:00'
|
|
|
+// }]
|
|
|
+// }
|
|
|
+// })
|
|
|
|
|
|
Mock.mock(`${API_BASE_PATH}/provider/list`, 'post', {
|
|
|
type: 'success',
|
|
@@ -142,4 +142,16 @@ Mock.mock(`${API_BASE_PATH}/data/statistics/tag/type/count`, 'get', {
|
|
|
}]
|
|
|
})
|
|
|
|
|
|
+Mock.mock(/\/tag\/serial\/page/, 'post', {
|
|
|
+ type: 'success',
|
|
|
+ data: {
|
|
|
+ 'count|20-40': 1,
|
|
|
+ 'list|1-20': [{
|
|
|
+ 'id|1-20': 1,
|
|
|
+ 'serialNumber|1-1000000': 1,
|
|
|
+ 'chipCode|1-10000000': 1
|
|
|
+ }]
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
export default Mock
|