12 |
- require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["packageA/pages/duty/index"],{128:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var i=r(t(129));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t(1)["default"],t(2)["createPage"])},129:function(e,n,t){"use strict";t.r(n);var r=t(130),i=t(132);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t(134);var u,c=t(32),a=Object(c["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,"145d70ba",null,!1,r["components"],u);a.options.__file="packageA/pages/duty/index.vue",n["default"]=a.exports},130:function(e,n,t){"use strict";t.r(n);var r=t(131);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},131:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return r}));try{r={uniListItem:function(){return t.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(t.bind(null,254))},uniTag:function(){return t.e("uni_modules/uni-tag/components/uni-tag/uni-tag").then(t.bind(null,191))},uniDataSelect:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-data-select/components/uni-data-select/uni-data-select")]).then(t.bind(null,167))},uniList:function(){return t.e("uni_modules/uni-list/components/uni-list/uni-list").then(t.bind(null,247))},uniSwipeAction:function(){return t.e("uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action").then(t.bind(null,302))},uniSwipeActionItem:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item")]).then(t.bind(null,307))},uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,183))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];i._withStripped=!0},132:function(e,n,t){"use strict";t.r(n);var r=t(133),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},133:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t(11)),o=t(59),u=r(t(48));function c(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?c(Object(t),!0).forEach((function(n){(0,i.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var s=function(){t.e("packageA/pages/duty/components/AddForm").then(function(){return resolve(t(375))}.bind(null,t)).catch(t.oe)},d={components:{AddForm:s},computed:{weeks:function(){var e=this;return Array.from({length:(0,o.getNumberOfWeeks)(this.year)},(function(n,t){return{value:t+1,text:"".concat(e.year,"年第").concat(t+1,"周")}}))},years:function(){var e=this.year;return Array.from({length:101},(function(n,t){return{value:e+t-20,text:"".concat(e+t-20,"年")}}))},startDate:function(){var e=(0,o.getDateByWeek)(this.week-1,this.year);return(0,o.parseTime)(e,"{y}-{m}-{d}")},endDate:function(){var e=new Date((0,o.getDateByWeek)(this.week-1,this.year)),n=e.setDate(e.getDate()+6);return(0,o.parseTime)(n,"{y}-{m}-{d}")}},data:function(){return{keywords:"",year:(new Date).getFullYear(),dutyDate:"",week:(0,o.currentWeek)(),changeIndx:-1,items:[]}},onShow:function(){this.getData()},methods:{getData:function(){var e=this;u.default.getWeekRecordByList({year:this.year,week:this.week}).then((function(n){e.items=n.data.map((function(e,n){return a(a({},e),{},{id:"".concat(e.accountId,"-").concat(n+1)})}))}))},swipeHandle:function(n){var t=n.type,r=n.item,i=this,o=this.week,c=this.year;1===t?this.$refs.add.show({type:"edit",params:a({week:o,year:c},r)}):e.showModal({title:"提示",content:"是否确定删除",success:function(n){n.confirm&&u.default.deleteWeekRecordById(c,o,r.accountId).then((function(){e.showToast({title:"删除成功!",icon:"none"}),i.getData()}))}})},onAdd:function(){this.$refs.add.show({type:"add",params:{week:this.week,year:this.year}})}}};n.default=d}).call(this,t(2)["default"])},134:function(e,n,t){"use strict";t.r(n);var r=t(135),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},135:function(e,n,t){}},[[128,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/packageA/pages/duty/index.js.map
|