1 line
9.6 KiB
JavaScript
1 line
9.6 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[10],{"4a89":function(t,e,a){},"75f9":function(t,e,a){"use strict";a("4a89")},beee: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:"content"},[a("optics-title",{attrs:{title:"数据明细"}}),a("div",{staticClass:"body_style"},[a("div",{staticClass:"mg-t-15"},[a("optics-title-crad",{attrs:{showCardForm:"",cardForm:t.cardForm}})],1),a("div",{staticClass:"mg-t-15"},[a("div",{staticClass:"body_style common-form"},[a("optics-title-crad",{attrs:{title:"数据录入"}},[1===t.status?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 mg-r-20"},[a("div",{staticClass:"label radio",class:{disable:t.disable}},[t._v("有效段数")]),a("q-input",{attrs:{placeholder:"请输入",filled:"",type:"number",rules:[function(t){return t&&""!==t&&t>1&&t<10&&-1===t.toString().indexOf(".")}],disable:t.disable,dense:""},model:{value:t.form.data.numberCuts,callback:function(e){t.$set(t.form.data,"numberCuts",t._n(e))},expression:"form.data.numberCuts"}})],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:"",rules:[function(t){return t&&""!==t}],disable:t.disable,dense:""},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",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):t._e(),2==t.status?a("template",{slot:"body"},[a("q-form",{ref:"sedForm"},[a("q-table",{staticStyle:{"min-height":"calc( 100vh - 470px )"},attrs:{data:t.tableForm.tableData,columns:t.tableForm.columns,"table-header-style":{backgroundColor:"#F8FBFF"},"hide-bottom":"",flat:"",pagination:t.tableForm.pagination,"row-key":"name"},scopedSlots:t._u([{key:"body",fn:function(e){return a("q-tr",{attrs:{props:e}},[a("q-td",{key:"stickNo",attrs:{dense:"",filled:"",width:"150px",props:e}},[t._v("\n "+t._s(e.row.stickNo)+"\n ")]),a("q-td",{key:"stickNumber",attrs:{width:"300px",props:e}},[a("q-input",{attrs:{filled:"",rules:[function(t){return t&&""!==t}],dense:""},model:{value:e.row.stickNumber,callback:function(a){t.$set(e.row,"stickNumber",a)},expression:"props.row.stickNumber"}})],1),a("q-td",{key:"afterCutLength",attrs:{width:"300px",props:e}},[a("q-input",{ref:"input1"+e.row.stickNo,attrs:{filled:"",type:"number",rules:[function(e){return e&&""!==e&&e>0&&e<=t.cardForm[2].value&&t.totalLengthNum<=t.cardForm[2].value}],dense:""},on:{input:t.totalLength},model:{value:e.row.afterCutLength,callback:function(a){t.$set(e.row,"afterCutLength",t._n(a))},expression:"props.row.afterCutLength"}})],1),a("q-td",{key:"afterCutWeight",attrs:{width:"300px",props:e}},[a("q-input",{ref:"input2"+e.row.stickNo,attrs:{filled:"",type:"number",rules:[function(e){return e&&""!==e&&e>0&&e<t.cardForm[3].value&&t.totalWeightNum<=t.cardForm[3].value}],dense:""},on:{input:t.totalWeight},model:{value:e.row.afterCutWeight,callback:function(a){t.$set(e.row,"afterCutWeight",t._n(a))},expression:"props.row.afterCutWeight"}})],1),a("q-td",{key:"remarks",attrs:{width:"300px",props:e}},[a("q-input",{attrs:{filled:"",dense:""},model:{value:e.row.remarks,callback:function(a){t.$set(e.row,"remarks",a)},expression:"props.row.remarks"}})],1)],1)}}],null,!
|