|
|
@@ -24,13 +24,13 @@
|
|
|
</el-popover>
|
|
|
<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" v-if="formData.Id !='' && formData.Status <= 0" @click="saveinfochange">保存
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" v-if="formData.Id !='' && currentStatus <= 0" @click="saveinfochange">保存
|
|
|
</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="separateUnitSubmitClick"
|
|
|
- v-if="formData.Id !='' && formData.Status <= 0 && IsCompanyUser == 0">提交审核
|
|
|
+ v-if="formData.Id !='' && currentStatus <= 0 && IsCompanyUser == 0">提交审核
|
|
|
</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 8px" @click="comSubmitToSeparateUnitClick"
|
|
|
- v-if="formData.Id !='' && formData.Status <= 0 && IsCompanyUser == 1">提交
|
|
|
+ v-if="formData.Id !='' && currentStatus <= 0 && IsCompanyUser == 1">提交
|
|
|
</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplierappend/goodslist'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
|
|
|
@@ -444,7 +444,7 @@
|
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 增项信息</span>
|
|
|
<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>
|
|
|
<el-form label-width="150px" ref="EntityForm" :rules="appendRules" :model="formData">
|
|
|
<el-row>
|
|
|
@@ -461,7 +461,7 @@
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="准入方式">
|
|
|
<el-select ref="inStyle" v-model="formData.InStyle"
|
|
|
- :disabled="this.formData.Status > '0'"
|
|
|
+ :disabled="currentStatus > 0"
|
|
|
placeholder="请选择"
|
|
|
style="width: 100%">
|
|
|
<el-option v-for="item in InOptions"
|
|
|
@@ -474,7 +474,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="备注" prop="Remark">
|
|
|
- <el-input :disabled="formData.Status>0" type="textarea" v-model="formData.Remark" placeholder="请输入">
|
|
|
+ <el-input :disabled="currentStatus>0" type="textarea" v-model="formData.Remark" placeholder="请输入">
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -484,15 +484,15 @@
|
|
|
<el-card class="box-card" style="margin-top: 10px;">
|
|
|
<div slot="header" class="clearfix">
|
|
|
<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>
|
|
|
<el-table size="mini" highlight-current-row :data="subfileList1" border>
|
|
|
<el-table-column label="操作" width="150" align="center" fixed>
|
|
|
<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 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>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -550,7 +550,7 @@
|
|
|
</div>
|
|
|
</viewer>
|
|
|
</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>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
@@ -564,7 +564,7 @@
|
|
|
</a>
|
|
|
</div>
|
|
|
</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>
|
|
|
</el-col>
|
|
|
</el-row> -->
|
|
|
@@ -589,7 +589,7 @@
|
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 全部准入范围</span>
|
|
|
<!-- <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>
|
|
|
<el-table :data="entityList" size="mini" border style="width: 100%;" height="calc(100vh - 428px)" @sort-change="orderby">
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
@@ -625,9 +625,9 @@
|
|
|
<div slot="header">
|
|
|
<span><i class="icon icon-table2"></i> 新增准入范围</span>
|
|
|
<!--<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>-->
|
|
|
<el-button style="float: right; padding: 3px 0" type="text"
|
|
|
- v-if="formData.Status <= 0 && formData.Status != -5" @click="addSortData1()">添加</el-button>
|
|
|
+ v-if="currentStatus <= 0 && currentStatus != -5" @click="addSortData1()">添加</el-button>
|
|
|
</div>
|
|
|
<el-table :data="myentityList"
|
|
|
v-loading="tableloading"
|
|
|
@@ -636,7 +636,7 @@
|
|
|
<el-table-column label="操作" min-width="100" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
<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>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="Code" label="分类编码" show-overflow-tooltip></el-table-column>
|
|
|
@@ -667,10 +667,10 @@
|
|
|
</el-row>
|
|
|
<div style="float: right; margin: 20px;">
|
|
|
<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 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>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
@@ -1271,7 +1271,7 @@
|
|
|
}
|
|
|
}
|
|
|
return {
|
|
|
- // 456
|
|
|
+ currentStatus: 0,
|
|
|
firOptions: [],
|
|
|
btnloading: false,
|
|
|
fileList: [],
|
|
|
@@ -2134,7 +2134,7 @@
|
|
|
this.getCodeById(item[item.length - 1]) // 根据分类Id获取Code
|
|
|
},
|
|
|
type_change (val) {
|
|
|
- if (this.formData.Status <= 0 && this.formData.Status != -5) {
|
|
|
+ if (this.currentStatus <= 0 && this.currentStatus != -5) {
|
|
|
if (val.row.IsManufacturer == 2) {
|
|
|
this.tableloading = true
|
|
|
let IsManufacturer = 2
|
|
|
@@ -2236,6 +2236,7 @@
|
|
|
let _this = this
|
|
|
api2.getEntityById(_this.Id, _this.$axios).then(res => {
|
|
|
_this.formData = res.data
|
|
|
+ _this.currentStatus = parseInt(res.data.Status) || 0
|
|
|
this.entrydetail.process = this.formData.ProcessKey
|
|
|
this.entrydetail.business = _this.Id
|
|
|
this.entrydetail.instance = this.formData.WorkFlowId
|