(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17c06b9e"],{"187c":function(t,e,a){"use strict";a("a811")},8277:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"portlet box green"},[t._m(0),a("div",{staticClass:"portlet-body form"},[a("form",{staticClass:"form-horizontal",attrs:{role:"form"}},[a("div",{staticClass:"form-body"},[a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-3 control-label"},[t._v("* 项目名称")]),a("div",{staticClass:"col-md-9"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.model.SPROJNAME,expression:"model.SPROJNAME"}],staticClass:"form-control",attrs:{type:"text",placeholder:"请输入项目名称"},domProps:{value:t.model.SPROJNAME},on:{change:function(e){return t.projectNameChange(t.model.SPROJNAME)},input:function(e){e.target.composing||t.$set(t.model,"SPROJNAME",e.target.value)}}}),t.isShowProjectNameHelp?a("span",{staticClass:"help-block",staticStyle:{color:"#a94442"}},[t._v("项目名称必填！")]):t._e()])]),a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-3 control-label"},[t._v("项目编号")]),a("div",{staticClass:"col-md-9"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.model.SPROJCODE,expression:"model.SPROJCODE"}],staticClass:"form-control",attrs:{type:"text",placeholder:"请输入项目编号"},domProps:{value:t.model.SPROJCODE},on:{input:function(e){e.target.composing||t.$set(t.model,"SPROJCODE",e.target.value)}}})])]),a("div",{staticClass:"form-group"},[a("label",{staticClass:"col-md-3 control-label"},[t._v("备注")]),a("div",{staticClass:"col-md-9"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.model.SMEMO,expression:"model.SMEMO"}],staticClass:"form-control",attrs:{type:"text",placeholder:""},domProps:{value:t.model.SMEMO},on:{input:function(e){e.target.composing||t.$set(t.model,"SMEMO",e.target.value)}}})])])]),a("div",{staticClass:"form-actions"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-offset-3 col-md-9"},[a("button",{staticClass:"btn green",attrs:{type:"button"},on:{click:t.save}},[t._v("保存")]),a("button",{staticClass:"btn default",attrs:{type:"button"},on:{click:t.cancel}},[t._v("取消")])])])])])])])])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"portlet-title"},[a("div",{staticClass:"caption"},[a("i",{staticClass:"fa fa-gift"}),t._v("新建项目\n      ")])])}],c=a("a6d2"),l={data:function(){return{model:{},isShowProjectNameHelp:!1}},created:function(){this.fetchData()},watch:{},methods:{cancel:function(){this.$emit("cancel"),this.$router.push({path:"/"})},projectNameChange:function(t){this.isShowProjectNameHelp=!t},fetchData:function(){var t=this;c["a"].getNew((function(e){t.model=e}),(function(e){t.$message.error(e.Message)}))},save:function(){var t=this;c["a"].save(this.model,(function(e){t.$message.success("项目创建成功,请关联服务器"),t.$emit("saveNewProjectCallBack",e),t.$router.push({path:"/manager/upper"})}),(function(e){t.$message.error(e.Message)}))}}},i=l,n=(a("187c"),a("2877")),r=Object(n["a"])(i,o,s,!1,null,null,null);e["default"]=r.exports},a6d2:function(t,e,a){"use strict";var o=a("51f3");e["a"]={batchSave:function(t,e,a,s){o["a"].call("Project","BatchSave",{userprojects:t,pk_user:e},a,s)},getUserProjectByUser:function(t,e,a){o["a"].call("Project","GetUserProjectByUser",{pk_user:t},e,a)},getList:function(t,e){o["a"].call("Project","GetList",{},t,e)},getListByCompany:function(t,e,a){o["a"].call("Project","GetList",{pk_company:t},e,a)},getNew:function(t,e){o["a"].call("Project","GetNew",{},t,e)},getByPK:function(t,e,a){o["a"].call("Project","GetByPK",{pk:t},e,a)},save:function(t,e,a){o["a"].call("Project","Save",{project:t},e,a)},delete:function(t,e,a){o["a"].call("Project","Delete",{PK:t},e,a)}}},a811:function(t,e,a){}}]);