wxy 4 年之前
父节点
当前提交
8286f3d3a3
共有 2 个文件被更改,包括 1 次插入9 次删除
  1. 1 5
      src/views/order/inDetail.vue
  2. 0 4
      src/views/order/out.vue

+ 1 - 5
src/views/order/inDetail.vue

@@ -412,12 +412,10 @@ export default {
     async treayChange(data, mm) {
     async treayChange(data, mm) {
       this.treatyValue = data;
       this.treatyValue = data;
       await this.searchProject();
       await this.searchProject();
-      // console.log(this.detailForm);
       if (mm) return;
       if (mm) return;
       this.detailForm.item = '';
       this.detailForm.item = '';
       this.detailForm.route = '';
       this.detailForm.route = '';
-      // this.projectList = [];
-      // this.routeList = [];
+      this.routeList = [];
       for (let item of this.detailForm.goods) {
       for (let item of this.detailForm.goods) {
         item.mode = '';
         item.mode = '';
         item.price = 0;
         item.price = 0;
@@ -446,8 +444,6 @@ export default {
       }
       }
       if (mm) return;
       if (mm) return;
       this.detailForm.route = '';
       this.detailForm.route = '';
-      // this.projectList = [];
-      // this.routeList = [];
       for (let item of this.detailForm.goods) {
       for (let item of this.detailForm.goods) {
         item.mode = '';
         item.mode = '';
         item.price = 0;
         item.price = 0;

+ 0 - 4
src/views/order/out.vue

@@ -279,7 +279,6 @@ export default {
   async created() {
   async created() {
     await this.search();
     await this.search();
     await this.searchOther();
     await this.searchOther();
-    // await this.isTreaty();
   },
   },
   methods: {
   methods: {
     ...order(['query', 'create', 'update', 'delete', 'fetch']),
     ...order(['query', 'create', 'update', 'delete', 'fetch']),
@@ -345,10 +344,8 @@ export default {
     },
     },
     //查看
     //查看
     async see(data) {
     async see(data) {
-      // console.log(data);
       const res = await this.fetch(data.id);
       const res = await this.fetch(data.id);
       if (res) this.$set(this, `detailForm`, res);
       if (res) this.$set(this, `detailForm`, res);
-      // console.log(this.detailForm);
       if (this.detailForm.out_bill.length > 0) {
       if (this.detailForm.out_bill.length > 0) {
         this.computRate();
         this.computRate();
       }
       }
@@ -422,7 +419,6 @@ export default {
     },
     },
     //保存
     //保存
     async save(data) {
     async save(data) {
-      // console.log(data);
       const res = await this.outBill(this.detailForm);
       const res = await this.outBill(this.detailForm);
       if (this.$checkRes(res, '修改成功', res.errmsg || '修改失败')) {
       if (this.$checkRes(res, '修改成功', res.errmsg || '修改失败')) {
         this.back();
         this.back();