|  | @@ -1,6 +1,6 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <div class="borderless">
 | 
	
		
			
				|  |  | -    <div class="customer-head">
 | 
	
		
			
				|  |  | +    <div class="customer-head" style="display: flex;align-items: center">
 | 
	
		
			
				|  |  |        <div class="customer-back">
 | 
	
		
			
				|  |  |          <!--        <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
 | 
	
		
			
				|  |  |          <el-button
 | 
	
	
		
			
				|  | @@ -11,26 +11,37 @@
 | 
	
		
			
				|  |  |            >返回列表
 | 
	
		
			
				|  |  |          </el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  | -      <el-button
 | 
	
		
			
				|  |  | -        style="margin-right: 110px"
 | 
	
		
			
				|  |  | -        class="add-customer-btn"
 | 
	
		
			
				|  |  | -        type="primary"
 | 
	
		
			
				|  |  | -        :disabled="disabled"
 | 
	
		
			
				|  |  | -        size="small"
 | 
	
		
			
				|  |  | -        @click="editCustomer"
 | 
	
		
			
				|  |  | -        >{{ form.id ? "确认修改" : "确认新增" }}
 | 
	
		
			
				|  |  | -      </el-button>
 | 
	
		
			
				|  |  | -      <el-dropdown class="add-customer-btn">
 | 
	
		
			
				|  |  | -        <el-button type="primary" size="small">
 | 
	
		
			
				|  |  | -          审核处理<i class="el-icon-arrow-down el-icon--right"></i>
 | 
	
		
			
				|  |  | -        </el-button>
 | 
	
		
			
				|  |  | -        <el-dropdown-menu slot="dropdown">
 | 
	
		
			
				|  |  | -          <el-dropdown-item @click.native="pleaseCheck" :disabled="form.auditStatus != 2">请核数据</el-dropdown-item>
 | 
	
		
			
				|  |  | -          <el-dropdown-item @click.native="checkScheduleDialog = true,checkId=form.id" :disabled="form.auditStatus === 1 || form.auditStatus === 2">审核进度</el-dropdown-item>
 | 
	
		
			
				|  |  | -<!--          <el-dropdown-item>撤销请核</el-dropdown-item>-->
 | 
	
		
			
				|  |  | -<!--          <el-dropdown-item>审批数据</el-dropdown-item>-->
 | 
	
		
			
				|  |  | -        </el-dropdown-menu>
 | 
	
		
			
				|  |  | -      </el-dropdown>
 | 
	
		
			
				|  |  | +        <div style="position: fixed;right: 0">
 | 
	
		
			
				|  |  | +            <el-button
 | 
	
		
			
				|  |  | +                style="margin-right: 20px"
 | 
	
		
			
				|  |  | +                type="primary"
 | 
	
		
			
				|  |  | +                :disabled="disabled"
 | 
	
		
			
				|  |  | +                size="small"
 | 
	
		
			
				|  |  | +                @click="editCustomer"
 | 
	
		
			
				|  |  | +            >{{ form.id ? "确认修改" : "确认新增" }}
 | 
	
		
			
				|  |  | +            </el-button>
 | 
	
		
			
				|  |  | +            <el-dropdown style="margin-right: 20px">
 | 
	
		
			
				|  |  | +                <el-button type="primary" size="small">
 | 
	
		
			
				|  |  | +                    审核处理<i class="el-icon-arrow-down el-icon--right"></i>
 | 
	
		
			
				|  |  | +                </el-button>
 | 
	
		
			
				|  |  | +                <el-dropdown-menu slot="dropdown">
 | 
	
		
			
				|  |  | +                    <el-dropdown-item @click.native="pleaseCheck" :disabled="form.auditStatus != 2">请核数据</el-dropdown-item>
 | 
	
		
			
				|  |  | +                    <el-dropdown-item @click.native="checkScheduleDialog = true,checkId=form.id" :disabled="form.auditStatus === 1 || form.auditStatus === 2">审核进度</el-dropdown-item>
 | 
	
		
			
				|  |  | +                    <!--          <el-dropdown-item>撤销请核</el-dropdown-item>-->
 | 
	
		
			
				|  |  | +                    <!--          <el-dropdown-item>审批数据</el-dropdown-item>-->
 | 
	
		
			
				|  |  | +                </el-dropdown-menu>
 | 
	
		
			
				|  |  | +            </el-dropdown>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            <el-button
 | 
	
		
			
				|  |  | +                v-if="checkDisabled"
 | 
	
		
			
				|  |  | +                style="margin-right: 20px"
 | 
	
		
			
				|  |  | +                type="primary"
 | 
	
		
			
				|  |  | +                size="small"
 | 
	
		
			
				|  |  | +                @click="openCheckDialog"
 | 
	
		
			
				|  |  | +            >审批
 | 
	
		
			
				|  |  | +            </el-button>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |      <div style="margin-top: 60px">
 | 
	
		
			
				|  |  |        <el-form
 | 
	
	
		
			
				|  | @@ -337,6 +348,12 @@
 | 
	
		
			
				|  |  |            @choceScheduleFun="choceScheduleFun">
 | 
	
		
			
				|  |  |        </check-schedule>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      <el-dialog append-to-body title="审批" class="el-dialogDeep" :visible.sync="checkDialog" width="50%"
 | 
	
		
			
				|  |  | +                 :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
 | 
	
		
			
				|  |  | +          <check :checkData="checkData" :checkDetail="false" :idList="[]" @choceCheckFun="choceCheckFun">
 | 
	
		
			
				|  |  | +          </check>
 | 
	
		
			
				|  |  | +      </el-dialog>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -369,15 +386,22 @@ import { getToken } from "@/util/auth";
 | 
	
		
			
				|  |  |  import { getPurchasePrice } from "@/api/basicData/fees"
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import checkSchedule from "@/components/check/checkSchedule";
 | 
	
		
			
				|  |  | +import check from "@/components/check/check.vue";
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    props: {
 | 
	
		
			
				|  |  |      detailData: Object
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    components:{
 | 
	
		
			
				|  |  | +      check,
 | 
	
		
			
				|  |  |      checkSchedule,
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  | +        // 审批
 | 
	
		
			
				|  |  | +        checkData:{},
 | 
	
		
			
				|  |  | +        checkDialog:false,
 | 
	
		
			
				|  |  | +        checkDisabled:false,
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        cname: '',
 | 
	
		
			
				|  |  |        configuration: {
 | 
	
		
			
				|  |  |          multipleChoices: true,
 | 
	
	
		
			
				|  | @@ -596,10 +620,21 @@ export default {
 | 
	
		
			
				|  |  |        this.contactsData = [];
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      if (this.detailData.check) {
 | 
	
		
			
				|  |  | +        this.checkDisabled = true
 | 
	
		
			
				|  |  |        this.batchNo = this.detailData.check.batchNo
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +      //打开审核
 | 
	
		
			
				|  |  | +      openCheckDialog() {
 | 
	
		
			
				|  |  | +          this.checkData = this.detailData.check
 | 
	
		
			
				|  |  | +          this.checkDialog = true;
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      //关闭审核
 | 
	
		
			
				|  |  | +      choceCheckFun() {
 | 
	
		
			
				|  |  | +          this.checkDialog = false;
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      onSubmit(type) {
 | 
	
		
			
				|  |  |        if (!type) this.cname = ''
 | 
	
		
			
				|  |  |        let name = this.cname
 | 
	
	
		
			
				|  | @@ -944,14 +979,22 @@ export default {
 | 
	
		
			
				|  |  |          this.form.presentItemList = this.contactsDataBuyFree;
 | 
	
		
			
				|  |  |          this.openFullScreen(false, "正在努力的加载...");
 | 
	
		
			
				|  |  |          typeSave(this.form).then(res => {
 | 
	
		
			
				|  |  | -          const data = {
 | 
	
		
			
				|  |  | -            id : this.form.id,
 | 
	
		
			
				|  |  | -            checkType: 'xszc',
 | 
	
		
			
				|  |  | -            url: '/maintenance/salesPolicy/index',
 | 
	
		
			
				|  |  | -            pageStatus:"this.$store.getters.domSaleStatus",
 | 
	
		
			
				|  |  | -            pageLabel:"销售政策",
 | 
	
		
			
				|  |  | -            checkFlag: 2,
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  | +          // const data = {
 | 
	
		
			
				|  |  | +          //   id : this.form.id,
 | 
	
		
			
				|  |  | +          //   checkType: 'xszc',
 | 
	
		
			
				|  |  | +          //   url: '/maintenance/salesPolicy/index',
 | 
	
		
			
				|  |  | +          //   pageStatus:"this.$store.getters.domSaleStatus",
 | 
	
		
			
				|  |  | +          //   pageLabel:"销售政策",
 | 
	
		
			
				|  |  | +          //   checkFlag: 2,
 | 
	
		
			
				|  |  | +          // }
 | 
	
		
			
				|  |  | +            const data = {
 | 
	
		
			
				|  |  | +                id : this.form.id,
 | 
	
		
			
				|  |  | +                checkType: 'xszc',
 | 
	
		
			
				|  |  | +                url: '/maintenance/salesPolicy/index',
 | 
	
		
			
				|  |  | +                pageStatus:"this.$store.getters.xiaoShoZhengce",
 | 
	
		
			
				|  |  | +                pageLabel:"销售政策",
 | 
	
		
			
				|  |  | +                checkFlag: 2,
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |            pleaseCheck(data).then(res=>{
 | 
	
		
			
				|  |  |              this.$message({
 | 
	
		
			
				|  |  |                type: "success",
 |