(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[20],{"0517":function(e,t,a){},2596:function(e,t,a){"use strict";a("0517")},ed51:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"optics_style"},[a("div",{staticClass:"header"},[a("Header",{attrs:{options:e.batchNumList,model:e.currentBatchNum},on:{"update:model":function(t){e.currentBatchNum=t}}})],1),a("div",{staticClass:"content"},[a("optics-title",{attrs:{title:"数据明细"}}),a("div",{staticClass:"body_style common-form"},[a("div",{staticClass:"mg-t-15"},[a("optics-title-crad",{attrs:{showCardForm:"",cardForm:e.cardForm}})],1),a("div",{staticClass:"mg-t-15"},[a("optics-title-crad",{attrs:{title:"数据录入"}},[a("template",{slot:"body"},[a("q-form",{ref:"form"},[a("q-table",{staticStyle:{"min-height":"calc( 100vh - 470px )"},attrs:{data:e.tableForm.tableData,columns:e.tableForm.columns,"table-header-style":{backgroundColor:"#F8FBFF"},"hide-bottom":"",pagination:e.tableForm.pagination,"row-key":"name",flat:!0},scopedSlots:e._u([{key:"body",fn:function(t){return a("q-tr",{attrs:{props:t}},[a("q-td",{key:"stickNo",attrs:{dense:"",filled:"",width:"150px",props:t}},[e._v("\n "+e._s(t.row.stickNo)+"\n ")]),a("q-td",{key:"deviceId",attrs:{width:"300px",props:t}},[a("q-select",{attrs:{placeholder:"请选择","emit-value":"","map-options":"","option-label":function(e){return e.deviceNo},"option-value":function(e){return e.id},options:e.DeviceIdList,filled:"",disable:e.disable,dense:"",rules:[function(e){return""!==e}]},model:{value:t.row.deviceId,callback:function(a){e.$set(t.row,"deviceId",a)},expression:"props.row.deviceId"}})],1),a("q-td",{key:"beforeCutLength",attrs:{width:"300px",props:t}},[a("q-input",{attrs:{disable:e.disable,filled:"",dense:"",type:"number",rules:[function(e){return""!==e}]},model:{value:t.row.beforeCutLength,callback:function(a){e.$set(t.row,"beforeCutLength",e._n(a))},expression:"props.row.beforeCutLength"}})],1),a("q-td",{key:"afterCutLength",attrs:{width:"300px",props:t}},[a("q-input",{attrs:{disable:e.disable,filled:"",dense:"",type:"number",rules:[function(e){return""!==e}]},model:{value:t.row.afterCutLength,callback:function(a){e.$set(t.row,"afterCutLength",e._n(a))},expression:"props.row.afterCutLength"}})],1),a("q-td",{key:"diameter",attrs:{width:"300px",props:t}},[a("q-input",{attrs:{disable:e.disable,filled:"",dense:"",type:"number",rules:[function(e){return""!==e}]},model:{value:t.row.diameter,callback:function(a){e.$set(t.row,"diameter",e._n(a))},expression:"props.row.diameter"}})],1),a("q-td",{key:"longTruncationFlag",attrs:{width:"300px",props:t}},[a("q-select",{attrs:{placeholder:"请选择",filled:"",dense:"","emit-value":"","map-options":"",disable:e.disable,options:e.isOptions,rules:[function(e){return""!==e}]},model:{value:t.row.longTruncationFlag,callback:function(a){e.$set(t.row,"longTruncationFlag",a)},expression:"props.row.longTruncationFlag"}})],1),a("q-td",{key:"checkResult",attrs:{width:"300px",props:t}},[a("q-select",{attrs:{placeholder:"请选择",options:e.checkList,"emit-value":"","map-options":"",filled:"",disable:e.disable,dense:"",rules:[function(e){return e&&e.length>0}]},model:{value:t.row.checkResult,callback:function(a){e.$set(t.row,"checkResult",a)},expression:"props.row.checkResult"}})],1),a("q-td",{key:"remarks",attrs:{width:"300px",props:t}},[a("q-input",{attrs:{disable:e.disable,filled:"",dense:""},model:{value:t.row.remarks,callback:function(a){e.$set(t.row,"remarks",a)},expression:"props.row.remarks"}})],1)],1)}}])})],1)],1)],2)],1)]),a("div",{staticClass:"btn"},[a("common-btngroup",{on:{submit:e.check,cancel:e.cancel}})],1)],1)])},i=[],o=a("dd67"),r=a("30d4"),l=a("0418"),n=a("2691"),c=a("2a19"),d={name:"xiabang",components:{CommonBtngroup:o["default"],OpticsTitleCrad:r["default"],Header:l["a"],opticsTitle:n["default"]},data(){return{cardForm:[{name:"app:icon-chanpinbianma",title:"晶锭编码",value:"",bColor:"#1890FF"},{name:"app:icon-yongtu",title:"晶锭用途(寸/砖)",value:"",bColor:"#55C169"},{name:"app:icon-zhongliang",title:"晶锭重量",value:"",bColor:"#FA8C16"}],tableForm:{tableData:[],columns:[{name:"stickNo",label:"晶棒编号",align:"left"},{name:"deviceId",label:"设备编号",align:"left"},{name:"beforeCutLength",label:"预掏长度(mm)",align:"left"},{name:"afterCutLength",label:"实掏长度(mm)",align:"left"},{name:"diameter",label:"直径",align:"left"},{name:"longTruncationFlag",label:"是否过长截断",align:"left"},{name:"checkResult",label:"检验结果",align:"left"},{name:"remarks",label:"备注",align:"left"}],pagination:{page:1,rowsPerPage:1e3}},checkList:[{label:"S",value:"S"},{label:"A",value:"A"},{label:"B",value:"B"},{label:"C",value:"C"},{label:"OK",value:"OK"}],isOptions:[{label:"是",value:1},{label:"否",value:0}],processId:3,stepId:3,prodId:0,batchNumList:[],DeviceIdList:[],currentBatchNum:"",disable:!0}},watch:{currentBatchNum:{handler(e){let{cardForm:t,tableForm:a,disable:s}=this.$options.data();this.tableForm=a,this.disable=s,this.$nextTick((()=>{this.$refs.form.resetValidation()})),e?(this.getBaseData(),this.disable=!1):(this.cardForm=t,this.disable=!0)},immediate:!0,deep:!0}},methods:{getList(){this.$http({url:`/pad/common/queryNos?stepId=${this.stepId}`,method:"get"}).then((e=>{this.batchNumList=e.result}))},focusDeviceId(){this.$http({url:"/device/queryDropBox",method:"get",params:{stepId:this.stepId}}).then((e=>{this.DeviceIdList=e.result}))},getBaseData(){this.$http({url:"/pad/common/getStationInfo",method:"get",params:{no:this.currentBatchNum,processId:this.processId,stepId:this.stepId}}).then((e=>{this.cardForm.forEach((t=>{switch(t.title){case"晶锭编码":t.value=e.result.ingotNo||"";break;case"晶锭用途(寸/砖)":t.value=e.result.size+"寸"||!1;break;case"晶锭重量":t.value=e.result.ingotWeight||"";break}})),this.prodId=e.result.prodId,this.tableForm.tableData=[],e.result.outStickInfoDTOList.forEach((e=>{this.tableForm.tableData.push({stickId:e.stickId,stickNo:e.stickNo,deviceId:e.deviceId||"",beforeCutLength:e.beforeCutLength||"",afterCutLength:e.afterCutLength||"",diameter:e.diameter||"",longTruncationFlag:e.longTruncationFlag||0,checkResult:e.checkResult||"OK",remarks:e.remarks})}))}))},check(){this.currentBatchNum?this.$refs.form.validate().then((e=>{e?this.$confirm({title:"提示",message:"是否过站?",btn:{okText:"确定",cancelText:"取消"}}).then((()=>{this.submit()})).catch((()=>{})):c["a"].create({type:"negative",position:"top",message:"请将数据填写完整"})})):c["a"].create({type:"negative",position:"top",message:"请选择编号"})},submit(){this.$http({url:"/pad/lowerRod/passStation",method:"post",data:{passStickInfoDTOList:this.tableForm.tableData,prodId:this.prodId,stepId:this.stepId}}).then((e=>{c["a"].create({type:"positive",position:"top",message:"操作成功"}),this.getList(),this.currentBatchNum="",this.cancel()}))},cancel(){let{cardForm:e,tableForm:t,disable:a,currentBatchNum:s}=this.$options.data();this.tableForm=t,this.currentBatchNum=s,this.disable=a,this.cardForm=e}},created(){this.getList(),this.focusDeviceId()}},u=d,p=(a("2596"),a("2877")),m=a("0378"),h=a("eaac"),b=a("bd08"),f=a("db86"),g=a("ddd8"),v=a("27f9"),k=a("eebe"),w=a.n(k),F=Object(p["a"])(u,s,i,!1,null,"3ce338e0",null);t["default"]=F.exports;w()(F,"components",{QForm:m["a"],QTable:h["a"],QTr:b["a"],QTd:f["a"],QSelect:g["a"],QInput:v["a"]})}}]);