Commit 468c51b8 by wangzhihui

```

fix(DeliverList): 修复发货详情页面代码格式问题

- 修复三元运算符嵌套的格式问题,提高代码可读性
- 统一发货数量显示逻辑,区分米和卷的单位显示
- 移除多余的换行和空格,优化模板结构
```
1 parent 75552543
......@@ -30,8 +30,7 @@
</div>
<div>
发货数量:
<span>{{ membraneTypeList.includes(detailInfo.goodsType) ?detailInfo.orderType == 1 ? `${detailInfo.purchaseNumber}米` : `${detailInfo.purchaseNumber}卷` :
`${detailInfo.purchaseNumber}件` }}</span>
<span>{{ membraneTypeList.includes(detailInfo.goodsType) ? (detailInfo.orderType == 1 ? `${detailInfo.purchaseNumber}米` : `${detailInfo.purchaseNumber}卷`) : `${detailInfo.purchaseNumber}件` }}</span>
<span class="lookNumber" @click="lookNumber(detailInfo.deliveryCardList)" v-if="detailInfo.deliveryCardList && detailInfo.deliveryCardList.length > 0">查看卡号</span>
</div>
<div>
......@@ -43,10 +42,7 @@
<GLTable :tableData="detailInfo.goodsWarehousingList" :noDataImg="url" :tableParams="tableParams" :hasPage="false">
<template slot="increaseStockNum" slot-scope="scope">
<!-- <span>{{ membraneTypeList.includes(scope.scope.goodsType) ? `${scope.scope.increaseStockNum}米` : `${scope.scope.increaseStockNum}件` }}</span> -->
<span>{{ scope.scope.increaseStockNum || scope.scope.increaseStockNum == 0 ?
(membraneTypeList.includes(scope.scope.goodsType) ? parseFloat(scope.scope.increaseStockNum /
scope.scope.alternateUnits).toFixed(2) : parseFloat(scope.scope.increaseStockNum).toFixed(2)) +
(membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') : '-' }}</span>
<span>{{ scope.scope.increaseStockNum || scope.scope.increaseStockNum == 0 ? (membraneTypeList.includes(scope.scope.goodsType) ? parseFloat(scope.scope.increaseStockNum / scope.scope.alternateUnits).toFixed(2) : parseFloat(scope.scope.increaseStockNum).toFixed(2)) + (membraneTypeList.includes(scope.scope.goodsType) ? (detailInfo.orderType == 1 ? '米' : '卷') : '件') : '-' }}</span>
</template>
<template slot="film" slot-scope="scope">
<div v-if="manageMode && membraneTypeList.includes(scope.scope.goodsType)">
......@@ -65,8 +61,7 @@
</div>
<!-- </template> -->
<el-dialog width="750px" title="查看发货卡号" :visible.sync="innerVisible" append-to-body>
<GLTable class="look-card-wrap" :tableData="tableData" :noDataImg="url" :tableParams="innerParams" :hasPage="false">
</GLTable>
<GLTable class="look-card-wrap" :tableData="tableData" :noDataImg="url" :tableParams="innerParams" :hasPage="false"></GLTable>
</el-dialog>
</GLDialog>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!