|
@@ -27,7 +27,7 @@
|
|
|
idName="20230224183304"
|
|
|
keyName="sa_cashbillid"
|
|
|
:id="$route.query.id"
|
|
|
- @onSuccess="queryMainData($route.query.id);$refs.bill && $refs.bill.listData()"
|
|
|
+ @onSuccess="writeOffSuccess"
|
|
|
class="inline-16"
|
|
|
v-if="mainData.status == '审核' && tool.checkAuth($route.name,'writeoff') && mainData.unwriteoffamount > 0"
|
|
|
/>
|
|
@@ -78,6 +78,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ writeOffSuccess (data) {
|
|
|
+ this.queryMainData(this.$route.query.id)
|
|
|
+ this.$refs.bill && this.$refs.bill.listData()
|
|
|
+
|
|
|
+ let route = this.$route
|
|
|
+ if (route.path !== '/taskDetails') {
|
|
|
+ this.oldRoute = {path:route.path,query:route.query}
|
|
|
+ this.$store.dispatch('setHistoryRouter',this.oldRoute)
|
|
|
+ }
|
|
|
+ this.$router.replace({path:'/writeoffbillDetail',query:{id:data[0].sa_writeoffbillid,rowindex:data[0].rowindex}})
|
|
|
+ },
|
|
|
async queryMainData(id){
|
|
|
const res = await this.$api.requested({
|
|
|
"id": "20221009103003",
|
|
@@ -148,6 +159,10 @@ export default {
|
|
|
label:'凭证来源说明',
|
|
|
value:this.mainData.sourcenote
|
|
|
},
|
|
|
+ {
|
|
|
+ label:'对冲单号',
|
|
|
+ value:this.mainData.billno
|
|
|
+ },
|
|
|
{
|
|
|
label:'备注',
|
|
|
value:this.mainData.remarks
|