From 5adb416e5895169c88c963ecb8b07dbeb160d2ea Mon Sep 17 00:00:00 2001 From: wangweidong <850489345@qq.com> Date: Fri, 14 Nov 2025 17:28:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 +- pages/procurement/api/lunpan.js | 28 +- pages/procurement/components/addall.vue | 49 +- pages/procurement/components/calculator.vue | 23 +- pages/procurement/components/carlist.vue | 106 ++-- .../procurement/components/classification.vue | 553 ++++++++++-------- pages/procurement/components/default.vue | 43 ++ pages/procurement/components/equiment.vue | 183 ++++++ pages/procurement/material.vue | 23 +- pages/procurement/materialcar.vue | 133 ++++- static/index/procurement/dh.png | Bin 0 -> 469 bytes static/index/procurement/jxz.png | Bin 0 -> 1072 bytes static/index/procurement/lxz.png | Bin 0 -> 1153 bytes static/index/procurement/que.png | Bin 0 -> 43008 bytes 14 files changed, 799 insertions(+), 346 deletions(-) create mode 100644 pages/procurement/components/default.vue create mode 100644 pages/procurement/components/equiment.vue create mode 100644 static/index/procurement/dh.png create mode 100644 static/index/procurement/jxz.png create mode 100644 static/index/procurement/lxz.png create mode 100644 static/index/procurement/que.png diff --git a/manifest.json b/manifest.json index 0f1d4a7..0e36812 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "护理单元", "appid" : "__UNI__FB2D473", "description" : "护理单元", - "versionName" : "1.0.006", - "versionCode" : 10006, + "versionName" : "1.0.008", + "versionCode" : 10008, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/procurement/api/lunpan.js b/pages/procurement/api/lunpan.js index 67f8ed7..dfa5d58 100644 --- a/pages/procurement/api/lunpan.js +++ b/pages/procurement/api/lunpan.js @@ -136,6 +136,14 @@ export const updateWarehouserEnabled = (params) => { data: params, }) } +//(业务)修改购物车请购信息 +export const eddShoppingCartList = (params) => { + return request({ + url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/eddShoppingCartList`, + method: 'post', + data: params, + }) +} //(业务)获取物料分类树可采购的物料数量(仓库列表使用) @@ -154,4 +162,22 @@ export const getTreeDataWlnum = (params) => { data: params, }) } - \ No newline at end of file + + //(业务)库存预警添加全部物料 + export const addWaringAll = (params) => { + return request({ + url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/addWaringAll`, + method: 'post', + data: params, + }) + } + + +// (业务)获取物料分类树可采购的物料数量(购物车列表使用) + export const getGwcTreeDataWlnum = (params) => { + return request({ + url: `${uni.getStorageSync('serverUrl')}/api/pad/invoicing/getGwcTreeDataWlnum`, + method: 'get', + data: params, + }) + } \ No newline at end of file diff --git a/pages/procurement/components/addall.vue b/pages/procurement/components/addall.vue index 7e5ee24..75ca969 100644 --- a/pages/procurement/components/addall.vue +++ b/pages/procurement/components/addall.vue @@ -8,64 +8,29 @@ 确认将所有未添加状态的库存预警物料添加至购物车中,并且物料的采购数量为物料的库存上限-库存数量吗? 取消 - 确定 + 确定 + + .titletop { + width: 100%; + height: 2.5vw; + font-weight: 400; + font-size: 1.5vw; + color: #333333; + line-height: 2.5vw; + } + + .guodu { + transition: .4s; + -webkit-transform-style: preserve-3d; + -webkit-overflow-scrolling: touch; + } + \ No newline at end of file diff --git a/pages/procurement/components/default.vue b/pages/procurement/components/default.vue new file mode 100644 index 0000000..a0dfe43 --- /dev/null +++ b/pages/procurement/components/default.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/pages/procurement/components/equiment.vue b/pages/procurement/components/equiment.vue new file mode 100644 index 0000000..cd07b09 --- /dev/null +++ b/pages/procurement/components/equiment.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/pages/procurement/material.vue b/pages/procurement/material.vue index 522909e..e0aed84 100644 --- a/pages/procurement/material.vue +++ b/pages/procurement/material.vue @@ -91,7 +91,7 @@ - + { serverUrl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/'; - queryInvo(); }) onShow(()=>{ - shoppcar(); - getWaringMaterial() + config() }) const Material = ref([]) const getWaringMaterial=()=>{ @@ -178,18 +176,22 @@ }) } const config = ()=>{ - warn.pageNo = 1; - Material.value = []; - getWaringMaterial(); - moredex.value=0 + form.pageNo=1; + warn.pageNo=1; + Material.value=[]; + InvoicingList.value=[]; + shoppcar(); + queryInvo(); + getWaringMaterial() + moredex.value=0; + shoppcar(); } const carnum = ref(0) const shoppcar=()=>{ let c = { nuId: form.nuId, pageNo: 1, - pageSize: 10 - } + pageSize: 1 } queryShoppingCartList(c).then(resr=>{ carnum.value = resr.result.total }) @@ -293,6 +295,7 @@ referenceUnitPrice:type.price, dhbl:type.num } + console.log(dt) addShoppingCartList([dt]).then(res=>{ uni.showToast({ icon:res.success?'success':'none', diff --git a/pages/procurement/materialcar.vue b/pages/procurement/materialcar.vue index fd1e122..f3b1991 100644 --- a/pages/procurement/materialcar.vue +++ b/pages/procurement/materialcar.vue @@ -16,7 +16,7 @@ - + 清空 @@ -30,15 +30,33 @@ - + + + + + + + + + + + + diff --git a/pages/procurement/material.vue b/pages/procurement/material.vue index e0aed84..1ec46b0 100644 --- a/pages/procurement/material.vue +++ b/pages/procurement/material.vue @@ -82,7 +82,7 @@ {{carnum>99?'99':carnum}} - + diff --git a/pages/procurement/materialcar.vue b/pages/procurement/materialcar.vue index f3b1991..95abf06 100644 --- a/pages/procurement/materialcar.vue +++ b/pages/procurement/materialcar.vue @@ -20,7 +20,7 @@ 清空 - + 采购 @@ -42,6 +42,7 @@ + @@ -54,6 +55,8 @@ import classification from './components/classification.vue' import defaultr from './components/default.vue' import calculator from './components/calculator.vue' + import purorder from './components/purorder.vue' + import config from '../../uni_modules/vk-uview-ui/libs/config/config.js'; const addflag = ref(false) const ification = ref(false) const caigouobj = ref({}) @@ -92,6 +95,7 @@ InvoicingList.value = []; queryInvo(); } + const addcartory =(e:any)=>{ console.log(e) caigouobj.value = e; @@ -107,6 +111,10 @@ queryInvo(); ification.value = false } + const configr=()=>{ + caigouflag.value = false; + search(1) + } let times = null; const setout = ref(true) const scrolltolower = (t:number) => { @@ -189,7 +197,25 @@ },700) }) } - + const caigouflag = ref(false) + const caigouarr = ref([]) + const caigouclk =()=>{ + let arr = []; + InvoicingList.value.forEach(item=>{ + if(item.flag){ + arr.push(item) + } + }) + caigouarr.value = arr; + if(arr.length==0){ + uni.showToast({ + title:'请选择物料!', + icon:'none' + }) + return + } + caigouflag.value = true; + } \ No newline at end of file diff --git a/unpackage/dist/cache/.vite/deps/_metadata.json b/unpackage/dist/cache/.vite/deps/_metadata.json index 11b3a6f..d8e2ed1 100644 --- a/unpackage/dist/cache/.vite/deps/_metadata.json +++ b/unpackage/dist/cache/.vite/deps/_metadata.json @@ -1,8 +1,8 @@ { - "hash": "411276bc", - "configHash": "6a46f7c8", + "hash": "9e248234", + "configHash": "17f5f5b6", "lockfileHash": "285de26d", - "browserHash": "e7fc8171", + "browserHash": "f287ed85", "optimized": {}, "chunks": {} } \ No newline at end of file diff --git a/unpackage/dist/dev/.nvue/pages/camera.js b/unpackage/dist/dev/.nvue/pages/camera.js index 12310ff..04100f2 100644 --- a/unpackage/dist/dev/.nvue/pages/camera.js +++ b/unpackage/dist/dev/.nvue/pages/camera.js @@ -574,7 +574,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { ) ]); } -const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/camera.nvue"]]); +const camera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/camera.nvue"]]); export { camera as default }; diff --git a/unpackage/dist/dev/.nvue/pages/fullcamera.js b/unpackage/dist/dev/.nvue/pages/fullcamera.js index fc534ca..beefd5c 100644 --- a/unpackage/dist/dev/.nvue/pages/fullcamera.js +++ b/unpackage/dist/dev/.nvue/pages/fullcamera.js @@ -577,7 +577,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { ) ]); } -const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/hldy_app_mini/pages/fullcamera.nvue"]]); +const fullcamera = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["styles", [_style_0]], ["__file", "D:/项目/hldy_app_mini/pages/fullcamera.nvue"]]); export { fullcamera as default };