|
@@ -209,7 +209,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import {
|
|
import {
|
|
|
mapGetters
|
|
mapGetters
|
|
|
- } from 'vuex';
|
|
|
|
|
|
|
+ } from 'vuex'
|
|
|
import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
import supplierapi from '@/api/oilsupplier/supplier'
|
|
import supplierapi from '@/api/oilsupplier/supplier'
|
|
|
import api from '@/api/oilsupplier/annualaudit'
|
|
import api from '@/api/oilsupplier/annualaudit'
|
|
@@ -229,7 +229,7 @@
|
|
|
},
|
|
},
|
|
|
name: 'annualaudit',
|
|
name: 'annualaudit',
|
|
|
|
|
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
return {
|
|
return {
|
|
|
annualauditmakesure: false,
|
|
annualauditmakesure: false,
|
|
|
chooseAuditorVisible: false,
|
|
chooseAuditorVisible: false,
|
|
@@ -247,27 +247,27 @@
|
|
|
auditerOption: [],
|
|
auditerOption: [],
|
|
|
auditer: '',
|
|
auditer: '',
|
|
|
auditerName: '',
|
|
auditerName: '',
|
|
|
- //列表数据
|
|
|
|
|
|
|
+ // 列表数据
|
|
|
selectsupplierlist: [],
|
|
selectsupplierlist: [],
|
|
|
entityList: [],
|
|
entityList: [],
|
|
|
- //分页参数
|
|
|
|
|
|
|
+ // 分页参数
|
|
|
size: 10,
|
|
size: 10,
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
currentItemCount: 0,
|
|
currentItemCount: 0,
|
|
|
- //列表排序
|
|
|
|
|
|
|
+ // 列表排序
|
|
|
Column: {
|
|
Column: {
|
|
|
Order: '',
|
|
Order: '',
|
|
|
Prop: ''
|
|
Prop: ''
|
|
|
},
|
|
},
|
|
|
- //工作流
|
|
|
|
|
|
|
+ // 工作流
|
|
|
entrydetail: {
|
|
entrydetail: {
|
|
|
process: 'oil_audit_apply',
|
|
process: 'oil_audit_apply',
|
|
|
business: '',
|
|
business: '',
|
|
|
- instance: '',
|
|
|
|
|
|
|
+ instance: ''
|
|
|
},
|
|
},
|
|
|
- //查询时间
|
|
|
|
|
|
|
+ // 查询时间
|
|
|
CreateOn: '',
|
|
CreateOn: '',
|
|
|
- //查询项
|
|
|
|
|
|
|
+ // 查询项
|
|
|
searchFormReset: {},
|
|
searchFormReset: {},
|
|
|
entityForm: {
|
|
entityForm: {
|
|
|
Id: '',
|
|
Id: '',
|
|
@@ -309,14 +309,14 @@
|
|
|
CreateBy: '',
|
|
CreateBy: '',
|
|
|
ModifiedOn: '',
|
|
ModifiedOn: '',
|
|
|
ModifiedUserId: '',
|
|
ModifiedUserId: '',
|
|
|
- ModifiedBy: '',
|
|
|
|
|
|
|
+ ModifiedBy: ''
|
|
|
},
|
|
},
|
|
|
rules: {
|
|
rules: {
|
|
|
SupplierId: [{
|
|
SupplierId: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请选择企业名称',
|
|
message: '请选择企业名称',
|
|
|
trigger: 'blur'
|
|
trigger: 'blur'
|
|
|
- }, ],
|
|
|
|
|
|
|
+ }],
|
|
|
SupplierTypeName: [{
|
|
SupplierTypeName: [{
|
|
|
required: true,
|
|
required: true,
|
|
|
message: '请选择准入类别',
|
|
message: '请选择准入类别',
|
|
@@ -336,14 +336,14 @@
|
|
|
IsCompanyUser: 0,
|
|
IsCompanyUser: 0,
|
|
|
supplierList: [],
|
|
supplierList: [],
|
|
|
suplen: 1,
|
|
suplen: 1,
|
|
|
- certId: '',
|
|
|
|
|
|
|
+ certId: ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created() {
|
|
|
|
|
|
|
+ created () {
|
|
|
this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
- //查询条件初始值备份
|
|
|
|
|
|
|
+ // 查询条件初始值备份
|
|
|
Object.assign(this.searchFormReset, this.searchForm)
|
|
Object.assign(this.searchFormReset, this.searchForm)
|
|
|
- //查询列表
|
|
|
|
|
|
|
+ // 查询列表
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
this.getselectsupplier()
|
|
this.getselectsupplier()
|
|
|
this.getorgtreelist()
|
|
this.getorgtreelist()
|
|
@@ -351,13 +351,13 @@
|
|
|
this.getSupplierList()
|
|
this.getSupplierList()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- initDatas() {
|
|
|
|
|
- //分页及列表条件
|
|
|
|
|
|
|
+ initDatas () {
|
|
|
|
|
+ // 分页及列表条件
|
|
|
let params = {
|
|
let params = {
|
|
|
_currentPage: this.currentPage,
|
|
_currentPage: this.currentPage,
|
|
|
_size: this.size,
|
|
_size: this.size,
|
|
|
Order: this.Column.Order,
|
|
Order: this.Column.Order,
|
|
|
- Prop: this.Column.Prop,
|
|
|
|
|
|
|
+ Prop: this.Column.Prop
|
|
|
}
|
|
}
|
|
|
let myCreateOn = []
|
|
let myCreateOn = []
|
|
|
// 解析时间
|
|
// 解析时间
|
|
@@ -368,9 +368,9 @@
|
|
|
myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
|
|
myCreateOn.push(this.formatDateTime(this.CreateOn[0]))
|
|
|
myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
|
|
myCreateOn.push(this.formatDateTime(this.CreateOn[1]))
|
|
|
}
|
|
}
|
|
|
- //查询条件
|
|
|
|
|
|
|
+ // 查询条件
|
|
|
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 => {
|
|
|
this.entityList = res.data.items
|
|
this.entityList = res.data.items
|
|
|
this.currentItemCount = res.data.currentItemCount
|
|
this.currentItemCount = res.data.currentItemCount
|
|
@@ -382,11 +382,9 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
_this.supplierList = []
|
|
_this.supplierList = []
|
|
|
let params = {
|
|
let params = {
|
|
|
- SuppTypeCode: '02',
|
|
|
|
|
|
|
+ SuppTypeCode: '02'
|
|
|
}
|
|
}
|
|
|
- _this.$axios.get('/annualaudit/getsupplier', {
|
|
|
|
|
- params
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ _this.$axios.get('/annualaudit/getsupplier', {params})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
_this.supplierList = res.data
|
|
_this.supplierList = res.data
|
|
|
if (_this.supplierList) {
|
|
if (_this.supplierList) {
|
|
@@ -409,9 +407,7 @@
|
|
|
let params = {
|
|
let params = {
|
|
|
IsInnerOrganize: 1
|
|
IsInnerOrganize: 1
|
|
|
}
|
|
}
|
|
|
- _this.$axios.get('organizes/orgalllist', {
|
|
|
|
|
- params
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ _this.$axios.get('organizes/orgalllist', {params})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
if (_this.authUser.Profile.IsCompanyUser === 0) {
|
|
if (_this.authUser.Profile.IsCompanyUser === 0) {
|
|
@@ -425,126 +421,125 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- setAuditer(val, name) {
|
|
|
|
|
|
|
+ setAuditer (val, name) {
|
|
|
this.auditer = val
|
|
this.auditer = val
|
|
|
this.auditerName = name
|
|
this.auditerName = name
|
|
|
this.chooseAuditorVisible = false
|
|
this.chooseAuditorVisible = false
|
|
|
},
|
|
},
|
|
|
- chooseAuditorShow() {
|
|
|
|
|
|
|
+ chooseAuditorShow () {
|
|
|
this.$refs['chooseAuditor'].getorgtreelist(this.entityForm.SupplierTypeName)
|
|
this.$refs['chooseAuditor'].getorgtreelist(this.entityForm.SupplierTypeName)
|
|
|
this.chooseAuditorVisible = true
|
|
this.chooseAuditorVisible = true
|
|
|
},
|
|
},
|
|
|
- supplierchange(value) {
|
|
|
|
|
- let obj = {};
|
|
|
|
|
|
|
+ supplierchange (value) {
|
|
|
|
|
+ let obj = {}
|
|
|
obj = this.selectsupplierlist.find((item) => {
|
|
obj = this.selectsupplierlist.find((item) => {
|
|
|
- return item.Id === value;
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ return item.Id === value
|
|
|
|
|
+ })
|
|
|
this.entityForm.SupplierName = obj.Realname
|
|
this.entityForm.SupplierName = obj.Realname
|
|
|
},
|
|
},
|
|
|
- addAnnualAudit() {
|
|
|
|
|
|
|
+ addAnnualAudit () {
|
|
|
this.$refs['EntityFormref'].validate((valid) => {
|
|
this.$refs['EntityFormref'].validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
this.entityForm.auditer = this.auditer
|
|
this.entityForm.auditer = this.auditer
|
|
|
api.addEntity(this.entityForm, this.entityForm.auditer, this.$axios).then(res => {
|
|
api.addEntity(this.entityForm, this.entityForm.auditer, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
|
|
- this.entityForm.Id = res.data.item;
|
|
|
|
|
- this.initDatas();
|
|
|
|
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
|
|
+ this.entityForm.Id = res.data.item
|
|
|
|
|
+ this.initDatas()
|
|
|
this.addshow = false
|
|
this.addshow = false
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
|
|
+ })
|
|
|
} else if (res.data.code === -3) {
|
|
} else if (res.data.code === -3) {
|
|
|
- this.$confirm(res.data.message + ",点击继续可继续进行年审")
|
|
|
|
|
|
|
+ this.$confirm(res.data.message + ',点击继续可继续进行年审')
|
|
|
.then(_ => {
|
|
.then(_ => {
|
|
|
this.addannualdirect()
|
|
this.addannualdirect()
|
|
|
})
|
|
})
|
|
|
- .catch(_ => {});
|
|
|
|
|
|
|
+ .catch(_ => {})
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- addaudit() {
|
|
|
|
|
|
|
+ addaudit () {
|
|
|
this.addshow = true
|
|
this.addshow = true
|
|
|
},
|
|
},
|
|
|
- addannualdirect() {
|
|
|
|
|
|
|
+ addannualdirect () {
|
|
|
api.addEntityDirect(this.entityForm, this.entityForm.auditer, this.$axios).then(res => {
|
|
api.addEntityDirect(this.entityForm, this.entityForm.auditer, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
|
|
- this.entityForm.Id = res.data.item;
|
|
|
|
|
- this.initDatas();
|
|
|
|
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
|
|
+ this.entityForm.Id = res.data.item
|
|
|
|
|
+ this.initDatas()
|
|
|
this.addshow = false
|
|
this.addshow = false
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
- addauditcom() {
|
|
|
|
|
- this.$confirm("确定添加年审, 是否继续?", "提示", {
|
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
|
- type: "warning"
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ addauditcom () {
|
|
|
|
|
+ this.$confirm('确定添加年审, 是否继续?', '提示', {
|
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
api.addEntity(this.entityForm, this.entityForm.auditer, this.$axios).then(res => {
|
|
api.addEntity(this.entityForm, this.entityForm.auditer, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
|
|
- this.entityForm.Id = res.data.item;
|
|
|
|
|
- this.initDatas();
|
|
|
|
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
|
|
+ this.entityForm.Id = res.data.item
|
|
|
|
|
+ this.initDatas()
|
|
|
this.addshow = false
|
|
this.addshow = false
|
|
|
this.$router.push({
|
|
this.$router.push({
|
|
|
path: '/oilsupplier/annualaudit/' + this.entityForm.SupplierId + '/goodsoperation',
|
|
path: '/oilsupplier/annualaudit/' + this.entityForm.SupplierId + '/goodsoperation',
|
|
|
query: {
|
|
query: {
|
|
|
certid: this.certId,
|
|
certid: this.certId,
|
|
|
- //WorkflowId: ,
|
|
|
|
|
|
|
+ // WorkflowId: ,
|
|
|
Status: 0,
|
|
Status: 0,
|
|
|
Step: 1,
|
|
Step: 1,
|
|
|
- annualId: this.entityForm.Id,
|
|
|
|
|
|
|
+ annualId: this.entityForm.Id
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
} else if (res.data.code === -3) {
|
|
} else if (res.data.code === -3) {
|
|
|
- this.$confirm(res.data.message + ",点击继续可继续进行年审")
|
|
|
|
|
|
|
+ this.$confirm(res.data.message + ',点击继续可继续进行年审')
|
|
|
.then(_ => {
|
|
.then(_ => {
|
|
|
this.addannualdirect()
|
|
this.addannualdirect()
|
|
|
})
|
|
})
|
|
|
- .catch(_ => {});
|
|
|
|
|
|
|
+ .catch(_ => {})
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
- .catch(() => {});
|
|
|
|
|
|
|
+ .catch(() => {})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- getselectsupplier() {
|
|
|
|
|
|
|
+ getselectsupplier () {
|
|
|
api.getSupList('02', this.$axios).then(res => {
|
|
api.getSupList('02', this.$axios).then(res => {
|
|
|
if (res.data.items.length != 0) {
|
|
if (res.data.items.length != 0) {
|
|
|
for (var i = 0; i < res.data.items.length; i++) {
|
|
for (var i = 0; i < res.data.items.length; i++) {
|
|
@@ -564,9 +559,7 @@
|
|
|
let params = {
|
|
let params = {
|
|
|
IsInnerOrganize: 1
|
|
IsInnerOrganize: 1
|
|
|
}
|
|
}
|
|
|
- _this.$axios.get('organizes/orgalllist', {
|
|
|
|
|
- params
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ _this.$axios.get('organizes/orgalllist', {params})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
})
|
|
})
|
|
@@ -575,15 +568,15 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- getDictOptions() {
|
|
|
|
|
|
|
+ getDictOptions () {
|
|
|
supplierapi.getDictList(this.$axios).then(res => {
|
|
supplierapi.getDictList(this.$axios).then(res => {
|
|
|
this.dictData = res.data.items
|
|
this.dictData = res.data.items
|
|
|
- //this.organizeOption = res.data.items['Organizes']
|
|
|
|
|
|
|
+ // this.organizeOption = res.data.items['Organizes']
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- checkSupplierTypeName(val) {
|
|
|
|
|
|
|
+ checkSupplierTypeName (val) {
|
|
|
if (val == '01') {
|
|
if (val == '01') {
|
|
|
return '物资类'
|
|
return '物资类'
|
|
|
} else if (val == '02') {
|
|
} else if (val == '02') {
|
|
@@ -593,15 +586,15 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- searchCommand(command) {
|
|
|
|
|
|
|
+ searchCommand (command) {
|
|
|
if (command == 'search') {
|
|
if (command == 'search') {
|
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
|
} else if (command == 'clear') {
|
|
} else if (command == 'clear') {
|
|
|
this.clearSearch()
|
|
this.clearSearch()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- //列表排序功能
|
|
|
|
|
- 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') {
|
|
@@ -610,69 +603,67 @@
|
|
|
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() {
|
|
|
|
|
- this.currentPage = 1;
|
|
|
|
|
- this.dialogVisible = false;
|
|
|
|
|
- this.initDatas();
|
|
|
|
|
|
|
+ handleSearch () {
|
|
|
|
|
+ this.currentPage = 1
|
|
|
|
|
+ this.dialogVisible = false
|
|
|
|
|
+ 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) {
|
|
|
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) {
|
|
|
- this.initDatas();
|
|
|
|
|
|
|
+ this.initDatas()
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'success',
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
|
|
+ })
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
message: res.data.message
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- getvalues(val) {
|
|
|
|
|
|
|
+ getvalues (val) {
|
|
|
this.entrydetail.business = val.Id
|
|
this.entrydetail.business = val.Id
|
|
|
this.entrydetail.instance = val.WorkflowId
|
|
this.entrydetail.instance = val.WorkflowId
|
|
|
this.historyVisible = true
|
|
this.historyVisible = true
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- MoreCmdClick(cmd) {
|
|
|
|
|
|
|
+ MoreCmdClick (cmd) {
|
|
|
if (cmd.Command == 'History') {
|
|
if (cmd.Command == 'History') {
|
|
|
this.getvalues(cmd.row)
|
|
this.getvalues(cmd.row)
|
|
|
-
|
|
|
|
|
} else if (cmd.Command == 'Delete') {
|
|
} else if (cmd.Command == 'Delete') {
|
|
|
this.deleteEntity(cmd.row)
|
|
this.deleteEntity(cmd.row)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- GetCommand(cmdType, row) {
|
|
|
|
|
|
|
+ GetCommand (cmdType, row) {
|
|
|
let cmd = {}
|
|
let cmd = {}
|
|
|
cmd.Command = cmdType
|
|
cmd.Command = cmdType
|
|
|
cmd.row = row
|
|
cmd.row = row
|
|
|
return cmd
|
|
return cmd
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
|
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
if (val === '') {
|
|
|
return '----'
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T00:00:00Z') {
|
|
} else if (val === '0001-01-01T00:00:00Z') {
|
|
@@ -687,20 +678,19 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- formatDateTime(date) {
|
|
|
|
|
- var y = date.getFullYear();
|
|
|
|
|
- var m = date.getMonth() + 1;
|
|
|
|
|
- m = m < 10 ? ('0' + m) : m;
|
|
|
|
|
- var d = date.getDate();
|
|
|
|
|
- d = d < 10 ? ('0' + d) : d;
|
|
|
|
|
- var h = date.getHours();
|
|
|
|
|
- var minute = date.getMinutes();
|
|
|
|
|
- minute = minute < 10 ? ('0' + minute) : minute;
|
|
|
|
|
- return y + '-' + m + '-' + d + ' ' + h + ':' + minute;
|
|
|
|
|
|
|
+ formatDateTime (date) {
|
|
|
|
|
+ var y = date.getFullYear()
|
|
|
|
|
+ var m = date.getMonth() + 1
|
|
|
|
|
+ m = m < 10 ? ('0' + m) : m
|
|
|
|
|
+ var d = date.getDate()
|
|
|
|
|
+ d = d < 10 ? ('0' + d) : d
|
|
|
|
|
+ var h = date.getHours()
|
|
|
|
|
+ var minute = date.getMinutes()
|
|
|
|
|
+ minute = minute < 10 ? ('0' + minute) : minute
|
|
|
|
|
+ return y + '-' + m + '-' + d + ' ' + h + ':' + minute
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|