index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  1. <template>
  2. <view class="page-container uni-column">
  3. <view class="logo-container uni-row">
  4. <image class="logo" src="../../static/images/logo.png" />
  5. </view>
  6. <view class="title"><text class="label">德迈仕数字生产线管理平台</text></view>
  7. <view class="user-info-container uni-row">
  8. <view class="icon"><text class="label">{{ userInfo.nickName.charAt(0) }}</text></view>
  9. <view class="user-info uni-column">
  10. <view class="nickname uni-row"><text class="label">用户名: {{ userInfo.userName }}</text></view>
  11. <view class="nickname uni-row"><text class="label">ID:{{ userInfo.userId }}</text></view>
  12. <!-- <view class="process uni-row"><text class="label">当前工段:</text><text class="label">{{ deptName }}</text> -->
  13. <!-- </view> -->
  14. </view>
  15. </view>
  16. <view class="user-info uni-column" style="margin: 0 20rpx 20rpx 20rpx;width: 94%;">
  17. <uni-section title="当前厂别" type="square">
  18. <uni-data-select v-model="curSelectedTenantId" :localdata="tenantList" :clear="false"
  19. @change="handleTenantChange"></uni-data-select>
  20. </uni-section>
  21. <uni-section title="当前工段" type="square">
  22. <uni-data-select v-model="curSelectedDeptId" :localdata="userDeptsByTenantId" :clear="false"
  23. @change="handleDeptChange"></uni-data-select>
  24. </uni-section>
  25. </view>
  26. <!-- <view class="business-btn uni-row" v-if="showOther" @click="handleRecerptSfprod"><text class="label">半成品接收</text></view> -->
  27. <view class="business-btn uni-row" v-if="showOther" @click="handeleToReportHistory">
  28. <text class="label">我的报工</text>
  29. </view>
  30. <view v-if="showQuick" class="business-btn uni-row" @click="handleFastToProductionPlan">
  31. <text class="label">快速报工</text>
  32. </view>
  33. <view class="business-btn uni-row" v-if="showTakeStock" @click="handleToTakeStock">
  34. <text class="label">盘点</text>
  35. </view>
  36. <view class="business-btn uni-row" v-if="showOther && !showSizing" @click="handleToProductionPlan">
  37. <text class="label">报工</text>
  38. </view>
  39. <view class="business-btn uni-row" v-if="showInnerTurnover" @click="handleInnerTurnover">
  40. <text class="label">内部周转</text>
  41. </view>
  42. <view class="business-btn uni-row" v-if="showSizing" @click="handleToSorting">
  43. <text class="label">分选报工</text>
  44. </view>
  45. <view class="business-btn uni-row" v-if="showAuxiliary" @click="handleToAuxiliary">
  46. <text class="label">辅助工序报工</text>
  47. </view>
  48. <view class="business-btn uni-row" @click="handleToGetLotInfo">
  49. <text class="label">扫码查询批次信息</text>
  50. </view>
  51. <!-- <view class="business-btn uni-row" v-if="showInspector" @click="handleToProcessInspection">
  52. <text class="label">序检</text>
  53. </view> -->
  54. <view class="business-btn uni-row" @click="handleToInspectionReceive">
  55. <text class="label">检测领取</text>
  56. </view>
  57. <view class="business-btn uni-row" @click="handleToInspectionDetails">
  58. <text class="label">检查列表</text>
  59. </view>
  60. <view class="business-btn uni-row" v-if="showOutsourcedInspector" @click="handleToOutsourcedInspection">
  61. <text class="label">外协检查</text>
  62. </view>
  63. <view class="business-btn uni-row" v-if="showDeliveryInspection" @click="handleToDeliveryInspection">
  64. <text class="label">交检</text>
  65. </view>
  66. <view class="business-btn uni-row" v-if="showFirstArticleInspection" @click="handleToFirstInspection">
  67. <text class="label">首件检</text>
  68. </view>
  69. <view class="business-btn uni-row" v-if="showOnSiteInspector" @click="handleToOnSiteInspection">
  70. <text class="label">巡检</text>
  71. </view>
  72. <view class="business-btn uni-row" v-if="showInstrumentRoomInspection" @click="handleToInstrumentInspection">
  73. <text class="label">仪器室</text>
  74. </view>
  75. <view class="business-btn uni-row" @click="handleToFactoryInspection">
  76. <text class="label">出厂检</text>
  77. </view>
  78. <view class="business-btn uni-row" v-if="showAdjust" @click="handleToAdjust">
  79. <text class="label">交检审核</text>
  80. </view>
  81. <!-- v-hasRoles="['porter']" 可通过v-Roles自定义指令进行显隐 -->
  82. <view class="business-btn uni-row" v-if="showTurn" @click="handleToHandlingList">
  83. <text class="label">周转</text>
  84. </view>
  85. <view class="business-btn uni-row" v-if="showOutSourceList" @click="handleOutsourceList">
  86. <text class="label">外协验箱</text>
  87. </view>
  88. <view class="business-btn uni-row" v-if="showChangeTurnover" @click="handleChangeTurnover">
  89. <text class="label">更换工段加工</text>
  90. </view>
  91. <view class="bottom-btn-container">
  92. <!-- <view class="start-batch-btn uni-row" @click="handleToEquiPmentList"><text class="label">绑定设备</text></view> -->
  93. <view class="start-batch-btn uni-row" @click="handleSwitchOrQuit">
  94. <text class="label">切换 / 退出账号</text>
  95. </view>
  96. </view>
  97. </view>
  98. <dialog-confirm ref="confirm" @submit="logout"></dialog-confirm>
  99. <dialog-inspectionChamber ref="inspectionChanberRef" @handleSelectInspectionChamber='handleSelectInspectionChamber'></dialog-inspectionChamber>
  100. </template>
  101. <script setup>
  102. import {
  103. ref
  104. } from 'vue'
  105. import {
  106. onLoad,
  107. onReady
  108. } from '@dcloudio/uni-app'
  109. import {
  110. getSubPlanDetailsList
  111. } from '../../api/business/subPlanDetails'
  112. import {
  113. checkCarrier
  114. } from '../../api/business/processInspection'
  115. import {
  116. getTenantList,
  117. } from '@/api/login/index.js'
  118. import {
  119. getUserDeptList
  120. } from '@/api/dept/dept.js'
  121. import {
  122. listInnerTurnover
  123. } from '../../api/business/innerTurnover'
  124. import {
  125. store
  126. } from '@/store/index.js'
  127. const userName = ref('') // 用户名
  128. const curSelectedDeptId = ref(null) // 用户当前选择的工段
  129. const curSelectedTenantId = ref(null) // 用户当前选择的厂别
  130. const userInfo = ref({}) // 用户信息
  131. const tenantList = ref([]) // 厂别列表
  132. const userDeptList = ref([]) // 用户所在所有工段列表
  133. const userDeptsByTenantId = ref([])
  134. const confirm = ref(null) // 确认组件
  135. const inspectionChanberRef = ref(null)
  136. const showTurn = ref(false)
  137. const showOther = ref(false)
  138. const showInspector = ref(false);
  139. const showOnSiteInspector = ref(false)
  140. const showInstrumentRoomInspection = ref(false)
  141. const showAdjust = ref(false)
  142. const showAuxiliary = ref(false)
  143. const showQuick = ref(false)
  144. const showSizing = ref(false)
  145. const showTakeStock = ref(false)
  146. const showInnerTurnover = ref(false)
  147. const showOutsourcedInspector = ref(false)
  148. const showDeliveryInspection = ref(false)
  149. const showFirstArticleInspection = ref(false)
  150. const showOutSourceList = ref(false)
  151. const showChangeTurnover = ref(false)
  152. onLoad(() => {
  153. console.log(store.userInfo)
  154. userInfo.value = store.userInfo || {
  155. nickName: ""
  156. };
  157. store.tenantId = userInfo.value.tenantId;
  158. // console.log("-----------", store.userInfo.roles)
  159. // console.log("-----permissions-----", store.userInfo)
  160. if (store.userInfo.roles.some(item => item.roleId == 124) && store.userInfo.roles.length > 1) {
  161. console.log("111")
  162. showTurn.value = true;
  163. showOther.value = true;
  164. } else if (store.userInfo.roles.some(item => item.roleId == 124) && store.userInfo.roles.length == 1) {
  165. console.log("222")
  166. showTurn.value = true;
  167. showOther.value = false;
  168. } else if (store.userInfo.roles.some(item => item.roleId == 128)) {
  169. console.log("333")
  170. showInspector.value = true
  171. } else {
  172. console.log("444")
  173. showTurn.value = false;
  174. showOther.value = true;
  175. }
  176. //盘点状态
  177. if (store.userInfo.takeStock) {
  178. showTakeStock.value = true
  179. } else {
  180. showTakeStock.value = false
  181. }
  182. //巡检
  183. if (store.userInfo.roles.some(item => item.roleKey == 'patrolInspection')) {
  184. showOnSiteInspector.value = true
  185. } else {
  186. showOnSiteInspector.value = false
  187. }
  188. //交检
  189. if (store.userInfo.roles.some(item => item.roleKey == 'deliveryInspection')) {
  190. showDeliveryInspection.value = true
  191. } else {
  192. showDeliveryInspection.value = false
  193. }
  194. //仪器室
  195. if(store.userInfo.roles.some(item =>item.roleKey == 'instrumentRoomInspection')) {
  196. showInstrumentRoomInspection.value = true
  197. }else{
  198. showInstrumentRoomInspection.value = false
  199. }
  200. //首件检
  201. if(store.userInfo.roles.some(item =>item.roleKey == 'firstArticleInspection')) {
  202. showFirstArticleInspection.value = true
  203. }else{
  204. showFirstArticleInspection.value = false
  205. }
  206. //交检审核
  207. if (store.userInfo.roles.some(item => item.roleKey == 'adjuster')) {
  208. showAdjust.value = true
  209. } else {
  210. showAdjust.value = false
  211. }
  212. if (store.userInfo.permissions.some(item => item === 'business:outsource:checkBox') || store.userInfo
  213. .permissions.some(item => item === "*:*:*")) {
  214. showOutSourceList.value = true;
  215. } else {
  216. showOutSourceList.value = false;
  217. }
  218. if (store.userInfo.permissions.some(item => item === 'business:switchDept:change') || store.userInfo
  219. .permissions.some(item => item === "*:*:*")) {
  220. showChangeTurnover.value = true;
  221. } else {
  222. showChangeTurnover.value = false;
  223. }
  224. if (store.userInfo.roles.some(item => item.roleId == 129)) {
  225. showOutsourcedInspector.value = true
  226. // showOther.value = true;
  227. }
  228. showAuxiliary.value = true
  229. init();
  230. })
  231. /******************************** 定义一些方法 ********************************/
  232. function init() {
  233. getTenant();
  234. getUserDepts(store.userInfo.userId, store.tenantId);
  235. //getUserDeptsByTenantId(store.tenantId);
  236. }
  237. // 获取租户列表
  238. function getTenant() {
  239. getTenantList().then((res) => {
  240. if (res.code == 200) {
  241. for (var i = 0; i < res.rows.length; i++) {
  242. tenantList.value[i] = {
  243. text: res.rows[i].orgName,
  244. value: res.rows[i].id
  245. }
  246. }
  247. curSelectedTenantId.value = store.userInfo.tenantId;
  248. }
  249. })
  250. }
  251. // 获取人员工段
  252. function getUserDepts(userId, tenantId) {
  253. userDeptsByTenantId.value = []
  254. getUserDeptList(userId).then((res) => {
  255. if (res.code == 200) {
  256. userDeptList.value = res.data;
  257. for (let i = 0; i < res.data.length; i++) {
  258. if (res.data[i].tenantId == tenantId) {
  259. userDeptsByTenantId.value.push({
  260. text: res.data[i].deptName,
  261. value: res.data[i].deptId
  262. })
  263. }
  264. }
  265. console.log(userDeptsByTenantId.value)
  266. if(userDeptsByTenantId.value && userDeptsByTenantId.value.length >0){
  267. curSelectedDeptId.value = userDeptsByTenantId.value[0].value
  268. console.log(curSelectedDeptId.value)
  269. let curDept = userDeptList.value.find(item => item.deptId === curSelectedDeptId.value)
  270. store.curDeptDetails = curDept
  271. console.log(curDept,"77777")
  272. if (curDept.deptCode === '105060' || store.userInfo.roles.some(item => item.roleKey == 'sortingInspector')) {
  273. showSizing.value = true
  274. } else {
  275. showSizing.value = false
  276. }
  277. console.log(store)
  278. handleSelectInnerTurnover()
  279. }
  280. if (res.data.some(v => v.hasQuick === 1)) {
  281. showQuick.value = true
  282. } else {
  283. showQuick.value = false
  284. }
  285. }
  286. })
  287. }
  288. // 根据租户id获取到工段
  289. function getUserDeptsByTenantId(tenantId) {
  290. userDeptsByTenantId.value = [];
  291. let newArr = userDeptList.value.filter((item, index, arrs) => item.tenantId == tenantId);
  292. for (var i = 0; i < newArr.length; i++) {
  293. userDeptsByTenantId.value.push({
  294. text: newArr[i].deptName,
  295. value: newArr[i].deptId
  296. })
  297. }
  298. if(newArr && newArr.length >0){
  299. curSelectedDeptId.value = userDeptsByTenantId.value[0].value
  300. let curDept = userDeptList.value.find(item => item.deptId === curSelectedDeptId.value)
  301. store.curDeptDetails = curDept
  302. if (curDept.deptCode === '105060' || store.userInfo.roles.some(item => item.roleKey == 'sortingInspector')) {
  303. showSizing.value = true
  304. } else {
  305. showSizing.value = false
  306. }
  307. console.log(store)
  308. handleSelectInnerTurnover()
  309. }
  310. }
  311. /*
  312. // 半成品接收
  313. function handleRecerptSfprod() {
  314. if (curSelectedDeptId.value) {
  315. uni.navigateTo({
  316. url: '/pages/recerptSfprod/index'
  317. })
  318. } else {
  319. uni.showToast({
  320. icon: "none",
  321. title: "请选择工段"
  322. })
  323. }
  324. }
  325. */
  326. function handeleToReportHistory() {
  327. uni.navigateTo({
  328. url: '/pages/reportHistory/index'
  329. })
  330. }
  331. function handleToGetLotInfo() {
  332. uni.navigateTo({
  333. url: '/pages/queryLotInfo/index'
  334. })
  335. }
  336. function handleInnerTurnover(){
  337. uni.navigateTo({
  338. url: '/pages/innerTurnover/index'
  339. })
  340. }
  341. function handleFastToProductionPlan() {
  342. if (curSelectedDeptId.value) {
  343. uni.navigateTo({
  344. url: '/pages/fastProductionPlan/index'
  345. })
  346. } else {
  347. uni.showToast({
  348. icon: "none",
  349. title: "请选择工段"
  350. })
  351. }
  352. }
  353. function handleToProductionPlan() {
  354. if (curSelectedDeptId.value) {
  355. uni.navigateTo({
  356. url: '/pages/productionPlan/index'
  357. })
  358. } else {
  359. uni.showToast({
  360. icon: "none",
  361. title: "请选择工段"
  362. })
  363. }
  364. }
  365. //检查列表
  366. function handleToInspectionDetails() {
  367. if (curSelectedDeptId.value) {
  368. uni.navigateTo({
  369. url: '/pages/inspectionDetails/index'
  370. })
  371. } else {
  372. uni.showToast({
  373. icon: "none",
  374. title: "请选择工段"
  375. })
  376. }
  377. }
  378. //盘点
  379. function handleToTakeStock() {
  380. if (curSelectedDeptId.value) {
  381. uni.navigateTo({
  382. url: '/pages/takeStock/index'
  383. })
  384. } else {
  385. uni.showToast({
  386. icon: "none",
  387. title: "请选择工段"
  388. })
  389. }
  390. }
  391. //交检审核
  392. function handleToAdjust() {
  393. if (curSelectedDeptId.value) {
  394. uni.navigateTo({
  395. url: '/pages/deliveryExamine/index'
  396. })
  397. } else {
  398. uni.showToast({
  399. icon: "none",
  400. title: "请选择工段"
  401. })
  402. }
  403. }
  404. // 分选
  405. function handleToSorting() {
  406. if (curSelectedDeptId.value) {
  407. uni.navigateTo({
  408. url: '/pages/sortProductionPlan/index'
  409. })
  410. } else {
  411. uni.showToast({
  412. icon: "none",
  413. title: "请选择工段"
  414. })
  415. }
  416. }
  417. //检查列表
  418. function handleToInspectionReceive() {
  419. const mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module");
  420. if (mpaasScanModule) {
  421. // 调用插件的 mpaasScan 方法
  422. mpaasScanModule.mpaasScan({
  423. // 扫码识别类型,参数可多选,qrCode、barCode,
  424. // 如不设置,默认识别所有扫码类型,可能有些许影响识别效率
  425. scanType: ["qrCode", "barCode"],
  426. // 是否隐藏相册,默认false不隐藏
  427. hideAlbum: false,
  428. },
  429. (ret) => {
  430. console.log(ret);
  431. let vehicleObj = {
  432. carrierCode: ret.resp_result
  433. };
  434. if (!vehicleObj.carrierCode || vehicleObj.carrierCode == "") {
  435. uni.showToast({
  436. icon: "none",
  437. title: "请扫载具码",
  438. duration: 1000
  439. })
  440. return;
  441. }
  442. checkCarrier({
  443. carrierCode: vehicleObj.carrierCode,
  444. }).then(response => {
  445. if (response.code == 200) {
  446. uni.navigateTo({
  447. url: "/pages/processInspectionReceive/form",
  448. success: (res) => {
  449. // 通过eventChannel向被打开页面传送数据
  450. res.eventChannel.emit("inspecionCarrierCode", {
  451. carrierCode: vehicleObj.carrierCode
  452. })
  453. }
  454. })
  455. } else {
  456. uni.showToast({
  457. icon: 'none',
  458. title: response.msg,
  459. duration: 2000
  460. })
  461. }
  462. })
  463. }
  464. );
  465. } else {
  466. // 测试时用
  467. checkCarrier({
  468. carrierCode: "300086",
  469. }).then(response => {
  470. if (response.code == 200) {
  471. uni.navigateTo({
  472. url: "/pages/processInspectionReceive/form",
  473. success: (res) => {
  474. // 通过eventChannel向被打开页面传送数据
  475. res.eventChannel.emit("inspecionCarrierCode", {
  476. carrierCode: "300086"
  477. })
  478. }
  479. })
  480. } else {
  481. uni.showToast({
  482. icon: 'none',
  483. title: response.msg,
  484. duration: 2000
  485. })
  486. }
  487. })
  488. }
  489. }
  490. // 外协检查
  491. function handleToOutsourcedInspection() {
  492. uni.navigateTo({
  493. url: '/pages/outsourcedInspection/index'
  494. })
  495. }
  496. // 工序检查
  497. function handleToProcessInspection() {
  498. uni.navigateTo({
  499. url: '/pages/processInspection/index'
  500. })
  501. }
  502. //检查
  503. function handleToInspection() {
  504. inspectionTypeDialog.value.open()
  505. }
  506. function handleToHandlingList() {
  507. console.log(store)
  508. uni.navigateTo({
  509. url: '/pages/handlingList/index'
  510. })
  511. }
  512. function handleOutsourceList() {
  513. uni.navigateTo({
  514. url: '/pages/outsourcedReturnCheck/index'
  515. })
  516. }
  517. //
  518. function handleChangeTurnover() {
  519. if (curSelectedDeptId.value) {
  520. uni.navigateTo({
  521. url: '/pages/switchDept/index'
  522. })
  523. } else {
  524. uni.showToast({
  525. icon: "none",
  526. title: "请选择工段"
  527. })
  528. }
  529. }
  530. //交检
  531. function handleToDeliveryInspection() {
  532. if (curSelectedDeptId.value) {
  533. uni.navigateTo({
  534. url: '/pages/deliveryInspection/index'
  535. })
  536. } else {
  537. uni.showToast({
  538. icon: "none",
  539. title: "请选择工段"
  540. })
  541. }
  542. }
  543. //首件检
  544. function handleToFirstInspection() {
  545. if (curSelectedDeptId.value) {
  546. uni.navigateTo({
  547. url: '/pages/firstInspection/index'
  548. })
  549. } else {
  550. uni.showToast({
  551. icon: "none",
  552. title: "请选择工段"
  553. })
  554. }
  555. }
  556. //巡检
  557. function handleToOnSiteInspection() {
  558. if (curSelectedDeptId.value) {
  559. uni.navigateTo({
  560. url: '/pages/onSiteInspection/index'
  561. })
  562. } else {
  563. uni.showToast({
  564. icon: "none",
  565. title: "请选择工段"
  566. })
  567. }
  568. }
  569. //仪器室
  570. function handleToInstrumentInspection() {
  571. //选择仪器室
  572. inspectionChanberRef.value.open()
  573. }
  574. function handleSelectInspectionChamber(data) {
  575. uni.navigateTo({
  576. url: "/pages/instrumentRoomInspection/index",
  577. success: (res) => {
  578. // 通过eventChannel向被打开页面传送数据
  579. res.eventChannel.emit("inspectionChamberInfo", {
  580. data: data
  581. })
  582. }
  583. })
  584. }
  585. //出厂检
  586. function handleToFactoryInspection() {
  587. uni.navigateTo({
  588. url: '/pages/factoryInspection/index'
  589. })
  590. }
  591. function logout() {
  592. uni.reLaunch({
  593. url: '/pages/index/index'
  594. })
  595. }
  596. function handleSwitchOrQuit() {
  597. let msg = "确认退出登录吗?"
  598. confirm.value.open(msg);
  599. }
  600. /*
  601. // 绑定设备
  602. function handleToEquiPmentList() {
  603. uni.navigateTo({
  604. url: "/pages/equipmentList/index"
  605. })
  606. }
  607. */
  608. function handleTenantChange() {
  609. console.log(curSelectedTenantId)
  610. store.tenantId = curSelectedTenantId.value
  611. curSelectedDeptId.value = null
  612. getUserDeptsByTenantId(store.tenantId)
  613. }
  614. function handleDeptChange() {
  615. let curDept = userDeptList.value.find(item => item.deptId === curSelectedDeptId.value)
  616. store.curDeptDetails = curDept
  617. if (curDept.deptCode === '105060' || store.userInfo.roles.some(item => item.roleKey == 'sortingInspector')) {
  618. showSizing.value = true
  619. } else {
  620. showSizing.value = false
  621. }
  622. console.log(store)
  623. handleSelectInnerTurnover()
  624. }
  625. //查询当前工段当前操作者是否能看见内部周转按钮
  626. function handleSelectInnerTurnover() {
  627. listInnerTurnover({
  628. deptId: store.curDeptDetails.deptId,
  629. userId: store.userInfo.userId
  630. }).then(res => {
  631. if (res.code == 200) {
  632. showInnerTurnover.value = res.rows.length > 0 ? true : false
  633. }
  634. })
  635. }
  636. function handleToAuxiliary() {
  637. if (curSelectedDeptId.value) {
  638. uni.navigateTo({
  639. url: '/pages/auxiliaryDaywork/index'
  640. })
  641. } else {
  642. uni.showToast({
  643. icon: "none",
  644. title: "请选择工段"
  645. })
  646. }
  647. }
  648. </script>
  649. <style lang="scss">
  650. .page-container {
  651. height: calc(100% - 208rpx);
  652. overflow: auto;
  653. }
  654. .logo-container {
  655. justify-content: center;
  656. .logo {
  657. width: 120rpx;
  658. height: 120rpx;
  659. }
  660. }
  661. .title {
  662. align-items: center;
  663. .label {
  664. font-size: 40rpx;
  665. font-weight: bold;
  666. }
  667. }
  668. .user-info-container {
  669. margin: 16rpx 0 20rpx 20rpx;
  670. align-items: center;
  671. .icon {
  672. width: 120rpx;
  673. height: 120rpx;
  674. justify-content: center;
  675. align-items: center;
  676. border-radius: 60rpx;
  677. border: 1px solid #e1e1e1;
  678. .label {
  679. font-size: 64rpx;
  680. }
  681. }
  682. .user-info {
  683. box-sizing: border-box;
  684. padding-top: 8rpx;
  685. margin-left: 24rpx;
  686. justify-content: center;
  687. // font-size: 20rpx;
  688. .nickname {
  689. margin-bottom: 16rpx;
  690. .label {
  691. font-weight: bold;
  692. font-size: 32rpx;
  693. }
  694. }
  695. .process {
  696. .label {
  697. font-size: 32rpx;
  698. }
  699. }
  700. }
  701. .data-select {
  702. flex: 3;
  703. width: 100%;
  704. height: 50rpx;
  705. border-radius: 18rpx;
  706. background-color: #FFF;
  707. .data-select-options {
  708. width: 200rpx;
  709. }
  710. }
  711. }
  712. .business-btn {
  713. margin: 0 20rpx 20rpx 20rpx;
  714. background-color: #fff;
  715. min-height: 100rpx;
  716. width: 94%;
  717. align-items: center;
  718. justify-content: center;
  719. border: 1rpx solid #e1e1e1;
  720. border-radius: 8rpx;
  721. .label {
  722. font-size: 35rpx;
  723. }
  724. }
  725. .bottom-btn-container {
  726. position: fixed;
  727. right: 20rpx;
  728. bottom: 0;
  729. left: 20rpx;
  730. .start-batch-btn {
  731. // background-color: grey;
  732. background-color: #1684fc;
  733. margin-bottom: 24rpx;
  734. border-radius: 8rpx;
  735. justify-content: center;
  736. align-items: center;
  737. height: 80rpx;
  738. .label {
  739. font-size: 32rpx;
  740. color: #ffffff;
  741. }
  742. }
  743. }
  744. </style>