cordova-11/www/js/13.js

1 line
5.1 KiB
JavaScript
Raw Normal View History

2022-05-25 07:48:07 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[13],{"9b25":function(t,e,a){"use strict";a("9ea6")},"9ea6":function(t,e,a){},ee37:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"optics_style"},[a("div",{staticClass:"header"},[a("Header",{attrs:{options:t.batchNumList,model:t.currentBatchNum},on:{"update:model":function(e){t.currentBatchNum=e}}})],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:t.cardForm}})],1),a("div",{staticClass:"mg-t-15"},[a("optics-title-crad",{attrs:{title:"数据录入"}},[a("template",{slot:"body"},[a("q-form",{ref:"form",staticClass:"q-gutter-md mg-t-20 minHeight"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4 pd-r-20"},[a("div",{staticClass:"label radio",class:{disable:t.disable}},[t._v("壳重")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",disable:t.disable,type:"number",rules:[function(t){return t&&""!==t}],dense:""},model:{value:t.form.data.weight,callback:function(e){t.$set(t.form.data,"weight",t._n(e))},expression:"form.data.weight"}})],1),a("div",{staticClass:"col-md-4 pd-r-20"},[a("div",{staticClass:"label radio",class:{disable:t.disable}},[t._v("检验结果")]),a("q-select",{attrs:{placeholder:"请输入",options:t.checkList,"emit-value":"","map-options":"",filled:"",rules:[function(t){return t&&t.length>0}],disable:t.disable,dense:""},model:{value:t.form.data.checkResult,callback:function(e){t.$set(t.form.data,"checkResult",e)},expression:"form.data.checkResult"}})],1),a("div",{staticClass:"col-md-4 pd-r-20"},[a("div",{staticClass:"label radio ",class:{disable:t.disable}},[t._v("班次")]),a("q-select",{attrs:{options:t.shift,"emit-value":"","map-options":"",filled:"",disable:t.disable,dense:"",rules:[function(t){return t&&""!==t}]},model:{value:t.form.data.shift,callback:function(e){t.$set(t.form.data,"shift",e)},expression:"form.data.shift"}})],1)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-4 pd-r-20"},[a("div",{staticClass:"label",class:{disable:t.disable}},[t._v("备注")]),a("q-input",{attrs:{placeholder:"请输入",disable:t.disable,dense:""},model:{value:t.form.data.remarks,callback:function(e){t.$set(t.form.data,"remarks",e)},expression:"form.data.remarks"}})],1)])])],1)],2)],1)]),a("div",{staticClass:"btn"},[a("common-btngroup",{on:{submit:t.check,cancel:t.cancel}})],1)],1)])},i=[],l=a("dd67"),o=a("30d4"),r=a("0418"),d=a("2691"),c=a("2a19"),n={name:"jingkechenzhong",components:{CommonBtngroup:l["default"],OpticsTitleCrad:o["default"],Header:r["a"],opticsTitle:d["default"]},data(){return{cardForm:[{name:"app:icon-chanpinbianma",title:"晶锭编码",value:"",bColor:"#1890FF"},{name:"app:icon-ziduanbianhao",title:"晶壳重量",value:"",bColor:"#55C169"}],form:{data:{weight:"",shift:"",checkResult:"",remarks:""}},batchNumList:[],currentBatchNum:"",checkList:[{label:"OK",value:"OK"},{label:"NG",value:"NG"}],shift:[{label:"白班",value:1},{label:"夜班",value:2}],time:"",processId:4,stepId:4,prodId:0,disable:!0}},methods:{getTime(){this.time=(new Date).getHours(),this.time>8||this.time<20?this.form.data.shift=1:this.form.data.shift=0},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((e=>{switch(e.title){case"晶锭编码":e.value=t.result.ingotNo||"";break;case"晶壳重量":e.value=t.result.ingotWeight||"";break}})),this.getTime(),this.form.data.checkResult="OK",this.prodId=t.result.prodId}))},check(){this.currentBatchNum?this.$refs.form.validate().then((t=>{t?this.$confirm({title:"提示",message:"是否过站?",btn:{okText:"确定",cancelText:"取消"}}).then((()=>{this.submit()})).catch((()=>{})):c["a"].create({type:"