李磊
3 years ago
27 changed files with 201 additions and 3305 deletions
File diff suppressed because it is too large
@ -1,17 +1,11 @@ |
|||||
<template> |
<template> |
||||
<boiler-db-list v-if="ifBoiler" /> |
<original-db-list /> |
||||
<original-db-list v-else /> |
|
||||
</template> |
</template> |
||||
<script> |
<script> |
||||
import originalDbList from './components/original_db_list' |
import originalDbList from './components/original_db_list' |
||||
import boilerDbList from './components/boiler_db_list' |
|
||||
export default { |
export default { |
||||
name: 'TODOReport', |
name: 'TODOReport', |
||||
components: { originalDbList, boilerDbList }, |
components: { originalDbList } |
||||
data() { |
|
||||
return { |
|
||||
ifBoiler: this.$store.getters.departmentId === 75 |
|
||||
} |
|
||||
} |
|
||||
} |
} |
||||
</script> |
</script> |
||||
|
@ -1,368 +0,0 @@ |
|||||
<template> |
|
||||
<div class="app-container"> |
|
||||
<div class="filter-container"> |
|
||||
<sticky style="margin-bottom: 10px;"> |
|
||||
<div class="sub-navbar"> |
|
||||
<el-button type="danger" icon="el-icon-delete" @click="delYsjl"> |
|
||||
删除记录 |
|
||||
</el-button> |
|
||||
</div> |
|
||||
</sticky> |
|
||||
<el-form> |
|
||||
<el-form-item> |
|
||||
<el-input v-model="listQuery.searchYsjl.jilubianhao" placeholder="记录编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
||||
<el-input v-model="listQuery.searchYsjl.shigongdanwei" placeholder="安装单位" clearable style="width: 400px" @keyup.enter.native="handleFilter" /> |
|
||||
<el-button size="small" type="primary" icon="el-icon-search" @click="handleFilter"> |
|
||||
查询 |
|
||||
</el-button> |
|
||||
<el-button size="small" type="info" icon="el-icon-close" @click="clearQuery"> |
|
||||
清空条件 |
|
||||
</el-button> |
|
||||
<br> |
|
||||
<el-input v-model="listQuery.searchYsjl.zhizaodanwei" placeholder="制造单位" clearable style="width: 400px" @keyup.enter.native="handleFilter" /> |
|
||||
<el-input v-model="listQuery.searchYsjl.chanpinbianhao" placeholder="出厂编号" clearable style="width: 240px" @keyup.enter.native="handleFilter" /> |
|
||||
<span class="radio-group-label">编辑类型:</span> |
|
||||
<el-radio-group v-model="listQuery.searchYsjl.createBy" @change="handleFilter"> |
|
||||
<el-radio :label="$store.getters.userId"> |
|
||||
只看创建人 |
|
||||
</el-radio> |
|
||||
<el-radio :label="undefined"> |
|
||||
全部 |
|
||||
</el-radio> |
|
||||
</el-radio-group> |
|
||||
</el-form-item> |
|
||||
</el-form> |
|
||||
</div> |
|
||||
<el-table |
|
||||
ref="list" |
|
||||
v-adaptive="{bottomOffset: 50}" |
|
||||
height="0" |
|
||||
:data="list" |
|
||||
:default-sort="{prop:'jilubianhao', order:'descending'}" |
|
||||
:row-class-name="tableRowClassName" |
|
||||
element-loading-text="拼命加载中" |
|
||||
border |
|
||||
fit |
|
||||
highlight-current-row |
|
||||
stripe |
|
||||
width="100%" |
|
||||
size="small" |
|
||||
@row-click="onRowClick" |
|
||||
@selection-change="handleSelectionChange" |
|
||||
@sort-change="sortChange" |
|
||||
> |
|
||||
<el-table-column type="selection" width="40" /> |
|
||||
<el-table-column fixed="left" align="center" label="序号" width="60"> |
|
||||
<template slot-scope="scope"> |
|
||||
<span v-text="getIndex(scope.$index)" /> |
|
||||
</template> |
|
||||
</el-table-column> |
|
||||
<el-table-column align="center" label="记录编号" prop="jilubianhao" width="180" sortable="custom" /> |
|
||||
<el-table-column :formatter="formatter.formatterCategory" align="center" label="检验类别" prop="neibuleibie" width="100" /> |
|
||||
<el-table-column align="center" label="安装单位" prop="shigongdanwei" width="240" /> |
|
||||
<el-table-column align="center" label="产品编号/出厂编号" prop="chanpinbianhao" width="220" /> |
|
||||
<el-table-column align="center" label="制造单位" prop="zhizaodanwei" width="240" /> |
|
||||
<el-table-column :formatter="formatter.getChineseName" align="center" label="检验人员" prop="jianyanrenyuan" width="140" /> |
|
||||
<el-table-column align="center" label="设备代码" prop="shebeidaima" width="140" /> |
|
||||
<el-table-column fixed="right" align="center" label="操作" prop="" width="200"> |
|
||||
<template slot-scope="scope"> |
|
||||
<el-button type="primary" size="mini" circle icon="el-icon-edit" title="编辑" @click="editYsjl(scope.$index)" /> |
|
||||
<el-button type="success" size="mini" circle icon="el-icon-view" title="预览" @click="common.viewYsjl(scope.row.id, 'JYBG')" /> |
|
||||
<el-button size="mini" type="info" icon="el-icon-message" title="查看驳回意见" circle @click="viewAllRejection(list[scope.$index].id)" /> |
|
||||
</template> |
|
||||
</el-table-column> |
|
||||
</el-table> |
|
||||
<pagination v-show="total>0" :total="total" :page-num.sync="listQuery.pageNum" :page-row.sync="listQuery.pageRow" style="float: left;" @pagination="getList" /> |
|
||||
<div style="float: right;margin-top:8px;"> |
|
||||
<div style="width: 80px;float:left;margin-left: 50px;"> |
|
||||
重启流程: |
|
||||
</div> |
|
||||
<div class="identification" style="background-color:red;" /> |
|
||||
<div style="width: 50px;float:left;margin-left: 20px;"> |
|
||||
驳回: |
|
||||
</div> |
|
||||
<div class="identification" style="background-color: orange;" /> |
|
||||
<div style="width: 50px;float:left;margin-left: 20px;"> |
|
||||
复制: |
|
||||
</div> |
|
||||
<div class="identification" style="background-color:#690cff;" /> |
|
||||
</div> |
|
||||
|
|
||||
<!-- 驳回意见 --> |
|
||||
<el-dialog :visible.sync="dialogBohuiyijianVisible" title="驳回意见" width="50%"> |
|
||||
<el-table :data="infoNotes"> |
|
||||
<el-table-column align="center" label="驳回人" prop="infoSend" /> |
|
||||
<el-table-column align="center" label="驳回意见" prop="infoNotes" /> |
|
||||
<el-table-column align="center" label="驳回时间" prop="createTime" /> |
|
||||
</el-table> |
|
||||
</el-dialog> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import Sticky from '@/components/Sticky' |
|
||||
import Pagination from '@/components/Pagination' |
|
||||
import { getNeedRecordList } from '@/api/ysjl' |
|
||||
import Utils from '@/utils/contact' |
|
||||
export default { |
|
||||
components: { Sticky, Pagination }, |
|
||||
data() { |
|
||||
return { |
|
||||
total: 0, |
|
||||
list: [], |
|
||||
listQuery: { |
|
||||
pageNum: 1, // 页码 |
|
||||
pageRow: 20, // 每页条数 |
|
||||
order: undefined, // 排序字段 |
|
||||
sort: undefined, // 排序方式 |
|
||||
searchYsjl: { |
|
||||
createBy: this.$store.getters.userId |
|
||||
}, |
|
||||
hasChild: true |
|
||||
}, |
|
||||
multipleSelection: [], |
|
||||
ysjlId: '', |
|
||||
sbzlList: [], |
|
||||
sblbList: [], |
|
||||
sbpzList: [], |
|
||||
modelList: [], |
|
||||
sbzldm: '', |
|
||||
sblbdm: '', |
|
||||
sbpzdm: '', |
|
||||
modelId: '', |
|
||||
isQm: true, |
|
||||
infoNotes: '', |
|
||||
dialogBohuiyijianVisible: false |
|
||||
} |
|
||||
}, |
|
||||
created() { |
|
||||
this.getList() |
|
||||
}, |
|
||||
mounted() { |
|
||||
const that = this |
|
||||
this.common.$on('ysjl-list', function() { |
|
||||
that.handleFilter() |
|
||||
}) |
|
||||
}, |
|
||||
methods: { |
|
||||
getList() { |
|
||||
this.listQuery.searchYsjl.cjState = 'ysjl' |
|
||||
getNeedRecordList(this.listQuery).then(data => { |
|
||||
this.list = data.list |
|
||||
this.total = data.total |
|
||||
this.common.switchInspection(this.list) |
|
||||
}) |
|
||||
}, |
|
||||
sortChange(column) { |
|
||||
this.listQuery.order = column.prop |
|
||||
this.listQuery.sort = column.order.replace('ending', '') |
|
||||
this.getList() |
|
||||
}, |
|
||||
getIndex($index) { |
|
||||
// 表格序号 |
|
||||
return (this.listQuery.pageNum - 1) * this.listQuery.pageRow + $index + 1 |
|
||||
}, |
|
||||
handleFilter() { |
|
||||
// 查询事件 |
|
||||
this.listQuery.pageNum = 1 |
|
||||
this.getList() |
|
||||
}, |
|
||||
onRowClick(row) { |
|
||||
this.$refs.list.toggleRowSelection(row) |
|
||||
}, |
|
||||
handleSelectionChange: function(val) { |
|
||||
this.multipleSelection = val |
|
||||
}, |
|
||||
delYsjl() { |
|
||||
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
||||
if (this.multipleSelection[i].bglx !== 1) { |
|
||||
this.$message({ |
|
||||
message: '请选择主原始记录进行删除!', |
|
||||
type: 'warning' |
|
||||
}) |
|
||||
return false |
|
||||
} |
|
||||
} |
|
||||
this.ysjlId = '' |
|
||||
let oldRwIds = '' // 16版任务主键 |
|
||||
let newRwIds = '' // 18版任务主键 |
|
||||
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
||||
this.ysjlId = this.multipleSelection[i].id + ',' + this.ysjlId |
|
||||
// 锅炉需要修改16版任务状态 |
|
||||
if (this.multipleSelection[i].shebeizhongleidaima === '1000') { |
|
||||
if (this.multipleSelection[i].source === 'pad') { |
|
||||
oldRwIds += this.multipleSelection[i].renwuId + ',' |
|
||||
} else { |
|
||||
newRwIds += this.multipleSelection[i].renwuId + ',' |
|
||||
} |
|
||||
} |
|
||||
if (i + 1 === this.multipleSelection.length) { |
|
||||
this.ysjlId = this.ysjlId.substring(0, this.ysjlId.length - 1) |
|
||||
} |
|
||||
} |
|
||||
// 查询是否有无损原始记录生成报告 |
|
||||
this.api({ |
|
||||
url: '/ysjl/judgeState', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
ysjlIds: this.ysjlId, |
|
||||
bglx: '2', |
|
||||
isDel: true |
|
||||
} |
|
||||
}).then(data => { |
|
||||
if (data === 0) { |
|
||||
this.$confirm('已有无损原始记录生成报告, 是否继续?', '提示', { |
|
||||
confirmButtonText: '确定', |
|
||||
cancelButtonText: '取消', |
|
||||
type: 'warning' |
|
||||
}).then(() => { |
|
||||
this.del(this.ysjlId, oldRwIds, newRwIds) |
|
||||
}).catch(() => { |
|
||||
this.$message({ |
|
||||
type: 'info', |
|
||||
message: '已取消删除' |
|
||||
}) |
|
||||
return false |
|
||||
}) |
|
||||
} else { |
|
||||
this.$confirm('确定删除当前选中记录?', '提示', { |
|
||||
confirmButtonText: '确定', |
|
||||
type: 'warning' |
|
||||
}).then(() => { |
|
||||
this.del(this.ysjlId, oldRwIds, newRwIds) |
|
||||
}).catch(() => { |
|
||||
this.$message({ |
|
||||
type: 'info', |
|
||||
message: '已取消删除' |
|
||||
}) |
|
||||
return false |
|
||||
}) |
|
||||
} |
|
||||
}) |
|
||||
}, |
|
||||
del(ids, oldRwIds, newRwIds) { |
|
||||
this.api({ |
|
||||
url: '/ysjl', |
|
||||
method: 'delete', |
|
||||
params: { |
|
||||
ids: ids |
|
||||
} |
|
||||
}).then(() => { |
|
||||
this.$message({ |
|
||||
message: '删除成功', |
|
||||
type: 'success', |
|
||||
duration: 1000, |
|
||||
onClose: () => { |
|
||||
this.getList() |
|
||||
Utils.$emit('task-list') |
|
||||
} |
|
||||
}) |
|
||||
}) |
|
||||
}, |
|
||||
editYsjl($index) { |
|
||||
const ysjl = this.list[$index] |
|
||||
this.api({ |
|
||||
url: '/template/getById', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
id: ysjl.modelId |
|
||||
} |
|
||||
}).then(data => { |
|
||||
const queryParam = this.common.buildEditYsjlRouterParam(ysjl) |
|
||||
if (ysjl.bglx === 1) { |
|
||||
this.$router.push({ path: data.tempPath + '/' + ysjl.id, query: queryParam }) |
|
||||
} else { |
|
||||
this.$router.push({ path: data.tempPath, query: queryParam }) |
|
||||
} |
|
||||
}) |
|
||||
}, |
|
||||
clearQuery() { |
|
||||
this.$set(this.listQuery, 'searchYsjl', { |
|
||||
bglx: 1, |
|
||||
createBy: this.$store.getters.userId |
|
||||
}) |
|
||||
this.getList() |
|
||||
}, |
|
||||
tableRowClassName({ row, rowIndex }) { |
|
||||
if (row.retreatState === 1) { |
|
||||
return 'reject-row' |
|
||||
} else if (row.retreatState === 2) { |
|
||||
return 'restart-row' |
|
||||
} else if (row.copyState === true) { |
|
||||
return 'copy-row' |
|
||||
} |
|
||||
return '' |
|
||||
}, |
|
||||
closeDialog() { |
|
||||
this.isQm = true |
|
||||
}, |
|
||||
getModelList(val) { |
|
||||
let tempJylb = '' |
|
||||
let category = '' |
|
||||
let nbleibie = '' |
|
||||
if (val === '7310') { |
|
||||
tempJylb = 'DJ' |
|
||||
category = 'YSJL' |
|
||||
nbleibie = 'DQ' |
|
||||
} |
|
||||
this.api({ |
|
||||
url: '/template/getTemplateBySbpz', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
sbpz: val, |
|
||||
jianyanleibie: tempJylb, |
|
||||
category: category, |
|
||||
neibuleibie: nbleibie |
|
||||
} |
|
||||
}).then(data => { |
|
||||
this.modelList = data |
|
||||
this.modelId = data[0].value |
|
||||
}) |
|
||||
}, |
|
||||
/** |
|
||||
* 根据报告ID查看驳回原因 |
|
||||
* @param ysjlId |
|
||||
*/ |
|
||||
viewAllRejection(ysjlId) { |
|
||||
this.api({ |
|
||||
url: '/taskinfo/viewAllRejection', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
ysjlId: ysjlId |
|
||||
} |
|
||||
}).then(data => { |
|
||||
this.infoNotes = data |
|
||||
if (!this.infoNotes.length) { |
|
||||
this.$alert('暂无驳回意见!', '驳回意见', { |
|
||||
confirmButtonText: '关闭' |
|
||||
}) |
|
||||
} else { |
|
||||
this.dialogBohuiyijianVisible = true |
|
||||
} |
|
||||
}) |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
<style> |
|
||||
.el-table .reject-row { |
|
||||
color: orange; |
|
||||
} |
|
||||
.el-table .restart-row { |
|
||||
color: red; |
|
||||
} |
|
||||
.el-table .copy-row { |
|
||||
color: #690cff; |
|
||||
} |
|
||||
.identification{ |
|
||||
width: 30px; |
|
||||
height:15px; |
|
||||
display: inline-block; |
|
||||
border:gray 1px solid; |
|
||||
border-radius:15px; |
|
||||
float: left; |
|
||||
} |
|
||||
button.el-button.el-button--mini.is-circle{ |
|
||||
margin: 1px; |
|
||||
} |
|
||||
</style> |
|
@ -1,149 +0,0 @@ |
|||||
<template> |
|
||||
<div class="app-container"> |
|
||||
<div class="filter-container"> |
|
||||
<el-form> |
|
||||
<el-form-item> |
|
||||
<el-input v-model="listQuery.jilubianhao" placeholder="记录编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
||||
<el-input v-model="listQuery.shigongdanwei" placeholder="安装单位" clearable style="width: 400px" @keyup.enter.native="handleFilter" /> |
|
||||
<el-button size="small" type="primary" icon="el-icon-search" @click="handleFilter"> |
|
||||
查询 |
|
||||
</el-button> |
|
||||
<el-button size="small" type="info" icon="el-icon-close" @click="clearQuery"> |
|
||||
清空条件 |
|
||||
</el-button> |
|
||||
<br> |
|
||||
<el-input v-model="listQuery.zhizaodanwei" placeholder="制造单位" clearable style="width: 400px" @keyup.enter.native="handleFilter" /> |
|
||||
<el-input v-model="listQuery.chanpinbianhao" placeholder="出厂编号" clearable style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
||||
<span class="radio-group-label">编辑类型:</span> |
|
||||
<el-radio-group v-model="listQuery.createBy" @change="handleFilter"> |
|
||||
<el-radio :label="$store.getters.userId"> |
|
||||
只看创建人 |
|
||||
</el-radio> |
|
||||
<el-radio :label="undefined"> |
|
||||
全部 |
|
||||
</el-radio> |
|
||||
</el-radio-group> |
|
||||
</el-form-item> |
|
||||
</el-form> |
|
||||
</div> |
|
||||
<el-table |
|
||||
ref="list" |
|
||||
v-adaptive="{bottomOffset: 50}" |
|
||||
height="0" |
|
||||
:data="list" |
|
||||
:default-sort="{prop:'jilubianhao', order:'descending'}" |
|
||||
element-loading-text="拼命加载中" |
|
||||
border |
|
||||
fit |
|
||||
highlight-current-row |
|
||||
stripe |
|
||||
width="100%" |
|
||||
size="small" |
|
||||
@row-click="onRowClick" |
|
||||
@selection-change="handleSelectionChange" |
|
||||
@sort-change="sortChange" |
|
||||
> |
|
||||
<el-table-column type="selection" width="40" /> |
|
||||
<el-table-column fixed="left" align="center" label="序号" width="60"> |
|
||||
<template slot-scope="scope"> |
|
||||
<span v-text="getIndex(scope.$index)" /> |
|
||||
</template> |
|
||||
</el-table-column> |
|
||||
<el-table-column align="center" label="记录编号" prop="jilubianhao" width="180" sortable="custom" /> |
|
||||
<el-table-column :formatter="formatter.formatterCategory" align="center" label="检验类别" prop="neibuleibie" width="100" /> |
|
||||
<el-table-column align="center" label="安装单位" prop="shigongdanwei" width="240" /> |
|
||||
<el-table-column align="center" label="产品编号/出厂编号" prop="chanpinbianhao" width="220" /> |
|
||||
<el-table-column align="center" label="制造单位" prop="zhizaodanwei" width="240" /> |
|
||||
<el-table-column :formatter="formatter.getChineseName" align="center" label="检验人员" prop="jianyanrenyuan" width="140" /> |
|
||||
<el-table-column align="center" label="设备代码" prop="shebeidaima" width="140" /> |
|
||||
<el-table-column align="center" label="操作" prop="" width="120"> |
|
||||
<template slot-scope="scope"> |
|
||||
<el-button type="primary" size="mini" circle icon="el-icon-view" title="预览 原始记录" @click="common.viewYsjl(scope.row.id, 'JYBG')" /> |
|
||||
</template> |
|
||||
</el-table-column> |
|
||||
</el-table> |
|
||||
<pagination v-show="total>0" :total="total" :page-num.sync="listQuery.pageNum" :page-row.sync="listQuery.pageRow" style="float: left;" @pagination="getList" /> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import Pagination from '@/components/Pagination' |
|
||||
export default { |
|
||||
components: { Pagination }, |
|
||||
data() { |
|
||||
return { |
|
||||
total: 0, |
|
||||
list: [], |
|
||||
listQuery: { |
|
||||
pageNum: 1, // 页码 |
|
||||
pageRow: 20, // 每页条数 |
|
||||
order: undefined, // 排序字段 |
|
||||
sort: undefined, // 排序方式 |
|
||||
createBy: this.$store.getters.userId, |
|
||||
hasChild: true, |
|
||||
link: 2 |
|
||||
}, |
|
||||
multipleSelection: [], |
|
||||
bglxOptions: [{ |
|
||||
value: '1', |
|
||||
label: '主报告' |
|
||||
}, { |
|
||||
value: '2', |
|
||||
label: '无损报告' |
|
||||
}] |
|
||||
} |
|
||||
}, |
|
||||
created() { |
|
||||
this.getList() |
|
||||
}, |
|
||||
mounted() { |
|
||||
const that = this |
|
||||
this.common.$on('ysjl-yb-list', function() { |
|
||||
that.handleFilter() |
|
||||
}) |
|
||||
}, |
|
||||
methods: { |
|
||||
getList() { |
|
||||
this.listQuery.cjState = 'bggl' |
|
||||
this.api({ |
|
||||
url: '/ysjl/getList', |
|
||||
method: 'get', |
|
||||
params: this.listQuery |
|
||||
}).then(data => { |
|
||||
this.list = data.list |
|
||||
this.total = data.total |
|
||||
this.common.switchInspection(this.list) |
|
||||
}) |
|
||||
}, |
|
||||
sortChange(column) { |
|
||||
this.listQuery.order = column.prop |
|
||||
this.listQuery.sort = column.order.replace('ending', '') |
|
||||
this.getList() |
|
||||
}, |
|
||||
getIndex($index) { |
|
||||
// 表格序号 |
|
||||
return (this.listQuery.pageNum - 1) * this.listQuery.pageRow + $index + 1 |
|
||||
}, |
|
||||
handleFilter() { |
|
||||
// 查询事件 |
|
||||
this.listQuery.pageNum = 1 |
|
||||
this.getList() |
|
||||
}, |
|
||||
onRowClick(row) { |
|
||||
this.$refs.list.toggleRowSelection(row) |
|
||||
}, |
|
||||
handleSelectionChange: function(val) { |
|
||||
this.multipleSelection = val |
|
||||
}, |
|
||||
clearQuery() { |
|
||||
this.listQuery = { |
|
||||
order: undefined, // 排序字段 |
|
||||
sort: undefined, // 排序方式 |
|
||||
createBy: this.$store.getters.userId, |
|
||||
hasChild: true |
|
||||
} |
|
||||
this.getList() |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
File diff suppressed because it is too large
@ -1,153 +0,0 @@ |
|||||
<template> |
|
||||
<div class="app-container"> |
|
||||
<div class="filter-container"> |
|
||||
<el-form> |
|
||||
<el-form-item> |
|
||||
<el-input v-model="listQuery.jilubianhao" placeholder="记录编号" clearable size="small" style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
||||
<el-input v-model="listQuery.zhizaodanwei" placeholder="单位名称" clearable size="small" style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
||||
<el-input v-model="listQuery.chanpinbianhao" placeholder="产品编号" clearable size="small" style="width: 200px" @keyup.enter.native="handleFilter" /> |
|
||||
<el-button size="small" type="primary" icon="el-icon-search" @click="handleFilter"> |
|
||||
查询 |
|
||||
</el-button> |
|
||||
</el-form-item> |
|
||||
</el-form> |
|
||||
</div> |
|
||||
<el-table |
|
||||
ref="list" |
|
||||
v-adaptive="{bottomOffset: 50}" |
|
||||
height="0" |
|
||||
:data="list" |
|
||||
:default-sort="{prop:'jilubianhao', order:'descending'}" |
|
||||
border |
|
||||
fit |
|
||||
highlight-current-row |
|
||||
stripe |
|
||||
size="mini" |
|
||||
width="100%" |
|
||||
@row-click="onRowClick" |
|
||||
@selection-change="handleSelectionChange" |
|
||||
@sort-change="sortChange" |
|
||||
> |
|
||||
<el-table-column type="selection" width="40px;" /> |
|
||||
<el-table-column type="index" align="center" label="序号" width="60px;" /> |
|
||||
<el-table-column align="center" label="记录编号" prop="jilubianhao" width="180px;" sortable="custom" /> |
|
||||
<el-table-column align="center" label="设备种类" prop="shebeizhonglei" width="130px;" sortable="custom" /> |
|
||||
<el-table-column :formatter="formatter.formatterCategory" align="center" label="检验类别" prop="jianyanleibie" width="100px;" /> |
|
||||
<el-table-column align="center" label="设备品种" prop="shebeipinzhong" width="130px;" sortable="custom" /> |
|
||||
<el-table-column align="center" label="单位名称" prop="zhizaodanwei" sortable="custom" width="250px;" /> |
|
||||
<el-table-column align="center" label="产品编号" prop="chanpinbianhao" width="130px;" sortable="custom" /> |
|
||||
<el-table-column align="center" label="产品名称" prop="shebeimingcheng" width="130px;" /> |
|
||||
<el-table-column align="center" label="设备型号" prop="guigexinghao" width="130px" /> |
|
||||
<el-table-column align="center" label="设计日期" prop="shejiriqi" width="140px;" /> |
|
||||
<el-table-column :formatter="formatter.getChineseName" align="center" label="检验人员" prop="jianyanrenyuan" width="100px;" /> |
|
||||
<el-table-column align="center" label="操作" fixed="right" width="150px;"> |
|
||||
<template slot-scope="{row}"> |
|
||||
<el-dropdown trigger="click"> |
|
||||
<el-button type="text" round plain class="el-dropdown-link" style="color: #13ce66"> |
|
||||
下拉操作<i class="el-icon-arrow-down el-icon--right" /> |
|
||||
</el-button> |
|
||||
<el-dropdown-menu slot="dropdown"> |
|
||||
<el-dropdown-item> |
|
||||
<el-button type="text" @click="common.viewYsjl(row.id, 'YSJL')"> |
|
||||
{{ row.shebeileibiedaima === '2100' && row.shengchanxingshi === '5' ? '预览批量原始记录' : '预览原始记录' }} |
|
||||
</el-button> |
|
||||
</el-dropdown-item> |
|
||||
<el-dropdown-item v-if="row.shebeileibiedaima === '2300'"> |
|
||||
<el-button type="text" @click="common.viewYsjl(row.id, 'OTHER')"> |
|
||||
预览批量证明 |
|
||||
</el-button> |
|
||||
</el-dropdown-item> |
|
||||
<el-dropdown-item v-if="row.shebeileibiedaima === '2100'"> |
|
||||
<el-button type="text" @click="common.viewYsjl(row.id, 'OTHER')"> |
|
||||
预览数据表 |
|
||||
</el-button> |
|
||||
</el-dropdown-item> |
|
||||
<el-dropdown-item> |
|
||||
<el-button type="text" @click="showVerification(row.renwuId)"> |
|
||||
查看相关鉴证 |
|
||||
</el-button> |
|
||||
</el-dropdown-item> |
|
||||
</el-dropdown-menu> |
|
||||
</el-dropdown> |
|
||||
</template> |
|
||||
</el-table-column> |
|
||||
</el-table> |
|
||||
<pagination v-show="total>0" :total="total" :page-num.sync="listQuery.pageNum" :page-row.sync="listQuery.pageRow" @pagination="getList" /> |
|
||||
<el-dialog title="查看相关鉴证" :modal-append-to-body="false" :visible.sync="dialogFormVisible"> |
|
||||
<enclosure :relation-id.sync="currentRenwuId" :if-liaison.sync="ifLiaison" :view-button.sync="viewButton" /> |
|
||||
</el-dialog> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import Pagination from '@/components/Pagination' |
|
||||
import Enclosure from '@/views/common/Enclosure' |
|
||||
export default { |
|
||||
components: { Pagination, Enclosure }, |
|
||||
data() { |
|
||||
return { |
|
||||
total: 0, |
|
||||
list: [], |
|
||||
listQuery: { |
|
||||
pageNum: 1, // 页码 |
|
||||
pageRow: 20, // 每页条数 |
|
||||
order: undefined, // 排序字段 |
|
||||
sort: undefined, // 排序方式 |
|
||||
shebeizhongleidaima: '2000', |
|
||||
jianyanleibie: 'ZJ', |
|
||||
hasLook: 2 |
|
||||
|
|
||||
}, |
|
||||
multipleSelection: [], |
|
||||
dialogFormVisible: false, |
|
||||
fileList: [], |
|
||||
currentRenwuId: 0, |
|
||||
viewButton: false, |
|
||||
ifLiaison: false |
|
||||
} |
|
||||
}, |
|
||||
created() { |
|
||||
this.getList() |
|
||||
}, |
|
||||
mounted() { |
|
||||
const that = this |
|
||||
this.common.$on('manufacture-done-list', function() { |
|
||||
that.handleFilter() |
|
||||
}) |
|
||||
}, |
|
||||
methods: { |
|
||||
getList() { |
|
||||
this.listQuery.cjState = 'bggl' |
|
||||
this.api({ |
|
||||
url: '/ysjl/getList', |
|
||||
method: 'get', |
|
||||
params: this.listQuery |
|
||||
}).then(data => { |
|
||||
this.list = data.list |
|
||||
this.total = data.total |
|
||||
}) |
|
||||
}, |
|
||||
sortChange(column) { |
|
||||
this.listQuery.order = column.prop |
|
||||
this.listQuery.sort = column.order.replace('ending', '') |
|
||||
this.getList() |
|
||||
}, |
|
||||
handleFilter() { |
|
||||
// 查询事件 |
|
||||
this.listQuery.pageNum = 1 |
|
||||
this.getList() |
|
||||
}, |
|
||||
onRowClick(row) { |
|
||||
this.selection = row |
|
||||
this.$refs.list.toggleRowSelection(row) |
|
||||
}, |
|
||||
handleSelectionChange: function(val) { |
|
||||
this.multipleSelection = val |
|
||||
}, |
|
||||
showVerification(renwuId) { |
|
||||
this.dialogFormVisible = true |
|
||||
this.currentRenwuId = renwuId |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
@ -1,21 +1,11 @@ |
|||||
<template> |
<template> |
||||
<manufacture-db-list v-if="ifManufacture" /> |
<original-db-list /> |
||||
<gascylinder-db-list v-else-if="ifGasCylinder" /> |
|
||||
<original-db-list v-else /> |
|
||||
</template> |
</template> |
||||
<script> |
<script> |
||||
import manufactureDbList from './components/manufacture_db_list' // 容器制造 |
|
||||
import originalDbList from './components/original_db_list' // 原始记录 |
import originalDbList from './components/original_db_list' // 原始记录 |
||||
import gascylinderDbList from './components/gascylinder_db_list' // 车用气瓶 |
|
||||
|
|
||||
export default { |
export default { |
||||
name: 'TODOYsjl', |
name: 'TODOYsjl', |
||||
components: { originalDbList, manufactureDbList, gascylinderDbList }, |
components: { originalDbList } |
||||
data() { |
|
||||
return { |
|
||||
ifManufacture: this.$store.getters.departmentId === 84 || this.hasRole('WZHM'), |
|
||||
ifGasCylinder: this.$store.getters.departmentId === 86 |
|
||||
} |
|
||||
} |
|
||||
} |
} |
||||
</script> |
</script> |
||||
|
@ -1,22 +1,13 @@ |
|||||
<template> |
<template> |
||||
<manufacture-yb-list v-if="ifManufacture" /> |
<original-yb-list /> |
||||
<gascylinder-yb-list v-else-if="ifGasCylinder" /> |
|
||||
<original-yb-list v-else /> |
|
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import originalYbList from './components/original_yb_list' |
import originalYbList from './components/original_yb_list' |
||||
import manufactureYbList from './components/manufacture_yb_list' |
|
||||
import gascylinderYbList from './components/gascylinder_yb_list' // 车用气瓶 |
|
||||
export default { |
export default { |
||||
name: 'HasDoneYsjl', |
name: 'HasDoneYsjl', |
||||
components: { originalYbList, manufactureYbList, gascylinderYbList }, |
components: { originalYbList } |
||||
data() { |
|
||||
return { |
|
||||
ifManufacture: this.$store.getters.departmentId === 84, |
|
||||
ifGasCylinder: this.$store.getters.departmentId === 86 |
|
||||
} |
|
||||
} |
|
||||
} |
} |
||||
</script> |
</script> |
||||
|
|
||||
|
Loading…
Reference in new issue