var ledgercomponent = { template:`
搜索 新增(无附件) 新增(有附件) 删除
产品型号及名称: 检验依据:
          检验时间: 检验节点:
             检验员:     审核员:
             序列号:
检验内容
   检验项目 检验要求 检验方法 结果 不合格序列号
   {{item.inspection_items_cn}} {{item.inspection_rs_cn}} {{item.inspection_scheme_cn}}
最终结果: 不合格处理方式:
取 消 确 定
序列号:{{item.id}} 结果:
保存
产品型号及名称: 检验依据:
          检验时间: 检验节点:
             检验员:     审核员:
             序列号:
检验内容
   检验项目 检验要求 检验方法 结果 判定 附件
   {{item.inspection_items_cn}} {{item.inspection_rs_cn}} {{item.inspection_scheme_cn}} 上传附件
最终结果: 不合格处理方式:
取 消 确 定
`, data(){ // 获取当前屏幕的分辨率 let screenW = window.screen.width; let screenH = window.screen.height; console.log("screen width:",screenW); console.log("screen height:",screenH); return { tHeight:screenH*0.7, tableData: [], currentPage: 1, pagesize:50, recordTotal:0, p_name_v:'', g_p_name:'', dialogVisible:false, multipleSelection: [], importdialogVisible:false, fileListUpload:[], importTableData:[], disabled:false, if_show_process:false, percent_len:0, interval:'', if_show_process1:false, fileList:[], rules: { p_name_cn: [ { required: true, message: '产品型号及名称(中)不可为空', trigger: 'blur' } ], p_name_en: [ { required: true, message: '产品型号及名称(英)不可为空', trigger: 'blur' } ], p_ibase_cn: [ { required: true, message: '检验依据(中)不可为空', trigger: 'blur' } ], p_ibase_en: [ { required: true, message: '检验依据(英)不可为空', trigger: 'blur' } ], }, p_name_options:[], template_data:{}, dialogVisible1:false, show_ok:true, role_id:0, drawer:false, direction: 'rtl', drawer_result:false, ins_result:[], } }, mounted() { this.$data.role_id = localStorage.getItem("level"); this.get_ledger(); }, methods: { save_ins_result(){ if(this.$data.ins_result.length>0){ console.log(this.$data.ins_result); var result ="" for(var i=0;i0){ this.$data.drawer_result=true; } }, beforeAvatarUpload(file) { var isJPG =false console.log(file.type); if(file.type === 'image/jpeg' ||file.type === 'image/png'||file.type === 'image/jpg'||file.type=="text/plain"){ isJPG=true } if (!isJPG) { this.$message.error('上传头像图片只能是 JPG/JPEG/PNG/TXT 格式!'); } return isJPG; }, celldblclick_1(row, column, cell, event){ this.show_report_dialog(row); }, show_report_dialog(row){ if(this.$data.role_id =="3"){ this.$data.show_ok=true; }else{ this.$data.show_ok=false; } this.$data.template_data=JSON.parse(row.data); this.$data.g_p_name=this.$data.template_data.p_name_cn if(this.$data.role_id =="3"){ this.$data.template_data.Auditor=localStorage.getItem("online_user"); } this.get_p_names(); this.$data.dialogVisible1=true; }, upload_param(item){ /*console.log("file:",this.fileList) if (this.fileList.length>0){ item.attach_file= this.fileList[0].name; this.fileList=[]; console.log(item); }*/ console.log("---",item); return { inspection_items_cn: item.inspection_items_cn, inspection_rs_cn: item.inspection_rs_cn, } }, upload_file_error(response, file, fileList){ console.log(response) this.$message({ message: "上传失败", type: "error", duration: 1500 }); }, upload_file_success(response, file, fileList){ console.log(response); for(var i=0;i