人民医院前端

button.vue 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  1. <template>
  2. <view>
  3. <button class="mini-btn" type="default" size="mini" v-for="item in orderButtonData" :disabled="disabledButton"
  4. @click="callBtnMethods(item.eventName)" :key="item.id">
  5. {{ item.text }}
  6. </button>
  7. <!-- <button class="mini-btn" type="default" size="mini" @click="deleteBtn">删除</button> -->
  8. <!-- 弹框 -->
  9. <view>
  10. <uni-popup ref="inputDialog" type="dialog">
  11. <uni-popup-dialog ref="inputClose" mode="input" :title="title" @confirm="dialogInputConfirm">
  12. <view style="width:100%;">
  13. <!-- <uni-data-checkbox v-model="assignType" :localdata="assignTypeVisit" style="margin-bottom: 20px;" v-show="auditPlaceholder === 'show'"/> -->
  14. <uni-data-select v-model="Maintenancer" :localdata="maintenancerDate" @change="maintenancerChange" v-show="auditPlaceholder === 'show'"/>
  15. <uni-easyinput type="textarea" autoHeight maxlength="100" v-model="cbreason" :placeholder="auditPlaceholder" v-show="auditPlaceholder !== 'show'"/>
  16. </view>
  17. </uni-popup-dialog>
  18. </uni-popup>
  19. </view>
  20. <view>
  21. <uni-popup ref="selectDialog" type="dialog">
  22. <uni-popup-dialog ref="inputClose" mode="input" title="原因" @confirm="dialogSelectConfirm">
  23. <view style="width:100%;">
  24. <dictionaries-select :flag="flag" @post-select-dic="postSelectDic" style="margin-bottom: 20px;" ></dictionaries-select>
  25. <uni-datetime-picker v-if="this.flag === 'GQYY'" v-model="dateTimeValue"></uni-datetime-picker>
  26. <uni-easyinput type="textarea" autoHeight maxlength="100" v-model="cbreason" placeholder="请输入原因" v-show="value == '其他'"/>
  27. </view>
  28. </uni-popup-dialog>
  29. </uni-popup>
  30. </view>
  31. <view>
  32. <uni-popup ref="transferDialog" type="dialog">
  33. <uni-popup-dialog ref="inputClose" mode="input" title="原因" @confirm="dialogTransferConfirm">
  34. <view style="width:100%;">
  35. <dictionaries-select :flag="flag" @post-select-dic="postTransferDic" style="margin-bottom: 20px;" ></dictionaries-select>
  36. <!-- <uni-easyinput type="textarea" autoHeight maxlength="100" v-model="reason" placeholder="请输入原因"/> -->
  37. </view>
  38. </uni-popup-dialog>
  39. </uni-popup>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import dictionariesSelect from '@/pages/components/dictionariesSelect/dictionariesSelect.vue' //upload
  45. import pageData from "@/pages/myTask/repairList/addRepair/pageData.js"
  46. export default {
  47. components: {
  48. dictionariesSelect
  49. },
  50. props: {
  51. orderButtonData: {
  52. type: Array,
  53. default () {
  54. return []
  55. }
  56. },
  57. wid: {
  58. type: String,
  59. default: ''
  60. },
  61. orderType: {
  62. type: String,
  63. default: ''
  64. },
  65. typeName: {
  66. type: String,
  67. default: ''
  68. },
  69. departid: {
  70. type: String,
  71. default: ''
  72. },
  73. applicationDept: {
  74. type: String,
  75. default: ''
  76. },
  77. maintenancer: {
  78. type: String,
  79. default: ''
  80. },
  81. firstType: {
  82. type: Number,
  83. default: 0
  84. },
  85. fid:{
  86. type:String,
  87. default:''
  88. }
  89. },
  90. data() {
  91. return {
  92. transfertype:1,
  93. reason:'',
  94. flag: '',
  95. key: 0,
  96. value: '',
  97. orderT: '',
  98. orderid: '',
  99. disabledButton:false,
  100. assignType: 0,
  101. assignTypeVisit: [{
  102. text: '转同事',
  103. value: 0
  104. },{
  105. text: '转组长',
  106. value: 1
  107. }],
  108. title:'请输入内容',
  109. Maintenancer: '', //维修人
  110. maintenancerDate: [], // 人员信息
  111. workOrderButton: [], // 工单按钮权限
  112. dateTimeValue:this.$mHelper.getNowDate()+' 23:59:59',
  113. cbreason: '', //审核原因
  114. auditPlaceholder: '请输入不通过审核原因'
  115. }
  116. },
  117. onLoad(option) {
  118. console.log(this.orderType)
  119. },
  120. methods: {
  121. postSelectDic(e) {
  122. this.key = Number(e.split(',')[0])
  123. this.value = e.split(',')[1]
  124. },
  125. postTransferDic(e){
  126. this.reason = e.split(',')[1]
  127. },
  128. callBtnMethods(methodName) {
  129. this[methodName]();
  130. },
  131. /**
  132. * 工单列表(按钮)
  133. */
  134. // 工单指派
  135. transferBtn() {
  136. uni.navigateTo({
  137. url: "/pages/myTask/repairList/repairDetail/tranferDetail/tranferDetail?wid=" + this.wid+ '&orderType=' + this.orderType +'&departid='+ this.applicationDept
  138. })
  139. },
  140. // 工单撤回
  141. orderReuturnBtn() {
  142. this.title = '撤回'
  143. this.cbreason = ''
  144. this.auditPlaceholder = '请输入要撤回原因'
  145. this.$refs.inputDialog.open()
  146. },
  147. // 工单退回
  148. orderBackBtn() {
  149. this.title = '退回'
  150. this.cbreason = ''
  151. this.auditPlaceholder = '请输入要退回原因'
  152. this.$refs.inputDialog.open()
  153. },
  154. // 工单编辑
  155. editBtn() {
  156. uni.navigateTo({
  157. url: "/pages/myTask/repairList/addRepair/addRepair?wid=" + this.wid + '&editState='+1
  158. })
  159. },
  160. // 工单删除
  161. deleteBtn() {
  162. this.confirmationAPI("FaultRepair/DeleteWorkOrder", "删除", "是否要删除", "取消了删除")
  163. },
  164. debtn() {
  165. this.confirmationAPI("Scheduling/DeleteSchedulingWorkOrder", "删除", "是否要删除", "取消了删除")
  166. },
  167. /**
  168. * 我的提交(工单)(按钮)
  169. */
  170. // 自行解决
  171. selfSolveBtn() {
  172. this.title = '异常结束'
  173. this.cbreason = ''
  174. this.auditPlaceholder = '请输入异常结束原因'
  175. this.$refs.inputDialog.open()
  176. },
  177. // 评价
  178. evaluateReapirBtn() {
  179. uni.navigateTo({
  180. url: "/pages/myTask/repairList/repairDetail/evaluateDetail/evaluateDetail?wid=" + this.wid
  181. })
  182. },
  183. //返修
  184. backOrderBtn() {
  185. this.flag = 'FXYY'
  186. this.$refs.selectDialog.open()
  187. },
  188. // 撤回
  189. returnBtn() {
  190. this.title = '撤回'
  191. this.cbreason = ''
  192. this.auditPlaceholder = '请输入撤回原因'
  193. this.$refs.inputDialog.open()
  194. },
  195. // 编辑撤回
  196. returnEditBtn() {
  197. uni.navigateTo({
  198. url: "/pages/myTask/repairList/repairDetail/returnEditDetail/returnEditDetail?wid=" + this.wid + '&editState='+1
  199. })
  200. },
  201. // 咨询工单接单
  202. receivingBtn() {
  203. this.confirmationAPI("Con_WorkOrder/SureWorkOrder", "信息", "是否要接单", "取消了接单")
  204. },
  205. // 咨询退回
  206. zxBackBtn() {
  207. this.flag = 'TDYY'
  208. this.orderT = 'zx'
  209. this.$refs.selectDialog.open()
  210. },
  211. //咨询处理
  212. zxDealBtn() {
  213. uni.navigateTo({
  214. url: "/pages/myTask/consultList/consultDetail/appointmentDeal/appointmentDeal?wid=" + this.wid
  215. })
  216. },
  217. //咨询编辑
  218. zxEditBtn() {
  219. uni.navigateTo({
  220. url: "/pages/myTask/consultList/consultDetail/editDetail/editDetail?wid=" + this.wid
  221. })
  222. },
  223. // 确认耗材
  224. readyBtn() {
  225. uni.navigateTo({
  226. url: "/pages/myTask/repairList/repairDetail/consumablesDeail/consumablesDeail?wid=" + this.wid
  227. })
  228. },
  229. /**
  230. * 报修列表(按钮)
  231. */
  232. // 1接单
  233. checkBtn() {
  234. this.confirmationAPI("FaultRepair/checkWorkOrder", "接单", "是否要接单", "取消了接单")
  235. },
  236. // 2退回
  237. sendBackBtn() {
  238. this.flag = 'TDYY'
  239. this.orderT = 'bx'
  240. this.$refs.selectDialog.open()
  241. },
  242. // 4 协作
  243. cooperationBtn() {
  244. uni.navigateTo({
  245. url: "/pages/myTask/repairList/repairDetail/cooperationDetail/cooperationDetail?wid=" + this.wid
  246. + '&orderType=' + this.orderType + '&departid='+this.departid + '&maintenancer=' + this.maintenancer,
  247. })
  248. },
  249. // 转同事
  250. trunColleagueBtn() {
  251. pageData.getApplicant(this.departid, (res) => {
  252. res.forEach(v => {
  253. if(v.text == this.maintenancer ) {
  254. v.disable = true
  255. }
  256. })
  257. this.maintenancerDate = res
  258. })
  259. this.title = '转派工单'
  260. this.cbreason = '1'
  261. this.auditPlaceholder = 'show'
  262. this.$refs.inputDialog.open()
  263. },
  264. // 延期
  265. replayBtn() {
  266. uni.navigateTo({
  267. url: "/pages/myTask/repairList/repairDetail/replayDetail/replayDetail?wid=" + this.wid + '&orderType=' + this.orderType + '&firstType='+this.firstType
  268. })
  269. },
  270. maintenancerChange(e) {
  271. this.Maintenancer = e
  272. },
  273. // 完成
  274. finishBtn() {
  275. uni.navigateTo({
  276. url: "/pages/myTask/repairList/repairDetail/finishDetail/finishDetail?wid=" + this.wid + '&showBeforePic=' + (this.typeName.indexOf('基建') >=0 ? 1 : 0)
  277. })
  278. },
  279. // 挂起
  280. hangBtn() {
  281. this.flag = 'GQYY'
  282. this.$refs.selectDialog.open()
  283. },
  284. // 到达
  285. arriveBtn() {
  286. this.confirmationAPI("FaultRepair/Arrive", "信息", "是否要到达", "取消了到达")
  287. },
  288. // 转值班
  289. trunWorkBtn() {
  290. // this.confirmationAPI("FaultRepair/Transfer", "转值班", "是否要转值班", "已经取消")
  291. this.flag = 'ZUZHANG'
  292. this.transfertype = 2
  293. this.$refs.transferDialog.open()
  294. },
  295. // 内协作
  296. inWorkBtn() {
  297. uni.navigateTo({
  298. url: "/pages/myTask/repairList/repairDetail/cooperationDetail/cooperationDetail?wid=" + this.wid
  299. + '&orderType=' + this.orderType + '&departid='+this.departid + '&maintenancer=' + this.maintenancer+ '&state=' + 'in',
  300. })
  301. },
  302. // 外协作
  303. outWorkBtn() {
  304. uni.navigateTo({
  305. url: "/pages/myTask/repairList/repairDetail/cooperationDetail/cooperationDetail?wid=" + this.wid
  306. + '&orderType=' + this.orderType + '&departid='+this.departid + '&maintenancer=' + this.maintenancer+ '&state=' + 'out',
  307. })
  308. },
  309. // 转部门
  310. trunDepartBtn() {
  311. uni.navigateTo({
  312. url: "/pages/myTask/repairList/repairDetail/tranferDetail/tranferDetail?wid=" + this.wid + '&state='+ 'trunWork'
  313. })
  314. },
  315. // 转组长
  316. groupLeaderBtn() {
  317. // this.confirmationAPI("FaultRepair/Transfer", "转组长", "是否要转组长", "已经取消")
  318. this.flag = 'ZUZHANG'
  319. this.transfertype = 1
  320. this.$refs.transferDialog.open()
  321. },
  322. /**
  323. * 综合调度(按钮)
  324. */
  325. // 撤回
  326. dispatchReturnBtn() {
  327. this.confirmationAPI("Scheduling/MyRetract", "信息", "是否要撤回", "取消了撤回")
  328. },
  329. // 接单
  330. dispatchReceivingBtn() {
  331. this.confirmationAPI("Scheduling/CheckWorkOrder", "信息", "是否要接单", "取消了接单")
  332. },
  333. // 送达
  334. dispatchArriveBtn() {
  335. uni.navigateTo({
  336. url: "/pages/myTask/comDispatch/comDispatchDetail/dealDetail/dealDetail?wid=" + this.wid + '&state='+ 1
  337. })
  338. },
  339. // 收取
  340. collectSpecimensBtn() {
  341. uni.navigateTo({
  342. url: "/pages/myTask/comDispatch/comDispatchDetail/dealDetail/dealDetail?wid=" + this.wid + '&state='+ 2
  343. })
  344. },
  345. // 退回
  346. dispatchBackBtn() {
  347. this.flag = 'TDYY'
  348. this.orderT = 'zh'
  349. this.$refs.selectDialog.open()
  350. },
  351. // 评价
  352. dispatchEvaluateBtn() {
  353. uni.navigateTo({
  354. url: "/pages/myTask/repairList/repairDetail/evaluateDetail/evaluateDetail?wid=" + this.wid + '&state='+ 1
  355. })
  356. },
  357. // 编辑
  358. dispatchEditBtn() {
  359. uni.navigateTo({
  360. url: "/pages/myTask/comDispatch/addComDispatch/addComDispatch?wid=" + this.wid
  361. })
  362. },
  363. disTrunBtn() {
  364. uni.navigateTo({
  365. url: "/pages/myTask/repairList/repairDetail/tranferDetail/tranferDetail?wid=" + this.wid+"&zhdd=1"+ '&orderType=' + this.orderType +'&departid='+ this.applicationDept
  366. })
  367. },
  368. // 车辆调度 ( 按钮开始 )
  369. // 编辑
  370. editVehBtn() {
  371. uni.navigateTo({
  372. url: "/pages/myTask/vehicleSchedulList/applicantsList/addVehicle/addVehicle?wid=" + this.wid + '&editState='+1
  373. })
  374. },
  375. // 撤回
  376. revocationBtn(){
  377. this.confirmationAPI("T_Car_WorkOrder/WithdrawWorkOrder", "信息", "是否撤回", "取消了撤回")
  378. },
  379. // 评价
  380. evaluateBtn(){
  381. uni.navigateTo({
  382. url: "/pages/myTask/vehicleSchedulList/components/vehiccleDetail/evaluateDetail/evaluateDetail?wid=" + this.wid
  383. })
  384. },
  385. // 接单
  386. takeOrderVeh(){
  387. this.confirmationAPI("T_Car_WorkOrder/SureWorkOrder", "信息", "是否接单", "取消了接单")
  388. },
  389. // 退回
  390. sendBackVeh(){
  391. this.flag = 'TDYY'
  392. this.orderT = 'cl'
  393. this.$refs.selectDialog.open()
  394. },
  395. // 抵达发车点
  396. departBtn(){
  397. this.confirmationAPI("T_Car_WorkOrder/StartCar", "信息", "是否抵达发车点", "取消了")
  398. },
  399. // 抵达目的地
  400. destinationBtn(){
  401. this.confirmationAPI("T_Car_WorkOrder/EndCar", "信息", "是否抵达目的地", "取消了")
  402. },
  403. // 撤回完成按钮
  404. // 业务咨询
  405. finishYWBtn() {
  406. this.$mHelper.getOrderId('1000', (id) => {
  407. this.title = '完成'
  408. this.cbreason = ''
  409. this.orderid = id
  410. this.auditPlaceholder = '请输入完成原因'
  411. this.$refs.inputDialog.open()
  412. })
  413. },
  414. // 综合调度
  415. finishZHBtn() {
  416. this.$mHelper.getOrderId('2000', (id) => {
  417. this.title = '完成'
  418. this.cbreason = ''
  419. this.orderid = id
  420. this.auditPlaceholder = '请输入完成原因'
  421. this.$refs.inputDialog.open()
  422. })
  423. },
  424. // 故障报修
  425. finishBXBtn() {
  426. this.$mHelper.getOrderId('3000', (id) => {
  427. this.title = '完成'
  428. this.cbreason = ''
  429. this.orderid = id
  430. this.auditPlaceholder = '请输入完成原因'
  431. this.$refs.inputDialog.open()
  432. })
  433. },
  434. // 车辆调度
  435. finishCLBtn() {
  436. this.$mHelper.getOrderId('4000', (id) => {
  437. this.title = '完成'
  438. this.cbreason = ''
  439. this.orderid = id
  440. this.auditPlaceholder = '请输入完成原因'
  441. this.$refs.inputDialog.open()
  442. })
  443. },
  444. // 催办调度中心
  445. urgeMyBtn() {
  446. this.cbreason = ''
  447. this.auditPlaceholder = '请输入催办原因'
  448. this.$refs.inputDialog.open()
  449. },
  450. // 催办申请人
  451. urgeOLBtn() {
  452. this.cbreason = ''
  453. this.auditPlaceholder = '请输入要催办原因'
  454. this.$refs.inputDialog.open()
  455. },
  456. //转组长
  457. dialogTransferConfirm(){
  458. const params = {
  459. workordercode: this.wid,
  460. toUserCode: '',
  461. type:this.transfertype,
  462. reason: this.reason
  463. }
  464. this.workOrderContent("FaultRepair/Transfer",params)
  465. },
  466. // 原因下拉框
  467. dialogSelectConfirm() {
  468. uni.showLoading({
  469. title: '加载中'
  470. })
  471. if(!this.key) {
  472. this.$mHelper.toast('请选择操作原因');
  473. return
  474. }
  475. if(this.value == '其他' && !this.cbreason){
  476. this.$mHelper.toast('请输入其他原因');
  477. return
  478. }
  479. if (this.flag === 'FXYY') {
  480. const addParams = {key: this.key,WorkOrderCode: this.wid, value: this.value,ReturnReason: this.cbreason}
  481. this.workOrderContent("FaultRepair/ReturnWorkOrder",addParams)
  482. }else if (this.flag === 'GQYY') {
  483. const addParams = {key: this.key,workordercode: this.wid, value: this.value,expectfinishtime:this.dateTimeValue, reason: this.cbreason}
  484. this.workOrderContent("FaultRepair/HangUp",addParams)
  485. }else if (this.flag === 'TDYY') {
  486. if(this.orderT == 'zx') {
  487. const addParams = {key: this.key,WorkOrderCode: this.wid, value: this.value,reason: this.cbreason}
  488. this.workOrderContent("Con_WorkOrder/BackWorkOrder",addParams)
  489. }else if(this.orderT == 'bx') {
  490. const addParams = {key: this.key,WorkOrderCode: this.wid, value: this.value,BackReason: this.cbreason}
  491. this.workOrderContent("FaultRepair/BackWorkOrder",addParams)
  492. }else if(this.orderT == 'zh') {
  493. const addParams = {key: this.key,WorkOrderCode: this.wid, value: this.value,BackReason: this.cbreason}
  494. this.workOrderContent("Scheduling/BackWorkOrder",addParams)
  495. }else{
  496. const addParams = {key: this.key,orderid: this.fid, value: this.value,reason: this.cbreason}
  497. this.workOrderContent("T_Car_WorkOrder/BackWorkOrder",addParams)
  498. }
  499. }
  500. this.cbreason = ''
  501. this.$refs.selectDialog.close()
  502. },
  503. // 车辆调度 ( 按钮结束 )
  504. // 审核通过确认框
  505. dialogInputConfirm() {
  506. uni.showLoading({
  507. title: '加载中'
  508. })
  509. // 关闭窗口后,恢复默认内容
  510. if (!this.cbreason) {
  511. this.$mHelper.toast(this.auditPlaceholder)
  512. return
  513. }
  514. if(this.auditPlaceholder === 'show') {
  515. if(!this.Maintenancer) {
  516. this.$mHelper.toast('请选择指派人');
  517. return
  518. }
  519. const addParams = {ToUserCode: this.Maintenancer,WorkOrderCode: this.wid,type: this.assignType}
  520. this.workOrderContent("FaultRepair/Transfer",addParams)
  521. }else if(this.auditPlaceholder === '请输入异常结束原因') {
  522. const addParams = {result: this.cbreason,WorkOrderCode: this.wid,type:1}
  523. this.workOrderContent("FaultRepair/DealWorkOrder ",addParams)
  524. }else if(this.auditPlaceholder === '请输入要退回原因') {
  525. // 调度中心
  526. const addParams = {BackReason: this.cbreason,WorkOrderCode: this.wid}
  527. this.workOrderContent("FaultRepair/ReBack",addParams)
  528. }else if(this.auditPlaceholder === '请输入要撤回原因') {
  529. // 调度中心
  530. const addParams = {BackReason: this.cbreason,workordercode: this.wid}
  531. this.workOrderContent("FaultRepair/Retract",addParams)
  532. }
  533. else if(this.auditPlaceholder === '请输入撤回原因') {
  534. // 申请人
  535. const addParams = {BackReason: this.cbreason,workordercode: this.wid}
  536. this.workOrderContent("FaultRepair/MyRetract",addParams)
  537. }
  538. else if(this.auditPlaceholder === '请输入催办原因') {
  539. // 调度中心
  540. const addParams = {reason: this.cbreason,workordercode: this.wid,urgetype:2}
  541. this.workOrderContent("WorkCommon/UrgeWorkOrder",addParams)
  542. }
  543. else if(this.auditPlaceholder === '请输入要催办原因') {
  544. // 申请人
  545. const addParams = {reason: this.cbreason,workordercode: this.wid,urgetype:1}
  546. this.workOrderContent("WorkCommon/UrgeWorkOrder",addParams)
  547. }
  548. else if(this.auditPlaceholder === '请输入完成原因') {
  549. const addParams = {reason: this.cbreason,workordercode: this.wid,type:this.orderid}
  550. this.workOrderContent("WorkCommon/FinishWorkOrder",addParams)
  551. }
  552. this.$refs.inputDialog.close()
  553. },
  554. // 确认框方法,带输入框
  555. workOrderContent(url,addParams) {
  556. this.disabledButton = true
  557. this.$mHelper.httpPost(url,addParams,1 ,res=>this.disabledButton=res)
  558. uni.hideLoading()
  559. },
  560. //确认框方法
  561. confirmationAPI(url, title, content, canceContent) {
  562. this.disabledButton = true
  563. uni.showModal({
  564. title: title,
  565. content: content,
  566. success: (res) => {
  567. if (res.confirm) {
  568. const params = {}
  569. if(content == '是否要接单' || content == '是否要退回') {
  570. params.WorkOrderCode = this.wid
  571. }else if (content === '是否撤回' || content === '是否接单' || content === '是否退回' ){
  572. params.orderid = this.fid
  573. }else if(content === '是否抵达发车点' || content === '是否抵达目的地'){
  574. params.orderid = this.fid
  575. params.WorkOrderCode = this.wid
  576. }else if(content === '是否要转值班' ){
  577. params.workordercode = this.wid
  578. params.type = 2
  579. params.toUserCode = ''
  580. }else if(content === '是否要转组长' ){
  581. params.workordercode = this.wid
  582. params.type = 1
  583. params.toUserCode = ''
  584. } else{
  585. params.workordercode = this.wid
  586. }
  587. this.$mHelper.httpPost(url,params,1,res=>this.disabledButton=res)
  588. } else if (res.cancel) {
  589. this.disabledButton = false
  590. this.$mHelper.toast(canceContent);
  591. }
  592. }
  593. })
  594. },
  595. }
  596. }
  597. </script>
  598. <style lang="scss">
  599. @import '@/common/addFormDeep.scss';
  600. .mini-btn {
  601. margin-right: 3px;
  602. color: #fff;
  603. background: #1e90ff;
  604. font-size: 1rem !important;
  605. }
  606. </style>