From 014cf0c32726b85230809c78a83963af8707ae6b Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期四, 24 十月 2024 10:06:38 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override
---
north-glass-erp/northglass-erp/src/views/sd/glassPrice/GlassPriceList.vue | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/north-glass-erp/northglass-erp/src/views/sd/glassPrice/GlassPriceList.vue b/north-glass-erp/northglass-erp/src/views/sd/glassPrice/GlassPriceList.vue
index 7952fa3..4fb4bb0 100644
--- a/north-glass-erp/northglass-erp/src/views/sd/glassPrice/GlassPriceList.vue
+++ b/north-glass-erp/northglass-erp/src/views/sd/glassPrice/GlassPriceList.vue
@@ -84,13 +84,24 @@
inputPattern:/^.{1,20}$/,
inputErrorMessage: t('components.message')
}).then(({ value }) => {
- alert(value)
+ const data = {
+ id: row.id,
+ price: value
+ }
+ request.post(`/glassPriceBasic/updateGlassPriceById`,data).then((res) => {
+ if(res.code==='200' && res.data){
+ ElMessage.success("鏁版嵁淇濆瓨鎴愬姛")
+ router.push({path:'/main/glassPrice/glassPriceList',query:{random:Math.random()}})
+ }else{
+ ElMessage.warning('鏁版嵁淇濆瓨澶辫触')
+ }
+ })
})
break
}
case 'delete': {
request.post(`/glassPriceBasic/deleteGlassPriceById/${row.id}`).then((res) => {
- if(res.code==200){
+ if(res.code==='200' && res.data){
ElMessage.success(t('searchOrder.msgDeleteSuccess'))
router.push({path:'/main/glassPrice/glassPriceList',query:{random:Math.random()}})
}else{
--
Gitblit v1.8.0