|
@@ -25,13 +25,13 @@
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="itemsshow">查看变更项</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="itemsshow">查看变更项</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" @click="auhistory">审批流程</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px"
|
|
<el-button type="primary" size="mini" style="margin-left: 8px"
|
|
|
- v-if="formData.Id != '' && formData.Status <= 0" @click="saveinfochange">保存
|
|
|
|
|
|
|
+ v-if="formData.Id != '' && currentStatus <= 0" @click="saveinfochange">保存
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="separateUnitSubmitClick"
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="separateUnitSubmitClick"
|
|
|
- v-if="formData.Id != '' && formData.Status <= 0 && parseInt(IsCompanyUser) === 0">提交审核
|
|
|
|
|
|
|
+ v-if="formData.Id != '' && currentStatus <= 0 && parseInt(IsCompanyUser) === 0">提交审核
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="comSubmitToSeparateUnitClick"
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="comSubmitToSeparateUnitClick"
|
|
|
- v-if="formData.Id != '' && formData.Status <= 0 && parseInt(IsCompanyUser) === 1">提交
|
|
|
|
|
|
|
+ v-if="formData.Id != '' && currentStatus <= 0 && parseInt(IsCompanyUser) === 1">提交
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplierappend/basislist'">
|
|
<router-link :to="'/oilsupplier/supplierappend/basislist'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
@@ -391,7 +391,7 @@
|
|
|
<div slot="header">
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 增项信息</span>
|
|
<span><i class="icon icon-table2"></i> 增项信息</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text"
|
|
<el-button style="float: right; padding: 3px 0" type="text"
|
|
|
- v-if="formData.Status <= 0 && formData.Status != -5" @click="saveEntity()">保存信息</el-button>
|
|
|
|
|
|
|
+ v-if="currentStatus <= 0 && currentStatus != -5" @click="saveEntity()">保存信息</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData">
|
|
<el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData">
|
|
|
<el-row>
|
|
<el-row>
|
|
@@ -407,7 +407,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
<el-form-item label="准入方式">
|
|
<el-form-item label="准入方式">
|
|
|
- <el-select ref="SpecType" v-model="formData.InStyle" :disabled="this.formData.Status > '0'"
|
|
|
|
|
|
|
+ <el-select ref="SpecType" v-model="formData.InStyle" :disabled="currentStatus > 0"
|
|
|
placeholder="请选择" style="width: 100%">
|
|
placeholder="请选择" style="width: 100%">
|
|
|
<el-option v-for="item in InOptions" :key="item.Id" :label="item.Key" v-if="item.Value != '2' && item.Value != '3'"
|
|
<el-option v-for="item in InOptions" :key="item.Id" :label="item.Key" v-if="item.Value != '2' && item.Value != '3'"
|
|
|
:value="item.Value">
|
|
:value="item.Value">
|
|
@@ -417,7 +417,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
<el-form-item label="备注" prop="Remark">
|
|
<el-form-item label="备注" prop="Remark">
|
|
|
- <el-input :disabled="formData.Status>0" type="textarea" v-model="formData.Remark"
|
|
|
|
|
|
|
+ <el-input :disabled="currentStatus>0" type="textarea" v-model="formData.Remark"
|
|
|
placeholder="请输入">
|
|
placeholder="请输入">
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -429,15 +429,15 @@
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
<span><i class="icon icon-table2"></i> 企业资质</span>
|
|
<span><i class="icon icon-table2"></i> 企业资质</span>
|
|
|
- <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog" v-if="formData.Status <= 0">添加</el-button>
|
|
|
|
|
|
|
+ <el-button style="float: right; padding: 3px 0" type="text" @click="showDialog" v-if="currentStatus <= 0">添加</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<el-table size="mini" highlight-current-row :data="subfileList1" border>
|
|
<el-table size="mini" highlight-current-row :data="subfileList1" border>
|
|
|
<el-table-column label="操作" width="150" align="center" fixed>
|
|
<el-table-column label="操作" width="150" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="primary" plain size="mini" title="文件变更" :disabled="formData.Status > 0" @click="openDialog(scope.row)">
|
|
|
|
|
|
|
+ <el-button type="primary" plain size="mini" title="文件变更" :disabled="currentStatus > 0" @click="openDialog(scope.row)">
|
|
|
变更</el-button>
|
|
变更</el-button>
|
|
|
<el-button type="danger" plain size="mini" title="文件删除" @click="delFile(scope.row)"
|
|
<el-button type="danger" plain size="mini" title="文件删除" @click="delFile(scope.row)"
|
|
|
- v-if="formData.Status <= 0 && scope.row.FileType == 0 && scope.row.OldFileUrl == ''">
|
|
|
|
|
|
|
+ v-if="currentStatus <= 0 && scope.row.FileType == 0 && scope.row.OldFileUrl == ''">
|
|
|
删除</el-button>
|
|
删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -488,7 +488,7 @@
|
|
|
</a>
|
|
</a>
|
|
|
</div>
|
|
</div>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="4" v-if="scope.row.FileUrl != '' && formData.Status <= 0 && formData.Status != -5">
|
|
|
|
|
|
|
+ <el-col :span="4" v-if="scope.row.FileUrl != '' && currentStatus <= 0 && currentStatus != -5">
|
|
|
<i class="el-icon-close" :style="{'float': 'right', 'height': '100%','line-height': lineheight(scope.row.FileUrlList.length) + 'px',}" @click="iconclear(scope.row)"></i>
|
|
<i class="el-icon-close" :style="{'float': 'right', 'height': '100%','line-height': lineheight(scope.row.FileUrlList.length) + 'px',}" @click="iconclear(scope.row)"></i>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row> -->
|
|
</el-row> -->
|
|
@@ -511,7 +511,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</viewer>
|
|
</viewer>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="4" v-if="scope.row.FileUrl != '' && formData.Status <= 0 && formData.Status != -5">
|
|
|
|
|
|
|
+ <el-col :span="4" v-if="scope.row.FileUrl != '' && currentStatus <= 0 && currentStatus != -5">
|
|
|
<i class="el-icon-close" :style="{'float': 'right', 'height': '100%','line-height': lineheight(scope.row.FileUrlList.length) + 'px',}" @click="iconclear(scope.row)"></i>
|
|
<i class="el-icon-close" :style="{'float': 'right', 'height': '100%','line-height': lineheight(scope.row.FileUrlList.length) + 'px',}" @click="iconclear(scope.row)"></i>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -533,13 +533,13 @@
|
|
|
<div slot="header">
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 全部准入范围</span>
|
|
<span><i class="icon icon-table2"></i> 全部准入范围</span>
|
|
|
<!-- <el-button style="float: right; padding: 3px 0" type="text"
|
|
<!-- <el-button style="float: right; padding: 3px 0" type="text"
|
|
|
- v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button> -->
|
|
|
|
|
|
|
+ v-if="currentStatus <= 0 && currentStatus != -5" @click="addSortData()">添加</el-button> -->
|
|
|
</div>
|
|
</div>
|
|
|
<el-table :data="entityList" size="mini" border style="width: 100%" height="calc(100vh - 428px)" @sort-change="orderby">
|
|
<el-table :data="entityList" size="mini" border style="width: 100%" height="calc(100vh - 428px)" @sort-change="orderby">
|
|
|
<!-- <el-table-column label="操作" min-width="100" align="center" fixed>
|
|
<!-- <el-table-column label="操作" min-width="100" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
|
|
<el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
|
|
|
- :disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
|
|
|
|
|
|
|
+ :disabled="scope.row.Type == '1'||currentStatus > 0">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
|
<!-- <el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column> -->
|
|
<!-- <el-table-column prop="SortFlag" label="分类标记" v-if="1==2" show-overflow-tooltip></el-table-column> -->
|
|
@@ -560,13 +560,13 @@
|
|
|
<div slot="header">
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 新增准入范围</span>
|
|
<span><i class="icon icon-table2"></i> 新增准入范围</span>
|
|
|
<el-button style="float: right; padding: 3px 0" type="text"
|
|
<el-button style="float: right; padding: 3px 0" type="text"
|
|
|
- v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData()">添加</el-button>
|
|
|
|
|
|
|
+ v-if="currentStatus <= 0 && currentStatus != -5" @click="addSortData()">添加</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
<el-table :data="myentityList" size="mini" border style="width: 100%" height="calc(100vh - 428px)" @sort-change="orderby">
|
|
<el-table :data="myentityList" size="mini" border style="width: 100%" height="calc(100vh - 428px)" @sort-change="orderby">
|
|
|
<el-table-column label="操作" min-width="100" align="center" fixed>
|
|
<el-table-column label="操作" min-width="100" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
|
|
<el-button type="primary" title="删除" size="mini" plain @click="deleteData(scope.row.Id)"
|
|
|
- :disabled="scope.row.Type == '1'||formData.Status > 0">删除</el-button>
|
|
|
|
|
|
|
+ :disabled="scope.row.Type == '1'||currentStatus > 0">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
@@ -582,10 +582,10 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<div style="float: right; margin: 20px;">
|
|
<div style="float: right; margin: 20px;">
|
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="separateUnitSubmitClick"
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="separateUnitSubmitClick"
|
|
|
- v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交审核
|
|
|
|
|
|
|
+ v-if="formData.Id !='' && currentStatus <= 0 && currentStatus != -5 && IsCompanyUser == 0">提交审核
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="comSubmitToSeparateUnitClick"
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="comSubmitToSeparateUnitClick"
|
|
|
- v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 1">提交
|
|
|
|
|
|
|
+ v-if="formData.Id !='' && currentStatus <= 0 && currentStatus != -5 && IsCompanyUser == 1">提交
|
|
|
</el-button>
|
|
</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
@@ -1007,6 +1007,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return {
|
|
return {
|
|
|
|
|
+ currentStatus: 0,
|
|
|
lostTableDataInfo: '',
|
|
lostTableDataInfo: '',
|
|
|
lostTableData: [],
|
|
lostTableData: [],
|
|
|
firOptions: [],
|
|
firOptions: [],
|
|
@@ -2409,6 +2410,7 @@
|
|
|
let _this = this
|
|
let _this = this
|
|
|
api2.getEntityById(_this.Id, _this.$axios).then(res => {
|
|
api2.getEntityById(_this.Id, _this.$axios).then(res => {
|
|
|
_this.formData = res.data
|
|
_this.formData = res.data
|
|
|
|
|
+ _this.currentStatus = parseInt(res.data.Status) || 0
|
|
|
this.entrydetail.process = this.formData.ProcessKey
|
|
this.entrydetail.process = this.formData.ProcessKey
|
|
|
this.entrydetail.business = _this.Id
|
|
this.entrydetail.business = _this.Id
|
|
|
this.entrydetail.instance = this.formData.WorkFlowId
|
|
this.entrydetail.instance = this.formData.WorkFlowId
|