(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[23],{"143f":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"optics_style"},[e("div",{staticClass:"header"},[e("Header",{attrs:{options:t.batchNumList,model:t.currentBatchNum},on:{"update:model":function(a){t.currentBatchNum=a}}})],1),e("q-tabs",{staticClass:"text-grey common-tab",staticStyle:{"background-color":"#fff"},attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:t.tabForm.data,callback:function(a){t.$set(t.tabForm,"data",a)},expression:"tabForm.data"}},t._l(t.tabForm.tabList,(function(t,a){return e("q-tab",{key:a,attrs:{name:t.name,label:t.label,ripple:!1}})})),1),e("div",{staticClass:"content"},[e("optics-title",{attrs:{title:"数据明细"}}),e("div",{staticClass:"body_style common-form"},[e("div",{staticClass:"mg-t-15"},[e("optics-title-crad",{attrs:{"show-card-form":"","card-form":t.cardForm}})],1),e("div",{staticClass:"mg-t-15"},[e(t.componentList,{tag:"component"})],1)]),e("div",{staticClass:"btn"},[e("common-btngroup",{on:{submit:t.check,cancel:t.cancel}})],1)],1)],1)},o=[],s=e("30d4"),n=e("dd67"),r=e("3ec8"),c=e("9d48"),d=e("0418"),l=e("2691"),m=e("2a19"),p={name:"zhijianpanding",components:{OpticsTitleCrad:s["default"],CommonBtngroup:n["default"],jingbangpanding:r["default"],jingdingpanding:c["default"],Header:d["a"],opticsTitle:l["default"]},data(){return{tabForm:{data:1,tabList:[{name:1,label:"晶锭判定",comName:"jingdingpanding"},{name:2,label:"晶棒判定",comName:"jingbangpanding"}]},cardForm:[{name:"app:icon-chanpinbianma",title:"晶锭编码",value:"",bColor:"#1890FF"},{name:"app:icon-zhongliang",title:"晶锭重量",value:"",bColor:"#FA8C16"},{name:"app:icon-gongxu",title:"当前工序",value:"",bColor:"#55C169"}],batchNumList:[],currentBatchNum:null}},methods:{getList(){this.$http({url:`/pad/common/queryNos?stepId=${this.stepId}`,method:"get"}).then((t=>{this.batchNumList=t.result}))},getBaseData(){this.$http({url:"/pad/common/getStationInfo",method:"get",params:{no:this.currentBatchNum,processId:this.processId,stepId:this.stepId}}).then((t=>{this.cardForm.forEach((a=>{switch(a.title){case"晶锭编码":a.value=t.result.ingotNo;break;case"晶锭重量":a.value=t.result.ingotWeight;break;case"当前工序":a.value=t.result.ingotWeight;break}})),this.prodId=t.result.prodId}))},cancel(){let{cardForm:t,form:a,disable:e}=this.$options.data();this.form=a,this.disable=e,this.cardForm=t},check(){if(!this.currentBatchNum)return void m["a"].create({type:"negative",position:"top",message:"请选择编号"});let t=[],a=JSON.parse(JSON.stringify(this.form.data));t=Object.keys(a).filter((t=>{if(a[t]=a[t]?a[t].toString():"","remarks"!==t)return!a[t].length})),t.length?m["a"].create({type:"negative",position:"top",message:"请将数据填写完整"}):this.submit()},submit(){this.$http({url:"/pad/lineCutOrientation/passStation",method:"post",data:{...this.form.data,stepId:this.stepId,prodId:this.prodId}}).then((t=>{m["a"].create({type:"positive",position:"top",message:"操作成功"}),this.getList(),this.currentBatchNum=null,this.cancel()}))}},computed:{componentList(){return this.tabForm.tabList[this.tabForm.data-1].comName}},watch:{"tabForm.data":{handler(t){1==t?this.cardForm=this.$options.data().cardForm:2==t&&this.cardForm.splice(1,0,{name:"app:icon-ziduanbianhao",title:"晶棒编号",value:"",bColor:"#FA8C16"},{name:"app:icon-changdu",title:"长度",value:"",bColor:"#55C169"})},immediate:!0,deep:!0}},created(){this.getList()}},u=p,h=(e("fd86"),e("2877")),b=e("429b"),g=e("7460"),f=e("eebe"),v=e.n(f),C=Object(h["a"])(u,i,o,!1,null,"26a09816",null);a["default"]=C.exports;v()(C,"components",{QTabs:b["a"],QTab:g["a"]})},"73c3":function(t,a,e){},fd86:function(t,a,e){"use strict";e("73c3")}}]);