Переглянути джерело

change: 国际运费申请. 字段调整.

peter 4 місяців тому
батько
коміт
f819792f10

+ 2 - 2
src/pages/payment-record3/components/edit.vue

@@ -35,9 +35,9 @@
 
             <el-form-item
               label="CBM Or Chargable Weight"
-              prop="CBM_Or_Chargable_Weight"
+              prop="CBM_or_Chargable_Weight"
             >
-              <el-input v-model="form.CBM_Or_Chargable_Weight" />
+              <el-input v-model="form.CBM_or_Chargable_Weight" />
             </el-form-item>
           </div>
 

+ 2 - 2
src/pages/payment-record3/components/upload.vue

@@ -336,8 +336,8 @@ const next = (formEl: FormInstance | undefined) => {
             jsonData.forEach((i) => {
               tableData.value.push({
                 ...i,
-                CBM_Or_Chargable_Weight: savePrecision(
-                  mathjs.chain(i.CBM_Or_Chargable_Weight).done(),
+                CBM_or_Chargable_Weight: savePrecision(
+                  mathjs.chain(i.CBM_or_Chargable_Weight).done(),
                 ),
                 Reference: i.Reference || '',
                 Weight_Unit: form.value.weightUnit,

+ 6 - 6
src/pages/payment-record3/index.vue

@@ -166,7 +166,7 @@
             />
             <el-table-column
               label-class-name="red-font"
-              prop="CBM_Or_Chargable_Weight"
+              prop="CBM_or_Chargable_Weight"
               label="CBM Or Chargable Weight"
               align="center"
               width="220"
@@ -221,7 +221,7 @@
         <ElTableColumn prop="Total"></ElTableColumn>
         <ElTableColumn prop="Tracking_Number"></ElTableColumn>
         <ElTableColumn prop="Reference"></ElTableColumn>
-        <ElTableColumn prop="CBM_Or_Chargable_Weight"></ElTableColumn>
+        <ElTableColumn prop="CBM_or_Chargable_Weight"></ElTableColumn>
         <ElTableColumn prop="Description"></ElTableColumn>
       </el-table> -->
 
@@ -304,7 +304,7 @@ const onDelete = function () {
 const sheetData = [
   {
     Reference: '',
-    CBM_Or_Chargable_Weight: '',
+    CBM_or_Chargable_Weight: '',
     Tracking_Number: '',
   },
 ]
@@ -319,7 +319,7 @@ const downloadSample = function () {
 const tableData = ref([
   // {
   //   Reference: '',
-  //   CBM_Or_Chargable_Weight: '2',
+  //   CBM_or_Chargable_Weight: '2',
   //   Tracking_Number: '12345',
   //   Currency: 'AUD',
   //   statement_name: '华信强0319测试上传月结单',
@@ -349,7 +349,7 @@ const generateFinTable = function () {
     )
 
     const sum = temp.reduce((total, current) => {
-      total += Number(current.CBM_Or_Chargable_Weight)
+      total += Number(current.CBM_or_Chargable_Weight)
       return total
     }, 0)
 
@@ -359,7 +359,7 @@ const generateFinTable = function () {
         Total: savePrecision(
           mathjs
             .chain(i.Total)
-            .multiply(Number(j.CBM_Or_Chargable_Weight))
+            .multiply(Number(j.CBM_or_Chargable_Weight))
             .divide(sum)
             .done(),
           3,

+ 1 - 1
src/pages/payment-record3/inteface.ts

@@ -6,7 +6,7 @@ export interface IPoItem {
 
 export interface ITrackingNumberItem {
   Reference: string
-  CBM_Or_Chargable_Weight: number | string
+  CBM_or_Chargable_Weight: number | string
   Tracking_Number: string
   Currency: string
   Weight_Unit: string