Kaynağa Gözat

采购订单

huangyw 3 yıl önce
ebeveyn
işleme
b68216f458

+ 14 - 1
src/xt_pages/supply/components/addPurchaseOrder.vue Dosyayı Görüntüle

@@ -449,6 +449,15 @@ export default {
449 449
       is_check: 2,
450 450
     };
451 451
   },
452
+
453
+ watch: {
454
+    total_price: function (newval, oldval) {
455
+      if (this.rate_of_concession != "") {
456
+        this.addressChange();
457
+      }
458
+    },
459
+  },
460
+
452 461
   methods: {
453 462
     getInitOrder() {
454 463
       getInitOrder().then((response) => {
@@ -874,6 +883,8 @@ export default {
874 883
         }
875 884
       });
876 885
     },
886
+
887
+
877 888
     getAllPrice() {
878 889
       var total_price = 0;
879 890
       for (let i = 0; i < this.recordInfo.tableList.length; i++) {
@@ -882,9 +893,11 @@ export default {
882 893
           this.recordInfo.tableList[i].supply_count;
883 894
       }
884 895
       this.total_price = total_price;
885
-      this.discount_amount = (this.total_price * this.rate_of_concession * 0.01).toFixed(2);
896
+      // this.discount_amount = (this.total_price * this.rate_of_concession * 0.01).toFixed(2);
886 897
       return total_price.toFixed(2);
887 898
     },
899
+
900
+    
888 901
     count_discount() {
889 902
       this.rate_of_concession = (
890 903
         this.discount_amount /

+ 2 - 5
src/xt_pages/supply/purchaseOrderQuery.vue Dosyayı Görüntüle

@@ -103,11 +103,9 @@
103 103
         </el-table-column>
104 104
         <el-table-column label="关联采购单号" align="center" width="150">
105 105
           <template slot-scope="scope">
106
-            <div style="width: 100%; height: 100%">
107
-              <tr class="color" v-for="(item,index) in scope.row.orderOut" :key="index">
108
-                 <td style="border-right:none;border-bottom: 1px solid #cfcdcd;">{{item.good_number}}</td>
106
+            <tr v-for="(item,index) in scope.row.orderOut" :key="index">
107
+                 <td>{{item.good_number}}</td>
109 108
               </tr>
110
-            </div>
111 109
           </template>
112 110
         </el-table-column>
113 111
         <el-table-column label="采购金额" align="center">
@@ -212,7 +210,6 @@ export default {
212 210
   data() {
213 211
     return {
214 212
       isActive: false,
215
-      aa: ["111111", "22222"],
216 213
       Color_txt: true,
217 214
       crumbs: [
218 215
         { path: false, name: "采购管理" },