From 10d41618a894bd849dd8f7dd91c930dac635f507 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Wed, 5 Nov 2025 10:54:58 +0800 Subject: [PATCH] v1.9 测试采购功能,部分页面功能优化 --- src/components/resource/chooseResourceStore4.vue | 14 ++++++-------- src/components/system/viewImage.vue | 68 +++++++++++++++++++++++++++++++++----------------------------------- src/router/index.js | 5 +++++ src/router/resourceRouter.js | 5 +++++ src/views/report/reportNoFeeRoomList.vue | 8 +++----- src/views/resource/allocationStorehouseDetailedList.vue | 2 +- src/views/resource/assetInventoryInList.vue | 4 ++-- src/views/resource/assetInventoryInStockList.vue | 153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------- src/views/resource/printPurchaseOutApply.vue | 262 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/views/resource/purchaseApplyDetailLang.js | 8 ++++++-- src/views/resource/purchaseApplyDetailManageList.vue | 3 ++- 11 files changed, 403 insertions(+), 129 deletions(-) create mode 100644 src/views/resource/printPurchaseOutApply.vue diff --git a/src/components/resource/chooseResourceStore4.vue b/src/components/resource/chooseResourceStore4.vue index 96b9090..f2750b1 100644 --- a/src/components/resource/chooseResourceStore4.vue +++ b/src/components/resource/chooseResourceStore4.vue @@ -2,7 +2,7 @@
- + - + @@ -19,21 +19,19 @@ - + - - - - +4 + - + {{ $t('common.search') }} diff --git a/src/components/system/viewImage.vue b/src/components/system/viewImage.vue index b0eb3e9..87d5199 100644 --- a/src/components/system/viewImage.vue +++ b/src/components/system/viewImage.vue @@ -2,20 +2,21 @@
-
@@ -27,10 +28,10 @@ export default { data() { return { visible: false, + dialogWidth: '50%', imageInfo: { url: '', - width: 800, - height: 800 + maxHeight: 600 } } }, @@ -39,21 +40,24 @@ export default { this.imageInfo.url = params.url this.visible = true - // 动态计算图片尺寸 - const img = new Image() - img.src = params.url - img.onload = () => { - const imgScale = img.width / img.height - this.imageInfo.width = 800 - this.imageInfo.height = 800 / imgScale + // 根据屏幕尺寸动态调整对话框大小 + const screenWidth = window.innerWidth + if (screenWidth < 768) { + this.dialogWidth = '90%' + this.imageInfo.maxHeight = 400 + } else if (screenWidth < 1200) { + this.dialogWidth = '70%' + this.imageInfo.maxHeight = 500 + } else { + this.dialogWidth = '50%' + this.imageInfo.maxHeight = 600 } }, close() { this.visible = false this.imageInfo = { url: '', - width: 800, - height: 800 + maxHeight: 600 } }, handleImageError(e) { @@ -65,34 +69,28 @@ export default { + diff --git a/src/views/resource/purchaseApplyDetailLang.js b/src/views/resource/purchaseApplyDetailLang.js index e8e8763..d09df95 100644 --- a/src/views/resource/purchaseApplyDetailLang.js +++ b/src/views/resource/purchaseApplyDetailLang.js @@ -50,7 +50,9 @@ export const messages = { time: 'Time', manufacturerSignature: 'Manufacturer Signature', purchaserSignature: 'Purchaser Signature', - remark: 'Remark' + remark: 'Remark', + reviewerSignature: 'Reviewer Signature', + applicantSignature: 'Applicant Signature' }, auditDiv: { workOrderProcessing: 'Work Order Processing', @@ -123,7 +125,9 @@ export const messages = { time: '时间', manufacturerSignature: '厂家签字', purchaserSignature: '采购人员签字', - remark: '备注' + remark: '备注', + reviewerSignature: '审核人签字', + applicantSignature: '申请人签字' }, auditDiv: { workOrderProcessing: '工单办理', diff --git a/src/views/resource/purchaseApplyDetailManageList.vue b/src/views/resource/purchaseApplyDetailManageList.vue index 1099e5b..9c4fc19 100644 --- a/src/views/resource/purchaseApplyDetailManageList.vue +++ b/src/views/resource/purchaseApplyDetailManageList.vue @@ -59,7 +59,7 @@
- + @@ -262,6 +262,7 @@ export default { await this.getDictData() await this._listResourceStoreTypes() await this._listResourceStoreSpecifications() + await this._listResourceSupplier() }, async getDictData() { try { -- libgit2 0.21.4