1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
|
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[5984],{5984:function(t,e,a){a.r(e),a.d(e,{default:function(){return Z}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-box"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick,"select-changed":t.selectType}}),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}}),e("pagination",{attrs:{limit:t.listQuery.size,total:t.total}}),t.centervisible?e("sampling-add",{ref:"samplingList",on:{successSubmit:t.getList}}):t._e(),t.centervisible2?e("standar-setting",{ref:"standardList",on:{successSubmit:t.getList}}):t._e()],1)},l=[],o=a(475),i=function(){var t=this,e=t._self._c;return e("el-drawer",{staticClass:"samplingAdd",attrs:{title:"抽检录入",visible:t.visible,size:"70%"},on:{"update:visible":function(e){t.visible=e}}},[e("el-form",{ref:"form",staticClass:"form-box",attrs:{rules:t.rules,"label-width":"80px",model:t.form}},[e("el-row",{staticClass:"first-line",attrs:{gutter:20}},[e("el-col",{attrs:{span:8}},[e("el-form-item",{attrs:{label:"抽检人",prop:"detector"}},[e("el-input",{model:{value:t.form.detector,callback:function(e){t.$set(t.form,"detector",e)},expression:"form.detector"}})],1)],1),e("el-col",{attrs:{span:8}},[e("el-form-item",{attrs:{label:"玻璃ID",prop:"glassId"}},[e("el-input",{model:{value:t.form.glassId,callback:function(e){t.$set(t.form,"glassId",e)},expression:"form.glassId"}})],1)],1),e("el-col",{attrs:{span:8}},[e("el-form-item",{attrs:{label:"抽检时间",prop:"detectTime"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择抽检时间"},model:{value:t.form.detectTime,callback:function(e){t.$set(t.form,"detectTime",e)},expression:"form.detectTime"}})],1)],1)],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("div",{staticStyle:{display:"inline-block","margin-right":"10px"}},[e("el-form-item",{attrs:{label:"型号",prop:"model"}},[e("el-radio-group",{on:{change:t.selectStandard},model:{value:t.form.model,callback:function(e){t.$set(t.form,"model",e)},expression:"form.model"}},t._l(t.productModelVoList,(function(a){return e("el-radio-button",{key:a.dataCode,attrs:{label:a.dataName}},[t._v(t._s(a.dataName))])})),1)],1)],1),e("div",{staticStyle:{display:"inline-block"}},[e("el-form-item",{attrs:{label:"检验项目",prop:"detectItem"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"检验项目"},on:{change:t.selectItem},model:{value:t.form.detectItem,callback:function(e){t.$set(t.form,"detectItem",e)},expression:"form.detectItem"}},t._l(t.testItemList,(function(t){return e("el-option",{key:t.dataCode,attrs:{label:t.dataName,value:t.dataName}})})),1)],1)],1)])],1),e("el-row",[e("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:24}},[e("base-table",{attrs:{"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH,"highlight-current-row":""},on:{emitFun:t.inputChange}})],1)],1),e("el-row",{staticClass:"bottom"},[e("el-col",{staticStyle:{"text-align":"right"},attrs:{span:24}},[e("el-form-item",[e("el-button",{on:{click:t.closeForm}},[t._v("取消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("保存")])],1)],1)],1)],1)],1)},s=[],n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tableInner"},[e("el-input",{on:{blur:t.changeInput},model:{value:t.list[t.itemProp],callback:function(e){t.$set(t.list,t.itemProp,e)},expression:"list[itemProp]"}})],1)},d=[],c={name:"InputArea",props:{injectData:{type:Object,default:()=>({})},itemProp:{type:String}},data(){return{list:this.injectData}},methods:{changeInput(){console.log(this.list),this.$emit("emitData",this.list)}}},m=c,u=a(1001),p=(0,u.Z)(m,n,d,!1,null,null,null),f=p.exports,h=a(2334),b=a(381),g=a.n(b);const y=[{prop:"detectItem",label:"检验项目"},{prop:"detectPoint",label:"检测点"},{prop:"detectStandard",label:"检验标准"},{prop:"value",label:"实测值",subcomponent:f},{prop:"result
|