资质证书审核问题

ywj_dev
anthonywj 2 years ago
parent a9d69d54b8
commit 951e3f00af

@ -205,7 +205,7 @@
</el-form-item>
</el-col>
<el-col :span="10" class="el-col">
<el-form-item label="规格型号:" label-width="150px" prop="specification" >
<el-form-item label="规格型号:" label-width="150px" prop="specification">
<el-input
size="small"
type="textarea"
@ -250,7 +250,8 @@
</el-button
>
</div>
<el-table v-loading="certLoading" :data="certList" style="width: 100%;margin-top: 40px" border highlight-current-row>
<el-table v-loading="certLoading" :data="certList" style="width: 100%;margin-top: 40px" border
highlight-current-row>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="证书名称" prop="name"></el-table-column>
<el-table-column label="证书编号" prop="name"></el-table-column>
@ -375,7 +376,11 @@
</template>
<script>
import {getRegistrationInfo, addOrModifyRegistration, bindProduct} from "../../../api/purchase/suppliersRegistrationBasic";
import {
getRegistrationInfo,
addOrModifyRegistration,
bindProduct
} from "../../../api/purchase/suppliersRegistrationBasic";
import {regionDataPlus} from "element-china-area-data";
import draggable from "vuedraggable";
import {getSupComapnys} from "@/api/purchase/supCompany";
@ -419,7 +424,7 @@ export default {
},
loading: false,
classesDisplay: false,
cuStatus:0,
cuStatus: 0,
selectedOptions: [],
selectedOptions2: [],
options: regionDataPlus,
@ -434,13 +439,13 @@ export default {
],
manufacturerIdFk: [
{
required: true,
message: "请选择生产企业",
trigger: "change"
}
],
// manufacturerIdFk: [
// {
// required: true,
// message: "",
// trigger: "change"
// }
// ],
recordCode: [
{
@ -477,13 +482,13 @@ export default {
trigger: "change"
}
],
productDirectoryCode: [
{
required: true,
message: "请输入器械目录分类编码",
trigger: "change"
}
],
// productDirectoryCode: [
// {
// required: true,
// message: "",
// trigger: "change"
// }
// ],
specification: [
{
required: true,
@ -540,7 +545,7 @@ export default {
this.inputQuery.companyName = this.currentManufacturer.companyName;
}
this.cuStatus=this.inputQuery.cuStatus;
this.cuStatus = this.inputQuery.cuStatus;
this.manufacturerId = this.inputQuery.manufacturerId
this.productId = this.inputQuery.productId
this.findMethod();
@ -549,12 +554,12 @@ export default {
},
components: {
draggable, companyAddCert, supCertSetSelectDialog,companyProducts
draggable, companyAddCert, supCertSetSelectDialog, companyProducts
},
methods: {
onModifySubmit(val) {
if(val!=0){
if(this.cuStatus!=1){
if (val != 0) {
if (this.cuStatus != 1) {
this.$message.error("生产企业未通过审核不能提交!");
return;
}
@ -565,6 +570,7 @@ export default {
let formData = JSON.parse(JSON.stringify(this.inputQuery));
formData.manufacturerIdFk = this.manufacturerId;
formData.auditStatus = val;
this.loading = true;
let urlName = this.editType == 0 ? 'add' : 'update';
@ -642,7 +648,7 @@ export default {
relIdFk: val,
manufacturerId: this.inputQuery.manufacturerIdFk,
customerId: this.inputQuery.customerId,
companyName:this.inputQuery.companyName,
companyName: this.inputQuery.companyName,
auditStatus: this.inputQuery.auditStatus
};
@ -719,7 +725,7 @@ export default {
.then((response) => {
this.certLoading = false;
this.certList = response.data.list || [];
this.certTotal=response.data.total
this.certTotal = response.data.total
})
.catch(() => {
this.certLoading = false;

Loading…
Cancel
Save