huangyw 3 years ago
parent
commit
0ecc13cd27

+ 14 - 0
src/views/layout/Layout.vue View File

@@ -16,10 +16,24 @@
16 16
           <i class="iconfont icon-computer_fill navIcon"></i>
17 17
           <p>透析管理</p>
18 18
         </div>
19
+<<<<<<< Updated upstream
19 20
         <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
20 21
           <i class="iconfont icon-kccx navIcon"></i>
21 22
           <p>采购管理</p>
22 23
         </div>
24
+=======
25
+<<<<<<< Updated upstream
26
+        <!-- <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
27
+          <i class="iconfont icon-kccx navIcon"></i>
28
+          <p>采购管理</p>
29
+        </div> -->
30
+=======
31
+       <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
32
+        <i class="iconfont icon-kccx navIcon"></i>
33
+         <p>采购管理</p>
34
+       </div>
35
+>>>>>>> Stashed changes
36
+>>>>>>> Stashed changes
23 37
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
24 38
           <i class="iconfont icon-kccx navIcon"></i>
25 39
           <p>库房管理</p>

+ 7 - 9
src/xt_pages/supply/components/addSupply.vue View File

@@ -11,19 +11,19 @@
11 11
         ref="supplier"
12 12
       >
13 13
         <el-row>
14
-          <el-col span="6">
14
+          <el-col :span="6">
15 15
             <el-form-item label="供应商编码" prop="supplierCode">
16 16
               <el-input v-model="supplier.supplierCode"></el-input>
17 17
             </el-form-item>
18 18
           </el-col>
19
-          <el-col span="6">
19
+          <el-col :span="6">
20 20
             <el-form-item label="供应商名称" prop="supplierName">
21 21
               <el-input v-model="supplier.supplierName"></el-input>
22 22
             </el-form-item>
23 23
           </el-col>
24 24
         </el-row>
25 25
         <el-row>
26
-          <el-col span="6">
26
+          <el-col :span="6">
27 27
             <el-form-item label="供应商类别" prop="supplierType">
28 28
               <!-- <el-input v-model="supplier.type"></el-input> -->
29 29
               <!-- <el-autocomplete
@@ -43,7 +43,7 @@
43 43
               </el-select>
44 44
             </el-form-item>
45 45
           </el-col>
46
-          <el-col span="6">
46
+          <el-col :span="6">
47 47
             <el-form-item label="增值税税率" prop="vatRate">
48 48
               <el-input
49 49
                 v-model="supplier.vatRate"
@@ -53,19 +53,19 @@
53 53
           </el-col>
54 54
         </el-row>
55 55
         <el-row>
56
-          <el-col span="6">
56
+          <el-col :span="6">
57 57
             <el-form-item label="纳税人识别号" prop="number">
58 58
               <el-input v-model="supplier.number"></el-input>
59 59
             </el-form-item>
60 60
           </el-col>
61
-          <el-col span="6">
61
+          <el-col :span="6">
62 62
             <el-form-item label="开户银行" prop="bank">
63 63
               <el-input v-model="supplier.bank"></el-input>
64 64
             </el-form-item>
65 65
           </el-col>
66 66
         </el-row>
67 67
         <el-row>
68
-          <el-col span="6">
68
+          <el-col :span="6">
69 69
             <el-form-item label="银行账号" prop="bankAccount">
70 70
               <el-input v-model="supplier.bankAccount"></el-input>
71 71
             </el-form-item>
@@ -383,7 +383,6 @@ export default {
383 383
         .then((res) => {
384 384
           if (res.status == 200) {
385 385
             this.supplierType = res.data.data.list;
386
-            console.log(this.supplierType, "this.supplierType");
387 386
           }
388 387
         })
389 388
         .catch((err) => {
@@ -518,7 +517,6 @@ export default {
518 517
           //       address: val.address,
519 518
           //       phone: val.phone,
520 519
           //     };
521
-          //     this.$forceUpdate();
522 520
           //   }
523 521
         }
524 522
       });

+ 225 - 144
src/xt_pages/supply/components/editGoodReturn.vue View File

@@ -59,8 +59,12 @@
59 59
           <span>单据编码:{{ number }}</span>
60 60
         </div>
61 61
         <div>
62
-          <el-button size="small" type="primary" @click="updateGoodReturn">保存</el-button>
63
-          <el-button size="small" type="primary" @click="checkReturnOrder">审核</el-button>
62
+          <el-button size="small" type="primary" @click="updateGoodReturn"
63
+            >保存</el-button
64
+          >
65
+          <el-button size="small" type="primary" @click="checkReturnOrder"
66
+            >审核</el-button
67
+          >
64 68
         </div>
65 69
       </div>
66 70
 
@@ -68,8 +72,8 @@
68 72
         <el-table
69 73
           :row-style="{ color: '#303133' }"
70 74
           :header-cell-style="{
71
-              backgroundColor: 'rgb(245, 247, 250)',
72
-              color: '#606266'
75
+            backgroundColor: 'rgb(245, 247, 250)',
76
+            color: '#606266',
73 77
           }"
74 78
           :data="recordInfo.tableList"
75 79
           :class="signAndWeighBoxPatients"
@@ -130,21 +134,30 @@
130 134
             </template>
131 135
           </el-table-column>
132 136
 
133
-        <el-table-column label="单位" align="center" width="120px">
137
+          <el-table-column label="单位" align="center" width="120px">
134 138
             <template slot="header" slot-scope="scope">
135
-                <span>单位<span style="color: red">*</span></span>
139
+              <span>单位<span style="color: red">*</span></span>
136 140
             </template>
137 141
             <template slot-scope="scope">
138
-              <el-form-item :prop="'tableList.' + scope.$index + '.supply_unit'" :rules='tableRules.supply_unit'>
139
-                <el-select v-model="scope.row.supply_unit" style="width:100px;" filterable placeholder="请选择"  :disabled="disabled">
140
-                        <!-- <el-option
142
+              <el-form-item
143
+                :prop="'tableList.' + scope.$index + '.supply_unit'"
144
+                :rules="tableRules.supply_unit"
145
+              >
146
+                <el-select
147
+                  v-model="scope.row.supply_unit"
148
+                  style="width: 100px"
149
+                  filterable
150
+                  placeholder="请选择"
151
+                  :disabled="disabled"
152
+                >
153
+                  <!-- <el-option
141 154
                             v-for="(item,index) in scope.row.unitList"
142 155
                             :key="index"
143 156
                             :label="item.name"
144 157
                             :value="item.name">
145 158
                         </el-option> -->
146 159
                 </el-select>
147
-              </el-form-item>  
160
+              </el-form-item>
148 161
             </template>
149 162
           </el-table-column>
150 163
           <el-table-column label="可用库存" align="center" width="130px">
@@ -168,7 +181,6 @@
168 181
           <el-table-column label="数量" align="center" width="120px">
169 182
             <template slot="header" slot-scope="scope">
170 183
               <span>数量<span style="color: red">*</span></span>
171
-
172 184
             </template>
173 185
             <template slot-scope="scope">
174 186
               <el-form-item
@@ -254,26 +266,43 @@
254 266
             </template>
255 267
           </el-table-column>
256 268
 
257
-          <el-table-column label="操作" align="center" width="150px" fixed="right">
269
+          <el-table-column
270
+            label="操作"
271
+            align="center"
272
+            width="150px"
273
+            fixed="right"
274
+          >
258 275
             <template slot-scope="scope">
259
-              <el-tooltip class="item" effect="dark" content="新增" placement="top" >
260
-                  <el-button
261
-                      size="mini"
262
-                      type="primary"
263
-                      icon="el-icon-circle-plus-outline"
264
-                      @click="handleEdit(scope.$index, scope.row)">
265
-                  </el-button>
266
-            </el-tooltip>
267
-            <el-tooltip class="item" effect="dark" content="删除" placement="top">
268
-                  <el-button
269
-                      size="mini"
270
-                      type="danger"
271
-                      icon="el-icon-delete"
272
-                      @click="handleDelete(scope.$index, scope.row)">
273
-                  </el-button>
276
+              <el-tooltip
277
+                class="item"
278
+                effect="dark"
279
+                content="新增"
280
+                placement="top"
281
+              >
282
+                <el-button
283
+                  size="mini"
284
+                  type="primary"
285
+                  icon="el-icon-circle-plus-outline"
286
+                  @click="handleEdit(scope.$index, scope.row)"
287
+                >
288
+                </el-button>
289
+              </el-tooltip>
290
+              <el-tooltip
291
+                class="item"
292
+                effect="dark"
293
+                content="删除"
294
+                placement="top"
295
+              >
296
+                <el-button
297
+                  size="mini"
298
+                  type="danger"
299
+                  icon="el-icon-delete"
300
+                  @click="handleDelete(scope.$index, scope.row)"
301
+                >
302
+                </el-button>
274 303
               </el-tooltip>
275 304
             </template>
276
-         </el-table-column>
305
+          </el-table-column>
277 306
         </el-table>
278 307
       </el-form>
279 308
       <div style="margin-top: 10px">
@@ -285,11 +314,14 @@
285 314
         >
286 315
         </el-input>
287 316
       </div>
317
+      <div style="margin-top: 10px">合计:{{ getAllPrice() }} 元</div>
288 318
       <div style="margin-top: 10px">
289 319
         <span
290 320
           >优惠率:<el-input
291 321
             style="width: 100px"
292 322
             v-model="rate_of_concession"
323
+            @input="addressChange"
324
+            placeholder="请输入优惠率"
293 325
           ></el-input
294 326
           >%</span
295 327
         >
@@ -298,6 +330,8 @@
298 330
           >优惠金额:<el-input
299 331
             style="width: 100px"
300 332
             v-model="discount_amount"
333
+            @input="count_discount"
334
+            placeholder="请输入优惠金额"
301 335
           ></el-input
302 336
         ></span>
303 337
 
@@ -305,6 +339,8 @@
305 339
           >本次付款:<el-input
306 340
             style="width: 100px"
307 341
             v-model="payment"
342
+            @input="count_payment"
343
+            placeholder="请输入本次付款"
308 344
           ></el-input
309 345
         ></span>
310 346
 
@@ -312,6 +348,8 @@
312 348
           >本次欠款:<el-input
313 349
             style="width: 100px"
314 350
             v-model="arrearage"
351
+            @input="count_arrearage"
352
+            placeholder="请输入本次欠款"
315 353
           ></el-input
316 354
         ></span>
317 355
       </div>
@@ -338,7 +376,7 @@ import {
338 376
   getInitOrder,
339 377
   getGoodReturnDetail,
340 378
   updateGoodReturn,
341
-  checkReturnOrder
379
+  checkReturnOrder,
342 380
 } from "@/api/supply";
343 381
 export default {
344 382
   name: "addPurchaseOrder",
@@ -347,7 +385,7 @@ export default {
347 385
   },
348 386
   data() {
349 387
     return {
350
-      tipsInfo:"",
388
+      tipsInfo: "",
351 389
       crumbs: [
352 390
         { path: false, name: "退货单" },
353 391
         { path: "/good/return/add", name: "新增退货单" },
@@ -381,8 +419,8 @@ export default {
381 419
       supplier_name: "",
382 420
       supplyList: [],
383 421
       rate_of_concession: "",
384
-      arrearage:"",
385
-      payment:"",
422
+      arrearage: "",
423
+      payment: "",
386 424
       discount_amount: "",
387 425
       tableRules: {
388 426
         name: [{ required: true, message: "商品不能为空", trigger: "blur" }],
@@ -399,8 +437,8 @@ export default {
399 437
       disabled: false,
400 438
       is_check: 0,
401 439
       dialogVisible: false,
402
-      return_remark:"",
403
-      warehouse_out_id:0,
440
+      return_remark: "",
441
+      warehouse_out_id: 0,
404 442
     };
405 443
   },
406 444
   methods: {
@@ -579,11 +617,11 @@ export default {
579 617
       tempObj["is_total"] = 1;
580 618
       tempObj["project_id"] = 0;
581 619
       tempObj["supply_unit"] = "";
582
-      tempObj["supply_batch_number"] = ""
583
-      tempObj["supply_product_date"] = ""
584
-      tempObj["supply_expiry_date"] = ""
585
-      tempObj["warehousing_id"] =0
586
-      tempObj["warehouse_info_id"] =0
620
+      tempObj["supply_batch_number"] = "";
621
+      tempObj["supply_product_date"] = "";
622
+      tempObj["supply_expiry_date"] = "";
623
+      tempObj["warehousing_id"] = 0;
624
+      tempObj["warehouse_info_id"] = 0;
587 625
       this.recordInfo.tableList.push(tempObj);
588 626
     },
589 627
     handleDelete: function (index, row) {
@@ -714,8 +752,34 @@ export default {
714 752
           this.recordInfo.tableList[i].supply_price *
715 753
           this.recordInfo.tableList[i].supply_count;
716 754
       }
755
+      this.total_price = total_price;
717 756
       return total_price.toFixed(2);
718 757
     },
758
+
759
+    addressChange() {
760
+      var discount_amount = 0;
761
+      if (this.rate_of_concession > 0) {
762
+        discount_amount = (
763
+          (this.rate_of_concession / 100) *
764
+          this.total_price
765
+        ).toFixed(2);
766
+      }
767
+      this.discount_amount = discount_amount;
768
+    },
769
+    count_discount() {
770
+      this.rate_of_concession = (
771
+        this.discount_amount /
772
+        (this.total_price * 0.01)
773
+      ).toFixed(2);
774
+    },
775
+    count_payment() {
776
+      this.arrearage = this.total_price - this.payment;
777
+    },
778
+
779
+    count_arrearage() {
780
+      this.payment = this.total_price - this.arrearage;
781
+    },
782
+
719 783
     checkPurchaseOrder(id, index) {
720 784
       this.$confirm("是否审核?", {
721 785
         confirmButtonText: "确 定",
@@ -734,123 +798,140 @@ export default {
734 798
         })
735 799
         .catch(() => {});
736 800
     },
737
-    getGoodReturnDetail(){
738
-      
739
-      var id = this.$route.query.id
740
-      getGoodReturnDetail(id).then(response=>{
741
-        if(response.data.state == 1){
742
-          var out = response.data.data.cancelDetail
743
-          console.log("out23322323232323",out)
744
-          this.warehouse_out_id = out.warehouse_out_id
745
-          this.is_check = out.is_check
746
-          this.id = out.id
747
-          this.supplier_name = out.supplier_id
748
-          this.rate_of_concession = out.rate_of_concession
749
-          this.discount_amount = out.discount_amount
750
-          this.payment = out.payment
751
-          this.arrearage = out.arrearage
752
-          this.start_time = this.getTimes(out.document_date)
753
-          var orderInfo = response.data.data.orderCancelDetail
754
-          console.log("orderINFO233232232332",orderInfo)
755
-          var drugList = response.data.data.drugList
756
-          var goodList = response.data.data.goodList
757
-          for(let i=0;i< orderInfo.length;i++){
758
-              
759
-              orderInfo[i].supply_count =  orderInfo[i].count
760
-              orderInfo[i].supply_price =  orderInfo[i].price
761
-              orderInfo[i].supply_remake =  orderInfo[i].remark
762
-              orderInfo[i].type =  orderInfo[i].is_source
763
-              orderInfo[i].project_id =  orderInfo[i].project_id
764
-              orderInfo[i].supply_unit =  orderInfo[i].supply_unit
765
-              orderInfo[i].order_number =  orderInfo[i].order_number
766
-              orderInfo[i].good_number = orderInfo[i].good_number
767
-              orderInfo[i].supply_total_price = (orderInfo[i].count * orderInfo[i].price).toFixed(2)
768
-              orderInfo[i].supply_expiry_date =  orderInfo[i].supply_expiry_date
769
-              orderInfo[i].supply_product_date = orderInfo[i].supply_product_date
770
-            if(orderInfo[i].is_source == 1){
771
-              for(let j=0;j<drugList.length;j++){
772
-                  if( orderInfo[i].project_id == drugList[j].id){
773
-                    if(drugList[j].max_unit!=drugList[j].min_unit){
774
-                      orderInfo[i].unitList = [{id:1,name:""},{id:2,name:""}]
775
-                      orderInfo[i].unitList[0].name = drugList[j].max_unit
776
-                      orderInfo[i].unitList[1].name = drugList[j].min_unit
777
-                    }
778
-                    if(drugList[j].max_unit ==drugList[j].min_unit){
779
-                      orderInfo[i].unitList = [{id:1,name:""}]
780
-                      orderInfo[i].unitList[0].name = drugList[j].max_unit
781
-                    }
782
-                  
801
+    getGoodReturnDetail() {
802
+      var id = this.$route.query.id;
803
+      getGoodReturnDetail(id).then((response) => {
804
+        if (response.data.state == 1) {
805
+          var out = response.data.data.cancelDetail;
806
+          console.log("out23322323232323", out);
807
+          this.warehouse_out_id = out.warehouse_out_id;
808
+          this.is_check = out.is_check;
809
+          this.id = out.id;
810
+          this.supplier_name = out.supplier_id;
811
+          this.rate_of_concession = out.rate_of_concession;
812
+          this.discount_amount = out.discount_amount;
813
+          this.payment = out.payment;
814
+          this.arrearage = out.arrearage;
815
+          this.start_time = this.getTimes(out.document_date);
816
+          var orderInfo = response.data.data.orderCancelDetail;
817
+          console.log("orderINFO233232232332", orderInfo);
818
+          var drugList = response.data.data.drugList;
819
+          var goodList = response.data.data.goodList;
820
+          for (let i = 0; i < orderInfo.length; i++) {
821
+            orderInfo[i].supply_count = orderInfo[i].count;
822
+            orderInfo[i].supply_price = orderInfo[i].price;
823
+            orderInfo[i].supply_remake = orderInfo[i].remark;
824
+            orderInfo[i].type = orderInfo[i].is_source;
825
+            orderInfo[i].project_id = orderInfo[i].project_id;
826
+            orderInfo[i].supply_unit = orderInfo[i].supply_unit;
827
+            orderInfo[i].order_number = orderInfo[i].order_number;
828
+            orderInfo[i].good_number = orderInfo[i].good_number;
829
+            orderInfo[i].supply_total_price = (
830
+              orderInfo[i].count * orderInfo[i].price
831
+            ).toFixed(2);
832
+            orderInfo[i].supply_expiry_date = orderInfo[i].supply_expiry_date;
833
+            orderInfo[i].supply_product_date = orderInfo[i].supply_product_date;
834
+            if (orderInfo[i].is_source == 1) {
835
+              for (let j = 0; j < drugList.length; j++) {
836
+                if (orderInfo[i].project_id == drugList[j].id) {
837
+                  if (drugList[j].max_unit != drugList[j].min_unit) {
838
+                    orderInfo[i].unitList = [
839
+                      { id: 1, name: "" },
840
+                      { id: 2, name: "" },
841
+                    ];
842
+                    orderInfo[i].unitList[0].name = drugList[j].max_unit;
843
+                    orderInfo[i].unitList[1].name = drugList[j].min_unit;
783 844
                   }
784
-              }  
785
-              } 
786
-            if(orderInfo[i].is_source == 2){
787
-              for(let j=0;j<goodList.length;j++){
788
-                  if(orderInfo[i].project_id == goodList[j].id){
789
-                      orderInfo[i].unitList = [{id:1,name:""}]
790
-                      orderInfo[i].unitList[0].name = goodList[j].packing_unit
845
+                  if (drugList[j].max_unit == drugList[j].min_unit) {
846
+                    orderInfo[i].unitList = [{ id: 1, name: "" }];
847
+                    orderInfo[i].unitList[0].name = drugList[j].max_unit;
791 848
                   }
792
-              }  
793
-            } 
849
+                }
850
+              }
851
+            }
852
+            if (orderInfo[i].is_source == 2) {
853
+              for (let j = 0; j < goodList.length; j++) {
854
+                if (orderInfo[i].project_id == goodList[j].id) {
855
+                  orderInfo[i].unitList = [{ id: 1, name: "" }];
856
+                  orderInfo[i].unitList[0].name = goodList[j].packing_unit;
857
+                }
858
+              }
859
+            }
794 860
           }
795
-        
796
-          this.recordInfo.tableList= []
797
-          this.recordInfo.tableList = orderInfo
798
-        
861
+
862
+          this.recordInfo.tableList = [];
863
+          this.recordInfo.tableList = orderInfo;
799 864
         }
800
-      })  
865
+      });
801 866
     },
802 867
     toPrint() {
803 868
       var id = this.$route.query.id;
804 869
       this.$router.push({ path: "/purchase/order/print?&id=" + id });
805 870
     },
806
-    updateGoodReturn(){
871
+    updateGoodReturn() {
807 872
       var warehouse_out_id = this.$route.query.id;
808
-      this.$refs["tableForm"].validate((valid)=>{
809
-        if(valid){
810
-          this.loading = true
811
-          for(let i=0;i<this.recordInfo.tableList.length;i++){
812
-            this.recordInfo.tableList[i].supply_count = parseInt(this.recordInfo.tableList[i].supply_count)
813
-            this.recordInfo.tableList[i].supply_price = this.recordInfo.tableList[i].supply_price.toString()
814
-            this.recordInfo.tableList[i].supply_total = this.recordInfo.tableList[i].supply_total.toString()
815
-       
816
-            for(let j=0;j<this.manufactuerList.length;j++){
817
-                if(this.recordInfo.tableList[i].supply_manufacturer == this.manufactuerList[j].manufacturer_name){
818
-                  this.recordInfo.tableList[i].manufacturer_id = this.manufactuerList[j].id
819
-                }
820
-                if(this.recordInfo.tableList[i].supply_manufacturer == this.manufactuerList[j].id){
821
-                  this.recordInfo.tableList[i].supply_manufacturer = this.manufactuerList[j].manufacturer_name
822
-                }
873
+      this.$refs["tableForm"].validate((valid) => {
874
+        if (valid) {
875
+          this.loading = true;
876
+          for (let i = 0; i < this.recordInfo.tableList.length; i++) {
877
+            this.recordInfo.tableList[i].supply_count = parseInt(
878
+              this.recordInfo.tableList[i].supply_count
879
+            );
880
+            this.recordInfo.tableList[i].supply_price =
881
+              this.recordInfo.tableList[i].supply_price.toString();
882
+            this.recordInfo.tableList[i].supply_total =
883
+              this.recordInfo.tableList[i].supply_total.toString();
823 884
 
885
+            for (let j = 0; j < this.manufactuerList.length; j++) {
886
+              if (
887
+                this.recordInfo.tableList[i].supply_manufacturer ==
888
+                this.manufactuerList[j].manufacturer_name
889
+              ) {
890
+                this.recordInfo.tableList[i].manufacturer_id =
891
+                  this.manufactuerList[j].id;
892
+              }
893
+              if (
894
+                this.recordInfo.tableList[i].supply_manufacturer ==
895
+                this.manufactuerList[j].id
896
+              ) {
897
+                this.recordInfo.tableList[i].supply_manufacturer =
898
+                  this.manufactuerList[j].manufacturer_name;
899
+              }
824 900
             }
825 901
           }
826 902
           var params = {
827
-            "stockIn":this.recordInfo.tableList,
828
-            "return_marke":this.return_remark,
829
-          }
830
-          console.log("start_time232233232",this.start_time)
831
-          console.log("arrage2323322323",this.arrearage)
832
-          updateGoodReturn(params,warehouse_out_id,this.start_time,this.rate_of_concession,this.discount_amount,this.arrearage,this.payment,this.supplier_name,this.number).then(response=>{
833
-            if(response.data.state == 1){
834
-               var msg = response.data.msg
835
-               this.loading = false
836
-               this.$message.success("保存成功!")
903
+            stockIn: this.recordInfo.tableList,
904
+            return_marke: this.return_remark,
905
+          };
906
+          console.log("start_time232233232", this.start_time);
907
+          console.log("arrage2323322323", this.arrearage);
908
+          updateGoodReturn(
909
+            params,
910
+            warehouse_out_id,
911
+            this.start_time,
912
+            this.rate_of_concession,
913
+            this.discount_amount,
914
+            this.arrearage,
915
+            this.payment,
916
+            this.supplier_name,
917
+            this.number
918
+          ).then((response) => {
919
+            if (response.data.state == 1) {
920
+              var msg = response.data.msg;
921
+              this.loading = false;
922
+              this.$message.success("保存成功!");
837 923
             }
838
-          })
924
+          });
839 925
         }
840
-      })
926
+      });
927
+    },
928
+    checkReturnOrder() {
929
+      var params = {
930
+        warehouse_out_id: this.warehouse_out_id,
931
+        id: this.id,
932
+      };
933
+      checkReturnOrder(params).then((response) => {});
841 934
     },
842
-    checkReturnOrder(){
843
-     var params = {
844
-       warehouse_out_id:this.warehouse_out_id,
845
-       id:this.id,
846
-     }
847
-     checkReturnOrder(params).then(response=>{
848
-       if(response.data.state == 1){
849
-        var msg = response.data.data.msg
850
-        this.$message.success("保存成功!")
851
-       }
852
-     })
853
-    }
854 935
   },
855 936
   created() {
856 937
     const tempObj = {};
@@ -870,11 +951,11 @@ export default {
870 951
     tempObj["is_total"] = 1;
871 952
     tempObj["project_id"] = 0;
872 953
     tempObj["supply_unit"] = "";
873
-    tempObj["supply_batch_number"] = ""
874
-    tempObj["supply_product_date"] = ""
875
-    tempObj["supply_expiry_date"] = ""
876
-    tempObj["warehousing_id"] =0
877
-    tempObj["warehouse_info_id"] =0
954
+    tempObj["supply_batch_number"] = "";
955
+    tempObj["supply_product_date"] = "";
956
+    tempObj["supply_expiry_date"] = "";
957
+    tempObj["warehousing_id"] = 0;
958
+    tempObj["warehouse_info_id"] = 0;
878 959
     this.recordInfo.tableList.push(tempObj);
879 960
     this.getInitOrder();
880 961
     //获取购货单列表

+ 2 - 2
src/xt_pages/supply/supplyQuery.vue View File

@@ -213,7 +213,7 @@ export default {
213 213
       };
214 214
       getexporthistory(params).then((res) => {
215 215
         if (res.data.state == 1) {
216
-          console.log(res.data.data.list, "res.data.data.list");
216
+          
217 217
           this.tableList = res.data.data.list;
218 218
           this.total = res.data.data.total;
219 219
         }
@@ -225,7 +225,7 @@ export default {
225 225
         if (res.data.state == 1) {
226 226
           this.sType = res.data.data.list;
227 227
         }
228
-        console.log(res, "oo");
228
+        
229 229
       });
230 230
     },
231 231