2024-04-06 14:17:49 +08:00
|
|
|
import Mock from "mockjs";
|
|
|
|
const StockList = Mock.mock({
|
|
|
|
"list|20-30": [
|
|
|
|
{
|
|
|
|
"id|+1": "0",
|
2024-04-06 18:20:58 +08:00
|
|
|
billserial: "@integer(100000000,199999999)1",
|
|
|
|
billType: "@integer(0,4)",
|
2024-04-06 15:29:30 +08:00
|
|
|
stockNum: "@integer(1,2)",
|
|
|
|
unit: "@cword(张本,1)",
|
2024-04-06 14:17:49 +08:00
|
|
|
stockDate: "@date",
|
|
|
|
operator: "@cname",
|
|
|
|
remark: " @integer(10000000000,19999999999)",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
});
|
2024-04-06 15:06:22 +08:00
|
|
|
|
2024-04-06 15:29:30 +08:00
|
|
|
export default [
|
|
|
|
{
|
2024-04-06 15:44:32 +08:00
|
|
|
url: "/api/stockList",
|
2024-04-06 15:29:30 +08:00
|
|
|
method: "get",
|
|
|
|
response: () => {
|
|
|
|
return {
|
|
|
|
code: 200,
|
2024-04-06 18:20:58 +08:00
|
|
|
data: StockList,
|
2024-04-06 15:29:30 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|