(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47a76b28"],{7036:function(e,a,t){"use strict";t("aded")},aded:function(e,a,t){},ba48:function(e,a,t){"use strict";t.r(a);var i=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"reprint-barcode"},[t("a-card",{ref:"cards",style:{height:e.height+"px"}},[t("a-row",{staticStyle:{padding:"10px 0"}},[t("a-form-model",{attrs:{layout:"inline","label-col":e.labelCol,"wrapper-col":e.wrapperCol}},[t("a-form-item",{attrs:{label:"补打条码号"}},[t("a-input",{attrs:{placeholder:"补打条码号"},on:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.supStartserial.apply(null,arguments)}},model:{value:e.serial.FirstBarCode,callback:function(a){e.$set(e.serial,"FirstBarCode",a)},expression:"serial.FirstBarCode"}})],1),t("a-form-item",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{label:"截止条码号"}},[t("a-input",{attrs:{placeholder:"截至条码号"},model:{value:e.serial.LastBarCode,callback:function(a){e.$set(e.serial,"LastBarCode",a)},expression:"serial.LastBarCode"}})],1),t("a-form-item",{attrs:{label:"打印模板"}},[t("a-select",{staticStyle:{width:"180px"},attrs:{placeholder:"请选择打印模板"},model:{value:e.serial.MarkLabelName,callback:function(a){e.$set(e.serial,"MarkLabelName",a)},expression:"serial.MarkLabelName"}},e._l(e.printTemplate,(function(a){return t("a-select-option",{key:a.marklabel_id,attrs:{value:a.marklabel_id}},[e._v(e._s(a.marklabel_desc))])})),1)],1),t("a-form-item",{attrs:{label:"补打原因"}},[t("a-input",{attrs:{placeholder:"补打原因"},model:{value:e.serial.ReprintReason,callback:function(a){e.$set(e.serial,"ReprintReason",a)},expression:"serial.ReprintReason"}})],1)],1)],1),t("div",{staticClass:"operation-bar"},[t("div",{staticClass:"center buttons"},e._l(e.functionButton,(function(a,i){return t("a-button",{key:i,attrs:{type:"primary",loading:a.loading},on:{click:a.function}},[e._v(e._s(a.value))])})),1)]),t("div",{staticStyle:{"margin-top":"24px"}},[t("fieldset",[t("legend",[e._v("补打条码信息：")]),t("a-table",{staticClass:"main-table",attrs:{columns:e.columns,"data-source":e.cloneData,scroll:{x:"calc(700px + 50%)",y:e.windowHeight-300},loading:e.tableLoading,bordered:"",pagination:!1,size:"small",rowKey:"serial_nbr"}})],1)])],1)],1)},n=[],r=(t("ac1f"),t("841c"),t("4de4"),t("d3b7"),t("b775")),s={name:"ReprintBarcode",components:{},data:function(){return{labelCol:{span:7},wrapperCol:{span:16},windowHeight:document.documentElement.clientHeight,height:"auto",serial:{FirstBarCode:"",LastBarCode:"",MarkLabelName:"serialNumber",RepeatTime:null,Suffix:"",ReprintReason:"双玻条码补打"},printTemplate:[],cloneData:[],functionButton:[{value:"查询",function:this.search},{value:"补打",function:this.supStartserial}],columns:[{title:"组件序列号",align:"center",dataIndex:"serial_nbr",flex:"left"},{title:"工单号",align:"center",dataIndex:"workorder",flex:"left"},{title:"生码时间",align:"center",dataIndex:"create_date"},{title:"当前站点",align:"center",dataIndex:"current_workstation"},{title:"待过站",align:"center",dataIndex:"next_workstation"},{title:"组件状态",align:"center",dataIndex:"serial_statusCode"}],tableLoading:!1,selectedRowKeys:[],rowKeys:[]}},created:function(){this.getPrintTemplate()},activated:function(){},mounted:function(){},methods:{search:function(){var e=this,a=this;r["b"].post("/api/barcode/search",{startBarCode:a.serial.FirstBarCode,endBarCode:a.serial.FirstBarCode,CurrentWks:""}).then((function(t){1===t.status?a.cloneData=t.data.list:e.$notification.warning({message:t.msg})}))},getPrintTemplate:function(){var e=this,a=this;r["b"].get("/api/sysSetting/getMarkLabelList").then((function(t){if(1===t.status){var i=t.data.filter((function(e){return"P01"===e.station_type}));a.printTemplate=i}else e.$notification.warning({message:t.msg})}))},supStartserial:function(){var e=this,a=this;""===a.serial.FirstBarCode?this.$notification.warning({message:lang.brackets2(30056,"请填写起始条码")}):""===a.serial.MarkLabelName?this.$notification.warning({message:lang.brackets2(20109,"请选择打印模板")}):r["b"].post("/api/createBarCode/reprintBarCode",{FirstBarCode:a.serial.FirstBarCode,LastBarCode:a.serial.FirstBarCode,MarkLabelName:a.serial.MarkLabelName,RepeatTime:1,ReprintReason:a.serial.ReprintReason,Suffix:a.serial.Suffix}).then((function(t){if(1===t.status){a.cloneData=[],a.serial.FirstBarCode="",a.serial.LastBarCode="",a.serial.MarkLabelName="serialNumber",a.serial.RepeatTime=1,a.serial.ReprintReason="双玻条码补打",a.serial.Suffix="";var i={templateName:t.data.templateEnglishName,code:t.data.printText},n=JSON.stringify(i);ws.send(n),e.$nextTick((function(){ws.onmessage=function(e){"已调用打印"===e.data?a.$notification.success({message:lang.brackets2(20112,"打印成功")}):a.$notification.warning({message:lang.brackets2(20113,"打印失败")+e.data})}}))}else e.$notification.warning({message:t.msg})})).catch((function(e){})).finally((function(){}))}}},l=s,o=(t("7036"),t("2877")),c=Object(o["a"])(l,i,n,!1,null,"559492ae",null);a["default"]=c.exports}}]);