mirror of
https://github.com/shawncai/ERP.git
synced 2024-11-14 20:56:32 +08:00
1 line
No EOL
20 KiB
JavaScript
1 line
No EOL
20 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6bdd"],{"/PQ/":function(e,t,n){"use strict";n.d(t,"i",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"h",function(){return l}),n.d(t,"l",function(){return p}),n.d(t,"e",function(){return i}),n.d(t,"k",function(){return d}),n.d(t,"c",function(){return s}),n.d(t,"f",function(){return c}),n.d(t,"j",function(){return u}),n.d(t,"a",function(){return m}),n.d(t,"m",function(){return v}),n.d(t,"d",function(){return I}),n.d(t,"g",function(){return y});var a=n("t3Un");function r(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("type",e),t.append("pagenum",1),t.append("pagesize",9999),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplierCategory/searchCategory",method:"post",data:t})}function o(e){var t=new URLSearchParams;return""!==e.supplierName&&null!==e.supplierName&&void 0!==e.supplierName&&t.append("supplierName",e.supplierName),""!==e.createId&&null!==e.createId&&void 0!==e.createId&&t.append("createId",e.createId),""!==e.typeId&&null!==e.typeId&&void 0!==e.typeId&&t.append("typeId",e.typeId),""!==e.supplierShortName&&null!==e.supplierShortName&&void 0!==e.supplierShortName&&t.append("supplierShortName",e.supplierShortName),""!==e.supplierIntroduction&&null!==e.supplierIntroduction&&void 0!==e.supplierIntroduction&&t.append("supplierIntroduction",e.supplierIntroduction),""!==e.countryId&&null!==e.countryId&&void 0!==e.countryId&&t.append("countryId",e.countryId),""!==e.provinceId&&null!==e.provinceId&&void 0!==e.provinceId&&t.append("provinceId",e.provinceId),""!==e.cityId&&null!==e.cityId&&void 0!==e.cityId&&t.append("cityId",e.cityId),""!==e.detailAddress&&null!==e.detailAddress&&void 0!==e.detailAddress&&t.append("detailAddress",e.detailAddress),""!==e.groupId&&null!==e.groupId&&void 0!==e.groupId&&t.append("groupId",e.groupId),""!==e.zipCode&&null!==e.zipCode&&void 0!==e.zipCode&&t.append("zipCode",e.zipCode),""!==e.contactPersonName&&null!==e.contactPersonName&&void 0!==e.contactPersonName&&t.append("contactPersonName",e.contactPersonName),""!==e.contactPersonPhone&&null!==e.contactPersonPhone&&void 0!==e.contactPersonPhone&&t.append("contactPersonPhone",e.contactPersonPhone),""!==e.regionId&&null!==e.regionId&&void 0!==e.regionId&&t.append("regionId",e.regionId),""!==e.giveId&&null!==e.giveId&&void 0!==e.giveId&&t.append("giveId",e.giveId),""!==e.transportId&&null!==e.transportId&&void 0!==e.transportId&&t.append("transportId",e.transportId),""!==e.levelId&&null!==e.levelId&&void 0!==e.levelId&&t.append("levelId",e.levelId),""!==e.isHot&&null!==e.isHot&&void 0!==e.isHot&&t.append("isHot",e.isHot),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("isEffective",e.isEffective),""!==e.buyerId&&null!==e.buyerId&&void 0!==e.buyerId&&t.append("buyerId",e.buyerId),""!==e.businessScopeIntroduction&&null!==e.businessScopeIntroduction&&void 0!==e.businessScopeIntroduction&&t.append("businessScopeIntroduction",e.businessScopeIntroduction),""!==e.paymentId&&null!==e.paymentId&&void 0!==e.paymentId&&t.append("paymentId",e.paymentId),""!==e.moneyId&&null!==e.moneyId&&void 0!==e.moneyId&&t.append("moneyId",e.moneyId),""!==e.bankName&&null!==e.bankName&&void 0!==e.bankName&&t.append("bankName",e.bankName),""!==e.accountName&&null!==e.accountName&&void 0!==e.accountName&&t.append("accountName",e.accountName),""!==e.account&&null!==e.account&&void 0!==e.account&&t.append("account",e.account),""!==e.establishDate&&null!==e.establishDate&&void 0!==e.establishDate&&t.append("establishDate",e.establishDate),""!==e.legalPerson&&null!==e.legalPerson&&void 0!==e.legalPerson&&t.append("legalPerson",e.legalPerson),""!==e.taxNumber&&null!==e.taxNumber&&void 0!==e.taxNumber&&t.append("taxNumber",e.taxNumber),""!==e.businessLicense&&null!==e.businessLicense&&void 0!==e.businessLicense&&t.append("businessLicense",e.businessLicense),""!==e.companyTypeId&&null!==e.companyTypeId&&void 0!==e.companyTypeId&&t.append("companyTypeId",e.companyTypeId),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplier/create",method:"post",data:t})}function l(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("id",e.id),""!==e.supplierName&&null!==e.supplierName&&void 0!==e.supplierName&&t.append("supplierName",e.supplierName),""!==e.typeId&&null!==e.typeId&&void 0!==e.typeId&&t.append("typeId",e.typeId),""!==e.regionId&&null!==e.regionId&&void 0!==e.regionId&&t.append("regionId",e.regionId),""!==e.levelId&&null!==e.levelId&&void 0!==e.levelId&&t.append("levelId",e.levelId),""!==e.pagenum&&null!==e.pagenum&&void 0!==e.pagenum&&t.append("pagenum",e.pagenum),""!==e.pagesize&&null!==e.pagesize&&void 0!==e.pagesize&&t.append("pagesize",e.pagesize),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplier/search",method:"post",data:t})}function p(e){var t=new URLSearchParams;return""!==e.supplierName&&null!==e.supplierName&&void 0!==e.supplierName&&t.append("supplierName",e.supplierName),""!==e.typeId&&null!==e.typeId&&void 0!==e.typeId&&t.append("typeId",e.typeId),""!==e.supplierShortName&&null!==e.supplierShortName&&void 0!==e.supplierShortName&&t.append("supplierShortName",e.supplierShortName),""!==e.supplierIntroduction&&null!==e.supplierIntroduction&&void 0!==e.supplierIntroduction&&t.append("supplierIntroduction",e.supplierIntroduction),""!==e.countryid&&null!==e.countryid&&void 0!==e.countryid&&t.append("countryId",e.countryid),""!==e.provinceid&&null!==e.provinceid&&void 0!==e.provinceid&&t.append("provinceId",e.provinceid),""!==e.cityid&&null!==e.cityid&&void 0!==e.cityid&&t.append("cityId",e.cityid),""!==e.detailAddress&&null!==e.detailAddress&&void 0!==e.detailAddress&&t.append("detailAddress",e.detailAddress),""!==e.groupId&&null!==e.groupId&&void 0!==e.groupId&&t.append("groupId",e.groupId),""!==e.groupId&&null!==e.groupId&&void 0!==e.groupId&&t.append("groupId",e.groupId),""!==e.zipCode&&null!==e.zipCode&&void 0!==e.zipCode&&t.append("zipCode",e.zipCode),""!==e.contactPersonName&&null!==e.contactPersonName&&void 0!==e.contactPersonName&&t.append("contactPersonName",e.contactPersonName),""!==e.contactPersonPhone&&null!==e.contactPersonPhone&&void 0!==e.contactPersonPhone&&t.append("contactPersonPhone",e.contactPersonPhone),""!==e.regionId&&null!==e.regionId&&void 0!==e.regionId&&t.append("regionId",e.regionId),""!==e.giveId&&null!==e.giveId&&void 0!==e.giveId&&t.append("giveId",e.giveId),""!==e.transportId&&null!==e.transportId&&void 0!==e.transportId&&t.append("transportId",e.transportId),""!==e.levelId&&null!==e.levelId&&void 0!==e.levelId&&t.append("levelId",e.levelId),""!==e.isHot&&null!==e.isHot&&void 0!==e.isHot&&t.append("isHot",e.isHot),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("isEffective",e.isEffective),""!==e.buyerId&&null!==e.buyerId&&void 0!==e.buyerId&&t.append("buyerId",e.buyerId),""!==e.businessScopeIntroduction&&null!==e.businessScopeIntroduction&&void 0!==e.businessScopeIntroduction&&t.append("businessScopeIntroduction",e.businessScopeIntroduction),""!==e.paymentId&&null!==e.paymentId&&void 0!==e.paymentId&&t.append("paymentId",e.paymentId),""!==e.moneyId&&null!==e.moneyId&&void 0!==e.moneyId&&t.append("moneyId",e.moneyId),""!==e.bankName&&null!==e.bankName&&void 0!==e.bankName&&t.append("bankName",e.bankName),""!==e.accountName&&null!==e.accountName&&void 0!==e.accountName&&t.append("accountName",e.accountName),""!==e.account&&null!==e.account&&void 0!==e.account&&t.append("account",e.account),""!==e.establishDate&&null!==e.establishDate&&void 0!==e.establishDate&&t.append("establishDate",e.establishDate),""!==e.legalPerson&&null!==e.legalPerson&&void 0!==e.legalPerson&&t.append("legalPerson",e.legalPerson),""!==e.taxNumber&&null!==e.taxNumber&&void 0!==e.taxNumber&&t.append("taxNumber",e.taxNumber),""!==e.businessLicense&&null!==e.businessLicense&&void 0!==e.businessLicense&&t.append("businessLicense",e.businessLicense),""!==e.companyTypeId&&null!==e.companyTypeId&&void 0!==e.companyTypeId&&t.append("companyTypeId",e.companyTypeId),""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("id",e.id),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplier/update",method:"post",data:t})}function i(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("modelids",e),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplier/delete",method:"post",data:t})}function d(){return Object(a.a)({url:"http://192.168.1.45:8080/erp/supplierGroup/search",method:"post"})}function s(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("groupName",e),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplierGroup/create",method:"post",data:t})}function c(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("id",e),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplierGroup/delete",method:"post",data:t})}function u(e){var t=new URLSearchParams;return""!==e.categoryname&&null!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.iseffective&&null!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.type&&null!==e.type&&t.append("type",e.type),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplierCategory/searchCategory",method:"post",data:t})}function m(e){var t=new URLSearchParams;return""!==e.categoryname&&null!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.category&&null!==e.category&&t.append("category",e.category),""!==e.iseffective&&null!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.type&&null!==e.type&&t.append("type",e.type),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplierCategory/addCategory",method:"post",data:t})}function v(e){var t=new URLSearchParams;return""!==e.categoryName&&null!==e.categoryName&&t.append("categoryname",e.categoryName),""!==e.isEffective&&null!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.id&&null!==e.id&&t.append("id",e.id),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplierCategory/updateCategory",method:"post",data:t})}function I(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("ids",e),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplierCategory/delateCategory",method:"post",data:t})}function y(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("supplierJson",e),Object(a.a)({url:"http://192.168.1.45:8080/erp/supplierRecommendation/manyinsert",method:"post",data:t})}},"SOy+":function(e,t,n){},WGph:function(e,t,n){"use strict";n.r(t);var a=n("gDS+"),r=n.n(a),o=n("/PQ/"),l={name:"Addstockenter",data:function(){return{list2:[],validRules:{step:[{required:!0,message:"请输入流程步骤",trigger:"blur"}],money:[{required:!0,message:"请输入流转条件",trigger:"blue"}],handlerName:[{required:!0,message:"请选择步骤处理人",trigger:"blue"}]},personalForm:{},personalrules:{title:[{required:!0,message:"请输入入库单主题",trigger:"blur"}],sourceType:[{required:!0,message:"请选择源单类型",trigger:"change"}],enterRepositoryId:[{required:!0,message:"请选择入库仓库",trigger:"blue"}],isHot:[{required:!0,message:"请选择",trigger:"change"}],countryId:[{required:!0,message:"请选择国家",trigger:"change"}]}}},methods:{handlesave:function(){var e=r()(this.$refs.editable.getRecords());console.log(e)},restAllForm:function(){this.personalForm={}},handleentry:function(){var e=this;this.personalForm.regionId=this.perregions[this.perregions.length-1],this.$refs.personalForm.validate(function(t){if(!t){e.$notify.error({title:"错误",message:"信息未填完整",offset:100});var n=e.$refs.geren.offsetTop;return console.log(n),document.documentElement.scrollTop=n-100,!1}Object(o.b)(e.personalForm).then(function(t){if(console.log(t),200===t.data.ret){e.$notify({title:"成功",message:"保存成功",type:"success",offset:100}),e.restAllForm(),e.$refs.personalForm.clearValidate(),e.$refs.personalForm.resetFields(),e.$refs.personalForm2.clearValidate(),e.$refs.personalForm2.resetFields(),e.$refs.personalForm3.clearValidate(),e.$refs.personalForm3.resetFields(),e.$refs.personalForm4.clearValidate(),e.$refs.personalForm4.resetFields();var n=e.$refs.geren.offsetTop;console.log(n),document.documentElement.scrollTop=n-100}else e.$notify.error({title:"错误",message:t.data.msg,offset:100})})})},handlecancel:function(){this.$router.go(-1);this.$store.dispatch("delView",{path:"/Stockenter/NewStockenter",name:"NewStockenter",fullPath:"/Stockenter/NewStockenter",title:"NewStockenter"}).then(function(e){e.visitedViews})},handlechoose:function(){this.empcontrol=!0},personName:function(e){console.log(e),this.buyerId=e.personName,this.personalForm.buyerId=e.id}}},p=(n("fB4Q"),n("KHd+")),i=Object(p.a)(l,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ERP-container"},[n("div",{staticClass:"app-container"},[n("h2",{ref:"geren",staticClass:"form-name"},[e._v("基本信息")]),e._v(" "),n("div",{staticClass:"container"},[n("el-form",{ref:"personalForm",staticClass:"demo-ruleForm",staticStyle:{"margin-left":"30px"},attrs:{model:e.personalForm,rules:e.personalrules,inline:!0,"status-icon":"","label-position":"top","label-width":"300px"}},[n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Stockenter.title"),prop:"title"}},[n("el-input",{attrs:{placeholder:"请输入入库单主题",clearable:""},model:{value:e.personalForm.title,callback:function(t){e.$set(e.personalForm,"title",t)},expression:"personalForm.title"}})],1),e._v(" "),n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Stockenter.sourceType"),prop:"sourceType"}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择源单类型"},model:{value:e.personalForm.sourceType,callback:function(t){e.$set(e.personalForm,"sourceType",t)},expression:"personalForm.sourceType"}},[n("el-option",{attrs:{value:"1",label:"采购到货单"}})],1)],1),e._v(" "),n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:"采购到货单"}},[n("el-input",{attrs:{placeholder:"请选择采购到货单",clearable:""},model:{value:e.personalForm.supplierId,callback:function(t){e.$set(e.personalForm,"supplierId",t)},expression:"personalForm.supplierId"}})],1),e._v(" "),n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Stockenter.supplierId")}},[n("el-input",{attrs:{placeholder:"请选择供应商",clearable:""},model:{value:e.personalForm.supplierId,callback:function(t){e.$set(e.personalForm,"supplierId",t)},expression:"personalForm.supplierId"}})],1),e._v(" "),n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Stockenter.stockPersonId")}},[n("el-input",{attrs:{placeholder:"请选择采购员",clearable:""},model:{value:e.personalForm.stockPersonId,callback:function(t){e.$set(e.personalForm,"stockPersonId",t)},expression:"personalForm.stockPersonId"}})],1),e._v(" "),n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Stockenter.stockDeptId")}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择采购部门",clearable:""},model:{value:e.personalForm.stockDeptId,callback:function(t){e.$set(e.personalForm,"stockDeptId",t)},expression:"personalForm.stockDeptId"}},[n("el-option",{attrs:{value:"1",label:"超级部门"}}),e._v(" "),n("el-option",{attrs:{value:"2",label:"财务部门"}})],1)],1),e._v(" "),n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Stockenter.deliveryPersonId")}},[n("el-input",{attrs:{placeholder:"请选择交货人",clearable:""},model:{value:e.personalForm.deliveryPersonId,callback:function(t){e.$set(e.personalForm,"deliveryPersonId",t)},expression:"personalForm.deliveryPersonId"}})],1),e._v(" "),n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Stockenter.acceptPersonId")}},[n("el-input",{attrs:{placeholder:"请选择验收人",clearable:""},model:{value:e.personalForm.acceptPersonId,callback:function(t){e.$set(e.personalForm,"acceptPersonId",t)},expression:"personalForm.acceptPersonId"}})],1),e._v(" "),n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Stockenter.enterDeptId")}},[n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择入库部门",clearable:""},model:{value:e.personalForm.enterDeptId,callback:function(t){e.$set(e.personalForm,"enterDeptId",t)},expression:"personalForm.enterDeptId"}},[n("el-option",{attrs:{value:"1",label:"超级部门"}}),e._v(" "),n("el-option",{attrs:{value:"2",label:"财务部门"}})],1)],1),e._v(" "),n("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("Stockenter.enterRepositoryId"),prop:"enterRepositoryId"}},[n("el-input",{attrs:{placeholder:"请选择入库仓库",clearable:""},model:{value:e.personalForm.enterRepositoryId,callback:function(t){e.$set(e.personalForm,"enterRepositoryId",t)},expression:"personalForm.enterRepositoryId"}})],1)],1)],1),e._v(" "),n("h2",{ref:"fuzhu",staticClass:"form-name"},[e._v("入库单明细")]),e._v(" "),n("div",{staticClass:"buttons",staticStyle:{"margin-top":"50px"}},[n("el-button",{attrs:{type:"danger"},on:{click:function(t){e.$refs.editable.removeSelecteds()}}},[e._v("删除")])],1),e._v(" "),n("div",{staticClass:"container"},[n("el-editable",{ref:"editable",staticClass:"click-table1",staticStyle:{width:"100%"},attrs:{data:e.list2,"edit-config":{showIcon:!1,showStatus:!0},"edit-rules":e.validRules,stripe:"",border:"",size:"medium"}},[n("el-editable-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),n("el-editable-column",{attrs:{prop:"id",align:"center",label:"编号",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{"edit-render":{name:"ElInput"},prop:"locationId",align:"center",label:"货位",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{prop:"productCode",align:"center",label:"物品编号",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{prop:"productName",align:"center",label:"物品名称",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{prop:"color",align:"center",label:"颜色",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{prop:"typeId",align:"center",label:"规格",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{prop:"unit",align:"center",label:"单位",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{"edit-render":{name:"ElInput"},prop:"basicQuantity",align:"center",label:"基本数量",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{"edit-render":{name:"ElInput"},prop:"actualEnterQuantity",align:"center",label:"实收数量",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{prop:"enterPrice",align:"center",label:"入库单价",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{prop:"taxRate",align:"center",label:"税率",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{prop:"enterMoney",align:"center",label:"入库金额",width:"150px"}}),e._v(" "),n("el-editable-column",{attrs:{"edit-render":{name:"ElInput"},prop:"remarks",align:"center",label:"备注",width:"150px"}})],1)],1),e._v(" "),n("div",{staticClass:"buttons",staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handlesave()}}},[e._v("保存")]),e._v(" "),n("el-button",{attrs:{type:"success"},on:{click:function(t){e.handleentry()}}},[e._v("继续录入")]),e._v(" "),n("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handlecancel()}}},[e._v("取消")])],1)])])},[],!1,null,"3e8d7c5a",null);i.options.__file="addstockenter.vue";t.default=i.exports},fB4Q:function(e,t,n){"use strict";var a=n("SOy+");n.n(a).a},"gDS+":function(e,t,n){e.exports={default:n("oh+g"),__esModule:!0}},"oh+g":function(e,t,n){var a=n("WEpk"),r=a.JSON||(a.JSON={stringify:JSON.stringify});e.exports=function(e){return r.stringify.apply(r,arguments)}}}]); |