|
@@ -191,11 +191,16 @@
|
|
|
<a-tag v-if="record.status == 2" color="green">已结算</a-tag>
|
|
<a-tag v-if="record.status == 2" color="green">已结算</a-tag>
|
|
|
<a-tag v-else color="red">未结算</a-tag>
|
|
<a-tag v-else color="red">未结算</a-tag>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template slot="remarksSlot" slot-scope="text,record">
|
|
|
|
|
+ <a-input v-model="record.remarks" placeholder="" @blur="handleAccountRemarks(record)"></a-input>
|
|
|
|
|
+ </template>
|
|
|
<span slot="action" slot-scope="text, record">
|
|
<span slot="action" slot-scope="text, record">
|
|
|
- <a v-if="record.type == 3" @click="handleGoodsReturn(record)">退货</a>
|
|
|
|
|
<a-popconfirm v-if="record.status == 2" title="确定撤销结算吗?" @confirm="() => handleRevoke(record)">
|
|
<a-popconfirm v-if="record.status == 2" title="确定撤销结算吗?" @confirm="() => handleRevoke(record)">
|
|
|
<a>撤销</a>
|
|
<a>撤销</a>
|
|
|
</a-popconfirm>
|
|
</a-popconfirm>
|
|
|
|
|
+ <span v-else>
|
|
|
|
|
+ <a v-if="record.type == 3" @click="handleGoodsReturn(record)">退货</a>
|
|
|
|
|
+ </span>
|
|
|
</span>
|
|
</span>
|
|
|
</a-table>
|
|
</a-table>
|
|
|
</div>
|
|
</div>
|
|
@@ -286,8 +291,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title:'备注',
|
|
title:'备注',
|
|
|
|
|
+ width: 200,
|
|
|
align:"center",
|
|
align:"center",
|
|
|
- dataIndex: 'remarks'
|
|
|
|
|
|
|
+ dataIndex: 'remarks',
|
|
|
|
|
+ scopedSlots: { customRender: 'remarksSlot' }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title:'操作员',
|
|
title:'操作员',
|
|
@@ -319,6 +326,7 @@ export default {
|
|
|
exportXlsUrl: "/business/busAgreementOrderFee/exportXls",
|
|
exportXlsUrl: "/business/busAgreementOrderFee/exportXls",
|
|
|
importExcelUrl: "business/busAgreementOrderFee/importExcel",
|
|
importExcelUrl: "business/busAgreementOrderFee/importExcel",
|
|
|
revoke: "/business/busAgreementOrderFee/revoke",
|
|
revoke: "/business/busAgreementOrderFee/revoke",
|
|
|
|
|
+ editRemarks: "/business/busAgreementOrderFee/editRemarks",
|
|
|
queryAgreementAccount: "/business/busAgreementOrderFee/queryAgreementAccount",//获取协议单位消费、收款信息
|
|
queryAgreementAccount: "/business/busAgreementOrderFee/queryAgreementAccount",//获取协议单位消费、收款信息
|
|
|
},
|
|
},
|
|
|
queryParam: {
|
|
queryParam: {
|
|
@@ -372,7 +380,7 @@ export default {
|
|
|
if (this.settleType == 1 || this.settleType == 2){
|
|
if (this.settleType == 1 || this.settleType == 2){
|
|
|
this.url.list = this.url.baseList +"?status="+this.settleType+"&agreementUnitId="+this.agreementUnitInfo.id;
|
|
this.url.list = this.url.baseList +"?status="+this.settleType+"&agreementUnitId="+this.agreementUnitInfo.id;
|
|
|
}else{
|
|
}else{
|
|
|
- this.url.list = this.url.baseList+"?status=1&agreementUnitId="+this.agreementUnitInfo.id;
|
|
|
|
|
|
|
+ this.url.list = this.url.baseList+"?agreementUnitId="+this.agreementUnitInfo.id;
|
|
|
}
|
|
}
|
|
|
// if (!this.queryParam.startTime=="") {
|
|
// if (!this.queryParam.startTime=="") {
|
|
|
// this.url.list = this.url.list + "&startDate=" + this.queryParam.startTime
|
|
// this.url.list = this.url.list + "&startDate=" + this.queryParam.startTime
|
|
@@ -493,6 +501,24 @@ export default {
|
|
|
that.accountModel = res.result;
|
|
that.accountModel = res.result;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ handleAccountRemarks(record){
|
|
|
|
|
+ console.log(record)
|
|
|
|
|
+ const that = this;
|
|
|
|
|
+ that.confirmLoading = true;
|
|
|
|
|
+ let httpurl = this.url.editRemarks;
|
|
|
|
|
+ let method = 'put';
|
|
|
|
|
+ httpAction(httpurl,record,method).then((res)=>{
|
|
|
|
|
+ if(res.success){
|
|
|
|
|
+ that.$message.success(res.message);
|
|
|
|
|
+ // that.$emit('ok');
|
|
|
|
|
+ // that.loadData(1);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ that.$message.warning(res.message);
|
|
|
|
|
+ }
|
|
|
|
|
+ }).finally(() => {
|
|
|
|
|
+ that.confirmLoading = false;
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|