|
@@ -20,34 +20,30 @@
|
|
|
<!-- ------------- 检索参数 ------------- -->
|
|
|
<div class="c-title">检索参数</div>
|
|
|
<el-form ref="form" :model='p' @submit.native.prevent>
|
|
|
- <sa-item type="text" name="名称" v-model="p.name"></sa-item>
|
|
|
- <sa-item type="text" name="联系号码" v-model="p.phone"></sa-item>
|
|
|
- <sa-item type="text" name="负责人" v-model="p.dutyPeople"></sa-item>
|
|
|
+ <sa-item type="text" name="公司名称" v-model="p.name"></sa-item>
|
|
|
+ <sa-item type="text" name="联系电话" v-model="p.phone"></sa-item>
|
|
|
+ <sa-item type="text" name="联系" v-model="p.dutyPeople"></sa-item>
|
|
|
<el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询</el-button>
|
|
|
<br />
|
|
|
- <sa-item name="综合排序">
|
|
|
- <el-radio-group v-model="p.sortType" class="s-radio-text">
|
|
|
- <el-radio :label="0">默认</el-radio>
|
|
|
- <el-radio :label="2">名称</el-radio>
|
|
|
- <el-radio :label="8">创建时间</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </sa-item>
|
|
|
</el-form>
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="add()" v-if="currentCustomerId=='1'">新增</el-button>
|
|
|
- <el-button type="success" icon="el-icon-view" @click="getBySelect()" >查看</el-button>
|
|
|
+<!-- <el-button type="success" icon="el-icon-view" @click="getBySelect()" >查看</el-button>-->
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="deleteByIds()" v-if="currentCustomerId=='1'">删除</el-button>
|
|
|
<el-button type="info" icon="el-icon-refresh" @click="sa.f5()">重置</el-button>
|
|
|
<!-- ------------- 数据列表 ------------- -->
|
|
|
<el-table class="data-table" ref="data-table" :data="dataList" >
|
|
|
<sa-td type="selection"></sa-td>
|
|
|
- <sa-td name="名称" prop="name" ></sa-td>
|
|
|
- <sa-td name="联系号码" prop="phone" ></sa-td>
|
|
|
- <sa-td name="负责人" prop="dutyPeople" ></sa-td>
|
|
|
+ <sa-td name="公司名称" prop="name"></sa-td>
|
|
|
+ <sa-td name="联系人" prop="dutyPeople"></sa-td>
|
|
|
+ <sa-td name="联系电话" prop="phone"></sa-td>
|
|
|
<sa-td name="结算类型" prop="payType" type="enum" :jv="{1: '现结', 2: '月结'}"></sa-td>
|
|
|
- <sa-td name="地址" prop="addressStr" ></sa-td>
|
|
|
+ <!-- <sa-td name="地址" prop="addressStr" ></sa-td> -->
|
|
|
<sa-td name="营业执照" prop="businessLicence" type="img"></sa-td>
|
|
|
- <sa-td name="是否启用" prop="status" type="switch" :jv="{0: '否[#ff0000]', 1: '是[#005500]'}" @change="s => updateStatus(s.row)"></sa-td>
|
|
|
- <sa-td name="创建时间" prop="creareTime" ></sa-td>
|
|
|
+ <sa-td name="状态" prop="status" type="switch" :jv="{0: '禁用[#ff0000]', 1: '启用[#005500]'}"
|
|
|
+ @change="s => updateStatus(s.row)"></sa-td>
|
|
|
+<!-- <sa-td name="创建时间" prop="creareTime"></sa-td>-->
|
|
|
+ <sa-td name="审核状态" prop="judgeStatus" type="enum" :jv="{1: '未审核', 2: '已通过', 3: '不通过'}"></sa-td>
|
|
|
+ <sa-td name="审核时间" prop="judgeTime" width="160px"></sa-td>
|
|
|
<el-table-column label="操作" fixed="right" width="280px">
|
|
|
<template slot-scope="s">
|
|
|
<el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看</el-button>
|
|
@@ -108,7 +104,7 @@
|
|
|
},
|
|
|
// 查看
|
|
|
get: function(data) {
|
|
|
- sa.showIframe('数据详情', 'tb-costomer-info.html?id=' + data.id, '1050px', '90%');
|
|
|
+ sa.showIframe('数据详情', 'tb-costomer-info.html?id=' + data.id, '800px', '60%');
|
|
|
},
|
|
|
// 查看 - 根据选中的
|
|
|
getBySelect: function(data) {
|
|
@@ -120,7 +116,7 @@
|
|
|
},
|
|
|
// 修改
|
|
|
update: function(data) {
|
|
|
- sa.showIframe('修改数据', 'tb-costomer-add.html?id=' + data.id, '1000px', '90%');
|
|
|
+ sa.showIframe('修改数据', 'tb-costomer-add.html?id=' + data.id, '500px', '70%');
|
|
|
},
|
|
|
// 新增
|
|
|
add: function(data) {
|