uncertainOrder.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  1. <template>
  2. <!-- 未确定订单 -->
  3. <div>
  4. <div ref="grabble">
  5. <actionBar :operateList="operateList" :formList="formList" :ruleForm="searchRuleForm" @openModel="openModel"
  6. @searchProtocol="searchProtocol"></actionBar>
  7. </div>
  8. <div class="card_content">
  9. <!-- 表单 -->
  10. <tables ref="refWaybill" controlswidth="450px" tableHeight="68vh" :suspension="true" :tableList="tableList"
  11. :tableData="tableData" @buttonData="buttonData">
  12. </tables>
  13. <!-- 分页 -->
  14. <div v-if="Total">
  15. <pagination :total="Total" :currentPage="Pagination.PageIndex" @changeSize="changeSize"
  16. @changeCurrent="changeCurrent">
  17. </pagination>
  18. </div>
  19. </div>
  20. <!-- 订单详情 -->
  21. <orderDetails ref="order" :waybillData="waybillData"></orderDetails>
  22. <!-- 处方 -->
  23. <prescriptionPicture ref="picture" :srcList="srcList" :fileList="fileList"></prescriptionPicture>
  24. <!-- 添加订单 -->
  25. <el-dialog top="5vh" :title="staffTitle" :visible.sync="staffDialogVisible" width="800px"
  26. :close-on-click-modal="false" @close="closePopup">
  27. <forms ref="userRules" :formNewList="personnelList" :ruleForm="personnelForm" labelWidth="80px"
  28. @remoteMethod="remoteSearch">
  29. </forms>
  30. <div class="waybill_item">
  31. <waybillForm ref="recipients" title="患者信息" :conserveFlag="conserveFlag" thinTitle="患者簿"
  32. :ruleForm="recipientsForm" @addressBook="getAddressBook('recipients')" @conserveSelect="conserveSelectil">
  33. </waybillForm>
  34. </div>
  35. <forms ref="childRules" :formNewList="formRuleList" :ruleForm="ruleForm" labelWidth="80px">
  36. </forms>
  37. <el-dialog width="60%" title="地址簿" :visible.sync="innerVisible" append-to-body>
  38. <div class="space_between_in" style="margin-bottom: 15px;">
  39. <div style="display: flex;align-items: center;width: 100%;">
  40. <h3 style="margin-left: 10px;flex: none;">搜索:</h3>
  41. <el-input v-model="bookInput" style="width: 100%;" placeholder="请输入姓名、电话、地址快速查找"
  42. @input="fastSearch()"></el-input>
  43. </div>
  44. </div>
  45. <div class="card_book_list">
  46. <!-- 表单 -->
  47. <tables :suspension="true" :tableList="bookTableList" :tableData="bookTableData" @cellClick="cellClick"
  48. @buttonData="buttonData">
  49. </tables>
  50. <!-- 分页 -->
  51. <div v-if="bookTotal">
  52. <pagination :total="bookTotal" :currentPage="bookPagination.PageIndex" @changeSize="bookChangeSize"
  53. @changeCurrent="bookChangeCurrent">
  54. </pagination>
  55. </div>
  56. </div>
  57. </el-dialog>
  58. <span slot="footer" class="dialog-footer">
  59. <el-button plain @click="staffDialogVisible = false">取 消</el-button>
  60. <el-button type="primary" :loading="confirmLoading" @click="handleAdd">确 定</el-button>
  61. </span>
  62. </el-dialog>
  63. <el-dialog title="转门店" :visible.sync="signDialogVisible" width="500px" :close-on-click-modal="false"
  64. @close="closeDialog1">
  65. <forms ref="signRules" :formNewList="signRuleList" :ruleForm="signRuleForm" labelWidth="80px"
  66. @remoteMethod="remoteSearch">
  67. </forms>
  68. <span slot="footer" class="dialog-footer">
  69. <el-button plain @click="signDialogVisible = false">取 消</el-button>
  70. <el-button type="primary" :loading="signConfirmLoading" @click="signHandleAdd">确 定</el-button>
  71. </span>
  72. </el-dialog>
  73. </div>
  74. </template>
  75. <script>
  76. import {
  77. getWaybill,
  78. addWaybill,
  79. putWaybill,
  80. putUpdateStatus,
  81. putturnarounds
  82. } from '@/api/waybill'
  83. import {
  84. getAddress
  85. } from '@/api/address'
  86. import {
  87. getUser
  88. } from '@/api/user'
  89. import {
  90. getCompanyDept
  91. } from '@/api/company'
  92. import actionBar from '@/components/actionBar'
  93. import tables from '@/components/tables'
  94. import pagination from '@/components/pagination'
  95. import orderDetails from '@/components/orderDetails'
  96. import prescriptionPicture from '@/components/prescriptionPicture'
  97. import waybillForm from '@/components/waybillForm'
  98. import forms from '@/components/forms'
  99. import {
  100. employee,
  101. formRules,
  102. consignmentList,
  103. addressBook,
  104. signList,
  105. } from "./uncertain.js";
  106. import {
  107. WaybillStatus
  108. } from '@/assets/js/blockSort'
  109. export default {
  110. name: 'OrderManagement',
  111. components: {
  112. actionBar,
  113. tables,
  114. pagination,
  115. orderDetails,
  116. prescriptionPicture,
  117. waybillForm,
  118. forms,
  119. },
  120. data() {
  121. return {
  122. operateList: [{
  123. type: 'sends',
  124. title: '批量确定',
  125. icon: 'el-icon-thumb',
  126. colour: 'success'
  127. }, {
  128. type: 'add',
  129. title: '添加订单',
  130. icon: 'el-icon-plus',
  131. }],
  132. formList: [{
  133. type: 'input',
  134. label: '订单编号',
  135. field: 'waybillNo',
  136. placeholder: '请输入订单编号',
  137. }, {
  138. type: 'input',
  139. label: '门店名称',
  140. field: 'orderNo',
  141. placeholder: '请输入门店名称',
  142. }, {
  143. type: 'input',
  144. label: '配送员姓名',
  145. field: 'orderNo',
  146. placeholder: '请输入配送员姓名',
  147. }, {
  148. type: 'input',
  149. label: '患者名称',
  150. field: 'orderNo',
  151. placeholder: '请输入患者名称',
  152. }, {
  153. type: 'input',
  154. label: '患者手机号',
  155. field: 'orderNo',
  156. placeholder: '请输入患者手机号',
  157. }],
  158. searchRuleForm: {
  159. orderNo: '',
  160. status: null,
  161. time: [],
  162. },
  163. searchValue: {},
  164. Pagination: {
  165. PageIndex: 1,
  166. PageSize: 10,
  167. },
  168. Total: 0,
  169. operationType: '',
  170. tableData: [],
  171. tableList: [],
  172. btnData: [{
  173. type: 'confirm',
  174. label: '确定',
  175. icon: 'el-icon-thumb',
  176. style: 'success',
  177. }, {
  178. type: 'logs',
  179. label: '详情',
  180. icon: 'el-icon-tickets',
  181. style: 'success',
  182. }, {
  183. type: 'send',
  184. label: '处方',
  185. icon: 'el-icon-tickets',
  186. style: 'primary',
  187. }, {
  188. type: 'edit',
  189. label: '修改',
  190. icon: 'el-icon-edit',
  191. style: 'success',
  192. }, {
  193. type: 'sign',
  194. label: '转门店',
  195. icon: 'el-icon-share',
  196. style: 'warning',
  197. }, {
  198. type: 'delOrder',
  199. label: '取消订单',
  200. icon: 'el-icon-delete',
  201. style: 'danger',
  202. }],
  203. waybillData: {},
  204. srcList: [],
  205. fileList: [{
  206. name: 'food.jpeg',
  207. url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'
  208. }, {
  209. name: 'food2.jpeg',
  210. url: 'https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg'
  211. }],
  212. staffTitle: '添加',
  213. staffDialogVisible: false,
  214. recipientsForm: {
  215. name: '',
  216. phone: '',
  217. region: '',
  218. address: '',
  219. },
  220. personnelList: consignmentList(),
  221. personnelForm: {
  222. orderNo: null,
  223. reCheckId: null,
  224. deliveryId: null,
  225. },
  226. delivererName: '',
  227. ruleForm: {
  228. tamperProofLabel: '',
  229. tamperProofLabelImg: '',
  230. remark: '',
  231. fileList: [],
  232. },
  233. formRuleList: [],
  234. conserveFlag: true,
  235. saveConsigneeAddress: true,
  236. innerVisible: false,
  237. bookInput: '',
  238. bookTableList: [],
  239. bookTableData: [],
  240. bookType: '',
  241. bookPagination: {
  242. PageIndex: 1,
  243. PageSize: 10,
  244. },
  245. bookTotal: 0,
  246. confirmLoading: false,
  247. orderId: null,
  248. signDialogVisible: false,
  249. signRuleList: signList(),
  250. signRuleForm: {
  251. deptId: '',
  252. // rejectionReason: '',
  253. },
  254. signConfirmLoading: false,
  255. }
  256. },
  257. mounted() {
  258. const dataList = formRules();
  259. this.formRuleList = dataList;
  260. let arr = employee()
  261. arr.forEach(item => {
  262. if (item.field == 'unpackBtn') {
  263. item.labelButton = this.btnData
  264. }
  265. })
  266. this.tableList = arr
  267. this.getList()
  268. },
  269. methods: {
  270. // 搜索
  271. searchProtocol(value) {
  272. this.Pagination.PageIndex = 1
  273. this.searchValue = value
  274. if (value.time) {
  275. this.searchValue.orderStartTime = value.time[0]
  276. this.searchValue.orderEndTime = value.time[1]
  277. }
  278. this.getList()
  279. },
  280. // 获取订单列表
  281. getList() {
  282. var params = {
  283. status: 1,
  284. page: this.Pagination.PageIndex,
  285. pageSize: this.Pagination.PageSize,
  286. ...this.searchValue
  287. }
  288. delete params.time
  289. getWaybill(params).then(res => {
  290. if (res.code == 200) {
  291. this.tableData = res.data.list
  292. this.tableData.forEach(item => {
  293. if (item.iceRaftCode) {
  294. item.iceRaftCode = item.iceRaftCode.toString()
  295. }
  296. item.visible = false
  297. })
  298. this.Total = res.data.count
  299. }
  300. })
  301. },
  302. // 获取地址簿
  303. getAddressBook(type) {
  304. this.bookTableList = addressBook()
  305. this.bookType = type
  306. this.innerVisible = true
  307. this.getSenderSend()
  308. },
  309. // 快速搜索
  310. fastSearch() {
  311. this.bookPagination.PageIndex = 1
  312. if (this.bookType == 'deliverer') {
  313. this.getDelivererList()
  314. }
  315. },
  316. // 获取寄/收列表
  317. getSenderSend() {
  318. let address = ''
  319. if (this.bookType == 'recipients') {
  320. address = 'consignee'
  321. } else {
  322. address = this.bookType
  323. }
  324. getAddress({
  325. page: this.bookPagination.PageIndex,
  326. pageSize: this.bookPagination.PageSize,
  327. name: this.bookInput,
  328. addressType: address,
  329. }).then(res => {
  330. if (res.code == 200) {
  331. this.bookTableData = res.data.list
  332. this.bookTotal = res.data.count
  333. }
  334. })
  335. },
  336. openModel(type) {
  337. this.operationType = type
  338. if (type == 'add') {
  339. this.conserveFlag = true
  340. this.staffTitle = '添加订单'
  341. this.staffDialogVisible = true
  342. this.$nextTick(() => {
  343. // this.$refs.sender.radio = '1'
  344. this.$refs.recipients.radio = '1'
  345. this.getReviewerList()
  346. this.getDelivererList()
  347. })
  348. } else if (type == 'sends') {
  349. const arrID = this.$refs.refWaybill.waybillIds
  350. let arrList = []
  351. arrID.forEach(item => {
  352. arrList.push(item.id)
  353. })
  354. if (arrList.length != 0) {
  355. this.modifyOrderStatus(arrList)
  356. } else {
  357. this.$message({
  358. message: '请先选择需要批量操作的运单',
  359. type: 'warning'
  360. });
  361. }
  362. }
  363. },
  364. // 弹窗表单添加
  365. async handleAdd() {
  366. let senderFlag = this.$refs['userRules'].validateForm();
  367. let recipientsFlag = this.$refs['recipients'].validateForm();
  368. let childRulesFlag = this.$refs['childRules'].validateForm();
  369. if (senderFlag && recipientsFlag && childRulesFlag) {
  370. this.confirmLoading = true
  371. var params = {
  372. consigneeAddressName: this.recipientsForm.name,
  373. consigneeAddressPhone: this.recipientsForm.phone,
  374. consigneeAddressDetails: this.recipientsForm.address,
  375. saveConsigneeAddress: this.saveConsigneeAddress,
  376. orderNo: this.personnelForm.orderNo,
  377. deliveryId: Number(this.personnelForm.deliveryId),
  378. reCheckId: Number(this.personnelForm.reCheckId),
  379. ...this.ruleForm
  380. }
  381. if (this.ruleForm.fileList) {
  382. var fileImage = this.picture(this.ruleForm.fileList)
  383. params.tamperProofLabelImg = fileImage
  384. }
  385. if (this.operationType == 'add') {
  386. delete params.fileList
  387. await addWaybill(params).then(res => {
  388. if (res.code == 200) {
  389. this.$message({
  390. message: '操作成功',
  391. type: 'success'
  392. });
  393. this.getList()
  394. }
  395. this.staffDialogVisible = false
  396. this.confirmLoading = false
  397. }).catch(() => {
  398. this.confirmLoading = false
  399. })
  400. } else if (this.operationType == 'edit') {
  401. delete params.fileList
  402. params.id = this.orderId
  403. await putWaybill(params).then(res => {
  404. if (res.code == 200) {
  405. this.$message({
  406. message: '操作成功',
  407. type: 'success'
  408. });
  409. this.getList()
  410. }
  411. this.staffDialogVisible = false
  412. this.confirmLoading = false
  413. }).catch(() => {
  414. this.confirmLoading = false
  415. })
  416. }
  417. } else {
  418. this.$message.error('表单信息不完整,请继续填写完整');
  419. }
  420. },
  421. picture(arr) {
  422. var imgList = JSON.parse(JSON.stringify(arr))
  423. var imgArr = []
  424. imgList.forEach((item, index) => {
  425. imgArr.push(item.url)
  426. })
  427. var imgString = imgArr.join()
  428. return imgString
  429. },
  430. // 选择table其中某一项
  431. cellClick(row) {
  432. this.innerVisible = false
  433. const param = {
  434. ...row
  435. }
  436. if (this.bookType == 'recipients') {
  437. this.recipientsForm = param
  438. this.$nextTick(() => {
  439. this.$refs.recipients.radio = ''
  440. // this.$refs['recipients'].clickitem('1')
  441. this.$refs['recipients'].validateForm();
  442. })
  443. } else if (this.bookType == 'deliverer') {
  444. this.delivererForm.name = param.nickName
  445. this.delivererForm.phone = param.phone
  446. this.$nextTick(() => {
  447. this.$refs['deliverer'].validateForm();
  448. })
  449. }
  450. },
  451. buttonData(row, type) {
  452. this.operationType = type
  453. this.orderId = row.id
  454. if (type == 'logs') {
  455. this.$refs.order.staffDialogVisible = true
  456. this.waybillData = row
  457. this.waybillData.coolerBoxName = row.coolerBox.name
  458. this.waybillData.courierName = row.delivery.nickName
  459. this.waybillData.courierPhone = row.delivery.phone
  460. this.waybillData.reCheckName = row.reCheck.nickName
  461. this.waybillData.reCheckPhone = row.reCheck.phone
  462. } else if (type == 'send') {
  463. const urls = this.fileList.map(obj => obj.url)
  464. this.srcList = urls
  465. this.$refs.picture.prescriptionVisible = true
  466. } else if (type == 'confirm') {
  467. let arrOrderId = []
  468. arrOrderId.push(row.id)
  469. this.modifyOrderStatus(arrOrderId, 2)
  470. } else if (type == 'edit') {
  471. // this.getReviewerList()
  472. // this.getDelivererList()
  473. this.conserveFlag = false
  474. this.staffTitle = '编辑'
  475. this.staffDialogVisible = true
  476. setTimeout(() => {
  477. this.$nextTick(() => {
  478. this.recipientsForm.name = row.consigneeAddressName
  479. this.recipientsForm.phone = row.consigneeAddressPhone
  480. this.recipientsForm.address = row.consigneeAddressDetails
  481. this.ruleForm.tamperProofLabel = row.tamperProofLabel
  482. this.personnelForm.orderNo = row.orderNo
  483. this.personnelForm.reCheckId = String(row.reCheckId)
  484. this.personnelForm.deliveryId = String(row.deliveryId)
  485. if (row.tamperProofLabelImg) {
  486. var arr = row.tamperProofLabelImg.split(',')
  487. var arr3 = []
  488. arr.forEach((item, index) => {
  489. var arr1 = {
  490. url: '',
  491. }
  492. arr1.url = item
  493. arr3.push(arr1)
  494. })
  495. this.ruleForm.fileList = arr3
  496. this.ruleForm.tamperProofLabelImg = row.tamperProofLabelImg
  497. }
  498. this.ruleForm.remark = row.remark
  499. })
  500. })
  501. } else if (type == 'sign') {
  502. this.signDialogVisible = true
  503. this.waybillNo = row.waybillNo
  504. this.getAcquireStore()
  505. } else if (type == 'delOrder') {
  506. this.$confirm('此操作将永久删除该订单, 是否继续?', '提示', {
  507. confirmButtonText: '确定',
  508. cancelButtonText: '取消',
  509. type: 'warning'
  510. }).then(() => {
  511. let arrOrderId = []
  512. arrOrderId.push(row.id)
  513. putUpdateStatus({
  514. id: arrOrderId,
  515. status: 8,
  516. }).then(res => {
  517. if (res.code == 200) {
  518. this.$message({
  519. message: '操作成功',
  520. type: 'success'
  521. });
  522. this.getList()
  523. }
  524. })
  525. }).catch(() => {})
  526. }
  527. },
  528. // 修改订单状态
  529. modifyOrderStatus(arrID, type) {
  530. putUpdateStatus({
  531. id: arrID,
  532. status: type,
  533. }).then(res => {
  534. if (res.code == 200) {
  535. this.$message({
  536. message: '操作成功',
  537. type: 'success'
  538. });
  539. this.getList()
  540. }
  541. })
  542. },
  543. // 转门店
  544. signHandleAdd() {
  545. let flag = this.$refs['signRules'].validateForm();
  546. if (flag) {
  547. this.signConfirmLoading = true
  548. let params = {
  549. waybillNo: this.waybillNo,
  550. deptId: Number(this.signRuleForm.deptId),
  551. }
  552. putturnarounds(params).then(res => {
  553. if (res.code == 200) {
  554. this.signDialogVisible = false
  555. this.getList()
  556. }
  557. this.signConfirmLoading = false
  558. }).catch(() => {
  559. this.signConfirmLoading = false
  560. })
  561. } else {
  562. this.$message.error('表单信息不完整,请继续填写完整');
  563. }
  564. },
  565. remoteSearch(value, type) {
  566. this.delivererName = value
  567. if (type == 'deliveryId') {
  568. this.personnelList.forEach(item => {
  569. if (item.field == 'deliveryId') {
  570. item.options = []
  571. }
  572. })
  573. this.getDelivererList()
  574. } else if (type == 'reCheckId') {
  575. this.personnelList.forEach(item => {
  576. if (item.field == 'reCheckId') {
  577. item.options = []
  578. }
  579. })
  580. this.getReviewerList()
  581. } else if (type == 'deptId') {
  582. this.signRuleList.forEach(item => {
  583. if (item.field == 'deptId') {
  584. item.options = []
  585. }
  586. })
  587. this.getAcquireStore()
  588. }
  589. },
  590. // 复核人
  591. getReviewerList() {
  592. var params = {
  593. page: 1,
  594. pageSize: 999,
  595. name: this.delivererName,
  596. }
  597. getUser(params).then(res => {
  598. if (res.code == 200) {
  599. let arr = res.data.list
  600. let arrList = []
  601. arr.forEach(item1 => {
  602. var arrData = {
  603. label: null,
  604. value: null,
  605. }
  606. arrData.label = item1.nickName
  607. arrData.value = item1.id
  608. arrList.push(arrData)
  609. })
  610. this.personnelList.forEach(item => {
  611. if (item.field == 'reCheckId') {
  612. item.options = item.options.concat(arrList)
  613. }
  614. })
  615. }
  616. })
  617. },
  618. getDelivererList() {
  619. var params = {
  620. page: 1,
  621. pageSize: 999,
  622. // type: 3,
  623. name: this.delivererName,
  624. }
  625. getUser(params).then(res => {
  626. if (res.code == 200) {
  627. let arr = res.data.list
  628. let arrList = []
  629. arr.forEach(item1 => {
  630. var arrData = {
  631. label: null,
  632. value: null,
  633. }
  634. arrData.label = item1.nickName
  635. arrData.value = item1.id
  636. arrList.push(arrData)
  637. })
  638. this.personnelList.forEach(item => {
  639. if (item.field == 'deliveryId') {
  640. item.options = item.options.concat(arrList)
  641. }
  642. })
  643. }
  644. })
  645. },
  646. // 获取门店
  647. getAcquireStore() {
  648. var params = {
  649. page: 1,
  650. pageSize: 999,
  651. // type: 3,
  652. name: this.delivererName,
  653. }
  654. getCompanyDept(params).then(res => {
  655. // signRuleList
  656. if (res.code == 200) {
  657. let arr = res.data.list
  658. let arrList = []
  659. arr.forEach(item1 => {
  660. var arrData = {
  661. label: null,
  662. value: null,
  663. }
  664. arrData.label = item1.name
  665. arrData.value = item1.id
  666. arrList.push(arrData)
  667. })
  668. this.signRuleList.forEach(item => {
  669. if (item.field == 'deptId') {
  670. item.options = item.options.concat(arrList)
  671. }
  672. })
  673. }
  674. })
  675. },
  676. // 地址簿
  677. bookChangeSize(val) {
  678. this.bookPagination.PageSize = val
  679. if (this.bookType == 'deliverer') {
  680. this.getDelivererList()
  681. } else {
  682. this.getSenderSend()
  683. }
  684. },
  685. bookChangeCurrent(val) {
  686. this.bookPagination.PageIndex = val
  687. if (this.bookType == 'deliverer') {
  688. this.getDelivererList()
  689. } else {
  690. this.getSenderSend()
  691. }
  692. },
  693. conserveSelectil(type) {
  694. if (type) {
  695. this.saveConsigneeAddress = true
  696. } else {
  697. this.saveConsigneeAddress = false
  698. }
  699. },
  700. changeSize(val) {
  701. this.Pagination.PageSize = val
  702. this.getList()
  703. },
  704. changeCurrent(val) {
  705. this.Pagination.PageIndex = val
  706. this.getList()
  707. },
  708. // 清空表单
  709. closeDialog1() {
  710. this.$refs.signRules.resetCheck();
  711. },
  712. // 关闭清空表单
  713. closePopup() {
  714. this.ruleForm.fileList = []
  715. // this.$refs.sender.resetForm()
  716. this.$refs.recipients.resetForm()
  717. // this.$refs.deliverer.resetForm()
  718. this.$refs.childRules.resetCheck()
  719. this.$refs.userRules.resetCheck()
  720. this.personnelList.forEach(item => {
  721. item.options = []
  722. })
  723. }
  724. },
  725. }
  726. </script>
  727. <style lang="scss">
  728. </style>