|
|
@@ -49,7 +49,7 @@
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>供方基本信息表</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini" @click="saveinfochange" v-if="Status <= 0" :loading="saveLoading">保存</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="saveinfochange()" v-if="Status <= 0" :loading="saveLoading">保存基本信息</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
<!--<goods-info ref="GoodsInfo" :formData.sync="formData" :dictData.sync="dictData" :authUser="authUser"-->
|
|
|
@@ -3074,35 +3074,46 @@
|
|
|
this.saveLoading = false
|
|
|
return resolve(false)
|
|
|
} else {
|
|
|
- // 检查是否缺少资质
|
|
|
- let fileType = {
|
|
|
- Type: this.formData.OperType === '制造商' ? 1 : 2,
|
|
|
- SupplierId: this.formData.Id,
|
|
|
- CertId: this.certId,
|
|
|
- Grade: this.formData.Grade,
|
|
|
- Table: 3
|
|
|
- }
|
|
|
- api.checkSupplierFileNew(fileType, this.$axios).then(res => {
|
|
|
- if (res.data.code === 1) {
|
|
|
- this.addInfoChangeItemCh(val)
|
|
|
- this.saveLoading = false
|
|
|
- return resolve(true)
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- duration: 10000,
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- this.saveLoading = false
|
|
|
- return resolve(false)
|
|
|
+ this.addInfoChangeItemCh(val)
|
|
|
+ console.log(val, 'val')
|
|
|
+ if (val) {
|
|
|
+ // 检查是否缺少资质
|
|
|
+ let fileType = {
|
|
|
+ Type: this.formData.OperType === '制造商' ? 1 : 2,
|
|
|
+ SupplierId: this.formData.Id,
|
|
|
+ CertId: this.certId,
|
|
|
+ Grade: this.formData.Grade,
|
|
|
+ Table: 3
|
|
|
}
|
|
|
- })
|
|
|
+ api.checkSupplierFileNew(fileType, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 1) {
|
|
|
+ this.saveLoading = false
|
|
|
+ return resolve(true)
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.saveLoading = false
|
|
|
+ return resolve(false)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.saveLoading = false
|
|
|
+ return resolve(true)
|
|
|
+ }
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
this.saveLoading = false
|
|
|
return resolve(false)
|
|
|
})
|
|
|
} else {
|
|
|
+ this.$message({
|
|
|
+ duration: 10000,
|
|
|
+ type: 'warning',
|
|
|
+ message: '请完善企业基本信息!'
|
|
|
+ })
|
|
|
this.saveLoading = false
|
|
|
return resolve(false)
|
|
|
}
|