From ea63ddba241a5bce18ea4be707729b434116aa62 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Mon, 1 Dec 2025 15:02:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/business/outbound.js | 9 + src/views/EquipmentRetireApply/index.vue | 2 + .../EquipmentSharedLease/order/index.vue | 3 +- .../order/sharedOutList.vue | 409 ++++++++++++++++++ src/views/business/outbound/details.vue | 2 +- .../wsScreen/components/center/index.vue | 11 +- .../components/center/index.vue | 6 +- 7 files changed, 430 insertions(+), 12 deletions(-) create mode 100644 src/views/EquipmentSharedLease/order/sharedOutList.vue diff --git a/src/api/business/outbound.js b/src/api/business/outbound.js index 07494cea..b6b61770 100644 --- a/src/api/business/outbound.js +++ b/src/api/business/outbound.js @@ -18,6 +18,15 @@ export const getApplyDetailsApi = (data = {}) => { }) } +// 共享出库-列表 +export const getOrderByIdApi = (data = {}) => { + return request({ + url: '/material-mall/decChange/getOrderById', + method: 'get', + params: data + }) +} + export const out = (data = {}) => { return request({ url: '/material-mall/decChange/out', diff --git a/src/views/EquipmentRetireApply/index.vue b/src/views/EquipmentRetireApply/index.vue index 31b96ecf..1757c55c 100644 --- a/src/views/EquipmentRetireApply/index.vue +++ b/src/views/EquipmentRetireApply/index.vue @@ -27,6 +27,7 @@ range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" + value-format="yyyy-MM-dd" style="width: 100%" /> @@ -114,6 +115,7 @@ export default { methods: { // 获取退役申请列表 async getRetireApplyList() { + console.log('🚀 ~ this.queryParams.dateRange:', this.queryParams.dateRange) const params = { ...this.queryParams, startDate: this.queryParams.dateRange ? this.queryParams.dateRange[0] : undefined, diff --git a/src/views/EquipmentSharedLease/order/index.vue b/src/views/EquipmentSharedLease/order/index.vue index 19735412..0a983eb8 100644 --- a/src/views/EquipmentSharedLease/order/index.vue +++ b/src/views/EquipmentSharedLease/order/index.vue @@ -780,7 +780,8 @@ export default { }) }, handleOut(item) { - this.$router.push({ path: '/equipment/euq-out', query: { maIds: item.maIds } }) + console.log('🚀 ~ item:', item) + this.$router.push({ path: '/equipmentShared/order/sharedOutList', query: { id: item.orderId } }) }, //订单详情 handleViewOrder(row) { diff --git a/src/views/EquipmentSharedLease/order/sharedOutList.vue b/src/views/EquipmentSharedLease/order/sharedOutList.vue new file mode 100644 index 00000000..b8d370c8 --- /dev/null +++ b/src/views/EquipmentSharedLease/order/sharedOutList.vue @@ -0,0 +1,409 @@ + + + + + diff --git a/src/views/business/outbound/details.vue b/src/views/business/outbound/details.vue index d97ba289..793c1d4c 100644 --- a/src/views/business/outbound/details.vue +++ b/src/views/business/outbound/details.vue @@ -2,7 +2,7 @@
- + 0 ? (val[2] / 100000000).toFixed(4) : 0) : val[2] + } ${unit}}\n{name|${params.data.deptAbbreviation}}` : `{name|${params.data.deptAbbreviation}}` }, rich: { @@ -424,10 +424,7 @@ export default { // cityName: city, // }, // }) - window.open( - `${window.location.origin}/screen/cityScreen?cityName=${city}`, - '_blank' - ) + window.open(`${window.location.origin}/screen/cityScreen?cityName=${city}`, '_blank') } }) myChart.on('mouseover', (params) => { diff --git a/src/views/screen/wsScreenWidescreen/components/center/index.vue b/src/views/screen/wsScreenWidescreen/components/center/index.vue index 91ff7118..75b32dc4 100644 --- a/src/views/screen/wsScreenWidescreen/components/center/index.vue +++ b/src/views/screen/wsScreenWidescreen/components/center/index.vue @@ -359,9 +359,9 @@ export default { else if (this.btnIndex === 2) unit = '台' else if (this.btnIndex === 3) unit = '%' return val.length - ? `{val|${this.btnIndex === 1 ? (val[2] / 100000000).toFixed(4) : val[2]} ${unit}}\n{name|${ - params.data.deptAbbreviation - }}` + ? `{val|${ + this.btnIndex === 1 ? (val[2] > 0 ? (val[2] / 100000000).toFixed(4) : 0) : val[2] + } ${unit}}\n{name|${params.data.deptAbbreviation}}` : `{name|${params.data.deptAbbreviation}}` }, rich: {