|  | @@ -131,6 +131,16 @@
 | 
	
		
			
				|  |  |                </el-option>
 | 
	
		
			
				|  |  |              </el-select>
 | 
	
		
			
				|  |  |            </template>
 | 
	
		
			
				|  |  | +          <template slot="businesDate">
 | 
	
		
			
				|  |  | +            <el-date-picker
 | 
	
		
			
				|  |  | +              v-model="form.businesDate"
 | 
	
		
			
				|  |  | +              type="date"
 | 
	
		
			
				|  |  | +              format="yyyy-MM-dd"
 | 
	
		
			
				|  |  | +              value-format="yyyy-MM-dd 00:00:00"
 | 
	
		
			
				|  |  | +              @change="businesDateChange"
 | 
	
		
			
				|  |  | +            >
 | 
	
		
			
				|  |  | +            </el-date-picker>
 | 
	
		
			
				|  |  | +          </template>
 | 
	
		
			
				|  |  |            <template slot="currency">
 | 
	
		
			
				|  |  |              <el-select
 | 
	
		
			
				|  |  |                size="small"
 | 
	
	
		
			
				|  | @@ -138,12 +148,13 @@
 | 
	
		
			
				|  |  |                placeholder="请选择"
 | 
	
		
			
				|  |  |                @change="currencyChange"
 | 
	
		
			
				|  |  |                :disabled="detailData.status == 1"
 | 
	
		
			
				|  |  | +              clearable
 | 
	
		
			
				|  |  |              >
 | 
	
		
			
				|  |  |                <el-option
 | 
	
		
			
				|  |  |                  v-for="item in currencyList"
 | 
	
		
			
				|  |  |                  :key="item.id"
 | 
	
		
			
				|  |  | -                :label="item.dictValue"
 | 
	
		
			
				|  |  | -                :value="item.dictValue"
 | 
	
		
			
				|  |  | +                :label="item"
 | 
	
		
			
				|  |  | +                :value="item"
 | 
	
		
			
				|  |  |                >
 | 
	
		
			
				|  |  |                </el-option>
 | 
	
		
			
				|  |  |              </el-select>
 | 
	
	
		
			
				|  | @@ -592,7 +603,9 @@ import {
 | 
	
		
			
				|  |  |    getPorts,
 | 
	
		
			
				|  |  |    getSpecification,
 | 
	
		
			
				|  |  |    saveSell,
 | 
	
		
			
				|  |  | -  getPricedetail
 | 
	
		
			
				|  |  | +  getPricedetail,
 | 
	
		
			
				|  |  | +  getParities,
 | 
	
		
			
				|  |  | +  getCode
 | 
	
		
			
				|  |  |  } from "@/api/basicData/customerInquiry";
 | 
	
		
			
				|  |  |  import { getAllBoxs } from "@/api/basicData/portinformation";
 | 
	
		
			
				|  |  |  import { getCorpsattn } from "@/api/basicData/customerInformation";
 | 
	
	
		
			
				|  | @@ -771,9 +784,9 @@ export default {
 | 
	
		
			
				|  |  |              label: "报价日期",
 | 
	
		
			
				|  |  |              prop: "businesDate",
 | 
	
		
			
				|  |  |              span: 8,
 | 
	
		
			
				|  |  | -            type: "date",
 | 
	
		
			
				|  |  | -            format: "yyyy-MM-dd",
 | 
	
		
			
				|  |  | -            valueFormat: "yyyy-MM-dd 00:00:00",
 | 
	
		
			
				|  |  | +            // type: "date",
 | 
	
		
			
				|  |  | +            // format: "yyyy-MM-dd",
 | 
	
		
			
				|  |  | +            // valueFormat: "yyyy-MM-dd 00:00:00",
 | 
	
		
			
				|  |  |              rules: [
 | 
	
		
			
				|  |  |                {
 | 
	
		
			
				|  |  |                  required: true,
 | 
	
	
		
			
				|  | @@ -1008,18 +1021,12 @@ export default {
 | 
	
		
			
				|  |  |      this.getWorkDicts("payment_term").then(res => {
 | 
	
		
			
				|  |  |        this.paymentTermList = res.data.data;
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  | -    this.getWorkDicts("currency").then(res => {
 | 
	
		
			
				|  |  | +    getCode().then(res => {
 | 
	
		
			
				|  |  |        this.currencyList = res.data.data;
 | 
	
		
			
				|  |  | -      if (!this.detailData.id) {
 | 
	
		
			
				|  |  | -        this.currencyList.forEach(e => {
 | 
	
		
			
				|  |  | -          if (e.dictValue == "USD") {
 | 
	
		
			
				|  |  | -            this.form.exchangeRate = e.remark;
 | 
	
		
			
				|  |  | -            this.oldform.exchangeRate = e.remark;
 | 
	
		
			
				|  |  | -            this.oldExchange = e.remark;
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  | +    if (!this.detailData.id) {
 | 
	
		
			
				|  |  | +      this.getParities();
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |      getPorts().then(res => {
 | 
	
		
			
				|  |  |        this.findObject(this.option.column, "portOfLoad").dicData = res.data;
 | 
	
		
			
				|  |  |        this.findObject(this.option.column, "portOfDestination").dicData =
 | 
	
	
		
			
				|  | @@ -1062,6 +1069,22 @@ export default {
 | 
	
		
			
				|  |  |      copyDoc() {
 | 
	
		
			
				|  |  |        this.$emit("copyOrder", this.form.id);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    getParities() {
 | 
	
		
			
				|  |  | +      getParities({
 | 
	
		
			
				|  |  | +        currency: this.form.currency,
 | 
	
		
			
				|  |  | +        businesDate: this.form.businesDate
 | 
	
		
			
				|  |  | +      }).then(res => {
 | 
	
		
			
				|  |  | +        const data = res.data.data;
 | 
	
		
			
				|  |  | +        this.form.exchangeRate = data.receivableParities;
 | 
	
		
			
				|  |  | +        this.oldform.exchangeRate = data.receivableParities;
 | 
	
		
			
				|  |  | +        this.oldExchange =this.deepClone(data.receivableParities);
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    businesDateChange(){
 | 
	
		
			
				|  |  | +      if(this.form.currency&&this.form.businesDate){
 | 
	
		
			
				|  |  | +        this.getParities()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      getCorpData(row) {
 | 
	
		
			
				|  |  |        this.form.corpAttn = null;
 | 
	
		
			
				|  |  |        this.form.corpTel = null;
 | 
	
	
		
			
				|  | @@ -1356,12 +1379,10 @@ export default {
 | 
	
		
			
				|  |  |          this.form.exchangeRate
 | 
	
		
			
				|  |  |        );
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    currencyChange(row) {
 | 
	
		
			
				|  |  | -      this.currencyList.forEach(e => {
 | 
	
		
			
				|  |  | -        if (e.dictValue == row) {
 | 
	
		
			
				|  |  | -          this.form.exchangeRate = e.remark;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -      });
 | 
	
		
			
				|  |  | +    currencyChange() {
 | 
	
		
			
				|  |  | +      if(this.form.currency&&this.form.businesDate){
 | 
	
		
			
				|  |  | +        this.getParities()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        if (this.data.length > 0) {
 | 
	
		
			
				|  |  |          this.data.forEach(e => {
 | 
	
		
			
				|  |  |            e.freight = transformCal(
 | 
	
	
		
			
				|  | @@ -1391,7 +1412,6 @@ export default {
 | 
	
		
			
				|  |  |            e.exchangeRate = this.form.exchangeRate;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.oldExchange = this.deepClone(this.form.exchangeRate);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      exchangeRateChange(row) {
 | 
	
		
			
				|  |  |        if (this.data.length > 0) {
 | 
	
	
		
			
				|  | @@ -1415,6 +1435,7 @@ export default {
 | 
	
		
			
				|  |  |            e.exchangeRate = this.form.exchangeRate;
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        this.oldExchange = this.deepClone(row);
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      discountChange(row) {
 |