Browse Source

车型管理、常用配置、合格证台账、销售政策测试文档问题。

zhanglei
Zhao Qiqi 3 years ago
parent
commit
b228d88910
  1. 60
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengce.vue
  2. 4
      anrui-buscenter/anrui-buscenter-ui/src/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengceAdd.vue
  3. 4
      anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
  4. 1
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotherinbound/scmotherinboundAdd.vue
  5. 30
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmwarehouse/scmwarehouse.vue
  6. 150
      anrui-scm/anrui-scm-ui/src/views/anruiscm/scmwarehouse/scmwarehouseInfo.vue
  7. 1
      anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue
  8. 83
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhi.vue
  9. 28
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/ohter/changyongpeizhiInfo.vue
  10. 14
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/ohter/changyongpeizhiRel.vue
  11. 57
      anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengInfo.vue
  12. 663
      anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhang.vue
  13. 247
      anrui-scm/anrui-scm-ui/src/views/cheliang/hegezhengtaizhang/hegezhengtaizhangAdd.vue

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

@ -4,9 +4,9 @@
<div class="tab-header webtop"> <div class="tab-header webtop">
<div>销售政策管理</div> <div>销售政策管理</div>
<div> <div>
<el-button type="primary" size="small" @click="handleCreate()">新增</el-button> <el-button type="primary" icon="el-icon-plus" size="small" @click="handleCreate()">新增</el-button>
<el-button type="danger" size="small" @click="handleDelete()">删除</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="info" size="small" @click="handleReturn()">关闭</el-button> <el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div> </div>
</div> </div>
@ -33,18 +33,20 @@
</el-form-item> </el-form-item>
<el-form-item label="有效期"> <el-form-item label="有效期">
<div class="block"> <div class="block">
<el-date-picker v-model="listQuery.params.getEffectiveStartDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd"></el-date-picker> <el-date-picker v-model="listQuery.params.getEffectiveStartDate" type="date" placeholder="选择日期"
value-format="yyyy-MM-dd" format="yyyy-MM-dd"></el-date-picker>
</div> </div>
<label></label> <label></label>
<div class="block"> <div class="block">
<el-date-picker v-model="listQuery.params.getEffectiveEndDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" format="yyyy-MM-dd"></el-date-picker> <el-date-picker v-model="listQuery.params.getEffectiveEndDate" type="date" placeholder="选择日期"
value-format="yyyy-MM-dd" format="yyyy-MM-dd"></el-date-picker>
</div> </div>
</el-form-item> </el-form-item>
<div class="searchbtns">
<el-button type="primary" @click="handleFilter">查询</el-button>
<el-button type="primary" @click="handleReset">重置</el-button>
</div>
</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">
@ -120,6 +122,7 @@
</div> </div>
<xiaoshouzhengce-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="getList"></xiaoshouzhengce-add> <xiaoshouzhengce-add v-show="viewState == 2 || viewState == 3" ref="divadd" @doback="resetState" @reloadlist="getList"></xiaoshouzhengce-add>
<xiaoshouzhengce-info v-show="viewState == 4" ref="divinfo" @doback="resetState"></xiaoshouzhengce-info> <xiaoshouzhengce-info v-show="viewState == 4" ref="divinfo" @doback="resetState"></xiaoshouzhengce-info>
<tags-view ref="tags" v-show="false"></tags-view>
</div> </div>
</template> </template>
@ -129,6 +132,8 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
import xiaoshouzhengceAdd from './xiaoshouzhengceAdd' import xiaoshouzhengceAdd from './xiaoshouzhengceAdd'
import xiaoshouzhengceInfo from './xiaoshouzhengceInfo' import xiaoshouzhengceInfo from './xiaoshouzhengceInfo'
import TagsView from '@/layout/components/TagsView/index'
export default { export default {
name: "xiaoshouzhengce", name: "xiaoshouzhengce",
@ -136,7 +141,8 @@ export default {
Pagination, Pagination,
pageye, pageye,
xiaoshouzhengceAdd, xiaoshouzhengceAdd,
xiaoshouzhengceInfo xiaoshouzhengceInfo,
TagsView
}, },
data() { data() {
return { return {
@ -178,6 +184,14 @@ export default {
nodeState: '' nodeState: ''
} }
}, },
computed: {
visitedViews() {
return this.$store.state.tagsView.visitedViews
},
routes() {
return this.$store.state.permission.routes
}
},
created() { created() {
// //
this.init() this.init()
@ -365,6 +379,13 @@ export default {
}) })
return return
} }
},
handleReturn() {
console.log('1122334455')
const choosetItem = this.visitedViews.filter((item) => item.fullPath == this.$route.path)
if (choosetItem) {
this.$refs['tags'].closeSelectedTag(choosetItem[0])
}
} }
// //
// handleSubmit(row) { // handleSubmit(row) {
@ -445,4 +466,25 @@ export default {
.el-form-item__content label { .el-form-item__content label {
padding: 0 5px; padding: 0 5px;
} }
.searchbtn {
border: #2cab69 1px solid;
color: #2cab69;
}
.btn {
padding: 15px 0 15px 0;
border: 1px solid #e0e3eb;
background: white;
}
.tab-header {
background-color: #edf1f7;
padding: 8px 20px;
margin-bottom: 0 !important;
}
.tab-header /deep/ .el-form-item {
margin-bottom: 10px;
}
</style> </style>

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

@ -125,7 +125,7 @@ export default {
discountType: '', // discountType: '', //
discountTypeKey: '', // key discountTypeKey: '', // key
effectiveDate: '', // effectiveDate: '', //
isEmploy: '', // 1 0 isEmploy: '1', // 1 0
orderSid: '', // sid orderSid: '', // sid
salesPolicy: '', // salesPolicy: '', //
salesPolicyKey: '', // key salesPolicyKey: '', // key
@ -383,7 +383,7 @@ export default {
discountType: '', // discountType: '', //
discountTypeKey: '', // key discountTypeKey: '', // key
effectiveDate: '', // effectiveDate: '', //
isEmploy: '', // 1 0 isEmploy: '1', // 1 0
orderSid: '', // sid orderSid: '', // sid
salesPolicy: '', // salesPolicy: '', //
salesPolicyKey: '', // key salesPolicyKey: '', // key

4
anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js

@ -191,13 +191,13 @@ const codemenu = [
children: [{ children: [{
path: '/guache/guacheguanli', path: '/guache/guacheguanli',
component: () => import('@/views/guache/guacheguanli/guacheguanli.vue'), component: () => import('@/views/guache/guacheguanli/guacheguanli.vue'),
name: 'ShangZhuangGuanLi', name: 'GuaCheJianSuoGuanLi',
meta: { title: '挂车管理' } meta: { title: '挂车管理' }
}, },
{ {
path: '/guache/guachejiansuo', path: '/guache/guachejiansuo',
component: () => import('@/views/guache/guachejiansuo/guachejiansuoguanli.vue'), component: () => import('@/views/guache/guachejiansuo/guachejiansuoguanli.vue'),
name: 'GuaCheJianSuoGuanLi', name: 'guachejiansuoguanli',
meta: { title: '挂车管理' } meta: { title: '挂车管理' }
} }
] ]

1
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmotherinbound/scmotherinboundAdd.vue

@ -788,6 +788,7 @@ export default {
this.formobj.scmOtherInboundDto = obj this.formobj.scmOtherInboundDto = obj
this.stockOrgName_list = data.stockOrgSid // sid this.stockOrgName_list = data.stockOrgSid // sid
this.invenGroupName_list = data.invenGroupSid // sid this.invenGroupName_list = data.invenGroupSid // sid
console.log('库存组织',this.stockOrgName_list)
// //
this.formobj.scmOtherInboundDetailDto = data.scmOtherInboundDetailVoList this.formobj.scmOtherInboundDetailDto = data.scmOtherInboundDetailVoList
}).catch(e => { }).catch(e => {

30
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmwarehouse/scmwarehouse.vue

@ -9,7 +9,7 @@
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form :inline="true" class="tab-header"> <el-form :inline="true" class="tab-header">
<el-form-item label="使用组织"> <el-form-item label="使用组织">
<el-input v-model="queryParams.params.useOrg" placeholder="请输入使用组织" clearable/> <el-input :readonly="true" v-model="queryParams.params.useOrg" placeholder="请输入使用组织" />
</el-form-item> </el-form-item>
<el-form-item label="编码"> <el-form-item label="编码">
<el-input v-model="queryParams.params.warehouseCode" placeholder="请输入编码" clearable/> <el-input v-model="queryParams.params.warehouseCode" placeholder="请输入编码" clearable/>
@ -93,6 +93,7 @@
<script> <script>
import req from '@/api/anruiscm/scmwarehouse' import req from '@/api/anruiscm/scmwarehouse'
import { getUseOrgByUserSid } from '@/api/cheliang/basevehicle'
import ButtonBar from '@/components/ButtonBar' import ButtonBar from '@/components/ButtonBar'
import Pagination from '@/components/pagination' import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye' import pageye from '@/components/pagination/pageye'
@ -115,6 +116,8 @@ export default {
isSearchShow: false, isSearchShow: false,
tableLoading: false, tableLoading: false,
dataList: [], dataList: [],
useOrg: '', // 使
useOrgSid: '', // 使sid
queryParams: { queryParams: {
current: 1, current: 1,
size: 10, size: 10,
@ -159,6 +162,7 @@ export default {
}, },
created() { created() {
this.loadList() this.loadList()
this.getUseOrg()
}, },
mounted() { mounted() {
this.$refs['btnbar'].setButtonList(this.btnList) this.$refs['btnbar'].setButtonList(this.btnList)
@ -247,7 +251,17 @@ export default {
this.loadList() this.loadList()
}, },
resetQuery() { resetQuery() {
this.queryParams.params = {} this.queryParams.params = {
sids: [], // SID
useOrg:this.useOrg,
useOrgSid:this.useOrgSid,
warehouseCode: '', //
warehouseName: '', //
warehouseAttribute: '', //
warehouseContract: '', //
warehouseContractSid: '', // sid
warehouseGroup: '' //
}
this.queryParams.params.sid = '' // sid this.queryParams.params.sid = '' // sid
this.queryParams.params.name = '' // this.queryParams.params.name = '' //
this.dosearch() this.dosearch()
@ -271,6 +285,18 @@ export default {
this.multipleSelection = val this.multipleSelection = val
console.log('点击数据', this.multipleSelection) console.log('点击数据', this.multipleSelection)
}, },
//
getUseOrg() {
const userSid = window.sessionStorage.getItem('userSid')
getUseOrgByUserSid({ userSid: userSid }).then((res) => {
if (res.success) {
this.useOrg = res.data.name // 使
this.useOrgSid = res.data.sid // 使sid
this.queryParams.params.useOrg = res.data.name
this.queryParams.params.useOrgSid = res.data.sid
}
})
},
// //
indexMethod(index) { indexMethod(index) {
var pagestart = (this.queryParams.current - 1) * this.queryParams.size var pagestart = (this.queryParams.current - 1) * this.queryParams.size

150
anrui-scm/anrui-scm-ui/src/views/anruiscm/scmwarehouse/scmwarehouseInfo.vue

@ -15,62 +15,54 @@
<el-form ref="form_obj" :model="formobj" label-position="top" label-width="300px" class="formadd"> <el-form ref="form_obj" :model="formobj" label-position="top" label-width="300px" class="formadd">
<div class="wlInfo"><span>存放地点</span></div> <div class="wlInfo"><span>存放地点</span></div>
<el-row> <el-row>
<el-col :span="2" class="tleftb row_first"> <el-col :span="14" class="specialCol">
<el-form-item><span slot="label">使用组织</span></el-form-item> <span>使用组织</span>
<span>{{ formobj.useOrg }}</span>
</el-col>
</el-row>
<el-row>
<el-col :span="3" class="tleftb row_first">
<el-form-item><span slot="label"><span class="icon">*</span>编码</span></el-form-item>
</el-col> </el-col>
<el-col :span="4" class="trightb row_first"> <el-col :span="4" class="trightb row_first">
<el-form-item prop="useOrg"> <el-form-item prop="warehouseCode">
<span>{{ formobj.useOrg }}</span> <span>{{ formobj.warehouseCode }}</span>
<!-- <el-input v-model="formobj.useOrg" placeholder="使用组织" class="addinputw" clearable/>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb row_first"> <el-col :span="3" class="tleftb row_first">
<el-form-item><span slot="label">分组</span></el-form-item> <el-form-item><span slot="label"><span class="icon">*</span>名称</span></el-form-item>
</el-col> </el-col>
<el-col :span="4" class="trightb row_first"> <el-col :span="4" class="trightb row_first">
<el-form-item prop="warehouseGroup"> <el-form-item prop="warehouseName">
<span>{{ formobj.warehouseGroup }}</span> <span>{{ formobj.warehouseName }}</span>
<!-- <el-input v-model="formobj.warehouseGroup" placeholder="分组" class="addinputw" clearable/>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span slot="label">编码</span></el-form-item> <el-form-item><span slot="label"><span class="icon">*</span>仓库负责人及电话</span></el-form-item>
</el-col> </el-col>
<el-col :span="4" class="trightb"> <el-col :span="4" class="trightb">
<el-form-item prop="warehouseCode"> <el-form-item prop="warehouseContract">
<span>{{ formobj.warehouseCode }}</span> <span>{{ formobj.warehouseContract }}</span>
<!-- <el-input v-model="formobj.warehouseCode" placeholder="编码" class="addinputw" clearable/>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span slot="label">名称</span></el-form-item> <el-form-item><span slot="label"><span class="icon">*</span>分组</span></el-form-item>
</el-col> </el-col>
<el-col :span="4" class="trightb"> <el-col :span="4" class="trightb">
<el-form-item prop="warehouseName"> <el-form-item prop="warehouseGroup">
<span>{{ formobj.warehouseName }}</span> <span>{{ formobj.warehouseGroup }}</span>
<!-- <el-input v-model="formobj.warehouseName" placeholder="名称" class="addinputw" clearable/>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="2" class="tleftb"> <el-col :span="3" class="tleftb">
<el-form-item><span slot="label">仓库属性</span></el-form-item> <el-form-item><span slot="label"><span class="icon">*</span>详细地址</span></el-form-item>
</el-col> </el-col>
<el-col :span="4" class="trightb"> <el-col :span="11" class="trightb">
<el-form-item prop="warehouseAttribute"> <el-form-item prop="warehouseAttribute">
<span>{{ formobj.warehouseAttribute }}</span> <span>{{ formobj.warehouseAttribute }}</span>
<!-- <el-input v-model="formobj.warehouseAttribute" placeholder="仓库属性" class="addinputw" clearable/>-->
</el-form-item>
</el-col>
<el-col :span="2" class="tleftb">
<el-form-item><span slot="label">仓库负责人</span></el-form-item>
</el-col>
<el-col :span="4" class="trightb">
<el-form-item prop="warehouseContract">
<span>{{ formobj.warehouseContract }}</span>
<!-- <el-input v-model="formobj.warehouseContract" placeholder="仓库负责人" class="addinputw" clearable/>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -100,54 +92,58 @@
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.headInfo { .headInfo {
margin-left: -14px; margin-left: -14px;
margin-right: -14px; margin-right: -14px;
} }
.row_first {
border-top: 1px solid #e0e3eb !important;
}
.wlInfo {
width: 100%;
height: 100%;
padding: 60px 0;
font-size: 24px;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
}
.wlInfo { .formadd {
width: 100%; padding: 0;
height: 100%; }
padding: 60px 0;
font-size: 24px;
/*border-width: 0 0 1px 0;*/
/*border-style: solid;*/
/*border-color: #EDF1F7;*/
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
}
.formadd { .formadd .el-row {
padding: 0; display: -webkit-box;
} display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
justify-content: center;
border-left: 0 !important;
}
.formadd .el-row { .tleftb {
display: -webkit-box; text-align: right;
display: -ms-flexbox; border-left: 1px solid #e0e3eb;
display: flex; }
-ms-flex-wrap: wrap;
justify-content: center;
border-left: 0 !important;
}
.tleftb { .tab-headerg {
text-align: right; height: 35px;
border-left: 1px solid #e0e3eb; background-color: #EDF1F7;
} padding: 20px 20px;
}
.tab-headerg { .icon {
height: 35px; color: #e84026;
background-color: #EDF1F7; margin-right: 4px;
padding: 20px 20px; }
}
.icon { .specialCol {
color: #e84026; min-height: 30px !important;
margin-right: 4px; border: 0 !important;
} font-size: 14px;
.row_first { color: #606266;
border-top: 1px solid #e0e3eb !important; font-weight: 600;
} }
</style> </style>

1
anrui-scm/anrui-scm-ui/src/views/cheliang/cheliangtaizhang/cheliangtaizhangAdd.vue

@ -306,6 +306,7 @@ export default {
options: [], options: [],
useOrg: [], useOrg: [],
props: { props: {
emitPath:false,
value: 'sid', value: 'sid',
label: 'name', label: 'name',
children: 'children', children: 'children',

83
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/changyongpeizhi.vue

@ -9,7 +9,7 @@
<el-button type="primary" size="small" @click="handleUpdate()">修改</el-button> <el-button type="primary" size="small" @click="handleUpdate()">修改</el-button>
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button> <el-button type="danger" size="small" @click="handleDelete()">删除</el-button>
<el-button type="info" size="small" @click="handleReturn()">返回</el-button> <el-button type="info" size="small" @click="handleReturn()">返回</el-button>
<el-button type="primary" size="small" @click="handleOpen()">进入关联表</el-button> <!-- <el-button type="primary" size="small" @click="handleOpen()">进入关联表</el-button>-->
</div> </div>
</div> </div>
<div class="main-content"> <div class="main-content">
@ -139,7 +139,9 @@
<el-table-column fixed width="50px" type="selection" align="center"/> <el-table-column fixed width="50px" type="selection" align="center"/>
<el-table-column label="关联状态" align="center"> <el-table-column label="关联状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.isRelationState === 1 ? '已关联' : '未关联' }}</span> <span class="bluezi" @click="handleOpen(scope.row)">{{
scope.row.isRelationState === 1 ? '已关联' : '未关联'
}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="使用状态" align="center"> <el-table-column label="使用状态" align="center">
@ -590,34 +592,9 @@ export default {
} }
}) })
}, },
handleOpen() { handleOpen(row) {
if (this.sids.length === 1) { this.viewState = 5
if (this.sids[0].relationState === 1) { this.$refs['relation'].init(row.sid)
this.viewState = 5
this.$refs['relation'].init(this.sids[0].sid)
} else {
this.$notify({
title: '提示',
message: '该常用配置未关联车型!',
type: 'info',
duration: 2000
})
}
} else if (this.sids.length > 1) {
this.$notify({
title: '提示',
message: '不能选中多个常用配置!!',
type: 'info',
duration: 2000
})
} else {
this.$notify({
title: '提示',
message: '请选择常用配置!',
type: 'error',
duration: 2000
})
}
}, },
// //
handleReturn() { handleReturn() {
@ -731,39 +708,45 @@ export default {
// ID // ID
handleDelete() { handleDelete() {
console.log('删除', this.sids) console.log('删除', this.sids)
const _this = this
const bb = [] const bb = []
this.sids.forEach((e) => { this.sids.forEach((e) => {
bb.push(e.sid) bb.push(e.sid)
}) })
console.log(bb, 666666) console.log(bb, 666666)
if (this.sids.length > 0) { if (this.sids.length > 0) {
deleteBySids(bb).then((response) => { const tip = '请确认是否删除所选 ' + this.multipleSelection.length + ' 条记录?'
if (response.code === '200') { this.$confirm(tip, '提示', {
this.$notify({ confirmButtonText: '确定',
title: '提示', cancelButtonText: '取消',
message: '删除成功', type: 'warning'
type: 'success', })
duration: 2000 .then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
}) })
this.getList() deleteBySids(bb).then(resp => {
} else { loading.close()
this.$notify({ _this.$message({ type: 'success', message: resp.msg, showClose: true })
title: '失败', _this.getList()
message: response.msg,
type: 'error'
}) })
} .catch(e => {
}) loading.close()
})
})
.catch(() => {
})
} else { } else {
this.$notify({ this.$message({
title: '提示', showClose: true,
message: '没有选择车型配置!!', message: '没有选择车型配置!!',
type: 'error', type: 'warning'
duration: 2000
}) })
return return
} }
}, },
// //
handleDaoChu() { handleDaoChu() {

28
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/ohter/changyongpeizhiInfo.vue

@ -135,20 +135,20 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <!-- <el-row>-->
<el-col :span="4"> <!-- <el-col :span="4">-->
<span>内部编码</span> <!-- <span>内部编码</span>-->
</el-col> <!-- </el-col>-->
<el-col :span="8"> <!-- <el-col :span="8">-->
<el-form-item > <!-- <el-form-item >-->
<span>{{ temp.insideCode }}</span> <!-- <span>{{ temp.insideCode }}</span>-->
</el-form-item> <!-- </el-form-item>-->
</el-col> <!-- </el-col>-->
<el-col :span="4"> <!-- <el-col :span="4">-->
</el-col> <!-- </el-col>-->
<el-col :span="8"> <!-- <el-col :span="8">-->
</el-col> <!-- </el-col>-->
</el-row> <!-- </el-row>-->
<div class="addtable"> <div class="addtable">
<div class="tabletitle"> <div class="tabletitle">
<div class="titlename"> <div class="titlename">

14
anrui-scm/anrui-scm-ui/src/views/cheliang/chexingpeizhi/ohter/changyongpeizhiRel.vue

@ -25,7 +25,7 @@
</el-form-item> </el-form-item>
<el-form-item label="系列"> <el-form-item label="系列">
<el-select v-model="listQuery.params.productLine" placeholder="请选择" clearable class="addinputw"> <el-select v-model="listQuery.params.productLine" placeholder="请选择" clearable class="addinputw">
<el-option v-for="item in series_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> <el-option v-for="item in productLine_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="驱动"> <el-form-item label="驱动">
@ -90,14 +90,14 @@
<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%;" @selection-change="handleSelectionChange">
<el-table-column width="50px" type="selection" align="center"/> <el-table-column width="50px" type="selection" align="center"/>
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/> <el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column label="品牌" align="center"> <el-table-column label="品牌" width="120px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.brandName }}</span> <span>{{ scope.row.brandName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="车型" align="center"> <el-table-column label="车型" width="300px" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.modelName }}</span> <span class="bluezi" @click="handleCheck(scope.row)">{{ scope.row.vehicleAlias }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="版本" align="center"> <el-table-column label="版本" align="center">
@ -153,7 +153,7 @@ export default {
// list ------ // list ------
carBrand_list: [], // carBrand_list: [], //
vehicleFunction_list: [], // vehicleFunction vehicleFunction_list: [], // vehicleFunction
series_list: [], // series productLine_list: [], // productLine
driveForm_list: [], // driver driveForm_list: [], // driver
power_list: [], // horsepower power_list: [], // horsepower
vehicleVersion_list: [], // vehicleVersion vehicleVersion_list: [], // vehicleVersion
@ -228,10 +228,10 @@ export default {
}) })
// - // -
pullDown({ pullDown({
type: 'series' type: 'productLine'
}).then((res) => { }).then((res) => {
if (res.code === '200') { if (res.code === '200') {
this.series_list = res.data this.productLine_list = res.data
console.log('下拉框请求系列', res.data) console.log('下拉框请求系列', res.data)
} }
}) })

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

@ -10,36 +10,37 @@
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="forminfo" :rules="rules"> <el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="forminfo" :rules="rules">
<div class="title">合格证台账详情信息</div> <div class="title">合格证台账详情信息</div>
<el-row> <el-row>
<el-col :span="4" class="trightb">合格证流水号</el-col>
<el-col :span="8"> {{ temp.certificationSerialNum }} </el-col>
<el-col :span="4" class="trightb">合格证编号</el-col> <el-col :span="4" class="trightb">合格证编号</el-col>
<el-col :span="8" class="tleft"> {{ temp.certificationNo }} </el-col> <el-col :span="8" class="tleft"> {{ temp.certificationNo }}</el-col>
</el-row>
<el-row>
<el-col :span="4" class="trightb">发证日期</el-col> <el-col :span="4" class="trightb">发证日期</el-col>
<el-col :span="8"> {{ temp.certificateDate }} </el-col> <el-col :span="8"> {{ temp.certificateDate }}</el-col>
<el-col :span="4" class="trightb">合格证情况</el-col>
<el-col :span="8" class="tleft"> {{ temp.certificateSituationValue }} </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="trightb">合格证状态</el-col>
<el-col :span="8" class="tleft"> {{ temp.certificateStateValue }}</el-col>
<el-col :span="4" class="trightb">到证日期</el-col> <el-col :span="4" class="trightb">到证日期</el-col>
<el-col :span="8"> {{ temp.toCardDate }} </el-col> <el-col :span="8"> {{ temp.toCardDate }}</el-col>
<el-col :span="4" class="trightb">领取日期</el-col>
<el-col :span="8" class="tleft"> {{ temp.receiveDate }} </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="trightb">领取日期</el-col>
<el-col :span="8" class="tleft"> {{ temp.receiveDate }}</el-col>
<el-col :span="4" class="trightb">领取人</el-col> <el-col :span="4" class="trightb">领取人</el-col>
<el-col :span="8"> {{ temp.receiver }} </el-col> <el-col :span="8"> {{ temp.receiver }}</el-col>
<el-col :span="4" class="trightb" /> </el-row>
<el-col :span="8" class="tleft" /> <el-row>
<el-col :span="4" class="trightb">合格证情况</el-col>
<el-col :span="8" class="tleft"> {{ temp.certificateSituationValue }}</el-col>
<el-col :span="4" class="trightb"/>
<el-col :span="8" class="tleft"/>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="trightb">备注</el-col> <el-col :span="4" class="trightb">备注</el-col>
<el-col :span="20"> {{ temp.remarks }} </el-col> <el-col :span="20"> {{ temp.remarks }}</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="trightb">合格证照片</el-col> <el-col :span="4" class="trightb">合格证照片</el-col>
<img v-for="(map_item,index) in temp.certificatePhoto" style="width: 100px; height: 100px;margin-right: 5px;" :key="index" :src="map_item"> <img v-for="(map_item,index) in temp.certificatePhoto" style="width: 100px; height: 100px;margin-right: 5px;"
:key="index" :src="map_item">
</el-row> </el-row>
<div class="title">合格证详细信息</div> <div class="title">合格证详细信息</div>
<el-row> <el-row>
@ -98,27 +99,27 @@
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="trightb">CGS印章</el-col> <el-col :span="4" class="trightb">CGS印章</el-col>
<el-col :span="8"> {{ temp.cgsseal }} </el-col> <el-col :span="8"> {{ temp.cgsseal }}</el-col>
<el-col :span="4" class="trightb">车辆型号</el-col> <el-col :span="4" class="trightb">功率</el-col>
<el-col :span="8" class="tleft"> {{ temp.carModel }} </el-col> <el-col :span="8"> {{ temp.power }}</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="trightb">车架号</el-col> <el-col :span="4" class="trightb">轮胎数</el-col>
<el-col :span="8"> {{ temp.vinNo }} </el-col> <el-col :span="8"> {{ temp.tyreNum }}</el-col>
<el-col :span="4" class="trightb">总质量</el-col> <el-col :span="4" class="trightb">总质量</el-col>
<el-col :span="8" class="tleft"> {{ temp.totalWeight }} </el-col> <el-col :span="8" class="tleft"> {{ temp.totalWeight }}</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="trightb">轮胎数</el-col>
<el-col :span="8"> {{ temp.tyreNum }} </el-col>
<el-col :span="4" class="trightb">车辆品牌</el-col> <el-col :span="4" class="trightb">车辆品牌</el-col>
<el-col :span="8" class="tleft"> {{ temp.carBrand }} </el-col> <el-col :span="8" class="tleft"> {{ temp.carBrand }}</el-col>
<el-col :span="4" class="trightb">车辆型号</el-col>
<el-col :span="8" class="tleft"> {{ temp.carModel }}</el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="4" class="trightb">功率</el-col> <el-col :span="4" class="trightb">车架号</el-col>
<el-col :span="8"> {{ temp.power }} </el-col> <el-col :span="8"> {{ temp.vinNo }}</el-col>
<el-col :span="4" class="trightb">底盘型号</el-col> <el-col :span="4" class="trightb">底盘型号</el-col>
<el-col :span="8" class="tleft"> {{ temp.chassisModel }} </el-col> <el-col :span="8" class="tleft"> {{ temp.chassisModel }}</el-col>
</el-row> </el-row>
</el-form> </el-form>

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

@ -1,36 +1,41 @@
<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>
<el-button type="primary" size="small" @click="handleCreate()">新增</el-button>
<el-button type="primary" size="small" @click="handleUpdate()">修改</el-button>
<el-button type="danger" size="small" @click="handleDelete()">删除</el-button>
<!-- <el-button type="primary" size="small" @click="handleDaoRu()">导入</el-button> -->
<el-button type="success" size="small" @click="handleDaoChu()">导出</el-button>
</div>
</div>
<div class="searchcon"> <div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> <el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search"> <div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header"> <el-form ref="listQueryform" :inline="true" :model="listQuery" label-width="100px" class="tab-header">
<el-form-item label="合格证编号"> <el-form-item label="合格证编号">
<el-input v-model="listQuery.certificationNo" placeholder="请输入合格证编号" clearable class="filter-item"/> <el-input v-model="listQuery.params.certificationNo" placeholder="请输入合格证编号" clearable
class="filter-item"/>
</el-form-item> </el-form-item>
<el-form-item label="发证日期"> <el-form-item label="发证日期">
<el-date-picker v-model="listQuery.certificateDate" type="date" class="addinputw" format="yyyy-MM-dd" <el-date-picker
value-format="yyyy-MM-dd" placeholder="选择日期时间"/> v-model="listQuery.params.certificateStartDate "
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker
v-model="listQuery.params.certificateEndDate"
type="date"
value-format="yyyy-MM-dd"
placeholder="选择日期">
</el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="合格证情况"> <el-form-item label="合格证状态">
<el-select v-model="listQuery.certificateSituation" class="addinputw" clearable placeholder="请选择合格证情况" <el-select v-model="listQuery.params.certificateState" class="addinputw" clearable placeholder="请选择合格证状态"
style="width: 200px;"> style="width: 200px;">
<el-option v-for="item in Situation" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> <el-option v-for="item in Situation" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-button type="primary" @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">
@ -53,9 +58,9 @@
<span>{{ scope.row.certificateDate }}</span> <span>{{ scope.row.certificateDate }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="合格证情况" align="center"> <el-table-column label="合格证状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.certificateSituationValue }}</span> <span>{{ scope.row.certificateStateValue }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="到证日期" align="center"> <el-table-column label="到证日期" align="center">
@ -116,101 +121,131 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { import { basefinbankExportExcel, deleteBySids, pagerList } from '@/api/cheliang/basevehiclecertificate'
pagerList, import { typeValues } from '@/api/cheliang/dictcommons'
deleteBySids, // import { getFileType, parseDate, parseTime, ConvertMenuState } from "@/utils";
basefinbankExportExcel // import { findButtonByUserId } from '@/api/sys/permission'
} from '@/api/cheliang/basevehiclecertificate' import Pagination from '@/components/pagination'
import { typeValues } from '@/api/cheliang/dictcommons' import pageye from '@/components/pagination/pageye'
// import { getFileType, parseDate, parseTime, ConvertMenuState } from "@/utils"; import hegezhengtaizhangAdd from './hegezhengtaizhangAdd'
// import { findButtonByUserId } from '@/api/sys/permission' import hegezhengInfo from './hegezhengInfo'
import Pagination from '@/components/pagination' import CheliangtaizhangInfo from '@/views/cheliang/cheliangtaizhang/cheliangtaizhangInfo'
import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar'
import hegezhengtaizhangAdd from './hegezhengtaizhangAdd'
import hegezhengInfo from './hegezhengInfo'
import cheliangtaizhangInfo from '@/views/cheliang/cheliangtaizhang/cheliangtaizhangInfo'
import CheliangtaizhangInfo from '@/views/cheliang/cheliangtaizhang/cheliangtaizhangInfo'
export default { export default {
name: 'Pinpaiguanli', name: 'Pinpaiguanli',
components: { components: {
CheliangtaizhangInfo, CheliangtaizhangInfo,
Pagination, Pagination,
pageye, pageye,
hegezhengtaizhangAdd, hegezhengtaizhangAdd,
hegezhengInfo hegezhengInfo,
}, ButtonBar
// 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, viewState: 1,
searchxianshitit: '显示查询条件', isSearchShow: false,
imgs: [], searchxianshitit: '显示查询条件',
// --------- imgs: [],
menuState: { // ---------
add: false, // btndisabled: false,
edit: false, // btnList: [
delete: false, // {
view: false, // type: 'primary',
audit: false, // size: 'small',
input: false, // icon: 'el-icon-plus',
output: false, // btnKey: 'toAdd',
upload: false, // btnLabel: '新增'
release: false // },
{
type: 'primary',
size: 'small',
icon: 'el-icon-edit',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'el-icon-delete',
btnKey: 'doDel',
btnLabel: '删除'
}, },
// ----------- {
tableKey: 0, type: 'success',
// list: null, size: 'small',
list: [], icon: '',
sids: [], btnKey: 'doExport',
total: 1, btnLabel: '导出'
FormLoading: false, }
listLoading: false, ],
listQuery: { menuState: {
certificationNo: '', add: false, //
certificateDateL: '', edit: false, //
certificateSituation: '', delete: false, //
current: 1, view: false, //
size: 20 audit: false, //
input: false, //
output: false, //
upload: false, //
release: false //
},
// -----------
tableKey: 0,
// list: null,
list: [],
sids: [],
total: 1,
FormLoading: false,
listLoading: false,
listQuery: {
params: {
certificateStartDate: '',
certificateEndDate: '',
certificateState: '',
certificationNo: ''
}, },
certificateSituation: 'certificateSituation', current: 1,
size: 20
},
Situation: [], Situation: [],
selectDate: undefined, selectDate: undefined,
temp: {}, // temp: {}, //
@ -242,76 +277,90 @@
} }
// ------------------------------------ // ------------------------------------
} }
},
computed: {
...mapGetters([
'id',
'roles',
'rolesIds',
'departmentId',
'departmentCode'
])
},
created() {
//
this.init()
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
}, },
computed: { init() {
...mapGetters([ // .
'id', // findButtonByUserId(this.$route.path).then(response => {
'roles', // if (
'rolesIds', // response.code === 20000 &&
'departmentId', // response.data &&
'departmentCode' // response.data.length > 0
]) // ) {
// this.menuState = ConvertMenuState(response.data) //
// }
// })
this.setDate()
}, },
created() { btnHandle(btnKey) {
// console.log('XXXXXXXXXXXXXXX ' + btnKey)
this.init() switch (btnKey) {
// case 'toAdd':
this.getList() this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'doExport':
this.doExport()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
}, },
methods: { resetState() {
// this.viewState = 1
clicksearchShow() { },
this.isSearchShow = !this.isSearchShow setDate() {
if (this.isSearchShow) { typeValues({
this.searchxianshitit = '隐藏查询条件' type: 'certificateState'
} else { }).then((res) => {
this.searchxianshitit = '显示查询条件' console.log(res)
if (res.code === '200') {
this.Situation = res.data
} }
}, })
init() { },
// . //
// findButtonByUserId(this.$route.path).then(response => {
// if (
// response.code === 20000 &&
// response.data &&
// response.data.length > 0
// ) {
// this.menuState = ConvertMenuState(response.data) //
// }
// })
this.setDate()
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
resetState() {
this.viewState = 1
},
setDate() {
typeValues({
type: this.certificateSituation
}).then((res) => {
console.log(res)
if (res.code === '200') {
this.Situation = res.data
}
})
},
//
getList() { getList() {
this.listLoading = true this.listLoading = true
pagerList({ pagerList(this.listQuery).then((response) => {
current: this.listQuery.current,
size: this.listQuery.size,
params: {
certificationNo: this.listQuery.certificationNo,
certificateDateL: this.listQuery.certificateDateL,
certificateSituation: this.listQuery.certificateSituation
}
}).then((response) => {
console.log('列表查询结果:', response) console.log('列表查询结果:', response)
this.listLoading = false this.listLoading = false
if ( if (
@ -327,74 +376,87 @@
} }
}) })
}, },
// //
handleFilter() { handleFilter() {
this.listQuery.current = 1 this.listQuery.current = 1
this.getList() this.getList()
}, },
//
// ------------------------------------------------------ handleReset() {
// this.listQuery = {
resetTemp() { params: {
this.temp = { certificateStartDate: '',
jc: '', // false string certificateEndDate: '',
organizationId: '', // false string certificateState: '',
qc: '', // false string certificationNo: ''
remark: '', // false },
string: '', // current: 1,
state: '' // size: 20
} }
}, this.getList()
handleSelectionChange(row) { },
const aa = [] // ------------------------------------------------------
row.forEach((element) => { //
aa.push(element.sid) resetTemp() {
}) this.temp = {
this.sids = aa jc: '', // false string
}, organizationId: '', // false string
// qc: '', // false string
handleCreate() { remark: '', // false
this.viewState = 2 string: '', //
// this.dialogStatus = 'add' state: '' //
this.$refs['divadd'].showAdd() }
// this.$router.push({ },
// path: '/cheliang/hegezhengtaizhangAdd/0' handleSelectionChange(row) {
// }) const aa = []
}, row.forEach((element) => {
// aa.push(element.sid)
cheLiangXiangXi(row) { })
console.log('0222221133', row) this.sids = aa
this.viewState = 5 },
this.$refs['chelianginfo'].showInfo(row.vehicleSid) //
toAdd() {
this.viewState = 2
// this.dialogStatus = 'add'
this.$refs['divadd'].showAdd()
// this.$router.push({
// path: '/cheliang/hegezhengtaizhangAdd/0'
// })
},
//
cheLiangXiangXi(row) {
console.log('0222221133', row)
this.viewState = 5
this.$refs['chelianginfo'].showInfo(row.vehicleSid)
// this.$router.push({
// path: '/cheliang/cheliangtaizhangInfo',
// query: {
// sid: row.vehicleSid
// }
// })
},
//
toEdit() {
if (this.sids.length === 1) {
this.dialogStatus = 'update'
this.viewState = 3
const sid = this.sids[0]
const row = this.row
this.$refs['divadd'].showEdit(sid, row)
// this.$router.push({ // this.$router.push({
// path: '/cheliang/cheliangtaizhangInfo', // path: `/cheliang/hegezhengtaizhangAdd/${this.sids[0]}`
// query: {
// sid: row.vehicleSid
// }
// }) // })
}, } else if (this.sids.length > 1) {
// this.$notify({
handleUpdate() { title: '提示',
if (this.sids.length === 1) { message: '不能选中多个合格证台账修改!!',
this.dialogStatus = 'update' type: 'info',
this.viewState = 3 duration: 2000
const sid = this.sids[0] })
const row = this.row } else {
this.$refs['divadd'].showEdit(sid,row) this.$notify({
// this.$router.push({ title: '提示',
// path: `/cheliang/hegezhengtaizhangAdd/${this.sids[0]}` message: '没有选择合格证台账!!',
// })
} else if (this.sids.length > 1) {
this.$notify({
title: '提示',
message: '不能选中多个合格证台账修改!!',
type: 'info',
duration: 2000
})
} else {
this.$notify({
title: '提示',
message: '没有选择合格证台账!!',
type: 'error', type: 'error',
duration: 2000 duration: 2000
}) })
@ -414,60 +476,70 @@
// } // }
// }) // })
}, },
// ID // ID
handleDelete() { doDel() {
if (this.sids.length > 0) { const _this = this
deleteBySids(this.sids).then((response) => { if (this.sids.length > 0) {
if (response.code === '200') { const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$notify({ this.$confirm(tip, '提示', {
title: '提示', confirmButtonText: '确定',
message: '删除成功', cancelButtonText: '取消',
type: 'success', type: 'warning'
duration: 2000 })
.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 => {
loading.close()
_this.$message({ type: 'success', message: resp.msg, showClose: true })
_this.getList()
}) })
this.getList() .catch(e => {
} else { loading.close()
this.$notify({
title: '失败',
message: response.msg,
type: 'error'
}) })
}
})
} else {
this.$notify({
title: '提示',
message: '没有选择合格证台账!!',
type: 'error',
duration: 2000
})
return
}
},
//
handleDaoChu() {
basefinbankExportExcel(this.sids).then((res) => {
const blob = new Blob([res], {
type: 'application/vnd.ms-excel'
}) })
const objectUrl = URL.createObjectURL(blob) .catch(() => {
window.location.href = objectUrl
this.$notify({
title: '提示',
message: '导出成功',
type: 'success',
duration: 2000
}) })
} else {
this.$notify({
title: '提示',
message: '没有选择合格证台账!!',
type: 'error',
duration: 2000
}) })
}, return
handleLock(row) { }
console.log('789789789', row) },
this.imgs = row.certificatePhoto //
console.log(this.imgs, 'wowoeieiurir') doExport() {
this.dialogFormVisible = true basefinbankExportExcel(this.sids).then((res) => {
this.dialogTitle = '查看' 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
})
})
},
handleLock(row) {
console.log('789789789', row)
this.imgs = row.certificatePhoto
console.log(this.imgs, 'wowoeieiurir')
this.dialogFormVisible = true
this.dialogTitle = '查看'
// this.$refs.editform.initForm(row) // this.$refs.editform.initForm(row)
} }
} }
} }
</script> </script>
@ -493,4 +565,19 @@
.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>

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

@ -13,21 +13,12 @@
<el-form ref="dataForm" :model="temp" label-position="right" label-width="190px" class="formadd" :rules="rules"> <el-form ref="dataForm" :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-form-item>
<span slot="label">合格证流水号</span>
<el-input v-model="temp.certificationSerialNum" maxlength="125" placeholder="合格证流水号" disabled
class="addinputw" clearable/>
</el-form-item>
</el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="certificationNo"> <el-form-item prop="certificationNo">
<span slot="label">合格证编号</span> <span slot="label">合格证编号</span>
<el-input v-model="temp.certificationNo" maxlength="125" placeholder="" class="addinputw" clearable/> <el-input v-model="temp.certificationNo" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="certificateDate"> <el-form-item prop="certificateDate">
<span slot="label">发证日期</span> <span slot="label">发证日期</span>
@ -36,17 +27,18 @@
<!-- <el-date-picker v-model="temp.certificateDate" type="date" placeholder="选择日期时间" /> --> <!-- <el-date-picker v-model="temp.certificateDate" type="date" placeholder="选择日期时间" /> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="certificateSituation"> <el-form-item prop="certificateState">
<span slot="label">合格证情况</span> <span slot="label">合格证状态</span>
<el-select v-model="temp.certificateSituation" class="addinputw" placeholder="请选择合格证情况" <el-select v-model="temp.certificateState" class="addinputw" placeholder="请选择合格证状态"
@change="getHeGeZheng"> @change="getHeGeZheng">
<el-option v-for="item in Situation" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/> <el-option v-for="item in Situation" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="toCardDate"> <el-form-item prop="toCardDate">
<span slot="label">到证日期</span> <span slot="label">到证日期</span>
@ -55,6 +47,8 @@
<!-- <el-date-picker v-model="temp.toCardDate" type="date" placeholder="选择日期时间" /> --> <!-- <el-date-picker v-model="temp.toCardDate" type="date" placeholder="选择日期时间" /> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="receiveDate"> <el-form-item prop="receiveDate">
<span slot="label">领取日期</span> <span slot="label">领取日期</span>
@ -63,14 +57,24 @@
<!-- <el-date-picker v-model="temp.receiveDate" type="date" placeholder="选择日期时间" /> --> <!-- <el-date-picker v-model="temp.receiveDate" type="date" placeholder="选择日期时间" /> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item prop="receiver"> <el-form-item prop="receiver">
<span slot="label">领取人</span> <span slot="label">领取人</span>
<el-input v-model="temp.receiver" maxlength="125" placeholder="" class="addinputw" clearable/> <el-input v-model="temp.receiver" maxlength="125" placeholder="" class="addinputw" clearable/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item prop="certificateSituation">
<span slot="label">合格证情况</span>
<el-select v-model="temp.certificateSituation" class="addinputw" placeholder="请选择合格证状态"
@change="getQingkuang">
<el-option v-for="item in qingkuang_list" :key="item.dictKey" :label="item.dictValue"
:value="item.dictKey"/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12"/> <el-col :span="12"/>
</el-row> </el-row>
<el-row> <el-row>
@ -304,100 +308,84 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { import { details, SaveList, Update } from '@/api/cheliang/basevehiclecertificate'
SaveList, import { namesDownBySid, selectDownPlus } from '@/api/cheliang/basevehiclemodel'
Update, import { namesDown } from '@/api/cheliang/basevehicle'
details import { getNamesDownes } from '@/api/cheliang/basemanufacturer'
} from '@/api/cheliang/basevehiclecertificate' import { getChe } from '@/utils/baocun'
import { import { typeValues } from '@/api/cheliang/dictcommons'
selectDownPlus import ImageUpload from '@/components/uploadFile/ManyImageUpload' //
} from '@/api/cheliang/basevehiclemodel' export default {
import { name: 'PinpaiAdd',
namesDownBySid components: { ImageUpload },
} from '@/api/cheliang/basevehiclemodel' data() {
import { return {
namesDown viewTitle: '',
} from '@/api/cheliang/basevehicle' // ---------
import { menuState: {
getNamesDownes add: false, //
} from '@/api/cheliang/basemanufacturer' edit: false, //
import { brandLike } from '@/api/cheliang/brandManagement' // delete: false, //
import { setChe, getChe } from '@/utils/baocun' view: false, //
import { typeValues } from '@/api/cheliang/dictcommons' audit: false, //
import ImageUpload from '@/components/uploadFile/ManyImageUpload' // input: false, //
export default { output: false, //
name: 'PinpaiAdd', upload: false, //
components: { ImageUpload }, release: false //
data() { },
return { FormLoading: false,
viewTitle: '', listLoading: false,
// --------- temp: {
menuState: { certificateSituation: '',
add: false, // certificateSituationValue: '',
edit: false, // certificatePhoto: [],
delete: false, // certificateState: '', // key
view: false, // certificateStateValue: '' // value
audit: false, // }, //
input: false, // templook: {}, //
output: false, // Situation: [],
upload: false, // qingkuang_list: [],
release: false // stateId: 0,
}, dialogFormVisible: false, //
FormLoading: false, dialogFormShowVisible: false, //
listLoading: false, dialogStatus: '', //
temp: { fenzuOptions: [],
certificateSituation: '', attachTypeYingyezhizhao: [],
certificateSituationValue: '', props: {
certificatePhoto: [] value: 'id',
}, // label: 'name',
templook: {}, // children: 'children',
textMap: { checkStrictly: true
update: '修改', },
create: '创建' carBrandes: [],
}, ChangShangsid: '',
certificateSituation: 'certificateSituation', CJsid: '',
Situation: [], vinNosse: [],
stateId: 0, Model: [],
dialogFormVisible: false, // vSid: null,
dialogFormShowVisible: false, // rules: {
dialogStatus: '', // certificationNo: [
fenzuOptions: [], { required: true, message: '请填写合格证编号', trigger: 'blur' }
attachTypeYingyezhizhao: [], ],
props: { certificateDate: [
value: 'id', { required: true, message: '请选择发证日期', trigger: 'blur' }
label: 'name', ],
children: 'children', certificateSituation: [
checkStrictly: true { required: true, message: '请选择合格证情况', trigger: 'blur' }
}, ],
carBrandes: [], toCardDate: [
ChangShangsid: '', { required: true, message: '请选择到证日期', trigger: 'blur' }
CJsid: '', ],
vinNosse: [], receiveDate: [
Model: [], { required: true, message: '请选择领取日期', trigger: 'blur' }
vSid: null, ],
rules: { receiver: [
certificationNo: [ { required: true, message: '请填写领取人', trigger: 'blur' }
{ required: true, message: '请填写合格证编号', trigger: 'blur' } ],
], remarks: [{ required: true, message: '请填写备注', trigger: 'blur' }]
certificateDate: [ // certificatePhoto: [
{ required: true, message: '请选择发证日期', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' },
],
certificateSituation: [
{ required: true, message: '请选择合格证情况', trigger: 'blur' }
],
toCardDate: [
{ required: true, message: '请选择到证日期', trigger: 'blur' }
],
receiveDate: [
{ required: true, message: '请选择领取日期', trigger: 'blur' }
],
receiver: [
{ required: true, message: '请填写领取人', trigger: 'blur' }
],
remarks: [{ required: true, message: '请填写备注', trigger: 'blur' }]
// certificatePhoto: [
// { required: true, message: '', trigger: 'blur' },
// ], // ],
} }
// ------------------------------------ // ------------------------------------
@ -570,15 +558,28 @@
} }
}) })
}, },
// //
getHeGeZheng(value) { getHeGeZheng(value) {
let bb = null let bb = null
this.Situation.forEach(e => { this.Situation.forEach(e => {
if (e.dictKey == value) { if (e.dictKey == value) {
bb = { bb = {
type: 'certificateSituation',
name: e.dictValue, name: e.dictValue,
vaule: e.dictKey key: e.dictKey
}
}
})
this.temp.certificateStateValue = bb.name
console.log('value值', this.temp.certificateStateValue)
},
//
getQingkuang(value) {
let bb = null
this.qingkuang_list.forEach(e => {
if (e.dictKey == value) {
bb = {
name: e.dictValue,
key: e.dictKey
} }
} }
}) })
@ -586,12 +587,20 @@
console.log('value值', this.temp.certificateSituationValue) console.log('value值', this.temp.certificateSituationValue)
}, },
setDate() { setDate() {
typeValues({ type: this.certificateSituation }).then((res) => { //
typeValues({ type: 'certificateState' }).then((res) => {
console.log(res) console.log(res)
if (res.code === '200') { if (res.code === '200') {
this.Situation = res.data this.Situation = res.data
} }
}) })
//
typeValues({ type: 'certificateSituation' }).then((res) => {
console.log(res)
if (res.code === '200') {
this.qingkuang_list = res.data
}
})
}, },
// ------------------------------------------------------ // ------------------------------------------------------
fileChangeIt(files,imgFiles){ fileChangeIt(files,imgFiles){
@ -600,8 +609,14 @@
// //
handleReturn(isreload) { handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist') if (isreload === 'true') this.$emit('reloadlist')
// this.temp = {} this.temp = {
this.$emit('doback') certificateSituation: '',
certificateSituationValue: '',
certificatePhoto: [],
certificateState: '', // key
certificateStateValue: '' // value
}, //
this.$emit('doback')
// this.$router.go(-1) // this.$router.go(-1)
}, },

Loading…
Cancel
Save