diff --git a/http/yskApi/bwc.js b/http/yskApi/bwc.js new file mode 100644 index 0000000..6899f16 --- /dev/null +++ b/http/yskApi/bwc.js @@ -0,0 +1,33 @@ +import http from './http.js' +const request = http.request + + +/** + * 商品报损 + * @returns + */ +export function get(params) { + return request({ + url: `/freeDine`, + method: 'get', + params: { + shopId: uni.getStorageSync('shopId'), + ...params + } + }) +} + +/** + * 耗材报损 + * @returns + */ +export function edit(data) { + return request({ + url: `/freeDine`, + method: 'put', + params: { + shopId: uni.getStorageSync('shopId'), + ...data + } + }) +} \ No newline at end of file diff --git a/pageBwc/index/index.vue b/pageBwc/index/index.vue new file mode 100644 index 0000000..5c393b3 --- /dev/null +++ b/pageBwc/index/index.vue @@ -0,0 +1,169 @@ + + + + + \ No newline at end of file diff --git a/pages.json b/pages.json index 3e450f3..b5c1392 100644 --- a/pages.json +++ b/pages.json @@ -1138,6 +1138,17 @@ ] }, + { + "root": "pageBwc", + "pages": [{ + "pageId": "PAGES_BWC", + "path": "index/index", + "style": { + "navigationBarTitleText": "霸王餐" + } + } + ] + }, { "root": "pageBooking", "pages": [{