@ -1,14 +1,14 @@
< template >
< template >
< a -spin :spinning ="confirmLoading" >
< a -spin :spinning ="confirmLoading" style = "padding: 10px 20px" >
< j -form -container :disabled ="formDisabled" >
< j -form -container :disabled ="formDisabled" >
< a -form -model ref = "form" :model ="model" :rules ="validatorRules" slot = "detail" >
< a -form -model ref = "form" :model ="model" :rules ="validatorRules" slot = "detail" >
< a -row >
< a -row type = "flex" justify = "space-between" >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "企业" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "enterpriseId" >
< a -form -model -item label = "企业" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "enterpriseId" >
< j -select -depart v -model = " model.enterpriseId " placeholder = "请输入企业名称" / >
< j -select -depart v -model = " model.enterpriseId " placeholder = "请输入企业名称" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "服装类型" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "typeId" >
< a -form -model -item label = "服装类型" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "typeId" >
< j -popup
< j -popup
v - model = "model.typeName"
v - model = "model.typeName"
@ -22,43 +22,36 @@
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< a -input v -model = " model.styleId " hidden / >
< a -input v -model = " model.styleId " hidden / >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "工序代码" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "processCode" >
< a -form -model -item label = "工序代码" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "processCode" >
< a -input v -model = " model.processCode " placeholder = "请输入工序代码" disabled > < / a - i n p u t >
< a -input v -model = " model.processCode " placeholder = "请输入工序代码" disabled > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "工序名称" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "processName" >
< a -form -model -item label = "工序名称" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "processName" >
< a -input v -model = " model.processName " placeholder = "请输入工序名称" > < / a - i n p u t >
< a -input v -model = " model.processName " placeholder = "请输入工序名称" > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24" >
< / a - r o w >
< a -form -model -item label = "工艺描述" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "processDescribe" >
< a -textarea v -model = " model.processDescribe " rows = "4" placeholder = "请输入工艺描述" / >
< a -row type = "flex" justify = "space-between" >
< / a - f o r m - m o d e l - i t e m >
< a -col :span ="11" >
< / a - c o l >
< a -col :span ="24" >
< a -form -model -item label = "做工说明" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "mkExplain" >
< a -textarea v -model = " model.mkExplain " rows = "4" placeholder = "请输入做工说明" / >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< a -col :span ="24" >
< a -form -model -item label = "品质要求" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "qualityRequire" >
< a -form -model -item label = "品质要求" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "qualityRequire" >
< a -input v -model = " model.qualityRequire " placeholder = "请输入品质要求" > < / a - i n p u t >
< a -input v -model = " model.qualityRequire " placeholder = "请输入品质要求" > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="12" >
< a -form -model -item label = "工序时间" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "processTime" >
< a -form -model -item label = "工序时间(秒)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "processTime" >
< a -input v -model = " model.processTime " placeholder = "请输入工序时间" > < / a - i n p u t >
< a -input v -model = " model.processTime " placeholder = "请输入工序时间" > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "工序单价" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "price" >
< a -form -model -item label = "工序单价(元) " :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "price" >
< a -input -number v -model = " model.price " placeholder = "请输入工序单价" style = "width: 100%" / >
< a -input -number v -model = " model.price " placeholder = "请输入工序单价" style = "width: 100%" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "工序等级" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "grade" >
< a -form -model -item label = "工序等级(键值对) " :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "grade" >
< a -input v -model = " model.grade " placeholder = "请输入工序等级" > < / a - i n p u t >
< a -input v -model = " model.grade " placeholder = "请输入工序等级" > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
@ -72,38 +65,38 @@
<!-- < a -input v -model = " model.fabricGrade " placeholder = "请输入面料等级" > < / a - i n p u t > - - >
<!-- < a -input v -model = " model.fabricGrade " placeholder = "请输入面料等级" > < / a - i n p u t > - - >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - c o l > - - >
<!-- < / a - c o l > - - >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "针距(针/厘米)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "needlePitch" >
< a -form -model -item label = "针距(针/厘米)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "needlePitch" >
< a -input -number v -model = " model.needlePitch " placeholder = "请输入针距(针/厘米)" style = "width: 100%" / >
< a -input -number v -model = " model.needlePitch " placeholder = "请输入针距(针/厘米)" style = "width: 100%" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
<!-- < a -col :span ="24 " > -- >
<!-- < a -col :span ="11 " > -- >
<!-- < a -form -model -item label = "机器名" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "machineId" > -- >
<!-- < a -form -model -item label = "机器名" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "machineId" > -- >
<!-- < j -dict -select -tag type = "list" v -model = " model.machineId " dictCode = "zy_devicetype,name,id" placeholder = "请选择机器名" / > -- >
<!-- < j -dict -select -tag type = "list" v -model = " model.machineId " dictCode = "zy_devicetype,name,id" placeholder = "请选择机器名" / > -- >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - c o l > - - >
<!-- < / a - c o l > - - >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "手工宽放" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "manualWide" >
< a -form -model -item label = "手工宽放(毫米) " :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "manualWide" >
< a -input v -model = " model.manualWide " placeholder = "请输入手工宽放" > < / a - i n p u t >
< a -input v -model = " model.manualWide " placeholder = "请输入手工宽放" > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "手工时间" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "manualTime" >
< a -form -model -item label = "手工时间(秒) " :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "manualTime" >
< a -input -number v -model = " model.manualTime " placeholder = "请输入手工时间" style = "width: 100%" / >
< a -input -number v -model = " model.manualTime " placeholder = "请输入手工时间" style = "width: 100%" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "机器转速" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "machineSpeed" >
< a -form -model -item label = "机器转速(转/分钟) " :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "machineSpeed" >
< a -input -number v -model = " model.machineSpeed " placeholder = "请输入机器转速" style = "width: 100%" / >
< a -input -number v -model = " model.machineSpeed " placeholder = "请输入机器转速" style = "width: 100%" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "机器宽放" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "machineWide" >
< a -form -model -item label = "机器宽放(毫米) " :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "machineWide" >
< a -input v -model = " model.machineWide " placeholder = "请输入机器宽放" > < / a - i n p u t >
< a -input v -model = " model.machineWide " placeholder = "请输入机器宽放" > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "机器时间" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "machineTime" >
< a -form -model -item label = "机器时间(秒) " :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "machineTime" >
< a -input -number v -model = " model.machineTime " placeholder = "请输入机器时间" style = "width: 100%" / >
< a -input -number v -model = " model.machineTime " placeholder = "请输入机器时间" style = "width: 100%" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
@ -112,12 +105,12 @@
<!-- < a -input v -model = " model.machineFloat " placeholder = "请输入机器浮于" > < / a - i n p u t > - - >
<!-- < a -input v -model = " model.machineFloat " placeholder = "请输入机器浮于" > < / a - i n p u t > - - >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - c o l > - - >
<!-- < / a - c o l > - - >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "绑包宽放" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "bundleWide" >
< a -form -model -item label = "绑包宽放(毫米) " :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "bundleWide" >
< a -input v -model = " model.bundleWide " placeholder = "请输入绑包宽放" > < / a - i n p u t >
< a -input v -model = " model.bundleWide " placeholder = "请输入绑包宽放" > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "绑包时间" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "bundleTime" >
< a -form -model -item label = "绑包时间" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "bundleTime" >
< a -input v -model = " model.bundleTime " placeholder = "请输入绑包时间" > < / a - i n p u t >
< a -input v -model = " model.bundleTime " placeholder = "请输入绑包时间" > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
@ -153,12 +146,12 @@
<!-- < j -dict -select -tag v -model = " model.styleId " placeholder = "请输入款式名称" dictCode = "zy_cloths_style,style_names,id" / > -- >
<!-- < j -dict -select -tag v -model = " model.styleId " placeholder = "请输入款式名称" dictCode = "zy_cloths_style,style_names,id" / > -- >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - c o l > - - >
<!-- < / a - c o l > - - >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "工段代码" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "worksectionCode" >
< a -form -model -item label = "工段代码" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "worksectionCode" >
< a -input v -model = " model.worksectionCode " placeholder = "请输入工段代码" > < / a - i n p u t >
< a -input v -model = " model.worksectionCode " placeholder = "请输入工段代码" > < / a - i n p u t >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "工序类型" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "processType" >
< a -form -model -item label = "工序类型" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "processType" >
< j -dict -select -tag type = "radio" v -model = " model.processType " dictCode = "processType" placeholder = "" / >
< j -dict -select -tag type = "radio" v -model = " model.processType " dictCode = "processType" placeholder = "" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
@ -168,37 +161,54 @@
<!-- < a -input v -model = " model.contractNum " placeholder = "请输入合同号" > < / a - i n p u t > - - >
<!-- < a -input v -model = " model.contractNum " placeholder = "请输入合同号" > < / a - i n p u t > - - >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - f o r m - m o d e l - i t e m > - - >
<!-- < / a - c o l > - - >
<!-- < / a - c o l > - - >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "合计(手工TMU)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "totalManualTmu" >
< a -form -model -item label = "合计(手工TMU)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "totalManualTmu" >
< a -input -number v -model = " model.totalManualTmu " placeholder = "请输入合计(手工TMU)" style = "width: 100%" / >
< a -input -number v -model = " model.totalManualTmu " placeholder = "请输入合计(手工TMU)" style = "width: 100%" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "合计(机器TMU)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "totalMachineTmu" >
< a -form -model -item label = "合计(机器TMU)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "totalMachineTmu" >
< a -input -number v -model = " model.totalMachineTmu " placeholder = "请输入合计(机器TMU)" style = "width: 100%" / >
< a -input -number v -model = " model.totalMachineTmu " placeholder = "请输入合计(机器TMU)" style = "width: 100%" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="11 " >
< a -form -model -item label = "合计(手工秒)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "totalMaunal" >
< a -form -model -item label = "合计(手工秒)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "totalMaunal" >
< a -input -number v -model = " model.totalMaunal " placeholder = "请输入合计(手工秒)" style = "width: 100%" / >
< a -input -number v -model = " model.totalMaunal " placeholder = "请输入合计(手工秒)" style = "width: 100%" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24 " >
< a -col :span ="1 2" >
< a -form -model -item label = "合计(机器秒)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "totalMachine" >
< a -form -model -item label = "合计(机器秒)" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "totalMachine" >
< a -input -number v -model = " model.totalMachine " placeholder = "请输入合计(机器秒)" style = "width: 100%" / >
< a -input -number v -model = " model.totalMachine " placeholder = "请输入合计(机器秒)" style = "width: 100%" / >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24" class = 'coin' >
< / a - r o w >
< a -row >
< a -col :span ="48" >
< a -form -model -item label = "工艺描述" :labelCol ="labelCol1" :wrapperCol ="wrapperCol1" prop = "processDescribe" >
< a -textarea v -model = " model.processDescribe " rows = "2" placeholder = "请输入工艺描述" / >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - r o w >
< a -row >
< a -col :span ="48" >
< a -form -model -item label = "做工说明" :labelCol ="labelCol1" :wrapperCol ="wrapperCol1" prop = "mkExplain" >
< a -textarea v -model = " model.mkExplain " rows = "2" placeholder = "请输入做工说明" / >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - r o w >
< a -row type = "flex" align = "middle" class = "imageDiv" >
< a -col :span ="8" >
< a -form -model -item label = "图片" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "image" >
< a -form -model -item label = "图片" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "image" >
< j -image -upload isMultiple v -model = " model.image " > < / j - i m a g e - u p l o a d >
< j -image -upload isMultiple v -model = " model.image " > < / j - i m a g e - u p l o a d >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< a -col :span ="24" >
< a -col :span ="8 " >
< a -form -model -item label = "视频" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "vedio" >
< a -form -model -item label = "视频" :labelCol ="labelCol" :wrapperCol ="wrapperCol" prop = "vedio" >
< j -upload v -model = " model.vedio " > < / j - u p l o a d >
< j -upload v -model = " model.vedio " > < / j - u p l o a d >
< / a - f o r m - m o d e l - i t e m >
< / a - f o r m - m o d e l - i t e m >
< / a - c o l >
< / a - c o l >
< / a - r o w >
< / a - r o w >
< / a - f o r m - m o d e l >
< / a - f o r m - m o d e l >
< / j - f o r m - c o n t a i n e r >
< / j - f o r m - c o n t a i n e r >
< / a - s p i n >
< / a - s p i n >
@ -236,12 +246,30 @@
xs : { span : 24 } ,
xs : { span : 24 } ,
sm : { span : 16 } ,
sm : { span : 16 } ,
} ,
} ,
labelCol1 : {
xs : { span : 24 } ,
sm : { span : 3 } ,
} ,
wrapperCol1 : {
xs : { span : 24 } ,
sm : { span : 21 } ,
} ,
labelCol2 : {
xs : { span : 24 } ,
sm : { span : 3 } ,
} ,
wrapperCol2 : {
xs : { span : 24 } ,
sm : { span : 21 } ,
} ,
confirmLoading : false ,
confirmLoading : false ,
validatorRules : {
validatorRules : {
fabricNum : [
fabricNum : [
{ required : true , message : '请输入面料代码!' } ,
{ required : true , message : '请输入面料代码!' } ,
] ,
] ,
price : [ {
pattern : /^\d*\.?\d+$/ , message : '请输入正数'
} , ] ,
processCode : [
processCode : [
{ required : true , message : '请输入工序代码!' } ,
{ required : true , message : '请输入工序代码!' } ,
] ,
] ,
@ -324,4 +352,9 @@
} ,
} ,
}
}
}
}
< / script >
< / script >
< style scoped >
/deep/ . imageDiv . ant - row {
margin - bottom : 0 ;
}
< / style >