Bladeren bron

修改bug

Qukatie 1 jaar geleden
bovenliggende
commit
ae59704f70

+ 8 - 0
src/api/iosBasicData/rateManagement.js

@@ -66,3 +66,11 @@ export function bcurexrateDetails(data) {
     }
   })
 }
+//ETD查看汇率
+export function synchronizationExchangeRate(params) {
+  return request({
+    url: '/api/blade-los/bills/synchronizationExchangeRate',
+    method: 'get',
+    params
+  })
+}

+ 33 - 2
src/views/iosBasicData/OceanFreightImport/bills/assembly/EntrustmentLnformation.vue

@@ -334,7 +334,7 @@
                                             clearable type="date" size="small"
                                             :disabled="detailData.seeDisabled || generateBillsfalse"
                                             value-format="yyyy-MM-dd" :picker-options="etdPickerOptions"
-                                            placeholder="请选择ETA日期">
+                                            placeholder="请选择ETA日期" @change="handlePick">
                             </el-date-picker>
                         </el-form-item>
                         <el-form-item label="ETD" prop="etd" label-width="90px">
@@ -776,7 +776,7 @@ import {NdayDate} from "@/util/date";
 import {regularFloating, regularInteger} from "@/util/regularJudgment";
 import {getBcorpsattnList} from "@/api/iosBasicData/bcorpsattn";
 import {getWorkDicts} from "@/api/system/dictbiz";
-
+import { synchronizationExchangeRate } from "@/api/iosBasicData/rateManagement";
     export default {
         props:{
             detailData:{
@@ -865,6 +865,37 @@ import {getWorkDicts} from "@/api/system/dictbiz";
             this.dgPackingLevelWorkDicts()
         },
         methods:{
+                    //ETD监听
+        handlePick(val) {
+            if (this.assemblyForm.id) {
+                this.$confirm('此操作将更新汇率, 是否继续?', '提示', {
+                    confirmButtonText: '是',
+                    cancelButtonText: '否',
+                    type: 'warning'
+                }).then(() => {
+                    let obj = {}
+                    obj = {
+                        date: this.assemblyForm.eta,
+                        type: 1,
+                        billId: this.assemblyForm.id
+                    }
+                    console.log(obj)
+                    synchronizationExchangeRate(obj).then(res => {
+                        this.billsDetailfun()
+                    })
+                }).catch(() => {
+                    let obj = {}
+                    obj = {
+                        date: this.assemblyForm.etd,
+                        type: 0,
+                        billId: this.assemblyForm.id
+                    }
+                    synchronizationExchangeRate(obj).then(res => {
+                        this.billsDetailfun()
+                    })
+                });
+            }
+        },
             // 易燃易爆品闪点类型为数字
             dgFlashPointInput(val){
                 this.$set(this.assemblyForm,'dgFlashPoint',regularInteger(val))

File diff suppressed because it is too large
+ 361 - 426
src/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation.vue


Some files were not shown because too many files changed in this diff