mirror of
https://github.com/shawncai/ERP.git
synced 2024-11-14 20:56:32 +08:00
1 line
No EOL
13 KiB
JavaScript
1 line
No EOL
13 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3a74"],{LWQ6:function(e,t,a){"use strict";a.r(t);var n=a("moiu"),r={name:"BatchRules",data:function(){return{personalForm:{type:0,iseffective:1},personalrules:{ruleName:[{required:!0,message:"请输入批次规则",trigger:"blur"}],prefix:[{required:!0,message:"请输入编号前缀",trigger:"blur"}],length:[{required:!0,message:"请输入流水号长度",trigger:"blur"}]}}},methods:{restAllForm:function(){this.personalForm={}},handlesave:function(){var e=this;console.log(this.personalForm),this.$refs.personalForm.validate(function(t){if(!t)return e.$notify.error({title:"错误",message:"信息未填完整",offset:100}),!1;Object(n.c)(e.personalForm).then(function(t){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.$notify.error({title:"错误",message:t.data.msg,offset:100})})})},handlecancel:function(){this.$router.go(-1);this.$store.dispatch("delView",{path:"/BasicSettings/NewBasicSettings",name:"NewBasicSettings",fullPath:"/BasicSettings/NewBasicSettings",title:"NewBasicSettings"}).then(function(e){e.visitedViews})}}},i=(a("wI1+"),a("KHd+")),p=Object(i.a)(r,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ERP-container"},[a("div",{staticClass:"app-container"},[a("h2",{ref:"geren",staticClass:"form-name"},[e._v("批次规则设置")]),e._v(" "),a("div",{staticClass:"container"},[a("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"}},[a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("BasicSettings.batchName"),prop:"ruleName"}},[a("el-input",{attrs:{placeholder:"请输入批次规则",clearable:""},model:{value:e.personalForm.ruleName,callback:function(t){e.$set(e.personalForm,"ruleName",t)},expression:"personalForm.ruleName"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("BasicSettings.prefix"),prop:"prefix"}},[a("el-input",{attrs:{placeholder:"请输入编号前缀",clearable:""},model:{value:e.personalForm.prefix,callback:function(t){e.$set(e.personalForm,"prefix",t)},expression:"personalForm.prefix"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:e.$t("BasicSettings.length"),prop:"length"}},[a("el-input",{attrs:{placeholder:"请输入流水号长度",clearable:""},model:{value:e.personalForm.length,callback:function(t){e.$set(e.personalForm,"length",t)},expression:"personalForm.length"}})],1),e._v(" "),a("el-form-item",{staticStyle:{width:"40%","margin-top":"1%"},attrs:{label:"日期类型"}},[a("el-radio-group",{model:{value:e.personalForm.dateType,callback:function(t){e.$set(e.personalForm,"dateType",t)},expression:"personalForm.dateType"}},[a("el-radio",{attrs:{label:1}},[e._v("年")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("年月")]),e._v(" "),a("el-radio",{attrs:{label:3}},[e._v("年月日")])],1)],1)],1)],1),e._v(" "),a("div",{staticClass:"buttons",staticStyle:{"margin-top":"20px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handlesave()}}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handlecancel()}}},[e._v("取消")])],1)])])},[],!1,null,"0c3b67c2",null);p.options.__file="BatchRules.vue";t.default=p.exports},moiu:function(e,t,a){"use strict";a.d(t,"q",function(){return r}),a.d(t,"m",function(){return i}),a.d(t,"g",function(){return p}),a.d(t,"b",function(){return o}),a.d(t,"r",function(){return l}),a.d(t,"k",function(){return s}),a.d(t,"a",function(){return d}),a.d(t,"u",function(){return c}),a.d(t,"i",function(){return u}),a.d(t,"o",function(){return f}),a.d(t,"e",function(){return m}),a.d(t,"t",function(){return v}),a.d(t,"h",function(){return g}),a.d(t,"l",function(){return h}),a.d(t,"j",function(){return y}),a.d(t,"d",function(){return _}),a.d(t,"c",function(){return b}),a.d(t,"n",function(){return N}),a.d(t,"p",function(){return w}),a.d(t,"f",function(){return S}),a.d(t,"s",function(){return x});var n=a("t3Un");function r(){return Object(n.a)({url:"http://192.168.1.45:8080/erp/NumberingRules/searchcategory",method:"post"})}function i(e){var t=new URLSearchParams;return""!==e.ruleName&&null!==e.ruleName&&void 0!==e.ruleName&&t.append("ruleName",e.ruleName),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(n.a)({url:"http://192.168.1.45:8080/erp/NumberingRules/search",method:"post",data:t})}function p(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("ids",e),Object(n.a)({url:"http://192.168.1.45:8080/erp/NumberingRules/delete",method:"post",data:t})}function o(e){var t=new URLSearchParams;return""!==e.ruleName&&null!==e.ruleName&&void 0!==e.ruleName&&t.append("ruleName",e.ruleName),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.prefix&&null!==e.prefix&&void 0!==e.prefix&&t.append("prefix",e.prefix),""!==e.dateType&&null!==e.dateType&&void 0!==e.dateType&&t.append("dateType",e.dateType),""!==e.length&&null!==e.length&&void 0!==e.length&&t.append("length",e.length),Object(n.a)({url:"http://192.168.1.45:8080/erp/NumberingRules/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.ruleName&&null!==e.ruleName&&void 0!==e.ruleName&&t.append("ruleName",e.ruleName),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.prefix&&null!==e.prefix&&void 0!==e.prefix&&t.append("prefix",e.prefix),""!==e.dateType&&null!==e.dateType&&void 0!==e.dateType&&t.append("dateType",e.dateType),""!==e.length&&null!==e.length&&void 0!==e.length&&t.append("length",e.length),Object(n.a)({url:"http://192.168.1.45:8080/erp/NumberingRules/update",method:"post",data:t})}function s(e){var t=new URLSearchParams;return""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.modelname&&null!==e.modelname&&void 0!==e.modelname&&t.append("modelname",e.modelname),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(n.a)({url:"http://192.168.1.45:8080/erp/messageModel/modellist",method:"post",data:t})}function d(e){var t=new URLSearchParams;return""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.modelname&&null!==e.modelname&&void 0!==e.modelname&&t.append("modelname",e.modelname),""!==e.content&&null!==e.content&&void 0!==e.content&&t.append("content",e.content),Object(n.a)({url:"http://192.168.1.45:8080/erp/messageModel/addmodel",method:"post",data:t})}function c(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("modelid",e.id),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.modelName&&null!==e.modelName&&void 0!==e.modelName&&t.append("modelname",e.modelName),""!==e.content&&null!==e.content&&void 0!==e.content&&t.append("content",e.content),Object(n.a)({url:"http://192.168.1.45:8080/erp/messageModel/updatemodel",method:"post",data:t})}function u(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("modelids",e),Object(n.a)({url:"http://192.168.1.45:8080/erp/messageModel/deletemodel",method:"post",data:t})}function f(e){var t=new URLSearchParams;return""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.categoryname&&null!==e.categoryname&&void 0!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(n.a)({url:"http://192.168.1.45:8080/erp/measurement/search",method:"post",data:t})}function m(e){var t=new URLSearchParams;return""!==e.category&&null!==e.category&&void 0!==e.category&&t.append("category",e.category),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.categoryname&&null!==e.categoryname&&void 0!==e.categoryname&&t.append("categoryname",e.categoryname),Object(n.a)({url:"http://192.168.1.45:8080/erp/measurement/create",method:"post",data:t})}function v(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("id",e.id),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.categoryName&&null!==e.categoryName&&void 0!==e.categoryName&&t.append("categoryname",e.categoryName),Object(n.a)({url:"http://192.168.1.45:8080/erp/measurement/update",method:"post",data:t})}function g(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("modelids",e),Object(n.a)({url:"http://192.168.1.45:8080/erp/measurement/delete",method:"post",data:t})}function h(){return Object(n.a)({url:"http://192.168.1.45:8080/erp/parameter/search",method:"post"})}function y(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("id",e.id),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&t.append("isEffective",e.isEffective),Object(n.a)({url:"http://192.168.1.45:8080/erp/parameter/effective",method:"post",data:t})}function _(e,t){var a=new URLSearchParams;return""!==e.process_name&&null!==e.process_name&&void 0!==e.process_name&&a.append("process_name",e.process_name),""!==e.type&&null!==e.type&&void 0!==e.type&&a.append("type",e.type),""!==e.is_message&&null!==e.is_message&&void 0!==e.is_message&&a.append("is_message",e.is_message),""!==e.is_effective&&null!==e.is_effective&&void 0!==e.is_effective&&a.append("is_effective",e.is_effective),""!==e.effect_region&&null!==e.effect_region&&void 0!==e.effect_region&&a.append("effect_region",e.effect_region),""!==e.effect_repository&&null!==e.effect_repository&&void 0!==e.effect_repository&&a.append("effect_repository",e.effect_repository),""!==e.country_id&&null!==e.country_id&&void 0!==e.country_id&&a.append("country_id",e.country_id),""!==t&&null!==t&&void 0!==t&&a.append("detailJson",t),Object(n.a)({url:"http://192.168.1.45:8080/erp/approvalProcess/create",method:"post",data:a})}function b(e){var t=new URLSearchParams;return""!==e.ruleName&&null!==e.ruleName&&void 0!==e.ruleName&&t.append("ruleName",e.ruleName),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.iseffective&&null!==e.iseffective&&void 0!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.prefix&&null!==e.prefix&&void 0!==e.prefix&&t.append("prefix",e.prefix),""!==e.dateType&&null!==e.dateType&&void 0!==e.dateType&&t.append("dateType",e.dateType),""!==e.length&&null!==e.length&&void 0!==e.length&&t.append("length",e.length),Object(n.a)({url:"http://192.168.1.45:8080/erp/NumberingRules/create",method:"post",data:t})}function N(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("id",e),Object(n.a)({url:"http://192.168.1.45:8080/erp/approvalProcess/searchDetail",method:"post",data:t})}function w(e){var t=new URLSearchParams;return""!==e.process_name&&null!==e.process_name&&void 0!==e.process_name&&t.append("process_name",e.process_name),""!==e.type&&null!==e.type&&void 0!==e.type&&t.append("type",e.type),""!==e.is_effective&&null!==e.is_effective&&void 0!==e.is_effective&&t.append("is_effective",e.is_effective),t.append("pagesize",e.pagesize),t.append("pagenum",e.pagenum),Object(n.a)({url:"http://192.168.1.45:8080/erp/approvalProcess/search",method:"post",data:t})}function S(e){var t=new URLSearchParams;return""!==e&&null!==e&&void 0!==e&&t.append("modelids",e),Object(n.a)({url:"http://192.168.1.45:8080/erp/approvalProcess/delete",method:"post",data:t})}function x(e,t){var a=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&a.append("id",e.id),""!==e.processName&&null!==e.processName&&void 0!==e.processName&&a.append("process_name",e.processName),""!==e.type&&null!==e.type&&void 0!==e.type&&a.append("type",e.type),""!==e.isMessage&&null!==e.isMessage&&void 0!==e.isMessage&&a.append("is_message",e.isMessage),""!==e.isEffective&&null!==e.isEffective&&void 0!==e.isEffective&&a.append("is_effective",e.isEffective),""!==e.effect_region&&null!==e.effect_region&&void 0!==e.effect_region&&a.append("effect_region",e.effect_region),""!==e.effect_repository&&null!==e.effect_repository&&void 0!==e.effect_repository&&a.append("effect_repository",e.effect_repository),""!==e.countryId&&null!==e.countryId&&void 0!==e.countryId&&a.append("country_id",e.countryId),""!==t&&null!==t&&void 0!==t&&a.append("detailJson",t),Object(n.a)({url:"http://192.168.1.45:8080/erp/approvalProcess/update",method:"post",data:a})}},"wI1+":function(e,t,a){"use strict";var n=a("yyzf");a.n(n).a},yyzf:function(e,t,a){}}]); |