(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[26],{"887a":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daojiao"},[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("q-tabs",{staticClass:"text-grey common-tab",attrs:{"narrow-indicator":"",align:"left","active-color":"dark","indicator-color":"primary"},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[a("q-tab",{attrs:{ripple:!1,name:"daojiao",label:"倒角"}})],1),a("div",{staticClass:"pd-20 common-box"},[a("common-card",{attrs:{list:e.currentBatchNum?[e.currentBatchNum]:[]},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return[a("tr",[a("td",{staticClass:"label"},[e._v("客户")]),a("td",[e._v(e._s(i.customerName))]),a("td",{staticClass:"label"},[e._v("档位")]),a("td",[e._v(e._s(i.gear))]),a("td",{staticClass:"label"},[e._v("流入数量")]),a("td",[e._v(e._s(i.inflowNum))])]),a("tr",[a("td",{staticClass:"label"},[e._v("流入时间")]),a("td",[e._v(e._s(i.inflowTime))]),a("td",{staticClass:"label"},[e._v("上站过站人")]),a("td",[e._v(e._s(i.inflowUser))])])]}}])}),a("div",{staticClass:"common-form mg-b-20"},[a("div",{staticClass:"common-title"},[e._v("\n 过程录入\n ")]),a("div",{staticClass:"shadow-box pd-20"},[a("common-title",{attrs:{color:"green",icon:"icon-a-shuju1"}},[a("template",{slot:"right-tool"},[a("q-icon",{staticClass:"right_tool_icon icon-small",attrs:{name:e.isDisabled?"app:icon-a-tubiaosuoding":"app:icon-a-tubiaosysbeifen7"},on:{click:function(t){e.isDisabled=!e.isDisabled}}})],1)],2),a("div",{staticClass:"form_content"},[a("q-form",{ref:"myForm",staticClass:"q-gutter-md mg-t-20",on:{submit:e.onSubmit,reset:e.onReset}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label",class:{disable:e.noBatchNum}},[e._v("\n 设备编号\n ")]),a("select-fill",{attrs:{model:e.daojiaoForm.deviceId,useInput:!0,optionValue:"id",optionLabel:"deviceNum",options:e.deviceIdList,disable:e.noBatchNum,emitValue:!0,mapOptions:!0},on:{"update:model":function(t){return e.$set(e.daojiaoForm,"deviceId",t)},focus:e.getDeviceList}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[e._v("\n 流出片数\n ")]),a("q-input",{attrs:{filled:"",dense:"",type:"number",disable:""},model:{value:e.daojiaoForm.outflowNum,callback:function(t){e.$set(e.daojiaoForm,"outflowNum",t)},expression:"daojiaoForm.outflowNum"}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label",class:{disable:e.noBatchNum}},[e._v("\n 备注\n ")]),a("q-input",{attrs:{dense:"",type:"text",disable:e.noBatchNum},model:{value:e.daojiaoForm.remarks,callback:function(t){e.$set(e.daojiaoForm,"remarks",t)},expression:"daojiaoForm.remarks"}})],1)]),a("q-separator"),a("q-form",{ref:"daojiaoSetForm"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:e.isDisabled||e.deviceIdEmpty}},[e._v("\n L砂轮厂家\n ")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:"",disable:e.isDisabled||e.deviceIdEmpty,rules:[function(e){return e&&e.length>0}]},model:{value:e.daojiaoSetForm.lWheelManufacturers,callback:function(t){e.$set(e.daojiaoSetForm,"lWheelManufacturers",t)},expression:"daojiaoSetForm.lWheelManufacturers"}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:e.isDisabled||e.deviceIdEmpty}},[e._v("\n L砂轮标识\n ")]),a("select-fill",{attrs:{model:e.daojiaoSetForm.lWheelIdentification,useInput:!0,optionValue:"fixtureNum",optionLabel:"fixtureNum",options:e.WheelIdentificationList,disable:e.isDisabled||e.deviceIdEmpty,emitValue:"",mapOptions:"",rules:[function(e){return e&&e.length>0}]},on:{"update:model":function(t){return e.$set(e.daojiaoSetForm,"lWheelIdentification",t)},focus:e.getWheelIdentificationList}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:e.isDisabled||e.deviceIdEmpty}},[e._v("\n L沟槽寿命设定\n ")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:"",disable:e.isDisabled||e.deviceIdEmpty,rules:[function(e){return e&&e.length>0}]},model:{value:e.daojiaoSetForm.lGrooveLife,callback:function(t){e.$set(e.daojiaoSetForm,"lGrooveLife",t)},expression:"daojiaoSetForm.lGrooveLife"}})],1)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:e.isDisabled||e.deviceIdEmpty}},[e._v("\n R砂轮厂家\n ")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:"",disable:e.isDisabled||e.deviceIdEmpty,rules:[function(e){return e&&e.length>0}]},model:{value:e.daojiaoSetForm.rWheelManufacturers,callback:function(t){e.$set(e.daojiaoSetForm,"rWheelManufacturers",t)},expression:"daojiaoSetForm.rWheelManufacturers"}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:e.isDisabled||e.deviceIdEmpty}},[e._v("\n R砂轮标识\n ")]),a("select-fill",{attrs:{model:e.daojiaoSetForm.rWheelIdentification,useInput:!0,optionValue:"fixtureNum",optionLabel:"fixtureNum",options:e.WheelIdentificationList,disable:e.isDisabled||e.deviceIdEmpty,emitValue:"",mapOptions:"",rules:[function(e){return e&&e.length>0}]},on:{"update:model":function(t){return e.$set(e.daojiaoSetForm,"rWheelIdentification",t)},focus:e.getWheelIdentificationList}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:e.isDisabled||e.deviceIdEmpty}},[e._v("\n R沟槽寿命设定\n ")]),a("q-input",{attrs:{filled:"",dense:"",disable:e.isDisabled||e.deviceIdEmpty,placeholder:"请输入",rules:[function(e){return e&&e.length>0}]},model:{value:e.daojiaoSetForm.rGrooveLife,callback:function(t){e.$set(e.daojiaoSetForm,"rGrooveLife",t)},expression:"daojiaoSetForm.rGrooveLife"}})],1)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-4 pd-r-20"},[a("div",{staticClass:"label radio",class:{disable:e.isDisabled||e.deviceIdEmpty}},[e._v("\n 设定A直径\n ")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:"",disable:e.isDisabled||e.deviceIdEmpty,rules:[function(e){return e&&e.length>0}]},model:{value:e.daojiaoSetForm.SetDiameterByA,callback:function(t){e.$set(e.daojiaoSetForm,"SetDiameterByA",t)},expression:"daojiaoSetForm.SetDiameterByA"}})],1)])]),a("q-separator"),a("common-title",{attrs:{needIcon:!1,title:"L沟槽序号:1(已累计:0)"}},[a("template",{slot:"right-tool"},[a("div",{staticClass:"pd-r-10"},[a("q-icon",{staticClass:"right_tool_icon icon-small",attrs:{name:"app:icon-a-tubiaosysbeifen4"}}),a("span",{staticClass:"small-font"},[e._v("切换")])],1)])],2),a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label"},[e._v("\n 本次倒角片数\n ")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[e._v("\n 初始上面幅\n ")]),a("q-input",{attrs:{filled:"",dense:"",type:"number"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[e._v("\n 初始下面幅\n ")]),a("q-select",{attrs:{filled:"",dense:"",options:e.cardList},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-4 pd-r-20"},[a("div",{staticClass:"label"},[e._v("\n 结束上面幅\n ")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("div",{staticClass:"col-4 pd-r-20"},[a("div",{staticClass:"label disable"},[e._v("\n 结束下面幅\n ")]),a("q-input",{attrs:{filled:"",dense:"",type:"number"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1)]),a("q-separator"),a("common-title",{attrs:{needIcon:!1,title:"R沟槽序号:1(已累计:0)"}},[a("template",{slot:"right-tool"},[a("div",{staticClass:"pd-r-10"},[a("q-icon",{staticClass:"right_tool_icon icon-small",attrs:{name:"app:icon-a-tubiaosysbeifen4"}}),a("span",{staticClass:"small-font"},[e._v("切换")])],1)])],2),a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label"},[e._v("\n 本次倒角片数\n ")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[e._v("\n 初始上面幅\n ")]),a("q-input",{attrs:{filled:"",dense:"",type:"number"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label disable"},[e._v("\n 初始下面幅\n ")]),a("q-select",{attrs:{filled:"",dense:"",options:e.cardList},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-4 pd-r-20"},[a("div",{staticClass:"label"},[e._v("\n 结束上面幅\n ")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("div",{staticClass:"col-4 pd-r-20"},[a("div",{staticClass:"label disable"},[e._v("\n 结束下面幅\n ")]),a("q-input",{attrs:{filled:"",dense:"",type:"number"},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1)]),a("form-table",{attrs:{labels:e.labels}},[a("template",{slot:"tbody"},[a("tr",[a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",{staticClass:"edit_btn_group"},[a("div",[a("q-icon",{attrs:{name:"app:icon-a-tubiaotj1"}}),a("q-icon",{attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2),a("form-table",{attrs:{labels:[{name:"质量类型",width:"33%"},"片段","操作"]}},[a("template",{slot:"tbody"},[a("tr",[a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",{staticClass:"edit_btn_group"},[a("div",[a("q-icon",{attrs:{name:"app:icon-a-tubiaotj1"}}),a("q-icon",{attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2),a("form-table",{attrs:{labels:[{name:"序号",width:"33%"},"穿透率","操作"]}},[a("template",{slot:"tbody"},[a("tr",[a("td",[e._v("\n 11\n ")]),a("td",[a("q-input",{attrs:{placeholder:"请输入",filled:"",dense:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),a("td",{staticClass:"edit_btn_group"},[a("div",[a("q-icon",{attrs:{name:"app:icon-a-tubiaotj1"}}),a("q-icon",{attrs:{name:"app:icon-a-tubiaotjbeifen1"}})],1)])])])],2)],1)],1)],1)]),a("common-btngroup",{directives:[{name:"show",rawName:"v-show",value:e.currentBatchNum,expression:"currentBatchNum"}]})],1)],1)])},s=[],o=a("2f62"),l=a("0748"),n=a("0418"),d=a("5979"),r=a("dd67"),c=a("9951"),m=a("6e23"),u=a("54d9"),p={name:"jingbangtuihuo",components:{Header:n["a"],Table:l["a"],CommonCard:d["default"],CommonBtngroup:r["default"],CommonTitle:c["default"],FormTable:m["default"],SelectFill:u["default"]},computed:{...Object(o["b"])(["deviceIdList"]),noBatchNum(){return!this.currentBatchNum},deviceIdEmpty(){return!this.daojiaoForm.deviceId||""===this.daojiaoForm.deviceId}},watch:{currentBatchNum(e){console.log(e,"val"),e&&""!==e||(this.daojiaoForm.deviceId="")},daojiaoQualityInfoList:{handler(e){this.qualityInfoSum=0,this.daojiaoForm.outflowNum=this.$u.judgeArrObj(e),e.forEach((e=>{this.qualityInfoSum+=e.num}))},immediate:!0,deep:!0},"daojiaoForm.deviceId":{handler(e){if(e&&""!==e)return this.$http({url:"/padProdRecord/getInstallInfo",method:"post",data:{stepId:this.currentBatchNum.stepId,deviceId:this.daojiaoForm.deviceId}}).then((e=>{if(null!==e.result){let t=JSON.parse(e.result);this.daojiaoSetForm.lWheelManufacturers=t.lWheelManufacturers,this.daojiaoSetForm.lWheelIdentification=t.lWheelIdentification,this.daojiaoSetForm.lGrooveLife=t.lGrooveLife,this.daojiaoSetForm.rWheelManufacturers=t.rWheelManufacturers,this.daojiaoSetForm.rWheelIdentification=t.rWheelIdentification,this.daojiaoSetForm.steelWireManufacturers=t.steelWireManufacturers,this.daojiaoSetForm.rGrooveLife=t.rGrooveLife,this.daojiaoSetForm.SetDiameterByA=t.SetDiameterByA,this.LGrindingWheelLForm.index=t.LGrindingWheelLForm.index,this.LGrindingWheelLForm.time=t.LGrindingWheelLForm.time||0,this.RGrindingWheelLForm.index=t.RGrindingWheelLForm.index,this.RGrindingWheelLForm.time=t.RGrindingWheelLForm.time||0}else this.daojiaoSetForm=this.$options.data().daojiaoSetForm,this.LGrindingWheelLForm.index=1,this.LGrindingWheelLForm.time=0,this.RGrindingWheelLForm.index=1,this.RGrindingWheelLForm.time=0}));this.clearData()}},"daojiaoSetForm.lWheelIdentification":{handler(e){console.log(e,"val111")}}},data(){return{buttonList:[],searchForm:{batchNum:"",processId:"",stepId:""},currentBatchNum:null,batchNumList:[],name:"",tab:"daojiao",daojiaoForm:{deviceId:""},form:{password:"",email:""},cardList:[1,2],labels:["直径A1","直径A2","直径A3","直径B","圆度","平边长度","NOTCH角度","NOTCH深度","操作"],qualityInfoSum:0,daojiaoQualityInfoList:[{qualityType:"",num:"",qualifiedFlag:"",tailPieceFlag:""}],daojiaoSetForm:{lWheelManufacturers:"",lWheelIdentification:"",lGrooveLife:"",rWheelManufacturers:"",rWheelIdentification:"",rGrooveLife:"",SetDiameterByA:""},isDisabled:!0,WheelIdentificationList:[],LGrindingWheelLForm:{chamferNum:"",startTop:"",endTop:"",startBottom:"",endBottom:"",index:"",time:""},RGrindingWheelLForm:{chamferNum:"",startTop:"",endTop:"",startBottom:"",endBottom:"",index:"",time:""},cacheMap:{},WheelIdentificationList:[],penetrationRateList:[{penetrationRate:""}],allList:[],sidebarList:[],screenList:[]}},methods:{getStepByProcessName(){return this.$http({url:"/padProdRecord/getStepByProcessName/倒角",method:"get"}).then((e=>{this.buttonList=e.result.steps,this.searchForm.processId=e.result.processId,this.searchForm.stepId=e.result.steps[0].id}))},getList(){this.getDataLoading=!0,this.$http({url:"/padProdRecord/query",timeout:3e4,method:"get",params:this.searchForm}).then((e=>{this.allList=e.result,this.batchNumList=e.result.map((e=>e.batchNum))})).catch((e=>{}))},onSubmit(){},onReset(){},clickRow(e){console.log(e,"row")},getDeviceList(){this.$store.dispatch("getDeviceIdList",8)},getWheelIdentificationList(){this.$http({url:"/fixture/queryPad",method:"get",params:{fixtureType:"砂轮",pageNum:0,pageSize:0,status:1}}).then((e=>{this.WheelIdentificationList=e.result.list}))},clearData(){this.$nextTick((()=>{this.$refs.daojiaoSetForm.resetValidation()})),this.cacheMap=this.$options.data().cacheMap,this.daojiaoForm=this.$options.data().daojiaoForm,this.daojiaoSetForm=this.$options.data().daojiaoSetForm,this.daojiaoQualityInfoList=this.$options.data().daojiaoQualityInfoList,this.penetrationRateList=this.$options.data().penetrationRateList,this.chamferInfoList=this.$options.data().chamferInfoList,this.LGrindingWheelLForm=this.$options.data().LGrindingWheelLForm,this.RGrindingWheelLForm=this.$options.data().RGrindingWheelLForm,this.allList=[],this.batchNumList=[],this.sidebarList=[],this.screenList=[]}},async created(){await this.getStepByProcessName(),this.getList()}},h=p,f=a("2877"),b=a("429b"),v=a("7460"),L=a("0016"),g=a("0378"),F=a("27f9"),C=a("eb85"),I=a("ddd8"),j=a("66e5"),S=a("4074"),_=a("eebe"),y=a.n(_),q=Object(f["a"])(h,i,s,!1,null,null,null);t["default"]=q.exports;y()(q,"components",{QTabs:b["a"],QTab:v["a"],QIcon:L["a"],QForm:g["a"],QInput:F["a"],QSeparator:C["a"],QSelect:I["a"],QItem:j["a"],QItemSection:S["a"]})}}]);