|
@@ -105,25 +105,37 @@ const API_BASE_PATH = Constant.REQUEST_PREFIX
|
|
|
// data: true
|
|
|
// })
|
|
|
|
|
|
-// Mock.mock(/\/tag\/code\/page/, 'post', {
|
|
|
+Mock.mock(/\/tag\/code\/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',
|
|
|
+ serialNumberRange: ['0000001', '000800'],
|
|
|
+ 'providerName|1': ['人民电器集团有限公司', '上海东生供用电器材厂', '上海辉电电力设备工程有限公司'],
|
|
|
+ 'tagTypeName|1': ['高性能不干胶标签', '柔性抗金属标签', '扎带标签'],
|
|
|
+ number: 123,
|
|
|
+ 'amount|1-100.1-2': 30,
|
|
|
+ 'tagApplyStateName|1': ['待支付', '待发货', '已发货'],
|
|
|
+ operatorName: '操作员',
|
|
|
+ applicantName: '申领人',
|
|
|
+ 'unitPrice|1-100.1-2': 10,
|
|
|
+ createTime: '2024/01/01 00:00:00'
|
|
|
+ }]
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
+// Mock.mock(/\/tag\/serial\/page/, 'post', {
|
|
|
// type: 'success',
|
|
|
// data: {
|
|
|
-// 'count|10-40': 1,
|
|
|
+// 'count|20-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',
|
|
|
-// serialNumberRange: ['0000001', '000800'],
|
|
|
-// 'providerName|1': ['人民电器集团有限公司', '上海东生供用电器材厂', '上海辉电电力设备工程有限公司'],
|
|
|
-// 'tagTypeName|1': ['高性能不干胶标签', '柔性抗金属标签', '扎带标签'],
|
|
|
-// number: 123,
|
|
|
-// 'amount|1-100.1-2': 30,
|
|
|
-// 'tagApplyStateName|1': ['待支付', '待发货', '已发货'],
|
|
|
-// operatorName: '操作员',
|
|
|
-// applicantName: '申领人',
|
|
|
-// 'unitPrice|1-100.1-2': 10,
|
|
|
-// createTime: '2024/01/01 00:00:00'
|
|
|
+// 'serialNumber|1-1000000': 1,
|
|
|
+// 'chipCode|1-10000000': 1
|
|
|
// }]
|
|
|
// }
|
|
|
// })
|
|
@@ -142,15 +154,13 @@ Mock.mock(`${API_BASE_PATH}/data/statistics/tag/type/count`, 'get', {
|
|
|
}]
|
|
|
})
|
|
|
|
|
|
-Mock.mock(/\/tag\/serial\/page/, 'post', {
|
|
|
+Mock.mock(/\/tag\/code\/qr/, 'get', {
|
|
|
type: 'success',
|
|
|
data: {
|
|
|
- 'count|20-40': 1,
|
|
|
- 'list|1-20': [{
|
|
|
- 'id|1-20': 1,
|
|
|
- 'serialNumber|1-1000000': 1,
|
|
|
- 'chipCode|1-10000000': 1
|
|
|
- }]
|
|
|
+ 'materielName|1': ['低压熔断器', '高压熔断器'],
|
|
|
+ 'number|1-800': 1,
|
|
|
+ 'providerName|1': ['人民电器集团有限公司', '上海东生供用电器材厂', '上海辉电电力设备工程有限公司'],
|
|
|
+ 'code|1': ['https://www.baidu.com', 'https://www.jianshu.com', 'https://github.com']
|
|
|
}
|
|
|
})
|
|
|
|