Commit 8bbec4b2 by 王志慧

fixed

1 parent 6470af86
<template> <template>
<GLDialog v-if="dialogShow" bigTitle="详细信息" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false" @onOk="dialogShow = false" @onCancel="dialogShow = false" :hasFooter="false"> <GLDialog v-if="dialogShow" bigTitle="详细信息" mode="big" :visible.sync="dialogShow" :close-on-click-modal="false" @onOk="dialogShow = false" @onCancel="dialogShow = false" :hasFooter="false">
<div class="detail-content" v-if="dialogShow"> <div class="detail-content" v-if="dialogShow">
<div class="addressTitle"> <div class="addressTitle">
<img src="@/images/addressIcon.webp" alt="" class="icon" /> <img src="@/images/addressIcon.webp" alt="" class="icon" />
...@@ -48,7 +48,6 @@ export default { ...@@ -48,7 +48,6 @@ export default {
dialogShow: { dialogShow: {
get() { get() {
if (this.visible) { if (this.visible) {
this.getDetail({ currentPage: 1, pageSize: 20 }) this.getDetail({ currentPage: 1, pageSize: 20 })
} }
return this.visible return this.visible
...@@ -121,7 +120,7 @@ export default { ...@@ -121,7 +120,7 @@ export default {
} }
}, },
created() { created() {
this.dynamicParams() this.dynamicParams()
}, },
methods: { methods: {
dynamicParams() { dynamicParams() {
...@@ -131,13 +130,19 @@ export default { ...@@ -131,13 +130,19 @@ export default {
label: '已发货数量', label: '已发货数量',
prop: 'purchaseNumber', prop: 'purchaseNumber',
width: 110, width: 110,
line: 1 line: 1,
formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.purchaseNumber}卷` : `${cellValue.purchaseNumber}件`
}
}, },
{ {
label: '已入库数量', label: '已入库数量',
prop: 'inputNumber', prop: 'inputNumber',
width: 110, width: 110,
line: 1 line: 1,
formatter: cellValue => {
return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.inputNumber}米` : `${cellValue.inputNumber}件`
}
} }
) )
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!