瀏覽代碼

采购订单

huangyw 3 年之前
父節點
當前提交
b68216f458
共有 2 個文件被更改,包括 16 次插入6 次删除
  1. 14 1
      src/xt_pages/supply/components/addPurchaseOrder.vue
  2. 2 5
      src/xt_pages/supply/purchaseOrderQuery.vue

+ 14 - 1
src/xt_pages/supply/components/addPurchaseOrder.vue 查看文件

449
       is_check: 2,
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
   methods: {
461
   methods: {
453
     getInitOrder() {
462
     getInitOrder() {
454
       getInitOrder().then((response) => {
463
       getInitOrder().then((response) => {
874
         }
883
         }
875
       });
884
       });
876
     },
885
     },
886
+
887
+
877
     getAllPrice() {
888
     getAllPrice() {
878
       var total_price = 0;
889
       var total_price = 0;
879
       for (let i = 0; i < this.recordInfo.tableList.length; i++) {
890
       for (let i = 0; i < this.recordInfo.tableList.length; i++) {
882
           this.recordInfo.tableList[i].supply_count;
893
           this.recordInfo.tableList[i].supply_count;
883
       }
894
       }
884
       this.total_price = total_price;
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
       return total_price.toFixed(2);
897
       return total_price.toFixed(2);
887
     },
898
     },
899
+
900
+    
888
     count_discount() {
901
     count_discount() {
889
       this.rate_of_concession = (
902
       this.rate_of_concession = (
890
         this.discount_amount /
903
         this.discount_amount /

+ 2 - 5
src/xt_pages/supply/purchaseOrderQuery.vue 查看文件

103
         </el-table-column>
103
         </el-table-column>
104
         <el-table-column label="关联采购单号" align="center" width="150">
104
         <el-table-column label="关联采购单号" align="center" width="150">
105
           <template slot-scope="scope">
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
               </tr>
108
               </tr>
110
-            </div>
111
           </template>
109
           </template>
112
         </el-table-column>
110
         </el-table-column>
113
         <el-table-column label="采购金额" align="center">
111
         <el-table-column label="采购金额" align="center">
212
   data() {
210
   data() {
213
     return {
211
     return {
214
       isActive: false,
212
       isActive: false,
215
-      aa: ["111111", "22222"],
216
       Color_txt: true,
213
       Color_txt: true,
217
       crumbs: [
214
       crumbs: [
218
         { path: false, name: "采购管理" },
215
         { path: false, name: "采购管理" },