cordova-11/www/js/22.js
2022-05-25 07:48:07 +08:00

1 line
10 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[22],{"3f2b":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:"content 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:"title_style"},[a("div",{staticClass:"title"},[t._v("\n 数据明细\n ")]),a("optics-title-crad",{attrs:{showCardForm:"",cardForm:t.cardForm}})],1),a("div",{staticClass:"body_style common-form"},[a("optics-title-crad",{attrs:{title:"数据录入"}},[a("template",{slot:"body"},[a("q-form",{ref:"form",staticClass:"q-gutter-md mg-t-20"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:t.disable}},[t._v("定向时间(min)")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",type:"number",disable:t.disable,dense:"",rules:[function(t){return t&&""!==t}]},model:{value:t.form.data.orientationTime,callback:function(e){t.$set(t.form.data,"orientationTime",t._n(e))},expression:"form.data.orientationTime"}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:t.disable}},[t._v("设备编码")]),a("q-select",{attrs:{placeholder:"请选择","emit-value":"","map-options":"","option-label":function(t){return t.deviceNo},"option-value":function(t){return t.id},options:t.DeviceIdList,filled:"",disable:t.disable,dense:"",rules:[function(t){return t&&""!==t}]},model:{value:t.form.data.deviceId,callback:function(e){t.$set(t.form.data,"deviceId",e)},expression:"form.data.deviceId"}})],1),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:t.disable}},[t._v("工装编号")]),a("q-select",{attrs:{placeholder:"请选择","emit-value":"","map-options":"","option-label":function(t){return t.fixtureNo},"option-value":function(t){return t.id},options:t.fixtureIdList,filled:"",disable:t.disable,dense:"",rules:[function(t){return t&&""!==t}]},model:{value:t.form.data.fixtureId,callback:function(e){t.$set(t.form.data,"fixtureId",e)},expression:"form.data.fixtureId"}})],1)]),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-select",{attrs:{placeholder:"请选择","emit-value":"","map-options":"","option-label":function(t){return t.name},"option-value":function(t){return t.name},options:t.userList,filled:"",disable:t.disable,dense:"",rules:[function(t){return t&&t.length>0}]},model:{value:t.form.data.orientationConfirmUser,callback:function(e){t.$set(t.form.data,"orientationConfirmUser",e)},expression:"form.data.orientationConfirmUser"}})],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:"",disable:t.disable,dense:"",rules:[function(t){return t&&t.length>0}]},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 radio ",class:{disable:t.disable}},[t._v("是否粘胶")]),a("q-select",{attrs:{placeholder:"请选择",filled:"",dense:"","emit-value":"","map-options":"",disable:t.disable,options:t.isOptions,rules:[function(t){return t&&t.length>0}]},model:{value:t.form.data.isAdhesive,callback:function(e){t.$set(t.form.data,"isAdhesive",e)},expression:"form.data.isAdhesive"}})],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:"请选择","emit-value":"","map-options":"",filled:"",dense:"",disable:t.disable,options:t.isOptions,rules:[function(t){return t&&t.length>0}]},model:{value:t.form.data.isMarbleUsed,callback:function(e){t.$set(t.form.data,"isMarbleUsed",e)},expression:"form.data.isMarbleUsed"}})],1)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"label radio ",class:{disable:t.disable}},[t._v("定向角度")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-30 display"},[a("div",{staticClass:"num",class:{disable:t.disable}},[t._v("0°")]),a("q-input",{attrs:{disable:t.disable,filled:"",type:"number",dense:"",rules:[function(t){return t&&""!==t}]},model:{value:t.form.data.orientationAngle0,callback:function(e){t.$set(t.form.data,"orientationAngle0",t._n(e))},expression:"form.data.orientationAngle0"}})],1),a("div",{staticClass:"col mg-r-30 display"},[a("div",{staticClass:"num",class:{disable:t.disable}},[t._v("90°")]),a("q-input",{attrs:{disable:t.disable,type:"number",filled:"",dense:"",rules:[function(t){return t&&""!==t}]},model:{value:t.form.data.orientationAngle90,callback:function(e){t.$set(t.form.data,"orientationAngle90",t._n(e))},expression:"form.data.orientationAngle90"}})],1)])]),a("div",{staticClass:"col mg-r-20"},[a("div",{staticClass:"nolabel"},[t._v("")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col mg-r-30 display"},[a("div",{staticClass:"num",class:{disable:t.disable}},[t._v("180°")]),a("q-input",{attrs:{disable:t.disable,filled:"",type:"number",dense:"",rules:[function(t){return t&&""!==t}]},model:{value:t.form.data.orientationAngle180,callback:function(e){t.$set(t.form.data,"orientationAngle180",t._n(e))},expression:"form.data.orientationAngle180"}})],1),a("div",{staticClass:"col mg-r-30 display"},[a("div",{staticClass:"num",class:{disable:t.disable}},[t._v("270°")]),a("q-input",{attrs:{disable:t.disable,type:"number",filled:"",dense:"",rules:[function(t){return t&&""!==t}]},model:{value:t.form.data.orientationAngle270,callback:function(e){t.$set(t.form.data,"orientationAngle270",t._n(e))},expression:"form.data.orientationAngle270"}})],1)])]),a("div",{staticClass:"col mg-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("common-btngroup",{on:{submit:t.check,cancel:t.cancel}})],1)},i=[],l=a("dd67"),o=a("30d4"),r=a("2a19"),d=a("0418"),n={name:"xianqiedingxiang",components:{Header:d["a"],CommonBtngroup:l["default"],OpticsTitleCrad:o["default"]},data(){return{cardForm:[{name:"app:icon-chanpinbianma",title:"晶锭编码",value:"",bColor:"#1890FF"},{name:"app:icon-yongtu",title:"晶锭用途(寸/砖)",value:"",bColor:"#55C169"},{name:"app:icon-zhongliang",title:"晶锭重量",value:"",bColor:"#FA8C16"}],isOptions:[{label:"是",value:"1"},{label:"否",value:"0"}],checkList:[{label:"OK",value:"OK"},{label:"NG",value:"NG"}],shift:[{label:"白班",value:1},{label:"夜班",value:2}],form:{data:{orientationTime:"",isAdhesive:"",isMarbleUsed:"",deviceId:"",fixtureId:"",orientationConfirmUser:"",shift:"",orientationAngle0:"",orientationAngle90:"",orientationAngle180:"",orientationAngle270:"",checkResult:"",remarks:""}},processId:15,stepId:15,prodId:0,batchNumList:[],currentBatchNum:null,DeviceIdList:[],fixtureIdList:[],userList:[],time:"",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}))},focusDeviceId(){this.$http({url:"/device/queryDropBox",method:"get",params:{stepId:this.stepId}}).then((t=>{this.DeviceIdList=t.result}))},focusfixtureId(){this.$http({url:"/fixture/queryDropBox",method:"get",params:{fixtureType:3}}).then((t=>{this.fixtureIdList=t.result}))},focusUserId(){this.$http({url:"/user/getUsersWithRolePage",method:"get",params:{orgId:0,username:"",name:"",lockFlag:0,pageNum:0,pageSize:0}}).then((t=>{this.userList=t.result.list}))},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.size+"寸"||!1;break;case"晶锭重量":e.value=t.result.ingotWeight||"";break}})),this.getTime(),this.form.data.checkResult="OK",this.form.data.isAdhesive="1",this.form.data.isMarbleUsed="1",this.prodId=t.result.prodId}))},cancel(){let{cardForm:t,form:e,disable:a,currentBatchNum:s}=this.$options.data();this.form=e,this.currentBatchNum=s,this.disable=a,this.cardForm=t},check(){this.currentBatchNum?this.$refs.form.validate().then((t=>{t?this.$confirm({title:"提示",message:"是否过站?",btn:{okText:"确定",cancelText:"取消"}}).then((()=>{this.submit()})).catch((()=>{})):r["a"].create({type:"negative",position:"top",message:"请将数据填写完整"})})):r["a"].create({type:"negative",position:"top",message:"请选择编号"})},submit(){this.$http({url:"/pad/lineCutOrientation/passStation",method:"post",data:{...this.form.data,stepId:this.stepId,prodId:this.prodId}}).then((t=>{r["a"].create({type:"positive",position:"top",message:"操作成功"}),this.getList(),this.currentBatchNum=null,this.cancel()}))}},watch:{currentBatchNum:{handler(t){let{form:e,cardForm:a}=this.$options.data();this.form=e,this.$nextTick((()=>{this.$refs.form.resetValidation()})),t?(this.getBaseData(),this.disable=!1):(this.cardForm=a,this.disable=!0)},immediate:!0,deep:!0}},created(){this.getList(),this.focusDeviceId(),this.focusfixtureId(),this.focusUserId()}},c=n,u=(a("9ccc"),a("2877")),m=a("0378"),f=a("27f9"),p=a("ddd8"),h=a("eebe"),b=a.n(h),v=Object(u["a"])(c,s,i,!1,null,"325134f8",null);e["default"]=v.exports;b()(v,"components",{QForm:m["a"],QInput:f["a"],QSelect:p["a"]})},"9ccc":function(t,e,a){"use strict";a("df5d")},df5d:function(t,e,a){}}]);