feat(crm): 新增订单操作记录、异议和收款组件
refactor(crm): 重构订单操作使用actions统一处理 style(crm): 清理无用代码和注释 fix(crm): 修复订单记录排序问题
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
|
||||
<script>
|
||||
import { listOrderItem, getOrderItem, delOrderItem, addOrderItem, updateOrderItem } from "@/api/crm/orderItem";
|
||||
import { actions, ORDER_ACTIONS } from "../js/actions";
|
||||
|
||||
export default {
|
||||
name: "OrderItem",
|
||||
@@ -223,7 +224,7 @@ export default {
|
||||
if (valid) {
|
||||
this.buttonLoading = true;
|
||||
if (this.form.itemId != null) {
|
||||
updateOrderItem(this.form).then(response => {
|
||||
actions[ORDER_ACTIONS.updateOrderdetail].handler(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
@@ -231,7 +232,7 @@ export default {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
} else {
|
||||
addOrderItem(this.form).then(response => {
|
||||
actions[ORDER_ACTIONS.createOrderdetail].handler(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
|
||||
Reference in New Issue
Block a user