|  | @@ -0,0 +1,1227 @@
 | 
	
		
			
				|  |  | +<template>
 | 
	
		
			
				|  |  | +  <basic-container>
 | 
	
		
			
				|  |  | +    <avue-crud :option="option"
 | 
	
		
			
				|  |  | +               :table-loading="loading"
 | 
	
		
			
				|  |  | +               :data="data"
 | 
	
		
			
				|  |  | +               :page.sync="page"
 | 
	
		
			
				|  |  | +               :permission="permissionList"
 | 
	
		
			
				|  |  | +               :before-open="beforeOpen"
 | 
	
		
			
				|  |  | +               v-model="form"
 | 
	
		
			
				|  |  | +               ref="crud"
 | 
	
		
			
				|  |  | +               id="out-table"
 | 
	
		
			
				|  |  | +               :header-cell-class-name="headerClassName"
 | 
	
		
			
				|  |  | +               @row-update="rowUpdate"
 | 
	
		
			
				|  |  | +               @row-save="rowSave"
 | 
	
		
			
				|  |  | +               @row-del="rowDel"
 | 
	
		
			
				|  |  | +               @search-change="searchChange"
 | 
	
		
			
				|  |  | +               @search-reset="searchReset"
 | 
	
		
			
				|  |  | +               @selection-change="selectionChange"
 | 
	
		
			
				|  |  | +               @current-change="currentChange"
 | 
	
		
			
				|  |  | +               @size-change="sizeChange"
 | 
	
		
			
				|  |  | +               @refresh-change="refreshChange"
 | 
	
		
			
				|  |  | +               @resetColumn="resetColumnTwo('crud', 'option', 'optionBack', 313)"
 | 
	
		
			
				|  |  | +               @saveColumn="saveColumnTwo('crud', 'option', 'optionBack', 313)"
 | 
	
		
			
				|  |  | +               @on-load="onLoad">
 | 
	
		
			
				|  |  | +      <template slot="menuLeft">
 | 
	
		
			
				|  |  | +        <el-button type="danger"
 | 
	
		
			
				|  |  | +                   size="small"
 | 
	
		
			
				|  |  | +                   icon="el-icon-delete"
 | 
	
		
			
				|  |  | +                   plain
 | 
	
		
			
				|  |  | +                   v-if="permission.finaccbills_delete"
 | 
	
		
			
				|  |  | +                   @click="handleDelete">删 除
 | 
	
		
			
				|  |  | +        </el-button>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +      <template slot="billKey" slot-scope="scope">
 | 
	
		
			
				|  |  | +        <avue-text-ellipsis :text="scope.row.billKey" :height="30" use-tooltip placement="top">
 | 
	
		
			
				|  |  | +          <small slot="more">...</small>
 | 
	
		
			
				|  |  | +        </avue-text-ellipsis>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +      <template slot="mblno" slot-scope="scope">
 | 
	
		
			
				|  |  | +        <avue-text-ellipsis :text="scope.row.mblno" :height="30" use-tooltip placement="top">
 | 
	
		
			
				|  |  | +          <small slot="more">...</small>
 | 
	
		
			
				|  |  | +        </avue-text-ellipsis>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +      <template slot="hblno" slot-scope="scope">
 | 
	
		
			
				|  |  | +        <avue-text-ellipsis :text="scope.row.hblno" :height="30" use-tooltip placement="top">
 | 
	
		
			
				|  |  | +          <small slot="more">...</small>
 | 
	
		
			
				|  |  | +        </avue-text-ellipsis>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +      <template slot="voucherBillNo" slot-scope="scope">
 | 
	
		
			
				|  |  | +        <avue-text-ellipsis :text="scope.row.voucherBillNo" :height="30" use-tooltip placement="top">
 | 
	
		
			
				|  |  | +          <small slot="more">...</small>
 | 
	
		
			
				|  |  | +        </avue-text-ellipsis>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +      <template slot="voucherNo" slot-scope="scope">
 | 
	
		
			
				|  |  | +        <avue-text-ellipsis :text="scope.row.voucherNo" :height="30" use-tooltip placement="top">
 | 
	
		
			
				|  |  | +          <small slot="more">...</small>
 | 
	
		
			
				|  |  | +        </avue-text-ellipsis>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +      <template slot="corpEnName" slot-scope="scope">
 | 
	
		
			
				|  |  | +        <avue-text-ellipsis :text="scope.row.corpEnName" :height="30" use-tooltip placement="top">
 | 
	
		
			
				|  |  | +          <small slot="more">...</small>
 | 
	
		
			
				|  |  | +        </avue-text-ellipsis>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +      <template slot="remarks" slot-scope="scope">
 | 
	
		
			
				|  |  | +        <avue-text-ellipsis :text="scope.row.remarks" :height="30" use-tooltip placement="top">
 | 
	
		
			
				|  |  | +          <small slot="more">...</small>
 | 
	
		
			
				|  |  | +        </avue-text-ellipsis>
 | 
	
		
			
				|  |  | +      </template>
 | 
	
		
			
				|  |  | +    </avue-crud>
 | 
	
		
			
				|  |  | +  </basic-container>
 | 
	
		
			
				|  |  | +</template>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +<script>
 | 
	
		
			
				|  |  | +  import {getList, getDetail, add, update, remove} from "@/api/iosBasicData/finaccbills";
 | 
	
		
			
				|  |  | +  import {mapGetters} from "vuex";
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  export default {
 | 
	
		
			
				|  |  | +    data() {
 | 
	
		
			
				|  |  | +      return {
 | 
	
		
			
				|  |  | +        form: {},
 | 
	
		
			
				|  |  | +        query: {},
 | 
	
		
			
				|  |  | +        loading: true,
 | 
	
		
			
				|  |  | +        page: {
 | 
	
		
			
				|  |  | +          pageSize: 10,
 | 
	
		
			
				|  |  | +          currentPage: 1,
 | 
	
		
			
				|  |  | +          total: 0
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        selectionList: [],
 | 
	
		
			
				|  |  | +        option: {},
 | 
	
		
			
				|  |  | +        optionBack: {
 | 
	
		
			
				|  |  | +          height:'auto',
 | 
	
		
			
				|  |  | +          calcHeight: 30,
 | 
	
		
			
				|  |  | +          tip: false,
 | 
	
		
			
				|  |  | +          searchShow: true,
 | 
	
		
			
				|  |  | +          searchMenuSpan: 6,
 | 
	
		
			
				|  |  | +          border: true,
 | 
	
		
			
				|  |  | +          index: true,
 | 
	
		
			
				|  |  | +          viewBtn: true,
 | 
	
		
			
				|  |  | +          selection: true,
 | 
	
		
			
				|  |  | +          dialogClickModal: false,
 | 
	
		
			
				|  |  | +          column: [
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "主键",
 | 
	
		
			
				|  |  | +            //   prop: "id",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入主键",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "分公司 Id",
 | 
	
		
			
				|  |  | +            //   prop: "branchId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入分公司 Id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "创建人 Id",
 | 
	
		
			
				|  |  | +            //   prop: "createUser",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入创建人 Id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "创建人",
 | 
	
		
			
				|  |  | +            //   prop: "createUserName",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入创建人",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "创建部门 Id",
 | 
	
		
			
				|  |  | +            //   prop: "createDept",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入创建部门 Id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "创建部门",
 | 
	
		
			
				|  |  | +            //   prop: "createDeptName",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入创建部门",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "创建时间",
 | 
	
		
			
				|  |  | +            //   prop: "createTime",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入创建时间",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "修改人 Id",
 | 
	
		
			
				|  |  | +            //   prop: "updateUser",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入修改人 Id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "修改人",
 | 
	
		
			
				|  |  | +            //   prop: "updateUserName",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入修改人",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "修改时间",
 | 
	
		
			
				|  |  | +            //   prop: "updateTime",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入修改时间",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "账单编号",
 | 
	
		
			
				|  |  | +              prop: "billNo",
 | 
	
		
			
				|  |  | +              search: true,
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入账单编号",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "账单日期",
 | 
	
		
			
				|  |  | +              prop: "billDate",
 | 
	
		
			
				|  |  | +              type: "date",
 | 
	
		
			
				|  |  | +              width:"100",
 | 
	
		
			
				|  |  | +              valueFormat:'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              format: 'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入账单日期",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "账单类型",
 | 
	
		
			
				|  |  | +              prop: "accountType",
 | 
	
		
			
				|  |  | +              type: 'select',
 | 
	
		
			
				|  |  | +              dicData:[{
 | 
	
		
			
				|  |  | +                label:'应收',
 | 
	
		
			
				|  |  | +                value:'LOCAL'
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'应付',
 | 
	
		
			
				|  |  | +                value:'LOCAL'
 | 
	
		
			
				|  |  | +              }],
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入账单类型,LOCAL 应收,LOCAL 应付,舱单 应收,舱单 应付",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "账单属性",
 | 
	
		
			
				|  |  | +              prop: "accountDc",
 | 
	
		
			
				|  |  | +              type: 'select',
 | 
	
		
			
				|  |  | +              dicData:[{
 | 
	
		
			
				|  |  | +                label:'应收',
 | 
	
		
			
				|  |  | +                value:'D'
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'应付',
 | 
	
		
			
				|  |  | +                value:'C'
 | 
	
		
			
				|  |  | +              }],
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入账单属性",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "财务日期",
 | 
	
		
			
				|  |  | +              prop: "accountDate",
 | 
	
		
			
				|  |  | +              type: "date",
 | 
	
		
			
				|  |  | +              width:"100",
 | 
	
		
			
				|  |  | +              valueFormat:'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              format: 'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入财务日期",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "账单关键字",
 | 
	
		
			
				|  |  | +              prop: "billKey",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入账单关键字 业务表的id+结算单位+收付  +核算要素作为关键字",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "业务类型",
 | 
	
		
			
				|  |  | +              prop: "businessType",
 | 
	
		
			
				|  |  | +              type: 'select',
 | 
	
		
			
				|  |  | +              dicData:[{
 | 
	
		
			
				|  |  | +                label:'海运出口',
 | 
	
		
			
				|  |  | +                value:'SE'
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'海运进口',
 | 
	
		
			
				|  |  | +                value:'SI'
 | 
	
		
			
				|  |  | +              }],
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入业务类型",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "业务 id(主单,直单)",
 | 
	
		
			
				|  |  | +            //   prop: "businessBillId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入业务 id(主单,直单)",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "业务单据编号(主单,直单)",
 | 
	
		
			
				|  |  | +              prop: "businessBillNo",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入业务单据编号(主单,直单)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "业务单据日期(主单,直单)",
 | 
	
		
			
				|  |  | +              prop: "businessDate",
 | 
	
		
			
				|  |  | +              type: "date",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              valueFormat:'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              format: 'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入业务单据日期(主单,直单)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "业务 id(分单)",
 | 
	
		
			
				|  |  | +            //   prop: "businessBillDivideId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入业务 id(分单)",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "业务单据编号(分单)",
 | 
	
		
			
				|  |  | +              prop: "businessBillDivideNo",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入业务单据编号(分单)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "业务单据日期(分单)",
 | 
	
		
			
				|  |  | +              prop: "businessDivideDate",
 | 
	
		
			
				|  |  | +              type: "date",
 | 
	
		
			
				|  |  | +              width:"140",
 | 
	
		
			
				|  |  | +              valueFormat:'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              format: 'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入业务单据日期(分单)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "合同号",
 | 
	
		
			
				|  |  | +              prop: "contractNo",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入合同号",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "付款方式",
 | 
	
		
			
				|  |  | +              prop: "paymode",
 | 
	
		
			
				|  |  | +              type: 'select',
 | 
	
		
			
				|  |  | +              dicData:[{
 | 
	
		
			
				|  |  | +                label:'预付',
 | 
	
		
			
				|  |  | +                value:'PP'
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'到付',
 | 
	
		
			
				|  |  | +                value:'CC'
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'FPA',
 | 
	
		
			
				|  |  | +                value:'FPA'
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'Other',
 | 
	
		
			
				|  |  | +                value:'Other'
 | 
	
		
			
				|  |  | +              }],
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入付款方式 PP=预付, CC=到付, FPA, Other",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "核算要素 id",
 | 
	
		
			
				|  |  | +            //   prop: "accelementid",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入核算要素 id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "核算要素名称",
 | 
	
		
			
				|  |  | +              prop: "accelementname",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入核算要素名称",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "客户 id",
 | 
	
		
			
				|  |  | +            //   prop: "corpId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入客户 id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "客户中文名称",
 | 
	
		
			
				|  |  | +              prop: "corpCnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入客户中文名称",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "客户英文名称",
 | 
	
		
			
				|  |  | +              prop: "corpEnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入客户英文名称",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "客户是否签约",
 | 
	
		
			
				|  |  | +              prop: "corpIsSigned",
 | 
	
		
			
				|  |  | +              width:"100",
 | 
	
		
			
				|  |  | +              type: 'select',
 | 
	
		
			
				|  |  | +              dicData:[{
 | 
	
		
			
				|  |  | +                label:'否',
 | 
	
		
			
				|  |  | +                value:0
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'是',
 | 
	
		
			
				|  |  | +                value:1
 | 
	
		
			
				|  |  | +              }],
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入客户是否已签约",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "客户约号",
 | 
	
		
			
				|  |  | +              prop: "corpArgreementNo",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入客户约号",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "主表客户 id",
 | 
	
		
			
				|  |  | +            //   prop: "billCorpId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入主表客户 id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "主表客户中文名称",
 | 
	
		
			
				|  |  | +              prop: "billCorpCnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入主表客户中文名称",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "主表客户英文名称",
 | 
	
		
			
				|  |  | +              prop: "billCorpEnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入主表客户英文名称",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "业务所在部门 Id",
 | 
	
		
			
				|  |  | +            //   prop: "deptId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入业务所在部门 Id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "业务所在部门",
 | 
	
		
			
				|  |  | +              prop: "deptName",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入业务所在部门",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "船名 id",
 | 
	
		
			
				|  |  | +            //   prop: "vesselId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入船名 id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "中文船名",
 | 
	
		
			
				|  |  | +              prop: "vesselCnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入中文船名",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "英文船名",
 | 
	
		
			
				|  |  | +              prop: "vesselEnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入英文船名",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "航次",
 | 
	
		
			
				|  |  | +              prop: "voyageNo",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入航次",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "MB/L NO",
 | 
	
		
			
				|  |  | +              prop: "mblno",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入MB/L NO",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "HB/L NO",
 | 
	
		
			
				|  |  | +              prop: "hblno",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入HB/L NO",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "Reference NO",
 | 
	
		
			
				|  |  | +              prop: "refno",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入Reference NO",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "开船日期",
 | 
	
		
			
				|  |  | +              prop: "etd",
 | 
	
		
			
				|  |  | +              type: "date",
 | 
	
		
			
				|  |  | +              width:"100",
 | 
	
		
			
				|  |  | +              valueFormat:'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              format: 'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入开船日期",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "到港日期",
 | 
	
		
			
				|  |  | +              prop: "eta",
 | 
	
		
			
				|  |  | +              type: "date",
 | 
	
		
			
				|  |  | +              width:"100",
 | 
	
		
			
				|  |  | +              valueFormat:'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              format: 'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入到港日期",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "装货港 id",
 | 
	
		
			
				|  |  | +            //   prop: "polId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入装货港 id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "装货港代码",
 | 
	
		
			
				|  |  | +              prop: "polCode",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入装货港代码",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "装货港英文名称",
 | 
	
		
			
				|  |  | +              prop: "polCnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入装货港英文名称",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "装货港英文名称",
 | 
	
		
			
				|  |  | +              prop: "polEnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入装货港英文名称",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "装货港英文名称打印",
 | 
	
		
			
				|  |  | +              prop: "polNamePrint",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入装货港英文名称打印 默认等于pol_en_name 可以编辑",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "卸货港 id",
 | 
	
		
			
				|  |  | +            //   prop: "podId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入卸货港 id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "卸货港代码",
 | 
	
		
			
				|  |  | +              prop: "podCode",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入卸货港代码",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "卸货港中文名称",
 | 
	
		
			
				|  |  | +              prop: "podCnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入卸货港中文名称",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "卸货港英文名称",
 | 
	
		
			
				|  |  | +              prop: "podEnName",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入卸货港英文名称",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "卸货港英文名称打印",
 | 
	
		
			
				|  |  | +              prop: "podNamePrint",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入卸货港英文名称打印 默认等于pol_en_name 可以编辑",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "CNY应收",
 | 
	
		
			
				|  |  | +              prop: "amountDr",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入本位币应收(CNY)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "CNY应付",
 | 
	
		
			
				|  |  | +              prop: "amountCr",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入本位币应付(CNY)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "综合USD应收",
 | 
	
		
			
				|  |  | +              prop: "amountDrUsd",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入综合 USD 应收(USD) - 非 USD 外币转换为 USD",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "综合USD应付",
 | 
	
		
			
				|  |  | +              prop: "amountCrUsd",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入综合 USD 应付(USD) - 非 USD 外币转换为 USD",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "合计CNY应收",
 | 
	
		
			
				|  |  | +              prop: "amountDrLoc",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入合计本位币应收(CNY )",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "合计CNY应付(",
 | 
	
		
			
				|  |  | +              prop: "amountCrLoc",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入合计本位币应付(CNY)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "结算 Id",
 | 
	
		
			
				|  |  | +            //   prop: "stlBillId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入结算 Id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "结算单据编号",
 | 
	
		
			
				|  |  | +              prop: "stlBillNo",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入结算单据编号",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "结算日期",
 | 
	
		
			
				|  |  | +              prop: "stlDate",
 | 
	
		
			
				|  |  | +              type: "date",
 | 
	
		
			
				|  |  | +              width:"100",
 | 
	
		
			
				|  |  | +              valueFormat:'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              format: 'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入结算日期",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "已结算CNY应收",
 | 
	
		
			
				|  |  | +              prop: "stlAmountDr",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入已结算本位币应收(CNY)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "已结算CNY应付",
 | 
	
		
			
				|  |  | +              prop: "stlAmountCr",
 | 
	
		
			
				|  |  | +              width:"120",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入已结算本位币应付(CNY)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "已结算综合USD应收",
 | 
	
		
			
				|  |  | +              prop: "stlAmountDrUsd",
 | 
	
		
			
				|  |  | +              width:"140",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入已结算综合 USD 应收(USD) - 非 USD 外币转换为 USD",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "已结算综合USD应付",
 | 
	
		
			
				|  |  | +              prop: "stlAmountCrUsd",
 | 
	
		
			
				|  |  | +              width:"140",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入已结算综合 USD 应付(USD) - 非 USD 外币转换为 USD",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "已结算合计CNY应收",
 | 
	
		
			
				|  |  | +              prop: "stlAmountDrLoc",
 | 
	
		
			
				|  |  | +              width:"140",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入已结算合计本位币应收(CNY )",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "已结算合计CNY应付",
 | 
	
		
			
				|  |  | +              prop: "stlAmountCrLoc",
 | 
	
		
			
				|  |  | +              width:"140",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入已结算合计本位币应付(CNY)",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "发票 Id",
 | 
	
		
			
				|  |  | +            //   prop: "invoiceBillId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入发票 Id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "发票单据编号",
 | 
	
		
			
				|  |  | +              prop: "invoiceBillNo",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入发票单据编号",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "发票号",
 | 
	
		
			
				|  |  | +              prop: "invoiceNo",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入发票号",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "发票日期",
 | 
	
		
			
				|  |  | +              prop: "invoiceDate",
 | 
	
		
			
				|  |  | +              type: "date",
 | 
	
		
			
				|  |  | +              width:"100",
 | 
	
		
			
				|  |  | +              valueFormat:'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              format: 'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入发票日期",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "凭证 Id",
 | 
	
		
			
				|  |  | +            //   prop: "voucherBillId",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入凭证 Id",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "凭证单据编号",
 | 
	
		
			
				|  |  | +              prop: "voucherBillNo",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入凭证单据编号",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "凭证号",
 | 
	
		
			
				|  |  | +              prop: "voucherNo",
 | 
	
		
			
				|  |  | +              width:"180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入凭证号",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "凭证日期",
 | 
	
		
			
				|  |  | +              prop: "voucherDate",
 | 
	
		
			
				|  |  | +              type: "date",
 | 
	
		
			
				|  |  | +              width:"100",
 | 
	
		
			
				|  |  | +              valueFormat:'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              format: 'yyyy-MM-dd',
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入凭证日期",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "是否对账",
 | 
	
		
			
				|  |  | +              prop: "isChecked",
 | 
	
		
			
				|  |  | +              type: 'select',
 | 
	
		
			
				|  |  | +              dicData:[{
 | 
	
		
			
				|  |  | +                label:'未对账',
 | 
	
		
			
				|  |  | +                value:0
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'已对账',
 | 
	
		
			
				|  |  | +                value:1
 | 
	
		
			
				|  |  | +              }],
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入是否对账",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "是否销账",
 | 
	
		
			
				|  |  | +              prop: "isCleared",
 | 
	
		
			
				|  |  | +              type: 'select',
 | 
	
		
			
				|  |  | +              dicData:[{
 | 
	
		
			
				|  |  | +                label:'未销账',
 | 
	
		
			
				|  |  | +                value:0
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'部分销账',
 | 
	
		
			
				|  |  | +                value:3
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'销账',
 | 
	
		
			
				|  |  | +                value:9
 | 
	
		
			
				|  |  | +              }],
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入是否销账",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "账单状态",
 | 
	
		
			
				|  |  | +              prop: "billStatus",
 | 
	
		
			
				|  |  | +              type: 'select',
 | 
	
		
			
				|  |  | +              dicData:[{
 | 
	
		
			
				|  |  | +                label:'未完成',
 | 
	
		
			
				|  |  | +                value:0
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'已完成',
 | 
	
		
			
				|  |  | +                value:1
 | 
	
		
			
				|  |  | +              }],
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入账单状态",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "版本",
 | 
	
		
			
				|  |  | +            //   prop: "version",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入版本",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "状态",
 | 
	
		
			
				|  |  | +              prop: "status",
 | 
	
		
			
				|  |  | +              type: 'select',
 | 
	
		
			
				|  |  | +              dicData:[{
 | 
	
		
			
				|  |  | +                label:'正常',
 | 
	
		
			
				|  |  | +                value:0
 | 
	
		
			
				|  |  | +              },{
 | 
	
		
			
				|  |  | +                label:'停用',
 | 
	
		
			
				|  |  | +                value:1
 | 
	
		
			
				|  |  | +              }],
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入状态",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            // {
 | 
	
		
			
				|  |  | +            //   label: "是否已删除(0 否 1是)",
 | 
	
		
			
				|  |  | +            //   prop: "isDeleted",
 | 
	
		
			
				|  |  | +            //   rules: [{
 | 
	
		
			
				|  |  | +            //     required: true,
 | 
	
		
			
				|  |  | +            //     message: "请输入是否已删除(0 否 1是)",
 | 
	
		
			
				|  |  | +            //     trigger: "blur"
 | 
	
		
			
				|  |  | +            //   }]
 | 
	
		
			
				|  |  | +            // },
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +              label: "备注",
 | 
	
		
			
				|  |  | +              prop: "remarks",
 | 
	
		
			
				|  |  | +              width: "180",
 | 
	
		
			
				|  |  | +              rules: [{
 | 
	
		
			
				|  |  | +                required: true,
 | 
	
		
			
				|  |  | +                message: "请输入备注",
 | 
	
		
			
				|  |  | +                trigger: "blur"
 | 
	
		
			
				|  |  | +              }]
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +          ]
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        data: []
 | 
	
		
			
				|  |  | +      };
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    computed: {
 | 
	
		
			
				|  |  | +      ...mapGetters(["permission"]),
 | 
	
		
			
				|  |  | +      permissionList() {
 | 
	
		
			
				|  |  | +        return {
 | 
	
		
			
				|  |  | +          addBtn: this.vaildData(this.permission.finaccbills_add, false),
 | 
	
		
			
				|  |  | +          viewBtn: this.vaildData(this.permission.finaccbills_view, false),
 | 
	
		
			
				|  |  | +          delBtn: this.vaildData(this.permission.finaccbills_delete, false),
 | 
	
		
			
				|  |  | +          editBtn: this.vaildData(this.permission.finaccbills_edit, false)
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      ids() {
 | 
	
		
			
				|  |  | +        let ids = [];
 | 
	
		
			
				|  |  | +        this.selectionList.forEach(ele => {
 | 
	
		
			
				|  |  | +          ids.push(ele.id);
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +        return ids.join(",");
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    async created() {
 | 
	
		
			
				|  |  | +      this.option = await this.getColumnData(this.getColumnName(313), this.optionBack);
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    methods: {
 | 
	
		
			
				|  |  | +      rowSave(row, done, loading) {
 | 
	
		
			
				|  |  | +        add(row).then(() => {
 | 
	
		
			
				|  |  | +          this.onLoad(this.page);
 | 
	
		
			
				|  |  | +          this.$message({
 | 
	
		
			
				|  |  | +            type: "success",
 | 
	
		
			
				|  |  | +            message: "操作成功!"
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +          done();
 | 
	
		
			
				|  |  | +        }, error => {
 | 
	
		
			
				|  |  | +          loading();
 | 
	
		
			
				|  |  | +          window.console.log(error);
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      rowUpdate(row, index, done, loading) {
 | 
	
		
			
				|  |  | +        update(row).then(() => {
 | 
	
		
			
				|  |  | +          this.onLoad(this.page);
 | 
	
		
			
				|  |  | +          this.$message({
 | 
	
		
			
				|  |  | +            type: "success",
 | 
	
		
			
				|  |  | +            message: "操作成功!"
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +          done();
 | 
	
		
			
				|  |  | +        }, error => {
 | 
	
		
			
				|  |  | +          loading();
 | 
	
		
			
				|  |  | +          console.log(error);
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      rowDel(row) {
 | 
	
		
			
				|  |  | +        this.$confirm("确定将选择数据删除?", {
 | 
	
		
			
				|  |  | +          confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +          cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +          type: "warning"
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +          .then(() => {
 | 
	
		
			
				|  |  | +            return remove(row.id);
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          .then(() => {
 | 
	
		
			
				|  |  | +            this.onLoad(this.page);
 | 
	
		
			
				|  |  | +            this.$message({
 | 
	
		
			
				|  |  | +              type: "success",
 | 
	
		
			
				|  |  | +              message: "操作成功!"
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      handleDelete() {
 | 
	
		
			
				|  |  | +        if (this.selectionList.length === 0) {
 | 
	
		
			
				|  |  | +          this.$message.warning("请选择至少一条数据");
 | 
	
		
			
				|  |  | +          return;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        this.$confirm("确定将选择数据删除?", {
 | 
	
		
			
				|  |  | +          confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +          cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +          type: "warning"
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +          .then(() => {
 | 
	
		
			
				|  |  | +            return remove(this.ids);
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +          .then(() => {
 | 
	
		
			
				|  |  | +            this.onLoad(this.page);
 | 
	
		
			
				|  |  | +            this.$message({
 | 
	
		
			
				|  |  | +              type: "success",
 | 
	
		
			
				|  |  | +              message: "操作成功!"
 | 
	
		
			
				|  |  | +            });
 | 
	
		
			
				|  |  | +            this.$refs.crud.toggleSelection();
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      beforeOpen(done, type) {
 | 
	
		
			
				|  |  | +        if (["edit", "view"].includes(type)) {
 | 
	
		
			
				|  |  | +          getDetail(this.form.id).then(res => {
 | 
	
		
			
				|  |  | +            this.form = res.data.data;
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        done();
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      searchReset() {
 | 
	
		
			
				|  |  | +        this.query = {};
 | 
	
		
			
				|  |  | +        this.onLoad(this.page);
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      searchChange(params, done) {
 | 
	
		
			
				|  |  | +        this.query = params;
 | 
	
		
			
				|  |  | +        this.page.currentPage = 1;
 | 
	
		
			
				|  |  | +        this.onLoad(this.page, params);
 | 
	
		
			
				|  |  | +        done();
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      selectionChange(list) {
 | 
	
		
			
				|  |  | +        this.selectionList = list;
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      selectionClear() {
 | 
	
		
			
				|  |  | +        this.selectionList = [];
 | 
	
		
			
				|  |  | +        this.$refs.crud.toggleSelection();
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      currentChange(currentPage){
 | 
	
		
			
				|  |  | +        this.page.currentPage = currentPage;
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      sizeChange(pageSize){
 | 
	
		
			
				|  |  | +        this.page.pageSize = pageSize;
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      refreshChange() {
 | 
	
		
			
				|  |  | +        this.onLoad(this.page, this.query);
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      onLoad(page, params = {}) {
 | 
	
		
			
				|  |  | +        this.loading = true;
 | 
	
		
			
				|  |  | +        getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
 | 
	
		
			
				|  |  | +          const data = res.data.data;
 | 
	
		
			
				|  |  | +          this.page.total = data.total;
 | 
	
		
			
				|  |  | +          this.data = data.records;
 | 
	
		
			
				|  |  | +          this.loading = false;
 | 
	
		
			
				|  |  | +          this.selectionClear();
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      //自定义列保存
 | 
	
		
			
				|  |  | +      async saveColumnTwo(ref, option, optionBack, code) {
 | 
	
		
			
				|  |  | +        /**
 | 
	
		
			
				|  |  | +         * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
 | 
	
		
			
				|  |  | +         * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
 | 
	
		
			
				|  |  | +         * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
 | 
	
		
			
				|  |  | +         */
 | 
	
		
			
				|  |  | +        const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
 | 
	
		
			
				|  |  | +        if (inSave) {
 | 
	
		
			
				|  |  | +          this.$message.success("保存成功");
 | 
	
		
			
				|  |  | +          //关闭窗口
 | 
	
		
			
				|  |  | +          this.$refs[ref].$refs.dialogColumn.columnBox = false;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      //自定义列重置
 | 
	
		
			
				|  |  | +      async resetColumnTwo(ref, option, optionBack, code) {
 | 
	
		
			
				|  |  | +        this[option] = this[optionBack];
 | 
	
		
			
				|  |  | +        const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
 | 
	
		
			
				|  |  | +        if (inSave) {
 | 
	
		
			
				|  |  | +          this.$message.success("重置成功");
 | 
	
		
			
				|  |  | +          this.$refs[ref].$refs.dialogColumn.columnBox = false;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      // 更改表格颜色
 | 
	
		
			
				|  |  | +      headerClassName(tab) {
 | 
	
		
			
				|  |  | +        //颜色间隔
 | 
	
		
			
				|  |  | +        let back = ""
 | 
	
		
			
				|  |  | +        if (tab.columnIndex >= 0 && tab.column.level === 1) {
 | 
	
		
			
				|  |  | +          if (tab.columnIndex % 2 === 0) {
 | 
	
		
			
				|  |  | +            back = "back-one"
 | 
	
		
			
				|  |  | +          } else if (tab.columnIndex % 2 === 1) {
 | 
	
		
			
				|  |  | +            back = "back-two"
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        return back;
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  };
 | 
	
		
			
				|  |  | +</script>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +<style scoped>
 | 
	
		
			
				|  |  | +::v-deep#out-table .back-one {
 | 
	
		
			
				|  |  | +  background: #ecf5ff !important;
 | 
	
		
			
				|  |  | +  text-align: center;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +::v-deep#out-table .back-two {
 | 
	
		
			
				|  |  | +  background: #ecf5ff !important;
 | 
	
		
			
				|  |  | +  text-align: center;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +/deep/ .el-col-md-8 {
 | 
	
		
			
				|  |  | +  width: 24.33333%;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +::v-deep.el-form-item {
 | 
	
		
			
				|  |  | +  margin-bottom: 0;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +</style>
 |