|
|
@@ -395,7 +395,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="准入方式">
|
|
|
- <el-select ref="SpecType" v-model="formData.InStyle" :disabled="this.formData.Status > '0'&&!appendStatus"
|
|
|
+ <el-select ref="SpecType" v-model="formData.InStyle" :disabled="this.formData.Status > '0'"
|
|
|
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'"
|
|
|
:value="item.Value">
|
|
|
@@ -1940,6 +1940,7 @@
|
|
|
if (!checkRes) {
|
|
|
return false
|
|
|
}
|
|
|
+ this.saveEntity('directSubmit')
|
|
|
this.btnloading = true
|
|
|
// this.auditform.FirstAuditName = this.UnitOrg
|
|
|
// this.auditform.CertId = this.formData.Id
|
|
|
@@ -2437,10 +2438,12 @@
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ if (val !== 1) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -2695,14 +2698,14 @@
|
|
|
},
|
|
|
|
|
|
// 保存增项信息
|
|
|
- saveEntity () {
|
|
|
+ saveEntity (val) {
|
|
|
let _this = this
|
|
|
this.$refs['EntityForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (_this.editFlag == '1' && _this.Id !== '') {
|
|
|
- _this.updateData()
|
|
|
+ _this.updateData(val)
|
|
|
} else {
|
|
|
- _this.addAppend()
|
|
|
+ _this.addAppend(val)
|
|
|
}
|
|
|
} else {
|
|
|
return false
|
|
|
@@ -2711,21 +2714,25 @@
|
|
|
},
|
|
|
|
|
|
// 更新增项信息
|
|
|
- updateData () {
|
|
|
+ updateData (val) {
|
|
|
this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
|
let _this = this
|
|
|
api2.updateEntity(_this.Id, _this.formData, _this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.getEntityById()
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ if (val !== 'directSubmit') {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ if (val !== 'directSubmit') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
@@ -2772,7 +2779,7 @@
|
|
|
},
|
|
|
|
|
|
// 添加增项信息
|
|
|
- addAppend () {
|
|
|
+ addAppend (val) {
|
|
|
this.formData.AppendType = '02'
|
|
|
this.formData.SupplierName = this.$refs.suppselect.selectedLabel + ''
|
|
|
this.$axios.post('/suppliercertappend/addappend/', this.formData)
|
|
|
@@ -2782,15 +2789,19 @@
|
|
|
this.dialogFormData.SupplierCertAppendId = res.data.info // 接收插入数据后返回的Id
|
|
|
this.Id = res.data.info
|
|
|
this.getEntityById()
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ if (val !== 'directSubmit') {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
+ if (val !== 'directSubmit') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.catch(err => {
|