Commit 7ef1969f authored by yanglilong's avatar yanglilong

理赔件案件

parent aef8ac88
......@@ -66,7 +66,7 @@
<div class="btn-div flex">
<span></span>
<a-form-model-item label="button">
<a-button class="mar-left10" type="primary" @click="addNewCharge">
<a-button class="mar-left10" type="primary" @click.stop="addNewCharge">
<Icon :name="sendBatchNo?'ssibaocun':'ssiadd'" :size="14" />{{sendBatchNo?'保存寄送':'新建寄送'}}</a-button>
</a-form-model-item>
</div>
......@@ -128,7 +128,7 @@
<a-button class="mar-left10" type="primary" @click="exportEvt">
<Icon name="ssidaochu" :size="14" />导出
</a-button>
<a-button class="mar-left10" type="primary" @click="addNewBill" v-if="isEdit">
<a-button class="mar-left10" type="primary" @click.stop="addNewBill" v-if="isEdit">
<Icon :name="isEditNewBill?'ssibaocun':'ssiadd'" :size="14" />{{isEditNewBill? '保存账单': '添加账单'}}</a-button>
</a-form-model-item>
</div>
......@@ -360,6 +360,7 @@ export default {
},
// 分页回调
getPageData(pager) {
console.log(pager, 1111)
if(pager){
this.pagination = {
...this.pagination,
......@@ -548,25 +549,24 @@ export default {
},
//添加账单
addNewBill(){
// this.isEditNewBill = !this.isEditNewBill;
if(this.isEditNewBill){ //保存
this.addNewCharge()
.then(()=>{
this.isEditNewBill = false;
this.getData()
})
}else{ //查询所有未加入的账单
this.pagination.pageNum = 1;
this.isEditNewBill = true;
this.cacheDataList = {}
if(this.isEditNewBill) { // 新增时添加了账单信息 那分页也应该是调账单信息接口
this._getNewBillList()
this._getNewBillList()
} else {
this.getData()
}
}
},
_getNewBillList() {
console.log(2133)
this.$apis.queryNoSendReceipList({
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
......@@ -648,7 +648,7 @@ export default {
this.$message.success("成功");
// this.selectedRowKeys = [];
this.cacheDataList = {}
if(this.isEditNewBill) { // 新增时添加了账单信息 那分页也应该是调账单信息接口
if(!this.isEditNewBill) { // 新增时添加了账单信息 那分页也应该是调账单信息接口
this._getNewBillList()
} else {
this.getData()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment