1 line
4.2 KiB
JavaScript
1 line
4.2 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[12],{2556:function(t,a,e){"use strict";e.r(a);var s=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":"#ffffff"},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,{ref:t.componentList,tag:"component",attrs:{"prod-id":t.prodId,disable:t.disable,"stick-id":t.stickId}})],1)]),e("div",{staticClass:"btn"},[e("common-btngroup",{on:{submit:t.check,cancel:t.cancel}})],1)],1)],1)},i=[],o=e("30d4"),c=e("dd67"),r=e("7fbb"),n=e("bc43"),d=e("9c7c"),l=e("506d"),m=e("84f8"),u=e("0418"),h=e("2691"),p=e("2a19"),b={name:"jingbangjianyan",components:{Header:u["a"],opticsTitle:h["default"],OpticsTitleCrad:o["default"],CommonBtngroup:c["default"],chengping:r["default"],jingjie:n["default"],chuizhidu:d["default"],Axiang:l["default"],Cxiang:m["default"]},data(){return{tabForm:{data:1,tabList:[{name:1,label:"晶界",comName:"jingjie",stepId:13},{name:2,label:"垂直度",comName:"chuizhidu",stepId:17},{name:3,label:"A向",comName:"Axiang",stepId:18},{name:4,label:"C向",comName:"Cxiang",stepId:19},{name:5,label:"成品",comName:"chengping",stepId:20}]},cardForm:[{name:"app:icon-chanpinbianma",title:"晶棒编号",value:"",bColor:"#1890ff"},{name:"app:icon-ziduanbianhao",title:"晶棒序列号",value:"",bColor:"#fa8c16"},{name:"app:icon-changdu",title:"长度",value:"",bColor:"#55c169"},{name:"app:icon-jingbangtuihuo",title:"直径",value:"",bColor:"#55c169"}],processId:13,stepId:13,prodId:null,stickId:null,batchNumList:[],currentBatchNum:"",disable:!0}},watch:{currentBatchNum(t){t&&this.getBaseData();let{cardForm:a,disable:e}=this.$options.data();this.disable=e,t?(this.disable=!1,this.$refs[this.componentList].getValue&&this.$refs[this.componentList].getValue()):(this.cardForm=a,this.resetForm())},"tabForm.data"(t){this.currentBatchNum="",this.cardForm=this.$options.data().cardForm,this.tabForm.tabList.forEach((a=>{a.name===t&&(this.stepId=a.stepId)})),this.stepId&&this.getList()}},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.stickNumber||"";break;case"晶棒编号":a.value=t.result.stickNo||"";break;case"长度":a.value=t.result.length||"";break;case"直径":a.value=t.result.diameter||"";break}})),this.prodId=t.result.prodId,this.stickId=t.result.stickId}))},cancel(){let{cardForm:t,disable:a,currentBatchNum:e}=this.$options.data();this.disable=a,this.cardForm=t,this.currentBatchNum=e},check(){this.currentBatchNum?this.$refs[this.componentList].submitForm().then((()=>{p["a"].create({type:"positive",position:"top",message:"操作成功"}),this.getList(),this.currentBatchNum=null,this.cancel(),this.resetForm()})):p["a"].create({type:"negative",position:"top",message:"请选择编号"})},resetForm(){this.$nextTick((()=>{this.$refs[this.componentList].resetForm()}))}},computed:{componentList(){return this.tabForm.tabList[this.tabForm.data-1].comName}},created(){this.getList()}},f=b,g=(e("4a3d"),e("2877")),I=e("429b"),F=e("7460"),N
|