|
|
@@ -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>
|
|
|
<router-link :to="'/oilsupplier/supplierstore/goodslist'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回</el-button>
|
|
|
@@ -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>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -303,6 +331,8 @@
|
|
|
showBtn: true,
|
|
|
innerVisible: false,
|
|
|
dialogApplyTime: false,
|
|
|
+ dialogInFlag: false,
|
|
|
+ updateLoading: false,
|
|
|
delete_flat: true,
|
|
|
activeName: '1',
|
|
|
chooseAuditorVisible: false,
|
|
|
@@ -577,6 +607,32 @@
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ 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/goodslist')
|
|
|
+ this.dialogInFlag = false
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.dialogInFlag = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
Jurisdiction () {
|
|
|
api.getJurisdiction(this.$axios).then(res => {
|
|
|
if (!res.data.item) {
|