|
|
|
@ -57,8 +57,6 @@
|
|
|
|
|
|
|
|
|
|
<el-form :model="currentSup" :rules="formRules" ref="dataForm">
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
<span>证书名称:</span>
|
|
|
|
@ -77,7 +75,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="require">
|
|
|
|
|
<el-form-item prop="need">
|
|
|
|
|
<el-select v-model="currentSup.need">
|
|
|
|
|
<el-option label="是" :value=true></el-option>
|
|
|
|
|
<el-option label="否" :value=false></el-option>
|
|
|
|
@ -132,17 +130,17 @@
|
|
|
|
|
<el-table v-loading="loading" :data="manufacturerList" style="width: 100%">
|
|
|
|
|
<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="require" s>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ enableMap[scope.row.need] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="产地" prop="foreign">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ foreignMap[scope.row.foreign] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="说明" prop="remark"></el-table-column>
|
|
|
|
|
<el-table-column label="状态" prop="require">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ statusMap[scope.row.need] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" fixed="right" width="200">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -177,10 +175,8 @@
|
|
|
|
|
v-if="addManufacturerDialogVisible"
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
<el-form :model="currentManufacturer" :rules="formRules" ref="dataForm">
|
|
|
|
|
<el-form :model="currentManufacturer" :rules="formManufactureRules" ref="dataManufacturerForm">
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
<span>证书名称:</span>
|
|
|
|
@ -188,38 +184,38 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="name">
|
|
|
|
|
<el-input v-model="currentManufacturer.name" auto-complete="off"></el-input>
|
|
|
|
|
<el-input v-model="currentManufacturer.name" auto-complete="off"
|
|
|
|
|
:disabled="currentManufacturer.need"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
<span>是否必传:</span>
|
|
|
|
|
<span>产地:</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="require">
|
|
|
|
|
<el-select v-model="currentManufacturer.need" style="width: 100%">
|
|
|
|
|
<el-option label="是" :value=true></el-option>
|
|
|
|
|
<el-option label="否" :value=false></el-option>
|
|
|
|
|
<el-form-item prop="foreign">
|
|
|
|
|
<el-select v-model="currentManufacturer.foreign" style="width: 100%"
|
|
|
|
|
:disabled="currentManufacturer.need">
|
|
|
|
|
<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="3">
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
<span>产地:</span>
|
|
|
|
|
<span>是否禁用:</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="require">
|
|
|
|
|
<el-select v-model="currentManufacturer.foreign" style="width: 100%">
|
|
|
|
|
<el-option label="全部" value="1"></el-option>
|
|
|
|
|
<el-option label="国外" value="2"></el-option>
|
|
|
|
|
<el-option label="国内" value="3"></el-option>
|
|
|
|
|
<el-form-item prop="need">
|
|
|
|
|
<el-select v-model="currentManufacturer.need" style="width: 100%">
|
|
|
|
|
<el-option label="是" :value=true></el-option>
|
|
|
|
|
<el-option label="否" :value=false></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -270,11 +266,6 @@
|
|
|
|
|
<el-table v-loading="productLoading" :data="productList" style="width: 100%">
|
|
|
|
|
<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="need" s>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ enableMap[scope.row.need] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="产地" prop="imports">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ foreignMap[scope.row.imports] }}</span>
|
|
|
|
@ -284,7 +275,16 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="产品类别" prop="hchzsb">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="分类编码" prop="flbm">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="说明" prop="remark"></el-table-column>
|
|
|
|
|
<el-table-column label="状态" prop="need" s>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ statusMap[scope.row.need] }}</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" fixed="right" width="200">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -337,14 +337,14 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
<span>是否必传:</span>
|
|
|
|
|
<span>是否禁用:</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="require">
|
|
|
|
|
<el-form-item prop="need">
|
|
|
|
|
<el-select v-model="currentProduct.need" style="width: 100%">
|
|
|
|
|
<el-option label="是" :value=true></el-option>
|
|
|
|
|
<el-option label="否" :value=false></el-option>
|
|
|
|
|
<el-option label="禁用" :value=true></el-option>
|
|
|
|
|
<el-option label="启用" :value=false></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -414,6 +414,42 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
<el-col :span="3">
|
|
|
|
|
<div class="ao-text">
|
|
|
|
|
<span>分类编码:</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item prop="require">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="currentProduct.flbmList"
|
|
|
|
|
filterable
|
|
|
|
|
remote
|
|
|
|
|
clearable="true"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
multiple
|
|
|
|
|
reserve-keyword
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
:remote-method="classifySearch"
|
|
|
|
|
:loading="loading"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in classifyList"
|
|
|
|
|
:key="item.code"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.code">
|
|
|
|
|
<span>{{ item.code }}</span>
|
|
|
|
|
<span>{{ item.name }}</span>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div style="text-align: center">
|
|
|
|
|
<el-button type="primary" size="small" icon="search" @click="onAddProductSubmit"
|
|
|
|
@ -434,6 +470,7 @@
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {filterCertSet, delSupCertCert, modifySupCertSet, addSupCertSet} from "@/api/purchase/supCertSet";
|
|
|
|
|
import {filterClassify} from "@/api/purchase/classifyCode"
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
@ -459,14 +496,27 @@ export default {
|
|
|
|
|
update: "编辑配送企业资质设置",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**--------生产企业资质设置 0--------------*/
|
|
|
|
|
formRules: {
|
|
|
|
|
name: [
|
|
|
|
|
{required: true, message: "证书名称", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
need: [
|
|
|
|
|
{required: true, message: "请选择是否必传", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**--------生产企业资质设置 --------------*/
|
|
|
|
|
manufacturerList: [],
|
|
|
|
|
manufacturerQuery: {
|
|
|
|
|
type: 2,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 20
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
statusMap: {
|
|
|
|
|
true: "禁用",
|
|
|
|
|
false: "启用",
|
|
|
|
|
},
|
|
|
|
|
foreignMap: {
|
|
|
|
|
"1": "全部",
|
|
|
|
|
"2": "国外",
|
|
|
|
@ -483,6 +533,15 @@ export default {
|
|
|
|
|
update: "编辑生产企业资质设置",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
formManufactureRules: {
|
|
|
|
|
name: [
|
|
|
|
|
{required: true, message: "证书名称", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
need: [
|
|
|
|
|
{required: true, message: "请选择是否禁用", trigger: "blur"}
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**--------产品资质设置--------------*/
|
|
|
|
|
productList: [],
|
|
|
|
|
productQuery: {
|
|
|
|
@ -500,6 +559,9 @@ export default {
|
|
|
|
|
update: "编辑产品资质设置",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
classifyList: [],
|
|
|
|
|
mutilData: [],
|
|
|
|
|
inputKey: null,
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
@ -524,6 +586,8 @@ export default {
|
|
|
|
|
this.total = 0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleEdit(row) {
|
|
|
|
|
this.formName = "update";
|
|
|
|
|
this.currentSup = row;
|
|
|
|
@ -547,6 +611,8 @@ export default {
|
|
|
|
|
this.addDialogVisible = true;
|
|
|
|
|
},
|
|
|
|
|
onAddSubmit() {
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.addDialogVisible = false;
|
|
|
|
|
if (this.formName == "add") {
|
|
|
|
|
this.currentSup.type = 1;
|
|
|
|
@ -566,6 +632,10 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
cancelDialog() {
|
|
|
|
|
this.addDialogVisible = false;
|
|
|
|
@ -612,6 +682,9 @@ export default {
|
|
|
|
|
this.addManufacturerDialogVisible = true;
|
|
|
|
|
},
|
|
|
|
|
onAddManufacturerSubmit() {
|
|
|
|
|
|
|
|
|
|
this.$refs["dataManufacturerForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.addManufacturerDialogVisible = false;
|
|
|
|
|
if (this.formManufacturerName == "add") {
|
|
|
|
|
this.currentManufacturer.type = 2;
|
|
|
|
@ -631,6 +704,9 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -654,6 +730,8 @@ export default {
|
|
|
|
|
this.currentProduct = row;
|
|
|
|
|
this.addProductDialogVisible = true;
|
|
|
|
|
|
|
|
|
|
this.classifyFirstSearch(this.currentProduct.flbm);
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
handleProductDel(row) {
|
|
|
|
|
let query = {
|
|
|
|
@ -672,6 +750,8 @@ export default {
|
|
|
|
|
this.addProductDialogVisible = true;
|
|
|
|
|
},
|
|
|
|
|
onAddProductSubmit() {
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.addProductDialogVisible = false;
|
|
|
|
|
if (this.formProductName == "add") {
|
|
|
|
|
this.currentProduct.type = 3;
|
|
|
|
@ -691,9 +771,41 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classifyFirstSearch(key) {
|
|
|
|
|
let query = {
|
|
|
|
|
inFilter: key,
|
|
|
|
|
}
|
|
|
|
|
filterClassify(query)
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.classifyList = response.data.list || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.classifyList = [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
classifySearch(key) {
|
|
|
|
|
let query = {
|
|
|
|
|
key: key,
|
|
|
|
|
}
|
|
|
|
|
filterClassify(query)
|
|
|
|
|
.then(response => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.classifyList = response.data.list || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
this.classifyList = [];
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
filters: {},
|
|
|
|
|
mounted() {
|
|
|
|
|