
4 changed files with 624 additions and 0 deletions
@ -0,0 +1,372 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<div class="tab-header webtop"> |
|||
<div>{{title}}</div> |
|||
<div> |
|||
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate">保存</el-button> |
|||
<el-button type="info" size="small" icon="el-icon-close" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class="listconadd" style="padding-bottom: 50px;"> |
|||
<el-form ref="dataForm" :model="formobj" label-position="top" label-width="190px" class="formadd"> |
|||
<div class="titwu">印鉴信息表</div> |
|||
<div class="title" style="display: flex;align-items: center;justify-content: space-between;height:40px"> |
|||
<div>主体信息</div> |
|||
</div> |
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">项目名称</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<el-select v-model="formobj.industryName" class="addinputw" placeholder="请选择项目名称" style="width:100%" |
|||
@change="getHangYe"> |
|||
<el-option v-for="(item,i) in industryList" :key="i" :label="item.dictValue" |
|||
:value="item.dictKey" /> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">审批编号</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<el-input v-model="formobj.entryName" placeholder="请输入审批编号" style="width:100%" class="addinputw" |
|||
clearable /> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">申请人</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<el-input v-model="formobj.entryName" placeholder="请输入申请人姓名" style="width:100%" class="addinputw" |
|||
clearable /> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印人</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<el-input v-model="formobj.entryName" placeholder="请输入用印人姓名" style="width:100%" class="addinputw" |
|||
clearable /> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">申请日期</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8" class="trightb_item"> |
|||
<el-form-item class="trightb_item"> |
|||
<el-date-picker v-model="formobj.engaDate" type="date" style="width:100%" value-format="yyyy-MM-dd" |
|||
placeholder="选择日期"> |
|||
</el-date-picker> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印事由</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<el-input v-model="formobj.entryName" placeholder="请输入用印事由" style="width:100%" class="addinputw" |
|||
clearable /> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印文件名称</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<el-input v-model="formobj.econtacts" placeholder="请输入用印文件名称" style="width:100%" |
|||
class="addinputw" clearable /> |
|||
</el-form-item> |
|||
</el-col> |
|||
|
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">用印文件(附件)</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="8"> |
|||
<el-form-item class="trightb_item"> |
|||
<el-input v-model="formobj.econtacts" placeholder="请输入用印文件名称" :readonly="true" style="width:100%" |
|||
class="addinputw" clearable /> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
|
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">加盖何种公章</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item class="trightb_item"> |
|||
<div class="info-sex"> |
|||
<el-radio-group v-model="formobj.fillInDate"> |
|||
<el-radio :label="0">公章</el-radio> |
|||
<el-radio :label="1">法人章</el-radio> |
|||
<el-radio :label="2">财务章</el-radio> |
|||
<el-radio :label="3">发票章</el-radio> |
|||
<el-radio :label="4">营业执照</el-radio> |
|||
<el-radio :label="5">开发许可证</el-radio> |
|||
</el-radio-group> |
|||
</div> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="4" class="trightb"> |
|||
<el-form-item class="trightb_item"> |
|||
<span slot="label">备注</span> |
|||
</el-form-item> |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item class="trightb_item"> |
|||
<el-input v-model="formobj.remarks" placeholder="请输入项目说明" style="width:100%;margin-bottom: 5px;" |
|||
type="textarea" :rows="7" class="addinputw" clearable /> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
</el-form> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
// import req from '@/api/project/project' |
|||
|
|||
export default { |
|||
data() { |
|||
return { |
|||
title: "【新增】印鉴信息", |
|||
submitdisabled: false, |
|||
drawer: false, |
|||
formobj: { |
|||
sid: "", |
|||
entryName: "", // 项目名称 |
|||
industryName: "", // 行业名称 |
|||
industrySid: "", |
|||
typeName: "", // 项目类型 |
|||
typeSid: "", |
|||
creditLimit: "", // 授信额度 |
|||
bankName: "", // 贷款行 |
|||
bankSid: "", |
|||
bmanagerName: '', // 客户经理 |
|||
managerSid: "", |
|||
engaDate: "", // 授信日期 |
|||
useLimit: "", // 用信总额 |
|||
loanDate: "", // 放款日期 |
|||
useDate: "", // 用信日期 |
|||
signingDate: "", // 签约日期 |
|||
enterpriseName: "", // 项目单位 |
|||
enterpriseSid: "", |
|||
econtacts: "", // 项目联系人 |
|||
remarks: "", // 项目说明 |
|||
regulatoryLeader: "", // 监管负责人 |
|||
generalManager: "", // 事业部经理 |
|||
endDate: "", // 结束日期 |
|||
fillInDate: "", // 填表日期 |
|||
}, |
|||
industryAllList: [], |
|||
industryList: [], |
|||
} |
|||
}, |
|||
created() { |
|||
|
|||
}, |
|||
methods: { |
|||
addImg(){ |
|||
console.log(6); |
|||
}, |
|||
|
|||
saveOrUpdate() { |
|||
console.log(">>>>>>>>>saveOrUpdate", this.formobj) |
|||
if (this.formobj.sid) { |
|||
// req.updateData(this.formobj) |
|||
// .then(resp => { |
|||
// if (resp.success) { |
|||
// this.$message({ |
|||
// showClose: true, |
|||
// type: 'success', |
|||
// message: resp.msg |
|||
// }) |
|||
// this.handleReturn("true") |
|||
// this.$refs.multipleTable.clearSelection(); |
|||
// } else { |
|||
// // 根据resp.code进行异常情况处理 |
|||
// } |
|||
// }) |
|||
// .catch(() => {}) |
|||
} else { |
|||
// req.addInfo(this.formobj) |
|||
// .then(resp => { |
|||
// if (resp.success) { |
|||
// this.$message({ |
|||
// showClose: true, |
|||
// type: 'success', |
|||
// message: resp.msg |
|||
// }) |
|||
// this.handleReturn("true") |
|||
// this.$refs.multipleTable.clearSelection(); |
|||
// } else { |
|||
// // 根据resp.code进行异常情况处理 |
|||
// } |
|||
// }) |
|||
// .catch(() => {}) |
|||
} |
|||
|
|||
}, |
|||
delSid(){ |
|||
|
|||
}, |
|||
handleReturn(isreload) { |
|||
if (isreload === 'true') this.$emit('reloadlist') |
|||
|
|||
this.formobj = { |
|||
sid: "", |
|||
entryName: "", // 项目名称 |
|||
industryName: "", // 行业名称 |
|||
industrySid: "", |
|||
typeName: "", // 项目类型 |
|||
typeSid: "", |
|||
creditLimit: "", // 授信额度 |
|||
bankName: "", // 贷款行 |
|||
bankSid: "", |
|||
bmanagerName: '', // 客户经理 |
|||
managerSid: "", |
|||
engaDate: "", |
|||
useLimit: "", |
|||
loanDate: "", |
|||
useDate: "", |
|||
signingDate: "", // 签约日期 |
|||
enterpriseName: "", // 项目单位 |
|||
enterpriseSid: "", |
|||
econtacts: "", // 项目联系人 |
|||
remarks: "", // 项目说明 |
|||
regulatoryLeader: "", // 监管负责人 |
|||
generalManager: "", // 事业部经理 |
|||
endDate: "", // 结束日期 |
|||
fillInDate: "", // 填表日期 |
|||
|
|||
} |
|||
}, |
|||
showAdd(){ |
|||
this.title= "【新增】印鉴信息" |
|||
}, |
|||
showEdit(row) { |
|||
this.title= "【修改】印鉴信息" |
|||
// req.fetchBySid(row.sid) |
|||
// .then(resp => { |
|||
// if (resp.success) { |
|||
// } |
|||
|
|||
// }) |
|||
// .catch(e => { |
|||
// this.formobj = row |
|||
// }) |
|||
}, |
|||
getHangYe(value) { |
|||
const choose = this.industryList.filter((item) => item.dictKey === value) |
|||
this.formobj.industryName = choose[0].dictValue |
|||
this.formobj.industrySid = choose[0].dictKey |
|||
}, |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
.trightb { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
} |
|||
|
|||
.trightb_item { |
|||
padding-top: 5px; |
|||
} |
|||
.trightbs { |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
} |
|||
|
|||
.span { |
|||
margin-left: 50px; |
|||
font-size: 15px; |
|||
font-weight: 400; |
|||
} |
|||
|
|||
/deep/ .el-collapse-item__header { |
|||
height: 40px; |
|||
padding: 10px; |
|||
font-weight: bold; |
|||
font-size: 20px; |
|||
text-align: left; |
|||
color: #ffffff; |
|||
background-color: #0294d7; |
|||
} |
|||
|
|||
/deep/ .el-collapse-item__content { |
|||
padding-bottom: 0; |
|||
} |
|||
/deep/ .el-radio__inner { |
|||
border-radius: 10%; |
|||
} |
|||
.info-sex ::v-deep.el-radio__input.is-checked .el-radio__inner { |
|||
border-color: #0294d7; |
|||
background-color: #fff; |
|||
} |
|||
.info-sex ::v-deep.el-radio__input.is-checked + .el-radio__label { |
|||
color: #424346; |
|||
} |
|||
.info-sex ::v-deep.el-radio__input.is-checked .el-radio__inner:after { |
|||
transform: rotate(45deg) scaleY(1); |
|||
} |
|||
.info-sex ::v-deep.el-radio__label { |
|||
color: #80838a; |
|||
} |
|||
.info-sex ::v-deep.el-radio__inner::after { |
|||
box-sizing: content-box; |
|||
content: ""; |
|||
border: 1px solid #0294d7; |
|||
border-left: 0; |
|||
border-top: 0; |
|||
height: 7px; |
|||
left: 4px; |
|||
position: absolute; |
|||
top: 1px; |
|||
transform: rotate(45deg) scaleY(0); |
|||
width: 3px; |
|||
transition: transform 0.15s ease-in 0.05s; |
|||
transform-origin: center; |
|||
border-radius: unset; |
|||
background-color: transparent; |
|||
} |
|||
</style> |
|||
|
@ -0,0 +1,229 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div v-show="viewState ==1"> |
|||
<button-bar view-title="印鉴使用管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle" /> |
|||
<div class="main-content"> |
|||
<div class="searchcon"> |
|||
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> |
|||
<div v-show="isSearchShow" class="search"> |
|||
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="80px" class="tab-header"> |
|||
<el-form-item label="油罐编号"> |
|||
<el-input v-model="listQuery.params.number" maxlength="20" placeholder="请输入油罐编号" class="addinputw" |
|||
clearable /> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center;"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleReset">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleFilter">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtop"> |
|||
<div class="tit">印鉴使用列表</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-table v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column fixed width="50" type="selection" align="center"/> |
|||
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center" /> |
|||
<el-table-column fixed width="80" label="操作" align="center"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="审批编号" prop="number" align="center" /> |
|||
<el-table-column label="申请日期" prop="crudeName" align="center" /> |
|||
<el-table-column label="用印文件名称" prop="existingInventory" align="center" /> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|||
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
<AddYjsq v-show="viewState ==2 || viewState ==3" ref="divAdd" @doback="resetState" @reloadlist="getList" /> |
|||
<!-- <oilTypeInfo v-show="viewState ==4" ref="divInfo" @doback="resetState" @reloadlist="getList" /> --> |
|||
|
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
// import req from '@/api/oilTank/oilTank' |
|||
import Pagination from '@/components/pagination' |
|||
import ButtonBar from '@/components/ButtonBar' |
|||
import AddYjsq from './AddYjsq.vue' |
|||
// import oilTypeInfo from './oilTypeInfo.vue' |
|||
export default { |
|||
name: 'CustomerManagement', |
|||
components: { |
|||
Pagination, |
|||
ButtonBar, |
|||
AddYjsq, |
|||
// oilTypeInfo, |
|||
|
|||
}, |
|||
data() { |
|||
return { |
|||
listLoading: false, |
|||
btndisabled: false, |
|||
form: {}, |
|||
btnList: [{ |
|||
type: 'primary', |
|||
size: 'small', |
|||
icon: 'plus', |
|||
btnKey: 'toAdd', |
|||
btnLabel: '新增' |
|||
}, |
|||
{ |
|||
type: 'primary', |
|||
size: 'small', |
|||
icon: 'submit', |
|||
btnKey: 'toBan', |
|||
btnLabel: '办理' |
|||
}, |
|||
{ |
|||
type: 'danger', |
|||
size: 'small', |
|||
icon: 'del', |
|||
btnKey: 'doDel', |
|||
btnLabel: '删除' |
|||
}, |
|||
{ |
|||
type: 'info', |
|||
size: 'small', |
|||
icon: 'cross', |
|||
btnKey: 'doClose', |
|||
btnLabel: '关闭' |
|||
} |
|||
], |
|||
isSearchShow: false, |
|||
searchxianshitit: '显示查询条件', |
|||
list: [], |
|||
listQuery: { |
|||
current: 1, |
|||
size: 10, |
|||
params: { |
|||
entryName: '', |
|||
}, |
|||
total: 0 |
|||
}, |
|||
viewState: 1 |
|||
} |
|||
}, |
|||
mounted() { |
|||
this.$refs['btnbar'].setButtonList(this.btnList) |
|||
}, |
|||
created() { |
|||
this.init() |
|||
// 加载列表 |
|||
}, |
|||
methods: { |
|||
btnHandle(btnKey) { |
|||
switch (btnKey) { |
|||
case 'toAdd': |
|||
this.toAdd() |
|||
break |
|||
case 'doDel': |
|||
this.doDel() |
|||
break |
|||
case 'toBan': |
|||
this.toEdit() |
|||
break |
|||
|
|||
case 'doClose': |
|||
this.doClose() |
|||
break |
|||
default: |
|||
break |
|||
} |
|||
}, |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
// 初始化 |
|||
init() { |
|||
this.getList() |
|||
}, |
|||
// 序号 |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
// this.listLoading = true |
|||
// req.listPage(this.listQuery).then((res) => { |
|||
// this.listLoading = false |
|||
|
|||
// }) |
|||
}, |
|||
// 查询按钮 |
|||
handleReset() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
// 重置 |
|||
handleFilter() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 10, |
|||
total: 0, |
|||
params: { |
|||
entryName: "" |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
// 打开添加 |
|||
toAdd() { |
|||
this.viewState = 2 |
|||
}, |
|||
toInfo() { |
|||
this.viewState = 4 |
|||
}, |
|||
// 打开办理 |
|||
toEdit() { |
|||
this.viewState = 3 |
|||
this.$refs['divAdd'].showEdit(row) |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.sid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
// 根据本行ID删除数据 |
|||
doDel() { |
|||
const tip = '请确认是否删除所选记录?' |
|||
this.$confirm(tip, '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
// req.delBySids(row.sid).then((response) => { |
|||
|
|||
// }) |
|||
}) |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
doClose() { |
|||
this.$store.dispatch('tagsView/delView', this.$route) |
|||
this.$router.go(-1) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
|||
|
Loading…
Reference in new issue