|  | @@ -21,11 +21,9 @@
 | 
	
		
			
				|  |  |            </el-button>
 | 
	
		
			
				|  |  |            <el-dropdown-menu slot="dropdown">
 | 
	
		
			
				|  |  |              <el-dropdown-item @click.native="pleaseCheck" :disabled="!(form.status === 0)">请核数据</el-dropdown-item>
 | 
	
		
			
				|  |  | -            <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id,times = 1">审核进度</el-dropdown-item>
 | 
	
		
			
				|  |  | -            <el-dropdown-item @click.native="repealCancel" :disabled="!(form.status === 1)"
 | 
	
		
			
				|  |  | -                              v-if="!detailData.id">撤销请核
 | 
	
		
			
				|  |  | -            </el-dropdown-item>
 | 
	
		
			
				|  |  | -            <!--            <el-dropdown-item @click.native="changeApproveOpen">特殊审批</el-dropdown-item>-->
 | 
	
		
			
				|  |  | +            <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id,times = 1" :disabled="form.status < 1">审核进度</el-dropdown-item>
 | 
	
		
			
				|  |  | +            <el-dropdown-item @click.native="repealCancel" :disabled="!(form.status === 1)" v-if="!detailData.id">撤销请核</el-dropdown-item>
 | 
	
		
			
				|  |  | +            <!--             <el-dropdown-item @click.native="changeApproveOpen">特殊审批</el-dropdown-item>-->
 | 
	
		
			
				|  |  |            </el-dropdown-menu>
 | 
	
		
			
				|  |  |          </el-dropdown>
 | 
	
		
			
				|  |  |          <el-dropdown style="margin-right: 10px">
 | 
	
	
		
			
				|  | @@ -34,15 +32,13 @@
 | 
	
		
			
				|  |  |            </el-button>
 | 
	
		
			
				|  |  |            <el-dropdown-menu slot="dropdown">
 | 
	
		
			
				|  |  |              <el-dropdown-item @click.native="pleaseCheck" :disabled="!(form.status === 4)">请核数据</el-dropdown-item>
 | 
	
		
			
				|  |  | -            <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id,times = 2">审核进度</el-dropdown-item>
 | 
	
		
			
				|  |  | -            <el-dropdown-item @click.native="repealCancel" :disabled="!(form.status === 5)"
 | 
	
		
			
				|  |  | -                              v-if="!detailData.id">撤销请核
 | 
	
		
			
				|  |  | +            <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id,times = 2" :disabled="form.status < 5">审核进度</el-dropdown-item>
 | 
	
		
			
				|  |  | +            <el-dropdown-item @click.native="repealCancel" :disabled="!(form.status === 5)" v-if="!detailData.id">撤销请核
 | 
	
		
			
				|  |  |              </el-dropdown-item>
 | 
	
		
			
				|  |  |              <!--            <el-dropdown-item @click.native="changeApproveOpen">特殊审批</el-dropdown-item>-->
 | 
	
		
			
				|  |  |            </el-dropdown-menu>
 | 
	
		
			
				|  |  |          </el-dropdown>
 | 
	
		
			
				|  |  | -        <el-button class="el-button--small-yh" type="primary" size="small" :disabled="form.status>0"
 | 
	
		
			
				|  |  | -                   @click="editCustomer">
 | 
	
		
			
				|  |  | +        <el-button class="el-button--small-yh" type="primary" size="small" :disabled="form.status>0" @click="editCustomer">
 | 
	
		
			
				|  |  |            保存数据
 | 
	
		
			
				|  |  |          </el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
	
		
			
				|  | @@ -52,7 +48,7 @@
 | 
	
		
			
				|  |  |          <!--        <template slot="purchaseCompanyId" slot-scope="scope">-->
 | 
	
		
			
				|  |  |          <!--          <crop-select v-model="form.purchaseCompanyId"-->
 | 
	
		
			
				|  |  |          <!--                       @getCorpData="(row)=>{getGSData(row,['form','purchaseCompanyName'])}" :disabled="scope.disabled"-->
 | 
	
		
			
				|  |  | -        <!--                       corpType="KH"/>-->
 | 
	
		
			
				|  |  | +        <!--         .              corpType="KH"/>-->
 | 
	
		
			
				|  |  |          <!--        </template>-->
 | 
	
		
			
				|  |  |          <template slot="domesticNo" slot-scope="scope">
 | 
	
		
			
				|  |  |            <crop-select v-model="form.domesticNo"
 | 
	
	
		
			
				|  | @@ -218,7 +214,7 @@ import {
 | 
	
		
			
				|  |  |    containerItem,
 | 
	
		
			
				|  |  |    documentsItem,
 | 
	
		
			
				|  |  |    pleaseCheck,
 | 
	
		
			
				|  |  | -  repealCancel
 | 
	
		
			
				|  |  | +  repealCancel, copyDetail
 | 
	
		
			
				|  |  |  } from "@/api/importTrade/importDeclaration.js";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import checkSchedule from "@/components/check/checkSchedule";
 | 
	
	
		
			
				|  | @@ -873,26 +869,10 @@ export default {
 | 
	
		
			
				|  |  |      selectByName("买箱费").then(res => {
 | 
	
		
			
				|  |  |        this.costData = res.data.data
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  | -    //下拉箱号带出对应信息
 | 
	
		
			
				|  |  | -    // this.findObject(this.option.column, "code").change = ({value, column}) => {
 | 
	
		
			
				|  |  | -    //   selectArchivesList({code: value}).then(res => {
 | 
	
		
			
				|  |  | -    //     for (let item of res.data.data) {
 | 
	
		
			
				|  |  | -    //       if (value == item.code) {
 | 
	
		
			
				|  |  | -    //         this.formTwo = {
 | 
	
		
			
				|  |  | -    //           boxSource: item.boxSource,
 | 
	
		
			
				|  |  | -    //           boxStatus: item.boxStatus,
 | 
	
		
			
				|  |  | -    //           emptyWeight: item.emptyWeight,
 | 
	
		
			
				|  |  | -    //           grossWeight: item.gorssWeight,
 | 
	
		
			
				|  |  | -    //           tare: item.tare,
 | 
	
		
			
				|  |  | -    //           loadingWeight: item.loadingWeight,
 | 
	
		
			
				|  |  | -    //           volume: item.volume,
 | 
	
		
			
				|  |  | -    //         }
 | 
	
		
			
				|  |  | -    //       }
 | 
	
		
			
				|  |  | -    //     }
 | 
	
		
			
				|  |  | -    //   })
 | 
	
		
			
				|  |  | -    // }
 | 
	
		
			
				|  |  |      this.key++
 | 
	
		
			
				|  |  | -    if (this.onLoad.id && this.detailData.id) {
 | 
	
		
			
				|  |  | +    if (this.onLoad.id.slice(0, 2) === '复制'){
 | 
	
		
			
				|  |  | +      this.copyData(this.onLoad.id.slice(2, this.onLoad.id.length), false)
 | 
	
		
			
				|  |  | +    } else if (this.onLoad.id && this.detailData.id) {
 | 
	
		
			
				|  |  |        this.refresh(this.onLoad.id, true)
 | 
	
		
			
				|  |  |      } else if (this.onLoad.id) {
 | 
	
		
			
				|  |  |        this.refresh(this.onLoad.id, true)
 | 
	
	
		
			
				|  | @@ -1180,6 +1160,94 @@ export default {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | +    copyData(id, type){
 | 
	
		
			
				|  |  | +      const loading = this.$loading({
 | 
	
		
			
				|  |  | +        lock: true,
 | 
	
		
			
				|  |  | +        text: '加载中',
 | 
	
		
			
				|  |  | +        spinner: 'el-icon-loading',
 | 
	
		
			
				|  |  | +        background: 'rgba(255,255,255,0.7)'
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +      copyDetail({id: id}).then(res => {
 | 
	
		
			
				|  |  | +        this.form = res.data.data
 | 
	
		
			
				|  |  | +        this.dataList = res.data.data.itemList
 | 
	
		
			
				|  |  | +        this.dataListTwo = res.data.data.feesList
 | 
	
		
			
				|  |  | +        this.tradingBoxFilesList = res.data.data.fileList
 | 
	
		
			
				|  |  | +        this.containerList = res.data.data.containerList
 | 
	
		
			
				|  |  | +        this.documentsList = res.data.data.documentsList
 | 
	
		
			
				|  |  | +        delete this.form.containerList
 | 
	
		
			
				|  |  | +        delete this.form.documentsList
 | 
	
		
			
				|  |  | +        delete this.form.itemList
 | 
	
		
			
				|  |  | +        delete this.form.feesList
 | 
	
		
			
				|  |  | +        delete this.form.fileList
 | 
	
		
			
				|  |  | +        loading.close();
 | 
	
		
			
				|  |  | +        if (type) {
 | 
	
		
			
				|  |  | +          //基础资料
 | 
	
		
			
				|  |  | +          this.$set(this.optionForm, "disabled", true)
 | 
	
		
			
				|  |  | +          //箱信息
 | 
	
		
			
				|  |  | +          this.$set(this.option, "disabled", true)
 | 
	
		
			
				|  |  | +          this.$set(this.option, "addBtn", false)
 | 
	
		
			
				|  |  | +          this.$set(this.option, "menu", false)
 | 
	
		
			
				|  |  | +          //集装箱
 | 
	
		
			
				|  |  | +          this.$set(this.optionTwo, "disabled", true)
 | 
	
		
			
				|  |  | +          this.$set(this.optionTwo, "addBtn", false)
 | 
	
		
			
				|  |  | +          this.$set(this.optionTwo, "menu", false)
 | 
	
		
			
				|  |  | +          //单证
 | 
	
		
			
				|  |  | +          this.$set(this.optionThree, "disabled", true)
 | 
	
		
			
				|  |  | +          this.$set(this.optionThree, "addBtn", false)
 | 
	
		
			
				|  |  | +          this.$set(this.optionThree, "menu", false)
 | 
	
		
			
				|  |  | +          //费用信息
 | 
	
		
			
				|  |  | +          this.$set(this.$refs.boxCost.option, "disabled", true)
 | 
	
		
			
				|  |  | +          this.$set(this.$refs.boxCost.option, "addBtn", false)
 | 
	
		
			
				|  |  | +          this.$set(this.$refs.boxCost.option, "menu", false)
 | 
	
		
			
				|  |  | +          //附件和顶部按钮
 | 
	
		
			
				|  |  | +          this.disabled = true
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +          if (this.form.status > 0) {
 | 
	
		
			
				|  |  | +            //基础资料
 | 
	
		
			
				|  |  | +            this.$set(this.optionForm, "disabled", true)
 | 
	
		
			
				|  |  | +            //箱信息
 | 
	
		
			
				|  |  | +            this.$set(this.option, "disabled", true)
 | 
	
		
			
				|  |  | +            this.$set(this.option, "addBtn", false)
 | 
	
		
			
				|  |  | +            this.$set(this.option, "menu", false)
 | 
	
		
			
				|  |  | +            //集装箱
 | 
	
		
			
				|  |  | +            this.$set(this.optionTwo, "disabled", true)
 | 
	
		
			
				|  |  | +            this.$set(this.optionTwo, "addBtn", false)
 | 
	
		
			
				|  |  | +            this.$set(this.optionTwo, "menu", false)
 | 
	
		
			
				|  |  | +            //单证
 | 
	
		
			
				|  |  | +            this.$set(this.optionThree, "disabled", true)
 | 
	
		
			
				|  |  | +            this.$set(this.optionThree, "addBtn", false)
 | 
	
		
			
				|  |  | +            this.$set(this.optionThree, "menu", false)
 | 
	
		
			
				|  |  | +            //费用信息
 | 
	
		
			
				|  |  | +            this.$set(this.$refs.boxCost.option, "disabled", true)
 | 
	
		
			
				|  |  | +            this.$set(this.$refs.boxCost.option, "addBtn", false)
 | 
	
		
			
				|  |  | +            this.$set(this.$refs.boxCost.option, "menu", false)
 | 
	
		
			
				|  |  | +            //附件和顶部按钮
 | 
	
		
			
				|  |  | +            this.disabled = true
 | 
	
		
			
				|  |  | +          } else {
 | 
	
		
			
				|  |  | +            //基础资料
 | 
	
		
			
				|  |  | +            this.$set(this.optionForm, "disabled", false)
 | 
	
		
			
				|  |  | +            //箱信息
 | 
	
		
			
				|  |  | +            this.$set(this.option, "disabled", false)
 | 
	
		
			
				|  |  | +            this.$set(this.option, "addBtn", true)
 | 
	
		
			
				|  |  | +            this.$set(this.option, "menu", true)
 | 
	
		
			
				|  |  | +            //集装箱
 | 
	
		
			
				|  |  | +            this.$set(this.optionTwo, "disabled", false)
 | 
	
		
			
				|  |  | +            this.$set(this.optionTwo, "addBtn", true)
 | 
	
		
			
				|  |  | +            this.$set(this.optionTwo, "menu", true)
 | 
	
		
			
				|  |  | +            //单证
 | 
	
		
			
				|  |  | +            this.$set(this.optionThree, "disabled", false)
 | 
	
		
			
				|  |  | +            this.$set(this.optionThree, "addBtn", true)
 | 
	
		
			
				|  |  | +            this.$set(this.optionThree, "menu", true)
 | 
	
		
			
				|  |  | +            //费用信息
 | 
	
		
			
				|  |  | +            this.$set(this.$refs.boxCost.option, "disabled", false)
 | 
	
		
			
				|  |  | +            this.$set(this.$refs.boxCost.option, "addBtn", true)
 | 
	
		
			
				|  |  | +            this.$set(this.$refs.boxCost.option, "menu", true)
 | 
	
		
			
				|  |  | +            //附件和顶部按钮
 | 
	
		
			
				|  |  | +            this.disabled = false
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      //新增修改
 | 
	
		
			
				|  |  |      editCustomer() {
 | 
	
		
			
				|  |  |        this.$refs["form"].validate((valid, done) => {
 |