| | |
| | | (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/addition_subtraction_details/addition_subtraction_details"],{219:function(n,e,t){"use strict";(function(n,e){var i=t(4);t(26);i(t(25));var o=i(t(220));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},220:function(n,e,t){"use strict";t.r(e);var i=t(221),o=t(223);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);t(225),t(227);var u,a=t(32),s=Object(a["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"1aca0a86",null,!1,i["components"],u);s.options.__file="pages/addition_subtraction_details/addition_subtraction_details.vue",e["default"]=s.exports},221:function(n,e,t){"use strict";t.r(e);var i=t(222);t.d(e,"render",(function(){return i["render"]})),t.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(e,"components",(function(){return i["components"]}))},222:function(n,e,t){"use strict";var i;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return u})),t.d(e,"recyclableRender",(function(){return r})),t.d(e,"components",(function(){return i}));try{i={uTabs:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-tabs/u-tabs")]).then(t.bind(null,458))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,425))},uModal:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-modal/u-modal")]).then(t.bind(null,450))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement,t=(n._self._c,n.info?n.returnStyle(n.info.status):null),i=n.info?n.returnStyle1(n.info.status):null,o=n.__map(n.list,(function(e,t){var i=n.__get_orig(e),o=n.IdCard(e.memberIdcardNo);return{$orig:i,m2:o}})),r=n.info?[2,1,5,0].includes(n.info.status):null;n._isMounted||(n.e0=function(e){n.show=!0},n.e1=function(e){n.show2=!0},n.e2=function(e){n.show=!0},n.e3=function(e){n.show2=!0}),n.$mp.data=Object.assign({},{$root:{m0:t,m1:i,l0:o,g0:r}})},r=!1,u=[];o._withStripped=!0},223:function(n,e,t){"use strict";t.r(e);var i=t(224),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},224:function(n,e,t){"use strict";(function(n){var i=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(t(18)),r=i(t(11)),u=t(160);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?a(Object(t),!0).forEach((function(e){(0,r.default)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var c={data:function(){return{id:null,info:null,types:["0"],next:!1,page:1,list:[],show:!1,show1:!1,show2:!1,cate:[{name:"加保人员"},{name:"减保人员"}],type:null,code:"",num:0,error:!1,timer:null,loading:!1}},onLoad:function(n){this.id=n.id,this.getInfo(),this.getList()},computed:s({},(0,u.mapState)(["userInfo"])),onReachBottom:function(){this.getList()},methods:{seePdf:function(e){e&&n.downloadFile({url:e,success:function(e){var t=e.tempFilePath;n.openDocument({filePath:t,success:function(n){}})}})},send:function(){var n=this;this.$u.api.sendSms({phone:this.userInfo.mobile}).then((function(e){200===e.code&&(n.num=60,n.setTime())}))},setTime:function(){var n=this;this.timer=setInterval((function(){if(0===n.num)return clearInterval(n.timer),void(n.timer=null);n.num=n.num-1}),1e3)},openmessage:function(n){this.type=n,this.confirm1()},IdCard:function(n){var e=n.toString(),t=new Date,i=t.getMonth()+1,o=t.getDate(),r=t.getFullYear()-e.substring(6,10)-1;return(e.substring(10,12)<i||e.substring(10,12)==i&&e.substring(12,14)<=o)&&r++,r},changeTabs:function(n){this.types=1===n.index?["1"]:["0"],this.next=!1,this.page=1,this.list=[],this.getList()},getInfo:function(){var n=this;this.$u.api.applyChangeById(this.id).then((function(e){200===e.code&&(n.info=e.data)}))},getList:function(){var n=this;this.next||this.$u.api.applyChagneDetailPage({capacity:10,page:this.page,model:{applyChangeId:this.id,types:this.types}}).then((function(e){var t;200===e.code&&(e.data.records.length>0?(n.page++,(t=n.list).push.apply(t,(0,o.default)(e.data.records))):n.next=!0)}))},confirm:function(){var n=this;this.$u.api.applyChangeOpt({applyId:this.info.id,optType:3}).then((function(e){200===e.code&&(n.show=!1,n.getInfo())}))},cancel:function(){this.show=!1},confirm1:function(){var e=this;this.loading=!0,1===this.type?(console.log("签署申请单"),this.$u.api.validateCode({code:this.code}).then((function(t){200===t.code&&e.$u.api.getJiajianBaoSignLink({id:e.info.id}).then((function(t){200===t.code&&(e.loading=!1,n.navigateTo({url:"/pages/webView/webView?url=".concat(encodeURIComponent(t.data))}))}))}))):2===this.type&&this.$u.api.getChangeMemberListOnlineSignLink({businessId:this.info.id,code:this.code}).then((function(t){200===t.code&&(e.loading=!1,n.navigateTo({url:"/pages/webView/webView?url=".concat(encodeURIComponent(t.data))}))}))},cancel1:function(){this.show1=!1},confirm2:function(){var n=this;this.$u.api.applyChangeOpt({applyId:this.info.id,optType:6}).then((function(e){200===e.code&&(n.show2=!1,n.getInfo())}))},cancel2:function(){this.show2=!1},returnStyle:function(n){return[2,9].includes(n)?"linear-gradient(#97DDC5 0%, #F7F7F7 100%);":[0,1,7].includes(n)?"linear-gradient( 180deg, #FBC88C 0%, #F7F7F7 100%);":[3,5,6].includes(n)?"":void 0},returnStyle1:function(n){return[2,9].includes(n)?"linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%)":[0,1,7].includes(n)?"linear-gradient( 180deg, #FFF2E3 0%, rgba(255,255,255,0) 100%);":[3,5,6].includes(n)?"#ffffff":void 0}}};e.default=c}).call(this,t(2)["default"])},225:function(n,e,t){"use strict";t.r(e);var i=t(226),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},226:function(n,e,t){},227:function(n,e,t){"use strict";t.r(e);var i=t(228),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},228:function(n,e,t){}},[[219,"common/runtime","common/vendor"]]]); |
| | | (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/addition_subtraction_details/addition_subtraction_details"],{219:function(n,e,t){"use strict";(function(n,e){var i=t(4);t(26);i(t(25));var o=i(t(220));n.__webpack_require_UNI_MP_PLUGIN__=t,e(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},220:function(n,e,t){"use strict";t.r(e);var i=t(221),o=t(223);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);t(225),t(227);var u,a=t(32),s=Object(a["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,"1aca0a86",null,!1,i["components"],u);s.options.__file="pages/addition_subtraction_details/addition_subtraction_details.vue",e["default"]=s.exports},221:function(n,e,t){"use strict";t.r(e);var i=t(222);t.d(e,"render",(function(){return i["render"]})),t.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(e,"components",(function(){return i["components"]}))},222:function(n,e,t){"use strict";var i;t.r(e),t.d(e,"render",(function(){return o})),t.d(e,"staticRenderFns",(function(){return u})),t.d(e,"recyclableRender",(function(){return r})),t.d(e,"components",(function(){return i}));try{i={uTabs:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-tabs/u-tabs")]).then(t.bind(null,485))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,459))},uModal:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-modal/u-modal")]).then(t.bind(null,477))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var n=this,e=n.$createElement,t=(n._self._c,n.info?n.returnStyle(n.info.status):null),i=n.info?n.returnStyle1(n.info.status):null,o=n.__map(n.list,(function(e,t){var i=n.__get_orig(e),o=n.IdCard(e.memberIdcardNo);return{$orig:i,m2:o}})),r=n.info?[2,1,5,0].includes(n.info.status):null;n._isMounted||(n.e0=function(e){n.show=!0},n.e1=function(e){n.show2=!0},n.e2=function(e){n.show=!0},n.e3=function(e){n.show2=!0}),n.$mp.data=Object.assign({},{$root:{m0:t,m1:i,l0:o,g0:r}})},r=!1,u=[];o._withStripped=!0},223:function(n,e,t){"use strict";t.r(e);var i=t(224),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},224:function(n,e,t){"use strict";(function(n){var i=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(t(18)),r=i(t(11)),u=t(160);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?a(Object(t),!0).forEach((function(e){(0,r.default)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var c={data:function(){return{id:null,info:null,types:["0"],next:!1,page:1,list:[],show:!1,show1:!1,show2:!1,cate:[{name:"加保人员"},{name:"减保人员"}],type:null,code:"",num:0,error:!1,timer:null,loading:!1}},onLoad:function(n){this.id=n.id,this.getInfo(),this.getList()},computed:s({},(0,u.mapState)(["userInfo"])),onReachBottom:function(){this.getList()},methods:{seePdf:function(e){e&&n.downloadFile({url:e,success:function(e){var t=e.tempFilePath;n.openDocument({filePath:t,success:function(n){}})}})},send:function(){var n=this;this.$u.api.sendSms({phone:this.userInfo.mobile}).then((function(e){200===e.code&&(n.num=60,n.setTime())}))},setTime:function(){var n=this;this.timer=setInterval((function(){if(0===n.num)return clearInterval(n.timer),void(n.timer=null);n.num=n.num-1}),1e3)},openmessage:function(n){this.type=n,this.confirm1()},IdCard:function(n){var e=n.toString(),t=new Date,i=t.getMonth()+1,o=t.getDate(),r=t.getFullYear()-e.substring(6,10)-1;return(e.substring(10,12)<i||e.substring(10,12)==i&&e.substring(12,14)<=o)&&r++,r},changeTabs:function(n){this.types=1===n.index?["1"]:["0"],this.next=!1,this.page=1,this.list=[],this.getList()},getInfo:function(){var n=this;this.$u.api.applyChangeById(this.id).then((function(e){200===e.code&&(n.info=e.data)}))},getList:function(){var n=this;this.next||this.$u.api.applyChagneDetailPage({capacity:10,page:this.page,model:{applyChangeId:this.id,types:this.types}}).then((function(e){var t;200===e.code&&(e.data.records.length>0?(n.page++,(t=n.list).push.apply(t,(0,o.default)(e.data.records))):n.next=!0)}))},confirm:function(){var n=this;this.$u.api.applyChangeOpt({applyId:this.info.id,optType:3}).then((function(e){200===e.code&&(n.show=!1,n.getInfo())}))},cancel:function(){this.show=!1},confirm1:function(){var e=this;this.loading=!0,1===this.type?(console.log("签署申请单"),this.$u.api.validateCode({code:this.code}).then((function(t){200===t.code&&e.$u.api.getJiajianBaoSignLink({id:e.info.id}).then((function(t){200===t.code&&(e.loading=!1,n.navigateTo({url:"/pages/webView/webView?url=".concat(encodeURIComponent(t.data))}))}))}))):2===this.type&&this.$u.api.getChangeMemberListOnlineSignLink({businessId:this.info.id,code:this.code}).then((function(t){200===t.code&&(e.loading=!1,n.navigateTo({url:"/pages/webView/webView?url=".concat(encodeURIComponent(t.data))}))}))},cancel1:function(){this.show1=!1},confirm2:function(){var n=this;this.$u.api.applyChangeOpt({applyId:this.info.id,optType:6}).then((function(e){200===e.code&&(n.show2=!1,n.getInfo())}))},cancel2:function(){this.show2=!1},returnStyle:function(n){return[2,9].includes(n)?"linear-gradient(#97DDC5 0%, #F7F7F7 100%);":[0,1,7].includes(n)?"linear-gradient( 180deg, #FBC88C 0%, #F7F7F7 100%);":[3,5,6].includes(n)?"":void 0},returnStyle1:function(n){return[2,9].includes(n)?"linear-gradient( 180deg, #E5F7F1 0%, rgba(255,255,255,0) 100%)":[0,1,7].includes(n)?"linear-gradient( 180deg, #FFF2E3 0%, rgba(255,255,255,0) 100%);":[3,5,6].includes(n)?"#ffffff":void 0}}};e.default=c}).call(this,t(2)["default"])},225:function(n,e,t){"use strict";t.r(e);var i=t(226),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},226:function(n,e,t){},227:function(n,e,t){"use strict";t.r(e);var i=t(228),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);e["default"]=o.a},228:function(n,e,t){}},[[219,"common/runtime","common/vendor"]]]); |
| | | //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/addition_subtraction_details/addition_subtraction_details.js.map |