Procházet zdrojové kódy

fix: indent报价记录转单.分页参数修复.

peter před 1 týdnem
rodič
revize
953bfc055c

+ 11 - 4
src/pages/indent-manage/indent/components/quoteRecord.vue

@@ -2,7 +2,7 @@
   <div class="dialog-change-order">
     <el-dialog
       v-model="show"
-      class="custom-apply-sku-dialog"
+      class="custom-change-order-dialog"
       title="报价记录"
       :close-on-click-modal="false"
       :close-on-press-escape="false"
@@ -225,11 +225,12 @@
         </el-table-column>
         <el-table-column
           label="序号"
-          width="80"
+          width="65"
           type="index"
         ></el-table-column>
         <el-table-column
-          width="180"
+          min-width="180"
+          max-width="300"
           label="Items"
           prop="items"
         ></el-table-column>
@@ -424,7 +425,7 @@ const total = ref(0)
 const taxList = ref(['GST AU 10%', 'GST NZ 15%', 'No GST 0%', 'VAT 20%'])
 const getCalcPriceRecordFunc = () => {
   loading.value = true
-  getCalcPriceRecord({ id: id })
+  getCalcPriceRecord({ id: id, limit: pageSize.value, page: currentPage.value })
     .then((res: any) => {
       if (res.code === 1)
         list.value =
@@ -457,6 +458,7 @@ const getCalcPriceRecordFunc = () => {
           Phone: '',
         })
       }
+      total.value = res.result.total || 0
     })
     .finally(() => (loading.value = false))
 }
@@ -609,3 +611,8 @@ const selectSku = (data: any) => {
   }
 }
 </style>
+<style lang="scss">
+.custom-change-order-dialog {
+  margin-top: 7vh;
+}
+</style>