|
@@ -28,7 +28,7 @@
|
|
<a-descriptions-item label="创建时间">{{ basicInfoData&&basicInfoData.createDate || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="创建时间">{{ basicInfoData&&basicInfoData.createDate || '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="产品款数">{{ basicInfoData&&(basicInfoData.totalCategory || basicInfoData.totalCategory == 0) ? basicInfoData.totalCategory : '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="产品款数">{{ basicInfoData&&(basicInfoData.totalCategory || basicInfoData.totalCategory == 0) ? basicInfoData.totalCategory : '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="总数量">{{ basicInfoData&&(basicInfoData.totalQty || basicInfoData.totalQty==0) ? basicInfoData.totalQty : '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="总数量">{{ basicInfoData&&(basicInfoData.totalQty || basicInfoData.totalQty==0) ? basicInfoData.totalQty : '--' }}</a-descriptions-item>
|
|
- <a-descriptions-item label="总金额">{{ basicInfoData&&(basicInfoData.totalAmount || basicInfoData.totalAmount == 0) ? basicInfoData.totalAmount : '--' }}</a-descriptions-item>
|
|
|
|
|
|
+ <a-descriptions-item label="总金额">{{ basicInfoData&&(basicInfoData.totalAmount || basicInfoData.totalAmount == 0) ? toThousands(basicInfoData.totalAmount,2) : '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="是否抓单">{{ basicInfoData&&(basicInfoData.grabFlag) ? ['不抓单','抓单'][basicInfoData.grabFlag] : '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="是否抓单">{{ basicInfoData&&(basicInfoData.grabFlag) ? ['不抓单','抓单'][basicInfoData.grabFlag] : '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="出库时间">{{ basicInfoData&&(basicInfoData.outStockTime || basicInfoData.outStockTime == 0) ? basicInfoData.outStockTime : '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="出库时间">{{ basicInfoData&&(basicInfoData.outStockTime || basicInfoData.outStockTime == 0) ? basicInfoData.outStockTime : '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="业务状态">{{ basicInfoData&&(basicInfoData.noSyncStateDictValue) ? basicInfoData.noSyncStateDictValue : '--' }}</a-descriptions-item>
|
|
<a-descriptions-item label="业务状态">{{ basicInfoData&&(basicInfoData.noSyncStateDictValue) ? basicInfoData.noSyncStateDictValue : '--' }}</a-descriptions-item>
|
|
@@ -135,30 +135,31 @@ export default {
|
|
// 基本信息
|
|
// 基本信息
|
|
getDetail () {
|
|
getDetail () {
|
|
// 抓单
|
|
// 抓单
|
|
- if (this.$route.params.grabFlag == '1') {
|
|
|
|
- this.columns = [{ title: '采购单号', dataIndex: 'purchaseBillNo', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ const _this = this
|
|
|
|
+ if (_this.$route.params.grabFlag == '1') {
|
|
|
|
+ _this.columns = [{ title: '采购单号', dataIndex: 'purchaseBillNo', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '单位', dataIndex: 'dealerProductEntity.unit', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'dealerProductEntity.unit', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '退货单价', dataIndex: 'cost', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
|
|
+ { title: '退货单价', dataIndex: 'cost', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
|
|
{ title: '退货数量', dataIndex: 'qty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '退货数量', dataIndex: 'qty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '退货金额', scopedSlots: { customRender: 'amount' }, width: '6%', align: 'center' }]
|
|
{ title: '退货金额', scopedSlots: { customRender: 'amount' }, width: '6%', align: 'center' }]
|
|
} else {
|
|
} else {
|
|
- this.columns = [
|
|
|
|
|
|
+ _this.columns = [
|
|
{ title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '仓库', dataIndex: 'warehouseName', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '仓库', dataIndex: 'warehouseName', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '仓位', dataIndex: 'warehouseLocationName', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '仓位', dataIndex: 'warehouseLocationName', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'dealerProductEntity.unit', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '单位', dataIndex: 'dealerProductEntity.unit', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
- { title: '退货单价', dataIndex: 'cost', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
|
|
|
+ { title: '退货单价', dataIndex: 'cost', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } },
|
|
{ title: '退货数量', dataIndex: 'qty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '退货数量', dataIndex: 'qty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '退货金额', scopedSlots: { customRender: 'amount' }, width: '6%', align: 'center' }]
|
|
{ title: '退货金额', scopedSlots: { customRender: 'amount' }, width: '6%', align: 'center' }]
|
|
}
|
|
}
|
|
- purchaseReturnDetailSn({ sn: this.outBizSn || this.$route.params.sn }).then(res => {
|
|
|
|
|
|
+ purchaseReturnDetailSn({ sn: _this.outBizSn || _this.$route.params.sn }).then(res => {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
- this.basicInfoData = res.data
|
|
|
|
|
|
+ _this.basicInfoData = res.data
|
|
} else {
|
|
} else {
|
|
- this.basicInfoData = null
|
|
|
|
|
|
+ _this.basicInfoData = null
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|