|
@@ -6,7 +6,7 @@
|
|
|
</el-breadcrumb>-->
|
|
</el-breadcrumb>-->
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<div slot="header" style="height: 13px">
|
|
<div slot="header" style="height: 13px">
|
|
|
- <el-radio-group v-model="queryTaskStatus" size="mini" style=" margin-top: -10px; float: left;" @change="initdata2()">
|
|
|
|
|
|
|
+ <el-radio-group v-model="queryTaskStatus" size="mini" style=" margin-top: -10px; float: left;" @change="initdata2(),initdatagroup()">
|
|
|
<el-radio-button :label="0">全部</el-radio-button>
|
|
<el-radio-button :label="0">全部</el-radio-button>
|
|
|
<el-radio-button :label="1">待办</el-radio-button>
|
|
<el-radio-button :label="1">待办</el-radio-button>
|
|
|
<el-radio-button :label="2">已办</el-radio-button>
|
|
<el-radio-button :label="2">已办</el-radio-button>
|
|
@@ -44,8 +44,22 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <el-row :gutter="20">
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-table :data="taskbalacelistgroup" size="small" border style="height: calc(100vh - 243px)" :row-class-name="tableRowClassName" height="530px"
|
|
|
|
|
+ @sort-change="grouporderby" @selection-change="handleSelectionChange" @row-click="HandleProjectClick" v-loading="tableLoading" highlight-current-row>
|
|
|
|
|
+ <el-table-column prop="EntrustNo" sortable min-width="130" label="委托单号" align="center" show-overflow-tooltip></el-table-column>
|
|
|
|
|
+ <el-table-column prop="CustomerName" sortable min-width="120" label="委托方名称" align="center"
|
|
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ <el-pagination small style="text-align: left" @size-change="handleGroupSizeChange" @current-change="handleGroupCurrentChange" :current-page="currentGroupPage"
|
|
|
|
|
+ :page-sizes="[10, 15, 20, 25]" :page-size="groupsize" layout="total, prev, pager, next" :total="currentItemGroupCount" :pager-count="5" >
|
|
|
|
|
+ </el-pagination>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="18">
|
|
|
|
|
+
|
|
|
<el-table :data="taskbalacelist" size="small" border style="height: calc(100vh - 243px)" :row-class-name="tableRowClassName"
|
|
<el-table :data="taskbalacelist" size="small" border style="height: calc(100vh - 243px)" :row-class-name="tableRowClassName"
|
|
|
- @sort-change="orderby" @selection-change="handleSelectionChange" v-loading="tableLoading">
|
|
|
|
|
|
|
+ @sort-change="orderby" @selection-change="handleSelectionChange" v-loading="tableLoading" height="530px">
|
|
|
<el-table-column label="操作" width="180" align="center" fixed>
|
|
<el-table-column label="操作" width="180" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button slot="reference" type="primary" size="mini" plain title="原始数据录入" v-if="scope.row.CheckStatus != 1 && scope.row.CheckStatus != 2"
|
|
<el-button slot="reference" type="primary" size="mini" plain title="原始数据录入" v-if="scope.row.CheckStatus != 1 && scope.row.CheckStatus != 2"
|
|
@@ -156,6 +170,8 @@
|
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
:page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount">
|
|
:page-sizes="[10, 15, 20, 25]" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="currentItemCount">
|
|
|
</el-pagination>
|
|
</el-pagination>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
<el-dialog title="历史版本" :visible.sync="historydialog" size="small" top="5vh" width="80%">
|
|
<el-dialog title="历史版本" :visible.sync="historydialog" size="small" top="5vh" width="80%">
|
|
|
<el-table :data="historylist" border style="width: 100%" @sort-change="orderby">
|
|
<el-table :data="historylist" border style="width: 100%" @sort-change="orderby">
|
|
@@ -360,6 +376,7 @@
|
|
|
eid: 0,
|
|
eid: 0,
|
|
|
tbid: 0,
|
|
tbid: 0,
|
|
|
datadocId: 0,
|
|
datadocId: 0,
|
|
|
|
|
+ ENumber: '',
|
|
|
datadoc: '',
|
|
datadoc: '',
|
|
|
dataurl: '',
|
|
dataurl: '',
|
|
|
docname: '',
|
|
docname: '',
|
|
@@ -368,6 +385,7 @@
|
|
|
currentdate: '',
|
|
currentdate: '',
|
|
|
stepcode: '',
|
|
stepcode: '',
|
|
|
detailList: [],
|
|
detailList: [],
|
|
|
|
|
+ taskbalacelistgroup: [],
|
|
|
taskbalacelist: [],
|
|
taskbalacelist: [],
|
|
|
selectSamples: [],
|
|
selectSamples: [],
|
|
|
docTemplateDictList: [],
|
|
docTemplateDictList: [],
|
|
@@ -375,11 +393,14 @@
|
|
|
dataentryhistorylist: [],
|
|
dataentryhistorylist: [],
|
|
|
departmentList: [],
|
|
departmentList: [],
|
|
|
currentItemCount: 0,
|
|
currentItemCount: 0,
|
|
|
|
|
+ currentItemGroupCount: 0,
|
|
|
historycurrentItemCount: 0,
|
|
historycurrentItemCount: 0,
|
|
|
historycurrentPage: 1,
|
|
historycurrentPage: 1,
|
|
|
historysize: 10,
|
|
historysize: 10,
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
|
|
+ currentGroupPage: 1,
|
|
|
size: 10,
|
|
size: 10,
|
|
|
|
|
+ groupsize: 10,
|
|
|
searchform: {
|
|
searchform: {
|
|
|
EntrustNo: '',
|
|
EntrustNo: '',
|
|
|
testDetail: '',
|
|
testDetail: '',
|
|
@@ -408,7 +429,8 @@
|
|
|
},
|
|
},
|
|
|
Column: {
|
|
Column: {
|
|
|
Order: '',
|
|
Order: '',
|
|
|
- Prop: ''
|
|
|
|
|
|
|
+ Prop: '',
|
|
|
|
|
+ PropG: ''
|
|
|
},
|
|
},
|
|
|
tableColumns: [{
|
|
tableColumns: [{
|
|
|
prop: 'DocType',
|
|
prop: 'DocType',
|
|
@@ -417,12 +439,12 @@
|
|
|
sort: true
|
|
sort: true
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- {
|
|
|
|
|
- prop: 'CreatedTime',
|
|
|
|
|
- label: '生成时间',
|
|
|
|
|
- width: 100,
|
|
|
|
|
- sort: true
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'CreatedTime',
|
|
|
|
|
+ label: '生成时间',
|
|
|
|
|
+ width: 100,
|
|
|
|
|
+ sort: true
|
|
|
|
|
+ }
|
|
|
],
|
|
],
|
|
|
partuserlist: [],
|
|
partuserlist: [],
|
|
|
adddataentryFrom: {
|
|
adddataentryFrom: {
|
|
@@ -441,10 +463,16 @@
|
|
|
this.getDictList()
|
|
this.getDictList()
|
|
|
this.getDetaillist() // 检测明细项下拉
|
|
this.getDetaillist() // 检测明细项下拉
|
|
|
this.initdata2()
|
|
this.initdata2()
|
|
|
|
|
+ this.initdatagroup()
|
|
|
|
|
+ this.currentGroupPage = 1
|
|
|
this.getAuditStepCode()
|
|
this.getAuditStepCode()
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
$route (val) {
|
|
$route (val) {
|
|
|
|
|
+ this.clearSearch()
|
|
|
|
|
+ this.currentGroupPage = 1
|
|
|
|
|
+ this.currentPage = 1
|
|
|
|
|
+ this.initdatagroup()
|
|
|
this.initdata2()
|
|
this.initdata2()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -500,8 +528,8 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}).catch(function (error) {
|
|
}).catch(function (error) {
|
|
|
- console.log(error)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ console.log(error)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
// 添加数据录入记录
|
|
// 添加数据录入记录
|
|
|
adddataentry () {
|
|
adddataentry () {
|
|
@@ -567,7 +595,8 @@
|
|
|
_size: this.size,
|
|
_size: this.size,
|
|
|
Order: this.Column.Order,
|
|
Order: this.Column.Order,
|
|
|
Prop: this.Column.Prop,
|
|
Prop: this.Column.Prop,
|
|
|
- queryTaskStatus: this.queryTaskStatus
|
|
|
|
|
|
|
+ queryTaskStatus: this.queryTaskStatus,
|
|
|
|
|
+ ENumber: this.ENumber
|
|
|
}
|
|
}
|
|
|
Object.assign(params, this.searchform)
|
|
Object.assign(params, this.searchform)
|
|
|
|
|
|
|
@@ -588,11 +617,60 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ initdatagroup () {
|
|
|
|
|
+ let _this = this
|
|
|
|
|
+ let BalanceTime = []
|
|
|
|
|
+ if (!_this.BalanceTime) {
|
|
|
|
|
+ _this.BalanceTime = []
|
|
|
|
|
+ }
|
|
|
|
|
+ // 解析时间
|
|
|
|
|
+ if (_this.BalanceTime.length === 2) {
|
|
|
|
|
+ _this.BalanceTime[1].setHours(23)
|
|
|
|
|
+ _this.BalanceTime[1].setMinutes(59)
|
|
|
|
|
+ _this.BalanceTime[1].setSeconds(59)
|
|
|
|
|
+ BalanceTime.push(_this.formatDateTime(_this.BalanceTime[0]))
|
|
|
|
|
+ BalanceTime.push(_this.formatDateTime(_this.BalanceTime[1]))
|
|
|
|
|
+ }
|
|
|
|
|
+ // paginate
|
|
|
|
|
+ const params = {
|
|
|
|
|
+ docid: this.$route.query.docid,
|
|
|
|
|
+ _currentPage: this.currentGroupPage,
|
|
|
|
|
+ _size: this.groupsize,
|
|
|
|
|
+ Order: this.Column.Order,
|
|
|
|
|
+ PropG: this.Column.PropG,
|
|
|
|
|
+ queryTaskStatus: this.queryTaskStatus
|
|
|
|
|
+ }
|
|
|
|
|
+ this.tableLoading = true
|
|
|
|
|
+ // request
|
|
|
|
|
+ _this.$axios.get('/limsdataentry/todolistgroup?BalanceTime=' + BalanceTime.join(','), {
|
|
|
|
|
+ params
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ _this.taskbalacelistgroup = res.data.items
|
|
|
|
|
+ _this.currentItemGroupCount = res.data.currentItemCount
|
|
|
|
|
+
|
|
|
|
|
+ this.tableLoading = false
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ this.tableLoading = false
|
|
|
|
|
+ // handle error
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ HandleProjectClick (row) {
|
|
|
|
|
+ this.ENumber = row.EntrustNo
|
|
|
|
|
+ this.initdata2()
|
|
|
|
|
+ console.log(this.EntrustNo, 'this.EntrustNo')
|
|
|
|
|
+ // this.initdata(row.Id)
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
// table背景
|
|
// table背景
|
|
|
tableRowClassName ({
|
|
tableRowClassName ({
|
|
|
- row,
|
|
|
|
|
- rowIndex
|
|
|
|
|
- }) {
|
|
|
|
|
|
|
+ row,
|
|
|
|
|
+ rowIndex
|
|
|
|
|
+ }) {
|
|
|
if (row.Recheck === 1) {
|
|
if (row.Recheck === 1) {
|
|
|
return 'warning-row'
|
|
return 'warning-row'
|
|
|
}
|
|
}
|
|
@@ -649,8 +727,8 @@
|
|
|
this.changepage(row, furl)
|
|
this.changepage(row, furl)
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
// 审核页面跳转
|
|
// 审核页面跳转
|
|
|
changepage (row, DocAddress) {
|
|
changepage (row, DocAddress) {
|
|
@@ -718,8 +796,8 @@
|
|
|
this.changepdfpage(row, furl)
|
|
this.changepdfpage(row, furl)
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
// 查看文档pdf
|
|
// 查看文档pdf
|
|
|
changepdfpage (row, DocAddress) {
|
|
changepdfpage (row, DocAddress) {
|
|
@@ -748,8 +826,8 @@
|
|
|
this.historycurrentItemCount = res.data.currentItemCount
|
|
this.historycurrentItemCount = res.data.currentItemCount
|
|
|
this.dialogTableVisible = true
|
|
this.dialogTableVisible = true
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
datadownload (val) {
|
|
datadownload (val) {
|
|
|
api.docexport(val.Id, this.$axios)
|
|
api.docexport(val.Id, this.$axios)
|
|
@@ -768,8 +846,8 @@
|
|
|
location.href = 'http://' + fdocurl
|
|
location.href = 'http://' + fdocurl
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
// 数据录入导出
|
|
// 数据录入导出
|
|
|
docdownload (val) {
|
|
docdownload (val) {
|
|
@@ -789,8 +867,8 @@
|
|
|
'&act=edit'
|
|
'&act=edit'
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
// 删除数据
|
|
// 删除数据
|
|
|
deldataentry (val) {
|
|
deldataentry (val) {
|
|
@@ -1072,8 +1150,8 @@
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
- console.error(err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
dataentry (val) {
|
|
dataentry (val) {
|
|
|
let _this = this
|
|
let _this = this
|
|
@@ -1282,6 +1360,15 @@
|
|
|
this.Column.Prop = column.prop
|
|
this.Column.Prop = column.prop
|
|
|
this.initdata2()
|
|
this.initdata2()
|
|
|
},
|
|
},
|
|
|
|
|
+ grouporderby (column) {
|
|
|
|
|
+ if (column.order === 'ascending') {
|
|
|
|
|
+ this.Column.Order = 'asc'
|
|
|
|
|
+ } else if (column.order === 'descending') {
|
|
|
|
|
+ this.Column.Order = 'desc'
|
|
|
|
|
+ }
|
|
|
|
|
+ this.Column.PropG = column.prop
|
|
|
|
|
+ this.initdatagroup()
|
|
|
|
|
+ },
|
|
|
getDetaillist () {
|
|
getDetaillist () {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.$axios.get('/limsbalance/getdetaillist', {})
|
|
_this.$axios.get('/limsbalance/getdetaillist', {})
|
|
@@ -1294,12 +1381,16 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
clearSearch () {
|
|
clearSearch () {
|
|
|
|
|
+ this.currentPage = 1
|
|
|
|
|
+ this.currentGroupPage = 1
|
|
|
|
|
+ this.ENumber = ''
|
|
|
this.searchform.EntrustNo = ''
|
|
this.searchform.EntrustNo = ''
|
|
|
this.searchform.TestDetailId = ''
|
|
this.searchform.TestDetailId = ''
|
|
|
this.searchform.CheckStatus = ''
|
|
this.searchform.CheckStatus = ''
|
|
|
this.BalanceTime = []
|
|
this.BalanceTime = []
|
|
|
// this.searchform.TestDetailId = ''
|
|
// this.searchform.TestDetailId = ''
|
|
|
this.initdata2()
|
|
this.initdata2()
|
|
|
|
|
+ this.initdatagroup()
|
|
|
},
|
|
},
|
|
|
clicksearch () {
|
|
clicksearch () {
|
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|
|
@@ -1314,6 +1405,15 @@
|
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|
|
|
this.initdata2()
|
|
this.initdata2()
|
|
|
},
|
|
},
|
|
|
|
|
+ handleGroupSizeChange (value) {
|
|
|
|
|
+ this.groupsize = value
|
|
|
|
|
+ this.currentGroupPage = 1
|
|
|
|
|
+ this.initdatagroup()
|
|
|
|
|
+ },
|
|
|
|
|
+ handleGroupCurrentChange (value) {
|
|
|
|
|
+ this.currentGroupPage = value
|
|
|
|
|
+ this.initdatagroup()
|
|
|
|
|
+ },
|
|
|
historyhandleCurrentChange (value) {
|
|
historyhandleCurrentChange (value) {
|
|
|
this.historycurrentPage = value
|
|
this.historycurrentPage = value
|
|
|
this.refreshdataentrydata()
|
|
this.refreshdataentrydata()
|