(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesB/pages/zhuanhuiApplication/zhuanhuiApplication"],{"039d":function(e,n,t){"use strict";t.r(n);var o=t("2f5a"),u=t.n(o);for(var i in o)"default"!==i&&function(e){t.d(n,e,(function(){return o[e]}))}(i);n["default"]=u.a},"2c4d":function(e,n,t){},"2f5a":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{model:{newName:"",newDeptId:"",content:""},rules:{newName:[{required:!0,message:"请选择工会",trigger:["change","blur"]}],content:[{required:!0,message:"请填写转会理由",trigger:"change"}]},border:!1,labelPosition:"top",selectList:[{value:"电子产品",label:"电子产品"},{value:"服装",label:"服装"},{value:"工艺品",label:"工艺品"}],selectShow:!1,userInfo:""}},onReady:function(){this.userInfo=this.getStore("userInfo"),console.log("this.userInfo----",this.userInfo),this.findAll(),this.$refs.uForm.setRules(this.rules)},methods:{findAll:function(){var e=this;this.$u.api.findAll().then((function(n){console.log(n),e.selectList=n.obj}))},selectConfirm:function(e){var n=this;console.log("e----====",e),this.model.goodsType="",e.map((function(e,t){n.model.newName+=""==n.model.newName?e.label:"-"+e.label,n.model.newDeptId+=""==n.model.newDeptId?e.value:"-"+e.value,console.log("this.model.newName---",n.model.newName)}))},submit:function(){var n=this;this.$u.toast("Hello uView!"),this.$refs.uForm.validate((function(t){if(console.log(t,"..........valid"),t){var o={userId:n.userInfo.id,deptId:n.userInfo.deptId,newDeptId:n.model.newDeptId,content:n.model.content};n.$u.api.save(o).then((function(t){console.log("res---",t.message),e.$emit("refeshList","测试一下"),n.$u.toast(t.message),setTimeout((function(){e.navigateBack()}),1e3)}))}}))}}};n.default=t}).call(this,t("543d")["default"])},"4d43":function(e,n,t){"use strict";t.r(n);var o=t("8093"),u=t("039d");for(var i in u)"default"!==i&&function(e){t.d(n,e,(function(){return u[e]}))}(i);t("a89b");var l,s=t("f0c5"),r=Object(s["a"])(u["default"],o["b"],o["c"],!1,null,"5c3b65f3",null,!1,o["a"],l);n["default"]=r.exports},8093:function(e,n,t){"use strict";t.d(n,"b",(function(){return u})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return o}));var o={uForm:function(){return t.e("uview-ui/components/u-form/u-form").then(t.bind(null,"d071"))},uFormItem:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-form-item/u-form-item")]).then(t.bind(null,"e574"))},uInput:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-input/u-input")]).then(t.bind(null,"5418"))},uButton:function(){return t.e("uview-ui/components/u-button/u-button").then(t.bind(null,"f2e9"))},uSelect:function(){return t.e("uview-ui/components/u-select/u-select").then(t.bind(null,"d52c"))}},u=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.selectShow=!0})},i=[]},a89b:function(e,n,t){"use strict";var o=t("2c4d"),u=t.n(o);u.a},cda6:function(e,n,t){"use strict";(function(e){t("b0f1");o(t("66fd"));var n=o(t("4d43"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("543d")["createPage"])}},[["cda6","common/runtime","common/vendor"]]]);
|