From 12c297923aee48d14db863dbaab3d9f9ddbb6aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=93=E9=B9=8F?= Date: Sat, 12 Apr 2025 20:40:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AC=A1=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/list/index.ts | 16 + src/layout/navBars/topBar/user.vue | 27 +- src/views/materialReceiptNotice/ceshi.vue | 56 ++- src/views/materialReceiptNotice/index.vue | 419 +++++++++--------- src/views/mssPurchaseOrder/index.vue | 210 +++++---- .../mssPurchaseOrder/purchaseDetails.vue | 82 +++- src/views/mssPurchaseOrder/selectedData.vue | 49 +- src/views/system/user/dialog.vue | 5 +- src/views/system/user/index.vue | 60 ++- 9 files changed, 543 insertions(+), 381 deletions(-) diff --git a/src/api/list/index.ts b/src/api/list/index.ts index f8b21a2..d21166e 100644 --- a/src/api/list/index.ts +++ b/src/api/list/index.ts @@ -79,5 +79,21 @@ export function listApi() { data, }); }, + //用户状态更新 + batchUpdateStatus: (data: object) => { + return request({ + url: '/api/Admin/Login/BatchUpdateStatus', + method: 'post', + data, + }); + }, + //修改密码 + UpPassword: (data: object) => { + return request({ + url: '/api/Admin/Login/UpPassword', + method: 'get', + params:data, + }); + }, }; } diff --git a/src/layout/navBars/topBar/user.vue b/src/layout/navBars/topBar/user.vue index fb550e5..d87fee9 100644 --- a/src/layout/navBars/topBar/user.vue +++ b/src/layout/navBars/topBar/user.vue @@ -77,12 +77,21 @@ - 修改密码 + 修改密码 {{ $t('message.user.dropdown5') }} + + + + @@ -98,7 +107,7 @@ import { useThemeConfig } from '/@/stores/themeConfig'; import other from '/@/utils/other'; import mittBus from '/@/utils/mitt'; import { Session, Local } from '/@/utils/storage'; - +import { listApi } from '../../../api/list/index' // 引入组件 const UserNews = defineAsyncComponent(() => import('/@/layout/navBars/topBar/userNews.vue')); const Search = defineAsyncComponent(() => import('/@/layout/navBars/topBar/search.vue')); @@ -117,8 +126,20 @@ const state = reactive({ isScreenfull: false, disabledI18n: 'zh-cn', disabledSize: 'large', + dialogShow:false, + password:'' }); - +const dialogCloseFun = () => { + state.dialogShow = false + state.password = '' +} +const passwordFunTJ = () => { + listApi().UpPassword({pwd:state.password}).then((res:any) => { + if (res.resultCode === 0) { + ElMessage.success('修改成功'); + } + }) +} // 设置分割样式 const layoutUserFlexNum = computed(() => { let num: string | number = ''; diff --git a/src/views/materialReceiptNotice/ceshi.vue b/src/views/materialReceiptNotice/ceshi.vue index a3a9016..7b44eff 100644 --- a/src/views/materialReceiptNotice/ceshi.vue +++ b/src/views/materialReceiptNotice/ceshi.vue @@ -26,8 +26,18 @@
+ +
+
送货人:
+
+ + + +
+ +
@@ -42,22 +52,7 @@ const props = defineProps({ default: () => [], }, }); -watch( - () => props.data, - (newData) => { - // console.log(JSON.parse(JSON.stringify(newData))) - let arr = [] - arr = JSON.parse(JSON.stringify(newData)) - // console.log(arr.length) - // debugger - if(arr.length !== 0){ - state.pageData.fBillNo = arr[0].fBillNo - state.pageData.supplierName = arr[0].supplierName - state.pageData.deliveryDate = arr[0].deliveryDate - state.pageData.f_VHUB_Text = arr[0].f_VHUB_Text - } - } -); + const state = reactive({ pageData: { fBillNo: '', @@ -90,12 +85,41 @@ const state = reactive({ ], }, }); +watch( + () => props.data, + (newData) => { + let arr = []; + arr = JSON.parse(JSON.stringify(newData)); + if (arr.length !== 0) { + state.pageData.fBillNo = arr[0].fBillNo; + state.pageData.supplierName = arr[0].supplierName; + state.pageData.deliveryDate = arr[0].deliveryDate; + state.pageData.f_VHUB_Text = arr[0].f_VHUB_Text; + } + }, + { immediate: true,deep:true } +); defineExpose({ orderPrintingRef, }); diff --git a/src/views/mssPurchaseOrder/index.vue b/src/views/mssPurchaseOrder/index.vue index 2934f0a..cd05ad9 100644 --- a/src/views/mssPurchaseOrder/index.vue +++ b/src/views/mssPurchaseOrder/index.vue @@ -1,57 +1,57 @@ - - + + + + + + + + + + + + + + + + + + + + + + + +