Преглед на файлове

财务 财务含淘气 添加订单加类型

1
mo преди 3 години
родител
ревизия
ea27c2b419
променени са 2 файла, в които са добавени 9 реда и са изтрити 1 реда
  1. 4 0
      src/views/businessManager/orderManager/financeManager-taoqi.vue
  2. 5 1
      src/views/businessManager/orderManager/financeManager.vue

+ 4 - 0
src/views/businessManager/orderManager/financeManager-taoqi.vue

@@ -912,8 +912,12 @@ export default {
             form.applyType == "SERVICE" ? null : JSON.stringify(goodsJson);
           if (this.insertOrderType == 1) {
             form.calenderId = null;
+            form.type='PERSONAL'
           } else if (this.insertOrderType == 2) {
             form.userId = null;
+                form.type='SCHOOL'
+          }else{
+                form.type='OTHER'
           }
           routeOrderAdd(form).then((res) => {
             if (res.code == 200) {

+ 5 - 1
src/views/businessManager/orderManager/financeManager.vue

@@ -911,10 +911,14 @@ export default {
           }
           form.goodsJson =
             form.applyType == "SERVICE" ? null : JSON.stringify(goodsJson);
-          if (this.insertOrderType == 1) {
+                 if (this.insertOrderType == 1) {
             form.calenderId = null;
+            form.type='PERSONAL'
           } else if (this.insertOrderType == 2) {
             form.userId = null;
+                form.type='SCHOOL'
+          }else{
+                form.type='OTHER'
           }
           routeOrderAdd(form).then((res) => {
             if (res.code == 200) {