From 042c20a52d2ed5b328bddcb26aef83f1041dead8 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Wed, 30 Oct 2024 16:02:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=97=E6=9D=90=E9=97=AE=E9=A2=98=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=EF=BC=8C=E7=9B=98=E7=82=B9=E4=BC=A0=E5=80=BC=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E8=AE=A1=E7=AE=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageConsumables/addConsumables.vue | 3 -- .../components/my-reportDamage.vue | 1 - pageConsumables/index.vue | 3 +- pageConsumables/inventoryCheck.vue | 6 ++-- pageConsumables/viewrecords.vue | 32 ++++++++++++------- pageDevice/staffManage/staffManage.vue | 1 - pageStaff/addstaff.vue | 1 - pages/index/components/Stats.vue | 1 - pages/index/index.vue | 5 ++- pages/login/index.vue | 1 - 10 files changed, 28 insertions(+), 26 deletions(-) diff --git a/pageConsumables/addConsumables.vue b/pageConsumables/addConsumables.vue index f15bd26..53f229b 100644 --- a/pageConsumables/addConsumables.vue +++ b/pageConsumables/addConsumables.vue @@ -91,9 +91,6 @@ // } // }) onMounted(() => { - // console.log(props,'调试121') - // let obj = JSON.parse(props.item) - // console.log(obj,'调试121') gettbConsTypeList() }) diff --git a/pageConsumables/components/my-reportDamage.vue b/pageConsumables/components/my-reportDamage.vue index 15f2492..928d395 100644 --- a/pageConsumables/components/my-reportDamage.vue +++ b/pageConsumables/components/my-reportDamage.vue @@ -182,7 +182,6 @@ * 确认 */ function affirm() { - console.log(consId.value,'调试1') let params = { coverImg: vdata.imgUrlList, consId: consId.value, diff --git a/pageConsumables/index.vue b/pageConsumables/index.vue index 226e90c..5e9dd04 100644 --- a/pageConsumables/index.vue +++ b/pageConsumables/index.vue @@ -167,9 +167,9 @@ let toggle = (d) => { refMoreSheet.value.open() + actionSheet.active = d actionSheet.activeId = d.id report.data.consId = d.id - actionSheet.active = d } let sheetClick = (index) => { @@ -217,7 +217,6 @@ } // async function viewpermission(d) { // let res = await hasPermission(d) - // console.log(res,'调试1') // return res // } async function getList(d = "") { diff --git a/pageConsumables/inventoryCheck.vue b/pageConsumables/inventoryCheck.vue index 25009e8..b38e7ac 100644 --- a/pageConsumables/inventoryCheck.vue +++ b/pageConsumables/inventoryCheck.vue @@ -67,7 +67,7 @@ let showStatus = ref(false) const props = defineProps({ item: { - type: Object + type: '' } }) let datas = reactive({ @@ -86,12 +86,12 @@ // let a = datas.item.balance * -1 // return formatDecimal((a - datas.form.balance) * datas.item.price) // } else { - return formatDecimal((datas.item.balance - datas.form.balance) * datas.item.price) + return (datas.form.balance - datas.item.balance ) * datas.item.price // } }) let profitNumber = computed(() => { // 盈亏数量 - return datas.item.balance - datas.form.balance + return datas.form.balance- datas.item.balance }) function toggle() { diff --git a/pageConsumables/viewrecords.vue b/pageConsumables/viewrecords.vue index 0fb8a60..b1c7f23 100644 --- a/pageConsumables/viewrecords.vue +++ b/pageConsumables/viewrecords.vue @@ -18,12 +18,13 @@ - + 增加数量 {{datas.countList?datas.countList.addCountNumber:''}} - + 入库 @@ -31,7 +32,7 @@ {{datas.countList?datas.countList.stockInNumber:''}} - + 手动增加 @@ -42,12 +43,13 @@ - + 减少数量 {{datas.countList?datas.countList.subCountNumber:0}} - + 手动减少 @@ -55,7 +57,8 @@ {{datas.countList?datas.countList.subNumber:0}} - + 出库 @@ -63,7 +66,7 @@ {{datas.countList?datas.countList.stockOutNumber:0}} - + 商品消耗 @@ -139,7 +142,6 @@ let showStatus = ref(false) onMounted(() => { let items = JSON.parse(props.item) - // console.log(items, '调试1') getlist() }) const refs = getCurrentInstance() @@ -161,6 +163,11 @@ return data } let nowStatusIndex = ref(0) + let columnName = ref('') + let getNewdata = (d) => { + columnName.value = d + getlist() + } function changeNowStatusIndex(i) { nowStatusIndex.value = i @@ -171,14 +178,15 @@ const statusHeight = computed(() => { return 30 * datas.status.length + 14 + 'px' }) - let getlist = (conTypeId = "", start, end) => { + let getlist = (conTypeId = "", start, end, ) => { + let ids = JSON.parse(props.item) // 列表 tbConsInfoFlowstock({ page: 0, shopId: uni.getStorageSync("shopId"), size: 30, - consId: JSON.parse(props.item).conTypeId, - column: "addCountNumber", + consId: ids.id, + column: columnName.value, conTypeId, @@ -194,6 +202,7 @@ conTypeId, startTime: start, endTime: end, + consId: JSON.parse(props.item).id, }).then(res => { datas.countList = res }) @@ -215,7 +224,6 @@ }