dykj-college-back-office-ma.../mock/modules/ycy.js
2024-04-06 15:44:32 +08:00

32 lines
595 B
JavaScript

import Mock from "mockjs";
const StockList = Mock.mock({
"list|20-30": [
{
"id|+1": "0",
billserial: "@integer(10000000000,19999999999)",
billType: "@integer(0,5)",
stockNum: "@integer(1,2)",
unit: "@cword(张本,1)",
stockDate: "@date",
operator: "@cname",
remark: " @integer(10000000000,19999999999)",
},
],
});
export default [
{
url: "/api/stockList",
method: "get",
response: () => {
const obj = {
list: StockList,
};
return {
code: 200,
data: obj,
};
},
},
];