engin_list.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. <template>
  2. <div class="app-container">
  3. <div v-show="!isShowDetail && !isShowExamine && !isShowForm && !isShowReturnForm">
  4. <!-- 筛选条件 -->
  5. <div class="screen-container">
  6. <el-form ref="screenForm" :model="screenForm" label-width="100px" size="mini" label-position="left">
  7. <el-row :gutter="20">
  8. <el-col :xs="24" :sm="24" :lg="24">
  9. <el-form-item prop="status" label-width="0">
  10. <el-radio-group v-model="screenForm.status" @change="getList()">
  11. <el-radio-button label="">全部</el-radio-button>
  12. <el-radio-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{item.label}}</el-radio-button>
  13. </el-radio-group>
  14. </el-form-item>
  15. </el-col>
  16. <el-col :xs="24" :sm="12" :lg="6">
  17. <el-form-item label="发货申请单" prop="orderNum">
  18. <el-input v-model="screenForm.orderNum" placeholder="请输入发货申请单"></el-input>
  19. </el-form-item>
  20. </el-col>
  21. <el-col :xs="24" :sm="12" :lg="6">
  22. <el-form-item label="仓库名称" prop="warehouse">
  23. <el-input v-model="screenForm.warehouse" placeholder="请输入仓库名称"></el-input>
  24. </el-form-item>
  25. </el-col>
  26. <el-col :xs="24" :sm="12" :lg="6">
  27. <el-form-item label="经销商编码" prop="jxsNum">
  28. <el-input v-model="screenForm.jxsNum" placeholder="请输入经销商编码"></el-input>
  29. </el-form-item>
  30. </el-col>
  31. <el-col :xs="24" :sm="12" :lg="6">
  32. <el-form-item label="经销商名称" prop="jxsName">
  33. <el-input v-model="screenForm.jxsName" placeholder="请输入经销商名称"></el-input>
  34. </el-form-item>
  35. </el-col>
  36. <el-col :xs="24" :sm="12" :lg="6">
  37. <el-form-item label="发货申请日期" prop="date">
  38. <el-date-picker
  39. v-model="screenForm.date"
  40. type="datetimerange"
  41. range-separator="至"
  42. style="width: 100%;"
  43. value-format="yyyy-MM-dd HH:mm:ss"
  44. start-placeholder="开始日期"
  45. end-placeholder="结束日期">
  46. </el-date-picker>
  47. </el-form-item>
  48. </el-col>
  49. <el-col :xs="24" :sm="12" :lg="6">
  50. <el-form-item label="产品名称" prop="chName">
  51. <el-input v-model="screenForm.chName" placeholder="请输入产品名称"></el-input>
  52. </el-form-item>
  53. </el-col>
  54. <el-col :xs="24" :sm="12" :lg="6">
  55. <el-form-item label="规格型号" prop="model">
  56. <el-input v-model="screenForm.model" placeholder="请输入规格型号"></el-input>
  57. </el-form-item>
  58. </el-col>
  59. <el-col :xs="24" :sm="12" :lg="6">
  60. <el-form-item label="业务员" prop="salesMan">
  61. <el-select v-model="screenForm.salesMan" placeholder="选择业务员" clearable filterable style="width: 100%">
  62. <el-option
  63. v-for="item in salesmanList"
  64. :key="item.adminUserId"
  65. :label="item.nickName"
  66. :value="item.adminUserId">
  67. </el-option>
  68. </el-select>
  69. </el-form-item>
  70. </el-col>
  71. <el-col :xs="24" :sm="12" :lg="6">
  72. <el-form-item label="订单类型" prop="orderType">
  73. <el-select v-model="screenForm.orderType" placeholder="请选择" clearable>
  74. <el-option
  75. v-for="item in orderTypeList"
  76. :key="item.value"
  77. :label="item.label"
  78. :value="item.value">
  79. </el-option>
  80. </el-select>
  81. </el-form-item>
  82. </el-col>
  83. <el-col :xs="24" :sm="12" :lg="6">
  84. <el-form-item label="订单号" prop="mainOrderId">
  85. <el-input v-model="screenForm.mainOrderId" placeholder="请输入订单号"></el-input>
  86. </el-form-item>
  87. </el-col>
  88. <el-col :xs="24" :sm="12" :lg="6">
  89. <el-form-item label="工程登录编号" prop="refEnginRecordNo">
  90. <el-input v-model="screenForm.refEnginRecordNo" placeholder="请输入工程登录编号"></el-input>
  91. </el-form-item>
  92. </el-col>
  93. <el-col :xs="24" :sm="12" :lg="6">
  94. <el-form-item label="使用单位" prop="refUseUnit">
  95. <el-input v-model="screenForm.refUseUnit" placeholder="请输入使用单位"></el-input>
  96. </el-form-item>
  97. </el-col>
  98. <el-col :xs="24" :sm="24" :lg="24" class="tr">
  99. <el-form-item label="">
  100. <el-button @click="resetScreenForm">清空</el-button>
  101. <el-button type="primary" @click="submitScreenForm">搜索</el-button>
  102. </el-form-item>
  103. </el-col>
  104. </el-row>
  105. </el-form>
  106. </div>
  107. <div class="mymain-container">
  108. <div class="btn-group clearfix">
  109. <div class="fl">
  110. <el-button size="mini" type="primary" icon="el-icon-plus" @click="toForm()" v-if="$checkBtnRole('add', $route.meta.roles)">发货申请</el-button>
  111. <el-button size="mini" type="primary" icon="el-icon-plus" @click="toReturnForm()" v-if="$checkBtnRole('add', $route.meta.roles)">退货申请</el-button>
  112. <el-button size="mini" type="warning" icon="el-icon-finished" @click="batchExamine" :disabled="multipleSelection.length < 1" v-if="$checkBtnRole('examine', $route.meta.roles)">批量审批</el-button>
  113. </div>
  114. <div class="fr">
  115. <ExportButton :exUrl="'invoice/listProjectExport'" :exParams="exParams" />
  116. </div>
  117. </div>
  118. <div class="table">
  119. <el-table
  120. v-loading="listLoading"
  121. :data="dataList"
  122. element-loading-text="Loading"
  123. border
  124. fit
  125. highlight-current-row
  126. stripe
  127. @selection-change="handleSelectionChange"
  128. show-summary
  129. :summary-method="$getSummaries">
  130. <el-table-column align="center" type="selection" width="55"></el-table-column>
  131. <el-table-column align="left" label="订单类型" prop="type" min-width="100" show-overflow-tooltip>
  132. <template slot-scope="scope">
  133. {{scope.row.type | orderTypeFilter}}
  134. </template>
  135. </el-table-column>
  136. <el-table-column align="left" label="发货申请单" prop="id" min-width="130" show-overflow-tooltip>
  137. <template slot-scope="scope">
  138. <CopyButton :copyText="scope.row.id" />
  139. <span>{{scope.row.id}}</span>
  140. </template>
  141. </el-table-column>
  142. <el-table-column align="left" label="发货申请日期" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
  143. <el-table-column align="left" label="仓库" prop="correspondName" min-width="100" show-overflow-tooltip>
  144. <template slot-scope="scope">
  145. {{scope.row.type === 3 ? scope.row.stockName : scope.row.correspondName}}
  146. </template>
  147. </el-table-column>
  148. <el-table-column align="left" label="订单号" prop="enginOrderNo" min-width="140" show-overflow-tooltip>
  149. <template slot-scope="scope">
  150. <CopyButton :copyText="scope.row.enginOrderNo" />
  151. <span>{{scope.row.enginOrderNo}}</span>
  152. </template>
  153. </el-table-column>
  154. <el-table-column align="left" label="工程登录编号" prop="refEnginRecordNo" min-width="200" show-overflow-tooltip>
  155. <template slot-scope="scope">
  156. <CopyButton :copyText="scope.row.refEnginRecordNo" />
  157. <span>{{scope.row.refEnginRecordNo}}</span>
  158. </template>
  159. </el-table-column>
  160. <el-table-column align="left" label="项目类别" prop="refProjectName" min-width="120" show-overflow-tooltip></el-table-column>
  161. <el-table-column align="left" label="使用单位" prop="refUseUnit" min-width="120" show-overflow-tooltip></el-table-column>
  162. <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="100" show-overflow-tooltip>
  163. <template slot-scope="scope">
  164. <CopyButton :copyText="scope.row.customerNumber" />
  165. <span>{{scope.row.customerNumber}}</span>
  166. </template>
  167. </el-table-column>
  168. <el-table-column align="left" label="经销商名称" prop="customerName" min-width="250" show-overflow-tooltip>
  169. <template slot-scope="scope">
  170. <CopyButton :copyText="scope.row.customerName" />
  171. <span>{{scope.row.customerName}}</span>
  172. </template>
  173. </el-table-column>
  174. <el-table-column align="left" label="物料编码" prop="materialCode" min-width="120" show-overflow-tooltip>
  175. <template slot-scope="scope">
  176. <CopyButton :copyText="scope.row.materialCode" />
  177. <span>{{scope.row.materialCode}}</span>
  178. </template>
  179. </el-table-column>
  180. <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="140" show-overflow-tooltip>
  181. <template slot-scope="scope">
  182. <CopyButton :copyText="scope.row.materialOldNumber" />
  183. <span>{{scope.row.materialOldNumber}}</span>
  184. </template>
  185. </el-table-column>
  186. <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip>
  187. <template slot-scope="scope">
  188. <CopyButton :copyText="scope.row.materialName" />
  189. <span>{{scope.row.materialName}}</span>
  190. </template>
  191. </el-table-column>
  192. <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip>
  193. <template slot-scope="scope">
  194. <CopyButton :copyText="scope.row.specification" />
  195. <span>{{scope.row.specification}}</span>
  196. </template>
  197. </el-table-column>
  198. <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
  199. <el-table-column align="right" label="含税单价" prop="singlePayPrice" min-width="100" show-overflow-tooltip>
  200. <template slot-scope="scope">
  201. {{scope.row.singlePayPrice | numToFixed}}
  202. </template>
  203. </el-table-column>
  204. <el-table-column align="right" label="价税合计" prop="payAmount" min-width="100" show-overflow-tooltip>
  205. <template slot-scope="scope">
  206. {{scope.row.payAmount | numToFixed}}
  207. </template>
  208. </el-table-column>
  209. <el-table-column align="right" label="返利金额" prop="payRebateAmount" min-width="100" show-overflow-tooltip>
  210. <template slot-scope="scope">
  211. {{scope.row.payRebateAmount | numToFixed}}
  212. </template>
  213. </el-table-column>
  214. <el-table-column align="right" label="格力折扣" prop="totalDiscAmount" min-width="100" show-overflow-tooltip>
  215. <template slot-scope="scope">
  216. {{scope.row.totalDiscAmount | numToFixed}}
  217. </template>
  218. </el-table-column>
  219. <el-table-column align="right" label="数量" prop="refundableQty" min-width="100" show-overflow-tooltip></el-table-column>
  220. <el-table-column align="left" label="订单备注" prop="headerRemark" min-width="160" show-overflow-tooltip></el-table-column>
  221. <el-table-column align="left" label="发货申请备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
  222. <el-table-column align="left" label="表体备注" prop="invoiceRemark" min-width="160" show-overflow-tooltip></el-table-column>
  223. <el-table-column align="left" label="业务员" prop="serviceName" min-width="100" show-overflow-tooltip></el-table-column>
  224. <el-table-column align="left" label="表头业务员" prop="k3ServiceName" min-width="100" show-overflow-tooltip></el-table-column>
  225. <el-table-column align="left" label="制单人" prop="createBy" min-width="100" show-overflow-tooltip></el-table-column>
  226. <el-table-column align="left" label="制单日期" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
  227. <el-table-column align="left" label="审核人" prop="approvalName" min-width="100" show-overflow-tooltip></el-table-column>
  228. <el-table-column align="left" label="审核日期" prop="approvalTime" min-width="160" show-overflow-tooltip></el-table-column>
  229. <el-table-column align="left" label="审核状态" prop="examineStatus" min-width="100" show-overflow-tooltip>
  230. <template slot-scope="scope">
  231. {{scope.row.examineStatus | statusFilter}}
  232. </template>
  233. </el-table-column>
  234. <el-table-column align="center" label="操作" width="180" fixed="right">
  235. <template slot-scope="scope">
  236. <el-popconfirm
  237. style="margin-right: 10px;"
  238. title="确定申请吗?"
  239. @onConfirm="handleSubmit(scope.row.id, 'WAIT')"
  240. v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'SAVE'" >
  241. <el-button slot="reference" type="text">申请</el-button>
  242. </el-popconfirm>
  243. <el-popconfirm
  244. style="margin-right: 10px;"
  245. title="确定撤回吗?"
  246. @onConfirm="handleSubmit(scope.row.id, 'SAVE')"
  247. v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'" >
  248. <el-button slot="reference" type="text">撤回</el-button>
  249. </el-popconfirm>
  250. <el-popconfirm
  251. style="margin-right: 10px;"
  252. title="确定弃审吗?"
  253. @onConfirm="handleAbandon(scope.row.id)"
  254. v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
  255. <el-button slot="reference" type="text">弃审</el-button>
  256. </el-popconfirm>
  257. <el-button
  258. type="text"
  259. @click="toForm(scope.row)"
  260. v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') && scope.row.type === 1">
  261. 编辑
  262. </el-button>
  263. <el-button
  264. type="text"
  265. @click="toReturnForm(scope.row)"
  266. v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL') && scope.row.type === 2">
  267. 编辑
  268. </el-button>
  269. <el-button
  270. type="text"
  271. @click="toExamine(scope.row)"
  272. v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">
  273. 审单
  274. </el-button>
  275. <el-button
  276. type="text"
  277. @click="toDetail(scope.row)">
  278. 详情
  279. </el-button>
  280. <el-popconfirm
  281. style="margin-left: 10px;"
  282. title="确定删除吗?"
  283. @onConfirm="handleDelete(scope.row.id)"
  284. v-if="$checkBtnRole('del', $route.meta.roles)">
  285. <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
  286. </el-popconfirm>
  287. </template>
  288. </el-table-column>
  289. </el-table>
  290. </div>
  291. </div>
  292. <div class="pagination clearfix">
  293. <div class="fr">
  294. <el-pagination
  295. @size-change="handleSizeChange"
  296. @current-change="handleCurrentChange"
  297. :current-page="currentPage"
  298. :page-sizes="[10, 20, 30, 50]"
  299. :page-size="10"
  300. layout="total, sizes, prev, pager, next, jumper"
  301. :total="listTotal">
  302. </el-pagination>
  303. </div>
  304. </div>
  305. </div>
  306. <ExamineDialog :isShow.sync="isShowExamineDialog" :examineForm.sync="examineForm" />
  307. <EnginDetail :listItem="queryItem" v-if="isShowDetail" @backListFormDetail="backList" />
  308. <EnginExamine :listItem="queryItem" v-if="isShowExamine" @backListFormDetail="backList" />
  309. <EnginForm :listItem="queryItem" v-if="isShowForm" @backListFormDetail="backList" />
  310. <EnginReturnForm :listItem="queryItem" v-if="isShowReturnForm" @backListFormDetail="backList" />
  311. </div>
  312. </template>
  313. <script>
  314. import { getEnginList, submitEngin, deleteEngin, abandonEngin, examineBatchEngin } from "@/api/supply/apply";
  315. import { getSalesmanList } from '@/api/common'
  316. import EnginDetail from "@/views/supply/apply/components/engin_detail";
  317. import EnginExamine from "@/views/supply/apply/components/engin_examine";
  318. import EnginForm from "@/views/supply/apply/components/engin_form";
  319. import EnginReturnForm from "@/views/supply/apply/components/engin_return_form";
  320. import ExamineDialog from "@/components/Common/examine-dialog";
  321. let that
  322. export default {
  323. components: {
  324. EnginDetail,
  325. EnginExamine,
  326. EnginForm,
  327. EnginReturnForm,
  328. ExamineDialog,
  329. },
  330. filters: {
  331. statusFilter(val) {
  332. let obj = that.statusList.find(o => o.value == val);
  333. return obj ? obj.label : ''
  334. },
  335. orderTypeFilter(val) {
  336. let obj = that.orderTypeList.find(o => o.value == val);
  337. return obj ? obj.label : ''
  338. },
  339. },
  340. data() {
  341. return {
  342. currentPage: 1, // 当前页码
  343. pageSize: 10, // 每页数量
  344. listTotal: 0, // 列表总数
  345. dataList: null, // 列表数据
  346. listLoading: false, // 列表加载loading
  347. screenForm: { // 筛选表单数据
  348. status: '',
  349. orderNum: '',
  350. warehouse: '',
  351. jxsNum: '',
  352. jxsName: '',
  353. date: '',
  354. chName: '',
  355. model: '',
  356. salesMan: '',
  357. orderType: '',
  358. mainOrderId: '',
  359. refEnginRecordNo: '',
  360. refUseUnit: '',
  361. },
  362. statusList: [
  363. { label: '已保存', value: 'SAVE' },
  364. { label: '待审核', value: 'WAIT' },
  365. { label: '审核通过', value: 'OK' },
  366. { label: '审核驳回', value: 'FAIL' },
  367. { label: '已关闭', value: 'CLOSE' },
  368. ],
  369. orderTypeList: [
  370. { label: '发货申请单', value: 1 },
  371. { label: '退货申请单', value: 2 },
  372. { label: '直调发货单', value: 3 },
  373. ],
  374. salesmanList: [],
  375. queryItem: {},
  376. isShowDetail: false,
  377. isShowExamine: false,
  378. isShowForm: false,
  379. isShowReturnForm: false,
  380. multipleSelection: [],
  381. isShowExamineDialog: false,
  382. examineForm: {
  383. status: '',
  384. remark: '',
  385. },
  386. }
  387. },
  388. computed: {
  389. exParams() {
  390. return {
  391. id: this.screenForm.orderNum,
  392. correspondName: this.screenForm.warehouse,
  393. customerNumber: this.screenForm.jxsNum,
  394. customerName: this.screenForm.jxsName,
  395. productName: this.screenForm.chName,
  396. specification: this.screenForm.model,
  397. startTime: this.screenForm.date ? this.screenForm.date[0] : '',
  398. endTime: this.screenForm.date ? this.screenForm.date[1] : '',
  399. examineStatus: this.screenForm.status,
  400. serviceId: this.screenForm.salesMan,
  401. type: this.screenForm.orderType,
  402. mainOrderId: this.screenForm.mainOrderId,
  403. refEnginRecordNo: this.screenForm.refEnginRecordNo,
  404. refUseUnit: this.screenForm.refUseUnit,
  405. }
  406. },
  407. },
  408. beforeCreate() {
  409. that = this;
  410. },
  411. created() {
  412. this.getSalesmanList();
  413. this.getList();
  414. },
  415. methods: {
  416. // 获取业务员列表
  417. getSalesmanList() {
  418. getSalesmanList({
  419. pageNum: 1,
  420. pageSize: -1,
  421. isCustomer: 0,
  422. status: true,
  423. }).then(res => {
  424. this.salesmanList = res.data.records;
  425. })
  426. },
  427. // 查询列表
  428. getList() {
  429. this.listLoading = true;
  430. let params = {
  431. pageNum: this.currentPage,
  432. pageSize: this.pageSize,
  433. id: this.screenForm.orderNum,
  434. correspondName: this.screenForm.warehouse,
  435. customerNumber: this.screenForm.jxsNum,
  436. customerName: this.screenForm.jxsName,
  437. productName: this.screenForm.chName,
  438. specification: this.screenForm.model,
  439. startTime: this.screenForm.date ? this.screenForm.date[0] : '',
  440. endTime: this.screenForm.date ? this.screenForm.date[1] : '',
  441. examineStatus: this.screenForm.status,
  442. serviceId: this.screenForm.salesMan,
  443. type: this.screenForm.orderType,
  444. mainOrderId: this.screenForm.mainOrderId,
  445. refEnginRecordNo: this.screenForm.refEnginRecordNo,
  446. refUseUnit: this.screenForm.refUseUnit,
  447. };
  448. getEnginList(params).then((res) => {
  449. res.data.records.forEach(item => {
  450. item.sums1 = ['refundableQty'];
  451. item.sums2 = ['singlePayPrice', 'payAmount', 'payRebateAmount', 'totalDiscAmount'];
  452. })
  453. this.dataList = res.data.records;
  454. this.listTotal = res.data.total;
  455. this.listLoading = false;
  456. })
  457. },
  458. // 提交筛选表单
  459. submitScreenForm() {
  460. this.currentPage = 1;
  461. this.getList();
  462. },
  463. // 重置筛选表单
  464. resetScreenForm() {
  465. this.$refs.screenForm.resetFields();
  466. this.currentPage = 1;
  467. this.getList();
  468. },
  469. // 更改每页数量
  470. handleSizeChange(val) {
  471. this.pageSize = val;
  472. this.currentPage = 1;
  473. this.getList();
  474. },
  475. // 更改当前页
  476. handleCurrentChange(val) {
  477. this.currentPage = val;
  478. this.getList();
  479. },
  480. // 进入表单
  481. toForm(item) {
  482. this.queryItem = item;
  483. this.isShowForm = true;
  484. },
  485. // 进入表单
  486. toReturnForm(item) {
  487. this.queryItem = item;
  488. this.isShowReturnForm = true;
  489. },
  490. // 进入审批
  491. toExamine(item) {
  492. this.queryItem = item;
  493. this.isShowExamine = true;
  494. },
  495. // 进入详情
  496. toDetail(item) {
  497. this.queryItem = item;
  498. this.isShowDetail = true;
  499. },
  500. backList() {
  501. this.queryItem = {};
  502. this.isShowDetail = false;
  503. this.isShowExamine = false;
  504. this.isShowForm = false;
  505. this.isShowReturnForm = false;
  506. },
  507. handleDelete(id) {
  508. deleteEngin({id}).then(res => {
  509. this.$successMsg();
  510. this.getList();
  511. })
  512. },
  513. // 申请/撤回
  514. handleSubmit(id, examineStatus) {
  515. submitEngin({id, examineStatus}).then(res => {
  516. this.$successMsg();
  517. this.getList();
  518. })
  519. },
  520. // 弃审
  521. handleAbandon(id) {
  522. abandonEngin({id}).then(res => {
  523. this.$successMsg();
  524. this.getList();
  525. })
  526. },
  527. handleSelectionChange(val) {
  528. this.multipleSelection = val;
  529. },
  530. // 打开 批量审批
  531. batchExamine() {
  532. this.isShowExamineDialog = true;
  533. },
  534. // 提交 批量审批
  535. submitExamineForm() {
  536. let ids = this.multipleSelection.map(item => {
  537. return item.id;
  538. });
  539. ids = Array.from(new Set(ids));
  540. examineBatchEngin({
  541. ids: ids.join(','),
  542. examineStatus: this.examineForm.status,
  543. approvalRemark: this.examineForm.remark,
  544. }).then(res => {
  545. this.isShowExamineDialog = false;
  546. this.getList();
  547. this.$successMsg('审批成功');
  548. })
  549. },
  550. }
  551. }
  552. </script>
  553. <style lang="scss" scoped>
  554. </style>