| | |
| | | <div class="app-container"> |
| | | <div class="search"> |
| | | <div> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | > |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true"> |
| | | <el-form-item label="客户名称" prop="company"> |
| | | <el-input |
| | | size="small" |
| | | placeholder="请输入" |
| | | clearable |
| | | v-model="queryParams.company" |
| | | @keyup.enter.native="getList" |
| | | ></el-input> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="queryParams.company" |
| | | @keyup.enter.native="getList"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="mini" |
| | | @click="getList" |
| | | >查 询</el-button |
| | | > |
| | | <el-button icon="el-icon-refresh" size="mini" @click="refresh" |
| | | >重 置</el-button |
| | | > |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="getList">查 询</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="refresh">重 置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button |
| | | size="small" |
| | | type="primary" |
| | | @click="openFormDia('add')" |
| | | icon="el-icon-plus" |
| | | >新增</el-button |
| | | > |
| | | <el-button size="small" type="primary" @click="openFormDia('add')" icon="el-icon-plus">新增</el-button> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <lims-table |
| | | :tableData="tableData" |
| | | :column="column" |
| | | :page="page" |
| | | :tableLoading="tableLoading" |
| | | ></lims-table> |
| | | <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading"></lims-table> |
| | | </div> |
| | | <el-dialog :title="formTitle" :visible.sync="addDia" width="450px"> |
| | | <el-form |
| | | ref="userForm" |
| | | :model="user" |
| | | :rules="userRules" |
| | | label-position="right" |
| | | label-width="100px" |
| | | > |
| | | <el-form ref="userForm" :model="user" :rules="userRules" label-position="right" label-width="100px"> |
| | | <el-form-item label="客户名称" prop="company"> |
| | | <el-input v-model="user.company" size="small" clearable></el-input> |
| | | </el-form-item> |
| | |
| | | <el-input v-model="user.companyEn" size="small" clearable></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="单位地址" prop="address"> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="user.address" |
| | | size="small" |
| | | clearable |
| | | :autosize="{ minRows: 2, maxRows: 4 }" |
| | | ></el-input> |
| | | <el-input type="textarea" v-model="user.address" size="small" clearable |
| | | :autosize="{ minRows: 2, maxRows: 4 }"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="单位地址EN" prop="addressEn"> |
| | | <el-input |
| | | type="textarea" |
| | | v-model="user.addressEn" |
| | | size="small" |
| | | clearable |
| | | :autosize="{ minRows: 2, maxRows: 4 }" |
| | | ></el-input> |
| | | <el-input type="textarea" v-model="user.addressEn" size="small" clearable |
| | | :autosize="{ minRows: 2, maxRows: 4 }"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="单位电话" prop="phone"> |
| | | <el-input v-model="user.phone" size="small" clearable></el-input> |
| | |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="reset">取 消</el-button> |
| | | <el-button type="primary" @click="customAdd" :loading="loading" |
| | | >确 定</el-button |
| | | > |
| | | <el-button type="primary" @click="customAdd" :loading="loading">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |