Browse Source

供应链管理、基础信息、系统管理、业务管理

master
Zhao Qiqi 3 years ago
parent
commit
7ed6ff612b
  1. 13
      anrui-base/anrui-base-ui/src/api/Common/permission.js
  2. 44
      anrui-base/anrui-base-ui/src/api/jichuxinxi/brandManagement.js
  3. 124
      anrui-base/anrui-base-ui/src/components/ButtonBar/index.vue
  4. 2
      anrui-base/anrui-base-ui/src/layout/components/AppMain.vue
  5. 6
      anrui-base/anrui-base-ui/src/styles/index.scss
  6. 886
      anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanli.vue
  7. 116
      anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanliAdd.vue
  8. 18
      anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshanglook.vue
  9. 212
      anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiguanli.vue
  10. 45
      anrui-base/anrui-base-ui/src/views/jingxiaoshang/jingxiaoshangguanli/jingxiaoshangAdd.vue
  11. 194
      anrui-base/anrui-base-ui/src/views/jingxiaoshang/jingxiaoshangguanli/jingxiaoshangguanli.vue
  12. 2
      anrui-base/anrui-base-ui/src/views/login/login.vue
  13. 437
      anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiAdd.vue
  14. 408
      anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiguanli.vue
  15. 14
      anrui-base/anrui-base-ui/src/views/zifang/zifangzhengce/zifangzhengce.vue
  16. 2
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengce.vue
  17. 25
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengceAdd.vue
  18. 5
      anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengInfo.vue
  19. 22
      anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhang.vue
  20. 21
      anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue
  21. 14
      anrui-system-ui/src/api/system/departments/departments.js
  22. 155
      anrui-system-ui/src/views/organizationManage/organizationManage.vue

13
anrui-base/anrui-base-ui/src/api/Common/permission.js

@ -0,0 +1,13 @@
import request from '@/utils/request'
// 请求按钮权限
export default {
// 查询分页列表,输入当前路径和userSid,返回
buttonPermission: function(params) {
return request({
url: '/demopackage/v1/demo/buttonPermission',
method: 'post',
data: params
})
}
}

44
anrui-base/anrui-base-ui/src/api/jichuxinxi/brandManagement.js

@ -52,26 +52,35 @@ export function brandLike(data) {
// 品牌详情以及修改回显 // 品牌详情以及修改回显
export function details(data) { export function details(data) {
return request({ return request({
url: '/base/v1/basevehiclebrand/details/' + data, url: '/base/v1/basevehiclebrand/details/' + data,
method: 'get' method: 'get'
}) })
} }
// 品牌类型 // 品牌类型
export function dictType(data) { export function dictType(data) {
return request({ return request({
url: '/portal/v1/dictcommons/typeValues', url: '/portal/v1/dictcommons/typeValues',
method: 'get', method: 'get',
params: data params: data
}) })
} }
// 查询所有分公司
export function getListOrg(params) {
return request({
url: 'portal/v1/sysorganization/getListOrg',
method: 'get',
params: params
})
}
//导出 //导出
export function basefinbankExportExcel(data) { export function basefinbankExportExcel(data) {
return request({ return request({
url: '/base/v1/basevehiclebrand/exportExcel?sids='+ data, url: '/base/v1/basevehiclebrand/exportExcel?sids=' + data,
method: 'get', method: 'get',
responseType: 'blob' ,// 表明返回服务器返回的数据类型 responseType: 'blob',// 表明返回服务器返回的数据类型
data: qs.stringify(data), data: qs.stringify(data),
// headers: { // headers: {
// 'Content-Type': 'application/json', // 'Content-Type': 'application/json',
@ -97,6 +106,15 @@ export function selectListOrg(data) {
}) })
} }
// 分公司
export function getUseOrgByUserSid(params) {
return request({
url: 'portal/v1/sysorganization/getUseOrgByUserSid',
method: 'get',
params: params
})
}
// 厂商 // 厂商
export function namesDown(data) { export function namesDown(data) {
return request({ return request({

124
anrui-base/anrui-base-ui/src/components/ButtonBar/index.vue

@ -0,0 +1,124 @@
<template>
<!--标题按钮部分开始-->
<div class="tab-header webtop">
<!--标题-->
<div>{{ viewTitle }}</div>
<!--start 按钮部分开始 :icon="item.icon"-->
<div>
<el-button v-for="item in btnList" :key="item.btnKey" :type="item.type" :size="item.size" :disabled="btndisabled"
@click="btnHandle(item.btnKey)">
<svg-icon :iconClass="item.icon"/>
{{ item.btnLabel }}
</el-button>
</div>
<!--end 按钮部分结束-->
</div>
<!--标题按钮部分结束-->
</template>
<script>
export default {
name: 'ButtonBar',
props: {
viewTitle: String,
btndisabled: {type: Boolean, default: false}
},
data() {
return {
currentPath: this.$route.path,
userSid: this.$store.getters.userInfo ? this.$store.getters.userInfo.userSid : '',
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'primary',
size: 'small',
icon: 'submit',
btnKey: 'doSubmit',
btnLabel: '提交'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'success',
size: 'small',
icon: 'Import',
btnKey: 'doImport',
btnLabel: '导入'
},
{
type: 'success',
size: 'small',
icon: 'export',
btnKey: 'build',
btnLabel: '导出'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
]
}
},
created: function () {
this.initPermission()
},
methods: {
initPermission() {
console.log('*******************当前路径 ' + this.currentPath)
console.log('*******************当前用户 ' + this.userSid)
const params = {
currentPath: this.currentPath,
userSid: this.userSid
}
// req
// .buttonPermission(params)
// .then(resp => {
// if (resp.success) {
// this.btnList = resp.data
// }
// })
// .catch(e => {
// console.log('' + e)
// })
},
btnHandle(btnKey) {
this.$emit('btnhandle', btnKey)
},
setButtonList(value) {
this.btnList = value
}
}
}
</script>
<style scoped>
.svg-icon {
width: 1.2em;
height: 1.2em;
vertical-align: -0.16em;
fill: currentColor;
overflow: hidden;
margin-right: 3px;
}
</style>

2
anrui-base/anrui-base-ui/src/layout/components/AppMain.vue

@ -31,7 +31,7 @@ export default {
/* margin-left:10px; */ /* margin-left:10px; */
padding: 0 10px; padding: 0 10px;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: hidden;
} }
.fixed-header+.app-main { .fixed-header+.app-main {
padding-top: 50px; padding-top: 50px;

6
anrui-base/anrui-base-ui/src/styles/index.scss

@ -105,7 +105,9 @@ div:focus {
.app-container {margin: 5px; .app-container {margin: 5px;
background-color: #fff; background-color: #fff;
} }
.listcon{height: calc(100vh - 425px);overflow-y: auto;overflow-x: hidden;} // 设置了滚动区域
.main-content{ overflow-x: hidden;overflow-y: auto;height: calc(100vh - 186px);}
.listcon{height: calc(100vh - 425px);overflow-y: hidden;overflow-x: hidden;}
.listconadd{height: calc(100vh - 200px);overflow-y: auto;overflow-x: hidden;} .listconadd{height: calc(100vh - 200px);overflow-y: auto;overflow-x: hidden;}
.listconsub{height: calc(100vh - 310px);overflow-y: auto;overflow-x: hidden;} .listconsub{height: calc(100vh - 310px);overflow-y: auto;overflow-x: hidden;}
.listconsubjxs{height: calc(100vh - 300px);overflow-y: auto;overflow-x: hidden;} .listconsubjxs{height: calc(100vh - 300px);overflow-y: auto;overflow-x: hidden;}
@ -209,7 +211,7 @@ div:focus {
.el-form-item__error { .el-form-item__error {
z-index: 100; z-index: 100;
} }
.bluezi{color: $header-bg;} .bluezi{color: $header-bg;cursor:pointer;}
// 经销商添加样式 // 经销商添加样式
.titcon{ .titcon{
display: flex;flex-direction: row;justify-content: space-around; background-color: #0294d7;flex: 3; display: flex;flex-direction: row;justify-content: space-around; background-color: #0294d7;flex: 3;

886
anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanli.vue

@ -2,90 +2,82 @@
<div class="app-container"> <div class="app-container">
<!-- <changshang />--> <!-- <changshang />-->
<div v-show="viewState === 1"> <div v-show="viewState === 1">
<div class="tab-header webtop"> <button-bar view-title="厂商管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div>厂商管理</div> <div class="main-content">
<div> <div class="searchcon">
<el-button type="primary" size="small" @click="handleCreate()">新增</el-button> <el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<el-button type="primary" size="small" @click="handleUpdate()">修改</el-button> <div v-show="isSearchShow" class="search">
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button> <el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="80px" class="tab-header">
<el-button type="success" size="small" @click="handleDaoChu()">导出</el-button> <el-form-item label="厂商名称">
<el-autocomplete v-model="listQuery.manufacturerName" :fetch-suggestions="querySearchAsync"
style="width: 300px" placeholder="请输入厂商名称" @select="handleSelect">
<i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear"/>
<template slot-scope="{ item }">
<div style="paddingg:5px;background-color:Azure;">
<span>厂商名称</span>
<span style="color:red">{{ item.manufacturerName }} </span><br>
</div>
</template>
</el-autocomplete>
</el-form-item>
<el-form-item label="厂商类别">
<el-select v-model="listQuery.supplyType" class="filter-item" clearable placeholder="请选择厂商类别"
style="width: 300px;">
<el-option v-for="item in typeOptions" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</div>
</div> </div>
</div> </div>
<div class="searchcon"> <div class="listtop">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> <div class="tit">厂商信息列表</div>
<div v-show="isSearchShow" class="search"> <!-- 翻页分页 -->
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="80px" class="tab-header"> <pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
<el-form-item label="厂商名称"> class="pagination" @pagination="getList"/>
<el-autocomplete v-model="listQuery.manufacturerName" :fetch-suggestions="querySearchAsync" </div>
style="width: 300px" placeholder="请输入厂商名称" @select="handleSelect"> <div>
<i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear" /> <el-table :key="tableKey" v-loading="listLoading" :data="list" border fit highlight-current-row
<template slot-scope="{ item }"> style="width: 100%;" @selection-change="handleSelectionChange">
<div style="paddingg:5px;background-color:Azure;"> <el-table-column type="selection" align="center" width="50"/>
<span>厂商名称</span> <el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<span style="color:red">{{ item.manufacturerName }} </span><br> <el-table-column prop="jc" label="厂商名称" align="center">
</div> <template slot-scope="scope">
</template> <span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.manufacturerName }}</span>
</el-autocomplete> </template>
</el-form-item> </el-table-column>
<el-form-item label="厂商类别"> <el-table-column label="厂商通讯地址" width="380" align="center">
<el-select v-model="listQuery.supplyType" class="filter-item" clearable placeholder="请选择厂商类别" <template slot-scope="scope">
style="width: 300px;"> <span>{{ scope.row.manufacturerAddress }}</span>
<el-option v-for="item in typeOptions" :key="item.dictKey" :label="item.dictValue" </template>
:value="item.dictKey" /> </el-table-column>
</el-select> <el-table-column label="厂商办公电话" width="200" align="center">
</el-form-item> <template slot-scope="scope">
<el-button type="primary" @click="handleFilter">查询</el-button> <span>{{ scope.row.manufacturerTelePhone }}</span>
</el-form> </template>
</el-table-column>
<el-table-column label="联系人姓名" width="180" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contactName }}</span>
</template>
</el-table-column>
<el-table-column label="联系电话" width="200" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contactMobile }}</span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
class="pagination" @pagination="getList"/>
</div>
</div> </div>
</div>
<div class="listtop">
<div class="tit">厂商信息列表</div>
<!-- 翻页分页 -->
<pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
class="pagination" @pagination="getList" />
</div>
<div>
<el-table :key="tableKey" v-loading="listLoading" :data="list" border fit highlight-current-row
style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50" />
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center" />
<el-table-column prop="jc" label="厂商名称" align="center">
<template slot-scope="scope">
<span>{{ scope.row.manufacturerName }}</span>
</template>
</el-table-column>
<el-table-column label="厂商通讯地址" align="center">
<template slot-scope="scope">
<span>{{ scope.row.manufacturerAddress }}</span>
</template>
</el-table-column>
<el-table-column label="厂商电话" align="center">
<template slot-scope="scope">
<span>{{ scope.row.manufacturerTelePhone }}</span>
</template>
</el-table-column>
<el-table-column label="联系人姓名" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contactName }}</span>
</template>
</el-table-column>
<el-table-column label="联系电话" align="center">
<template slot-scope="scope">
<span>{{ scope.row.contactMobile }}</span>
</template>
</el-table-column>
<el-table-column label="操作" width="120" align="center">
<template slot-scope="{row}">
<el-button size="mini" type="primary" @click="handleCheck(row)">查看</el-button>
</template>
</el-table-column>
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
class="pagination" @pagination="getList" />
</div>
</div> </div>
<changshangguanli-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" <changshangguanli-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState"
@ -96,185 +88,235 @@
</template> </template>
<script> <script>
import { import {mapGetters} from 'vuex'
mapGetters import {basefinbankExportExcel, deleteBySids, getNamesDownes, pagerList} from '@/api/jichuxinxi/basemanufacturer' //
} from 'vuex' import {setXiu} from '@/utils/baocun' //
import { import {typeValues} from '@/api/jichuxinxi/dictcommons' //
pagerList, // import { getFileType, parseDate, parseTime, ConvertMenuState } from "@/utils";
deleteBySids, // import { findButtonByUserId } from '@/api/sys/permission'
getNamesDownes, import Pagination from '@/components/pagination'
basefinbankExportExcel import pageye from '@/components/pagination/pageye'
} from '@/api/jichuxinxi/basemanufacturer' // // import ButtonBar from '/src/components/ButtonBar/index.vue'
import { import ChangshangguanliAdd from "@/views/changshang/changshangguanli/changshangguanliAdd.vue";
setXiu, import changshanglook from "@/views/changshang/changshangguanli/changshanglook";
setLook import ButtonBar from "@/components/ButtonBar";
} from '@/utils/baocun' //
import {
typeValues
} from '@/api/jichuxinxi/dictcommons' //
// import { getFileType, parseDate, parseTime, ConvertMenuState } from "@/utils";
// import { findButtonByUserId } from '@/api/sys/permission'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import {
delUser
} from '@/api/system/user/Auser'
import ChangshangguanliAdd from "@/views/changshang/changshangguanli/changshangguanliAdd.vue";
import changshanglook from "@/views/changshang/changshangguanli/changshanglook";
export default { export default {
name: 'changshangguanli', name: 'changshangguanli',
components: { components: {
ChangshangguanliAdd, ButtonBar,
changshanglook, ChangshangguanliAdd,
Pagination, changshanglook,
pageye Pagination,
}, pageye
directives: { },
drag: { directives: {
// drag: {
bind: function(el) { //
const odiv = el // bind: function (el) {
el.onmousedown = (e) => { const odiv = el //
// el.onmousedown = (e) => {
const disX = e.clientX - odiv.offsetLeft //
const disY = e.clientY - odiv.offsetTop const disX = e.clientX - odiv.offsetLeft
let left = '' const disY = e.clientY - odiv.offsetTop
let top = '' let left = ''
document.onmousemove = (e) => { let top = ''
// document.onmousemove = (e) => {
left = e.clientX - disX //
top = e.clientY - disY left = e.clientX - disX
// positionXpositionY top = e.clientY - disY
// // positionXpositionY
odiv.style.left = left + 'px' //
odiv.style.top = top + 'px' odiv.style.left = left + 'px'
} odiv.style.top = top + 'px'
document.onmouseup = (e) => { }
document.onmousemove = null document.onmouseup = (e) => {
document.onmouseup = null document.onmousemove = null
} document.onmouseup = null
} }
} }
}, }
// v-focus },
focus: { // v-focus
// focus: {
inserted: function(el) { //
// inserted: function (el) {
el.querySelector('input').focus() //
}, el.querySelector('input').focus()
}, },
}, },
data() { },
return { data() {
viewState:1, return {
isSearchShow: false, btndisabled: false,
searchxianshitit: '显示查询条件', btnList: [
sids: [], {
// ----------- type: 'primary',
tableKey: 0, size: 'small',
list: [], icon: 'plus',
total: 1, btnKey: 'toAdd',
// FormLoading: false, btnLabel: '新增'
listLoading: false,
listQuery: {
supplyType: '',
manufacturerName: '',
current: 1,
size: 20
}, },
xuanzeshuju: {}, {
// selectDate: undefined, type: 'primary',
temp: {}, // size: 'small',
templook: {}, // icon: 'edit',
textMap: { btnKey: 'toEdit',
update: '修改', btnLabel: '编辑'
create: '新增'
}, },
dialogFormVisible: false, // {
dialogFormShowVisible: false, // type: 'danger',
dialogStatus: '', // size: 'small',
supplyType: 'supplyType', icon: 'del',
typeOptions: [], btnKey: 'doDel',
tureArrys: [{ btnLabel: '删除'
value: 1, },
label: '是' {
}, type: 'success',
{ size: 'small',
value: 0, icon: 'export',
label: '否' btnKey: 'build',
} btnLabel: '导出'
], },
fenzuOptions: [{ {
value: '1', type: 'info',
label: '单位' size: 'small',
}, icon: 'cross',
{ btnKey: 'doClose',
value: '2', btnLabel: '关闭'
label: '个人'
}
],
tiaojian: '',
rules: {
} }
// ------------------------------------ ],
} viewState: 1,
}, isSearchShow: false,
computed: { searchxianshitit: '显示查询条件',
...mapGetters([ sids: [],
'id', // -----------
'roles', tableKey: 0,
'rolesIds', list: [],
'departmentId', total: 1,
'departmentCode' // FormLoading: false,
]) listLoading: false,
listQuery: {
supplyType: '',
manufacturerName: '',
current: 1,
size: 20
},
xuanzeshuju: {},
// selectDate: undefined,
temp: {}, //
templook: {}, //
textMap: {
update: '修改',
create: '新增'
},
dialogFormVisible: false, //
dialogFormShowVisible: false, //
dialogStatus: '', //
supplyType: 'supplyType',
typeOptions: [],
tureArrys: [{
value: 1,
label: '是'
},
{
value: 0,
label: '否'
}
],
fenzuOptions: [{
value: '1',
label: '单位'
},
{
value: '2',
label: '个人'
}
],
tiaojian: '',
rules: {}
// ------------------------------------
}
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode'
])
},
mounted() {
this.$refs["btnbar"].setButtonList(this.btnList)
},
created() {
//
this.init()
//
this.getList()
this.factoryMill()
},
watch: {
listQuery: function (n, o) {
}
},
methods: {
resetState() {
this.viewState = 1
}, },
created() { btnHandle(btnKey) {
// console.log('XXXXXXXXXXXXXXX ' + btnKey)
this.init() switch (btnKey) {
// case 'toAdd':
this.getList() this.toAdd()
this.factoryMill() break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'doExport':
this.doExport()
break
case 'doClose':
this.doClose()
break
default:
break
}
}, },
watch:{ //
listQuery: function(n, o) { clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
} }
}, },
methods: { init() {
resetState() { this.searchData()
this.viewState = 1 },
}, searchData() {
// getNamesDownes({
clicksearchShow() { name: this.listQuery.manufacturerName
this.isSearchShow = !this.isSearchShow }).then((res) => {
if (this.isSearchShow) { // console.log('88888888888', res)
this.searchxianshitit = '隐藏查询条件' if (res.code === '200') {
} else { this.YongHu = res.data
this.searchxianshitit = '显示查询条件'
} }
}, })
init() { },
this.searchData() //
}, indexMethod(index) {
searchData() { var pagestart = (this.listQuery.current - 1) * this.listQuery.size
getNamesDownes({ var pageindex = index + 1 + pagestart
name: this.listQuery.manufacturerName return pageindex
}).then((res) => { },
// console.log('88888888888', res) //
if(res.code === '200'){ getList() {
this.YongHu =res.data
}
})
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true this.listLoading = true
pagerList({ pagerList({
current: this.listQuery.current, current: this.listQuery.current,
@ -298,32 +340,41 @@
this.total = 0 this.total = 0
} }
}) })
}, },
// //
handleFilter() { handleFilter() {
this.listQuery.current = 1 this.listQuery.current = 1
this.getList() this.getList()
}, },
// ------------------------------------------------------ handleReset() {
// this.listQuery = {
resetTemp() { supplyType: '',
this.temp = { manufacturerName: '',
manufacturerName: '', // false string current: 1,
manufacturerAddress: '', // false string size: 20
manufacturerTelePhone: '', // false string }
contactName: '', // this.getList()
contactMobile: '', // },
} // ------------------------------------------------------
}, //
// resetTemp() {
querySearchAsync(queryString, cb) { this.temp = {
console.log('查询条件:', queryString) manufacturerName: '', // false string
manufacturerAddress: '', // false string
manufacturerTelePhone: '', // false string
contactName: '', //
contactMobile: '', //
}
},
//
querySearchAsync(queryString, cb) {
console.log('查询条件:', queryString)
if ( if (
queryString != null && queryString != null &&
queryString != undefined && queryString != undefined &&
queryString !== '' queryString !== ''
) { ) {
// this.searchData({ // this.searchData({
// name: queryString // name: queryString
// }) // })
@ -335,152 +386,164 @@
cb(response.data) cb(response.data)
} }
}) })
} else { } else {
cb(this.YongHu) cb(this.YongHu)
}
},
handleSelect(e) {
//
// console.log('' + JSON.stringify(e))
this.listQuery.manufacturerName = e.manufacturerName
// this.listQuery.brandCode = e.sid
},
//
inputclear() {
this.listQuery.manufacturerName = ''
this.getList()
// this.listQuery.brandCode = ''
},
//
toAdd() {
this.viewState = 2
this.$refs['divadd'].showAdd()
/* if (this.$store.state.counter === 0) {
this.$store.state.counter
// console.log('', this.$store.state.counter)
this.$router.push({
path: '/changshang/changshangguanliAdd/0',
})
} else {
this.$store.state.counter = 0
this.$router.push({
path: '/changshang/changshangguanliAdd/0',
})
}*/
},
//
factoryMill() {
typeValues({
type: this.supplyType
}).then((response) => {
if (response.code === '200') {
this.typeOptions = response.data
} }
}, })
handleSelect(e) { },
// ///
// console.log('' + JSON.stringify(e)) handleSelectionChange(row) {
this.listQuery.manufacturerName = e.manufacturerName const aa = []
// this.listQuery.brandCode = e.sid const cc = []
}, row.forEach((element) => {
// aa.push(element.sid)
inputclear() { cc.push(element.manufacturerName, element.sid, element.supplyType)
this.listQuery.manufacturerName = '' })
this.getList() this.sids = aa
// this.listQuery.brandCode = '' this.tiaojian = this.sids.toString()
}, this.xuanzeshuju = cc
// setXiu(this.sids)
handleCreate() { },
this.viewState = 2 // ID
this.$refs['divadd'].showAdd() doDel() {
/* if (this.$store.state.counter === 0) { if (this.sids.length > 0) {
this.$store.state.counter const _this = this
// console.log('', this.$store.state.counter) const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$router.push({ this.$confirm(tip, '提示', {
path: '/changshang/changshangguanliAdd/0', confirmButtonText: '确定',
}) cancelButtonText: '取消',
} else { type: 'warning'
this.$store.state.counter = 0
this.$router.push({
path: '/changshang/changshangguanliAdd/0',
})
}*/
},
//
factoryMill() {
typeValues({
type: this.supplyType
}).then((response) => {
if (response.code === '200') {
this.typeOptions = response.data
}
})
},
///
handleSelectionChange(row) {
const aa = []
const cc = []
row.forEach((element) => {
aa.push(element.sid)
cc.push(element.manufacturerName, element.sid, element.supplyType)
}) })
this.sids = aa .then(() => {
this.tiaojian = this.sids.toString() const loading = this.$loading({
this.xuanzeshuju = cc lock: true,
setXiu(this.sids) text: 'Loading',
}, spinner: 'el-icon-loading',
// ID background: 'rgba(0, 0, 0, 0.7)'
handleDelete() { })
if (this.sids.length > 0) { deleteBySids(this.sids)
deleteBySids(this.sids).then((response) => { .then(resp => {
// console.log('3455', response) if (resp.success && resp.code == '200') {
if (response.code === '200') { loading.close()
this.$notify({ _this.$message({type: 'success', message: resp.msg, showClose: true})
title: '提示', _this.getList()
message: '删除成功', } else {
type: 'success', loading.close()
duration: 2000, // _this.$message({ type: 'error', message: resp.msg, showClose: true })
}
}) })
this.getList() .catch(e => {
} else { loading.close()
this.$notify({
title: '删除失败',
message: response.msg,
type: 'error',
}) })
}
}) })
} else { .catch(() => {
this.$notify({
title: '提示',
message: '没有选择厂商!!',
type: 'error',
duration: 2000,
}) })
return } else {
} this.$message({type: 'error', message: '没有选择厂商!!', showClose: true})
return
}
}, },
// //
handleUpdate() { toEdit() {
this.$store.state.counter = 1 this.$store.state.counter = 1
// console.log(this.sids, '') // console.log(this.sids, '')
if (this.sids.length === 1) { if (this.sids.length === 1) {
/* this.dialogStatus = 'update' /* this.dialogStatus = 'update'
this.$router.push({ this.$router.push({
path: `/changshang/changshangguanliAdd/${this.sids[0]}`, path: `/changshang/changshangguanliAdd/${this.sids[0]}`,
})*/ })*/
// this.dialogStatus = 'update' // this.dialogStatus = 'update'
this.viewState = 3 this.viewState = 3
const sid = this.sids[0] const sid = this.sids[0]
const row = this.row const row = this.row
this.$refs['divadd'].showEdit(sid, row) this.$refs['divadd'].showEdit(sid, row)
// this.$router.push({ // this.$router.push({
// path: `/cheliang/chexingAdd/${this.sids[0]}` // path: `/cheliang/chexingAdd/${this.sids[0]}`
// }) // })
} else if (this.sids.length > 1) { } else if (this.sids.length > 1) {
this.$notify({ this.$notify({
title: '提示', title: '提示',
message: '不能选中多个商家修改!!', message: '不能选中多个商家修改!!',
type: 'info', type: 'info',
duration: 2000, duration: 2000,
})
} else {
this.$notify({
title: '提示',
message: '没有选择厂商!!',
type: 'error',
duration: 2000,
})
return
}
},
//
handleCheck(row) {
this.viewState = 4
this.$refs['divinfo'].showInfo(row.sid)
},
//
handleDaoChu() {
basefinbankExportExcel(this.sids).then((res) => {
const blob = new Blob([res], {
type: 'application/vnd.ms-excel'
})
const objectUrl = URL.createObjectURL(blob)
window.location.href = objectUrl
this.$notify({
title: '提示',
message: '导出成功',
type: 'success',
duration: 2000,
})
}) })
}, } else {
this.$notify({
title: '提示',
message: '没有选择厂商!!',
type: 'error',
duration: 2000,
})
return
}
}, },
} //
handleCheck(row) {
this.viewState = 4
this.$refs['divinfo'].showInfo(row.sid)
},
//
doExport() {
basefinbankExportExcel(this.sids).then((res) => {
const blob = new Blob([res], {
type: 'application/vnd.ms-excel'
})
const objectUrl = URL.createObjectURL(blob)
window.location.href = objectUrl
this.$notify({
title: '提示',
message: '导出成功',
type: 'success',
duration: 2000,
})
})
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route);
this.$router.go(-1)
}
},
}
</script> </script>
<style scoped> <style scoped>
/deep/ .el-collapse { /deep/ .el-collapse {
@ -500,4 +563,19 @@
/deep/ .el-collapse-item__header { /deep/ .el-collapse-item__header {
border-bottom: 0px solid #e6ebf5; border-bottom: 0px solid #e6ebf5;
} }
.btn {
padding: 15px 0 15px 0;
border: 1px solid #e0e3eb;
}
.tab-header {
background-color: #edf1f7;
padding: 8px 20px;
margin-bottom: 0 !important;
}
.tab-header /deep/ .el-form-item {
margin-bottom: 10px;
}
</style> </style>

116
anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshangguanliAdd.vue

@ -1,24 +1,25 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div > <div>
<div v-if="stateId == '0'">新增厂商信息</div> <div v-if="stateId == '0'">新增厂商信息</div>
<div v-else>修改厂商信息</div> <div v-else>修改厂商信息</div>
</div> </div>
<div> <div>
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button> <el-button type="primary" size="small" @click="handleCreate()">保存</el-button>
<el-button type="primary" size="small" @click="handleReturn()">返回</el-button> <el-button type="info" size="small" @click="handleReturn()">返回</el-button>
</div> </div>
</div> </div>
<!-- 新增 修改 --> <!-- 新增 修改 -->
<div class="listconsub" style="height: auto;"> <div class="listconsub">
<el-form ref="dataForm" :title="textMap[dialogStatus]" :model="temp" label-position="right" label-width="190px" class="formadd" :rules="rules"> <el-form ref="dataForm" :title="textMap[dialogStatus]" :model="temp" label-position="right" label-width="190px"
class="formadd" :rules="rules">
<div class="title">供应厂商信息</div> <div class="title">供应厂商信息</div>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="manufacturerName"> <el-form-item prop="manufacturerName">
<span slot="label">厂商名称</span> <span slot="label">厂商名称</span>
<el-input v-model="temp.manufacturerName" maxlength="20" placeholder="" class="addinputw" clearable /> <el-input v-model="temp.manufacturerName" maxlength="20" placeholder="" class="addinputw" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -38,7 +39,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="manufacturerAddress"> <el-form-item prop="manufacturerAddress">
<span slot="label">厂商通讯地址</span> <span slot="label">厂商通讯地址</span>
<el-input v-model="temp.manufacturerAddress" maxlength="20" placeholder="" class="addinputw" clearable /> <el-input v-model="temp.manufacturerAddress" maxlength="80" placeholder="" class="addinputw" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -51,7 +52,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="manufacturerTelePhone"> <el-form-item prop="manufacturerTelePhone">
<span slot="label">厂商电话</span> <span slot="label">厂商办公电话</span>
<el-input v-model="temp.manufacturerTelePhone" maxlength="20" placeholder="" class="addinputw" <el-input v-model="temp.manufacturerTelePhone" maxlength="20" placeholder="" class="addinputw"
clearable /> clearable />
</el-form-item> </el-form-item>
@ -80,7 +81,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="contactMobile"> <el-form-item prop="contactMobile">
<span slot="label">手机号</span> <span slot="label">联系人手机号</span>
<el-input v-model="temp.contactMobile" maxlength="11" placeholder="" class="addinputw" clearable /> <el-input v-model="temp.contactMobile" maxlength="11" placeholder="" class="addinputw" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -88,7 +89,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="contactTelePhone"> <el-form-item prop="contactTelePhone">
<span slot="label">办公电话</span> <span slot="label">联系人办公电话</span>
<el-input v-model="temp.contactTelePhone" maxlength="13" placeholder="" class="addinputw" clearable /> <el-input v-model="temp.contactTelePhone" maxlength="13" placeholder="" class="addinputw" clearable />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -141,26 +142,31 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="useOrgArry"> <el-form-item prop="useOrgValue">
<span slot="label">使用组织</span> <span slot="label">使用组织</span>
<el-cascader v-model="useOrgArry" class="addinputw" @change="usrOrgArryChange" :options="options" <el-select v-model="useOrgValue" collapse-tags multiple placeholder="请选择" filterable clearable
:props="props" /> class="addinputw"
@change="getuseOrg">
<el-option v-for="item in useOrg_list" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
<!-- <el-cascader v-model="useOrgArry" class="addinputw" @change="usrOrgArryChange" :options="options"-->
<!-- :props="props" />-->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item> <el-form-item>
<span slot="label">地区</span> <span slot="label">地区</span>
<el-select v-model="temp.province" filterable placeholder="请选择省" class="filter-item" style="width: 220px" <el-select v-model="temp.province" filterable placeholder="请选择省" class="filter-item" style="width: 130px"
@change="getShen"> @change="getShen">
<el-option v-for="item in inputProvinceList" :key="item.sid" :label="item.name" :value="item.sid" /> <el-option v-for="item in inputProvinceList" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select> </el-select>
<el-select v-model="temp.city" filterable placeholder="请选择市" class="filter-item" style="width: 220px" <el-select v-model="temp.city" filterable placeholder="请选择市" class="filter-item" style="width: 130px"
@change="getShi"> @change="getShi">
<el-option v-for="item in inputCityList" :key="item.sid" :label="item.name" :value="item.sid" /> <el-option v-for="item in inputCityList" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select> </el-select>
<el-select v-model="temp.county" filterable placeholder="请选择县" class="filter-item" style="width: 220px" <el-select v-model="temp.county" filterable placeholder="请选择县" class="filter-item" style="width: 130px"
@change="getQu"> @change="getQu">
<el-option v-for="item in inputCountyList" :key="item.sid" :label="item.name" :value="item.sid" /> <el-option v-for="item in inputCountyList" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select> </el-select>
<!-- <el-input v-model="temp.region" maxlength="25" placeholder="" class="addinputw" clearable /> --> <!-- <el-input v-model="temp.region" maxlength="25" placeholder="" class="addinputw" clearable /> -->
</el-form-item> </el-form-item>
@ -352,6 +358,7 @@ import {details, SaveList, selectListOrg, Update,} from "@/api/jichuxinxi/basema
import {getCity, getCounty, getProvince} from '@/api/portal/areaPicker' // import {getCity, getCounty, getProvince} from '@/api/portal/areaPicker' //
import {typeValues} from "@/api/jichuxinxi/dictcommons"; import {typeValues} from "@/api/jichuxinxi/dictcommons";
import {getLook, getXiu, setuser} from "@/utils/baocun"; import {getLook, getXiu, setuser} from "@/utils/baocun";
import {getListOrg} from "@/api/jichuxinxi/brandManagement";
export default { export default {
name: "ChangshangguanliAdd1", name: "ChangshangguanliAdd1",
@ -365,7 +372,7 @@ export default {
callback(new Error("请输入邮箱")); callback(new Error("请输入邮箱"));
}; };
var validCascader = (rule, value, callback) => { var validCascader = (rule, value, callback) => {
if (this.useOrgArry.length == 0) { if (this.useOrgValue.length == 0) {
callback(new Error('请填写使用组织')) callback(new Error('请填写使用组织'))
} else { } else {
callback(); callback();
@ -419,6 +426,8 @@ export default {
province: [], province: [],
city: [], city: [],
county: [], county: [],
useOrgValue: [],
useOrg_list:[],
FormLoading: false, FormLoading: false,
listLoading: false, listLoading: false,
dataArr: [], dataArr: [],
@ -511,7 +520,7 @@ export default {
}], }],
manufacturerTelePhone: [{ manufacturerTelePhone: [{
required: true, required: true,
validator: checkSubmit, validator: checkBanGongDianHua,
trigger: 'blur' trigger: 'blur'
}], }],
contactName: [{ contactName: [{
@ -534,7 +543,7 @@ export default {
message: '请填写供应类别', message: '请填写供应类别',
trigger: 'blur' trigger: 'blur'
}], }],
useOrgArry: [{ useOrgValue: [{
required: true, required: true,
validator: validCascader, validator: validCascader,
trigger: "change" trigger: "change"
@ -559,6 +568,7 @@ export default {
this.gertXiaLa4(); this.gertXiaLa4();
this.getZuZhi(); this.getZuZhi();
this.huoquSheng() this.huoquSheng()
this.getListOrgAll()
// this.init(); // this.init();
}, },
methods: { methods: {
@ -629,6 +639,31 @@ export default {
console.log('税分类', bb) console.log('税分类', bb)
this.temp1.taxClassificationValue = bb.name this.temp1.taxClassificationValue = bb.name
}, },
//
getListOrgAll() {
getListOrg().then((res) => {
if (res.success) {
this.useOrg_list = res.data
}
})
},
getuseOrg(val) {
console.log('选择的使用组织', val)
let choosetItem = []
val.forEach((ele) => {
choosetItem = this.useOrg_list.filter((item) => ele == item.sid)
})
console.log('chooseItem', choosetItem)
const useOrg = []
const useOrgName = []
choosetItem.forEach((e) => {
useOrg.push(e.sid)
useOrgName.push(e.name)
})
this.temp.useOrg = useOrg.join()
this.temp.useOrgName = useOrgName.join()
console.log('使用组织name:', this.temp.useOrgName, '使用组织sid:', this.temp.useOrg)
},
showAdd() { showAdd() {
this.temp = {} this.temp = {}
this.temp1 = {} this.temp1 = {}
@ -658,6 +693,11 @@ export default {
this.temp = response.data.baseManufacturerDto this.temp = response.data.baseManufacturerDto
this.temp1 = response.data.baseManufacturerFinanceDto this.temp1 = response.data.baseManufacturerFinanceDto
this.temp2 = response.data.baseManufacturerBankDto this.temp2 = response.data.baseManufacturerBankDto
if (this.temp.useOrg.search(',') == '-1') {
this.useOrgValue = this.temp.useOrg.split(" ")
} else {
this.useOrgValue = this.temp.useOrg.split(",")
}
} }
}) })
}else if(typeof(sid) != "undefined"){ }else if(typeof(sid) != "undefined"){
@ -797,10 +837,12 @@ export default {
this.setDetaList() this.setDetaList()
}, },
// //
handleReturn() { handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.temp = {} this.temp = {}
this.temp1 = {} this.temp1 = {}
this.temp2 = {} this.temp2 = {}
this.useOrgArry = []
// this.$router.go(-1) // this.$router.go(-1)
this.$emit('doback') this.$emit('doback')
}, },
@ -823,16 +865,18 @@ export default {
}, },
// --- // ---
findOrgId(id, options) { findOrgId(id, options) {
for (var i = 0; i < options.length; i++) { if (options) {
if (id == options[i].sid) { for (var i = 0; i < options.length; i++) {
this.select_temp = options[i].name // if (id == options[i].sid) {
return true this.select_temp = options[i].name //
} else { return true
// } else {
if (options[i].children !== undefined) { //
// if (options[i].children !== undefined) {
if (this.findOrgId(id, options[i].children)) { //
return true if (this.findOrgId(id, options[i].children)) {
return true
}
} }
} }
} }
@ -898,7 +942,7 @@ export default {
type: "success", type: "success",
duration: 2000 duration: 2000
}) })
this.handleReturn() this.handleReturn('true')
} else { } else {
this.$notify({ this.$notify({
title: "提示", title: "提示",
@ -932,7 +976,7 @@ export default {
type: "success", type: "success",
duration: 2000 duration: 2000
}) })
this.handleReturn() this.handleReturn('true')
} else { } else {
this.$notify({ this.$notify({
title: "失败", title: "失败",

18
anrui-base/anrui-base-ui/src/views/changshang/changshangguanli/changshanglook.vue

@ -4,12 +4,12 @@
<div>厂商管理详情</div> <div>厂商管理详情</div>
<div> <div>
<!-- <el-button type="primary" size="small" @click="dialogStatus==='create'?handleCreate():updateData()">保存</el-button> --> <!-- <el-button type="primary" size="small" @click="dialogStatus==='create'?handleCreate():updateData()">保存</el-button> -->
<el-button type="primary" size="small" @click="handleReturn()" <el-button type="info" size="small" @click="handleReturn()"
>返回</el-button >返回</el-button
> >
</div> </div>
</div> </div>
<div class="listconsub" style="height: auto;"> <div class="listconsub">
<el-form ref="dataForm" :title="textMap[dialogStatus]" :model="temp" label-position="right" label-width="190px" class="formadd" :rules="rules"> <el-form ref="dataForm" :title="textMap[dialogStatus]" :model="temp" label-position="right" label-width="190px" class="formadd" :rules="rules">
<div class="title">供应厂商信息</div> <div class="title">供应厂商信息</div>
<el-row> <el-row>
@ -49,7 +49,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="manufacturerTelePhone"> <el-form-item prop="manufacturerTelePhone">
<span slot="label">厂商电话</span> <span slot="label">厂商办公电话</span>
<span>{{temp.manufacturerTelePhone}}</span> <span>{{temp.manufacturerTelePhone}}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -77,7 +77,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="contactMobile"> <el-form-item prop="contactMobile">
<span slot="label">手机号</span> <span slot="label">联系人手机号</span>
<span>{{temp.contactMobile}}</span> <span>{{temp.contactMobile}}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -85,7 +85,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="contactTelePhone"> <el-form-item prop="contactTelePhone">
<span slot="label">办公电话</span> <span slot="label">联系人办公电话</span>
<span>{{temp.contactTelePhone}}</span> <span>{{temp.contactTelePhone}}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -126,7 +126,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="useOrgArry"> <el-form-item prop="useOrgName">
<span slot="label">使用组织</span> <span slot="label">使用组织</span>
<span>{{temp.useOrgName }}</span> <span>{{temp.useOrgName }}</span>
</el-form-item> </el-form-item>
@ -356,16 +356,16 @@ export default {
{ required: true, message: "请填写厂商通讯地址", trigger: "blur" }, { required: true, message: "请填写厂商通讯地址", trigger: "blur" },
], ],
manufacturerTelePhone: [ manufacturerTelePhone: [
{ required: true, message: "请填写厂商电话", trigger: "blur" }, { required: true, message: "请填写厂商办公电话", trigger: "blur" },
], ],
contactName: [ contactName: [
{ required: true, message: "请填写联系人名字", trigger: "blur" }, { required: true, message: "请填写联系人名字", trigger: "blur" },
], ],
contactMobile: [ contactMobile: [
{ required: true, message: "请填写手机号", trigger: "blur" }, { required: true, message: "请填写联系人手机号", trigger: "blur" },
], ],
contactTelePhone: [ contactTelePhone: [
{ required: true, message: "请填写办公电话", trigger: "blur" }, { required: true, message: "请填写联系人办公电话", trigger: "blur" },
], ],
weChatID: [ weChatID: [
{ required: true, message: "请填写微信号", trigger: "blur" }, { required: true, message: "请填写微信号", trigger: "blur" },

212
anrui-base/anrui-base-ui/src/views/guakaogongsi/guakaogongsiguanli/guakaogongsiguanli.vue

@ -1,48 +1,44 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="viewState ==1"> <div v-show="viewState ==1">
<div class="tab-header webtop"> <button-bar view-title="挂靠公司管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div>挂靠公司管理</div> <div class="main-content">
<div> <div class="searchcon">
<el-button type="primary" size="small" @click="handleCreate()">新建</el-button> <el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<el-button type="primary" size="small" @click="handleUpdate()">编辑</el-button> <div v-show="isSearchShow" class="search">
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button> <el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-button type="primary" size="small" @click="handleDaoChu()">导出</el-button> <el-form-item label="企业名称">
<el-button type="info" size="small">关闭</el-button> <el-input v-model="listQuery.params.orgName" placeholder="请输入企业名称" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="listQuery.params.state" class="filter-item" clearable placeholder="请选择状态">
<el-option v-for="item in states" :key="item.value" :label="item.label" :value="item.value"/>
</el-select>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</div>
</div>
</div> </div>
</div> <div class="listtop">
<div class="searchcon"> <div class="tit">挂靠公司信息列表</div>
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> <pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
<div v-show="isSearchShow" class="search"> :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="企业名称">
<el-input v-model="listQuery.params.orgName" placeholder="请输入企业名称" clearable class="filter-item"/>
</el-form-item>
<el-form-item label="状态">
<el-select v-model="listQuery.params.state" class="filter-item" clearable placeholder="请选择状态">
<el-option v-for="item in states" :key="item.value" :label="item.label" :value="item.value"/>
</el-select>
</el-form-item>
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</el-form>
</div> </div>
</div> <div class="">
<div class="listtop"> <el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;"
<div class="tit">挂靠公司信息列表</div> @selection-change="handleSelectionChange">
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> <el-table-column width="50px" type="selection" align="center"/>
</div> <el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<div class=""> <el-table-column label="企业名称" align="center">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> <template slot-scope="scope">
<el-table-column width="50px" type="selection" align="center"/> <span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.orgName }}</span>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/> </template>
<el-table-column label="企业名称" align="center"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="登记注册号码" align="center">
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.orgName }}</span> <template slot-scope="scope">
</template>
</el-table-column>
<el-table-column label="登记注册号码" align="center">
<template slot-scope="scope">
<span>{{ scope.row.registNum }}</span> <span>{{ scope.row.registNum }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -66,18 +62,20 @@
<span class="bluezi" @click="handleRenwu(row)">{{ scope.row.code }}</span> <span class="bluezi" @click="handleRenwu(row)">{{ scope.row.code }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width">
<template slot-scope="{row}"> <template slot-scope="{row}">
<!-- <el-button size="mini" type="primary" @click="handleCheck(row)">查看</el-button> --> <!-- <el-button size="mini" type="primary" @click="handleCheck(row)">查看</el-button> -->
<el-button size="mini" type="primary" @click="handleShenHeLiuCheng(row)">发起审核流程</el-button> <el-button size="mini" type="primary" @click="handleShenHeLiuCheng(row)">发起审核流程</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="pages"> <div class="pages">
<div class="tit"/> <div class="tit"/>
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> <pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div> </div>
</div> </div>
<guakaogongsiAdd v-show="viewState == 2 || viewState ==3" ref="divAdd" @doback="resetState" @reloadlist="getList"/> <guakaogongsiAdd v-show="viewState == 2 || viewState ==3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
@ -86,19 +84,22 @@
</template> </template>
<script> <script>
import { pagerList, deleteBySids } from '@/api/jichuxinxi/baseaffiliatcompany' import {deleteBySids, pagerList} from '@/api/jichuxinxi/baseaffiliatcompany'
import { setuser } from '@/utils/baocun' import {setuser} from '@/utils/baocun'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
import guakaogongsiAdd from './guakaogongsiAdd.vue' import guakaogongsiAdd from './guakaogongsiAdd.vue'
import guakaogongsiInfo from './guakaogongsiInfo.vue' import guakaogongsiInfo from './guakaogongsiInfo.vue'
import ButtonBar from '@/components/ButtonBar/index.vue'
export default { export default {
name: 'Guakaogongsiguanli', name: 'Guakaogongsiguanli',
components: { components: {
Pagination, Pagination,
pageye, pageye,
guakaogongsiAdd, guakaogongsiAdd,
guakaogongsiInfo guakaogongsiInfo,
ButtonBar
}, },
data() { data() {
@ -107,17 +108,44 @@ export default {
searchxianshitit: '显示查询条件', searchxianshitit: '显示查询条件',
viewState: 1, viewState: 1,
// --------- // ---------
menuState: { btndisabled: false,
add: false, // btnList: [
edit: false, // {
delete: false, // type: 'primary',
view: false, // size: 'small',
audit: false, // icon: 'plus',
input: false, // btnKey: 'toAdd',
output: false, // btnLabel: '新增'
upload: false, // },
release: false // {
}, type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'success',
size: 'small',
icon: 'export',
btnKey: 'build',
btnLabel: '导出'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
// ----------- // -----------
tableKey: 0, tableKey: 0,
sids: [], sids: [],
@ -141,6 +169,9 @@ export default {
states: [] states: []
} }
}, },
mounted() {
this.$refs["btnbar"].setButtonList(this.btnList)
},
created() { created() {
// //
this.init() this.init()
@ -169,6 +200,28 @@ export default {
// } // }
// }) // })
}, },
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'doExport':
this.doExport()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
// //
indexMethod(index) { indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size var pagestart = (this.listQuery.current - 1) * this.listQuery.size
@ -223,7 +276,7 @@ export default {
console.log('this.sids000000', this.sdies) console.log('this.sids000000', this.sdies)
}, },
// //
handleCreate() { toAdd() {
// this.$router.push({ // this.$router.push({
// path: '/guakaogongsi/guakaogongsiAdd/0' // path: '/guakaogongsi/guakaogongsiAdd/0'
// }) // })
@ -231,7 +284,7 @@ export default {
this.$refs['divAdd'].showAdd() this.$refs['divAdd'].showAdd()
}, },
// //
handleUpdate() { toEdit() {
if (this.sids.length === 1) { if (this.sids.length === 1) {
this.dialogStatus = 'update' this.dialogStatus = 'update'
this.viewState = 3 this.viewState = 3
@ -266,7 +319,7 @@ export default {
this.$refs['divInfo'].showInfo(scope.sid) this.$refs['divInfo'].showInfo(scope.sid)
}, },
// ID // ID
handleDelete() { doDel() {
if (this.sdies.length > 0) { if (this.sdies.length > 0) {
deleteBySids(this.sdies).then((response) => { deleteBySids(this.sdies).then((response) => {
console.log('3455', response) console.log('3455', response)
@ -300,7 +353,7 @@ export default {
this.viewState = 1 this.viewState = 1
}, },
// //
handleDaoChu(row) { doExport(row) {
this.$confirm('确定要导出数据, 是否继续?', '提示', { this.$confirm('确定要导出数据, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -343,6 +396,11 @@ export default {
// }) // })
// }) // })
}, },
doClose() {
this.$store.dispatch('tagsView/delView', this.$route);
this.$router.go(-1)
}
}, },
} }
</script> </script>
@ -368,4 +426,18 @@ export default {
.searchli { .searchli {
padding: 5px 100px; padding: 5px 100px;
} }
.btn {
padding: 15px 0 15px 0;
border: 1px solid #e0e3eb;
}
.tab-header {
background-color: #edf1f7;
padding: 8px 20px;
margin-bottom: 0 !important;
}
.tab-header /deep/ .el-form-item {
margin-bottom: 10px;
}
</style> </style>

45
anrui-base/anrui-base-ui/src/views/jingxiaoshang/jingxiaoshangguanli/jingxiaoshangAdd.vue

@ -215,7 +215,11 @@
<span>使用组织<span style="color: red">*</span></span> <span>使用组织<span style="color: red">*</span></span>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-input v-model="temp.useOrgName" maxlength="18" placeholder="" class="addinputw" clearable readonly/> <el-select v-model="useOrgValue" collapse-tags multiple placeholder="请选择" filterable clearable class="addinputw"
@change="getuseOrg">
<el-option v-for="item in useOrg_list" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
<!-- <el-input v-model="temp.useOrgName" maxlength="18" placeholder="" class="addinputw" clearable readonly/>-->
<!-- <el-form-item prop="useOrgArry">--> <!-- <el-form-item prop="useOrgArry">-->
<!-- <el-cascader v-model="useOrgArry" class="addinputw" @change="usrOrgArryChange" :options="options" :props="props"/>--> <!-- <el-cascader v-model="useOrgArry" class="addinputw" @change="usrOrgArryChange" :options="options" :props="props"/>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
@ -558,6 +562,7 @@ import { namesDownBySid } from '@/api/jichuxinxi/basevehiclemodel'
import { getNamesDownes } from '@/api/jichuxinxi/basemanufacturer' // import { getNamesDownes } from '@/api/jichuxinxi/basemanufacturer' //
import { postDownload } from '@/api/business/beiAn' import { postDownload } from '@/api/business/beiAn'
import multifileUpload from '@/components/uploadFile/multifileUpload.vue' import multifileUpload from '@/components/uploadFile/multifileUpload.vue'
import {getListOrg} from "@/api/jichuxinxi/brandManagement";
export default { export default {
name: 'jingxiaoshangAdd', name: 'jingxiaoshangAdd',
components: { components: {
@ -596,6 +601,8 @@ export default {
return { return {
viewTitle: '', viewTitle: '',
status: '', status: '',
useOrgValue: [],
useOrg_list: [], //
distributorLevel: [], distributorLevel: [],
distributorType: [], distributorType: [],
distributorType1: [], distributorType1: [],
@ -639,7 +646,7 @@ export default {
registeredCapitalOrgValue: '', registeredCapitalOrgValue: '',
remarks: '', remarks: '',
setUpTime: '', setUpTime: '',
useOrg: window.sessionStorage.getItem('orgSidPath'), useOrgSid: '',
useOrgName: window.sessionStorage.getItem('orgNamePath'), useOrgName: window.sessionStorage.getItem('orgNamePath'),
userSid: window.sessionStorage.getItem('userSid'), userSid: window.sessionStorage.getItem('userSid'),
zipCode: '', zipCode: '',
@ -727,6 +734,7 @@ export default {
this.getbie() this.getbie()
this.getlei() this.getlei()
this.getChangshang() this.getChangshang()
this.getListOrgAll()
}, },
showAdd() { showAdd() {
this.viewTitle = '【新增】经销商信息' this.viewTitle = '【新增】经销商信息'
@ -749,6 +757,11 @@ export default {
} else { } else {
this.temp = res.data this.temp = res.data
} }
if (this.temp.useOrgSid.search(',') == '-1') {
this.useOrgValue = this.temp.useOrgSid.split(" ")
} else {
this.useOrgValue = this.temp.useOrgSid.split(",")
}
} }
}) })
}, },
@ -925,6 +938,32 @@ export default {
this.gerentemp.county = bb.name this.gerentemp.county = bb.name
this.deCode.push(bb.districtCode) this.deCode.push(bb.districtCode)
}, },
// -
getListOrgAll() {
getListOrg().then((res) => {
if (res.success) {
this.useOrg_list = res.data
console.log('所有分公司',this.useOrg_list)
}
})
},
getuseOrg(val) {
console.log('选择的使用组织', val)
let choosetItem = []
val.forEach((ele) => {
choosetItem = this.useOrg_list.filter((item) => ele == item.sid)
})
console.log('chooseItem', choosetItem)
const useOrgSid = []
const useOrgName = []
choosetItem.forEach((e) => {
useOrgSid.push(e.sid)
useOrgName.push(e.name)
})
this.temp.useOrgSid = useOrgSid.join()
this.temp.useOrgName = useOrgName.join()
console.log('使用组织name:', this.temp.useOrgName, '使用组织sid:', this.temp.useOrgSid)
},
// //
handleReturn(isreload) { handleReturn(isreload) {
this.temp = { this.temp = {
@ -951,7 +990,7 @@ export default {
registeredCapitalOrg: '', registeredCapitalOrg: '',
remarks: '', remarks: '',
setUpTime: '', setUpTime: '',
useOrg: window.sessionStorage.getItem('orgSidPath'), useOrgSid: '',
useOrgName: window.sessionStorage.getItem('orgNamePath'), useOrgName: window.sessionStorage.getItem('orgNamePath'),
userSid: window.sessionStorage.getItem('userSid'), userSid: window.sessionStorage.getItem('userSid'),
zipCode: '', zipCode: '',

194
anrui-base/anrui-base-ui/src/views/jingxiaoshang/jingxiaoshangguanli/jingxiaoshangguanli.vue

@ -1,49 +1,46 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div v-show="viewState ==1"> <div v-show="viewState ==1">
<div class="tab-header webtop"> <button-bar view-title="经销商管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div>经销商管理</div> <div class="main-content">
<div> <div class="searchcon">
<el-button type="primary" size="small" @click="handleCreate()">新建</el-button> <el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<el-button type="primary" size="small" @click="handleUpdate()">编辑</el-button> <div v-show="isSearchShow" class="search">
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button> <el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-button type="danger" size="small">下线</el-button> <el-form-item label="经销商名称">
<el-button type="success" size="small" @click="handleDaoChu()">导出</el-button> <el-input v-model="listQuery.params.distributorName" placeholder="请输入经销商名称" clearable
<el-button type="info" size="small">关闭</el-button> class="filter-item"/>
</div> </el-form-item>
</div> <el-form-item label="审核状态">
<div class="searchcon"> <el-select v-model="listQuery.params.type" class="filter-item" clearable placeholder="请选择审核状态"
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> style="width: 200px;">
<div v-show="isSearchShow" class="search"> <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value"/>
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header"> </el-select>
<el-form-item label="经销商名称">
<el-input v-model="listQuery.params.distributorName" placeholder="请输入经销商名称" clearable class="filter-item" />
</el-form-item>
<el-form-item label="审核状态">
<el-select v-model="listQuery.params.type" class="filter-item" clearable placeholder="请选择审核状态" style="width: 200px;">
<el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</el-form-item> </el-form-item>
<el-button type="primary" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" size="small" @click="handleFilter">重置</el-button>
</el-form> </el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</div>
</div> </div>
</div> </div>
<div class="listtop"> <div class="listtop">
<div class="tit">经销商信息列表</div> <div class="tit">经销商信息列表</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.pageSize" class="pagination" @pagination="getList" /> <pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
</div> :limit.sync="listQuery.pageSize" class="pagination" @pagination="getList"/>
<div class=""> </div>
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> <div class="">
<el-table-column width="50px" type="selection" align="center" /> <el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;"
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center" /> @selection-change="handleSelectionChange">
<el-table-column label="经销商名称" align="center"> <el-table-column width="50px" type="selection" align="center"/>
<template slot-scope="scope"> <el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.distributorName }}</span> <el-table-column label="经销商名称" align="center">
</template> <template slot-scope="scope">
</el-table-column> <span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.distributorName }}</span>
<el-table-column label="经销商属性" align="center"> </template>
<template slot-scope="scope"> </el-table-column>
<el-table-column label="经销商属性" align="center">
<template slot-scope="scope">
<span>{{ scope.row.distributorClassificationValue}}</span> <span>{{ scope.row.distributorClassificationValue}}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -67,12 +64,14 @@
<span>{{ scope.row.code }}</span> <span>{{ scope.row.code }}</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div class="pages"> <div class="pages">
<div class="tit" /> <div class="tit"/>
<!-- 翻页 --> <!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList" /> <pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div> </div>
</div> </div>
<jingxiaoshangAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/> <jingxiaoshangAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
@ -83,9 +82,11 @@
<script> <script>
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
import { pagerList, deleteBySids, basefinbankExportExcel } from '@/api/business/jingXiaoShangGuanLi' import {basefinbankExportExcel, deleteBySids, pagerList} from '@/api/business/jingXiaoShangGuanLi'
import jingxiaoshangAdd from './jingxiaoshangAdd.vue' import jingxiaoshangAdd from './jingxiaoshangAdd.vue'
import jingxiaoshangInfo from './jingxiaoshangInfo.vue' import jingxiaoshangInfo from './jingxiaoshangInfo.vue'
import ButtonBar from '@/components/ButtonBar/index.vue'
export default { export default {
name: 'Jingxiaoshangguanli', name: 'Jingxiaoshangguanli',
components: { components: {
@ -93,11 +94,50 @@ export default {
pageye, pageye,
jingxiaoshangAdd, jingxiaoshangAdd,
jingxiaoshangInfo, jingxiaoshangInfo,
ButtonBar
}, },
data() { data() {
return { return {
isSearchShow: false, isSearchShow: false,
searchxianshitit: '显示查询条件', searchxianshitit: '显示查询条件',
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'success',
size: 'small',
icon: 'export',
btnKey: 'build',
btnLabel: '导出'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
viewState: 1, viewState: 1,
sids: [], sids: [],
tableKey: 0, tableKey: 0,
@ -116,6 +156,9 @@ export default {
rules: {} rules: {}
} }
}, },
mounted() {
this.$refs["btnbar"].setButtonList(this.btnList)
},
created() { created() {
// //
this.getList() this.getList()
@ -136,6 +179,28 @@ export default {
var pageindex = index + 1 + pagestart var pageindex = index + 1 + pagestart
return pageindex return pageindex
}, },
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'doExport':
this.doExport()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
// //
getList() { getList() {
this.listLoading = true this.listLoading = true
@ -155,8 +220,18 @@ export default {
this.listQuery.current = 1 this.listQuery.current = 1
this.getList() this.getList()
}, },
//
handleReset() {
this.listQuery = {
params: {},
current: 1,
size: 10,
total: 0
}
this.getList()
},
// //
handleCreate() { toAdd() {
this.viewState = 2 this.viewState = 2
this.$refs['divAdd'].showAdd() this.$refs['divAdd'].showAdd()
}, },
@ -168,7 +243,7 @@ export default {
this.sids = aa this.sids = aa
}, },
// //
handleUpdate() { toEdit() {
if (this.sids.length === 1) { if (this.sids.length === 1) {
this.viewState = 3 this.viewState = 3
this.$refs['divAdd'].showEdit(this.sids) this.$refs['divAdd'].showEdit(this.sids)
@ -195,7 +270,7 @@ export default {
this.$refs['divInfo'].showInfo(row) this.$refs['divInfo'].showInfo(row)
}, },
// ID // ID
handleDelete() { doDel() {
if (this.sids.length > 0) { if (this.sids.length > 0) {
deleteBySids(this.sids).then((response) => { deleteBySids(this.sids).then((response) => {
if (response.code === '200') { if (response.code === '200') {
@ -228,7 +303,7 @@ export default {
this.viewState = 1 this.viewState = 1
}, },
// //
handleDaoChu() { doExport() {
basefinbankExportExcel(this.sids).then((res) => { basefinbankExportExcel(this.sids).then((res) => {
const blob = new Blob([res], { const blob = new Blob([res], {
type: 'application/vnd.ms-excel' type: 'application/vnd.ms-excel'
@ -278,7 +353,12 @@ export default {
// message: '' // message: ''
// }) // })
// }) // })
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route);
this.$router.go(-1)
} }
} }
} }
</script> </script>
@ -313,4 +393,18 @@ export default {
.pagination { .pagination {
margin-bottom: -10px; margin-bottom: -10px;
} }
.btn {
padding: 15px 0 15px 0;
border: 1px solid #e0e3eb;
}
.tab-header {
background-color: #edf1f7;
padding: 8px 20px;
margin-bottom: 0 !important;
}
.tab-header /deep/ .el-form-item {
margin-bottom: 10px;
}
</style> </style>

2
anrui-base/anrui-base-ui/src/views/login/login.vue

@ -51,7 +51,7 @@
</template> </template>
<script> <script>
import { login, imgCode } from '@/api/user1.js' import { login, imgCode } from '@/api/user.js'
import user from '@/api/User/login.js' import user from '@/api/User/login.js'
import { setToken, getToken, setSession } from '@/utils/auth' import { setToken, getToken, setSession } from '@/utils/auth'
import imgCodeRole from '@/components/imgCodeRole/index.vue' import imgCodeRole from '@/components/imgCodeRole/index.vue'

437
anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiAdd.vue

@ -1,8 +1,8 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="tab-header webtop"> <div class="tab-header webtop">
<div v-if="stateId==='0'">新增品牌</div> <div v-if="stateId==='0'">新增品牌</div>
<div v-else>修改品牌</div> <div v-else>修改品牌</div>
<div> <div>
<el-button type="primary" size="small" @click="handleCreate()">保存</el-button> <el-button type="primary" size="small" @click="handleCreate()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button> <el-button type="info" size="small" @click="handleReturn()">返回</el-button>
@ -54,10 +54,14 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="useOrgArry"> <el-form-item prop="useOrg">
<span slot="label">使用组织</span> <span slot="label">使用组织</span>
<el-cascader v-model="useOrgArry" class="addinputw" @change="usrOrgArryChange" :options="options" <el-select v-model="useOrgValue" multiple placeholder="请选择" filterable clearable class="addinputw"
:props="props" /> @change="getuseOrg">
<el-option v-for="item in useOrg_list" :key="item.sid" :label="item.name" :value="item.sid"/>
</el-select>
<!-- <el-cascader v-model="useOrgArry" class="addinputw" @change="usrOrgArryChange" :options="options"-->
<!-- :props="props" />-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -67,185 +71,213 @@
</template> </template>
<script> <script>
import { import {mapGetters} from 'vuex'
mapGetters // import {
} from 'vuex' // getServiceTypeList,
// import { // getServiceTypePageList,
// getServiceTypeList, // addServiceType,
// getServiceTypePageList, // getServiceType,
// addServiceType, // editServiceType,
// getServiceType, // delServiceType,
// editServiceType, // } from "@/api/yanglao/serviceType";
// delServiceType, // import { getFileType, parseDate, parseTime, ConvertMenuState } from "@/utils";
// } from "@/api/yanglao/serviceType"; // import { selectListOrg } from '@/api/jichuxinxi/basemanufacturer'
// import { getFileType, parseDate, parseTime, ConvertMenuState } from "@/utils"; import {
// import { selectListOrg } from '@/api/jichuxinxi/basemanufacturer' details,
import { dictType,
pagerList, getListOrg,
SaveList, namesDown,
Update, SaveList,
deleteBySids, selectListOrg,
details, Update
dictType, } from '@/api/jichuxinxi/brandManagement'
selectListOrg,
namesDown export default {
} from '@/api/jichuxinxi/brandManagement' name: 'PinpaiAdd',
export default { // components: { },
name: 'PinpaiAdd', data() {
// components: { }, var validCascader = (rule, value, callback) => {
data() { if (this.useOrgArry.length == 0) {
var validCascader = (rule, value, callback) => { callback(new Error('请填写使用组织'))
if (this.useOrgArry.length == 0) { } else {
callback(new Error('请填写使用组织')) callback();
} else { }
callback(); };
return {
// ---------
menuState: {
add: false, //
edit: false, //
delete: false, //
view: false, //
audit: false, //
input: false, //
output: false, //
upload: false, //
release: false //
},
dataArr: [],
FormLoading: false,
listLoading: false,
temp: {}, //
useOrgArry: [],
useOrg_list: [], //
templook: {}, //
textMap: {
update: '修改',
create: '创建'
},
stateId: 0,
dialogFormVisible: false, //
dialogFormShowVisible: false, //
dialogStatus: '', //
fenzuOptions: [],
rules: {
brandCode: [{
required: true,
message: '请填写品牌编码',
trigger: 'blur'
}],
brandName: [{
required: true,
message: '请填写品牌名称',
trigger: 'blur'
}],
brandType: [{
required: true,
message: '请选择品牌类型',
trigger: 'blur'
}],
isValidity: [{
required: true,
message: '请选择是否有效',
trigger: 'blur'
}],
manufacturerSid: [{
required: true,
message: '请选择厂商名称',
trigger: 'blur'
}],
useOrgArry: [{
required: true,
validator: validCascader,
trigger: "change"
}],
},
// brandType: null,
brandType: 'brandType',
brand: [],
modelValue: [],
modelValue2: [],
useOrgValue: [],
isValiditys: [{
dictValue: '是',
sid: '1'
},
{
dictValue: '否',
sid: '2'
} }
}; ],
return { options: [],
// --------- useOrg: [],
menuState: { props: {
add: false, // value: 'sid',
edit: false, // label: 'name',
delete: false, // children: 'children',
view: false, // // checkStrictly: true,
audit: false, // multiple: true
input: false, // },
output: false, // supplierType: []
upload: false, // // ------------------------------------
release: false // }
}, },
dataArr: [], computed: {
FormLoading: false, ...mapGetters([
listLoading: false, 'id',
temp: {}, // 'roles',
useOrgArry: [], 'rolesIds',
templook: {}, // 'departmentId',
textMap: { 'departmentCode'
update: '修改', ])
create: '创建' },
}, created() {
stateId: 0, //
dialogFormVisible: false, // this.init()
dialogFormShowVisible: false, // this.geTName()
dialogStatus: '', // this.getZuZhi()
fenzuOptions: [], this.getListOrgAll()
rules: { //
brandCode: [{ // this.getList()
required: true, },
message: '请填写品牌编码', methods: {
trigger: 'blur' init() {
}], this.stateId = this.$route.params.id
brandName: [{ if (this.stateId !== '0') {
required: true, details(this.stateId).then((response) => {
message: '请填写品牌名称', if (response.code === '200') {
trigger: 'blur' this.temp = response.data
}], // this.useOrgArry = response.data.useOrg
brandType: [{ if (this.temp.useOrg.search(',') == '-1') {
required: true, this.useOrgValue = this.temp.useOrg.split(" ")
message: '请选择品牌类型', } else {
trigger: 'blur' this.useOrgValue = this.temp.useOrg.split(",")
}], }
isValidity: [{
required: true,
message: '请选择是否有效',
trigger: 'blur'
}],
manufacturerSid: [{
required: true,
message: '请选择厂商名称',
trigger: 'blur'
}],
useOrgArry: [{
required: true,
validator: validCascader,
trigger: "change"
}],
},
// brandType: null,
brandType: 'brandType',
brand: [],
modelValue: [],
modelValue2: [],
isValiditys: [{
dictValue: '是',
sid: '1'
},
{
dictValue: '否',
sid: '2'
} }
], })
options: [],
useOrg: [],
props: {
value: 'sid',
label: 'name',
children: 'children',
// checkStrictly: true,
multiple: true
},
supplierType: []
// ------------------------------------
} }
this.selectDict()
}, },
computed: { // ------------------------------------------------------
...mapGetters([ //
'id', handleReturn() {
'roles', this.$router.go(-1)
'rolesIds',
'departmentId',
'departmentCode'
])
}, },
created() { //
// getListOrgAll() {
this.init() getListOrg().then((res) => {
this.geTName() if (res.success) {
this.getZuZhi() this.useOrg_list = res.data
// }
// this.getList() })
}, },
methods: { getuseOrg(val) {
init() { console.log('选择的使用组织', val,this.useOrg_list)
this.stateId = this.$route.params.id var choosetItem = []
if (this.stateId !== '0') { val.forEach((ele) => {
details(this.stateId).then((response) => { console.log('111222333',ele)
if (response.code === '200') { choosetItem.push(this.useOrg_list.filter((item) => ele == item.sid)[0])
if (response.data.useOrg) { })
this.useOrgArry = response.data.useOrg console.log('使用组织chooseItem', choosetItem)
// console.log('8888888888888888',response.data.useOrgArry) const useOrgName = []
} choosetItem.forEach((e) => {
this.temp = response.data useOrgName.push(e.name)
console.log(this.temp, 555555555555) })
} console.log('所选组织名字数组', useOrgName)
}) this.temp.useOrg = val.join()
this.temp.useOrgName = useOrgName.join()
console.log('使用组织name:', this.temp.useOrgName, '使用组织sid:', this.temp.useOrg)
},
selectDict() {
dictType({
psid: 0,
type: 'brandType'
}).then((response) => {
if (response.code === '200') {
this.brand = response.data
} }
this.selectDict() })
}, },
// ------------------------------------------------------ usrOrgArryChange(e) {
// console.log('选中结果:' + JSON.stringify(e))
handleReturn() { var result = ''
this.$router.go(-1) if (e.length > 0) {
}, //
selectDict() { e.forEach((item) => {
dictType({ var last_id = item[item.length - 1]
psid: 0, // console.log('options'+JSON.stringify(this.options))
type: 'brandType' //
}).then((response) => {
if (response.code === '200') {
this.brand = response.data
}
})
},
usrOrgArryChange(e) {
console.log('选中结果:' + JSON.stringify(e))
var result = ''
if (e.length > 0) {
//
e.forEach((item) => {
var last_id = item[item.length - 1]
// console.log('options'+JSON.stringify(this.options))
//
this.select_temp = '' // this.select_temp = '' //
this.findOrgId(last_id, this.options) this.findOrgId(last_id, this.options)
result = result + this.select_temp + ',' result = result + this.select_temp + ','
@ -287,12 +319,14 @@
}, },
zuzhi0(data) { zuzhi0(data) {
data.forEach((e) => { data.forEach((e) => {
if (e.children.length != 0) { if (e.children) {
this.zuzhi0(e.children) if (e.children.length != 0) {
} else { this.zuzhi0(e.children)
delete e.children } else {
this.dataArr.push(e) delete e.children
return this.dataArr.push(e)
return
}
} }
}) })
}, },
@ -320,6 +354,7 @@
}, },
// //
handleCreate() { handleCreate() {
console.log('已选择的组织', this.useOrgValue)
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (valid) { if (valid) {
this.FormLoading = true this.FormLoading = true
@ -351,15 +386,15 @@
// useOrg2 = abc.toString() // useOrg2 = abc.toString()
// this.useOrgArry = useOrg2 // this.useOrgArry = useOrg2
// } // }
if (this.useOrgArry) { // if (this.useOrgArry) {
var abc = [] // var abc = []
this.useOrgArry.forEach((e) => { // this.useOrgArry.forEach((e) => {
console.log('77777777', e) // console.log('77777777', e)
abc.push(e[e.length - 1]) // abc.push(e[e.length - 1])
}) // })
this.temp.useOrg = abc.toString() // this.temp.useOrg = abc.toString()
console.log('abcabc', this.temp.useOrg) // console.log('abcabc', this.temp.useOrg)
} // }
console.log(123456789) console.log(123456789)
SaveList(this.temp).then((response) => { SaveList(this.temp).then((response) => {
console.log(123) console.log(123)
@ -379,15 +414,15 @@
} }
}) })
} else { } else {
if (this.useOrgArry) { // if (this.useOrgArry) {
var abc = [] // var abc = []
this.useOrgArry.forEach((e) => { // this.useOrgArry.forEach((e) => {
console.log('77777777', e) // console.log('77777777', e)
abc.push(e[e.length - 1]) // abc.push(e[e.length - 1])
}) // })
this.temp.useOrg = abc.toString() // this.temp.useOrg = abc.toString()
console.log('abcabc', this.temp.useOrg) // console.log('abcabc', this.temp.useOrg)
} // }
this.temp.sid = this.stateId this.temp.sid = this.stateId
Update(this.temp).then((response) => { Update(this.temp).then((response) => {
console.log('返回值:', response) console.log('返回值:', response)

408
anrui-base/anrui-base-ui/src/views/pinpai/pinpaiguanli/pinpaiguanli.vue

@ -1,137 +1,117 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<div class="tab-header webtop"> <button-bar view-title="品牌管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div>品牌管理</div> <div class="main-content">
<div> <div class="searchcon">
<el-button type="primary" size="small" @click="handleCreate()">新增</el-button> <el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<el-button type="primary" size="small" @click="handleUpdate()">修改</el-button> <div v-show="isSearchShow" class="search">
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button> <el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<!-- <el-button type="success" size="small" @click="handleDaoRu()">导入</el-button> --> <div class="searchli">
<el-button type="success" size="small" @click="handleDaoChu()">导出</el-button> <el-form-item label="厂商名称">
</div> <el-autocomplete v-model="listQuery.manufacturerName" :fetch-suggestions="querySearchAsync1"
</div> style="width: 300px" placeholder="请输入厂商名称" @select="handleSelect1">
<div class="searchcon"> <i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear1"/>
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> <template slot-scope="{ item }">
<div v-show="isSearchShow" class="search"> <div style="paddingg:5px;background-color:Azure;">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header"> <span>厂商名称</span>
<div class="searchli"> <span style="color:red">{{ item.manufacturerName }} </span><br>
<el-form-item label="厂商名称"> </div>
<el-autocomplete v-model="listQuery.manufacturerName" :fetch-suggestions="querySearchAsync1" style="width: 300px" placeholder="请输入厂商名称" @select="handleSelect1"> </template>
<i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear1" /> </el-autocomplete>
<template slot-scope="{ item }"> </el-form-item>
<div style="paddingg:5px;background-color:Azure;"> <el-form-item label="品牌名称">
<span>厂商名称</span> <!-- <el-input v-model="listQuery.brandName" placeholder="请输入品牌名称" clearable class="filter-item" /> -->
<span style="color:red">{{ item.manufacturerName }} </span><br> <el-autocomplete v-model="listQuery.brandName" :fetch-suggestions="querySearchAsync"
</div> style="width: 300px" placeholder="请输入品牌名称" @select="handleSelect">
</template> <i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear"/>
</el-autocomplete> <template slot-scope="{ item }">
</el-form-item> <div style="paddingg:5px;background-color:Azure;">
<el-form-item label="品牌名称"> <span>品牌名称</span>
<!-- <el-input v-model="listQuery.brandName" placeholder="请输入品牌名称" clearable class="filter-item" /> --> <!-- <span style="color:red">{{ item.brandName }} (<span style="color:green">{{ item.sid }}</span>) </span><br> -->
<el-autocomplete v-model="listQuery.brandName" :fetch-suggestions="querySearchAsync" style="width: 300px" placeholder="请输入品牌名称" @select="handleSelect"> <span style="color:red">{{ item.brandName }} </span><br>
<i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear" /> </div>
<template slot-scope="{ item }"> </template>
<div style="paddingg:5px;background-color:Azure;"> </el-autocomplete>
<span>品牌名称</span> </el-form-item>
<!-- <span style="color:red">{{ item.brandName }} (<span style="color:green">{{ item.sid }}</span>) </span><br> --> </div>
<span style="color:red">{{ item.brandName }} </span><br> </el-form>
</div> <div class="btn" style="text-align: center;">
</template>
</el-autocomplete>
</el-form-item>
<el-button type="primary" @click="handleFilter">查询</el-button> <el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</div> </div>
<!-- <div class="searchli"> </div>
<el-form-item label="首字母检索">
<el-radio-group v-model="listQuery.manage" size="mini">
<el-radio-button label="A" />
<el-radio-button label="B" />
<el-radio-button label="C" />
<el-radio-button label="D" /><el-radio-button label="E" /><el-radio-button label="F" /><el-radio-button label="G" />
<el-radio-button label="H" /><el-radio-button label="I" /><el-radio-button label="J" /><el-radio-button label="K" />
<el-radio-button label="L" /><el-radio-button label="M" /><el-radio-button label="N" /><el-radio-button label="O" />
<el-radio-button label="P" /><el-radio-button label="Q" /><el-radio-button label="R" /><el-radio-button label="S" />
<el-radio-button label="T" /><el-radio-button label="U" /><el-radio-button label="V" /><el-radio-button label="W" />
<el-radio-button label="X" /><el-radio-button label="Y" /><el-radio-button label="Z" />
</el-radio-group>
</el-form-item>
</div> -->
</el-form>
</div> </div>
</div> <div class="listtop">
<div class="listtop"> <div class="tit">品牌信息列表</div>
<div class="tit">品牌信息列表</div> <!-- <pageye v-show="total>0" :total="total" :page.sync="listQuery.pageNumber" :limit.sync="listQuery.pageSize" class="pagination" @pagination="getList" /> -->
<!-- <pageye v-show="total>0" :total="total" :page.sync="listQuery.pageNumber" :limit.sync="listQuery.pageSize" class="pagination" @pagination="getList" /> --> <pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
<pageye v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList" /> class="pagination" @pagination="getList"/>
</div> </div>
<div class="listcon"> <div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change=" handleSelectionChange"> <el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;"
<el-table-column width="50px" type="selection" align="center" /> @selection-change=" handleSelectionChange">
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center" /> <el-table-column width="50px" type="selection" align="center"/>
<el-table-column label="品牌名称" align="center"> <el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<template slot-scope="scope"> <el-table-column label="品牌名称" align="center">
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.brandName }}</span> <template slot-scope="scope">
</template> <span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.brandName }}</span>
</el-table-column> </template>
<el-table-column label="品牌编码" align="center"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="品牌编码" align="center">
<span>{{ scope.row.brandCode }}</span> <template slot-scope="scope">
</template> <span>{{ scope.row.brandCode }}</span>
</el-table-column> </template>
<el-table-column label="厂商" align="center"> </el-table-column>
<template slot-scope="scope"> <el-table-column label="品牌类型" align="center">
<span>{{ scope.row.manufacturerName }}</span> <template slot-scope="scope">
</template> <span>{{ scope.row.brandTypeValue }}</span>
</el-table-column> </template>
<el-table-column label="更新时间" align="center"> </el-table-column>
<template slot-scope="scope"> <el-table-column width="340px" label="厂商" align="center">
<span>{{ scope.row.modifyTime }}</span> <template slot-scope="scope">
<span>{{ scope.row.manufacturerName }}</span>
</template>
</el-table-column>
<el-table-column width="120px" label="是否有效" align="center">
<template slot-scope="scope">
<span>{{ scope.row.isValidity }}</span>
</template>
</el-table-column>
<el-table-column width="160px" label="更新时间" align="center">
<template slot-scope="scope">
<span>{{ scope.row.modifyTime }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width">
<template slot-scope="{row}">
<el-button size="mini" type="primary" @click="handleCheck(row)">查看</el-button>
</template> </template>
</el-table-column> </el-table-column> -->
<!-- <el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width"> </el-table>
<template slot-scope="{row}"> </div>
<el-button size="mini" type="primary" @click="handleCheck(row)">查看</el-button> <div class="pages">
</template> <div class="tit"/>
</el-table-column> --> <!-- 翻页 -->
</el-table> <!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.pageNumber" :limit.sync="listQuery.pageSize" class="pagination" @pagination="getList" /> -->
</div> <pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size"
<div class="pages"> class="pagination" @pagination="getList"/>
<div class="tit" />
<!-- 翻页 -->
<!-- <pagination v-show="total>0" :total="total" :page.sync="listQuery.pageNumber" :limit.sync="listQuery.pageSize" class="pagination" @pagination="getList" /> -->
<pagination v-show="total>0" :total="total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList" />
</div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import {mapGetters} from 'vuex'
// import { import {getNamesDownes} from '@/api/jichuxinxi/basemanufacturer'
// getServiceTypeList, import {basefinbankExportExcel, brandLike, deleteBySids, dictType, pagerList} from '@/api/jichuxinxi/brandManagement'
// getServiceTypePageList,
// addServiceType,
// getServiceType,
// editServiceType,
// delServiceType,
// } from "@/api/yanglao/serviceType";
// import { getFileType, parseDate, parseTime, ConvertMenuState } from "@/utils";
// import { findButtonByUserId } from '@/api/sys/permission'
import { getNamesDownes } from '@/api/jichuxinxi/basemanufacturer'
import {
pagerList,
brandLike,
dictType,
deleteBySids,
basefinbankExportExcel
} from '@/api/jichuxinxi/brandManagement'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar/index.vue'
export default { export default {
name: 'Pinpaiguanli', name: 'Pinpaiguanli',
components: { Pagination, pageye }, components: {Pagination, pageye, ButtonBar},
// directives: { // directives: {
// drag: { // drag: {
// // // //
@ -172,6 +152,44 @@ export default {
return { return {
isSearchShow: false, isSearchShow: false,
searchxianshitit: '显示查询条件', searchxianshitit: '显示查询条件',
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'success',
size: 'small',
icon: 'export',
btnKey: 'build',
btnLabel: '导出'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
// --------- // ---------
menuState: { menuState: {
add: false, // add: false, //
@ -244,6 +262,9 @@ export default {
'departmentCode', 'departmentCode',
]), ]),
}, },
mounted() {
this.$refs["btnbar"].setButtonList(this.btnList)
},
created() { created() {
// //
this.init() this.init()
@ -260,8 +281,30 @@ export default {
this.searchxianshitit = '显示查询条件' this.searchxianshitit = '显示查询条件'
} }
}, },
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'doExport':
this.doExport()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
init() { init() {
dictType({ psid: 0, type: 'supplierType' }).then((response) => { dictType({psid: 0, type: 'supplierType'}).then((response) => {
if (response.code === '200') { if (response.code === '200') {
this.supplierType = response.data this.supplierType = response.data
} }
@ -278,14 +321,7 @@ export default {
// } // }
// }) // })
}, },
searchData(data) {
brandLike(data).then((response) => {
console.log(response, 7777777777)
if (response.code === '200') {
this.YongHu = response.data
}
})
},
// //
indexMethod(index) { indexMethod(index) {
// var pagestart = (this.listQuery.pageNumber - 1) * this.listQuery.pageSize // var pagestart = (this.listQuery.pageNumber - 1) * this.listQuery.pageSize
@ -326,6 +362,11 @@ export default {
e.manufacturerName = a.dictValue e.manufacturerName = a.dictValue
} }
}) })
if (e.isValidity == '1'){
e.isValidity = '是'
}else if (e.isValidity == '2'){
e.isValidity = '否'
}
}) })
console.log(this.list, 11111111111) console.log(this.list, 11111111111)
// setuser(response.data.records.sid) // setuser(response.data.records.sid)
@ -341,7 +382,15 @@ export default {
this.listQuery.pageNumber = 1 this.listQuery.pageNumber = 1
this.getList() this.getList()
}, },
handleReset() {
this.listQuery = {
params: {},
current: 1,
size: 10,
total: 0
}
this.getList()
},
// ------------------------------------------------------ // ------------------------------------------------------
// //
resetTemp() { resetTemp() {
@ -354,6 +403,14 @@ export default {
state: '', // state: '', //
} }
}, },
searchData01(data) {
brandLike(data).then((response) => {
console.log(response, 7777777777)
if (response.code === '200') {
this.YongHu = response.data
}
})
},
// //
querySearchAsync(queryString, cb) { querySearchAsync(queryString, cb) {
console.log('查询条件:', queryString) console.log('查询条件:', queryString)
@ -363,8 +420,8 @@ export default {
queryString != undefined && queryString != undefined &&
queryString !== '' queryString !== ''
) { ) {
this.searchData({ name: queryString }) this.searchData01({name: queryString})
brandLike({ name: queryString }).then((response) => { brandLike({name: queryString}).then((response) => {
if (response.code === '200') { if (response.code === '200') {
response.data response.data
cb(response.data) cb(response.data)
@ -432,8 +489,8 @@ export default {
// this.listQuery.brandCode = '' // this.listQuery.brandCode = ''
}, },
// //
handleCreate() { toAdd() {
this.$router.push({ path: '/pinpai/pinpaiAdd/0' }) this.$router.push({path: '/pinpai/pinpaiAdd/0'})
}, },
// //
handleDaoRu() { handleDaoRu() {
@ -493,7 +550,7 @@ export default {
// console.log('wpwpwpw',this.daochu_user) // console.log('wpwpwpw',this.daochu_user)
}, },
// //
handleUpdate(row) { toEdit(row) {
// this.resetTemp() // this.resetTemp()
// const tempData = Object.assign({}, row) // copy obj // const tempData = Object.assign({}, row) // copy obj
// this.FormLoading = true // this.FormLoading = true
@ -575,39 +632,47 @@ export default {
}) })
}, },
// ID // ID
handleDelete() { doDel() {
if(this.sids.length>0){ if (this.sids.length > 0) {
deleteBySids(this.sids).then((response) => { const _this = this
console.log('3455', response) const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
if (response.code === '200') { this.$confirm(tip, '提示', {
this.$notify({ confirmButtonText: '确定',
title: '提示', cancelButtonText: '取消',
message: '删除成功', type: 'warning'
type: 'success',
duration: 2000,
})
this.getList()
} else {
this.$notify({
title: '删除失败',
message: response.msg,
type: 'error',
})
}
}) })
.then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
deleteBySids(this.sids)
.then(resp => {
if (resp.success && resp.code == '200'){
loading.close()
_this.$message({ type: 'success', message: resp.msg, showClose: true })
_this.getList()
}else {
loading.close()
// _this.$message({ type: 'error', message: resp.msg, showClose: true })
}
})
.catch(e => {
loading.close()
})
})
.catch(() => {
})
}else{ }else{
this.$notify({ this.$message({ type: 'error', message: '没有选择品牌!', showClose: true })
title: '提示',
message: '没有选择品牌!!',
type: 'error',
duration: 2000,
})
return return
} }
}, },
// //
handleDaoChu() { doExport() {
// this.$confirm(', ?', '', { // this.$confirm(', ?', '', {
// confirmButtonText: '', // confirmButtonText: '',
// cancelButtonText: '', // cancelButtonText: '',
@ -627,6 +692,10 @@ export default {
}) })
}) })
}, },
doClose() {
this.$store.dispatch('tagsView/delView', this.$route);
this.$router.go(-1)
}
}, },
} }
</script> </script>
@ -639,18 +708,31 @@ export default {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
/deep/ .el-collapse-item__wrap { /deep/ .el-collapse-item__wrap {
border-bottom: 0px solid #ebeef5; border-bottom: 0px solid #ebeef5;
} }
/deep/ .el-collapse-item__header { /deep/ .el-collapse-item__header {
border-bottom: 0px solid #e6ebf5; border-bottom: 0px solid #e6ebf5;
} }
.searchli { .searchli {
padding: 5px 100px; padding: 5px 100px;
} }
.listcon {
height: calc(100vh - 430px); .btn {
overflow-y: auto; padding: 15px 0 15px 0;
overflow-x: hidden; border: 1px solid #e0e3eb;
}
.tab-header {
background-color: #edf1f7;
padding: 8px 20px;
margin-bottom: 0 !important;
}
.tab-header /deep/ .el-form-item {
margin-bottom: 10px;
} }
</style> </style>

14
anrui-base/anrui-base-ui/src/views/zifang/zifangzhengce/zifangzhengce.vue

@ -252,13 +252,13 @@
} }
}, },
zifangmingcheng() { zifangmingcheng() {
basefinbankDnamesDown({ name: this.temp.manageName }).then((res) => { basefinbankDnamesDown({ name: this.temp.manageName }).then((res) => {
if (res.code === '200') { if (res.code === '200') {
console.log(res.data, 66666666666) console.log(res.data, 66666666666)
this.manageNameType = res.data this.manageNameType = res.data
} }
}) })
}, },
querySearchAsync(queryString, cb) { querySearchAsync(queryString, cb) {
console.log('查询条件:', queryString) console.log('查询条件:', queryString)

2
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengce.vue

@ -7,7 +7,7 @@
<el-button type="primary" icon="el-icon-plus" size="small" @click="handleCreate()">新增</el-button> <el-button type="primary" icon="el-icon-plus" size="small" @click="handleCreate()">新增</el-button>
<el-button type="primary" size="small">提交</el-button> <el-button type="primary" size="small">提交</el-button>
<el-button type="danger" icon="el-icon-delete" size="small" @click="handleDelete()">删除</el-button> <el-button type="danger" icon="el-icon-delete" size="small" @click="handleDelete()">删除</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> <el-button type="info" icon="el-icon-close" size="small" @click="handleReturn()">关闭</el-button>
</div> </div>
</div> </div>
<div class="webcon"> <div class="webcon">

25
anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengceAdd.vue

@ -52,7 +52,8 @@
</el-col> </el-col>
<el-col :span="8" class="trightb"> <el-col :span="8" class="trightb">
<el-form-item> <el-form-item>
<el-input v-model="temp.projectCost" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.projectCost" class="addinputw" placeholder="" clearable
@keyup.native="temp.projectCost = oninput(temp.projectCost,2)"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" class="tleftb"> <el-col :span="4" class="tleftb">
@ -60,7 +61,8 @@
</el-col> </el-col>
<el-col :span="8" class="trightb"> <el-col :span="8" class="trightb">
<el-form-item> <el-form-item>
<el-input v-model="temp.discountMoney" class="addinputw" placeholder="" clearable/> <el-input v-model="temp.discountMoney" class="addinputw" placeholder="" clearable
@keyup.native="temp.discountMoney = oninput(temp.discountMoney,2)"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -173,6 +175,25 @@ export default {
}) })
this.getType() this.getType()
}, },
//
oninput(val, limit = 0) {
val = val.replace(/[^\d.]/g, ""); //
val = val.replace(/^00/, "0."); //0
val = val.replace(/^\./g, "0."); //0.
val = val.replace(/\.{2,}/g, "."); //
val = val.replace(".", "$#$").replace(/\./g, "").replace("$#$", "."); //
/^0\d+/.test(val) ? val = val.slice(1) : ''; //0
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$'
const reg = new RegExp(str)
if (limit === 0) {
//
val = val.replace(reg, '$1')
} else {
//
val = val.replace(reg, '$1.$2')
}
return val
},
showAdd() { showAdd() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].clearValidate() this.$refs['dataForm'].clearValidate()

5
anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengInfo.vue

@ -30,8 +30,9 @@
<el-row> <el-row>
<el-col :span="4" class="trightb">合格证情况</el-col> <el-col :span="4" class="trightb">合格证情况</el-col>
<el-col :span="8" class="tleft"> {{ temp.certificateSituationValue }}</el-col> <el-col :span="8" class="tleft"> {{ temp.certificateSituationValue }}</el-col>
<el-col :span="4" class="trightb"/> <el-col :span="4" class="trightb" v-show="temp.certificateStateValue == '正式'">公告型号</el-col>
<el-col :span="8" class="tleft"/> <el-col :span="8" class="tleft" v-show="temp.certificateStateValue == '正式'"> {{temp.noticeModel}} </el-col>
<el-col :span="12" v-show="temp.certificateStateValue == '虚拟'"/>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="trightb">备注</el-col> <el-col :span="4" class="trightb">备注</el-col>

22
anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhang.vue

@ -55,12 +55,12 @@
<el-button size="mini" type="primary" @click="cheLiangXiangXi(row)">车辆信息</el-button> <el-button size="mini" type="primary" @click="cheLiangXiangXi(row)">车辆信息</el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格证编号" align="center"> <el-table-column label="合格证编号" width="180px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.certificationNo }}</span> <span>{{ scope.row.certificationNo }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="发证日期" align="center"> <el-table-column label="发证日期" width="140px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.certificateDate }}</span> <span>{{ scope.row.certificateDate }}</span>
</template> </template>
@ -70,12 +70,12 @@
<span>{{ scope.row.certificateStateValue }}</span> <span>{{ scope.row.certificateStateValue }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="160px" label="到证日期" align="center"> <el-table-column label="到证日期" width="140px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.toCardDate }}</span> <span>{{ scope.row.toCardDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column width="160px" label="领取日期" align="center"> <el-table-column label="领取日期" width="140px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.receiveDate }}</span> <span>{{ scope.row.receiveDate }}</span>
</template> </template>
@ -85,7 +85,7 @@
<span>{{ scope.row.receiver }}</span> <span>{{ scope.row.receiver }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center"> <el-table-column label="备注" width="370px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.remarks }}</span> <span>{{ scope.row.remarks }}</span>
</template> </template>
@ -193,35 +193,35 @@ export default {
{ {
type: 'primary', type: 'primary',
size: 'small', size: 'small',
icon: 'el-icon-plus', icon: 'plus',
btnKey: 'toAdd', btnKey: 'toAdd',
btnLabel: '新增' btnLabel: '新增'
}, },
{ {
type: 'primary', type: 'primary',
size: 'small', size: 'small',
icon: 'el-icon-edit', icon: 'edit',
btnKey: 'toEdit', btnKey: 'toEdit',
btnLabel: '编辑' btnLabel: '编辑'
}, },
{ {
type: 'danger', type: 'danger',
size: 'small', size: 'small',
icon: 'el-icon-delete', icon: 'del',
btnKey: 'doDel', btnKey: 'doDel',
btnLabel: '删除' btnLabel: '删除'
}, },
{ {
type: 'success', type: 'success',
size: 'small', size: 'small',
icon: '', icon: 'export',
btnKey: 'doExport', btnKey: 'build',
btnLabel: '导出' btnLabel: '导出'
}, },
{ {
type: 'info', type: 'info',
size: 'small', size: 'small',
icon: 'el-icon-close', icon: 'cross',
btnKey: 'doClose', btnKey: 'doClose',
btnLabel: '关闭' btnLabel: '关闭'
} }

21
anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue

@ -75,7 +75,12 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"/> <el-col :span="12">
<el-form-item prop="receiver" v-show="temp.certificateState == '0002'">
<span slot="label">公告型号</span>
<el-input v-model="temp.noticeModel" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item>
</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
@ -341,7 +346,8 @@ export default {
certificateSituationValue: '', certificateSituationValue: '',
certificatePhoto: [], certificatePhoto: [],
certificateState: '', // key certificateState: '', // key
certificateStateValue: '' // value certificateStateValue: '', // value
noticeModel:'' //
}, // }, //
templook: {}, // templook: {}, //
Situation: [], Situation: [],
@ -377,13 +383,9 @@ export default {
toCardDate: [ toCardDate: [
{ required: true, message: '请选择到证日期', trigger: 'blur' } { required: true, message: '请选择到证日期', trigger: 'blur' }
], ],
receiveDate: [ certificateState: [
{ required: true, message: '请选择领取日期', trigger: 'blur' } { required: true, message: '请选择合格证状态', trigger: 'blur' }
], ],
receiver: [
{ required: true, message: '请填写领取人', trigger: 'blur' }
],
remarks: [{ required: true, message: '请填写备注', trigger: 'blur' }]
// certificatePhoto: [ // certificatePhoto: [
// { required: true, message: '', trigger: 'blur' }, // { required: true, message: '', trigger: 'blur' },
// ], // ],
@ -571,6 +573,9 @@ export default {
}) })
this.temp.certificateStateValue = bb.name this.temp.certificateStateValue = bb.name
console.log('value值', this.temp.certificateStateValue) console.log('value值', this.temp.certificateStateValue)
if (value == '0001'){
this.temp.noticeModel = ''
}
}, },
// //
getQingkuang(value) { getQingkuang(value) {

14
anrui-system-ui/src/api/system/departments/departments.js

@ -75,7 +75,7 @@ export function delOrgtree(data) {
} }
}) })
} }
// 查询主管人员分管人员 // 查询主管人员
export function getStaff(data) { export function getStaff(data) {
return request({ return request({
url: '/portal/v1/sysstafforg/staffinfoList', url: '/portal/v1/sysstafforg/staffinfoList',
@ -87,6 +87,18 @@ export function getStaff(data) {
} }
}) })
} }
// 查询分管人员
export function getStaffName(params) {
return request({
url: '/portal/v1/sysstaffinfo/getStaffName',
method: 'get',
params: params,
headers: {
'Content-Type': 'application/json',
'token': tokens
}
})
}
// 查看二维码 // 查看二维码
export function getQrCode(data) { export function getQrCode(data) {
return request({ return request({

155
anrui-system-ui/src/views/organizationManage/organizationManage.vue

@ -36,8 +36,12 @@
<tr> <tr>
<td>部门地址</td> <td>部门地址</td>
<td> <td>
<el-input v-model="form.addrs" style="width:300px"></el-input> <el-input v-model="form.addrs" style="width:130%"></el-input>
</td> </td>
<td class="td_left"/>
<td class="td_left"/>
</tr>
<tr>
<td>主管人员</td> <td>主管人员</td>
<td> <td>
<el-select v-model="form.zgStaffSid" style="width:300px"> <el-select v-model="form.zgStaffSid" style="width:300px">
@ -45,43 +49,44 @@
</el-option> </el-option>
</el-select> </el-select>
</td> </td>
</tr>
<tr>
<td>分管人员</td> <td>分管人员</td>
<td> <td>
<el-select v-model="form.fgStaffSid" style="width:300px"> <!-- <el-autocomplete v-model="listQuery.params.brand" :fetch-suggestions="querySearchAsync" class="addinputw" placeholder="请输入品牌名称" @select="handleSelect">-->
<el-option v-for="(item, i) in staffdata2" :key="i" :label="item.staffName" :value="item.staffSid"> <!-- <i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear" />-->
</el-option> <!-- <template slot-scope="{ item }">-->
</el-select> <!-- <div style="paddingg:5px;background-color:Azure;">-->
<!-- <span>品牌名称</span>-->
<!-- <span style="color:red">{{ item.brandName }}</span><br>-->
<!-- </div>-->
<!-- </template>-->
<!-- </el-autocomplete>-->
<!-- <el-select v-model="form.fgStaffSid" style="width:300px">-->
<!-- <el-option v-for="(item, i) in staffdata2" :key="i" :label="item.name" :value="item.sid">-->
<!-- </el-option>-->
<!-- </el-select>-->
</td> </td>
</tr>
<tr>
<td>部门联系人</td> <td>部门联系人</td>
<td> <td>
<el-input v-model="form.linkPerson" style="width:300px"></el-input> <el-input v-model="form.linkPerson" style="width:300px"></el-input>
</td> </td>
</tr>
<tr>
<td>联系电话</td> <td>联系电话</td>
<td> <td>
<el-input v-model="form.linkPhone" style="width:300px"></el-input> <el-input v-model="form.linkPhone" style="width:300px"></el-input>
</td> </td>
<td>排序号</td>
<td>
<el-input v-model="form.sort" style="width:300px"></el-input>
</td>
</tr> </tr>
<tr> <tr>
<td>是否是部门</td> <td>是否独立法人</td>
<td> <td>
<el-radio v-model="form.isDept" :label="1"></el-radio> <el-radio v-model="form.isDept" :label="1"></el-radio>
<el-radio v-model="form.isDept" :label="0"></el-radio> <el-radio v-model="form.isDept" :label="0"></el-radio>
</td> </td>
<td>排序号</td>
<td> <td>
<!-- 部门地理位置--> <el-input v-model="form.sort" style="width:300px"></el-input>
</td>
<td>
<!-- <el-input v-model="form.jwd" style="width:300px" readonly>-->
<!-- &lt;!&ndash; <el-button slot="append" icon="el-icon-map-location" @click='mapDialog = true'></el-button>&ndash;&gt;-->
<!-- </el-input>-->
</td> </td>
</tr> </tr>
</table> </table>
@ -163,11 +168,11 @@
<div class="ewm" style="display: flex;justify-content: center; align-items: center;" ref="print"> <div class="ewm" style="display: flex;justify-content: center; align-items: center;" ref="print">
<img style="width: 200px; height: 200px;" :src="ewmForm.qrFilePath" alt=""> <img style="width: 200px; height: 200px;" :src="ewmForm.qrFilePath" alt="">
<ul style="list-style:none; line-height: 32px; font-size: 16px;"> <ul style="list-style:none; line-height: 32px; font-size: 16px;">
<li><label for="">部门名称: </label><span>{{ ewmForm.departmentName }}</span></li> <li><label>部门名称: </label><span>{{ ewmForm.departmentName }}</span></li>
</ul> </ul>
</div> </div>
</div> </div>
<!-- 新增编辑 --> <!-- 新增编辑页面 -->
<div class="org-table" v-show="isshow == 'edit'"> <div class="org-table" v-show="isshow == 'edit'">
<div class="tab-header"> <div class="tab-header">
<el-form ref="form" :inline="true" :model="form" label-width="80px"> <el-form ref="form" :inline="true" :model="form" label-width="80px">
@ -200,47 +205,59 @@
<tr> <tr>
<td>部门地址</td> <td>部门地址</td>
<td> <td>
<el-input v-model="form.addrs" style="width:300px"></el-input> <el-input v-model="form.addrs" style="width:130%"></el-input>
</td> </td>
<td class="td_left"/>
<td class="td_left"/>
</tr>
<tr>
<td>主管人员</td> <td>主管人员</td>
<td> <td>
<el-select v-model="form.zgStaffSid" style="width:300px"> <el-select v-model="form.zgStaffSid" style="width:300px" @change="zgStaffSidChange">
<el-option v-for="(item, i) in staffdata" :key="i" :label="item.staffName" :value="item.staffSid"> <el-option v-for="(item, i) in staffdata" :key="i" :label="item.staffName" :value="item.staffSid">
</el-option> </el-option>
</el-select> </el-select>
</td> </td>
</tr>
<tr>
<td>分管人员</td> <td>分管人员</td>
<td> <td>
<el-select v-model="form.fgStaffSid" style="width:300px"> <el-autocomplete v-model="form.fgStaffName" :fetch-suggestions="querySearchAsync" class="addinputw"
<el-option v-for="(item, i) in staffdata2" :key="i" :label="item.staffName" :value="item.staffSid"> placeholder="请输入品牌名称" @select="handleSelect">
</el-option> <i slot="suffix" class="el-icon-edit el-input__icon" @click="inputclear"/>
</el-select> <template slot-scope="{ item }">
<div style="paddingg:5px;background-color:Azure;">
<span>品牌名称</span>
<span style="color:red">{{ item.name }}</span><br>
</div>
</template>
</el-autocomplete>
<!-- <el-select v-model="form.fgStaffSid" style="width:300px" @change="fgStaffSidChange">-->
<!-- <el-option v-for="(item, i) in staffdata2" :key="i" :label="item.name" :value="item.sid">-->
<!-- </el-option>-->
<!-- </el-select>-->
</td> </td>
</tr>
<tr>
<td>部门联系人</td> <td>部门联系人</td>
<td> <td>
<el-input v-model="form.linkPerson" style="width:300px"></el-input> <el-input v-model="form.linkPerson" style="width:300px"></el-input>
</td> </td>
</tr>
<tr>
<td>联系电话</td> <td>联系电话</td>
<td> <td>
<el-input v-model="form.linkPhone" style="width:300px"></el-input> <el-input v-model="form.linkPhone" style="width:300px"></el-input>
</td> </td>
<td>排序号</td>
<td>
<el-input v-model="form.sort" style="width:300px"></el-input>
</td>
</tr> </tr>
<tr> <tr>
<td>是否是部门</td> <td>是否独立法人</td>
<td> <td>
<el-radio v-model="form.isDept" :label="1"></el-radio> <el-radio v-model="form.isDept" :label="1"></el-radio>
<el-radio v-model="form.isDept" :label="0"></el-radio> <el-radio v-model="form.isDept" :label="0"></el-radio>
</td> </td>
<td></td> <td>排序号</td>
<td></td> <td>
<el-input v-model="form.sort" style="width:300px"></el-input>
</td>
</tr> </tr>
</table> </table>
</div> </div>
@ -252,14 +269,15 @@
<script> <script>
import { import {
pageList,
orgList,
addOrgTree, addOrgTree,
putOrgtree,
postOrgtree,
delOrgtree, delOrgtree,
getQrCode, getQrCode,
getStaff getStaff,
getStaffName,
orgList,
pageList,
postOrgtree,
putOrgtree
} from '@/api/system/departments/departments.js' } from '@/api/system/departments/departments.js'
import Position from '@/components/amap/amap.vue' import Position from '@/components/amap/amap.vue'
@ -293,6 +311,7 @@ export default {
addrs: '', addrs: '',
zgStaffSid: '', zgStaffSid: '',
fgStaffSid: '', fgStaffSid: '',
fgStaffName: '',
linkPerson: '', linkPerson: '',
linkPhone: '', linkPhone: '',
sort: '', sort: '',
@ -485,6 +504,7 @@ export default {
this.page.params.name = '' this.page.params.name = ''
this.getPageList(this.page) this.getPageList(this.page)
}, },
//
getStaff(orgSid) { getStaff(orgSid) {
let params = { let params = {
orgSid: orgSid orgSid: orgSid
@ -495,12 +515,51 @@ export default {
console.log('这里是主管人员下拉框', res.data) console.log('这里是主管人员下拉框', res.data)
}) })
}, },
//
zgStaffSidChange(val) {
// const choosetItem = this.payType_list.filter((item) => item.dictKey == val)
// this.temp.payType = choosetItem[0].dictValue
// console.log('name:', this.temp.payType, 'key:', this.temp.payTypeKey)
},
//
getStaff2() { getStaff2() {
let params = {} // let params = {}
getStaff(params).then(res => { getStaffName({staffName:this.form.fgStaffName}).then(res => {
this.staffdata2 = res.data this.staffdata2 = res.data
console.log('分管人员',this.staffdata2)
}) })
},
querySearchAsync(queryString, cb) {
console.log('查询条件:', queryString)
if (
queryString != null &&
queryString != undefined &&
queryString !== ''
) {
// this.searchData({ name: queryString })
getStaffName({staffName: queryString}).then(res => {
if (res.code === '200') {
this.staffdata2 = res.data
console.log('分管人员', this.staffdata2)
cb(res.data)
}
})
} else {
console.log('无请求参数', this.staffdata2)
// this.staffdata2 = this.staffdata2
cb(this.staffdata2)
}
},
handleSelect(e) {
console.log('分管选择',e)
this.form.fgStaffSid = e.sid
this.form.fgStaffName = e.name
},
//
inputclear() {
this.form.fgStaffName = ''
} }
} }
} }
</script> </script>
@ -577,4 +636,8 @@ export default {
width: 70%; width: 70%;
} }
} }
.td_left {
border-left: 0 solid #e6e9f0;
}
</style> </style>

Loading…
Cancel
Save