|
@@ -21,6 +21,7 @@
|
|
|
:rowKey="(record) => record.stockPutSn"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
|
+ :defaultLoadData="false"
|
|
|
bordered>
|
|
|
</s-table>
|
|
|
<div class="btn-cont"><a-button id="confirmationDetail-modal-back" @click="isShow = false">返回列表</a-button></div>
|
|
@@ -56,14 +57,14 @@ export default {
|
|
|
detailsData: null, // 详情数据
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
|
- { title: '产品编码', dataIndex: 'putTime', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品名称', dataIndex: 'providerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '入库数量(个)', dataIndex: 'productTotalQty', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '入库成本(¥)', dataIndex: 'productTotalCost', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
+ { title: '产品编码', dataIndex: 'productCode', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
+ { title: '入库数量(个)', dataIndex: 'putQty', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: '入库成本(¥)', dataIndex: 'putCost', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
- return stockPutDetailList(Object.assign(parameter, { stockPutSn: this.itemSn })).then(res => {
|
|
|
+ return stockPutDetailList(Object.assign(parameter, { sn: this.itemSn })).then(res => {
|
|
|
const data = res.data
|
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
@@ -89,7 +90,10 @@ export default {
|
|
|
},
|
|
|
itemSn (newValue, oldValue) {
|
|
|
if (this.isShow && newValue) {
|
|
|
- this.$refs.table.refresh(true)
|
|
|
+ const _this = this
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.$refs.table.refresh(true)
|
|
|
+ }, 200)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -101,18 +105,9 @@ export default {
|
|
|
.ant-modal-body {
|
|
|
padding: 40px 40px 24px;
|
|
|
}
|
|
|
- .productPic{
|
|
|
- cursor: pointer;
|
|
|
- max-width: 100px;
|
|
|
- max-height: 100px;
|
|
|
- margin-right: 10px;
|
|
|
- }
|
|
|
.btn-cont {
|
|
|
text-align: center;
|
|
|
margin: 35px 0 10px;
|
|
|
}
|
|
|
- .ant-descriptions-item-label.ant-descriptions-item-colon{
|
|
|
- width: 120px;
|
|
|
- }
|
|
|
}
|
|
|
</style>
|