|
@@ -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))
|