发票登记 增加刷新按钮

prod
wangwei 2 years ago
parent 435cb64d69
commit 20f21696e7

@ -91,6 +91,14 @@ export function filterBizOrderList(params) {
});
}
export function addBizProduct(params) {
return axios({
url: "/udiwms/inout/order/refrshInvoice",
method: "post",
data: params
});
}

@ -192,7 +192,7 @@
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" width="160" fixed="right">
<el-table-column label="操作" width="180" fixed="right">
<template slot-scope="scope">
<el-button type="text" :disabled="scope.row.checkStatus==1" size="small" @click.native.stop="determine(scope.row)">确认</el-button>
<el-button
@ -203,9 +203,8 @@
</el-button
>
<el-button
type="primary"
icon="el-icon-refresh"
@click="flush"
type="text"
@click="getNewInv(scope.row)"
>刷新
</el-button>
</template>
@ -235,7 +234,7 @@
未登记
</el-tag>
<el-tag type="success" v-if="scope.row.regStatus==1">
全部登记
登记
</el-tag>
</template>
</el-table-column>
@ -520,7 +519,7 @@ import {
deleteById,
insertInvoice,
updateorderBiz,
filterBizOrderList
filterBizOrderList, addBizProduct
} from '@/api/inout/orderDetailBiz'
import {getCodeList} from "@/api/inout/code";
import AcceptOrder from "@/views/inout/DialogReviewOrder";
@ -565,6 +564,11 @@ export default {
endTime: null,
invCode: this.$store.getters.locInvCode,
},
Refresh:{
id:"",
orderIdFk:null,
bizIdFk:"",
},
determineVisible: false,
determineData:null,
corpLoading: false,
@ -1116,6 +1120,20 @@ export default {
};
return statusMap[status];
},
getNewInv (row){
this.Refresh.orderIdFk=row.billNo;
addBizProduct(this.Refresh).then( (res) => {
if (res.code === 20000) {
this.$message.success("刷新成功!");
this.getList();
} else {
this.$message.error(res.message);
}
})
},
}
,
mounted() {

Loading…
Cancel
Save