Commit 7ef1969f authored by yanglilong's avatar yanglilong

理赔件案件

parent aef8ac88
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<div class="btn-div flex"> <div class="btn-div flex">
<span></span> <span></span>
<a-form-model-item label="button"> <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> <Icon :name="sendBatchNo?'ssibaocun':'ssiadd'" :size="14" />{{sendBatchNo?'保存寄送':'新建寄送'}}</a-button>
</a-form-model-item> </a-form-model-item>
</div> </div>
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
<a-button class="mar-left10" type="primary" @click="exportEvt"> <a-button class="mar-left10" type="primary" @click="exportEvt">
<Icon name="ssidaochu" :size="14" />导出 <Icon name="ssidaochu" :size="14" />导出
</a-button> </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> <Icon :name="isEditNewBill?'ssibaocun':'ssiadd'" :size="14" />{{isEditNewBill? '保存账单': '添加账单'}}</a-button>
</a-form-model-item> </a-form-model-item>
</div> </div>
...@@ -360,6 +360,7 @@ export default { ...@@ -360,6 +360,7 @@ export default {
}, },
// 分页回调 // 分页回调
getPageData(pager) { getPageData(pager) {
console.log(pager, 1111)
if(pager){ if(pager){
this.pagination = { this.pagination = {
...this.pagination, ...this.pagination,
...@@ -548,12 +549,10 @@ export default { ...@@ -548,12 +549,10 @@ export default {
}, },
//添加账单 //添加账单
addNewBill(){ addNewBill(){
// this.isEditNewBill = !this.isEditNewBill;
if(this.isEditNewBill){ //保存 if(this.isEditNewBill){ //保存
this.addNewCharge() this.addNewCharge()
.then(()=>{ .then(()=>{
this.isEditNewBill = false; this.isEditNewBill = false;
this.getData()
}) })
}else{ //查询所有未加入的账单 }else{ //查询所有未加入的账单
this.pagination.pageNum = 1; this.pagination.pageNum = 1;
...@@ -567,6 +566,7 @@ export default { ...@@ -567,6 +566,7 @@ export default {
} }
}, },
_getNewBillList() { _getNewBillList() {
console.log(2133)
this.$apis.queryNoSendReceipList({ this.$apis.queryNoSendReceipList({
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
...@@ -648,7 +648,7 @@ export default { ...@@ -648,7 +648,7 @@ export default {
this.$message.success("成功"); this.$message.success("成功");
// this.selectedRowKeys = []; // this.selectedRowKeys = [];
this.cacheDataList = {} this.cacheDataList = {}
if(this.isEditNewBill) { // 新增时添加了账单信息 那分页也应该是调账单信息接口 if(!this.isEditNewBill) { // 新增时添加了账单信息 那分页也应该是调账单信息接口
this._getNewBillList() this._getNewBillList()
} else { } else {
this.getData() 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