2020-11-12 14:57:34 +08:00

1 line
3.9 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/auditingPop/reject"],{"015c":function(t,e,n){"use strict";(function(t){n("5fd4");i(n("66fd"));var e=i(n("b0b7"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"0455":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement;t._self._c},o=[]},6852:function(t,e,n){},"6b8a":function(t,e,n){"use strict";n.r(e);var i=n("f330"),s=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=s.a},b0b7:function(t,e,n){"use strict";n.r(e);var i=n("0455"),s=n("6b8a");for(var o in s)"default"!==o&&function(t){n.d(e,t,(function(){return s[t]}))}(o);n("cf14");var a,r=n("f0c5"),c=Object(r["a"])(s["default"],i["b"],i["c"],!1,null,"38d08667",null,!1,i["a"],a);e["default"]=c.exports},cf14:function(t,e,n){"use strict";var i=n("6852"),s=n.n(i);s.a},f330:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("2f62");function s(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 o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(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:o({},(0,i.mapGetters)({users:"getUser"})),methods:o(o({},(0,i.mapMutations)(["isGetTodoList"])),{},{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?(e.$eventHub.$emit(e.postData.businessType,!0),e.isGetTodoList(!0),t.showToast({title:n.ResultDesc,icon:"none",success:function(){setTimeout((function(){t.navigateBack({delta:2})}),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()}};e.default=r}).call(this,n("543d")["default"])}},[["015c","common/runtime","common/vendor"]]]);