|
|
|
@ -209,12 +209,11 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
draggable,
|
|
|
|
|
ElImageViewer
|
|
|
|
|
// draggable,
|
|
|
|
|
// ElImageViewer
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
submitUpload() {
|
|
|
|
|
|
|
|
|
|
this.$refs["dataForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.formData.auditStatus == 1) {
|
|
|
|
@ -239,22 +238,25 @@ export default {
|
|
|
|
|
onConfirmSubmit(val) {
|
|
|
|
|
this.formData.repeatUpload = val;
|
|
|
|
|
console.log(this.formData)
|
|
|
|
|
if (this.$isNotBlank(this.formData.filePath)) {
|
|
|
|
|
if (this.$refs.upload.uploadFiles.length > 0) {
|
|
|
|
|
this.$refs.upload.submit();
|
|
|
|
|
this.onSubmit();
|
|
|
|
|
} else {
|
|
|
|
|
this.onSubmit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
console.log(this.$refs.upload.uploadFiles.length);
|
|
|
|
|
if (this.$refs.upload.uploadFiles.length > 0) {
|
|
|
|
|
this.$refs.upload.submit();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.warning(`请选择文件`);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.onSubmit();
|
|
|
|
|
// this.formData.repeatUpload = val;
|
|
|
|
|
// console.log(this.formData)
|
|
|
|
|
// if (this.$isNotBlank(this.formData.filePath)) {
|
|
|
|
|
// if (this.$refs.upload.uploadFiles.length > 0) {
|
|
|
|
|
// this.$refs.upload.submit();
|
|
|
|
|
// this.onSubmit();
|
|
|
|
|
// } else {
|
|
|
|
|
// this.onSubmit();
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// } else {
|
|
|
|
|
// console.log(this.$refs.upload.uploadFiles.length);
|
|
|
|
|
// if (this.$refs.upload.uploadFiles.length > 0) {
|
|
|
|
|
// this.$refs.upload.submit();
|
|
|
|
|
// } else {
|
|
|
|
|
// this.$message.warning(`请选择文件`);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -271,9 +273,11 @@ export default {
|
|
|
|
|
this.formData.manufacturerIdFk = this.inputQuery.manufacturerIdFk;
|
|
|
|
|
this.formData.productIdFk = this.inputQuery.productId;
|
|
|
|
|
}
|
|
|
|
|
if (this.formData.auditStatus != 1)
|
|
|
|
|
if (this.formData.auditStatus != 1){
|
|
|
|
|
this.formData.auditStatus = "6";
|
|
|
|
|
this.formData.filePath = this.$refs.editorRef.html
|
|
|
|
|
this.formData.filePath = this.$refs.editorRef.html
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.editTye == 1) {
|
|
|
|
|
insertCompanyCert(this.formData).then(response => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|