|
|
@@ -144,54 +144,54 @@
|
|
|
.then(res => {
|
|
|
})
|
|
|
},
|
|
|
- start () {
|
|
|
- this.datadialogVisible = true
|
|
|
- this.time = setInterval(this.timer, 50)
|
|
|
- },
|
|
|
- stop () {
|
|
|
- clearInterval(this.time)
|
|
|
- },
|
|
|
+ // start () {
|
|
|
+ // this.datadialogVisible = true
|
|
|
+ // this.time = setInterval(this.timer, 50)
|
|
|
+ // },
|
|
|
+ // stop () {
|
|
|
+ // clearInterval(this.time)
|
|
|
+ // },
|
|
|
|
|
|
- reset () {
|
|
|
- console.log(this.str, '时间=======')
|
|
|
- clearInterval(this.time)
|
|
|
- this.h = 0
|
|
|
- this.m = 0
|
|
|
- this.ms = 0
|
|
|
- this.s = 0
|
|
|
- this.str = '00:00:00:00'
|
|
|
- this.datadialogVisible = false
|
|
|
- },
|
|
|
- timer () { // 定义计时函数
|
|
|
- this.ms = this.ms + 50 // 毫秒
|
|
|
- if (this.ms >= 1000) {
|
|
|
- this.ms = 0
|
|
|
- this.s = this.s + 1
|
|
|
- }
|
|
|
- if (this.s >= 60) {
|
|
|
- this.s = 0
|
|
|
- this.m = this.m + 1
|
|
|
- }
|
|
|
- if (this.m >= 60) {
|
|
|
- this.m = 0
|
|
|
- this.h = this.h + 1
|
|
|
- }
|
|
|
- this.str = this.toDub(this.h) + ':' + this.toDub(this.m) + ':' + this.toDub(this.s) + ':' + this.toDubms(this.ms) + '毫秒'
|
|
|
- },
|
|
|
- toDub (n) { // 补0操作
|
|
|
- if (n < 10) {
|
|
|
- return '0' + n
|
|
|
- } else {
|
|
|
- return '' + n
|
|
|
- }
|
|
|
- },
|
|
|
- toDubms (n) {
|
|
|
- if (n < 10) {
|
|
|
- return '00' + n
|
|
|
- } else {
|
|
|
- return '0' + n
|
|
|
- }
|
|
|
- },
|
|
|
+ // reset () {
|
|
|
+ // console.log(this.str, '时间=======')
|
|
|
+ // clearInterval(this.time)
|
|
|
+ // this.h = 0
|
|
|
+ // this.m = 0
|
|
|
+ // this.ms = 0
|
|
|
+ // this.s = 0
|
|
|
+ // this.str = '00:00:00:00'
|
|
|
+ // this.datadialogVisible = false
|
|
|
+ // },
|
|
|
+ // timer () { // 定义计时函数
|
|
|
+ // this.ms = this.ms + 50 // 毫秒
|
|
|
+ // if (this.ms >= 1000) {
|
|
|
+ // this.ms = 0
|
|
|
+ // this.s = this.s + 1
|
|
|
+ // }
|
|
|
+ // if (this.s >= 60) {
|
|
|
+ // this.s = 0
|
|
|
+ // this.m = this.m + 1
|
|
|
+ // }
|
|
|
+ // if (this.m >= 60) {
|
|
|
+ // this.m = 0
|
|
|
+ // this.h = this.h + 1
|
|
|
+ // }
|
|
|
+ // this.str = this.toDub(this.h) + ':' + this.toDub(this.m) + ':' + this.toDub(this.s) + ':' + this.toDubms(this.ms) + '毫秒'
|
|
|
+ // },
|
|
|
+ // toDub (n) { // 补0操作
|
|
|
+ // if (n < 10) {
|
|
|
+ // return '0' + n
|
|
|
+ // } else {
|
|
|
+ // return '' + n
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // toDubms (n) {
|
|
|
+ // if (n < 10) {
|
|
|
+ // return '00' + n
|
|
|
+ // } else {
|
|
|
+ // return '0' + n
|
|
|
+ // }
|
|
|
+ // },
|
|
|
|
|
|
insertsuppler () {
|
|
|
this.$confirm('是否继续?', '提示', {
|
|
|
@@ -201,23 +201,24 @@
|
|
|
})
|
|
|
.then(() => {
|
|
|
// this.fullscreenLoading = true
|
|
|
+ this.datadialogVisible = true
|
|
|
this.dialogtitle = '导入OilSuppler'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/insertsupplier')
|
|
|
.then(res => {
|
|
|
// this.fullscreenLoading = false
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.insertSupplerCert()
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
insertSupplerCert () {
|
|
|
this.dialogtitle = '导入OilSupplerCert'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/insertsuppliercert')
|
|
|
.then(res => {
|
|
|
// this.fullscreenLoading = false
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.updateSupplerCert()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|
|
|
@@ -238,11 +239,11 @@
|
|
|
},
|
|
|
updateSupplerCert () {
|
|
|
this.dialogtitle = '更新SupplierTypeCodeAndInFlag'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/updatecerttypeandinflag')
|
|
|
.then(res => {
|
|
|
// this.fullscreenLoading = false
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.updateSupplerId()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|
|
|
@@ -263,11 +264,11 @@
|
|
|
},
|
|
|
updateSupplerId () {
|
|
|
this.dialogtitle = '更新Cert表的SupplierID'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/updatesupplierid')
|
|
|
.then(res => {
|
|
|
// this.fullscreenLoading = false
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.insertfilename()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|
|
|
@@ -288,10 +289,10 @@
|
|
|
},
|
|
|
insertfilename () {
|
|
|
this.dialogtitle = '导入资质名称'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/insertFileName')
|
|
|
.then(res => {
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.insertCertSub()
|
|
|
})
|
|
|
},
|
|
|
@@ -313,11 +314,11 @@
|
|
|
},
|
|
|
insterAnnualAudit () {
|
|
|
this.dialogtitle = '导入年审表'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/insterannualaudit')
|
|
|
.then(res => {
|
|
|
// this.fullscreenLoading = false
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.updateAnnualAudit()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|
|
|
@@ -413,11 +414,11 @@
|
|
|
},
|
|
|
insertCertSub () {
|
|
|
this.dialogtitle = '导入CertSub表'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/insertCertSub')
|
|
|
.then(res => {
|
|
|
// this.fullscreenLoading = false
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.updateCertSub()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|
|
|
@@ -438,11 +439,11 @@
|
|
|
},
|
|
|
updateCertSub () {
|
|
|
this.dialogtitle = '更新CertSub表'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/updateOilSupplierCertSub')
|
|
|
.then(res => {
|
|
|
// this.fullscreenLoading = false
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.insertOilSupplierCertAppend()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|
|
|
@@ -477,11 +478,11 @@
|
|
|
},
|
|
|
updateOilSupplierCertAppend () {
|
|
|
this.dialogtitle = '跟新OilSupplierCertAppend表的SupplierId和CerId'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/updateOilSupplierCertAppend')
|
|
|
.then(res => {
|
|
|
// this.fullscreenLoading = false
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.insertOilSupplierCertSub()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|
|
|
@@ -502,11 +503,11 @@
|
|
|
},
|
|
|
insertOilSupplierCertAppend () {
|
|
|
this.dialogtitle = '导入增项申请'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/insertOilSupplierCertAppend')
|
|
|
.then(res => {
|
|
|
// this.fullscreenLoading = false
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.updateOilSupplierCertAppend()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|
|
|
@@ -527,10 +528,10 @@
|
|
|
},
|
|
|
insertOilSupplierCertSub () {
|
|
|
this.dialogtitle = '导入增项的准入范围'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/insertOilSupplierCertSub')
|
|
|
.then(res => {
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
this.updateCertAppendIsType2()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|
|
|
@@ -605,10 +606,10 @@
|
|
|
},
|
|
|
updateCertAppendIsType2 () {
|
|
|
this.dialogtitle = '更新增项准入范围'
|
|
|
- this.start()
|
|
|
+ // this.start()
|
|
|
this.$axios.get('tmpzcgf/updateCertSubIsType1')
|
|
|
.then(res => {
|
|
|
- this.reset()
|
|
|
+ // this.reset()
|
|
|
// this.insterAnnualAudit()
|
|
|
})
|
|
|
// this.$confirm('是否继续?', '提示', {
|