diff --git a/src/api/product/index.ts b/src/api/product/index.ts index 12ebdb4..a8865b3 100644 --- a/src/api/product/index.ts +++ b/src/api/product/index.ts @@ -41,6 +41,24 @@ const AuthAPI = { method: "delete", }); }, + // 退款退回 + refundToStock(data: any) { + return request({ + url: `${baseURL}/refundToStock`, + method: "post", + data, + }); + }, + + // 耗材列表 + productcons(params: any) { + return request({ + url: `/product/admin/product/cons/page`, + method: "get", + params + }); + }, + // 上下架 onOff(data: any) { return request({ @@ -71,6 +89,37 @@ const AuthAPI = { params }); }, + // 报损 + reportDamage(data: any) { + return request({ + url: `${baseURL}/reportDamage`, + method: "post", + data, + }); + }, + // 商品-绑定耗材 + bind(data: any) { + return request({ + url: `${baseURL}/bind`, + method: "post", + data, + }); + }, + // 库存预警 + stockWarning(data: any) { + return request({ + url: `${baseURL}/stockWarning?warnLine=${data}`, + method: "post", + }); + }, + // 售罄 + markIsSoldOut(data: any) { + return request({ + url: `${baseURL}/markIsSoldOut`, + method: "post", + data, + }); + } }; diff --git a/src/components/CURD/PageContent.vue b/src/components/CURD/PageContent.vue index 27d117b..aa59fcb 100644 --- a/src/components/CURD/PageContent.vue +++ b/src/components/CURD/PageContent.vue @@ -8,58 +8,37 @@ @@ -88,68 +67,36 @@ - + @@ -263,63 +191,44 @@ @@ -96,6 +97,9 @@ onMounted(() => { getList(res) }) }) +function removegoods(index) { + datas.DialogForm.couponsList.splice(index, 1) +} function selectShopRes(item) { item.forEach(ele => { ele.number = 1