|
@@ -15,25 +15,26 @@
|
|
|
<template slot="header">
|
|
|
基础信息
|
|
|
</template>
|
|
|
- <a-descriptions size="small" :column="3" style="margin-bottom: 10px;">
|
|
|
- <a-descriptions-item label="采购退货单号">{{ detailsData&&detailsData.sparePartsReturnNo || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="供应商名称">{{ detailsData&&detailsData.supplier&&detailsData.supplier.supplierName || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="退货原因">{{ detailsData&&detailsData.returnReasonDictValue || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="退货仓库">{{ detailsData&&detailsData.warehouseName || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="创建时间">{{ detailsData&&detailsData.createDate || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="出库时间" v-if="detailsData&&detailsData.state!='AUDIT_REJECT'">{{ detailsData&&detailsData.auditDate || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="出库时间" v-else>--</a-descriptions-item>
|
|
|
- <a-descriptions-item label="业务状态">{{ detailsData&&detailsData.stateDictValue || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="补充说明" :span="3">{{ detailsData&&detailsData.explainInfo || '--' }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="附件" :span="3">
|
|
|
- <span v-if="detailsData&&detailsData.attachmentList&&detailsData.attachmentList.length>0">
|
|
|
- <a target="_blank" style="color: #00aaff;text-decoration: underline;margin-right: 15px;" :href="item.filePath" v-for="item in detailsData.attachmentList" :key="item.id">
|
|
|
- {{ item.fileName }}
|
|
|
- </a>
|
|
|
- </span>
|
|
|
- <span v-else>--</span>
|
|
|
- </a-descriptions-item>
|
|
|
- </a-descriptions>
|
|
|
+ <a-descriptions size="small" :column="4" style="margin-bottom: 10px;">
|
|
|
+ <a-descriptions-item label="采购退货单号">{{ detailsData&&detailsData.sparePartsReturnNo || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="供应商名称">{{ detailsData&&detailsData.supplier&&detailsData.supplier.supplierName || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="退货原因">{{ detailsData&&detailsData.returnReasonDictValue || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="退货仓库">{{ detailsData&&detailsData.warehouseName || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="创建时间">{{ detailsData&&detailsData.createDate || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="出库时间" v-if="detailsData&&detailsData.state!='AUDIT_REJECT'">{{ detailsData&&detailsData.auditDate || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="出库时间" v-else>--</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="业务状态">{{ detailsData&&detailsData.stateDictValue || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="是否抓单">否</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="补充说明" :span="4">{{ detailsData&&detailsData.explainInfo || '--' }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="附件" :span="4">
|
|
|
+ <span v-if="detailsData&&detailsData.attachmentList&&detailsData.attachmentList.length>0">
|
|
|
+ <a target="_blank" style="color: #00aaff;text-decoration: underline;margin-right: 15px;" :href="item.filePath" v-for="item in detailsData.attachmentList" :key="item.id">
|
|
|
+ {{ item.fileName }}
|
|
|
+ </a>
|
|
|
+ </span>
|
|
|
+ <span v-else>--</span>
|
|
|
+ </a-descriptions-item>
|
|
|
+ </a-descriptions>
|
|
|
</a-collapse-panel>
|
|
|
</a-collapse>
|
|
|
<a-alert type="info" style="margin-bottom:10px">
|
|
@@ -108,7 +109,7 @@ export default {
|
|
|
columns () {
|
|
|
const arr = [
|
|
|
{ title: '序号', dataIndex: 'no', width: '7%', align: 'center' },
|
|
|
- { title: '入库单号', dataIndex: 'sparePartsNo', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '关联单号', dataIndex: 'sparePartsNo', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品名称', dataIndex: 'product.name', width: '30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '单位', dataIndex: 'product.unit', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
@@ -165,7 +166,7 @@ export default {
|
|
|
this.$store.state.app.curActionPermission = 'B_purchaseReturnDetail'
|
|
|
this.getStatisticsData()
|
|
|
this.getBasicsInfo()
|
|
|
- this.$nextTick(()=>{
|
|
|
+ this.$nextTick(() => {
|
|
|
this.$refs.tableDetail.refresh(true)
|
|
|
})
|
|
|
}
|