...
|
...
|
@@ -84,14 +84,11 @@ export default { |
|
|
}
|
|
|
},
|
|
|
show(invoice) {
|
|
|
const params = _.pick(invoice, ['shopId', 'orderCode']);
|
|
|
this.setTitle(invoice);
|
|
|
this.invoiceAPI.get(params).then(({ data }) => {
|
|
|
// initial data
|
|
|
this.invoiceData = data;
|
|
|
this.formItem = { ...data };
|
|
|
this.visible = true;
|
|
|
});
|
|
|
// initial data
|
|
|
this.invoiceData = invoice;
|
|
|
this.formItem = { ...invoice };
|
|
|
this.visible = true;
|
|
|
},
|
|
|
/**
|
|
|
* 前端可控制的状态转移
|
...
|
...
|
@@ -119,7 +116,7 @@ export default { |
|
|
* 退货已经处理->作废
|
|
|
* 未开发票->作废
|
|
|
* 已开发票->作废
|
|
|
* [6] 已开票->已开票, 退货已经处理->退货已经处理
|
|
|
* [6] 已开票->已开票, 退货已经处理->退货已经处理(更新发票信息)
|
|
|
* return: true: 可以提交, false: 不必提交(当前状态为作废, 选择状态还是作废)
|
|
|
*/
|
|
|
updateState(invoice) {
|
...
|
...
|
|