|  | @@ -79,21 +79,20 @@
 | 
	
		
			
				|  |  |                  <el-select v-else-if="item.prop === 'orderType'"  style="width: 100%"  v-model="form[item.prop]" :disabled="item.disabled?true:false || takeDisabled" size="small" placeholder="请选择" clearable filterable>
 | 
	
		
			
				|  |  |                    <el-option v-for="(item,index) in contractTypeDic" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
 | 
	
		
			
				|  |  |                  </el-select>
 | 
	
		
			
				|  |  | -                <el-select v-else-if="item.prop === 'currency'" style="width: 100%"  :disabled="item.disabled?true:false || takeDisabled"  v-model="form[item.prop]" size="small" placeholder="请选择" @change="currencyChange" clearable filterable>
 | 
	
		
			
				|  |  | +                <el-select v-else-if="item.prop === 'currency'" style="width: 100%"  :disabled="item.disabled?true:false || takeDisabled"  v-model="form[item.prop]" size="small" placeholder="请选择" @change="currencyChange('true')" clearable filterable>
 | 
	
		
			
				|  |  |                    <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue"  :value="item.dictValue"></el-option>
 | 
	
		
			
				|  |  |                  </el-select>
 | 
	
		
			
				|  |  | -                <el-input type="age" v-else-if="item.type === 'unit'" v-model="form[item.prop]"  :disabled="item.disabled?true:false || takeDisabled" size="small" autocomplete="off"  @change="currencyChange" placeholder="请输入">
 | 
	
		
			
				|  |  | -                  <template   slot="append">%</template>
 | 
	
		
			
				|  |  | -                </el-input>
 | 
	
		
			
				|  |  |                  <el-select v-else-if="item.prop === 'paymentType'"  style="width: 100%"  v-model="form[item.prop]" size="small" placeholder="请选择" clearable filterable>
 | 
	
		
			
				|  |  |                    <el-option v-for="(item,index) in paymentTypeDic" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
 | 
	
		
			
				|  |  |                  </el-select>
 | 
	
		
			
				|  |  |                  <div v-else-if="item.prop === 'advancePayment'">
 | 
	
		
			
				|  |  |                    <el-input type="age" v-model="form[item.prop]" style="width: 70%" :disabled="item.disabled?true:false || takeDisabled"  size="small" autocomplete="off" placeholder="请输入"></el-input>
 | 
	
		
			
				|  |  | -                  <el-select v-model="form['prepayCurrency']" size="small" style="width: 30%"  :disabled="item.disabled?true:false || takeDisabled" value="USD"   placeholder="请选择" @change="advCurrencyChange" clearable filterable>
 | 
	
		
			
				|  |  | +                  <el-select v-model="form['prepayCurrency']" size="small" style="width: 30%"  :disabled="item.disabled?true:false || takeDisabled" value="USD"   placeholder="请选择" clearable filterable>
 | 
	
		
			
				|  |  |                      <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue"  :value="item.dictValue"></el-option>
 | 
	
		
			
				|  |  |                    </el-select>
 | 
	
		
			
				|  |  |                  </div>
 | 
	
		
			
				|  |  | +                <el-input type="age" v-else-if="item.prop === 'exchangeRate'" v-model="form[item.prop]"  :disabled="item.disabled?true:false || takeDisabled" size="small" autocomplete="off"  @change="currencyChange" placeholder="请输入">
 | 
	
		
			
				|  |  | +                </el-input>
 | 
	
		
			
				|  |  |                  <el-input type="textarea" v-else-if="(item.prop === 'orderRemark')" v-model="form[item.prop]"   size="small" autocomplete="off" placeholder="请输入"></el-input>
 | 
	
		
			
				|  |  |                  <el-input type="age" v-else v-model="form[item.prop]" :disabled="item.disabled?true:false || takeDisabled" size="small" autocomplete="off" placeholder="请输入"></el-input>
 | 
	
		
			
				|  |  |                </el-form-item>
 | 
	
	
		
			
				|  | @@ -219,8 +218,8 @@
 | 
	
		
			
				|  |  |                          size="small"
 | 
	
		
			
				|  |  |                          autocomplete="off"
 | 
	
		
			
				|  |  |                          placeholder="请输入">
 | 
	
		
			
				|  |  | -                <template slot="append"
 | 
	
		
			
				|  |  | -                >%</template>
 | 
	
		
			
				|  |  | +<!--                <template slot="append"
 | 
	
		
			
				|  |  | +                >%</template>-->
 | 
	
		
			
				|  |  |                </el-input>
 | 
	
		
			
				|  |  |                <span v-else>{{ row.taxRate }}</span>
 | 
	
		
			
				|  |  |              </template>
 | 
	
	
		
			
				|  | @@ -281,11 +280,11 @@
 | 
	
		
			
				|  |  |        :close-on-press-escape="false"
 | 
	
		
			
				|  |  |        v-dialog-drag
 | 
	
		
			
				|  |  |      >
 | 
	
		
			
				|  |  | -      <bill-application
 | 
	
		
			
				|  |  | +<!--      <bill-application
 | 
	
		
			
				|  |  |          :billType="billType"
 | 
	
		
			
				|  |  |          @choceApplication="choceApplication"
 | 
	
		
			
				|  |  |        >
 | 
	
		
			
				|  |  | -      </bill-application>
 | 
	
		
			
				|  |  | +      </bill-application>-->
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  |      <el-dialog
 | 
	
		
			
				|  |  |        append-to-body
 | 
	
	
		
			
				|  | @@ -318,7 +317,7 @@ import {detailListData, submitData} from "@/api/importTrade/purchase";
 | 
	
		
			
				|  |  |  import feeInfo from "@/components/fee-info/main";
 | 
	
		
			
				|  |  |  import uploadFile from "@/components/upload-file/main";
 | 
	
		
			
				|  |  |  import _ from "lodash";
 | 
	
		
			
				|  |  | -import  billApplication from "@/components/bill/billApplication";
 | 
	
		
			
				|  |  | +// import  billApplication from "@/components/bill/billApplication";
 | 
	
		
			
				|  |  |  //商品详情接口
 | 
	
		
			
				|  |  |  import { corpsattn } from "@/api/basicData/configuration"
 | 
	
		
			
				|  |  |  import { contrastObj,contrastList } from "@/util/contrastData";
 | 
	
	
		
			
				|  | @@ -333,8 +332,9 @@ export default {
 | 
	
		
			
				|  |  |    components: {
 | 
	
		
			
				|  |  |      ApplyPayment,
 | 
	
		
			
				|  |  |      feeInfo,
 | 
	
		
			
				|  |  | -    uploadFile,
 | 
	
		
			
				|  |  | -    billApplication
 | 
	
		
			
				|  |  | +    uploadFile
 | 
	
		
			
				|  |  | +/*    ,
 | 
	
		
			
				|  |  | +    billApplication*/
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
	
		
			
				|  | @@ -605,7 +605,6 @@ export default {
 | 
	
		
			
				|  |  |              prop: 'currency'
 | 
	
		
			
				|  |  |            }, {
 | 
	
		
			
				|  |  |              label: '汇率',
 | 
	
		
			
				|  |  | -            type:"unit",
 | 
	
		
			
				|  |  |              prop: 'exchangeRate',
 | 
	
		
			
				|  |  |            }, {
 | 
	
		
			
				|  |  |              label: '人民币金额',
 | 
	
	
		
			
				|  | @@ -780,23 +779,19 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //带出人民币
 | 
	
		
			
				|  |  | -    currencyChange(){
 | 
	
		
			
				|  |  | -      if(this.form.exchangeRate == 1 || this.form.exchangeRate == 6.368600 || this.form.exchangeRate == 7.174900){
 | 
	
		
			
				|  |  | +    currencyChange(type){
 | 
	
		
			
				|  |  | +      if(type === "true"){
 | 
	
		
			
				|  |  |          if(this.form.currency === "CNY"){  //如果为人民币
 | 
	
		
			
				|  |  |            this.$set(this.form,"exchangeRate",1)
 | 
	
		
			
				|  |  | -          this.$set(this.form,"rmbAmount",this.form.orderAmount)
 | 
	
		
			
				|  |  |          }else if(this.form.currency === "USD"){
 | 
	
		
			
				|  |  |            this.$set(this.form,"exchangeRate",6.3686)
 | 
	
		
			
				|  |  | -          this.$set(this.form,"rmbAmount",_.multiply(this.form.orderAmount, 6.3686).toFixed(2))
 | 
	
		
			
				|  |  |          }else{
 | 
	
		
			
				|  |  |            this.$set(this.form,"exchangeRate",7.1749)
 | 
	
		
			
				|  |  | -          this.$set(this.form,"rmbAmount",_.multiply(this.form.orderAmount, 7.1749).toFixed(2))
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -      }else{
 | 
	
		
			
				|  |  | -        if(this.form.orderAmount && this.form.exchangeRate){
 | 
	
		
			
				|  |  | -          this.$set(this.form,"rmbAmount",_.multiply(this.form.orderAmount, this.form.exchangeRate).toFixed(2))
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | +      if(this.form.orderAmount && this.form.orderAmount){
 | 
	
		
			
				|  |  | +        this.$set(this.form,"rmbAmount",_.multiply(this.form.orderAmount, this.form.exchangeRate).toFixed(2))
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      //合计
 | 
	
		
			
				|  |  |      totalChange(){
 | 
	
	
		
			
				|  | @@ -966,7 +961,7 @@ export default {
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      beforeBillData(bool,type){
 | 
	
		
			
				|  |  | -      this.billType = type === "申请"?"采购申请货款":"采购退款结算"
 | 
	
		
			
				|  |  | +      this.billType = type === "申请"?"采购申请货款":"采购退款"
 | 
	
		
			
				|  |  |        //采购明细提单号 list
 | 
	
		
			
				|  |  |        this.billData = {
 | 
	
		
			
				|  |  |          srcOrderno:this.form.orderNo,
 |