资质证书审核问题

ywj_dev
anthonywj 2 years ago
parent a9d69d54b8
commit 951e3f00af

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

Loading…
Cancel
Save