|
@@ -160,34 +160,42 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="锥度公差·10-3(in/in)" align="center">
|
|
<el-table-column label="锥度公差·10-3(in/in)" align="center">
|
|
|
- <el-table-column prop="TaperToleranceOut" sortable min-width="100" label="外螺纹" align="center"
|
|
|
|
|
|
|
+ <el-table-column prop="TaperToleranceOut" sortable min-width="140" label="外螺纹" align="center"
|
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
<el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
- v-model="scope.row.TaperToleranceOut" style="width: 100%"></el-input>
|
|
|
|
|
|
|
+ v-model="scope.row.TaperToleranceOut1" style="width: 50%"></el-input>
|
|
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
|
|
+ v-model="scope.row.TaperToleranceOut2" style="width: 50%"></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="TaperToleranceIn" sortable min-width="100" label="内螺纹" align="center"
|
|
|
|
|
|
|
+ <el-table-column prop="TaperToleranceIn" sortable min-width="140" label="内螺纹" align="center"
|
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
<el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
- v-model="scope.row.TaperToleranceIn" style="width: 100%"></el-input>
|
|
|
|
|
|
|
+ v-model="scope.row.TaperToleranceIn1" style="width: 50%"></el-input>
|
|
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
|
|
+ v-model="scope.row.TaperToleranceIn2" style="width: 50%"></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column label="螺距公差·10-3(in/in)" align="center">
|
|
<el-table-column label="螺距公差·10-3(in/in)" align="center">
|
|
|
- <el-table-column prop="PitchToleranceOut" sortable min-width="100" label="外螺纹" align="center"
|
|
|
|
|
|
|
+ <el-table-column prop="PitchToleranceOut" sortable min-width="140" label="外螺纹" align="center"
|
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
<el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
- v-model="scope.row.PitchToleranceOut" style="width: 100%"></el-input>
|
|
|
|
|
|
|
+ v-model="scope.row.PitchToleranceOut1" style="width: 50%"></el-input>
|
|
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
|
|
+ v-model="scope.row.PitchToleranceOut2" style="width: 50%"></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="PitchToleranceIn" sortable min-width="100" label="内螺纹" align="center"
|
|
|
|
|
|
|
+ <el-table-column prop="PitchToleranceIn" sortable min-width="140" label="内螺纹" align="center"
|
|
|
show-overflow-tooltip>
|
|
show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
<el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
- v-model="scope.row.PitchToleranceIn" style="width: 100%"></el-input>
|
|
|
|
|
|
|
+ v-model="scope.row.PitchToleranceIn1" style="width: 50%"></el-input>
|
|
|
|
|
+ <el-input size="small" :disabled="DataStatus != 0 && DataStatus!=5 && DataStatus!=3"
|
|
|
|
|
+ v-model="scope.row.PitchToleranceIn2" style="width: 50%"></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -468,7 +476,44 @@
|
|
|
<el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
|
|
<el-button size="mini" type="primary" @click="handleSearch">查 询</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
-
|
|
|
|
|
|
|
+ <el-dialog title="提交校核" :visible.sync="ProoFreadShow" top="5vh">
|
|
|
|
|
+ <el-form :model="shenhesubmitForm" label-width="130px" ref="shenhesubmitForm">
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-form-item label="校核人" prop="AuthorUser">
|
|
|
|
|
+ <el-select ref="consigneeselect" v-model="shenhesubmitForm.AuditorUserId" placeholder="请选择校核人" style="width: 100%;">
|
|
|
|
|
+ <el-option v-for="item in acceptUsers" :key="item.id" :label="item.realname" :value="item.id">
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-form-item label="说明">
|
|
|
|
|
+ <el-input type="textarea" v-model="shenhesubmitForm.AuditorRemark" placeholder="请输入说明"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-row>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
|
|
+ <el-button size="small" @click="ProoFreadShow = false">取 消</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small" @click="makesure()">确 定</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+ <el-dialog title="校核信息" :visible.sync="jiaoheshow" top="5vh">
|
|
|
|
|
+ <el-form :model="jiaoheForm" label-width="130px" ref="jiaoheForm">
|
|
|
|
|
+ <el-form-item label="校核状态">
|
|
|
|
|
+ <template>
|
|
|
|
|
+ <el-radio class="radio" v-model="jiaoheForm.SuccessStatus" :label="2">校核通过</el-radio>
|
|
|
|
|
+ <el-radio class="radio" v-model="jiaoheForm.SuccessStatus" :label="3">校核未通过</el-radio>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="说明">
|
|
|
|
|
+ <el-input type="textarea" v-model="jiaoheForm.AuditorRemark" placeholder="请输入校核说明"></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
|
|
+ <el-button size="small" @click="jiaoheshow = false">取 消</el-button>
|
|
|
|
|
+ <el-button type="primary" size="small" @click="jiaohemakesure()">确 定</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
<data-opera ref="DataoperaCompoment" :DataEntryId="DataEntryId+''" :TaskBalanceId="TaskBalanceId+''" :EId="EId+''"
|
|
<data-opera ref="DataoperaCompoment" :DataEntryId="DataEntryId+''" :TaskBalanceId="TaskBalanceId+''" :EId="EId+''"
|
|
|
@init-data="initDatas"></data-opera>
|
|
@init-data="initDatas"></data-opera>
|
|
|
|
|
|
|
@@ -491,11 +536,19 @@
|
|
|
components: {
|
|
components: {
|
|
|
DataOpera
|
|
DataOpera
|
|
|
},
|
|
},
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
return {
|
|
return {
|
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
|
- activeName: '1',
|
|
|
|
|
|
|
+ Id: '',
|
|
|
|
|
+ EId: '',
|
|
|
|
|
+ TaskBalanceId: '',
|
|
|
|
|
+ DataEntryId: '',
|
|
|
|
|
+ ProoFreadShow: false,
|
|
|
|
|
+ jiaoheshow: false,
|
|
|
|
|
+ sign: '2',
|
|
|
|
|
+ ischeck: 0,
|
|
|
DataStatus: 0,
|
|
DataStatus: 0,
|
|
|
|
|
+ acceptUsers: [],
|
|
|
// 列表数据
|
|
// 列表数据
|
|
|
entityList: [],
|
|
entityList: [],
|
|
|
// 分页参数
|
|
// 分页参数
|
|
@@ -508,6 +561,7 @@
|
|
|
Prop: ''
|
|
Prop: ''
|
|
|
},
|
|
},
|
|
|
formDataMain: {
|
|
formDataMain: {
|
|
|
|
|
+ Id: '',
|
|
|
Product: '',
|
|
Product: '',
|
|
|
Spec: '',
|
|
Spec: '',
|
|
|
SamplingBase: '',
|
|
SamplingBase: '',
|
|
@@ -522,6 +576,9 @@
|
|
|
searchFormReset: {},
|
|
searchFormReset: {},
|
|
|
searchForm: {
|
|
searchForm: {
|
|
|
Id: '',
|
|
Id: '',
|
|
|
|
|
+ EId: '',
|
|
|
|
|
+ TaskBalanceId: '',
|
|
|
|
|
+ DataEntryId: '',
|
|
|
Product: '',
|
|
Product: '',
|
|
|
Specifications: '',
|
|
Specifications: '',
|
|
|
SamplingBase: '',
|
|
SamplingBase: '',
|
|
@@ -553,7 +610,7 @@
|
|
|
Appearance: '',
|
|
Appearance: '',
|
|
|
Inspector: '',
|
|
Inspector: '',
|
|
|
Audit: '',
|
|
Audit: '',
|
|
|
- InspectionDate:'',
|
|
|
|
|
|
|
+ InspectionDate: '',
|
|
|
Remark: '',
|
|
Remark: '',
|
|
|
CreateUserId: '',
|
|
CreateUserId: '',
|
|
|
CreateOn: '',
|
|
CreateOn: '',
|
|
@@ -561,15 +618,26 @@
|
|
|
ModifiedOn: '',
|
|
ModifiedOn: '',
|
|
|
ModifiedUserId: '',
|
|
ModifiedUserId: '',
|
|
|
ModifiedBy: ''
|
|
ModifiedBy: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ // 校核提交
|
|
|
|
|
+ shenhesubmitForm: {
|
|
|
|
|
+ AuditorUserId: '',
|
|
|
|
|
+ DataEntryId: '',
|
|
|
|
|
+ SuccessStatus: 1,
|
|
|
|
|
+ AuditorRemark: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ jiaoheForm: {
|
|
|
|
|
+ SuccessStatus: 2,
|
|
|
|
|
+ AuditorRemark: '',
|
|
|
|
|
+ DataEntryId: 0
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created() {
|
|
|
|
|
|
|
+ created () {
|
|
|
this.EId = this.$route.query.eid
|
|
this.EId = this.$route.query.eid
|
|
|
this.TaskBalanceId = this.$route.query.tbid
|
|
this.TaskBalanceId = this.$route.query.tbid
|
|
|
this.DataEntryId = this.$route.query.deid
|
|
this.DataEntryId = this.$route.query.deid
|
|
|
- this.DataStatus = 0 // parseInt(this.$route.query.datastatus)
|
|
|
|
|
- this.DataDocId = this.$route.query.datadocId
|
|
|
|
|
|
|
+ this.DataStatus = parseInt(this.$route.query.datastatus)
|
|
|
this.sign = this.$route.query.sign
|
|
this.sign = this.$route.query.sign
|
|
|
this.ischeck = this.$route.query.ischeck
|
|
this.ischeck = this.$route.query.ischeck
|
|
|
// 查询条件初始值备份
|
|
// 查询条件初始值备份
|
|
@@ -577,13 +645,13 @@
|
|
|
// 查询列表
|
|
// 查询列表
|
|
|
this.getDataEntry()
|
|
this.getDataEntry()
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
|
|
+ this.getUsersByRole()
|
|
|
// this.getDictOptions()
|
|
// this.getDictOptions()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- saveMainInfo() {
|
|
|
|
|
|
|
+ saveMainInfo () {
|
|
|
this.$refs['formDataMain'].validate((valid) => {
|
|
this.$refs['formDataMain'].validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
- console.log("------------this.main",this.formDataMain)
|
|
|
|
|
this.$axios.post('/limsdataentry/updateEntity/' + this.DataEntryId, this.formDataMain).then(res => {
|
|
this.$axios.post('/limsdataentry/updateEntity/' + this.DataEntryId, this.formDataMain).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
this.getDataEntry()
|
|
this.getDataEntry()
|
|
@@ -603,7 +671,7 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- getDataEntry() {
|
|
|
|
|
|
|
+ getDataEntry () {
|
|
|
this.$axios.get('/limsdataentry/getdataentry/' + this.DataEntryId).then(res => {
|
|
this.$axios.get('/limsdataentry/getdataentry/' + this.DataEntryId).then(res => {
|
|
|
this.formDataMain = res.data
|
|
this.formDataMain = res.data
|
|
|
// this.params.Id = res.data.Id
|
|
// this.params.Id = res.data.Id
|
|
@@ -611,10 +679,10 @@
|
|
|
console.log(error)
|
|
console.log(error)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- getDataHistory() {
|
|
|
|
|
|
|
+ getDataHistory () {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
- initDatas() {
|
|
|
|
|
|
|
+ initDatas () {
|
|
|
// 分页及列表条件
|
|
// 分页及列表条件
|
|
|
let params = {
|
|
let params = {
|
|
|
_currentPage: this.currentPage,
|
|
_currentPage: this.currentPage,
|
|
@@ -632,6 +700,7 @@
|
|
|
// myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
|
|
// myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
|
|
|
// }
|
|
// }
|
|
|
// 查询条件
|
|
// 查询条件
|
|
|
|
|
+ this.searchForm.DataEntryId = this.DataEntryId
|
|
|
Object.assign(params, this.searchForm)
|
|
Object.assign(params, this.searchForm)
|
|
|
// 访问接口
|
|
// 访问接口
|
|
|
api.getList(myCreateOn.join(','), params, this.$axios).then(res => {
|
|
api.getList(myCreateOn.join(','), params, this.$axios).then(res => {
|
|
@@ -641,17 +710,122 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- addDataEntity() {
|
|
|
|
|
|
|
+ addDataEntity () {
|
|
|
// 刷新子列表
|
|
// 刷新子列表
|
|
|
this.$refs['DataoperaCompoment'].resetFormData()
|
|
this.$refs['DataoperaCompoment'].resetFormData()
|
|
|
this.$refs['DataoperaCompoment'].dialogVisible = true
|
|
this.$refs['DataoperaCompoment'].dialogVisible = true
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- setProoFreadShow() {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 获取校核人列表
|
|
|
|
|
+ getUsersByRole () {
|
|
|
|
|
+ // request
|
|
|
|
|
+ this.$axios.get('/limsdataentry/getuserlistbyjhrole/', {})
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.data instanceof Array && res.data.length > 0) {
|
|
|
|
|
+ this.acceptUsers = res.data
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ // handle error
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ setProoFreadShow () {
|
|
|
|
|
+ // if (this.formData.PositionCheckId === '') {
|
|
|
|
|
+ // this.$message.warning('检测地点为空,不允许提交!')
|
|
|
|
|
+ // return
|
|
|
|
|
+ // }
|
|
|
|
|
+ this.ProoFreadShow = true
|
|
|
|
|
+ },
|
|
|
|
|
+ // 打开校核弹窗
|
|
|
|
|
+ jiaoheshowdialog () {
|
|
|
|
|
+ this.jiaoheForm.DataEntryId = this.DataEntryId
|
|
|
|
|
+ this.jiaoheshow = true
|
|
|
|
|
+ },
|
|
|
|
|
+ checkstatus () {
|
|
|
|
|
+ this.shenhesubmitForm.SuccessStatus = 1
|
|
|
|
|
+ this.shenhesubmitForm.DataEntryId = parseInt(this.DataEntryId)
|
|
|
|
|
+ let params = this.shenhesubmitForm
|
|
|
|
|
+ this.$axios.put('/limsdataentry/checksubmit/', params)
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ // response
|
|
|
|
|
+ if (res.data.code === 0) {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ this.DataStatus = 1
|
|
|
|
|
+ // this.initDatas()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: '校核提交错误!'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ // handle error
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ // 提交校核
|
|
|
|
|
+ makesure () {
|
|
|
|
|
+ console.log(this.formDataMain.Id, '====')
|
|
|
|
|
+ if (!this.formDataMain.Id || this.formDataMain.Id < 0) {
|
|
|
|
|
+ this.$message.warning('没有保存,不能提交!')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$confirm('确定提交校核!', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ this.ProoFreadShow = false
|
|
|
|
|
+ console.log('1')
|
|
|
|
|
+ this.checkstatus()
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {})
|
|
|
|
|
+ },
|
|
|
|
|
+ jiaohecheckstatus () {
|
|
|
|
|
+ let params = this.jiaoheForm
|
|
|
|
|
+ this.$axios.put('/limsdataentry/jiaohe/', params)
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ // response
|
|
|
|
|
+ if (res.data.code === 0) {
|
|
|
|
|
+ this.ischeck = '0'
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ })
|
|
|
|
|
+ // this.initdata2()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: '校核错误,请先确定您已经录入内容并且录入的内容已经保存'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(err => {
|
|
|
|
|
+ // handle error
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ jiaohemakesure () {
|
|
|
|
|
+ this.$confirm('确认校核!', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ this.jiaoheshow = false
|
|
|
|
|
+ this.jiaohecheckstatus()
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- getDictOptions() {
|
|
|
|
|
|
|
+ getDictOptions () {
|
|
|
api.getDictList(this.$axios).then(res => {
|
|
api.getDictList(this.$axios).then(res => {
|
|
|
|
|
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
@@ -659,7 +833,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- searchCommand(command) {
|
|
|
|
|
|
|
+ searchCommand (command) {
|
|
|
if (command === 'search') {
|
|
if (command === 'search') {
|
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
|
} else if (command === 'clear') {
|
|
} else if (command === 'clear') {
|
|
@@ -667,7 +841,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 列表排序功能
|
|
// 列表排序功能
|
|
|
- orderby(column) {
|
|
|
|
|
|
|
+ orderby (column) {
|
|
|
if (column.order === 'ascending') {
|
|
if (column.order === 'ascending') {
|
|
|
this.Column.Order = 'asc'
|
|
this.Column.Order = 'asc'
|
|
|
} else if (column.order === 'descending') {
|
|
} else if (column.order === 'descending') {
|
|
@@ -676,27 +850,27 @@
|
|
|
this.Column.Prop = column.prop
|
|
this.Column.Prop = column.prop
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
},
|
|
},
|
|
|
- clearSearch() {
|
|
|
|
|
|
|
+ clearSearch () {
|
|
|
Object.assign(this.searchForm, this.searchFormReset)
|
|
Object.assign(this.searchForm, this.searchFormReset)
|
|
|
// this.searchForm = this.searchFormReset;
|
|
// this.searchForm = this.searchFormReset;
|
|
|
this.CreateOn = ''
|
|
this.CreateOn = ''
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
},
|
|
},
|
|
|
- handleSearch() {
|
|
|
|
|
|
|
+ handleSearch () {
|
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|
|
|
this.dialogVisible = false
|
|
this.dialogVisible = false
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
},
|
|
},
|
|
|
- handleCurrentChange(value) {
|
|
|
|
|
|
|
+ handleCurrentChange (value) {
|
|
|
this.currentPage = value
|
|
this.currentPage = value
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
},
|
|
},
|
|
|
- handleSizeChange(value) {
|
|
|
|
|
|
|
+ handleSizeChange (value) {
|
|
|
this.size = value
|
|
this.size = value
|
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
},
|
|
},
|
|
|
- deleteEntity(row) {
|
|
|
|
|
|
|
+ deleteEntity (row) {
|
|
|
row.deleteConfirmFlag = false
|
|
row.deleteConfirmFlag = false
|
|
|
api.deleteEntity(row.Id, this.$axios).then(res => {
|
|
api.deleteEntity(row.Id, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
@@ -715,12 +889,12 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- EditEntity(row) {
|
|
|
|
|
|
|
+ EditEntity (row) {
|
|
|
this.$refs['DataoperaCompoment'].subListEditEntity(row.Id)
|
|
this.$refs['DataoperaCompoment'].subListEditEntity(row.Id)
|
|
|
this.$refs['DataoperaCompoment'].dialogVisible = true
|
|
this.$refs['DataoperaCompoment'].dialogVisible = true
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
|
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
if (val === '') {
|
|
|
return '----'
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
@@ -733,7 +907,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- formatDateTime(date) {
|
|
|
|
|
|
|
+ formatDateTime (date) {
|
|
|
var y = date.getFullYear()
|
|
var y = date.getFullYear()
|
|
|
var m = date.getMonth() + 1
|
|
var m = date.getMonth() + 1
|
|
|
m = m < 10 ? ('0' + m) : m
|
|
m = m < 10 ? ('0' + m) : m
|
|
@@ -746,7 +920,6 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|