提交 47a212ca authored 作者: Ras's avatar Ras

更新了局部刷新功能

上级 186d3a36
......@@ -21,7 +21,7 @@
<span class="gap"></span>
</a-popconfirm>
<a-button type="primary" icon="upload" v-if="isSummary && selectedRowIds.length < 2" @click="upLoad">上传送货单</a-button>
<iost-delivery-record-pic-modal ref="picModalForm"></iost-delivery-record-pic-modal>
<iost-delivery-record-pic-modal ref="picModalForm" @reload="reload"></iost-delivery-record-pic-modal>
<template v-if="showClearSelectButton">
<a-button icon="delete" @click="handleClickClearSelection">清空选择</a-button>
<span class="gap"></span>
......@@ -720,6 +720,7 @@
type: Boolean,
default: false
},
},
data() {
......@@ -964,6 +965,12 @@
this.$refs.picModalForm.editR(rowId)
},
//更新表格
reload(){
this.$emit('reload')
},
getElement(id, noCaseId = false) {
if (!this.el[id]) {
this.el[id] = document.getElementById((noCaseId ? '' : this.caseId) + id)
......
......@@ -91,8 +91,8 @@
<span slot="action" slot-scope="text, record">
<a @click="handleDetail(record)">详情</a>
<a-divider type="vertical" />
<a @click="handleCopy(record)">打印收费单</a>
<a-divider type="vertical" />
<!-- <a @click="handleCopy(record)">打印收费单</a>
<a-divider type="vertical" /> -->
<a @click="exportReceivingNotePdf(record)">查看收费单</a>
<a-divider type="vertical" />
<a-dropdown>
......
......@@ -57,6 +57,7 @@
submitCallback(){
this.$emit('ok');
this.visible = false;
this.$emit("reload")
},
handleCancel () {
this.close()
......
......@@ -40,6 +40,7 @@
:rowSelection="true"
:actionButton="true"
:isSummary="true"
@reload="reload"
/>
</a-tab-pane>
</a-tabs>
......@@ -208,6 +209,9 @@
this.showFlowData();
},
methods: {
reload(){
this.editAfter()
},
addBefore(){
this.form.resetFields()
this.iostSummarySheetListTable.dataSource=[]
......@@ -253,7 +257,6 @@
popupCallback(row){
this.form.setFieldsValue(pick(row,'bulkNo','warehouseName','containerNo','loadingDate'))
},
}
}
</script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论