|  | @@ -1,33 +1,18 @@
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <div>
 | 
	
		
			
				|  |  |      <basic-container v-show="!detailsOpen">
 | 
	
		
			
				|  |  | -      <avue-crud
 | 
	
		
			
				|  |  | -          :option="option"
 | 
	
		
			
				|  |  | -          :search.sync="search"
 | 
	
		
			
				|  |  | -          v-model="form"
 | 
	
		
			
				|  |  | -          :table-loading="loading"
 | 
	
		
			
				|  |  | -          :data="dataList"
 | 
	
		
			
				|  |  | -          ref="crud"
 | 
	
		
			
				|  |  | -          :key="key"
 | 
	
		
			
				|  |  | -          @search-criteria-switch="searchCriteriaSwitch"
 | 
	
		
			
				|  |  | -          @on-load="onLoad"
 | 
	
		
			
				|  |  | -          @search-change="searchChange"
 | 
	
		
			
				|  |  | -          @row-del="rowDel"
 | 
	
		
			
				|  |  | -          @refresh-change="refreshChange"
 | 
	
		
			
				|  |  | -          @resetColumn="resetColumnTwo('crud','option','optionList', 265)"
 | 
	
		
			
				|  |  | -          @saveColumn="saveColumnTwo('crud','option','optionList', 265)"
 | 
	
		
			
				|  |  | -          :page.sync="page">
 | 
	
		
			
				|  |  | +      <avue-crud :option="option" :search.sync="search" v-model="form" :table-loading="loading" :data="dataList"
 | 
	
		
			
				|  |  | +        ref="crud" :key="key" @search-criteria-switch="searchCriteriaSwitch" @on-load="onLoad"
 | 
	
		
			
				|  |  | +        @search-change="searchChange" @row-del="rowDel" @refresh-change="refreshChange"
 | 
	
		
			
				|  |  | +        @resetColumn="resetColumnTwo('crud', 'option', 'optionList', 265)"
 | 
	
		
			
				|  |  | +        @saveColumn="saveColumnTwo('crud', 'option', 'optionList', 265)" :page.sync="page">
 | 
	
		
			
				|  |  |          <template slot-scope="{type,size,row,index}" slot="menu">
 | 
	
		
			
				|  |  |            <el-button :size="size" :type="type" @click="check(row)">查看</el-button>
 | 
	
		
			
				|  |  | -          <el-button :size="size" :type="type" @click="$refs.crud.rowDel(row,index)">删除
 | 
	
		
			
				|  |  | +          <el-button :size="size" :type="type" @click="$refs.crud.rowDel(row, index)">删除
 | 
	
		
			
				|  |  |            </el-button>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot="status" slot-scope="{row,index,disabled}">
 | 
	
		
			
				|  |  | -          <el-switch
 | 
	
		
			
				|  |  | -              active-value="1"
 | 
	
		
			
				|  |  | -              inactive-value="0"
 | 
	
		
			
				|  |  | -              :disabled="disabled"
 | 
	
		
			
				|  |  | -              v-model="row.status">
 | 
	
		
			
				|  |  | +          <el-switch active-value="1" inactive-value="0" :disabled="disabled" v-model="row.status">
 | 
	
		
			
				|  |  |            </el-switch>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot="corpNameSearch">
 | 
	
	
		
			
				|  | @@ -46,9 +31,9 @@
 | 
	
		
			
				|  |  |        </avue-crud>
 | 
	
		
			
				|  |  |      </basic-container>
 | 
	
		
			
				|  |  |      <el-dialog title="导入客户" append-to-body :visible.sync="excelBox" width="555px" :close-on-click-modal="false"
 | 
	
		
			
				|  |  | -               v-dialog-drag>
 | 
	
		
			
				|  |  | -      <avue-form :option="excelOption" v-model="excelForm" table-loading="excelLoading"
 | 
	
		
			
				|  |  | -                 :upload-before="uploadBefore" :upload-after="uploadAfter">
 | 
	
		
			
				|  |  | +      v-dialog-drag>
 | 
	
		
			
				|  |  | +      <avue-form :option="excelOption" v-model="excelForm" table-loading="excelLoading" :upload-before="uploadBefore"
 | 
	
		
			
				|  |  | +        :upload-after="uploadAfter">
 | 
	
		
			
				|  |  |          <template slot="excelTemplate">
 | 
	
		
			
				|  |  |            <el-button type="primary" @click="derivation">
 | 
	
		
			
				|  |  |              点击下载<i class="el-icon-download el-icon--right"></i>
 | 
	
	
		
			
				|  | @@ -64,9 +49,9 @@
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -import {getList, remove} from "@/api/tirePartsMall/basicData/accountManagement";
 | 
	
		
			
				|  |  | +import { getList, remove } from "@/api/tirePartsMall/basicData/accountManagement";
 | 
	
		
			
				|  |  |  import detailsPage from "./detailsPage"
 | 
	
		
			
				|  |  | -import {getToken} from "@/util/auth";
 | 
	
		
			
				|  |  | +import { getToken } from "@/util/auth";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "index",
 | 
	
	
		
			
				|  | @@ -154,12 +139,24 @@ export default {
 | 
	
		
			
				|  |  |            prop: "accountType",
 | 
	
		
			
				|  |  |            search: true,
 | 
	
		
			
				|  |  |            overHidden: true,
 | 
	
		
			
				|  |  | -        },  {
 | 
	
		
			
				|  |  | +          type: 'select',
 | 
	
		
			
				|  |  | +          dicUrl: "/api/blade-system/dict-biz/dictionary?code=accountType",
 | 
	
		
			
				|  |  | +          props: {
 | 
	
		
			
				|  |  | +            label: "dictValue",
 | 
	
		
			
				|  |  | +            value: "dictValue"
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        }, {
 | 
	
		
			
				|  |  |            label: '币别',
 | 
	
		
			
				|  |  |            prop: "currency",
 | 
	
		
			
				|  |  |            search: true,
 | 
	
		
			
				|  |  |            overHidden: true,
 | 
	
		
			
				|  |  | -        },{
 | 
	
		
			
				|  |  | +          type:"select",
 | 
	
		
			
				|  |  | +          dicUrl: "/api/blade-system/dict-biz/dictionary?code=currency",
 | 
	
		
			
				|  |  | +          props: {
 | 
	
		
			
				|  |  | +            label: "dictValue",
 | 
	
		
			
				|  |  | +            value: "dictKey"
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +        }, {
 | 
	
		
			
				|  |  |            label: '账户余额',
 | 
	
		
			
				|  |  |            prop: "accountBalance",
 | 
	
		
			
				|  |  |            search: false,
 | 
	
	
		
			
				|  | @@ -175,7 +172,7 @@ export default {
 | 
	
		
			
				|  |  |              label: '是',
 | 
	
		
			
				|  |  |              value: 1
 | 
	
		
			
				|  |  |            }]
 | 
	
		
			
				|  |  | -        } ]
 | 
	
		
			
				|  |  | +        }]
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
	
		
			
				|  | @@ -295,6 +292,4 @@ export default {
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -<style scoped>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -</style>
 | 
	
		
			
				|  |  | +<style scoped></style>
 |