修改bug

tagView
zhengmingliang 2 years ago
parent 3425fb6655
commit 2df6975db9

@ -106,6 +106,7 @@
size="small" size="small"
placeholder="请输入内容" placeholder="请输入内容"
v-model="inputQuery.contacts" v-model="inputQuery.contacts"
@blur="inputQuery.contacts=$event.target.value.trim()"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -633,8 +634,10 @@ export default {
this.certQuery.customerId = this.inputQuery.customerId; this.certQuery.customerId = this.inputQuery.customerId;
filterCompanyCert(this.certQuery) filterCompanyCert(this.certQuery)
.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;
}) })
.catch(() => { .catch(() => {
this.certLoading = false; this.certLoading = false;

@ -280,7 +280,7 @@ export default {
}, },
methods: { methods: {
saveOrder(status) { saveOrder(status) {
debugger
this.$refs["dataForm"].validate(valid => { this.$refs["dataForm"].validate(valid => {
if (valid) { if (valid) {
if (this.codeArray.length < 1) { if (this.codeArray.length < 1) {

@ -304,7 +304,7 @@ export default {
}, },
methods: { methods: {
saveOrder(status) { saveOrder(status) {
debugger
this.$refs["dataForm"].validate(valid => { this.$refs["dataForm"].validate(valid => {
if (valid) { if (valid) {
if (this.codeArray.length < 1) { if (this.codeArray.length < 1) {

@ -385,7 +385,7 @@
<el-row> <el-row>
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>产品类型</span> <span>器械类别</span>
</div> </div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">

@ -33,7 +33,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="产品类型" prop="cplx" v-if="certType == 3"> <el-table-column label="器械类别" prop="cplx" v-if="certType == 3">
</el-table-column> </el-table-column>
<el-table-column label="产品类别" prop="hchzsb" v-if="certType == 3"> <el-table-column label="产品类别" prop="hchzsb" v-if="certType == 3">
</el-table-column> </el-table-column>

@ -97,7 +97,7 @@
:total="total" :total="total"
></el-pagination> ></el-pagination>
<el-dialog <el-dialog
title="生产企业信息编辑" :title="tital"
:visible.sync="addInfoVisible" :visible.sync="addInfoVisible"
width="80%" width="80%"
:close-on-click-modal="false" :close-on-click-modal="false"
@ -282,6 +282,7 @@ export default {
add: "新增生产企业资质信息", add: "新增生产企业资质信息",
update: "编辑生产企业资质信息", update: "编辑生产企业资质信息",
}, },
tital:"",
currentManufacturer: null, currentManufacturer: null,
@ -387,9 +388,11 @@ export default {
this.enterpriseId = row.id; this.enterpriseId = row.id;
this.editType = 1; this.editType = 1;
this.inputQuery = row; this.inputQuery = row;
this.tital="编辑生产企业资质信息";
} else { } else {
this.enterpriseId = null; this.enterpriseId = null;
this.editType = 0; this.editType = 0;
this.tital="新增生产企业资质信息";
this.inputQuery = { this.inputQuery = {
auditStatus: 0 auditStatus: 0
}; };

@ -502,10 +502,14 @@ export default {
, ,
getCompanyCertList() { getCompanyCertList() {
this.certLoading = true; this.certLoading = true;
this.certQuery.customerId = this.inputQuery.customerId; this.certQuery.customerId = this.inputQuery.customerId;
this.certQuery.type = 1; this.certQuery.type = 1;
this.certQuery.auditStatus=20; if(this.editType==2){
this.certQuery.auditStatus=25;
}
filterCompanyCert(this.certQuery) filterCompanyCert(this.certQuery)
.then((response) => { .then((response) => {
this.certLoading = false; this.certLoading = false;

@ -492,6 +492,9 @@ export default {
this.getCompanyCertList(); this.getCompanyCertList();
}, },
getCompanyCertList() { getCompanyCertList() {
if(this.editType!=2 && this.editType!=0){
this.certQuery.auditStatus = 20;
}
this.certLoading = true; this.certLoading = true;
this.certQuery.type = 2; this.certQuery.type = 2;
filterCompanyCert(this.certQuery) filterCompanyCert(this.certQuery)

@ -382,7 +382,7 @@ export default {
required: true, required: true,
message: "请输入企业名称", message: "请输入企业名称",
trigger: "blur" trigger: "blur"
} },
], ],
creditCode: [ creditCode: [
{ {
@ -511,7 +511,7 @@ export default {
}, },
methods: { methods: {
onModifySubmit(type) { onModifySubmit(type) {
// //
let query = { let query = {
customerId: this.$store.getters.customerId customerId: this.$store.getters.customerId
@ -528,6 +528,7 @@ export default {
}); });
}, },
addOrModifyCompany (type){ addOrModifyCompany (type){
this.$refs["inputQuery"].validate(valid => { this.$refs["inputQuery"].validate(valid => {
if (valid) { if (valid) {
@ -660,14 +661,23 @@ export default {
}, },
handleChange(value) { handleChange(value) {
this.inputQuery.placeArea = if(value.length==3){
this.inputQuery.placeArea =
CodeToText[value[0]] + CodeToText[value[1]] + CodeToText[value[2]]; CodeToText[value[0]] + CodeToText[value[1]] + CodeToText[value[2]];
console.log(this.inputQuery.placeArea) }else if(value.length==2){
this.inputQuery.placeArea =
CodeToText[value[0]] + CodeToText[value[1]];
}
this.inputQuery.placeAreaCode = value.toString(); this.inputQuery.placeAreaCode = value.toString();
}, },
handleChange2(value) { handleChange2(value) {
this.inputQuery.productionArea = if(value.length==3){
this.inputQuery.productionArea =
CodeToText[value[0]] + CodeToText[value[1]] + CodeToText[value[2]]; CodeToText[value[0]] + CodeToText[value[1]] + CodeToText[value[2]];
}else if(value.length==2){
this.inputQuery.productionArea =
CodeToText[value[0]] + CodeToText[value[1]];
}
this.inputQuery.productionAreaCode = value.toString(); this.inputQuery.productionAreaCode = value.toString();
}, },
uploadHandleRemove(file, fileList) { uploadHandleRemove(file, fileList) {

@ -440,6 +440,10 @@ export default {
if (this.editType == 0) { if (this.editType == 0) {
this.inputQuery.productId = getUUID(""); this.inputQuery.productId = getUUID("");
} else { } else {
if(this.editType!=2 && this.editType!=0){
this.certQuery.auditStatus = 20;
}
this.getCompanyCertList(); this.getCompanyCertList();
this.pmQuery.customerId = this.inputQuery.customerId; this.pmQuery.customerId = this.inputQuery.customerId;
this.findPMMethod(); this.findPMMethod();

@ -603,6 +603,10 @@ export default {
}); });
}, },
saveOrder() { saveOrder() {
if (this.total < 1) {
this.$message.error('未添加条码');
return;
}
if (this.formData.action == null || this.formData.action == '') { if (this.formData.action == null || this.formData.action == '') {
this.$message.error('未选择扫码单据类型'); this.$message.error('未选择扫码单据类型');
return return

Loading…
Cancel
Save