|
|
@@ -15,6 +15,7 @@
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" @click="editIsRestrict('1')" v-if="formData.IsRestrict == '0' && showBtn">增项限制已关闭</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" @click="showApplyTime" v-if="formData.InFlag != '3' && showBtn ">延长有效期</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" @click="reInput" v-if="formData.InFlag == '3'">确认重新准入</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-right: 5px" @click="updateInFlag" v-if="formData.InFlag == '1' || formData.InFlag == '2'">修改准入标识</el-button>
|
|
|
<el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-right: 5px" v-if="this,formData.Status == '7'" @click="confirm">确认入库</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplierstore/techlist'">
|
|
|
@@ -247,6 +248,33 @@
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="修改准入标识" :visible.sync="dialogInFlag" width="400px">
|
|
|
+ <el-form label-width="100px" ref="EntityForm" :model="formData">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="准入标识" prop="InFlag">
|
|
|
+ <el-select style="width:100%" v-model="formData.InFlag" placeholder="准入标识">
|
|
|
+ <el-option label="准入" value="1"></el-option>
|
|
|
+ <el-option label="暂停" value="2"></el-option>
|
|
|
+ <el-option label="取消" value="3"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="备注">
|
|
|
+ <el-input v-model="formData.Remark1" type="textarea" placeholder="请输入备注内容"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span style="float: right;margin-top:-10px;">
|
|
|
+ <el-button size="small" @click="dialogInFlag = false">取 消</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="updateIn" :loading="updateLoading">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ <br>
|
|
|
+ </el-dialog>
|
|
|
<choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
|
|
|
:visible="chooseAuditorVisible"></choose-auditor>
|
|
|
|
|
|
@@ -305,6 +333,8 @@
|
|
|
showBtn: true,
|
|
|
innerVisible: false,
|
|
|
dialogApplyTime: false,
|
|
|
+ dialogInFlag: false,
|
|
|
+ updateLoading: false,
|
|
|
delete_flat: true,
|
|
|
activeName: '1',
|
|
|
chooseAuditorVisible: false,
|
|
|
@@ -499,6 +529,32 @@
|
|
|
// this.isAccess()
|
|
|
},
|
|
|
methods: {
|
|
|
+ updateInFlag () {
|
|
|
+ this.dialogInFlag = true
|
|
|
+ },
|
|
|
+ updateIn () {
|
|
|
+ this.updateLoading = true
|
|
|
+ let params = {
|
|
|
+ InFlag : this.formData.InFlag,
|
|
|
+ Remark : this.formData.Remark1
|
|
|
+ }
|
|
|
+ apiCert.updateInFlag(this.certId, params, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.$router.push('/oilsupplier/supplierstore/techlist')
|
|
|
+ this.dialogInFlag = false
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.dialogInFlag = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
editIsRestrict (val) {
|
|
|
let params = {
|
|
|
IsRestrict: val
|