|
@@ -12,7 +12,7 @@
|
|
|
<i class="icon icon-table2"></i> 电气接地录入
|
|
<i class="icon icon-table2"></i> 电气接地录入
|
|
|
</span>
|
|
</span>
|
|
|
<span style="float: right;">
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini" v-if="this.ischeck===1" @click="jiaoheshowdialog">校核</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" v-if="this.ischeck===1&&isShow" @click="jiaoheshowdialog">校核</el-button>
|
|
|
<el-button type="primary" size="mini" v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3" @click="setProoFreadShow">提交校核</el-button>
|
|
<el-button type="primary" size="mini" v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3" @click="setProoFreadShow">提交校核</el-button>
|
|
|
<el-button type="plain" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3" @click="addDataEntity">添加明细</el-button>
|
|
<el-button type="plain" size="mini" style="margin-left:10px; margin-top: -4px;" v-if="this.DataStatus==0||this.DataStatus==5||this.DataStatus==3" @click="addDataEntity">添加明细</el-button>
|
|
|
<!--<el-button type="plain" @click="searchCommand('search')" size="mini" style="margin-left:10px; margin-top: -4px;">查询</el-button>-->
|
|
<!--<el-button type="plain" @click="searchCommand('search')" size="mini" style="margin-left:10px; margin-top: -4px;">查询</el-button>-->
|
|
@@ -359,6 +359,7 @@
|
|
|
|
|
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ isShow: false,
|
|
|
MaxOrderNo: 0,
|
|
MaxOrderNo: 0,
|
|
|
activeName: '1',
|
|
activeName: '1',
|
|
|
Id: 0,
|
|
Id: 0,
|
|
@@ -476,9 +477,31 @@
|
|
|
this.getDictOptions()
|
|
this.getDictOptions()
|
|
|
this.getUsersByRole()
|
|
this.getUsersByRole()
|
|
|
this.getEntrustInfo()
|
|
this.getEntrustInfo()
|
|
|
|
|
+ this.isPermissionsByCode()
|
|
|
// this.getDataEntry()
|
|
// this.getDataEntry()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ isPermissionsByCode () {
|
|
|
|
|
+ let code = ''
|
|
|
|
|
+ if (this.DataStatus == 2) {
|
|
|
|
|
+ code = 'DATAPREAUDIT'
|
|
|
|
|
+ } else if (this.DataStatus == 4) {
|
|
|
|
|
+ code = 'DATAAUDIT'
|
|
|
|
|
+ } else if (this.DataStatus == 1) {
|
|
|
|
|
+ code = 'DATAJIAOHE'
|
|
|
|
|
+ }
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ Code: code
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$axios.get('/limsdataentry/ispermissionsbycode', {
|
|
|
|
|
+ params
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ this.isShow = res.data
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
TestDepartFilter (val) {
|
|
TestDepartFilter (val) {
|
|
|
if (val) {
|
|
if (val) {
|
|
|
let len = val.length
|
|
let len = val.length
|
|
@@ -843,6 +866,9 @@
|
|
|
getDataEntry () {
|
|
getDataEntry () {
|
|
|
this.$axios.get('/limsdataentry/getdataentry/' + this.DataEntryId).then(res => {
|
|
this.$axios.get('/limsdataentry/getdataentry/' + this.DataEntryId).then(res => {
|
|
|
this.formData = res.data
|
|
this.formData = res.data
|
|
|
|
|
+ if (!this.formData.CheckDate || this.formData.CheckDate.indexOf('0001-01-01') !== -1) {
|
|
|
|
|
+ this.formData.CheckDate = new Date()
|
|
|
|
|
+ }
|
|
|
this.params.Id = res.data.Id
|
|
this.params.Id = res.data.Id
|
|
|
// this.PositionCheckId = res.data.PositionCheckId
|
|
// this.PositionCheckId = res.data.PositionCheckId
|
|
|
// this.TestDepartChange(res.data.TestDepartId)
|
|
// this.TestDepartChange(res.data.TestDepartId)
|