Authored by zhangwenxue

fix(finance/invoice): invoice type => status

... ... @@ -200,7 +200,7 @@ export default {
*/
updateState(invoice) {
const { status: currentStatus } = this.invoiceData;
const isCancled = invoice.status === InvoiceStatusName2Id.CANCELLED;
const isCancled = invoice.type === InvoiceStatusName2Id.CANCELLED;
if (isCancled) {
if (currentStatus === InvoiceStatusName2Id.CANCELLED) {
... ... @@ -214,6 +214,7 @@ export default {
logisticsSwitch: null,
logisticsId: null,
expressNumber: null,
status: InvoiceStatusName2Id.CANCELLED,
});
} else {
let nextStatus;
... ...