You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
23 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/time-manage.vue?ccd3","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/time-manage.vue?acfb","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/time-manage.vue?eda3","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/time-manage.vue?c0c3","uni-app:///technician/pages/time-manage.vue","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/time-manage.vue?38fd","webpack:///C:/Users/Administrator/Desktop/上门按摩/uniapp/technician/pages/time-manage.vue?684d"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","wPicker","tab","data","toDay","toDayTime","showKey","showTime","form","id","is_work","start_time","end_time","coach_status","time_unit","dayList","dayCurrent","computed","primaryColor","subColor","userInfo","onLoad","methods","initIndex","cur_time","item","bg","toChangeItem","toShowTime","onConfirm","toCount","getTimeCall","dat_str","setDate","getDateTime","sub","is_click","is_order","status","handerTabChange","isTimes","submit","param","title","key","val","setTimeout","url","openType","filters","handleStartEndTime","text"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,mBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwH;AACxH;AAC+D;AACL;AACc;;;AAGxE;AAC0M;AAC1M,gBAAgB,iNAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,sFAAM;AACR,EAAE,+FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,0FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,yLAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC1EA;AAAA;AAAA;AAAA;AAA2yB,CAAgB,yyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;AC8D/zB;AAIA;AAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA,eAGA;EACAC;IACAC;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;IACAC;MAAA;IAAA;EACA;EACAC;IACA;EACA;EACAC,yCACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBASAC;gBACA;gBACA;gBAAA;gBAAA,OACA;cAAA;gBAAArB;gBACA;kBACA;gBACA;gBACAA;kBACAsB;kBACAA;gBACA;gBACA;gBACA;gBACA;kBACAC;gBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAC;MACA;MACA;IACA;IACAC;MACA;MACA;MACA;IACA;IACAC;MACA;MACA;IACA;IACAC;MACA,kBAEA,KADA1B;QAAAA;MAEA,iBAGA;QAAA,mCAFAO;QAAAA;QAAA,iCACAC;QAAAA;MAEA;QACA;UACAa;QACA;QACA;MACA;IACA;IACAM;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACA;gBAAA,cAIA,iDAFApB,2HACAC;gBAGAI,aAEA,OAFAA,YACAD,UACA,OADAA;gBAAA;gBAAA,OAEA;kBACAJ;kBACAC;kBACAoB;gBACA;cAAA;gBAJA7B;gBAKA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACA8B;MACA;IACA;IACAC;MACA;MACA,IACAlB,aACA,KADAA;MAEA,4BAEA,yBADAmB;QAAAA;MAEA,iBAIAA;QAHAC;QACAC;QACAC;MAEA;MACA;MACA;IACA;IACAC;MACA;MACA;MACA;MACA;IACA;IACAC;MACA;MACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBAAA,MACA;kBAAA;kBAAA;gBAAA;gBACA;kBACAC;gBACA;gBAAA;cAAA;gBAGA;gBACA5B;gBACA2B;gBACA;gBAAA;gBAAA,OACA;cAAA;gBACA;gBACA;kBACAC;gBACA;gBACA;kBACAC;kBACAC;gBACA;gBACAC;kBACA;kBACA;oBACAC;oBACAC;kBACA;gBACA;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IAEA;EAAA,EACA;EACAC;IACAC;MACA;MACA,IACAvC,aAEAkC,IAFAlC;QACAC,WACAiC,IADAjC;MAEA;MACA;MACA;QACAuC;MACA;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;AC3PA;AAAA;AAAA;AAAA;AAAk/C,CAAgB,w6CAAG,EAAC,C;;;;;;;;;;;ACAtgD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"technician/pages/time-manage.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './technician/pages/time-manage.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./time-manage.vue?vue&type=template&id=c44d4486&\"\nvar renderjs\nimport script from \"./time-manage.vue?vue&type=script&lang=js&\"\nexport * from \"./time-manage.vue?vue&type=script&lang=js&\"\nimport style0 from \"./time-manage.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"technician/pages/time-manage.vue\"\nexport default component.exports","export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./time-manage.vue?vue&type=template&id=c44d4486&\"","var components\ntry {\n components = {\n wPicker: function () {\n return import(\n /* webpackChunkName: \"components/w-picker/w-picker\" */ \"@/components/w-picker/w-picker.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var f0 = _vm._f(\"handleStartEndTime\")(_vm.form, _vm.toDay)\n var g0 = _vm.dayList.length\n var g1 = _vm.dayList.length\n var l0 =\n g1 > 0\n ? _vm.__map(_vm.dayList[_vm.dayCurrent].sub, function (item, index) {\n var $orig = _vm.__get_orig(item)\n var m0 =\n _vm.isTimes(item.time_str) ||\n item.is_order == 1 ||\n _vm.form.coach_status == 3\n var m1 =\n _vm.form.coach_status != 3 &&\n item.status == 0 &&\n item.is_order == 0 &&\n !_vm.isTimes(item.time_str)\n var m2 =\n item.status == 0 &&\n item.is_order == 0 &&\n !_vm.isTimes(item.time_str)\n var m3 = _vm.isTimes(item.time_str) || item.status == 0\n return {\n $orig: $orig,\n m0: m0,\n m1: m1,\n m2: m2,\n m3: m3,\n }\n })\n : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n f0: f0,\n g0: g0,\n g1: g1,\n l0: l0,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./time-manage.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./time-manage.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"technician-time-manage\">\r\n\r\n\t\t<view class=\"fill-base pd-lg flex-between\">\r\n\t\t\t<view class=\"flex-1 flex-y-baseline f-title c-title\">是否接单<view class=\"f-paragraph ml-sm\"\r\n\t\t\t\t\t:style=\"{color:form.is_work==1?primaryColor:'#999'}\">\r\n\t\t\t\t\t{{form.is_work==1?'接单':'休息'}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view @tap.stop=\"toChangeItem\">\r\n\t\t\t\t<i class=\"iconfont icon-switch c-caption ml-sm\" :class=\"[{'icon-switch-on':form.is_work==1}]\"\r\n\t\t\t\t\t:style=\"{ color: form.is_work==1 ? primaryColor : ''}\"></i>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t\t<view class=\"fill-base mt-md b-1px-b\">\r\n\t\t\t<view class=\"f-title c-title pd-lg\">选择接单时间</view>\r\n\t\t</view>\r\n\t\t<view class=\"flex-center fill-base f-paragraph c-desc pt-lg pb-lg b-1px-b\">\r\n\t\t\t<view @tap.stop=\"toShowTime('start_time')\" class=\"item-time flex-center flex-column\">\r\n\t\t\t\t<view>开始时间</view>\r\n\t\t\t\t<view class=\"mt-sm\" :style=\"{color:form.start_time ? primaryColor : '#999'}\">\r\n\t\t\t\t\t{{form.start_time || '选择时间'}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view @tap.stop=\"toShowTime('end_time')\" class=\"item-time flex-center flex-column b-1px-l\">\r\n\t\t\t\t<view>结束时间</view>\r\n\t\t\t\t<view class=\"mt-sm\" :style=\"{color:form.end_time ? primaryColor : '#999'}\">\r\n\t\t\t\t\t{{form | handleStartEndTime(toDay)}}{{form.end_time || '选择时间'}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"fill-base pb-lg\" style=\"border-bottom-left-radius: 32rpx;border-bottom-right-radius: 32rpx;\">\r\n\t\t\t<view class=\"flex pl-md pr-md pt-lg pb-lg\">\r\n\t\t\t\t<view class=\"f-mini-title\">设置不可接单时间</view>\r\n\t\t\t\t<view class=\"f-paragraph c-disable\">(只能设置近{{dayList.length}}天的时间)</view>\r\n\t\t\t</view>\r\n\t\t\t<tab @change=\"handerTabChange\" :list=\"dayList\" :activeIndex=\"dayCurrent*1\" :activeColor=\"primaryColor\"\r\n\t\t\t\twidth=\"150rpx\" height=\"80rpx\"></tab>\r\n\t\t</view>\r\n\t\t<view class=\"date-list flex pt-md\" v-if=\"dayList.length > 0\">\r\n\t\t\t<view class=\"date-item radius-16 flex-center ml-md mt-md\" @tap=\"getDateTime(index)\"\r\n\t\t\t\t:style=\"{ background : form.coach_status != 3 && item.status == 0 && item.is_order==0 && !isTimes(item.time_str) ? primaryColor : '' , color:item.status == 0 && item.is_order==0 && !isTimes(item.time_str) ? '#fff' : ''}\"\r\n\t\t\t\t:class=\"isTimes(item.time_str) || item.is_order==1 || form.coach_status == 3 ? 'date-item-prohibit c-disable' : 'fill-base c-5A677E'\"\r\n\t\t\t\tv-for=\"(item,index) in dayList[dayCurrent].sub\" :key=\"index\">\r\n\t\t\t\t<view class=\"text-center\">\r\n\t\t\t\t\t<view class=\"f-mini-title\">{{item.time_text}}</view>\r\n\t\t\t\t\t<view class=\"f-caption\">{{isTimes(item.time_str) || item.status == 0 ? '不可预约' : '可预约'}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"space-max-footer\"></view>\r\n\t\t<w-picker :visible.sync=\"showTime\" mode=\"time\" :value=\"toDayTime\" :current=\"false\" :second=\"false\"\r\n\t\t\t:themeColor=\"primaryColor\" @confirm=\"onConfirm\" ref=\"time\"></w-picker>\r\n\r\n\t\t<fix-bottom-button @confirm=\"submit\" :text=\"[{text:'保存',type:'confirm',isAuth:true}]\" bgColor=\"#fff\"\r\n\t\t\tv-if=\"form.coach_status !=3 \"></fix-bottom-button>\r\n\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapState,\r\n\t\tmapMutations\r\n\t} from \"vuex\"\r\n\timport $util from \"@/utils/index.js\"\r\n\timport wPicker from \"@/components/w-picker/w-picker.vue\";\r\n\timport tab from \"@/components/tab.vue\"\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\twPicker,\r\n\t\t\ttab\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttoDay: '',\r\n\t\t\t\ttoDayTime: '',\r\n\t\t\t\tshowKey: '',\r\n\t\t\t\tshowTime: false,\r\n\t\t\t\tform: {\r\n\t\t\t\t\tid: 0,\r\n\t\t\t\t\tis_work: 0,\r\n\t\t\t\t\tstart_time: '',\r\n\t\t\t\t\tend_time: '',\r\n\t\t\t\t\tcoach_status: 0,\r\n\t\t\t\t\ttime_unit: ''\r\n\t\t\t\t}, \r\n\t\t\t\tdayList: [],\r\n\t\t\t\tdayCurrent: 0,\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: mapState({\r\n\t\t\tprimaryColor: state => state.config.configInfo.primaryColor,\r\n\t\t\tsubColor: state => state.config.configInfo.subColor,\r\n\t\t\tuserInfo: state => state.user.userInfo,\r\n\t\t}),\r\n\t\tonLoad() {\r\n\t\t\tthis.initIndex()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t...mapMutations(['updateTechnicianItem']),\r\n\t\t\tasync initIndex() {\r\n\t\t\t\t// #ifdef H5\r\n\t\t\t\tif (this.$jweixin.isWechat()) {\r\n\t\t\t\t\tawait this.$jweixin.initJssdk();\r\n\t\t\t\t\tthis.$jweixin.wxReady(() => {\r\n\t\t\t\t\t\tthis.$jweixin.hideOptionMenu()\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t// #endif\r\n\t\t\t\tlet cur_time = new Date(Math.ceil(new Date().getTime()))\r\n\t\t\t\tthis.toDay = this.$util.formatTime(cur_time, 'YY-M-D')\r\n\t\t\t\tthis.toDayTime = this.$util.formatTime(cur_time, 'h:m')\r\n\t\t\t\tlet data = await this.$api.technician.timeConfig()\r\n\t\t\t\tfor (let key in this.form) {\r\n\t\t\t\t\tthis.form[key] = data[key]\r\n\t\t\t\t}\r\n\t\t\t\tdata.day_list.forEach((item, index) => {\r\n\t\t\t\t\titem.title = index == 0 ? '今天' : item.dat_text\r\n\t\t\t\t\titem.sub = []\r\n\t\t\t\t})\r\n\t\t\t\tthis.form.time_unit = data.time_unit\r\n\t\t\t\tthis.dayList = data.day_list\r\n\t\t\t\tthis.$util.setNavigationBarColor({\r\n\t\t\t\t\tbg: this.primaryColor\r\n\t\t\t\t})\r\n\t\t\t\tthis.toCount()\r\n\t\t\t},\r\n\t\t\ttoChangeItem() {\r\n\t\t\t\tif (this.form.coach_status == 3) return\r\n\t\t\t\tthis.form.is_work = this.form.is_work == 1 ? 0 : 1\r\n\t\t\t},\r\n\t\t\ttoShowTime(key) {\r\n\t\t\t\tif (this.form.coach_status == 3) return\r\n\t\t\t\tthis.showKey = key\r\n\t\t\t\tthis.showTime = true\r\n\t\t\t},\r\n\t\t\tonConfirm(val) {\r\n\t\t\t\tthis.form[this.showKey] = val.result;\r\n\t\t\t\tthis.toCount()\r\n\t\t\t},\r\n\t\t\ttoCount() {\r\n\t\t\t\tlet {\r\n\t\t\t\t\ttoDay = ''\r\n\t\t\t\t} = this\r\n\t\t\t\tlet {\r\n\t\t\t\t\tstart_time = '',\r\n\t\t\t\t\t\tend_time = ''\r\n\t\t\t\t} = this.form\r\n\t\t\t\tif (toDay && start_time && end_time) {\r\n\t\t\t\t\tthis.dayList.forEach(item => {\r\n\t\t\t\t\t\titem.sub = []\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.getTimeCall()\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tasync getTimeCall() {\r\n\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\tlet {\r\n\t\t\t\t\tstart_time = '',\r\n\t\t\t\t\t\tend_time = ''\r\n\t\t\t\t} = this.form\r\n\t\t\t\tlet {\r\n\t\t\t\t\tdayCurrent,\r\n\t\t\t\t\tdayList\r\n\t\t\t\t} = this\r\n\t\t\t\tlet data = await this.$api.technician.getTime({\r\n\t\t\t\t\tstart_time,\r\n\t\t\t\t\tend_time,\r\n\t\t\t\t\tdat_str: dayList[dayCurrent].dat_str\r\n\t\t\t\t})\r\n\t\t\t\tthis.dayList[dayCurrent].sub = data\r\n\t\t\t\tthis.$util.hideAll()\r\n\t\t\t},\r\n\t\t\tsetDate(index) {\r\n\t\t\t\tthis.dayCurrent = index\r\n\t\t\t},\r\n\t\t\tgetDateTime(index) {\r\n\t\t\t\tif (this.form.coach_status == 3) return\r\n\t\t\t\tlet {\r\n\t\t\t\t\tdayCurrent\r\n\t\t\t\t} = this\r\n\t\t\t\tlet {\r\n\t\t\t\t\tsub = []\r\n\t\t\t\t} = this.dayList[dayCurrent]\r\n\t\t\t\tlet {\r\n\t\t\t\t\tis_click,\r\n\t\t\t\t\tis_order,\r\n\t\t\t\t\tstatus\r\n\t\t\t\t} = sub[index]\r\n\t\t\t\tif (sub && is_order == 1) return\r\n\t\t\t\tthis.dayList[dayCurrent].sub[index].is_click = is_click == 0 ? 1 : 0\r\n\t\t\t\tthis.dayList[dayCurrent].sub[index].status = status == 0 ? 1 : 0\r\n\t\t\t},\r\n\t\t\thanderTabChange(index) {\r\n\t\t\t\tif (this.form.coach_status == 3) return\r\n\t\t\t\tthis.dayCurrent = index\r\n\t\t\t\tif (this.dayList[index].sub && this.dayList[index].sub.length) return\r\n\t\t\t\tthis.getTimeCall()\r\n\t\t\t},\r\n\t\t\tisTimes(value) {\r\n\t\t\t\tlet date = new Date()\r\n\t\t\t\treturn date.getTime() / 1000 > value\r\n\t\t\t},\r\n\t\t\tasync submit() {\r\n\t\t\t\tlet param = this.$util.deepCopy(this.form)\r\n\t\t\t\tif (!param.start_time || !param.end_time) {\r\n\t\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\t\ttitle: !param.start_time ? `请选择开始时间` : `请选择结束时间`\r\n\t\t\t\t\t})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tdelete param.coach_status\r\n\t\t\t\tlet dayList = this.$util.deepCopy(this.dayList)\r\n\t\t\t\tparam.time_text = dayList\r\n\t\t\t\tthis.$util.showLoading()\r\n\t\t\t\tawait this.$api.technician.setTimeConfig(param)\r\n\t\t\t\tthis.$util.hideAll()\r\n\t\t\t\tthis.$util.showToast({\r\n\t\t\t\t\ttitle: `保存成功`\r\n\t\t\t\t});\r\n\t\t\t\tthis.updateTechnicianItem({\r\n\t\t\t\t\tkey: 'haveOperItem',\r\n\t\t\t\t\tval: true\r\n\t\t\t\t})\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tthis.$util.back()\r\n\t\t\t\t\tthis.$util.goUrl({\r\n\t\t\t\t\t\turl: 1,\r\n\t\t\t\t\t\topenType: `navigateBack`\r\n\t\t\t\t\t})\r\n\t\t\t\t}, 1000)\r\n\r\n\t\t\t}\r\n\t\t},\r\n\t\tfilters: {\r\n\t\t\thandleStartEndTime(val, toDay) {\r\n\t\t\t\tlet text = ''\r\n\t\t\t\tlet {\r\n\t\t\t\t\tstart_time,\r\n\t\t\t\t\tend_time\r\n\t\t\t\t} = val\r\n\t\t\t\tlet start = `${toDay} ${start_time}`\r\n\t\t\t\tlet end = `${toDay} ${end_time}`\r\n\t\t\t\tif (start_time && end_time && $util.DateToUnix(start) >= $util.DateToUnix(end)) {\r\n\t\t\t\t\ttext = '次日'\r\n\t\t\t\t}\r\n\t\t\t\treturn text\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n\r\n<style lang=\"scss\">\r\n\t.technician-time-manage {\r\n\t\t.iconfont {\r\n\t\t\tfont-size: 80rpx;\r\n\t\t\tline-height: 34rpx;\r\n\t\t}\r\n\r\n\t\t.item-time {\r\n\t\t\twidth: 50%;\r\n\t\t}\r\n\r\n\t\t.date-title {\r\n\t\t\tpadding-bottom: 60rpx;\r\n\r\n\t\t\ttext {\r\n\t\t\t\tborder-bottom: 3px solid transparent;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.date-list {\r\n\t\t\tword-break: break-all;\r\n\t\t\tflex-flow: wrap;\r\n\r\n\t\t\t.date-item {\r\n\t\t\t\twidth: 163rpx;\r\n\t\t\t\theight: 110rpx;\r\n\t\t\t\tborder: 1px solid #E5E5E5;\r\n\t\t\t}\r\n\r\n\t\t\t.date-item-prohibit {\r\n\t\t\t\tbackground: #F6F7F7;\r\n\t\t\t}\r\n\r\n\t\t\t.c-5A677E {\r\n\t\t\t\tcolor: #5A677E;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./time-manage.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./time-manage.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1725606875853\n var cssReload = require(\"C:/Users/Administrator/Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}