1 line
28 KiB
JavaScript
1 line
28 KiB
JavaScript
webpackJsonp([2],{"2Wlq":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),l=a.n(i),o=a("mvHQ"),n=a.n(o),s=a("Dd8w"),r=a.n(s),c=a("ysqt"),u=a("NYxO"),p=a("bzuE"),m=a("FnMF"),h=a("iGlD"),d=a("tiiE"),f=(a("lbHh"),a("veZ4")),y=a("Sd19"),g=a("5zN6"),v=a("S8x/"),b=(a("TExn"),{name:"",props:{printDetail:{type:Object,default:{}},printList1:{type:Array,default:[]},printForm1:{type:Array,default:[]},printList2:{type:Array,default:[]},printForm2:{type:Array,default:[]},printList3:{type:Array,default:[]},printForm3:{type:Array,default:[]},printTotal:{type:Object,default:{}},printDirection:{type:Boolean,default:!0}},data:function(){return{pageHeight:"",pageWidth:"",config:p.a}},component:{},mounted:function(){this.printDirection?(this.pageHeight=this.config.printHeightDirection0,this.pageWidth=this.config.printWidthDirection0):(this.pageHeight=this.config.printHeightDirection1,this.pageWidth=this.config.printWidthDirection1)},watch:{printList1:{handler:function(t,e){Object(v.a)(t,this.printForm1,"",this.printDirection)},deep:!0},printList2:{handler:function(t,e){Object(v.b)(t,this.printForm2,"",this.printDirection)},deep:!0},printList3:{handler:function(t,e){Object(v.c)(t,this.printForm3,"",this.printDirection)},deep:!0}}}),_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"print_content",style:{width:t.pageWidth+"px"}},[a("div",{staticClass:"print_top"},[a("div",{staticClass:"head_out"},[a("h1",{staticStyle:{"text-align":"center"}},[t._v("江苏苏北粮油股份有限公司过磅单")]),t._v(" "),t.printDetail?a("div",{staticClass:"head1"},[a("div",{staticClass:"head1_left"},[t._v(t._s(t.printDetail.companyType)+":"+t._s(t.printDetail.company))]),t._v(" "),a("div",{staticClass:"head2_item"},[t._v("仓库:"+t._s(t.printDetail.store))]),t._v(" "),a("div",{staticClass:"head1_right"},[t._v("磅单日期:"+t._s(t.printDetail.createTime))])]):t._e()]),t._v(" "),t._m(0),t._v(" "),a("div",{staticClass:"lists_head_out"},[t._v("来料检验")]),t._v(" "),t._m(1),t._v(" "),a("div",{staticClass:"lists_head_out"},[t._v("物料详情")]),t._v(" "),a("div",{staticClass:"table_content3"})]),t._v(" "),a("div",{staticClass:"footer_out"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:5}},[a("div",[t._v("制单人:"+t._s(t.printDetail.createUserName))])]),t._v(" "),a("el-col",{attrs:{span:5}},[a("div",[t._v("检验员:")])]),t._v(" "),a("el-col",{attrs:{span:5}},[a("div",[t._v("司磅员:")])]),t._v(" "),a("el-col",{attrs:{span:7}},[a("div",[t._v("客户:")])])],1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_content"},[e("table",{staticClass:"table_out",staticStyle:{width:"100%"},attrs:{border:"0",cellspacing:"0"}})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_content2"},[e("table",{staticClass:"table_out",staticStyle:{width:"100%"},attrs:{border:"0",cellspacing:"0"}})])}]};var w=a("VU/8")(b,_,!1,function(t){a("pM8W"),a("MnVj")},"data-v-39f09a46",null).exports,k={name:"truck_scales_add",components:{btnInput:c.a,dialogChooseSingleSuppliers:m.a,upload:f.a,unitSelect:y.a,dialogChooseSingleClient:h.a,dialogChooseSingleLocation:d.a,ChooseParts:g.a,print:w},data:function(){var t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/,e=function(e,a,i){t.test(a)?i():i(new Error("请填写车牌号"))};return{formData:{companyType:"供应商"},uploadAttachment:[],contentAssocList:[],advanceQueryDialogVisible:!0,model_table:{rules:{carNo:[{required:!0,message:"请填写车牌号",trigger:"blur",validator:e}]},details:this.details},details:[{trunkNo:"",client:"",carNo:"",maoZhong:0,piZhong:0,jingZhong:0,category:"",maoZhongTime:"",piZhongTime:"",dataWay:"手动添加"}],rulesForm:{company:[{required:!0,message:"请选择客户或者供应商",trigger:"blur"}],carNo:[{required:!0,message:"请填写车牌号",trigger:"blur",validator:e}]},checkDetails:[{qualityRongzhong:"",qualityBuwanshanli:"",qualityShezhe:"",qualityHuangmilv:"",qualityShuifeng:"",qualityChumilv:"",qualityZazhi:"",qualityLevel:"",qualityCode:"",qualityNo:""}],materielDetails:[],chooseSupplierVisible:!1,chooseClientrVisible:!1,chooseLocationVisible:!1,chooseMaterielsVisible:!1,printDetail:{},printList1:[],printForm1:[{title:"磅单编号",prop_:"trunkNo"},{title:"客户",prop_:"customer"},{title:"车牌号",prop_:"carNo"},{title:"毛重(kg)",prop_:"maoZhong"},{title:"皮重(kg)",prop_:"piZhong"},{title:"净重(kg)",prop_:"jingZhong"},{title:"扣重(kg)",prop_:"kouZhong"},{title:"业务类型",prop_:"category"},{title:"毛重时间",prop_:"maoZhongTime"},{title:"皮重时间",prop_:"piZhongTime"}],printList2:[],printForm2:[{title:"化验单号",prop_:"qualityCode"},{title:"物料代码",prop_:"qualityNo"},{title:"等级",prop_:"qualityLevel"},{title:"杂质",prop_:"qualityZazhi"},{title:"出米率(%)",prop_:"qualityChumilv"},{title:"水分",prop_:"qualityShuifeng"},{title:"黄米率",prop_:"qualityHuangmilv"},{title:"色泽气味",prop_:"qualityShezhe"},{title:"不完善粒",prop_:"qualityBuwanshanli"},{title:"容重",prop_:"qualityRongzhong"}],printList3:[],printForm3:[{title:"物料代码",prop_:"matterNo"},{title:"物料名称",prop_:"matterName"},{title:"规格",prop_:"matterSpecs"},{title:"主单位",prop_:"matterUnit"},{title:"主单位数量",prop_:"matterNum"},{title:"单价",prop_:"matterPrice"},{title:"金额",prop_:"matterTotalPrice"},{title:"备注",prop_:"matterRemark"}]}},mounted:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1,i=t.getDate(),l=t.getHours(),o=t.getMinutes(),n=t.getSeconds();this.today=e+"-"+a+"-"+i+" "+l+":"+o+":"+n,this.$route.query.id&&this.getDetail()},methods:r()({},Object(u.d)({removeTagNav:"tagNav/removeTagNav"}),{print:function(){document.getElementById("print_content").style.display="block",this.printDetail=this.formData,this.printList1=JSON.parse(n()(this.details)),this.printList2=JSON.parse(n()(this.checkDetails)),this.printList3=JSON.parse(n()(this.materielDetails)),console.log(this.printList1,this.printList2,this.printList3),this.$nextTick(function(){var t=document.getElementById("print_content").innerHTML;return document.body.innerHTML="<html><head><title>打印</title></head><body>"+t+"</body></html>",console.log("cesdayin"),window.print(),window.location.reload(),!1})},changeData:function(t){!t.maoZhong&&0!=t.maoZhong||!t.piZhong&&0!=t.piZhong||!t.kouZhong&&0!=t.kouZhong?t.jingZhong=0:t.jingZhong=t.maoZhong-t.piZhong-t.kouZhong},audit:function(){var t=this;this.$api.truckScaleAPI.audit({id:this.formData.id,auditStatus:1}).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.back()):t.$message({message:e.msg,type:"error"})})},back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.push({path:"/truck/truck_scales",query:{t:Date.now()}})},save:function(){var t=this;if(null!=this.uploadAttachment&&this.uploadAttachment.length>0){var e=[];this.uploadAttachment.forEach(function(t){var a={fileName:t.fileName,filePath:t.filePath};e.push(a)}),this.contentAssocList=n()(e),this.formData.uploadAttachment=e}this.formData=l()({},this.formData,this.details[0],this.checkDetails[0],{scalesMatterList:this.materielDetails}),this.$api.truckScaleAPI.save(this.formData).then(function(e){t.back()}).catch()},changeTotalPrice:function(t){isNaN(t.matterNum)||isNaN(t.matterPrice)?this.$set(t,"matterTotalPrice",0):this.$set(t,"matterTotalPrice",Number(t.matterPrice)*Number(t.matterNum))},getDetail:function(){var t=this;this.$api.truckScaleAPI.detail(this.$route.query.id).then(function(e){if(t.formData=e.data,t.materielDetails=e.scalesMatterList,t.$set(t.details,0,e.data),t.$set(t.checkDetails,0,e.data),e.uploadAttachment&&e.uploadAttachment.length>0){t.fileDocList=[];for(var a=0;a<e.uploadAttachment.length;a++){var i={fileName:e.uploadAttachment[a].fileName,filePath:e.uploadAttachment[a].filePath};t.uploadAttachment.push(i)}}}).catch()},getSupplier:function(t){t?(this.$set(this.formData,"companyId",t.id),this.$set(this.formData,"company",t.name)):(this.$set(this.formData,"companyId",""),this.$set(this.formData,"company",""))},getMateriels:function(t){var e=this;t&&t.forEach(function(t){t.matterId=t.id,t.id="",t.matterNo=t.serialNo,t.matterName=t.name,t.matterSpecs=t.specification,t.matterUnit=t.unitUomName,t.matterRemark="",e.materielDetails.push(t)})},getClient:function(t){t?(this.$set(this.formData,"companyId",t.id),this.$set(this.formData,"company",t.client_name)):(this.$set(this.formData,"companyId",""),this.$set(this.formData,"company",""))},getLocation:function(t){t?(this.$set(this.formData,"storeId",t.id),this.$set(this.formData,"store",t.name)):(this.$set(this.formData,"storeId",""),this.$set(this.formData,"store",""))},getCustomer:function(){},resetCompanyType:function(){this.formData.company="",this.formData.companyId=""},addMsg:function(){this.details.push({trunkNo:"",client:"",carNo:"",maoZhong:"",piZhong:"",jingZhong:"",category:"",maoZhongTime:"",piZhongTime:"",dataWay:"手动添加"})},addCheckMsg:function(){this.checkDetails.push({qualityRongzhong:"",qualityBuwanshanli:"",qualityShezhe:"",qualityHuangmilv:"",qualityShuifeng:"",qualityChumilv:"",qualityZazhi:"",qualityLevel:"",qualityCode:"",qualityNo:""})},clearMateriels:function(){this.materielDetails=[]},clearDetails:function(){this.details=[{trunkNo:"",client:"",carNo:"",maoZhong:0,piZhong:0,jingZhong:0,category:"",maoZhongTime:"",piZhongTime:"",dataWay:"手动添加"}]},clearCheckDetails:function(){this.checkDetails=[{qualityRongzhong:"",qualityBuwanshanli:"",qualityShezhe:"",qualityHuangmilv:"",qualityShuifeng:"",qualityChumilv:"",qualityZazhi:"",qualityLevel:"",qualityCode:"",qualityNo:""}]}})},C={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sys-box plan-box"},[a("div",{staticClass:"sys-tabs"},[-1!=t.statusId?a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.back()}}},[t._v("返回")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.save()}}},[t._v("保存")]),t._v(" "),t.formData.id&&1!=t.formData.auditStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.audit()}}},[t._v("审核")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.print()}}},[t._v("打印")])],1):t._e(),t._v(" "),a("div",{class:[0==t.statusId||178==t.statusId?"sys-form ":"sys-form readonly_form"]},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"form",attrs:{"label-width":"110px",model:t.formData,rules:t.rulesForm}},[a("div",{staticClass:"flex"},[a("el-form-item",{attrs:{prop:"companyType"}},[a("el-radio-group",{on:{change:t.resetCompanyType},model:{value:t.formData.companyType,callback:function(e){t.$set(t.formData,"companyType",e)},expression:"formData.companyType"}},[a("el-radio",{attrs:{label:"供应商"}},[t._v("供应商")]),t._v(" "),a("el-radio",{attrs:{label:"客户"}},[t._v("客户")])],1)],1),t._v(" "),"供应商"==t.formData.companyType?a("el-form-item",{staticClass:"form-inline",attrs:{label:"供应商",prop:"company"}},[a("btn-input",{attrs:{valueText:t.formData.company,valueId:t.formData.companyId,chooseVisible:t.chooseSupplierVisible,showBtn:"供应商"==t.formData.companyType},on:{"update:valueText":function(e){return t.$set(t.formData,"company",e)},"update:value-text":function(e){return t.$set(t.formData,"company",e)},"update:valueId":function(e){return t.$set(t.formData,"companyId",e)},"update:value-id":function(e){return t.$set(t.formData,"companyId",e)},"update:chooseVisible":function(e){t.chooseSupplierVisible=e},"update:choose-visible":function(e){t.chooseSupplierVisible=e}}})],1):t._e(),t._v(" "),"客户"==t.formData.companyType?a("el-form-item",{staticClass:"form-inline",attrs:{label:"客户",prop:"company"}},[a("btn-input",{attrs:{valueText:t.formData.company,valueId:t.formData.companyId,chooseVisible:t.chooseClientrVisible,showBtn:"客户"==t.formData.companyType},on:{"update:valueText":function(e){return t.$set(t.formData,"company",e)},"update:value-text":function(e){return t.$set(t.formData,"company",e)},"update:valueId":function(e){return t.$set(t.formData,"companyId",e)},"update:value-id":function(e){return t.$set(t.formData,"companyId",e)},"update:chooseVisible":function(e){t.chooseClientrVisible=e},"update:choose-visible":function(e){t.chooseClientrVisible=e}}})],1):t._e(),t._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"仓库",prop:"store"}},[a("btn-input",{attrs:{valueText:t.formData.store,valueId:t.formData.storeId,chooseVisible:t.chooseLocationVisible},on:{"update:valueText":function(e){return t.$set(t.formData,"store",e)},"update:value-text":function(e){return t.$set(t.formData,"store",e)},"update:valueId":function(e){return t.$set(t.formData,"storeId",e)},"update:value-id":function(e){return t.$set(t.formData,"storeId",e)},"update:chooseVisible":function(e){t.chooseLocationVisible=e},"update:choose-visible":function(e){t.chooseLocationVisible=e}}})],1),t._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"磅单日期",prop:"trunkTime"}},[a("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:t.formData.createTime,callback:function(e){t.$set(t.formData,"createTime",e)},expression:"formData.createTime"}})],1)],1)]),t._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[t._v("地磅信息")]),t._v(" "),a("el-form",{ref:"formTable",attrs:{rules:t.rulesForm,model:t.formData}},[a("el-form-item",{staticClass:"childlist"},[a("div",{staticClass:"sys-operate mb"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.clearDetails}},[t._v("清空")])],1),t._v(" "),t.details.length?a("el-table",{ref:"tb",attrs:{data:t.details,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"},border:""}},[a("el-table-column",{attrs:{label:"源单编号",prop:"trunkNo",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.trunkNo))])]}}],null,!1,3412729937)}),t._v(" "),a("el-table-column",{attrs:{label:"客户",prop:"client",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.client,callback:function(a){t.$set(e.row,"client",a)},expression:"scope.row.client"}})]}}],null,!1,3135678780)}),t._v(" "),a("el-table-column",{attrs:{label:"车牌号",prop:"carNo",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.carNo,callback:function(a){t.$set(e.row,"carNo",a)},expression:"scope.row.carNo"}})]}}],null,!1,1529210548)}),t._v(" "),a("el-table-column",{attrs:{label:"毛重(kg)",prop:"maoZhong",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{min:0,disabled:179==t.statusId,size:"small","controls-position":"right"},on:{change:function(a){return t.changeData(e.row)}},model:{value:e.row.maoZhong,callback:function(a){t.$set(e.row,"maoZhong",a)},expression:"scope.row.maoZhong"}})]}}],null,!1,1338646342)}),t._v(" "),a("el-table-column",{attrs:{label:"皮重(kg)",prop:"piZhong",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{min:0,disabled:179==t.statusId,max:e.row.maoZhong,size:"small","controls-position":"right"},on:{change:function(a){return t.changeData(e.row)}},model:{value:e.row.piZhong,callback:function(a){t.$set(e.row,"piZhong",a)},expression:"scope.row.piZhong"}})]}}],null,!1,3484204041)}),t._v(" "),a("el-table-column",{attrs:{label:"扣重(kg)",prop:"kouZhong",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{min:0,disabled:179==t.statusId,max:e.row.maoZhong,size:"small","controls-position":"right"},on:{change:function(a){return t.changeData(e.row)}},model:{value:e.row.kouZhong,callback:function(a){t.$set(e.row,"kouZhong",a)},expression:"scope.row.kouZhong"}})]}}],null,!1,95211553)}),t._v(" "),a("el-table-column",{attrs:{label:"净重(kg)",prop:"jingZhong",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{min:0,size:"small","controls-position":"right",disabled:""},model:{value:e.row.jingZhong,callback:function(a){t.$set(e.row,"jingZhong",a)},expression:"scope.row.jingZhong"}})]}}],null,!1,280058522)}),t._v(" "),a("el-table-column",{attrs:{label:"业务类型",prop:"category",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.category,callback:function(a){t.$set(e.row,"category",a)},expression:"scope.row.category"}})]}}],null,!1,497954005)}),t._v(" "),a("el-table-column",{attrs:{label:"毛重时间",prop:"maoZhongTime",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-date-picker",{attrs:{format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:e.row.maoZhongTime,callback:function(a){t.$set(e.row,"maoZhongTime",a)},expression:"scope.row.maoZhongTime"}})]}}],null,!1,2850800312)}),t._v(" "),a("el-table-column",{attrs:{label:"皮重时间",prop:"piZhongTime",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-date-picker",{attrs:{format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择日期"},model:{value:e.row.piZhongTime,callback:function(a){t.$set(e.row,"piZhongTime",a)},expression:"scope.row.piZhongTime"}})]}}],null,!1,3555893314)}),t._v(" "),a("el-table-column",{attrs:{label:"数据来源",prop:"dataWay",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.dataWay,callback:function(a){t.$set(e.row,"dataWay",a)},expression:"scope.row.dataWay"}})]}}],null,!1,211977530)})],1):t._e()],1)],1),t._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[t._v("质检信息")]),t._v(" "),a("el-form",{ref:"formTable"},[a("el-form-item",{staticClass:"childlist"},[a("div",{staticClass:"sys-operate mb"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.clearCheckDetails}},[t._v("清空")])],1),t._v(" "),t.checkDetails.length?a("el-table",{ref:"tb",attrs:{data:t.checkDetails,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"},border:""}},[a("el-table-column",{attrs:{label:"化验单号",prop:"qualityNo",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityNo,callback:function(a){t.$set(e.row,"qualityNo",a)},expression:"scope.row.qualityNo"}})]}}],null,!1,119544521)}),t._v(" "),a("el-table-column",{attrs:{label:"物料代码",prop:"qualityCode",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityCode,callback:function(a){t.$set(e.row,"qualityCode",a)},expression:"scope.row.qualityCode"}})]}}],null,!1,964163877)}),t._v(" "),a("el-table-column",{attrs:{label:"等级",prop:"qualityLevel",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityLevel,callback:function(a){t.$set(e.row,"qualityLevel",a)},expression:"scope.row.qualityLevel"}})]}}],null,!1,2975064350)}),t._v(" "),a("el-table-column",{attrs:{label:"杂质",prop:"qualityZazhi",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityZazhi,callback:function(a){t.$set(e.row,"qualityZazhi",a)},expression:"scope.row.qualityZazhi"}})]}}],null,!1,393420968)}),t._v(" "),a("el-table-column",{attrs:{label:"出米率(%)",prop:"qualityChumilv",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityChumilv,callback:function(a){t.$set(e.row,"qualityChumilv",a)},expression:"scope.row.qualityChumilv"}})]}}],null,!1,3655324840)}),t._v(" "),a("el-table-column",{attrs:{label:"水分",prop:"qualityShuifeng",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityShuifeng,callback:function(a){t.$set(e.row,"qualityShuifeng",a)},expression:"scope.row.qualityShuifeng"}})]}}],null,!1,1603725125)}),t._v(" "),a("el-table-column",{attrs:{label:"黄米率(%)",prop:"qualityHuangmilv",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityHuangmilv,callback:function(a){t.$set(e.row,"qualityHuangmilv",a)},expression:"scope.row.qualityHuangmilv"}})]}}],null,!1,3572682787)}),t._v(" "),a("el-table-column",{attrs:{label:"色泽气味",prop:"qualityShezhe",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityShezhe,callback:function(a){t.$set(e.row,"qualityShezhe",a)},expression:"scope.row.qualityShezhe"}})]}}],null,!1,3737811905)}),t._v(" "),a("el-table-column",{attrs:{label:"不完善粒",prop:"qualityBuwanshanli",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityBuwanshanli,callback:function(a){t.$set(e.row,"qualityBuwanshanli",a)},expression:"scope.row.qualityBuwanshanli"}})]}}],null,!1,659647766)}),t._v(" "),a("el-table-column",{attrs:{label:"容重",prop:"qualityRongzhong",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.qualityRongzhong,callback:function(a){t.$set(e.row,"qualityRongzhong",a)},expression:"scope.row.qualityRongzhong"}})]}}],null,!1,844108552)})],1):t._e()],1),t._v(" "),a("el-form-item",{staticClass:"remarkstyle",attrs:{label:"附件","label-width":"50px"}},[t.advanceQueryDialogVisible?a("upload",{attrs:{title:"",label_width:"0",attachment:t.uploadAttachment},on:{"update:attachment":function(e){t.uploadAttachment=e}}}):t._e()],1)],1),t._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[t._v("磅单信息")]),t._v(" "),a("el-form",{ref:"formTable"},[a("el-form-item",{staticClass:"childlist"},[a("div",{staticClass:"sys-operate mb"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.chooseMaterielsVisible=!0}}},[t._v("选择物料")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.clearMateriels}},[t._v("删除")])],1),t._v(" "),a("el-table",{ref:"tb",attrs:{data:t.materielDetails,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"},border:""}},[a("el-table-column",{attrs:{label:"物料代码",prop:"matterNo",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.matterNo))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"物料名称",prop:"matterName",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.matterName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"规格",prop:"matterSpecs",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.matterSpecs))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"主单位",prop:"matterUnit",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.matterUnit))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"主单位数量",prop:"matterNum",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{min:0,disabled:179==t.statusId,size:"small","controls-position":"right"},on:{change:function(a){return t.changeTotalPrice(e.row)}},model:{value:e.row.matterNum,callback:function(a){t.$set(e.row,"matterNum",a)},expression:"scope.row.matterNum"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"单价(元)",prop:"matterPrice",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input-number",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{min:0,disabled:179==t.statusId,size:"small","controls-position":"right"},on:{change:function(a){return t.changeTotalPrice(e.row)}},model:{value:e.row.matterPrice,callback:function(a){t.$set(e.row,"matterPrice",a)},expression:"scope.row.matterPrice"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"金额(元)",prop:"matterTotalPrice",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.matterTotalPrice))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"备注",prop:"matterRemark",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-input",{staticClass:"inputClass",staticStyle:{width:"100%"},attrs:{size:"small","controls-position":"right",clearable:""},model:{value:e.row.matterRemark,callback:function(a){t.$set(e.row,"matterRemark",a)},expression:"scope.row.matterRemark"}})]}}])})],1)],1)],1)],1)]),t._v(" "),a("ChooseParts",{attrs:{visible:t.chooseMaterielsVisible},on:{"update:visible":function(e){t.chooseMaterielsVisible=e},change:t.getMateriels}}),t._v(" "),a("dialogChooseSingleSuppliers",{attrs:{visible:t.chooseSupplierVisible},on:{"update:visible":function(e){t.chooseSupplierVisible=e},change:t.getSupplier}}),t._v(" "),a("dialogChooseSingleClient",{attrs:{visible:t.chooseClientrVisible},on:{"update:visible":function(e){t.chooseClientrVisible=e},change:t.getClient}}),t._v(" "),a("dialogChooseSingleLocation",{attrs:{visible:t.chooseLocationVisible},on:{"update:visible":function(e){t.chooseLocationVisible=e},change:t.getLocation}}),t._v(" "),a("div",{staticStyle:{margin:"0 auto",display:"none"},attrs:{id:"print_content"}},[a("print",{attrs:{printDetail:t.printDetail,printList1:t.printList1,printForm1:t.printForm1,printList2:t.printList2,printForm2:t.printForm2,printList3:t.printList3,printForm3:t.printForm3,printDirection:!0}})],1)],1)},staticRenderFns:[]};var D=a("VU/8")(k,C,!1,function(t){a("IUpa"),a("pEDr"),a("dvAK")},"data-v-13a5ce68",null);e.default=D.exports},IUpa:function(t,e){},MnVj:function(t,e){},dvAK:function(t,e){},pEDr:function(t,e){},pM8W:function(t,e){}}); |