| | |
| | | detailData.createUserName || "--" |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="创建时间">{{ |
| | | detailData.createTime || "--" |
| | | formatDate(detailData.createTime) || "--" |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="最近更新时间">{{ |
| | | detailData.updateTime || "--" |
| | | formatDate(detailData.updateTime) || "--" |
| | | }}</el-descriptions-item> |
| | | <el-descriptions-item label="备注" :span="3">{{ |
| | | detailData.remark || "--" |
| | |
| | | { |
| | | label: "创建时间", |
| | | prop: "createTime", |
| | | width: 170, |
| | | width: 130, |
| | | formatData: (val) => formatDate(val), |
| | | }, |
| | | { |
| | | label: "最近更新时间", |
| | | prop: "updateTime", |
| | | width: 170, |
| | | width: 130, |
| | | formatData: (val) => formatDate(val), |
| | | }, |
| | | { |
| | | label: "备注", |
| | |
| | | return num.toFixed(2); |
| | | }; |
| | | |
| | | const formatDate = (value) => { |
| | | if (!value) return ""; |
| | | return String(value).slice(0, 10); |
| | | }; |
| | | |
| | | /** 已退货数量 = 入库行总数量 − 当前可退货数量(剩余) */ |
| | | const calcAlreadyReturned = (row) => { |
| | | const total = Number(row?.stockInNum ?? row?.totalQuantity ?? row?.quantity ?? 0); |