1 line
4.0 KiB
JavaScript
1 line
4.0 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/auditingPop/reject"],{"0c49":function(t,e,n){"use strict";var i=n("5d6d"),o=n.n(i);o.a},"5ae0":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var o=function(){var t=this,e=t.$createElement;t._self._c},s=[]},"5d6d":function(t,e,n){},9639:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r={data:function(){return{postData:{PROINST_ID:"",FINANCEPROINST_ID:"",NOWACTINST_ID:"",PROINST_NEXTID:3e3,APPROVED_INFO:""},NextActDefList:[],isExpense:!1,isSubmit:!1,pickerIndex:0}},computed:s({},(0,i.mapGetters)({users:"getUser"})),methods:s(s({},(0,i.mapMutations)(["isGetTodoList","shouldReLoadingList"])),{},{pickerChange:function(t){this.pickerIndex=t.mp.detail.value},getHighNextActDef:function(){var e=this,n={};n={action_type:"GetNextStep",businessType:e.postData.businessType,PROINST_ID:e.postData.PROINST_ID,PROINST_NEXTID:e.postData.PROINST_NEXTID},this.$request.get(n).then((function(n){t.hideLoading(),e.NextActDefList=n.Data.List}))},postFn:function(){var e=this;if(!e.isSubmit){if(!e.NextActDefList[e.pickerIndex])return t.showToast({title:"请选择回退环节后提交。",icon:"none"}),!1;if(!e.postData.APPROVED_INFO)return t.showToast({title:"请填写驳回原因。",icon:"none"}),!1;var n={};n=this.isExpense?{action_type:"SubmitFinaceInfo",action_data:e.users.uid,FINANCEPROINST_ID:e.postData.FINANCEPROINST_ID,FINANCEPROINST_NEXTID:e.postData.PROINST_NEXTID,OPERATION_TYPE:e.postData.ACCEPT_TYPE,NOWACTDEF_IDS:e.postData.NOWACTINST_ID,APPROVED_INFO:e.postData.APPROVED_INFO,NextSTAFF_ID:"",NextACTDEF_IDS:e.postData.NextACTDEF_IDS}:{action_type:"ProcessApproval",businessType:e.postData.businessType,PROINST_ID:e.postData.PROINST_ID,PROINST_NEXTID:e.postData.PROINST_NEXTID,NOWACTINST_IDS:e.postData.NOWACTINST_ID,NextACTDEF_IDS:e.NextActDefList[e.pickerIndex].ActInst_ID,APPROVED_INFO:e.postData.APPROVED_INFO,NextSTAFF_ID:""},this.isSubmit=!0,this.$request.post(n).then((function(n){e.isSubmit=!1,"100"===n.ResultCode?(t.$emit(e.postData.businessType,!0),e.isGetTodoList(!0),e.shouldReLoadingList(!0),t.showToast({title:n.ResultDesc,icon:"none",success:function(){setTimeout((function(){t.navigateBack({delta:1})}),200)}})):t.showToast({title:n.ResultDesc||"操作错误",icon:"none"})}))}}}),onLoad:function(e){this.postData=e,this.postData.PROINST_NEXTID=3e3,this.postData.APPROVED_INFO="",t.showLoading({title:"正在加载"}),this.getHighNextActDef()},onUnload:function(){this.$util.addUserBehavior()}};e.default=r}).call(this,n("543d")["default"])},ad36:function(t,e,n){"use strict";n.r(e);var i=n("9639"),o=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=o.a},d7d8:function(t,e,n){"use strict";n.r(e);var i=n("5ae0"),o=n("ad36");for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("0c49");var a,r=n("f0c5"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,"1e1a1d3b",null,!1,i["a"],a);e["default"]=c.exports},db3e:function(t,e,n){"use strict";(function(t){n("40da");i(n("66fd"));var e=i(n("d7d8"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["db3e","common/runtime","common/vendor"]]]); |