|
|
@@ -469,7 +469,7 @@
|
|
|
<a :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank"
|
|
|
class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
|
|
|
</div> -->
|
|
|
-
|
|
|
+
|
|
|
<viewer :images="scope.row.FileUrlList">
|
|
|
<div v-for="(tmpUrl,index) in scope.row.FileUrlList" :key="index" style="vertical-align: middle; text-align: center;">
|
|
|
<el-link :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank" type="primary"
|
|
|
@@ -1445,24 +1445,23 @@
|
|
|
console.log(err)
|
|
|
})
|
|
|
},
|
|
|
- imgFormat(val,index){
|
|
|
- console.log(val)
|
|
|
- if(val !=null && val != undefined && val !=''){
|
|
|
+ imgFormat (val, index) {
|
|
|
+ if (val != null && val != undefined && val != '') {
|
|
|
let fileurlall = val.split('$')[index]
|
|
|
let fileurl = fileurlall.split('|')
|
|
|
- if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
|
|
|
- let Format = fileurl[1].split(".")
|
|
|
- if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
|
|
|
- let pictureFormat = Format[1];
|
|
|
- if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
|
|
|
- return false;
|
|
|
+ if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
|
|
|
+ let Format = fileurl[1].split('.')
|
|
|
+ if (Format[1] != null && Format[1] !='' && Format[1] != undefined) {
|
|
|
+ let pictureFormat = Format[1]
|
|
|
+ if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
|
|
|
+ return false
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- return true;
|
|
|
+ return true
|
|
|
}
|
|
|
},
|
|
|
- fileurlcut(val, index) {
|
|
|
+ fileurlcut (val, index) {
|
|
|
let fileurlall = val.split('$')[index]
|
|
|
let fileurl = fileurlall.split('|')
|
|
|
let retUrl = fileurl[0]
|
|
|
@@ -1473,7 +1472,7 @@
|
|
|
}
|
|
|
return retUrl
|
|
|
},
|
|
|
- getAccessCardNo() {
|
|
|
+ getAccessCardNo () {
|
|
|
api.GeAccessCardNo(this.SuppId, this.$axios)
|
|
|
.then(res => {
|
|
|
this.AccessCardNolist = res.data.items;
|
|
|
@@ -1490,10 +1489,10 @@
|
|
|
}
|
|
|
})
|
|
|
.catch(err => {
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
},
|
|
|
- getfilelist1() {
|
|
|
+ getfilelist1 () {
|
|
|
let _this = this
|
|
|
const params = {
|
|
|
SupplierId: this.SuppId,
|
|
|
@@ -1502,26 +1501,22 @@
|
|
|
_currentPage: this.currentPageProject,
|
|
|
_size: this.sizeProject
|
|
|
}
|
|
|
- _this.$axios.get('qualchange/auditfilelist', {
|
|
|
- params
|
|
|
- })
|
|
|
+ _this.$axios.get('qualchange/auditfilelist', {params})
|
|
|
.then(res => {
|
|
|
_this.subfileList1 = res.data.items
|
|
|
_this.currentItemCountProject = res.data.currentItemCount
|
|
|
for (let idx in _this.subfileList1) {
|
|
|
_this.subfileList1[idx].FileUrlList = _this.subfileList1[idx].FileUrl.split('$')
|
|
|
-
|
|
|
}
|
|
|
for (let idx1 in _this.subfileList1) {
|
|
|
_this.subfileList1[idx1].OldFileUrlList = _this.subfileList1[idx1].OldFileUrl.split('$')
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- bfdataformat(val) {
|
|
|
+ bfdataformat (val) {
|
|
|
if (val.SelectItem == 'SpecTypeCode') {
|
|
|
if (val.BeChangeInfo == '1') {
|
|
|
return '一般外部'
|
|
|
@@ -1563,8 +1558,8 @@
|
|
|
return val.BeChangeInfo
|
|
|
}
|
|
|
},
|
|
|
- dataformat(val) {
|
|
|
- //debugger
|
|
|
+ dataformat (val) {
|
|
|
+ // debugger
|
|
|
if (val.SelectItem == 'SpecTypeCode') {
|
|
|
if (val.ChangeInfo == '1') {
|
|
|
return '一般外部'
|
|
|
@@ -1606,7 +1601,7 @@
|
|
|
return val.ChangeInfo
|
|
|
}
|
|
|
},
|
|
|
- getbusList1() {
|
|
|
+ getbusList1 () {
|
|
|
let _this = this
|
|
|
const params = {
|
|
|
SupplierId: this.SuppId,
|
|
|
@@ -1614,9 +1609,7 @@
|
|
|
_currentPage: 1,
|
|
|
_size: 1000
|
|
|
}
|
|
|
- this.$axios.get('suppliercertsub/list', {
|
|
|
- params
|
|
|
- })
|
|
|
+ this.$axios.get('suppliercertsub/list', {params})
|
|
|
.then(res => {
|
|
|
_this.businessList1 = res.data.items
|
|
|
})
|
|
|
@@ -1624,35 +1617,31 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getfilelist2() {
|
|
|
+ getfilelist2 () {
|
|
|
let _this = this
|
|
|
const params = {
|
|
|
SupplierId: this.SuppId,
|
|
|
SupplierTypeCode: '02',
|
|
|
MInfoId: this.infoId,
|
|
|
_currentPage: 1,
|
|
|
- _size: 1000,
|
|
|
+ _size: 1000
|
|
|
}
|
|
|
- _this.$axios.get('qualchange/auditfilelist', {
|
|
|
- params
|
|
|
- })
|
|
|
+ _this.$axios.get('qualchange/auditfilelist', {params})
|
|
|
.then(res => {
|
|
|
_this.subfileList2 = res.data.items
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
for (let idx in _this.subfileList2) {
|
|
|
_this.subfileList2[idx].FileUrlList = _this.subfileList2[idx].FileUrl.split('$')
|
|
|
-
|
|
|
}
|
|
|
for (let idx1 in _this.subfileList2) {
|
|
|
_this.subfileList2[idx1].OldFileUrlList = _this.subfileList2[idx1].OldFileUrl.split('$')
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getbusList2() {
|
|
|
+ getbusList2 () {
|
|
|
let _this = this
|
|
|
const params = {
|
|
|
SupplierId: this.SuppId,
|
|
|
@@ -1660,9 +1649,7 @@
|
|
|
_currentPage: 1,
|
|
|
_size: 1000
|
|
|
}
|
|
|
- this.$axios.get('suppliercertsub/list', {
|
|
|
- params
|
|
|
- })
|
|
|
+ this.$axios.get('suppliercertsub/list', {params})
|
|
|
.then(res => {
|
|
|
_this.businessList2 = res.data.items
|
|
|
})
|
|
|
@@ -1670,7 +1657,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getfilelist3() {
|
|
|
+ getfilelist3 () {
|
|
|
let _this = this
|
|
|
const params = {
|
|
|
SupplierId: this.SuppId,
|
|
|
@@ -1679,26 +1666,22 @@
|
|
|
_currentPage: 1,
|
|
|
_size: 1000,
|
|
|
}
|
|
|
- _this.$axios.get('qualchange/auditfilelist', {
|
|
|
- params
|
|
|
- })
|
|
|
+ _this.$axios.get('qualchange/auditfilelist', {params})
|
|
|
.then(res => {
|
|
|
_this.subfileList3 = res.data.items
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
for (let idx in _this.subfileList3) {
|
|
|
_this.subfileList3[idx].FileUrlList = _this.subfileList3[idx].FileUrl.split('$')
|
|
|
-
|
|
|
}
|
|
|
for (let idx1 in _this.subfileList3) {
|
|
|
_this.subfileList3[idx1].OldFileUrlList = _this.subfileList3[idx1].OldFileUrl.split('$')
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getbusList3() {
|
|
|
+ getbusList3 () {
|
|
|
let _this = this
|
|
|
const params = {
|
|
|
SupplierId: this.SuppId,
|
|
|
@@ -1706,9 +1689,7 @@
|
|
|
_currentPage: 1,
|
|
|
_size: 1000
|
|
|
}
|
|
|
- this.$axios.get('suppliercertsub/list', {
|
|
|
- params
|
|
|
- })
|
|
|
+ this.$axios.get('suppliercertsub/list', {params})
|
|
|
.then(res => {
|
|
|
_this.businessList3 = res.data.items
|
|
|
})
|
|
|
@@ -1727,7 +1708,7 @@
|
|
|
// }
|
|
|
|
|
|
// },
|
|
|
- getDictOptions() {
|
|
|
+ getDictOptions () {
|
|
|
let params = {
|
|
|
status: this.formData.Status,
|
|
|
majorAduit: this.formData.ThirdAudit
|
|
|
@@ -1755,13 +1736,13 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getCityList(val) {
|
|
|
+ getCityList (val) {
|
|
|
let resultData = JSON.parse(val)
|
|
|
let countstr = JSON.stringify(resultData.districts[0].districts)
|
|
|
countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
|
|
|
this.countryoptions = JSON.parse(countstr)
|
|
|
},
|
|
|
- getCountryList(val) {
|
|
|
+ getCountryList (val) {
|
|
|
let tmpJson = JSON.parse(val)
|
|
|
this.countryListOptions = []
|
|
|
for (let idx in tmpJson) {
|
|
|
@@ -1773,12 +1754,11 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- radioChange() {
|
|
|
+ radioChange () {
|
|
|
if (this.shenheForm.SuccessStatus === 1) {
|
|
|
-
|
|
|
- if(this.InfoStatus == '5'){
|
|
|
+ if (this.InfoStatus == '5') {
|
|
|
this.textplaceholder = ''
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.textplaceholder = '请填写审核意见'
|
|
|
}
|
|
|
} else {
|
|
|
@@ -1786,7 +1766,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- auditget() {
|
|
|
+ auditget () {
|
|
|
this.auditerOption = []
|
|
|
api.getAuditer(this.$axios).then(res => {
|
|
|
this.auditerOption = res.data.item
|
|
|
@@ -1794,16 +1774,16 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- //提交信息变更审核
|
|
|
- submitInfoChange() {
|
|
|
+ // 提交信息变更审核
|
|
|
+ submitInfoChange () {
|
|
|
this.commitshow = true
|
|
|
},
|
|
|
- //审批历史
|
|
|
- auhistory() {
|
|
|
+ // 审批历史
|
|
|
+ auhistory () {
|
|
|
this.audithistoryshow = true
|
|
|
},
|
|
|
- //审核通过
|
|
|
- makeSure() {
|
|
|
+ // 审核通过
|
|
|
+ makeSure () {
|
|
|
if (this.shenheForm.SuccessStatus === 1) {
|
|
|
if (this.shenheForm.AuditorRemark.trim().length < 1 && this.InfoStatus && this.InfoStatus !== '3' && this.InfoStatus !== '5') {
|
|
|
this.$message({
|
|
|
@@ -1830,7 +1810,7 @@
|
|
|
}
|
|
|
this.infoChangeAuditLaw()
|
|
|
},
|
|
|
- infoChangeAuditLaw() {
|
|
|
+ infoChangeAuditLaw () {
|
|
|
this.shenheForm.InfoId = parseInt(this.infoId)
|
|
|
this.shenheForm.SuppId = parseInt(this.SuppId)
|
|
|
this.btnloading = true
|
|
|
@@ -1855,7 +1835,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getCityList(val) {
|
|
|
+ getCityList (val) {
|
|
|
let resultData = JSON.parse(val)
|
|
|
let countstr = JSON.stringify(resultData.districts[0].districts)
|
|
|
countstr = countstr.replace(/\,\"districts\"\:\[\]/g, '')
|
|
|
@@ -1871,7 +1851,7 @@
|
|
|
this.currentPageProject = value
|
|
|
this.getfilelist1()
|
|
|
},
|
|
|
- jstimehandle(val) {
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -1886,20 +1866,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>
|
|
|
<style lang="scss">
|
|
|
.modified-form-input {
|