diff --git a/mock/index.js b/mock/index.js
index 10e1bd1..26d10f5 100644
--- a/mock/index.js
+++ b/mock/index.js
@@ -1,6 +1,6 @@
import sdy from './modules/sdy'
import ycy from './modules/ycy'
export default [
- ...SDY,
- ...YCY
+ ...sdy,
+ ...ycy
]
\ No newline at end of file
diff --git a/mock/modules/sdy.js b/mock/modules/sdy.js
index de6da0b..e785967 100644
--- a/mock/modules/sdy.js
+++ b/mock/modules/sdy.js
@@ -1,2 +1,10 @@
import Mock from "mockjs"
+const data = Mock.mock({
+ "items|10": [
+ {
+ "id|+1": 1,
+ "name": "@cname",
+ }
+ ]
+})
export default []
\ No newline at end of file
diff --git a/mock/modules/ycy.js b/mock/modules/ycy.js
index aba129e..2ff4322 100644
--- a/mock/modules/ycy.js
+++ b/mock/modules/ycy.js
@@ -5,14 +5,27 @@ const StockList = Mock.mock({
"id|+1": "0",
billserial: "@integer(10000000000,19999999999)",
billType: "@integer(0,5)",
- stockNum: "前端",
- unit: "前端",
+ stockNum: "@integer(1,2)",
+ unit: "@cword(张本,1)",
stockDate: "@date",
operator: "@cname",
remark: " @integer(10000000000,19999999999)",
},
],
});
-export default [
-]
+export default [
+ {
+ url: "/api/stockList",
+ method: "get",
+ response: () => {
+ const obj = {
+ list: StockList,
+ };
+ return {
+ code: 200,
+ data: obj,
+ };
+ },
+ },
+];
diff --git a/src/api/login.js b/src/api/login.js
index d1461b9..d9c4d34 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -5,4 +5,4 @@ const API = {
};
export const reqUser = () => request.get(API.LOGIN_URL);
-// export const reqUser = (data) => request.post(API.LOGIN_URL, data);
+export const reqUserone = (data) => request.post(API.LOGIN_URL, data);
\ No newline at end of file
diff --git a/src/api/stockList.js b/src/api/stockList.js
new file mode 100644
index 0000000..47b311a
--- /dev/null
+++ b/src/api/stockList.js
@@ -0,0 +1,7 @@
+import request from "@/utils/requestMock";
+
+const API = {
+ STOCK_LIST: "/stockList",
+};
+
+export const reqStockList = () => request.get(API.STOCK_LIST);
diff --git a/src/pages/finance-bill-manage/billStock.vue b/src/pages/finance-bill-manage/billStock.vue
index dc6a5a8..ed57b49 100644
--- a/src/pages/finance-bill-manage/billStock.vue
+++ b/src/pages/finance-bill-manage/billStock.vue
@@ -35,8 +35,9 @@