|
|
@@ -19,7 +19,7 @@
|
|
|
<el-step title="供方交费"></el-step>
|
|
|
<el-step title="完成"></el-step>
|
|
|
</el-steps>
|
|
|
- <el-button slot="reference" plain size="mini" style="margin-left: 8px">查看进度</el-button>
|
|
|
+ <!-- <el-button slot="reference" plain size="mini" style="margin-left: 8px">查看进度</el-button> -->
|
|
|
</el-popover>
|
|
|
<el-button type="primary" style="margin-left: 8px;" size="mini" @click="addshow =true" v-if="Status <= 0">
|
|
|
提交审核</el-button>
|
|
|
@@ -258,8 +258,8 @@
|
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
|
import api from '@/api/oilsupplier/supplier'
|
|
|
- import annualapi from '@/api/oilsupplier/annualaudit';
|
|
|
- import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
+ import annualapi from '@/api/oilsupplier/annualaudit'
|
|
|
+import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue'
|
|
|
import WfHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
|
|
|
@@ -269,13 +269,12 @@
|
|
|
import PatentList from '@/components/oilsupplier/patentlist'
|
|
|
import WinningList from '@/components/oilsupplier/winninglist'
|
|
|
import BusinessList from '@/components/oilsupplier/businesslist'
|
|
|
- import GoodsList from "@/components/oilsupplier/goodslist";
|
|
|
- import GoodsInfo from "@/components/oilsupplier/goodsinfo";
|
|
|
+ import GoodsList from '@/components/oilsupplier/goodslist';
|
|
|
+ import GoodsInfo from '@/components/oilsupplier/goodsinfo';
|
|
|
import AuditbusList from '@/components/oilsupplier/auditbuslist'
|
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
import SubfileList from '@/components/oilsupplier/subfilelist'
|
|
|
|
|
|
-
|
|
|
export default {
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
@@ -288,23 +287,23 @@
|
|
|
WfHistory,
|
|
|
SupplierCertEdit,
|
|
|
SubfileList, // 选择企业资质
|
|
|
- EquipmentList, //企业主要装备情况
|
|
|
- PerformanceList, //近三年主要工程业绩列表
|
|
|
- PatentList, //专利及专有技术列表
|
|
|
- WinningList, //近三年省部级及以上获奖项目列表
|
|
|
- BusinessList, //选择准入范围
|
|
|
+ EquipmentList, // 企业主要装备情况
|
|
|
+ PerformanceList, // 近三年主要工程业绩列表
|
|
|
+ PatentList, // 专利及专有技术列表
|
|
|
+ WinningList, // 近三年省部级及以上获奖项目列表
|
|
|
+ BusinessList, // 选择准入范围
|
|
|
AuditbusList, // 待审核业务
|
|
|
GoodsInfo,
|
|
|
ChooseAuditor
|
|
|
},
|
|
|
name: 'oiltechnologyserviceEdit',
|
|
|
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
savebtn: true,
|
|
|
visbtn: '1',
|
|
|
- fushenauditer: '', //复审人员
|
|
|
- majorDept: [100000000, 100000001, 100000071], //专业可是
|
|
|
+ fushenauditer: '', // 复审人员
|
|
|
+ majorDept: [100000000, 100000001, 100000071], // 专业可是
|
|
|
secauditerOptions: [],
|
|
|
formannData: {},
|
|
|
audithistoryshow: false,
|
|
|
@@ -317,10 +316,10 @@
|
|
|
children: 'children'
|
|
|
},
|
|
|
auditform: {
|
|
|
- FirstAuditName: "",
|
|
|
- SecondAudit: "",
|
|
|
- ThirdAudit: "",
|
|
|
- AnnualId:'',
|
|
|
+ FirstAuditName: '',
|
|
|
+ SecondAudit: '',
|
|
|
+ ThirdAudit: '',
|
|
|
+ AnnualId: ''
|
|
|
},
|
|
|
Step: '',
|
|
|
goodsList: [], // 准入业务
|
|
|
@@ -334,11 +333,11 @@
|
|
|
dictData: null,
|
|
|
add_flat: true,
|
|
|
applyLoading: false,
|
|
|
- equipmentList: [], //企业主要装备情况
|
|
|
- performanceList: [], //近三年主要工程业绩
|
|
|
- patentList: [], //专利及专有技术
|
|
|
- winningList: [], //近三年省部级及以上获奖项目
|
|
|
- businessList: [], //准入业务
|
|
|
+ equipmentList: [], // 企业主要装备情况
|
|
|
+ performanceList: [], // 近三年主要工程业绩
|
|
|
+ patentList: [], // 专利及专有技术
|
|
|
+ winningList: [], // 近三年省部级及以上获奖项目
|
|
|
+ businessList: [], // 准入业务
|
|
|
serviceId: '',
|
|
|
certId: '',
|
|
|
auditer: '',
|
|
|
@@ -430,7 +429,7 @@
|
|
|
Step: 0,
|
|
|
HseTraining: '0',
|
|
|
AuditIndex: 0,
|
|
|
- PACNumber: ""
|
|
|
+ PACNumber: ''
|
|
|
},
|
|
|
|
|
|
formDataCert: {
|
|
|
@@ -464,9 +463,9 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
- this.serviceId = this.$route.params.opera;
|
|
|
- if (this.$route.query.certid) {
|
|
|
+ created () {
|
|
|
+ this.serviceId = this.$route.params.opera
|
|
|
+ if (this.$route.query.certid) {
|
|
|
this.certId = this.$route.query.certid + ''
|
|
|
}
|
|
|
this.Status = this.$route.query.Status + ''
|
|
|
@@ -488,21 +487,21 @@
|
|
|
this.orgtreeChange(this.majorDept)
|
|
|
},
|
|
|
methods: {
|
|
|
- getstatus(annid) {
|
|
|
+ getstatus (annid) {
|
|
|
annualapi.getEntity(annid, this.$axios)
|
|
|
.then(res => {
|
|
|
- this.formannData = res.data;
|
|
|
- console.log("--forann-", this.formannData)
|
|
|
+ this.formannData = res.data
|
|
|
+ console.log('--forann-', this.formannData)
|
|
|
this.Status = this.formannData.Status
|
|
|
this.entrydetail.business = this.formannData.Id
|
|
|
this.entrydetail.instance = this.formannData.WorkflowId
|
|
|
this.entrydetail.Status = this.formannData.Status
|
|
|
})
|
|
|
.catch(err => {
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
- },
|
|
|
- inputCompany(val) {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ inputCompany (val) {
|
|
|
if (!this.certId) {
|
|
|
api.getEntityByName(val, this.$axios).then(res => {
|
|
|
if (res.data && res.data.Id) {
|
|
|
@@ -513,7 +512,7 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- changeFormData(fdata) {
|
|
|
+ changeFormData (fdata) {
|
|
|
if (!this.certId) {
|
|
|
this.SetFormData(fdata)
|
|
|
}
|
|
|
@@ -526,7 +525,7 @@
|
|
|
// this.activeName = '1'
|
|
|
// }
|
|
|
// },
|
|
|
- SetFormData(fdata) {
|
|
|
+ SetFormData (fdata) {
|
|
|
this.formData.Id = fdata.Id
|
|
|
this.formData.SupplierName = fdata.SupplierName
|
|
|
this.formData.OilCertificateNo = fdata.OilCertificateNo
|
|
|
@@ -573,18 +572,18 @@
|
|
|
this.formData.HseTraining = fdata.HseTraining
|
|
|
this.formData.SpecTypeCode = fdata.SpecTypeCode
|
|
|
|
|
|
- this.$refs["GoodsInfo"].CityAry = []
|
|
|
- this.$refs["GoodsInfo"].CityAry.push(this.formData.Province)
|
|
|
- this.$refs["GoodsInfo"].CityAry.push(this.formData.City)
|
|
|
- this.$refs["GoodsInfo"].CityAry.push(this.formData.Street)
|
|
|
- this.$refs["GoodsInfo"].LinkCityAry = []
|
|
|
- this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
- this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkCity)
|
|
|
- this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
- this.$refs["GoodsInfo"].UnitRelationAry = []
|
|
|
+ this.$refs['GoodsInfo'].CityAry = []
|
|
|
+ this.$refs['GoodsInfo'].CityAry.push(this.formData.Province)
|
|
|
+ this.$refs['GoodsInfo'].CityAry.push(this.formData.City)
|
|
|
+ this.$refs['GoodsInfo'].CityAry.push(this.formData.Street)
|
|
|
+ this.$refs['GoodsInfo'].LinkCityAry = []
|
|
|
+ this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
+ this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkCity)
|
|
|
+ this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
+ this.$refs['GoodsInfo'].UnitRelationAry = []
|
|
|
},
|
|
|
|
|
|
- CheckCompanyBase() {
|
|
|
+ CheckCompanyBase () {
|
|
|
if (!this.formData.Id) {
|
|
|
this.$message({
|
|
|
type: 'error',
|
|
|
@@ -601,27 +600,27 @@
|
|
|
}
|
|
|
return true
|
|
|
},
|
|
|
- getbuslist() {
|
|
|
+ getbuslist () {
|
|
|
this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
},
|
|
|
- setAuditer(val, name) {
|
|
|
+ setAuditer (val, name) {
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|
|
|
this.chooseAuditorVisible = false
|
|
|
},
|
|
|
- equipmentdialog() {
|
|
|
- this.$refs["equipmentList"].showDialog()
|
|
|
+ equipmentdialog () {
|
|
|
+ this.$refs['equipmentList'].showDialog()
|
|
|
},
|
|
|
- performancedialog() {
|
|
|
- this.$refs["performanceList"].showDialog()
|
|
|
+ performancedialog () {
|
|
|
+ this.$refs['performanceList'].showDialog()
|
|
|
},
|
|
|
- patentdialog() {
|
|
|
- this.$refs["patentList"].showDialog()
|
|
|
+ patentdialog () {
|
|
|
+ this.$refs['patentList'].showDialog()
|
|
|
},
|
|
|
- winningdialog() {
|
|
|
- this.$refs["winningList"].showDialog()
|
|
|
+ winningdialog () {
|
|
|
+ this.$refs['winningList'].showDialog()
|
|
|
},
|
|
|
- initDatas() {
|
|
|
+ initDatas () {
|
|
|
console.log(this.formData.Id, 'this.formData.Id')
|
|
|
if (this.formData.Id) {
|
|
|
api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
|
@@ -638,15 +637,15 @@
|
|
|
this.formDataCert.SkillerTotal = this.formData.SkillerTotal
|
|
|
this.formDataCert.Status = this.formData.Status
|
|
|
this.formDataCert.WorkflowId = this.formData.WorkflowId
|
|
|
- this.$refs["GoodsInfo"].CityAry = []
|
|
|
- this.$refs["GoodsInfo"].CityAry.push(this.formData.Province)
|
|
|
- this.$refs["GoodsInfo"].CityAry.push(this.formData.City)
|
|
|
- this.$refs["GoodsInfo"].CityAry.push(this.formData.Street)
|
|
|
- this.$refs["GoodsInfo"].LinkCityAry = []
|
|
|
- this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
- this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkCity)
|
|
|
- this.$refs["GoodsInfo"].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
- this.$refs["GoodsInfo"].UnitRelationAry = []
|
|
|
+ this.$refs['GoodsInfo'].CityAry = []
|
|
|
+ this.$refs['GoodsInfo'].CityAry.push(this.formData.Province)
|
|
|
+ this.$refs['GoodsInfo'].CityAry.push(this.formData.City)
|
|
|
+ this.$refs['GoodsInfo'].CityAry.push(this.formData.Street)
|
|
|
+ this.$refs['GoodsInfo'].LinkCityAry = []
|
|
|
+ this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
+ this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkCity)
|
|
|
+ this.$refs['GoodsInfo'].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
+ this.$refs['GoodsInfo'].UnitRelationAry = []
|
|
|
this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['performanceList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['patentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
@@ -654,59 +653,58 @@
|
|
|
this.$refs['businessList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
if (this.certId && this.WorkflowId) {
|
|
|
- this.$refs['WfHistory'].getHistoryTask() /*刷新工作流*/
|
|
|
+ this.$refs['WfHistory'].getHistoryTask() /*刷新工作流 */
|
|
|
}
|
|
|
-
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
- });
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
- orgtreeChange(val) {
|
|
|
+ orgtreeChange (val) {
|
|
|
this.userOptions = []
|
|
|
- if(val){
|
|
|
- let deptid = val[val.length - 1]
|
|
|
- let auditstepcode = 'PROF_RECE'
|
|
|
- api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
- this.userOptions = res.data.item
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
+ if (val) {
|
|
|
+ let deptid = val[val.length - 1]
|
|
|
+ let auditstepcode = 'PROF_RECE'
|
|
|
+ api.getAuditerByDept(deptid, auditstepcode, this.$axios).then(res => {
|
|
|
+ this.userOptions = res.data.item
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- auditOrgChang(val) {
|
|
|
- let auditstepcode = "SECOND_TRIAL";
|
|
|
+ auditOrgChang (val) {
|
|
|
+ let auditstepcode = 'SECOND_TRIAL';
|
|
|
api
|
|
|
.getAuditerByFirst(val, auditstepcode, this.$axios)
|
|
|
.then(res => {
|
|
|
this.secauditerOptions = res.data.item
|
|
|
})
|
|
|
.catch(err => {
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
- },
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
- chooseAuditorShow() {
|
|
|
+ chooseAuditorShow () {
|
|
|
this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
this.chooseAuditorVisible = true
|
|
|
},
|
|
|
- setAuditer(val, name) {
|
|
|
+ setAuditer (val, name) {
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|
|
|
this.chooseAuditorVisible = false
|
|
|
this.auditOrgChang(this.auditer)
|
|
|
},
|
|
|
|
|
|
- getDictOptions() {
|
|
|
+ getDictOptions () {
|
|
|
let params = {
|
|
|
- //status: this.formData.Status,
|
|
|
- //majorAduit: this.formData.ThirdAudit
|
|
|
+ // status: this.formData.Status,
|
|
|
+ // majorAduit: this.formData.ThirdAudit
|
|
|
}
|
|
|
api.getDictListByStatus(params, this.$axios).then(res => {
|
|
|
this.dictData = res.data.items
|
|
|
- //this.organizeOption = res.data.items['Organizes']
|
|
|
+ // this.organizeOption = res.data.items['Organizes']
|
|
|
this.orgtreelist = window.toolfun_gettreejson(res.data.items['ProOrgList'], 'id', 'pId', 'id,name')
|
|
|
/* this.UnitRelationOptions = res.data.items['UnitRelation']
|
|
|
this.getCityList(res.data.items['GaodeMapChinaAreas'])
|
|
|
@@ -716,15 +714,14 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
-
|
|
|
- getorgtreelist() {
|
|
|
+ getorgtreelist () {
|
|
|
let _this = this
|
|
|
let params = {
|
|
|
IsInnerOrganize: 1
|
|
|
}
|
|
|
_this.$axios.get('organizes/orgalllist', {
|
|
|
- params
|
|
|
- })
|
|
|
+ params
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
})
|
|
|
@@ -745,7 +742,7 @@
|
|
|
// },
|
|
|
|
|
|
// 保存信息
|
|
|
- saveEntity() {
|
|
|
+ saveEntity () {
|
|
|
let valid1 = false
|
|
|
let valid2 = false
|
|
|
this.$refs['GoodsInfo'].$refs['EntityForm'].validate((valid) => {
|
|
|
@@ -755,7 +752,7 @@
|
|
|
this.$refs['GoodsInfo'].$refs['EntityFormCert'].validate((valid) => {
|
|
|
valid2 = valid
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
|
|
|
if (valid1 && valid2) {
|
|
|
if (!this.formData.SetupTime) {
|
|
|
@@ -764,7 +761,7 @@
|
|
|
this.formData.SetupTime = new Date(this.formData.SetupTime)
|
|
|
}
|
|
|
this.formData.RegCapital = parseFloat(this.formData.RegCapital)
|
|
|
- this.formData.HseTraining = this.formData.HseTraining + ""
|
|
|
+ this.formData.HseTraining = this.formData.HseTraining + ''
|
|
|
this.updateEntity()
|
|
|
return true
|
|
|
} else {
|
|
|
@@ -772,11 +769,11 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- updateEntity() {
|
|
|
- console.log("-----this.formData------",this.formData)
|
|
|
+ updateEntity () {
|
|
|
+ console.log('-----this.formData------', this.formData)
|
|
|
annualapi.supupdateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- //更新子表
|
|
|
+ // 更新子表
|
|
|
this.updateNumberEntity()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
@@ -790,7 +787,7 @@
|
|
|
},
|
|
|
|
|
|
// 企业人员结构情况
|
|
|
- updateNumberEntity() {
|
|
|
+ updateNumberEntity () {
|
|
|
this.$refs['EntityFormNumber'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (!this.CheckCompanyBase()) {
|
|
|
@@ -798,30 +795,30 @@
|
|
|
}
|
|
|
this.formDataCert.InStyle = this.formData.InStyle
|
|
|
api.updateNumberEntity(this.formData.Id + '_' + this.certId, this.formDataCert, this.$axios).then(
|
|
|
- res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
+ res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
- this.initDatas()
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
+ this.initDatas()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
} else {
|
|
|
- return false;
|
|
|
- }
|
|
|
+ return false
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- addAnnualAudit() {
|
|
|
+ addAnnualAudit () {
|
|
|
this.$refs['EntityFormref'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (this.auditer === '') {
|
|
|
@@ -831,17 +828,17 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.fushenauditer === "") {
|
|
|
+ if (this.fushenauditer === '') {
|
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择复审人!"
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择复审人!'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
if (this.majorDept.length === 0) {
|
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择专业处室!"
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择专业处室!'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
@@ -860,62 +857,61 @@
|
|
|
this.auditform.AnnualId = this.annualId
|
|
|
annualapi.commitauditEntity(this.entityForm, this.auditform, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
- this.Status = res.data.item;
|
|
|
- this.entityForm.Status = this.Status
|
|
|
- //this.initDatas();
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
+ this.Status = res.data.item
|
|
|
+ this.entityForm.Status = this.Status
|
|
|
+ // this.initDatas();
|
|
|
this.getstatus(this.annualId)
|
|
|
this.addshow = false
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
+ })
|
|
|
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
- });
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- //审批历史
|
|
|
- auhistory() {
|
|
|
+ // 审批历史
|
|
|
+ auhistory () {
|
|
|
this.audithistoryshow = true
|
|
|
},
|
|
|
|
|
|
- AuditEntity() {
|
|
|
+ AuditEntity () {
|
|
|
this.applyLoading = true
|
|
|
apiCert.auditEntity(this.certId, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
this.initDatas()
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
- } else {
|
|
|
+ })
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
this.applyLoading = false
|
|
|
-
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
- });
|
|
|
- },
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
- nexStepCB() {
|
|
|
+ nexStepCB () {
|
|
|
this.Step += 1
|
|
|
},
|
|
|
- jstimehandle(val) {
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -928,18 +924,17 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- 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>
|