|
@@ -11,11 +11,11 @@
|
|
<div>
|
|
<div>
|
|
<a-descriptions size="small" :column="3" style="margin-bottom: 10px;">
|
|
<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.sparePartsReturnNo || '--' }}</a-descriptions-item>
|
|
- <a-descriptions-item label="供应商名称">{{ detailsData&&detailsData.supplierName || '--' }}</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="退货原因">{{ detailsData&&detailsData.returnReason || '--' }}</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="创建时间">{{ detailsData&&detailsData.returnReason || '--' }}</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="出库时间">{{ detailsData&&detailsData.returnReason || '--' }}</a-descriptions-item>
|
|
|
|
- <a-descriptions-item label="业务状态">{{ detailsData&&detailsData.returnReason || '--' }}</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.createDate || '--' }}</a-descriptions-item>
|
|
|
|
+ <a-descriptions-item label="出库时间">{{ detailsData&&detailsData.updateDate || '--' }}</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">{{ detailsData&&detailsData.explainInfo || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="附件" :span="3">
|
|
<a-descriptions-item label="附件" :span="3">
|
|
<span v-if="detailsData&&detailsData.attachmentList&&detailsData.attachmentList.length>0">
|
|
<span v-if="detailsData&&detailsData.attachmentList&&detailsData.attachmentList.length>0">
|
|
@@ -35,12 +35,12 @@
|
|
</a-alert>
|
|
</a-alert>
|
|
<s-table
|
|
<s-table
|
|
class="sTable"
|
|
class="sTable"
|
|
- ref="table"
|
|
|
|
|
|
+ ref="tableDetail"
|
|
size="small"
|
|
size="small"
|
|
- :rowKey="(record) => record.stockPutSn"
|
|
|
|
|
|
+ :rowKey="(record) => record.id"
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
- :defaultLoadData="false"
|
|
|
|
|
|
+ :defaultLoadData="true"
|
|
bordered>
|
|
bordered>
|
|
</s-table>
|
|
</s-table>
|
|
<div class="btn-cont"><a-button id="confirmationDetail-modal-back" @click="isShow = false">返回列表</a-button></div>
|
|
<div class="btn-cont"><a-button id="confirmationDetail-modal-back" @click="isShow = false">返回列表</a-button></div>
|
|
@@ -97,7 +97,7 @@ export default {
|
|
{ title: '产品编码', dataIndex: 'productCode', 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.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 : '--') } },
|
|
{ title: '单位', dataIndex: 'product.unit', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
- { title: '批次号', dataIndex: 'sparePartsBatchNo', width: '20%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
|
|
+ { title: '批次号', dataIndex: 'stockBatchNo', width: '20%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '入库数量', dataIndex: 'putQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '入库数量', dataIndex: 'putQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '退货单价', dataIndex: 'cost', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '退货单价', dataIndex: 'cost', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '申请退货数量', dataIndex: 'qty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '申请退货数量', dataIndex: 'qty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
@@ -117,7 +117,7 @@ export default {
|
|
},
|
|
},
|
|
// 获取金额统计
|
|
// 获取金额统计
|
|
getStatisticsData () {
|
|
getStatisticsData () {
|
|
- queryPageCount({ sn: this.itemSn }).then(res => {
|
|
|
|
|
|
+ queryPageCount({ sparePartsReturnSn: this.itemSn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
res.data.totalCost = (res.data && (res.data.totalCost || res.data.totalCost == 0)) ? toFixedDecimal(res.data.totalCost, 2) : '--'
|
|
res.data.totalCost = (res.data && (res.data.totalCost || res.data.totalCost == 0)) ? toFixedDecimal(res.data.totalCost, 2) : '--'
|
|
this.statisticsObj = res.data
|
|
this.statisticsObj = res.data
|
|
@@ -136,7 +136,7 @@ export default {
|
|
isShow (newValue, oldValue) {
|
|
isShow (newValue, oldValue) {
|
|
if (!newValue) {
|
|
if (!newValue) {
|
|
this.$emit('close')
|
|
this.$emit('close')
|
|
- this.$refs.table.clearTable()
|
|
|
|
|
|
+ this.$refs.tableDetail.clearTable()
|
|
} else {
|
|
} else {
|
|
this.getStatisticsData()
|
|
this.getStatisticsData()
|
|
this.getBasicsInfo()
|
|
this.getBasicsInfo()
|
|
@@ -146,7 +146,7 @@ export default {
|
|
if (this.isShow && newValue) {
|
|
if (this.isShow && newValue) {
|
|
const _this = this
|
|
const _this = this
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- _this.$refs.table.refresh(true)
|
|
|
|
|
|
+ _this.$refs.tableDetail.refresh(true)
|
|
}, 200)
|
|
}, 200)
|
|
}
|
|
}
|
|
}
|
|
}
|