registerDoctor.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. "use strict";
  2. var __defProp = Object.defineProperty;
  3. var __defProps = Object.defineProperties;
  4. var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
  5. var __getOwnPropSymbols = Object.getOwnPropertySymbols;
  6. var __hasOwnProp = Object.prototype.hasOwnProperty;
  7. var __propIsEnum = Object.prototype.propertyIsEnumerable;
  8. var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  9. var __spreadValues = (a, b) => {
  10. for (var prop in b || (b = {}))
  11. if (__hasOwnProp.call(b, prop))
  12. __defNormalProp(a, prop, b[prop]);
  13. if (__getOwnPropSymbols)
  14. for (var prop of __getOwnPropSymbols(b)) {
  15. if (__propIsEnum.call(b, prop))
  16. __defNormalProp(a, prop, b[prop]);
  17. }
  18. return a;
  19. };
  20. var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
  21. var common_vendor = require("../common/vendor.js");
  22. var api_common = require("../api/common.js");
  23. var api_user = require("../api/user.js");
  24. require("../common/request.js");
  25. const _sfc_main = {
  26. data() {
  27. return {
  28. cityIndex1: 0,
  29. cityIndex2: 0,
  30. allCitys: [],
  31. citys: [[], [], []],
  32. cityShow: false,
  33. depts: [[]],
  34. deptShow: false,
  35. hospitals: [[]],
  36. hospitalShow: false,
  37. positions: [[]],
  38. positionShow: false,
  39. fileList1: [],
  40. fileList2: [],
  41. fileList3: [],
  42. fileList4: [],
  43. checked: 0,
  44. form: {
  45. sex: "1"
  46. },
  47. rules: {
  48. doctorName: [
  49. {
  50. required: true,
  51. message: "\u8BF7\u8F93\u5165\u533B\u751F\u59D3\u540D"
  52. }
  53. ],
  54. idCard: [
  55. {
  56. required: true,
  57. message: "\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7",
  58. trigger: ["change", "blur"]
  59. }
  60. ],
  61. deptId: [
  62. {
  63. required: true,
  64. message: "\u8BF7\u9009\u62E9\u90E8\u95E8"
  65. }
  66. ],
  67. hospitalId: [
  68. {
  69. required: true,
  70. message: "\u8BF7\u9009\u62E9\u533B\u9662"
  71. }
  72. ],
  73. position: [
  74. {
  75. required: true,
  76. message: "\u8BF7\u9009\u62E9\u804C\u52A1"
  77. }
  78. ],
  79. cityIds: [
  80. {
  81. required: true,
  82. message: "\u8BF7\u9009\u62E9\u6240\u5728\u57CE\u5E02"
  83. }
  84. ],
  85. account: [
  86. {
  87. required: true,
  88. message: "\u8BF7\u8F93\u5165\u5E10\u53F7"
  89. }
  90. ],
  91. password: [
  92. {
  93. required: true,
  94. message: "\u8BF7\u8F93\u5165\u5BC6\u7801"
  95. }
  96. ],
  97. mobile: [
  98. {
  99. required: true,
  100. message: "\u8BF7\u8F93\u5165\u624B\u673A\u53F7",
  101. trigger: ["change", "blur"]
  102. }
  103. ]
  104. }
  105. };
  106. },
  107. onLoad(options) {
  108. this.form.doctorType = options.type;
  109. this.getCitys();
  110. this.getHospitalList();
  111. this.getDepartmentList();
  112. this.getDictByKey("sys_doc_position");
  113. },
  114. onShow() {
  115. },
  116. onReady() {
  117. this.$refs.uForm.setRules(this.rules);
  118. },
  119. methods: {
  120. hospitalSelect(e) {
  121. this.form.hospitalId = this.hospitals[0][e.indexs[0]].hospitalId;
  122. this.form.hospitalName = this.hospitals[0][e.indexs[0]].hospitalName;
  123. this.hospitalShow = false;
  124. },
  125. deptSelect(e) {
  126. console.log(e);
  127. this.form.deptId = this.depts[0][e.indexs[0]].deptId;
  128. this.form.deptName = this.depts[0][e.indexs[0]].deptName;
  129. this.deptShow = false;
  130. },
  131. positionSelect(e) {
  132. console.log(e);
  133. this.form.position = this.positions[0][e.indexs[0]].dictLabel;
  134. this.positionShow = false;
  135. },
  136. getDictByKey(key) {
  137. var data = { key };
  138. api_common.getDictByKey(data).then((res) => {
  139. if (res.code == 200) {
  140. this.positions[0] = res.data;
  141. }
  142. }, (err) => {
  143. });
  144. },
  145. openContent(type) {
  146. common_vendor.index.navigateTo({
  147. url: "agreement?type=" + type
  148. });
  149. },
  150. cityChangeHandler(e) {
  151. const {
  152. columnIndex,
  153. index,
  154. picker = this.$refs.cityPicker
  155. } = e;
  156. if (columnIndex == 0) {
  157. this.cityIndex1 = index;
  158. console.log(this.cityIndex1);
  159. var citys1 = this.allCitys[this.cityIndex1].c;
  160. console.log(citys1);
  161. picker.setColumnValues(1, citys1);
  162. this.cityIndex2 = 0;
  163. var citys2 = this.allCitys[this.cityIndex1].c[this.cityIndex2].c;
  164. picker.setColumnValues(2, citys2);
  165. }
  166. if (columnIndex == 1) {
  167. this.cityIndex2 = index;
  168. var citys = this.allCitys[this.cityIndex1].c[this.cityIndex2].c;
  169. console.log(citys);
  170. picker.setColumnValues(2, citys);
  171. }
  172. },
  173. citySelect(e) {
  174. console.log(e);
  175. this.form.cityName = e.value[0].n + ">" + e.value[1].n + ">" + e.value[2].n;
  176. this.form.cityIds = e.value[0].v + "," + e.value[1].v + "," + e.value[2].v;
  177. this.cityShow = false;
  178. },
  179. getCitys() {
  180. var that = this;
  181. var data = {};
  182. api_common.getCitys(data).then((res) => {
  183. if (res.code == 200) {
  184. that.allCitys = res.data;
  185. that.citys = [[], [], []];
  186. that.citys[0] = that.allCitys;
  187. that.citys[1] = that.allCitys[0].c;
  188. that.citys[2] = that.allCitys[0].c[0].c;
  189. console.log(that.citys);
  190. }
  191. }, (err) => {
  192. });
  193. },
  194. getHospitalList() {
  195. var that = this;
  196. var data = {};
  197. api_common.getHospitalList(data).then((res) => {
  198. if (res.code == 200) {
  199. that.hospitals[0] = res.data;
  200. console.log(111);
  201. console.log(that.hospitals);
  202. }
  203. }, (err) => {
  204. });
  205. },
  206. getDepartmentList() {
  207. var that = this;
  208. var data = {};
  209. api_common.getDepartmentList(data).then((res) => {
  210. if (res.code == 200) {
  211. that.depts[0] = res.data;
  212. }
  213. }, (err) => {
  214. });
  215. },
  216. deletePic(event) {
  217. this[`fileList${event.name}`].splice(event.index, 1);
  218. },
  219. async afterRead(event) {
  220. let lists = [].concat(event.file);
  221. let fileListLen = this[`fileList${event.name}`].length;
  222. lists.map((item) => {
  223. this[`fileList${event.name}`].push(__spreadProps(__spreadValues({}, item), {
  224. status: "uploading",
  225. message: "\u4E0A\u4F20\u4E2D"
  226. }));
  227. });
  228. for (let i = 0; i < lists.length; i++) {
  229. const result = await this.uploadFilePromise(lists[i].url);
  230. let item = this[`fileList${event.name}`][fileListLen];
  231. this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
  232. status: "success",
  233. message: "",
  234. url: result
  235. }));
  236. fileListLen++;
  237. }
  238. },
  239. uploadFilePromise(url) {
  240. return new Promise((resolve, reject) => {
  241. common_vendor.index.uploadFile({
  242. url: common_vendor.index.getStorageSync("requestPath") + "/app/common/uploadOSS",
  243. filePath: url,
  244. name: "file",
  245. formData: {
  246. user: "test"
  247. },
  248. success: (res) => {
  249. setTimeout(() => {
  250. console.log(JSON.parse(res.data).url);
  251. resolve(JSON.parse(res.data).url);
  252. }, 1e3);
  253. }
  254. });
  255. });
  256. },
  257. register() {
  258. api_user.registerDoctor(this.form).then((res) => {
  259. console.log(res);
  260. if (res.code == 200) {
  261. common_vendor.index.showToast({
  262. icon: "none",
  263. title: res.msg
  264. });
  265. setTimeout(function() {
  266. common_vendor.index.navigateBack({
  267. delta: 1
  268. });
  269. }, 2e3);
  270. } else {
  271. common_vendor.index.showToast({
  272. icon: "none",
  273. title: res.msg
  274. });
  275. }
  276. }, (rej) => {
  277. console.log(rej);
  278. });
  279. },
  280. submit() {
  281. var that = this;
  282. if (this.fileList1.length > 0) {
  283. this.form.avatar = this.fileList1[0].url;
  284. }
  285. if (this.fileList2.length > 0) {
  286. var images = [];
  287. that.fileList2.forEach(function(item) {
  288. images.push(item.url);
  289. });
  290. if (images.length != 2) {
  291. common_vendor.index.showToast({
  292. icon: "none",
  293. title: "\u8BF7\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u53F7"
  294. });
  295. return;
  296. }
  297. this.form.idCardFrontUrl = images[0];
  298. this.form.idCardBackUrl = images[1];
  299. }
  300. if (this.fileList3.length > 0) {
  301. var images = [];
  302. that.fileList3.forEach(function(item) {
  303. images.push(item.url);
  304. });
  305. this.form.certificateImages = images.toString();
  306. }
  307. if (this.fileList4.length > 0) {
  308. var images = [];
  309. that.fileList4.forEach(function(item) {
  310. images.push(item.url);
  311. });
  312. this.form.practiseImages = images.toString();
  313. }
  314. if (this.checked != 1) {
  315. common_vendor.index.showToast({
  316. icon: "none",
  317. title: "\u8BF7\u540C\u610F\u534F\u8BAE"
  318. });
  319. return;
  320. }
  321. console.log(this.form);
  322. this.$refs.uForm.validate().then((res) => {
  323. that.register();
  324. }).catch((errors) => {
  325. console.log(errors);
  326. });
  327. }
  328. }
  329. };
  330. if (!Array) {
  331. const _easycom_u_input2 = common_vendor.resolveComponent("u-input");
  332. const _easycom_u_form_item2 = common_vendor.resolveComponent("u-form-item");
  333. const _easycom_u_radio2 = common_vendor.resolveComponent("u-radio");
  334. const _easycom_u_radio_group2 = common_vendor.resolveComponent("u-radio-group");
  335. const _easycom_u_icon2 = common_vendor.resolveComponent("u-icon");
  336. const _easycom_u__textarea2 = common_vendor.resolveComponent("u--textarea");
  337. const _easycom_u_upload2 = common_vendor.resolveComponent("u-upload");
  338. const _easycom_u_form2 = common_vendor.resolveComponent("u-form");
  339. const _easycom_u_checkbox2 = common_vendor.resolveComponent("u-checkbox");
  340. const _easycom_u_checkbox_group2 = common_vendor.resolveComponent("u-checkbox-group");
  341. const _easycom_u_picker2 = common_vendor.resolveComponent("u-picker");
  342. (_easycom_u_input2 + _easycom_u_form_item2 + _easycom_u_radio2 + _easycom_u_radio_group2 + _easycom_u_icon2 + _easycom_u__textarea2 + _easycom_u_upload2 + _easycom_u_form2 + _easycom_u_checkbox2 + _easycom_u_checkbox_group2 + _easycom_u_picker2)();
  343. }
  344. const _easycom_u_input = () => "../uni_modules/uview-plus/components/u-input/u-input.js";
  345. const _easycom_u_form_item = () => "../uni_modules/uview-plus/components/u-form-item/u-form-item.js";
  346. const _easycom_u_radio = () => "../uni_modules/uview-plus/components/u-radio/u-radio.js";
  347. const _easycom_u_radio_group = () => "../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
  348. const _easycom_u_icon = () => "../uni_modules/uview-plus/components/u-icon/u-icon.js";
  349. const _easycom_u__textarea = () => "../uni_modules/uview-plus/components/u--textarea/u--textarea.js";
  350. const _easycom_u_upload = () => "../uni_modules/uview-plus/components/u-upload/u-upload.js";
  351. const _easycom_u_form = () => "../uni_modules/uview-plus/components/u-form/u-form.js";
  352. const _easycom_u_checkbox = () => "../uni_modules/uview-plus/components/u-checkbox/u-checkbox.js";
  353. const _easycom_u_checkbox_group = () => "../uni_modules/uview-plus/components/u-checkbox-group/u-checkbox-group.js";
  354. const _easycom_u_picker = () => "../uni_modules/uview-plus/components/u-picker/u-picker.js";
  355. if (!Math) {
  356. (_easycom_u_input + _easycom_u_form_item + _easycom_u_radio + _easycom_u_radio_group + _easycom_u_icon + _easycom_u__textarea + _easycom_u_upload + _easycom_u_form + _easycom_u_checkbox + _easycom_u_checkbox_group + _easycom_u_picker)();
  357. }
  358. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  359. return common_vendor.e({
  360. a: $data.form.doctorType == 1
  361. }, $data.form.doctorType == 1 ? {} : {}, {
  362. b: $data.form.doctorType == 1
  363. }, $data.form.doctorType == 1 ? {} : {}, {
  364. c: $data.form.doctorType == 2
  365. }, $data.form.doctorType == 2 ? {} : {}, {
  366. d: $data.form.doctorType == 2
  367. }, $data.form.doctorType == 2 ? {} : {}, {
  368. e: common_vendor.o(($event) => $data.form.doctorName = $event),
  369. f: common_vendor.p({
  370. border: "none",
  371. placeholder: "\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D",
  372. modelValue: $data.form.doctorName
  373. }),
  374. g: common_vendor.p({
  375. labelWidth: "180rpx",
  376. borderBottom: true,
  377. label: "\u771F\u5B9E\u59D3\u540D",
  378. prop: "doctorName"
  379. }),
  380. h: common_vendor.o(($event) => $data.form.idCard = $event),
  381. i: common_vendor.p({
  382. border: "none",
  383. placeholder: "\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7",
  384. modelValue: $data.form.idCard
  385. }),
  386. j: common_vendor.p({
  387. labelWidth: "180rpx",
  388. borderBottom: true,
  389. label: "\u8EAB\u4EFD\u8BC1\u53F7",
  390. prop: "idCard"
  391. }),
  392. k: common_vendor.p({
  393. activeColor: "#C39A58",
  394. customStyle: {
  395. marginRight: "8px"
  396. },
  397. label: "\u7537",
  398. name: "1"
  399. }),
  400. l: common_vendor.p({
  401. activeColor: "#C39A58",
  402. label: "\u5973",
  403. name: "2"
  404. }),
  405. m: common_vendor.o(($event) => $data.form.sex = $event),
  406. n: common_vendor.p({
  407. placement: "row",
  408. modelValue: $data.form.sex
  409. }),
  410. o: common_vendor.p({
  411. labelWidth: "180rpx",
  412. borderBottom: true,
  413. label: "\u6027\u522B",
  414. prop: "sex"
  415. }),
  416. p: common_vendor.o(($event) => $data.form.cityName = $event),
  417. q: common_vendor.p({
  418. disabled: true,
  419. disabledColor: "#ffffff",
  420. placeholder: "\u8BF7\u9009\u62E9\u6240\u5728\u57CE\u5E02",
  421. border: "none",
  422. modelValue: $data.form.cityName
  423. }),
  424. r: common_vendor.p({
  425. name: "arrow-right"
  426. }),
  427. s: common_vendor.o(($event) => $data.cityShow = true),
  428. t: common_vendor.p({
  429. labelWidth: "180rpx",
  430. prop: "cityId",
  431. borderBottom: true,
  432. label: "\u6240\u5728\u57CE\u5E02"
  433. }),
  434. v: common_vendor.o(($event) => $data.form.hospitalName = $event),
  435. w: common_vendor.p({
  436. disabled: true,
  437. disabledColor: "#ffffff",
  438. placeholder: "\u8BF7\u9009\u62E9\u533B\u9662",
  439. border: "none",
  440. modelValue: $data.form.hospitalName
  441. }),
  442. x: common_vendor.p({
  443. name: "arrow-right"
  444. }),
  445. y: common_vendor.o(($event) => $data.hospitalShow = true),
  446. z: common_vendor.p({
  447. labelWidth: "180rpx",
  448. prop: "hospitalId",
  449. borderBottom: true,
  450. label: "\u5C31\u804C\u533B\u9662"
  451. }),
  452. A: common_vendor.o(($event) => $data.form.deptName = $event),
  453. B: common_vendor.p({
  454. disabled: true,
  455. disabledColor: "#ffffff",
  456. placeholder: "\u8BF7\u9009\u62E9\u79D1\u5BA4",
  457. border: "none",
  458. modelValue: $data.form.deptName
  459. }),
  460. C: common_vendor.p({
  461. name: "arrow-right"
  462. }),
  463. D: common_vendor.o(($event) => $data.deptShow = true),
  464. E: common_vendor.p({
  465. labelWidth: "180rpx",
  466. prop: "deptId",
  467. borderBottom: true,
  468. label: "\u6240\u5C5E\u79D1\u5BA4"
  469. }),
  470. F: common_vendor.o(($event) => $data.form.position = $event),
  471. G: common_vendor.p({
  472. disabled: true,
  473. disabledColor: "#ffffff",
  474. placeholder: "\u8BF7\u9009\u62E9\u804C\u79F0",
  475. border: "none",
  476. modelValue: $data.form.position
  477. }),
  478. H: common_vendor.p({
  479. name: "arrow-right"
  480. }),
  481. I: common_vendor.o(($event) => $data.positionShow = true),
  482. J: common_vendor.p({
  483. labelWidth: "180rpx",
  484. prop: "position",
  485. borderBottom: true,
  486. label: "\u804C\u79F0"
  487. }),
  488. K: common_vendor.o(($event) => $data.form.speciality = $event),
  489. L: common_vendor.p({
  490. placeholder: "\u8BF7\u8F93\u5165\u64C5\u957F\u9886\u57DF",
  491. count: true,
  492. modelValue: $data.form.speciality
  493. }),
  494. M: common_vendor.p({
  495. labelWidth: "180rpx",
  496. borderBottom: true,
  497. label: "\u64C5\u957F\u9886\u57DF",
  498. prop: "speciality"
  499. }),
  500. N: common_vendor.o(($event) => $data.form.introduction = $event),
  501. O: common_vendor.p({
  502. placeholder: "\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB",
  503. count: true,
  504. modelValue: $data.form.introduction
  505. }),
  506. P: common_vendor.p({
  507. labelWidth: "180rpx",
  508. borderBottom: true,
  509. label: "\u4E2A\u4EBA\u7B80\u4ECB",
  510. prop: "introduction"
  511. }),
  512. Q: common_vendor.o($options.afterRead),
  513. R: common_vendor.o($options.deletePic),
  514. S: common_vendor.p({
  515. fileList: $data.fileList1,
  516. name: "1",
  517. multiple: true,
  518. maxCount: 1
  519. }),
  520. T: common_vendor.p({
  521. labelWidth: "180rpx",
  522. borderBottom: true,
  523. label: "\u533B\u751F\u7167\u7247",
  524. prop: "avatar"
  525. }),
  526. U: common_vendor.o($options.afterRead),
  527. V: common_vendor.o($options.deletePic),
  528. W: common_vendor.p({
  529. fileList: $data.fileList2,
  530. name: "2",
  531. multiple: true,
  532. maxCount: 2
  533. }),
  534. X: common_vendor.p({
  535. labelWidth: "180rpx",
  536. borderBottom: true,
  537. label: "\u8EAB\u4EFD\u8BC1\u7167\u7247(\u6B63\u53CD\u9762)",
  538. prop: "idCardFrontUrl"
  539. }),
  540. Y: common_vendor.o(($event) => $data.form.certificateCode = $event),
  541. Z: common_vendor.p({
  542. border: "none",
  543. placeholder: "\u8BF7\u8F93\u5165\u8D44\u8D28\u8BC1\u7F16\u53F7",
  544. modelValue: $data.form.certificateCode
  545. }),
  546. aa: common_vendor.p({
  547. labelWidth: "180rpx",
  548. borderBottom: true,
  549. label: "\u8D44\u8D28\u8BC1\u7F16\u53F7",
  550. prop: "certificateCode"
  551. }),
  552. ab: common_vendor.o($options.afterRead),
  553. ac: common_vendor.o($options.deletePic),
  554. ad: common_vendor.p({
  555. fileList: $data.fileList3,
  556. name: "3",
  557. maxCount: 3
  558. }),
  559. ae: common_vendor.p({
  560. labelWidth: "180rpx",
  561. borderBottom: true,
  562. label: "\u8D44\u8D28\u8BC1\u4E66",
  563. prop: "certificateImages"
  564. }),
  565. af: common_vendor.o(($event) => $data.form.practiseCode = $event),
  566. ag: common_vendor.p({
  567. border: "none",
  568. placeholder: "\u8BF7\u8F93\u5165\u6267\u4E1A\u8BC1\u7F16\u53F7",
  569. modelValue: $data.form.practiseCode
  570. }),
  571. ah: common_vendor.p({
  572. labelWidth: "180rpx",
  573. borderBottom: true,
  574. label: "\u6267\u4E1A\u8BC1\u7F16\u53F7",
  575. prop: "practiseCode"
  576. }),
  577. ai: common_vendor.o($options.afterRead),
  578. aj: common_vendor.o($options.deletePic),
  579. ak: common_vendor.p({
  580. fileList: $data.fileList4,
  581. name: "4",
  582. maxCount: 3
  583. }),
  584. al: common_vendor.p({
  585. labelWidth: "180rpx",
  586. borderBottom: true,
  587. label: "\u6267\u4E1A\u8BC1\u4E66",
  588. prop: "certificateImages"
  589. }),
  590. am: common_vendor.o(($event) => $data.form.mobile = $event),
  591. an: common_vendor.p({
  592. border: "none",
  593. placeholder: "\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD",
  594. modelValue: $data.form.mobile
  595. }),
  596. ao: common_vendor.p({
  597. labelWidth: "180rpx",
  598. borderBottom: true,
  599. label: "\u8054\u7CFB\u7535\u8BDD",
  600. prop: "mobile"
  601. }),
  602. ap: common_vendor.o(($event) => $data.form.account = $event),
  603. aq: common_vendor.p({
  604. border: "none",
  605. placeholder: "\u8BF7\u8F93\u5165\u767B\u5F55\u5E10\u53F7",
  606. modelValue: $data.form.account
  607. }),
  608. ar: common_vendor.p({
  609. labelWidth: "180rpx",
  610. borderBottom: true,
  611. label: "\u767B\u5F55\u5E10\u53F7",
  612. prop: "account"
  613. }),
  614. as: common_vendor.o(($event) => $data.form.password = $event),
  615. at: common_vendor.p({
  616. border: "none",
  617. type: "password",
  618. placeholder: "\u8BF7\u8F93\u5165\u767B\u5F55\u5BC6\u7801",
  619. modelValue: $data.form.password
  620. }),
  621. av: common_vendor.p({
  622. labelWidth: "180rpx",
  623. label: "\u767B\u5F55\u5BC6\u7801",
  624. prop: "password"
  625. }),
  626. aw: common_vendor.sr("uForm", "03357766-0"),
  627. ax: common_vendor.p({
  628. rules: $data.rules,
  629. model: $data.form,
  630. labelPosition: "left"
  631. }),
  632. ay: common_vendor.p({
  633. activeColor: "#2BC7B9",
  634. customStyle: {
  635. marginRight: "8px"
  636. },
  637. label: "\u540C\u610F",
  638. name: 1
  639. }),
  640. az: common_vendor.o(($event) => $data.checked = $event),
  641. aA: common_vendor.p({
  642. placement: "column",
  643. modelValue: $data.checked
  644. }),
  645. aB: common_vendor.o(($event) => $options.openContent("doctorRegister")),
  646. aC: common_vendor.o(($event) => $options.openContent("doctorFiling")),
  647. aD: common_vendor.sr("cityPicker", "03357766-45"),
  648. aE: common_vendor.o(($event) => $data.cityShow = false),
  649. aF: common_vendor.o($options.citySelect),
  650. aG: common_vendor.o($options.cityChangeHandler),
  651. aH: common_vendor.p({
  652. keyName: "n",
  653. show: $data.cityShow,
  654. columns: $data.citys
  655. }),
  656. aI: common_vendor.sr("deptPicker", "03357766-46"),
  657. aJ: common_vendor.o(($event) => $data.deptShow = false),
  658. aK: common_vendor.o($options.deptSelect),
  659. aL: common_vendor.p({
  660. keyName: "deptName",
  661. show: $data.deptShow,
  662. columns: $data.depts
  663. }),
  664. aM: common_vendor.o(($event) => $data.hospitalShow = false),
  665. aN: common_vendor.o($options.hospitalSelect),
  666. aO: common_vendor.p({
  667. keyName: "hospitalName",
  668. show: $data.hospitalShow,
  669. columns: $data.hospitals
  670. }),
  671. aP: common_vendor.sr("positionPicker", "03357766-48"),
  672. aQ: common_vendor.o(($event) => $data.positionShow = false),
  673. aR: common_vendor.o($options.positionSelect),
  674. aS: common_vendor.p({
  675. keyName: "dictLabel",
  676. show: $data.positionShow,
  677. columns: $data.positions
  678. }),
  679. aT: common_vendor.o(($event) => $options.submit())
  680. });
  681. }
  682. var MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-03357766"], ["__file", "E:/Project/2023/\u95EE\u8BCA\u5E73\u53F0/his_user_miniapp/pages_user/registerDoctor.vue"]]);
  683. wx.createPage(MiniProgramPage);