1 line
35 KiB
JavaScript
1 line
35 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1818cf5c"],{"0e0b":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAb5JREFUKBVjZCAChK76z/zv5o8KJkaGg6trOI/AtDDBGLjo////M/65/mMukDb4+49hUUjjd2eYWoKaQ5q/T2Bg/O8B1PCElZHJ+y8Dw5yglu/yIAPwag5q/N70j4HRkEWYU4WBgVHsz/+/GQyMDN9Z/zNx4dUc3PSt6D/jfy8uAQ6f1dmMX9hYGaqBPkhjZGJoX1nLfh2n5qCm7yn/GRiTOLg4PZbmMX6K7Pkv8usXw3ZGRsbCdTWci0EaQQDD2UAbwxj+M5SzsXO4LS9hfJPU+Z/3x7fvO4AqF62t45gB0QYhGZE5IY0/PP8y/J/GwsTgtLqW837C/P8cHx//2M7wn/H0+nqOMmS1IDbcZmAI2v1j/L8WGJczQRob9v9n+fT4+0qgK25j0wjSDLYZFJfBTd+fAQOj7x/QyYz/meIZGP6H/2dkYNev5YhsYGT8B1KMDsA2R7T8VAJKPFlby9XN+J8xFBjKa4EaRUTFOWJwaQQZBNb8698/I6AbHgQ2f3cChqgXUPwUCw9H8Kx0xt8gRbgAWDNQAz8warSBjkv6x8jwDBy3RYzfcWmCiTMCU5EjjEMqzQLUkE6qJph6AErYncWlgAYnAAAAAElFTkSuQmCC"},"27f2":function(e,t,a){"use strict";a.d(t,"h",(function(){return i})),a.d(t,"R",(function(){return n})),a.d(t,"C",(function(){return l})),a.d(t,"ib",(function(){return s})),a.d(t,"n",(function(){return o})),a.d(t,"X",(function(){return d})),a.d(t,"I",(function(){return c})),a.d(t,"ob",(function(){return u})),a.d(t,"w",(function(){return m})),a.d(t,"v",(function(){return g})),a.d(t,"vb",(function(){return p})),a.d(t,"i",(function(){return b})),a.d(t,"S",(function(){return f})),a.d(t,"D",(function(){return h})),a.d(t,"jb",(function(){return y})),a.d(t,"cb",(function(){return x})),a.d(t,"ub",(function(){return v})),a.d(t,"N",(function(){return E})),a.d(t,"xb",(function(){return M})),a.d(t,"e",(function(){return $})),a.d(t,"O",(function(){return F})),a.d(t,"z",(function(){return j})),a.d(t,"u",(function(){return T})),a.d(t,"s",(function(){return O})),a.d(t,"t",(function(){return N})),a.d(t,"f",(function(){return P})),a.d(t,"P",(function(){return w})),a.d(t,"A",(function(){return C})),a.d(t,"db",(function(){return k})),a.d(t,"g",(function(){return D})),a.d(t,"Q",(function(){return A})),a.d(t,"B",(function(){return _})),a.d(t,"eb",(function(){return B})),a.d(t,"p",(function(){return S})),a.d(t,"Z",(function(){return I})),a.d(t,"K",(function(){return L})),a.d(t,"rb",(function(){return W})),a.d(t,"q",(function(){return U})),a.d(t,"ab",(function(){return R})),a.d(t,"L",(function(){return V})),a.d(t,"sb",(function(){return z})),a.d(t,"r",(function(){return q})),a.d(t,"bb",(function(){return G})),a.d(t,"M",(function(){return J})),a.d(t,"tb",(function(){return Q})),a.d(t,"k",(function(){return Y})),a.d(t,"U",(function(){return H})),a.d(t,"F",(function(){return Z})),a.d(t,"lb",(function(){return K})),a.d(t,"wb",(function(){return X})),a.d(t,"yb",(function(){return ee})),a.d(t,"o",(function(){return te})),a.d(t,"Y",(function(){return ae})),a.d(t,"J",(function(){return re})),a.d(t,"qb",(function(){return ie})),a.d(t,"pb",(function(){return ne})),a.d(t,"l",(function(){return le})),a.d(t,"V",(function(){return se})),a.d(t,"G",(function(){return oe})),a.d(t,"mb",(function(){return de})),a.d(t,"b",(function(){return ce})),a.d(t,"Bb",(function(){return ue})),a.d(t,"gb",(function(){return me})),a.d(t,"m",(function(){return ge})),a.d(t,"W",(function(){return pe})),a.d(t,"H",(function(){return be})),a.d(t,"nb",(function(){return fe})),a.d(t,"j",(function(){return he})),a.d(t,"T",(function(){return ye})),a.d(t,"E",(function(){return xe})),a.d(t,"kb",(function(){return ve})),a.d(t,"a",(function(){return Ee})),a.d(t,"hb",(function(){return Me})),a.d(t,"d",(function(){return $e})),a.d(t,"Ab",(function(){return Fe})),a.d(t,"x",(function(){return je})),a.d(t,"fb",(function(){return Te})),a.d(t,"c",(function(){return Oe})),a.d(t,"zb",(function(){return Ne})),a.d(t,"y",(function(){return Pe}));var r=a("22b6"),i=function(e){return Object(r.b)("xmgl/materialCategory/add",e)},n=function(e){return Object(r.b)("xmgl/materialCategory/edit",e)},l=function(e){return Object(r.b)("xmgl/materialCategory/delete",e)},s=function(e){return Object(r.b)("xmgl/materialCategory/selectList",e)},o=function(e){return Object(r.b)("xmgl/materialRecord/add",e)},d=function(e){return Object(r.b)("xmgl/materialRecord/edit",e)},c=function(e){return Object(r.b)("xmgl/materialRecord/delete",e)},u=function(e){return Object(r.b)("xmgl/materialRecord/selectList",e)},m=function(e){return Object(r.b)("xmgl/materialRecord/copyMaterial",e)},g=function(e){return Object(r.b)("xmgl/materialRecord/copyCategory",e)},p=function(e){return Object(r.b)("xmgl/materialRecord/selectNotCheckMaterialList",e)},b=function(e){return Object(r.b)("xmgl/materialConversionUnit/add",e)},f=function(e){return Object(r.b)("xmgl/materialConversionUnit/edit",e)},h=function(e){return Object(r.b)("xmgl/materialConversionUnit/delete",e)},y=function(e){return Object(r.b)("xmgl/materialConversionUnit/selectList",e)},x=function(e){return Object(r.b)("xmgl/projectCooperationUnit/edit",e)},v=function(e){return Object(r.b)("xmgl/projectCooperationUnit/saveCheckCooperationUnit",e)},E=function(e){return Object(r.b)("xmgl/projectCooperationUnit/deleteBatch",e)},M=function(e){return Object(r.b)("xmgl/projectCooperationUnit/selectProjectCooperationUnitList",e)},$=function(e){return Object(r.b)("xmgl/constructionTroops/add",e)},F=function(e){return Object(r.b)("xmgl/constructionTroops/edit",e)},j=function(e){return Object(r.b)("xmgl/constructionTroops/delete",e)},T=function(e){return Object(r.b)("xmgl/constructionTroops/list",e)},O=function(e){return Object(r.b)("xmgl/constructionTroops/selectList",e)},N=function(e){return Object(r.b)("xmgl/engineeringSubItems/selectList",e)},P=function(e){return Object(r.b)("xmgl/engineeringPart/add",e)},w=function(e){return Object(r.b)("xmgl/engineeringPart/edit",e)},C=function(e){return Object(r.b)("xmgl/engineeringPart/delete",e)},k=function(e){return Object(r.b)("xmgl/engineeringPart/selectList",e)},D=function(e){return Object(r.b)("xmgl/engineeringPartMaterial/add",e)},A=function(e){return Object(r.b)("xmgl/engineeringPartMaterial/edit",e)},_=function(e){return Object(r.b)("xmgl/engineeringPartMaterial/delete",e)},B=function(e){return Object(r.b)("xmgl/engineeringPartMaterial/selectList",e)},S=function(e){return Object(r.b)("xmgl/procurementContractInfo/add",e)},I=function(e){return Object(r.b)("xmgl/procurementContractInfo/edit",e)},L=function(e){return Object(r.b)("xmgl/procurementContractInfo/delete",e)},W=function(e){return Object(r.b)("xmgl/procurementContractInfo/selectProcurementContractPage",e)},U=function(e){return Object(r.b)("xmgl/procurementContractMaterial/addBatchMaterial",e)},R=function(e){return Object(r.b)("xmgl/procurementContractMaterial/edit",e)},V=function(e){return Object(r.b)("xmgl/procurementContractMaterial/delete",e)},z=function(e){return Object(r.b)("xmgl/procurementContractMaterial/selectList",e)},q=function(e){return Object(r.b)("xmgl/procurementContractSurcharge/add",e)},G=function(e){return Object(r.b)("xmgl/procurementContractSurcharge/edit",e)},J=function(e){return Object(r.b)("xmgl/procurementContractSurcharge/delete",e)},Q=function(e){return Object(r.b)("xmgl/procurementContractSurcharge/selectList",e)},Y=function(e){return Object(r.b)("xmgl/materialPriceLibrary/add",e)},H=function(e){return Object(r.b)("xmgl/materialPriceLibrary/edit",e)},Z=function(e){return Object(r.b)("xmgl/materialPriceLibrary/delete",e)},K=function(e){return Object(r.b)("xmgl/materialPriceLibrary/selectMaterialPriceLibraryPage",e)},X=function(e){return Object(r.b)("xmgl/procurementContractMaterial/selectProcurementContractMaterialList",e)},ee=function(e){return Object(r.b)("xmgl/materialRecord/selectProjectMaterialList",e)},te=function(e){return Object(r.b)("xmgl/materialWarehouse/add",e)},ae=function(e){return Object(r.b)("xmgl/materialWarehouse/edit",e)},re=function(e){return Object(r.b)("xmgl/materialWarehouse/delete",e)},ie=function(e){return Object(r.b)("xmgl/materialWarehouse/selectMaterialWarehousePage",e)},ne=function(e){return Object(r.b)("xmgl/materialWarehouse/selectMaterialWarehouseList",e)},le=function(e){return Object(r.b)("xmgl/materialPurchaseOrder/add",e)},se=function(e){return Object(r.b)("xmgl/materialPurchaseOrder/edit",e)},oe=function(e){return Object(r.b)("xmgl/materialPurchaseOrder/delete",e)},de=function(e){return Object(r.b)("xmgl/materialPurchaseOrder/selectMaterialPurchaseOrderPage",e)},ce=function(e){return Object(r.b)("xmgl/materialPurchaseOrder/abandonPurchaseOrder",e)},ue=function(e){return Object(r.b)("xmgl/materialPurchaseOrder/updatePurchaseOrder",e)},me=function(e){return Object(r.b)("xmgl/materialPurchaseOrder/getMaterialPurchaseInfo",e)},ge=function(e){return Object(r.b)("xmgl/materialPurchaseWayBill/add",e)},pe=function(e){return Object(r.b)("xmgl/materialPurchaseWayBill/edit",e)},be=function(e){return Object(r.b)("xmgl/materialPurchaseWayBill/delete",e)},fe=function(e){return Object(r.b)("xmgl/materialPurchaseWayBill/selectMaterialPurchaseWayBillPage",e)},he=function(e){return Object(r.b)("xmgl/materialPoundBill/add",e)},ye=function(e){return Object(r.b)("xmgl/materialPoundBill/edit",e)},xe=function(e){return Object(r.b)("xmgl/materialPoundBill/delete",e)},ve=function(e){return Object(r.b)("xmgl/materialPoundBill/selectMaterialPoundBillPage",e)},Ee=function(e){return Object(r.b)("xmgl/materialPoundBill/abandonPoundBill",e)},Me=function(e){return Object(r.a)("/xmgl/materialType/list",e)},$e=function(e){return Object(r.b)("/xmgl/materialType/addMaterialType",e)},Fe=function(e){return Object(r.b)("/xmgl/materialType/updateMaterialType",e)},je=function(e){return Object(r.a)("/xmgl/materialType/deleteById",e)},Te=function(e){return Object(r.a)("/xmgl/materialDetails/list",e)},Oe=function(e){return Object(r.b)("/xmgl/materialDetails/addMaterialDetails",e)},Ne=function(e){return Object(r.b)("/xmgl/materialDetails/updateMaterialDetails",e)},Pe=function(e){return Object(r.a)("/xmgl/materialDetails/deleteById",e)}},"2d1a":function(e,t,a){"use strict";a.r(t);var r=(a("4160"),a("fb6a"),a("159b"),a("27f2")),i={mounted:function(){this.getList(),this.getAllWarehouse(),this.getAllCooperationUnit(1),this.getAllCooperationUnit(2),this.getAllMaterial()},data:function(){return{afterVal:"",addEditRules:{carNumber:[{required:!0,message:this.$t("message.carManage.required"),trigger:"blur"}],billNumber:[{required:!0,message:this.$t("message.carManage.required"),trigger:"blur"}],poundType:[{required:!0,message:this.$t("message.companyDiagram.Mandatory"),trigger:"change"}],billType:[{required:!0,message:this.$t("message.companyDiagram.Mandatory"),trigger:"change"}],weighingGrossTime:[{required:!0,message:this.$t("message.companyDiagram.Mandatory"),trigger:"change"}],weighingSkinTime:[{required:!0,message:this.$t("message.companyDiagram.Mandatory"),trigger:"change"}],grossWeight:[{required:!0,message:this.$t("message.carManage.required"),trigger:"blur"}],tare:[{required:!0,message:this.$t("message.carManage.required"),trigger:"blur"}],materialId:[{required:!0,message:this.$t("message.companyDiagram.Mandatory"),trigger:"change"}]},addEditForm:{billNumber:"",billType:"",carNumber:"",confirmNum:0,confirmType:1,contractName:"",deductionNum:0,deductionRatio:0,extraCharge:0,grossWeight:0,issuingEnterpriseId:"",materialId:"",materialsUsedApply:"",originalBillNumber:"",poundType:1,projectSn:"",receivingEnterpriseId:"",remarks:"",scaleFactor:0,state:1,tare:0,unitPrice:0,usedPart:"",warehouseId:"",wayBillNum:0,weighingGrossTime:"",weighingSkinTime:""},pagInfo:{pageNo:1,pageSize:10,total:0},List:[],Popup:{type:"add",show:!1},poundTypeArr:["收料","发料","直入直出"],poundStateArr:["在使用","废弃"],billTypeArr_old:[{name:"采购",id:1},{name:"调入",id:2},{name:"甲供",id:3},{name:"退货",id:4},{name:"租凭",id:5},{name:"发料",id:6},{name:"废旧物资",id:7},{name:"调出",id:8},{name:"售出",id:9},{name:"退租",id:10},{name:"直入直出",id:11}],billTypeArr:[],confirmTypeArr:["无","运单量","实际量","较小值","输入量"],fixedData:{value1:0,value2:0,value3:0,value4:0,value5:"",value6:"正常",computeUnit:"",adjustStartValue:"",adjustEndValue:"",deviationType:1},allWarehouseList:[],allCooperationUnitList:[],allCooperationUnitList2:[],allMaterialList:[],searchMaterialName:"",searchType:"1"}},methods:{getAllWarehouse:function(){var e=this;Object(r.pb)({projectSn:this.$store.state.projectSn}).then((function(t){e.allWarehouseList=t.result}))},getAllCooperationUnit:function(e){var t=this;Object(r.xb)({projectSn:this.$store.state.projectSn,cooperationType:e}).then((function(a){1==e?t.allCooperationUnitList=a.result:t.allCooperationUnitList2=a.result}))},getAllMaterial:function(){var e=this;Object(r.yb)({projectSn:this.$store.state.projectSn,materialName:""}).then((function(t){e.allMaterialList=t.result}))},changeMaterial:function(){var e=this;this.allMaterialList.forEach((function(t){if(t.id==e.addEditForm.materialId){var a=1==t.deviationType?"%":"吨";return e.fixedData.computeUnit=t.computeUnit,e.fixedData.value5=t.adjustStartValue+a+" ~ "+t.adjustEndValue+a,e.fixedData.adjustStartValue=t.adjustStartValue,e.fixedData.adjustEndValue=t.adjustEndValue,e.fixedData.deviationType=t.deviationType,void e.computeDeviationResult()}}))},changePoundType:function(){1==this.addEditForm.poundType?(this.billTypeArr=this.billTypeArr_old.slice(0,5),this.addEditForm.billType=""):2==this.addEditForm.poundType?(this.billTypeArr=this.billTypeArr_old.slice(5,10),this.addEditForm.billType=""):3==this.addEditForm.poundType&&(this.billTypeArr=this.billTypeArr_old.slice(10,11),this.addEditForm.billType="")},changeConfirmType:function(){this.addEditForm.confirmNum=0,5==this.addEditForm.confirmType?this.addEditForm.confirmNum="":2==this.addEditForm.confirmType?this.addEditForm.confirmNum=this.addEditForm.wayBillNum:3!=this.addEditForm.confirmType&&4!=this.addEditForm.confirmType||(this.addEditForm.confirmNum=this.fixedData.value3)},listenerValue:function(){""==this.addEditForm.wayBillNum||""==this.addEditForm.scaleFactor?this.fixedData.value1=0:(this.fixedData.value1=this.addEditForm.wayBillNum*this.addEditForm.scaleFactor,this.fixedData.value4=this.fixedData.value2-this.fixedData.value1,this.fixedData.value3=this.fixedData.value2/this.addEditForm.scaleFactor,this.computeDeviationResult())},listenerValue2:function(e){""==this.addEditForm.grossWeight&&(this.addEditForm.grossWeight=""),""==this.addEditForm.tare&&(this.addEditForm.tare=""),this.afterVal=this.addEditForm.grossWeight-this.addEditForm.tare;var t=this.addEditForm.grossWeight-this.addEditForm.tare;1==e?this.addEditForm.deductionNum=t*(this.addEditForm.deductionRatio/100):2==e&&(this.addEditForm.deductionRatio=this.addEditForm.deductionNum/t*100),this.fixedData.value2=t-this.addEditForm.deductionNum,""!=this.fixedData.value2&&""!=this.addEditForm.scaleFactor&&0!=this.fixedData.value2&&0!=this.addEditForm.scaleFactor&&(this.fixedData.value3=this.fixedData.value2/this.addEditForm.scaleFactor),this.fixedData.value4=this.fixedData.value2-this.fixedData.value1,this.computeDeviationResult()},computeDeviationResult:function(){""!=this.fixedData.adjustStartValue&&this.fixedData.value4<this.fixedData.adjustStartValue&&(this.fixedData.value6="超负差"),""!=this.fixedData.adjustEndValue&&this.fixedData.value4>this.fixedData.adjustEndValue&&(this.fixedData.value6="超正差")},handle:function(e,t){this.Popup={type:e,show:t}},add:function(){this.changePoundType(),this.handle("add",!0)},edit:function(e){this.changePoundType(),this.addEditForm=JSON.parse(JSON.stringify(e)),this.listenerValue2(),this.listenerValue(),this.changeMaterial(),this.handle("edit",!0)},deleteDev:function(e){var t=this;this.$confirm(this.$t("message.personnelPosition.beaconManage.table.confirmText")+"【"+e.warehouseName+"】?",this.$t("message.personnelPosition.beaconManage.table.Tips"),{confirmButtonText:this.$t("message.personnelPosition.confirmButtonText"),cancelButtonText:this.$t("message.personnelPosition.cancelButtonText"),type:"warning"}).then((function(){Object(r.E)({id:e.id}).then((function(e){e.success&&(t.$message.success(e.message),t.getList())}))}))},abandonPoundBillFn:function(e){var t=this;this.$confirm("确认废弃该记录吗?",this.$t("message.personnelPosition.beaconManage.table.Tips"),{confirmButtonText:this.$t("message.personnelPosition.confirmButtonText"),cancelButtonText:this.$t("message.personnelPosition.cancelButtonText"),type:"warning"}).then((function(){Object(r.a)({id:e.id}).then((function(e){e.success&&(t.$message.success(e.message),t.getList())}))}))},submit:function(){var e=this,t=JSON.parse(JSON.stringify(this.addEditForm));t.projectSn=this.$store.state.projectSn,this.$refs.addEditForm.validate((function(a){if(!a)return!1;t.actualWeight=e.fixedData.value2,t.realityNumber=e.fixedData.value3,t.waybillWeight=e.fixedData.value1,"add"===e.Popup.type?Object(r.j)(t).then((function(t){t.success&&(e.$message.success(t.message),e.getList())})):"edit"===e.Popup.type&&(delete t.createTime,Object(r.T)(t).then((function(t){t.success&&(e.$message.success(t.message),e.getList())}))),e.Popup.show=!1}))},refresh:function(){this.pagInfo.pageNo=1,this.pagInfo.pageSize=10,this.searchMaterialName="",this.getList()},getList:function(){var e=this;Object(r.kb)({pageNo:this.pagInfo.pageNo,pageSize:this.pagInfo.pageSize,projectSn:this.$store.state.projectSn,materialName:this.searchMaterialName,type:this.searchType}).then((function(t){t.success&&(e.List=t.result.records,e.pagInfo.total=t.result.total)}))},close:function(){var e=this;this.addEditForm={},this.$nextTick((function(){e.$refs.addEditForm.clearValidate()}))},SizeChange:function(e){this.pagInfo.pageSize=e,this.getList()},CurrentChange:function(e){this.pagInfo.pageNo=e,this.getList()}}},n=(a("31da"),a("2877")),l=Object(n.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"fullHeight whiteBlock"},[r("div",{staticClass:"topBox"},[r("div",{staticClass:"pageTitle"},[e._v(e._s(e.$t("message.energyManage.material.parameter")))]),r("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,size:"medium"}},[r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.materialName")}},[r("el-input",{attrs:{placeholder:e.$t("message.deviceManage.placeholder")},model:{value:e.searchMaterialName,callback:function(t){e.searchMaterialName=t},expression:"searchMaterialName"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v(e._s(e.$t("message.deviceManage.query")))]),r("el-button",{attrs:{type:"warning",size:"medium",plain:""},on:{click:e.refresh}},[e._v(e._s(e.$t("message.deviceManage.refresh")))]),r("el-button",{attrs:{type:"primary",size:"medium"},on:{click:e.add}},[e._v(e._s(e.$t("message.deviceManage.add")))])],1)],1),r("el-tabs",{staticStyle:{"margin-top":"-10px"},on:{"tab-click":e.getList},model:{value:e.searchType,callback:function(t){e.searchType=t},expression:"searchType"}},[r("el-tab-pane",{attrs:{label:e.$t("message.energyManage.material.takeBackMaterial"),name:"1"}}),r("el-tab-pane",{attrs:{label:e.$t("message.energyManage.material.giveMaterial"),name:"2"}}),r("el-tab-pane",{attrs:{label:e.$t("message.energyManage.material.intoAndOut"),name:"3"}}),r("el-tab-pane",{attrs:{label:e.$t("message.energyManage.material.cancellation"),name:"4"}})],1)],1),r("el-table",{staticClass:"tables",attrs:{data:e.List}},[r("el-table-column",{attrs:{type:"index",label:e.$t("message.energyManage.material.serialNo"),width:"55",align:"center"}}),r("el-table-column",{attrs:{prop:"billNumber",label:e.$t("message.energyManage.material.receiptNumber"),align:"center"}}),r("el-table-column",{attrs:{prop:"originalBillNumber",label:e.$t("message.energyManage.material.originReceiptNumber"),align:"center"}}),r("el-table-column",{attrs:{prop:"carNumber",label:e.$t("message.energyManage.material.carNo"),align:"center"}}),r("el-table-column",{attrs:{prop:"billType",label:e.$t("message.energyManage.material.type"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.billTypeArr_old[t.row.billType-1].name))]}}])}),r("el-table-column",{attrs:{prop:"receivingEnterpriseName",label:e.$t("message.energyManage.material.takeBackCompany"),align:"center"}}),r("el-table-column",{attrs:{prop:"issuingEnterpriseName",label:e.$t("message.energyManage.material.giveCompany"),align:"center"}}),r("el-table-column",{attrs:{prop:"materialName",label:e.$t("message.energyManage.material.material"),align:"center"}}),r("el-table-column",{attrs:{prop:"weighingGrossTime",label:e.$t("message.energyManage.material.inTime"),align:"center"}}),r("el-table-column",{attrs:{prop:"weighingSkinTime",label:e.$t("message.energyManage.material.outTime"),align:"center"}}),r("el-table-column",{attrs:{prop:"grossWeight",label:e.$t("message.energyManage.material.grossWeight"),align:"center"}}),r("el-table-column",{attrs:{prop:"tare",label:e.$t("message.energyManage.material.tare"),align:"center"}}),r("el-table-column",{attrs:{prop:"warehouseName",label:e.$t("message.energyManage.material.weight"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.grossWeight-t.row.tare)+" ")]}}])}),r("el-table-column",{attrs:{prop:"deductionNum",label:e.$t("message.energyManage.material.weight2"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.deductionRatio)+"% / "+e._s(t.row.deductionNum)+e._s(e.$t("message.energyManage.material.weight3"))+" ")]}}])}),r("el-table-column",{attrs:{prop:"waybillWeight",label:e.$t("message.energyManage.material.wayWeight"),align:"center"}}),r("el-table-column",{attrs:{prop:"wayBillNum",label:e.$t("message.energyManage.material.wayNum"),align:"center"}}),r("el-table-column",{attrs:{prop:"actualWeight",label:e.$t("message.energyManage.material.realityWeight"),align:"center"}}),r("el-table-column",{attrs:{prop:"contractName",label:e.$t("message.energyManage.material.contractName"),align:"center"}}),r("el-table-column",{attrs:{prop:"extraCharge",label:e.$t("message.energyManage.material.extraCharge"),align:"center"}}),r("el-table-column",{attrs:{prop:"scaleFactor",label:e.$t("message.energyManage.material.scaleFactor"),align:"center"}}),r("el-table-column",{attrs:{prop:"realityNumber",label:e.$t("message.energyManage.material.realityNumber"),align:"center"}}),r("el-table-column",{attrs:{prop:"warehouseName",label:e.$t("message.energyManage.material.warehouseName"),align:"center"}}),r("el-table-column",{attrs:{prop:"confirmNum",label:e.$t("message.energyManage.material.confirmNum"),align:"center"}}),r("el-table-column",{attrs:{prop:"usedPart",label:e.$t("message.energyManage.material.usedPart"),align:"center"}}),r("el-table-column",{attrs:{prop:"remarks",label:e.$t("message.energyManage.material.remarks"),align:"center"}}),"4"!=e.searchType?r("el-table-column",{attrs:{width:"180",label:e.$t("message.deviceManage.operation"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.state?r("div",{staticClass:"tableBtns"},[r("div",{staticClass:"operationText",on:{click:function(a){return e.edit(t.row)}}},[r("img",{attrs:{src:a("0e0b"),width:"15px",height:"15px"}}),r("span",[e._v(e._s(e.$t("message.deviceManage.edit")))])]),r("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(a){return e.abandonPoundBillFn(t.row)}}},[e._v(e._s(e.$t("message.energyManage.material.abandon")))])],1):e._e()]}}],null,!1,762411692)}):e._e()],1),r("el-pagination",{staticClass:"pagerBox",attrs:{"current-page":e.pagInfo.pageNo,"page-sizes":e.$store.state.PAGESIZRS,"page-size":e.pagInfo.pageSize,layout:"total, sizes, prev, pager, next",total:Number(e.pagInfo.total),background:""},on:{"size-change":e.SizeChange,"current-change":e.CurrentChange}}),r("el-dialog",{attrs:{"modal-append-to-body":!1,title:"edit"==e.Popup.type?e.$t("message.energyManage.material.edit"):e.$t("message.energyManage.material.add"),visible:e.Popup.show,width:"967px"},on:{close:e.close,"update:visible":function(t){return e.$set(e.Popup,"show",t)}}},[r("div",{staticClass:"dialog_content"},[r("el-form",{ref:"addEditForm",staticClass:"dialogFormBox2",attrs:{size:"medium",inline:!0,model:e.addEditForm,rules:e.addEditRules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.carNo"),prop:"carNumber"}},[r("el-input",{attrs:{placeholder:e.$t("message.deviceManage.placeholder")},model:{value:e.addEditForm.carNumber,callback:function(t){e.$set(e.addEditForm,"carNumber",t)},expression:"addEditForm.carNumber"}})],1),r("el-form-item",{attrs:{label:"单据编号",prop:"billNumber"}},[r("el-input",{attrs:{placeholder:e.$t("message.deviceManage.placeholder")},model:{value:e.addEditForm.billNumber,callback:function(t){e.$set(e.addEditForm,"billNumber",t)},expression:"addEditForm.billNumber"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.poundType"),prop:"poundType"}},[r("el-select",{attrs:{placeholder:e.$t("message.companyDiagram.PleaseEnter")},on:{change:e.changePoundType},model:{value:e.addEditForm.poundType,callback:function(t){e.$set(e.addEditForm,"poundType",t)},expression:"addEditForm.poundType"}},e._l(e.poundTypeArr,(function(e,t){return r("el-option",{key:t,attrs:{value:t+1,label:e}})})),1)],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.type"),prop:"billType"}},[r("el-select",{attrs:{placeholder:e.$t("message.companyDiagram.PleaseEnter")},model:{value:e.addEditForm.billType,callback:function(t){e.$set(e.addEditForm,"billType",t)},expression:"addEditForm.billType"}},e._l(e.billTypeArr,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),2==e.addEditForm.poundType?r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.giveCompany"),prop:"issuingEnterpriseId",rules:{required:!0,message:e.$t("message.companyDiagram.Mandatory"),trigger:["blur","change"]}}},[r("el-select",{attrs:{filterable:"",placeholder:e.$t("message.companyDiagram.PleaseEnter")},model:{value:e.addEditForm.issuingEnterpriseId,callback:function(t){e.$set(e.addEditForm,"issuingEnterpriseId",t)},expression:"addEditForm.issuingEnterpriseId"}},e._l(e.allCooperationUnitList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.enterpriseId,label:e.enterpriseName}})})),1)],1):e._e(),1==e.addEditForm.poundType?r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.takeBackCompany"),prop:"receivingEnterpriseId",rules:{required:!0,message:e.$t("message.companyDiagram.Mandatory"),trigger:["blur","change"]}}},[r("el-select",{attrs:{filterable:"",placeholder:e.$t("message.companyDiagram.PleaseEnter")},model:{value:e.addEditForm.receivingEnterpriseId,callback:function(t){e.$set(e.addEditForm,"receivingEnterpriseId",t)},expression:"addEditForm.receivingEnterpriseId"}},e._l(e.allCooperationUnitList2,(function(e,t){return r("el-option",{key:t,attrs:{value:e.enterpriseId,label:e.enterpriseName}})})),1)],1):e._e(),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.weighingGrossTime"),prop:"weighingGrossTime"}},[r("el-date-picker",{attrs:{type:"datetime",placeholder:e.$t("message.energyManage.material.chooseDate"),"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.addEditForm.weighingGrossTime,callback:function(t){e.$set(e.addEditForm,"weighingGrossTime",t)},expression:"addEditForm.weighingGrossTime"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.weighingSkinTime"),prop:"weighingSkinTime"}},[r("el-date-picker",{attrs:{type:"datetime",placeholder:e.$t("message.energyManage.material.chooseDate"),"value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.addEditForm.weighingSkinTime,callback:function(t){e.$set(e.addEditForm,"weighingSkinTime",t)},expression:"addEditForm.weighingSkinTime"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.grossWeight"),prop:"grossWeight"}},[r("el-input",{attrs:{onkeyup:"value=value.replace(/[^\\d]/g,'')",placeholder:e.$t("message.deviceManage.placeholder")},on:{blur:e.listenerValue2},model:{value:e.addEditForm.grossWeight,callback:function(t){e.$set(e.addEditForm,"grossWeight",t)},expression:"addEditForm.grossWeight"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.tare"),prop:"tare"}},[r("el-input",{attrs:{onkeyup:"value=value.replace(/[^\\d]/g,'')",placeholder:e.$t("message.deviceManage.placeholder")},on:{blur:e.listenerValue2},model:{value:e.addEditForm.tare,callback:function(t){e.$set(e.addEditForm,"tare",t)},expression:"addEditForm.tare"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.weight")}},[r("el-input",{attrs:{disabled:"",value:e.afterVal}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.originReceiptNumber"),prop:"originalBillNumber"}},[r("el-input",{attrs:{placeholder:e.$t("message.deviceManage.placeholder")},model:{value:e.addEditForm.originalBillNumber,callback:function(t){e.$set(e.addEditForm,"originalBillNumber",t)},expression:"addEditForm.originalBillNumber"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.contractName"),prop:"contractName"}},[r("el-input",{attrs:{placeholder:e.$t("message.deviceManage.placeholder")},model:{value:e.addEditForm.contractName,callback:function(t){e.$set(e.addEditForm,"contractName",t)},expression:"addEditForm.contractName"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.usedPart"),prop:"usedPart"}},[r("el-input",{attrs:{placeholder:e.$t("message.deviceManage.placeholder")},model:{value:e.addEditForm.usedPart,callback:function(t){e.$set(e.addEditForm,"usedPart",t)},expression:"addEditForm.usedPart"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.warehouseName"),prop:"warehouseId"}},[r("el-select",{attrs:{filterable:"",clearable:!0,placeholder:e.$t("message.companyDiagram.PleaseEnter")},model:{value:e.addEditForm.warehouseId,callback:function(t){e.$set(e.addEditForm,"warehouseId",t)},expression:"addEditForm.warehouseId"}},e._l(e.allWarehouseList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.warehouseName}})})),1)],1),r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2!=e.addEditForm.poundType,expression:"addEditForm.poundType!=2"}],attrs:{label:e.$t("message.energyManage.material.materialsUsedApply"),prop:"materialsUsedApply"}},[r("el-input",{attrs:{placeholder:e.$t("message.energyManage.material.placeholder")+e.$t("message.energyManage.material.materialsUsedApply")},model:{value:e.addEditForm.materialsUsedApply,callback:function(t){e.$set(e.addEditForm,"materialsUsedApply",t)},expression:"addEditForm.materialsUsedApply"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.remarks"),prop:"remarks"}},[r("el-input",{attrs:{placeholder:e.$t("message.deviceManage.placeholder")},model:{value:e.addEditForm.remarks,callback:function(t){e.$set(e.addEditForm,"remarks",t)},expression:"addEditForm.remarks"}})],1),r("el-divider"),r("div",{staticClass:"fixedDataBox"},[r("div",{staticClass:"item"},[e._v(e._s(e.$t("message.energyManage.material.transportWeight")+":")+e._s(e.fixedData.value1)+e._s(e.$t("message.energyManage.material.weight3")))]),r("div",{staticClass:"item"},[e._v(e._s(e.$t("message.energyManage.material.trueWeight")+":")+e._s(e.fixedData.value2)+e._s(e.$t("message.energyManage.material.weight3")))]),r("div",{staticClass:"item"},[e._v(e._s(e.$t("message.energyManage.material.realNum")+":")+" "+e._s(e.fixedData.value3)+e._s(""!=e.fixedData.deviationType?e.fixedData.computeUnit:"")+" ")])]),r("div",{staticClass:"fixedDataBox"},[r("div",{staticClass:"item"},[e._v(e._s(e.$t("message.energyManage.material.realDeviation")+":")+e._s(e.fixedData.value4)+e._s(1==e.fixedData.deviationType?"%":"吨"))]),r("div",{staticClass:"item"},[e._v(e._s(e.$t("message.energyManage.material.plusOrMinus")+":")+e._s(e.fixedData.value5))]),r("div",{staticClass:"item"},[e._v(e._s(e.$t("message.energyManage.material.deviationResult")+":")),r("span",{class:"超负差"==e.fixedData.value6?"redText":""},[e._v(e._s(e.fixedData.value6))])])]),r("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2!=e.addEditForm.poundType,expression:"addEditForm.poundType!=2"}],attrs:{label:e.$t("message.energyManage.material.confirmNum"),prop:"confirmType"}},[r("el-select",{staticClass:"smallInput2",attrs:{placeholder:e.$t("message.companyDiagram.PleaseEnter")},on:{change:e.changeConfirmType},model:{value:e.addEditForm.confirmType,callback:function(t){e.$set(e.addEditForm,"confirmType",t)},expression:"addEditForm.confirmType"}},e._l(e.confirmTypeArr,(function(e,t){return r("el-option",{key:t,attrs:{value:t+1,label:e}})})),1),r("el-input",{staticClass:"smallInput",staticStyle:{"margin-left":"20px"},attrs:{type:"number",disabled:5!=e.addEditForm.confirmType},model:{value:e.addEditForm.confirmNum,callback:function(t){e.$set(e.addEditForm,"confirmNum",t)},expression:"addEditForm.confirmNum"}})],1),r("br"),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.material"),prop:"materialId"}},[r("el-select",{attrs:{filterable:"",placeholder:e.$t("message.companyDiagram.PleaseEnter")},on:{change:e.changeMaterial},model:{value:e.addEditForm.materialId,callback:function(t){e.$set(e.addEditForm,"materialId",t)},expression:"addEditForm.materialId"}},e._l(e.allMaterialList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.materialName}})})),1)],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.scaleFactor"),prop:"scaleFactor"}},[r("div",{staticStyle:{width:"182px"}},[e._v(" 1"+e._s(e.fixedData.computeUnit)+" = "),r("el-input",{staticClass:"smallInput",attrs:{type:"number"},on:{input:e.listenerValue},model:{value:e.addEditForm.scaleFactor,callback:function(t){e.$set(e.addEditForm,"scaleFactor",t)},expression:"addEditForm.scaleFactor"}}),e._v(e._s(e.$t("message.energyManage.material.weight3"))+" ")],1)]),r("br"),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.company")}},[r("el-input",{attrs:{value:e.fixedData.computeUnit,disabled:""}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.wayNum"),prop:"wayBillNum"}},[r("el-input",{attrs:{type:"number"},on:{input:e.listenerValue},model:{value:e.addEditForm.wayBillNum,callback:function(t){e.$set(e.addEditForm,"wayBillNum",t)},expression:"addEditForm.wayBillNum"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.weight2"),prop:"deductionRatio"}},[r("el-input",{staticClass:"smallInput",attrs:{type:"number"},on:{input:function(t){return e.listenerValue2(1)}},model:{value:e.addEditForm.deductionRatio,callback:function(t){e.$set(e.addEditForm,"deductionRatio",t)},expression:"addEditForm.deductionRatio"}}),e._v("% "),r("el-input",{staticClass:"smallInput",attrs:{type:"number"},on:{input:function(t){return e.listenerValue2(2)}},model:{value:e.addEditForm.deductionNum,callback:function(t){e.$set(e.addEditForm,"deductionNum",t)},expression:"addEditForm.deductionNum"}}),e._v(e._s(e.$t("message.energyManage.material.weight3"))+" ")],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.extraCharge"),prop:"extraCharge"}},[r("el-input",{attrs:{placeholder:e.$t("message.deviceManage.placeholder")},model:{value:e.addEditForm.extraCharge,callback:function(t){e.$set(e.addEditForm,"extraCharge",t)},expression:"addEditForm.extraCharge"}})],1),r("el-form-item",{attrs:{label:e.$t("message.energyManage.material.unit"),prop:"unitPrice"}},[r("el-input",{attrs:{type:"number",placeholder:e.$t("message.deviceManage.placeholder")},model:{value:e.addEditForm.unitPrice,callback:function(t){e.$set(e.addEditForm,"unitPrice",t)},expression:"addEditForm.unitPrice"}})],1),r("div",{staticClass:"dialog-footer"},[r("el-button",{staticClass:"cancleBtn",attrs:{icon:"el-icon-circle-close",size:"medium"},on:{click:function(t){e.Popup.show=!1}}},[e._v(e._s(e.$t("message.deviceManage.cancel"))+" ")]),r("el-button",{attrs:{type:"primary",icon:"el-icon-circle-check",size:"medium"},on:{click:e.submit}},[e._v(e._s(e.$t("message.deviceManage.save"))+" ")])],1)],1)],1)])],1)}),[],!1,null,"1ed44eae",null);t.default=l.exports},"31da":function(e,t,a){"use strict";var r=a("f6a9");a.n(r).a},f6a9:function(e,t,a){}}]); |