|
|
@@ -12,7 +12,13 @@
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
|
|
|
- <el-button type="primary" size="mini" @click="submitInfoChange" v-if="InfoStatus > 0">审核</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="submitInfoChange"
|
|
|
+ v-if="auditBtn && InfoStatus == '1'">初审</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="submitInfoChange"
|
|
|
+ v-if="auditBtn && InfoStatus == '2'">复审</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="submitInfoChange"
|
|
|
+ v-if="auditBtn && InfoStatus == '5'">集中评审</el-button>
|
|
|
+ <!-- <el-button type="primary" size="mini" @click="submitInfoChange" v-if="InfoStatus > 0">审核</el-button> -->
|
|
|
<router-link :to="'/oilsupplier/infochangech/infoaudit'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
</router-link>
|
|
|
@@ -411,10 +417,12 @@
|
|
|
</div>
|
|
|
<el-table :data="subfileList1" border>
|
|
|
<el-table-column prop="NeedFileType" label="文件分类" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="OldFileName" label="原文件" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="OldFileUrlList" label="原文件" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <a :href="'http://'+fileurlcut(scope.row.OldFileUrl)" target="_blank"
|
|
|
- class="buttonText">{{scope.row.OldFileName}}</a>
|
|
|
+ <div v-for="(tmpUrl, index) in scope.row.OldFileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.OldFileName.split('$')[index]}}</a>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="OldEffectDate" label="原有效日期" show-overflow-tooltip>
|
|
|
@@ -422,10 +430,12 @@
|
|
|
{{ jstimehandle(scope.row.OldEffectDate+'') }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="FileName" label="变更后文件" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="FileUrlList" label="变更后文件" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <a :href="'http://'+fileurlcut(scope.row.FileUrl)" target="_blank"
|
|
|
- class="buttonText">{{scope.row.FileName}}</a>
|
|
|
+ <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="EffectDate" label="变更后有效日期" show-overflow-tooltip>
|
|
|
@@ -459,10 +469,12 @@
|
|
|
</div>
|
|
|
<el-table :data="subfileList2" border>
|
|
|
<el-table-column prop="NeedFileType" label="文件分类" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="OldFileName" label="原文件" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="OldFileUrlList" label="原文件" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <a :href="'http://'+fileurlcut(scope.row.OldFileUrl)" target="_blank"
|
|
|
- class="buttonText">{{scope.row.OldFileName}}</a>
|
|
|
+ <div v-for="(tmpUrl, index) in scope.row.OldFileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.OldFileName.split('$')[index]}}</a>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="OldEffectDate" label="原有效日期" show-overflow-tooltip>
|
|
|
@@ -470,10 +482,12 @@
|
|
|
{{ jstimehandle(scope.row.OldEffectDate+'') }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="FileName" label="变更后文件" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="FileUrlList" label="变更后文件" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <a :href="'http://'+fileurlcut(scope.row.FileUrl)" target="_blank"
|
|
|
- class="buttonText">{{scope.row.FileName}}</a>
|
|
|
+ <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="EffectDate" label="变更后有效日期" show-overflow-tooltip>
|
|
|
@@ -507,10 +521,12 @@
|
|
|
</div>
|
|
|
<el-table :data="subfileList3" border>
|
|
|
<el-table-column prop="NeedFileType" label="文件分类" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column prop="OldFileName" label="原文件" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="OldFileUrlList" label="原文件" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <a :href="'http://'+fileurlcut(scope.row.OldFileUrl)" target="_blank"
|
|
|
- class="buttonText">{{scope.row.OldFileName}}</a>
|
|
|
+ <div v-for="(tmpUrl, index) in scope.row.OldFileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.OldFileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.OldFileName.split('$')[index]}}</a>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="OldEffectDate" label="原有效日期" show-overflow-tooltip>
|
|
|
@@ -518,10 +534,12 @@
|
|
|
{{ jstimehandle(scope.row.OldEffectDate+'') }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="FileName" label="变更后文件" show-overflow-tooltip>
|
|
|
+ <el-table-column prop="FileUrlList" label="变更后文件" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <a :href="'http://'+fileurlcut(scope.row.FileUrl)" target="_blank"
|
|
|
- class="buttonText">{{scope.row.FileName}}</a>
|
|
|
+ <div v-for="(tmpUrl, index) in scope.row.FileUrlList">
|
|
|
+ <a :href="'http://'+fileurlcut(scope.row.FileUrl, index)" target="_blank"
|
|
|
+ class="buttonText">{{scope.row.FileName.split('$')[index]}}</a>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="EffectDate" label="变更后有效日期" show-overflow-tooltip>
|
|
|
@@ -573,6 +591,7 @@
|
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
|
import _ from 'lodash';
|
|
|
+ import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
import supplierapi from '@/api/oilsupplier/supplier';
|
|
|
import api from '@/api/oilsupplier/infochange';
|
|
|
import WfMultiHistory from "@/components/workflow/wfmultihistory.vue";
|
|
|
@@ -589,10 +608,12 @@
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
+ auditstepcode: '',
|
|
|
+ auditBtn: false,
|
|
|
AccessCardNolist: [],
|
|
|
AccessCardNo1: '',
|
|
|
AccessCardNo2: '',
|
|
|
- AccessCardNo3:'',
|
|
|
+ AccessCardNo3: '',
|
|
|
SubfileForm: {
|
|
|
Id: '',
|
|
|
SupplierId: '',
|
|
|
@@ -882,22 +903,47 @@
|
|
|
this.entrydetail.business = this.Infomain[0].BusinessKey + ''
|
|
|
this.entrydetail.instance = this.Infomain[0].WorkFlowId + ''
|
|
|
this.entrydetail.Status = this.Infomain[0].Status + ''
|
|
|
+ this.InfoStatus = this.Infomain[0].Status + ''
|
|
|
+ if (this.Infomain[0].Status === '1') {
|
|
|
+ this.auditstepcode = 'FIRST_TRIAL'
|
|
|
+ } else if (this.Infomain[0].Status === '2') {
|
|
|
+ this.auditstepcode = 'SECOND_TRIAL'
|
|
|
+ } else if (this.Infomain[0].Status === '5') {
|
|
|
+ this.auditstepcode = 'PROF_REGULATION'
|
|
|
+ }
|
|
|
}
|
|
|
- console.log("---ent", this.entrydetail)
|
|
|
+ this.isAccess()
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.error(err);
|
|
|
});
|
|
|
},
|
|
|
+ isAccess() {
|
|
|
+ apiCert.isAccess(this.auditstepcode, this.$axios).then(res => {
|
|
|
+ this.auditBtn = res.data
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fileurlcut(val, index) {
|
|
|
+ let fileurlall = val.split('$')[index]
|
|
|
+ let fileurl = fileurlall.split("|")
|
|
|
+ return fileurl[0]
|
|
|
+ },
|
|
|
getAccessCardNo() {
|
|
|
- api.GeAccessCardNo(this.supplierId, this.$axios)
|
|
|
+ api.GeAccessCardNo(this.SuppId, this.$axios)
|
|
|
.then(res => {
|
|
|
this.AccessCardNolist = res.data.items;
|
|
|
- console.log("this.AccessCardNolist", this.AccessCardNolist)
|
|
|
if (this.AccessCardNolist) {
|
|
|
- this.AccessCardNo1= this.AccessCardNolist[0].AccessCardNo
|
|
|
- this.AccessCardNo2 = this.AccessCardNolist[1].AccessCardNo
|
|
|
- this.AccessCardNo3 = this.AccessCardNolist[2].AccessCardNo
|
|
|
+ for (var i = 0; i < this.AccessCardNolist.length; i++) {
|
|
|
+ if (this.AccessCardNolist[i].SupplierTypeCode == "01") {
|
|
|
+ this.AccessCardNo1 = this.AccessCardNolist[i].AccessCardNo
|
|
|
+ } else if (this.AccessCardNolist[i].SupplierTypeCode == "02") {
|
|
|
+ this.AccessCardNo2 = this.AccessCardNolist[i].AccessCardNo
|
|
|
+ } else if (this.AccessCardNolist[i].SupplierTypeCode == "03") {
|
|
|
+ this.AccessCardNo3 = this.AccessCardNolist[i].AccessCardNo
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch(err => {
|
|
|
@@ -918,7 +964,14 @@
|
|
|
.then(res => {
|
|
|
_this.subfileList1 = res.data.items
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
- console.log("----this.subfileList---", this.subfileList1)
|
|
|
+ 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)
|
|
|
@@ -956,7 +1009,14 @@
|
|
|
.then(res => {
|
|
|
_this.subfileList2 = res.data.items
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
- console.log("----this.subfileList---", this.subfileList2)
|
|
|
+ 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)
|
|
|
@@ -994,7 +1054,14 @@
|
|
|
.then(res => {
|
|
|
_this.subfileList3 = res.data.items
|
|
|
_this.currentItemCount = res.data.currentItemCount
|
|
|
- console.log("----this.subfileList---", this.subfileList3)
|
|
|
+ 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)
|
|
|
@@ -1034,7 +1101,6 @@
|
|
|
api.getEntityThen(this.infoId, this.$axios)
|
|
|
.then(res => {
|
|
|
this.infochangedata = res.data.items;
|
|
|
- console.log("this.infochangedata", this.infochangedata)
|
|
|
})
|
|
|
.catch(err => {
|
|
|
console.error(err);
|