Coupon_CreateCoupon.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  1. <template>
  2. <div v-if="pageStatus == 0">配置加载中...</div>
  3. <div v-else-if="pageStatus == 1">此页面不对此账号开放</div>
  4. <div v-else-if="pageStatus == 2">
  5. 没有此页内容的配置权限,请检查集团上的配置
  6. </div>
  7. <div v-else-if="pageStatus == 3">加载发生错误</div>
  8. <div v-else-if="pageStatus == 4" class="app-container">
  9. <el-form>
  10. <el-form-item label="启动优惠劵" label-width="88px">
  11. <el-switch
  12. v-model="couponEnabledFlag"
  13. active-value="1"
  14. inactive-value="0"
  15. @change="handleFlagChange()"
  16. ></el-switch>
  17. </el-form-item>
  18. <hr />
  19. </el-form>
  20. <div v-if="couponEnabledFlag == 1">
  21. <el-form
  22. :model="createForm"
  23. ref="createForm"
  24. :inline="true"
  25. label-width="88px"
  26. >
  27. <el-form-item label="设备类型" prop="deviceType">
  28. <el-select
  29. v-model="createForm.deviceType"
  30. clearable
  31. placeholder="请选择"
  32. >
  33. <el-option label="小票打印机" value="1"></el-option>
  34. <el-option label="POS" value="2"></el-option>
  35. </el-select>
  36. </el-form-item>
  37. <el-form-item label="密钥" prop="deviceSerialNum">
  38. <el-input
  39. v-model="createForm.deviceSerialNum"
  40. placeholder="请输入设备密钥"
  41. clearable
  42. size="small"
  43. @keyup.enter.native="handleQuery"
  44. />
  45. </el-form-item>
  46. <el-form-item>
  47. <el-button
  48. type="cyan"
  49. icon="el-icon-search"
  50. size="mini"
  51. @click="handleQuery"
  52. >搜索</el-button
  53. >
  54. <el-button
  55. type="info"
  56. icon="el-icon-refresh"
  57. size="mini"
  58. @click="resetQuery"
  59. >重置</el-button
  60. >
  61. <el-button
  62. type="primary"
  63. icon="el-icon-plus"
  64. size="mini"
  65. @click="handleAdd"
  66. >新增</el-button
  67. >
  68. </el-form-item>
  69. </el-form>
  70. <el-table :data="couponList">
  71. <af-table-column label="优惠券名称" align="center" prop="couponName" />
  72. <af-table-column label="状态" align="center" width="100">
  73. <template slot-scope="scope">
  74. <el-switch
  75. v-model="scope.row.status"
  76. active-value="1"
  77. inactive-value="0"
  78. @change="handleStatusChange(scope.row)"
  79. ></el-switch>
  80. </template>
  81. </af-table-column>
  82. <!-- <af-table-column label="面值" align="center" prop="gunNo" /> -->
  83. <!-- <af-table-column label="有效期" align="center" prop="deviceFactory" /> -->
  84. <af-table-column
  85. label="操作"
  86. align="center"
  87. class-name="small-padding fixed-width"
  88. width="120px"
  89. >
  90. <template slot-scope="scope">
  91. <el-button
  92. size="mini"
  93. type="text"
  94. icon="el-icon-edit"
  95. @click="handleUpdate(scope.row)"
  96. v-if="scope.row.editFlag"
  97. >修改</el-button
  98. >
  99. <!-- <el-button
  100. size="mini"
  101. type="text"
  102. icon="el-icon-delete"
  103. @click="handleDelete(scope.row)"
  104. >删除</el-button
  105. > -->
  106. </template>
  107. </af-table-column>
  108. </el-table>
  109. <pagination
  110. :hidden="total > 0 ? false : true"
  111. :total="total"
  112. :page.sync="queryForm.pageNum"
  113. :limit.sync="queryForm.pageSize"
  114. @pagination="getCoupon"
  115. :autoScroll="true"
  116. />
  117. </div>
  118. <div v-else style="text-align:center">
  119. 亲,您的油站暂未启动优惠券功能,呦~
  120. </div>
  121. <!-- 添加或修改油站设备管理对话框 -->
  122. <el-dialog
  123. :title="title"
  124. :visible.sync="open"
  125. width="600px"
  126. append-to-body
  127. status-icon
  128. >
  129. <el-form
  130. ref="dialogForm"
  131. :model="createForm"
  132. :rules="rules"
  133. label-width="180px"
  134. >
  135. <el-form-item label="优惠劵名称(油站备注)" prop="couponName">
  136. <input
  137. type="text"
  138. class="form-control"
  139. v-model="createForm.couponName"
  140. style="width: 180px"
  141. />
  142. </el-form-item>
  143. <el-form-item label="优惠劵内容(用户展示)" prop="couponDetails">
  144. <input
  145. type="text"
  146. class="form-control"
  147. v-model="createForm.couponDetails"
  148. style="width: 180px"
  149. />
  150. </el-form-item>
  151. <el-form-item label="优惠劵使用条件" prop="couponThresholdAmt">
  152. <div>
  153. <input
  154. type="text"
  155. class="form-control d-inline"
  156. v-model.number="createForm.couponThresholdAmt"
  157. style="width: 100px"
  158. />
  159. 元 可用
  160. </div>
  161. </el-form-item>
  162. <el-form-item label="优惠券类型" prop="couponType">
  163. <el-radio-group v-model="createForm.couponType">
  164. <el-radio label="1">现金券</el-radio>
  165. <el-radio label="2">折扣劵</el-radio>
  166. <el-radio label="3">兑换劵</el-radio>
  167. </el-radio-group>
  168. </el-form-item>
  169. <el-form-item
  170. label="优惠金额"
  171. prop="couponAmt"
  172. v-if="createForm.couponType == 1 || createForm.couponType == 2"
  173. >
  174. <div v-if="createForm.couponType == 1">
  175. 固定面值—<input
  176. type="text"
  177. class="form-control d-inline"
  178. v-model.number="createForm.couponAmt"
  179. style="width: 100px"
  180. />
  181. </div>
  182. <div v-if="createForm.couponType == 2">
  183. 折扣比例—<input
  184. type="text"
  185. class="form-control d-inline"
  186. v-model.number="createForm.couponAmt"
  187. style="width: 100px"
  188. />
  189. %
  190. </div>
  191. </el-form-item>
  192. <el-form-item
  193. label="优惠券适用油品"
  194. prop="oilNameList"
  195. v-if="createForm.couponType == 1 || createForm.couponType == 2"
  196. >
  197. <el-checkbox-group v-model="createForm.oilNameList">
  198. <el-checkbox
  199. :label="ele.oilName"
  200. v-for="ele in oilNameList"
  201. :key="ele.oilName"
  202. ></el-checkbox>
  203. </el-checkbox-group>
  204. </el-form-item>
  205. <el-form-item label="优惠券有效期" prop="effectiveTimeType">
  206. <div>
  207. <div>
  208. <el-radio-group v-model="createForm.effectiveTimeType">
  209. <el-radio label="1">固定时间段</el-radio>
  210. <el-radio label="2">固定天数</el-radio>
  211. </el-radio-group>
  212. </div>
  213. <div style="margin-top: 10px">
  214. <div v-if="createForm.effectiveTimeType == 1">
  215. <el-date-picker
  216. style="margin: 0px 10px; width: 300px"
  217. v-model="createForm.effectiveTime"
  218. type="datetimerange"
  219. value-format="yyyy-MM-dd HH:mm:ss"
  220. size="mini"
  221. range-separator="至"
  222. start-placeholder="开始日期"
  223. end-placeholder="结束日期"
  224. >
  225. </el-date-picker>
  226. </div>
  227. <div
  228. v-if="createForm.effectiveTimeType == 2"
  229. style="margin-left: 20px"
  230. >
  231. 自用户领取后
  232. <input
  233. type="text"
  234. class="form-control d-inline"
  235. v-model.number="createForm.effectiveDayNum"
  236. style="width: 80px"
  237. />
  238. 天内有效
  239. </div>
  240. </div>
  241. </div>
  242. </el-form-item>
  243. <el-form-item label="生成优惠券的数量" prop="couponNum">
  244. 共生成
  245. <input
  246. type="text"
  247. class="form-control d-inline"
  248. v-model.number="createForm.couponNum"
  249. style="width: 100px"
  250. />
  251. </el-form-item>
  252. <el-form-item label="单人可持有数量" prop="couponHoldNum">
  253. 单个用户最多拥有
  254. <input
  255. type="text"
  256. class="form-control d-inline"
  257. v-model.number="createForm.couponHoldNum"
  258. style="width: 100px"
  259. />
  260. 张优惠券
  261. </el-form-item>
  262. <el-form-item label="累计可拥有数量" prop="couponReceiveNum">
  263. 单个用户累计可以拥有
  264. <input
  265. type="text"
  266. class="form-control d-inline"
  267. v-model.number="createForm.couponReceiveNum"
  268. style="width: 100px"
  269. />
  270. 张优惠券
  271. </el-form-item>
  272. <el-form-item
  273. label="用券时可用电子卡"
  274. prop="isCardFlag"
  275. v-if="createForm.couponType == 1 || createForm.couponType == 2"
  276. >
  277. <el-radio-group v-model="createForm.isCardFlag">
  278. <el-radio label="1">可以使用电子卡</el-radio>
  279. <el-radio label="0">不可用电子卡</el-radio>
  280. </el-radio-group>
  281. </el-form-item>
  282. <el-form-item
  283. label="用券时叠加等级优惠"
  284. prop="isGradeFlag"
  285. v-if="createForm.couponType == 1 || createForm.couponType == 2"
  286. >
  287. <el-radio-group v-model="createForm.isGradeFlag">
  288. <el-radio label="1">叠加等级优惠</el-radio>
  289. <el-radio label="0">不叠加等级优惠</el-radio>
  290. </el-radio-group>
  291. </el-form-item>
  292. <el-form-item
  293. label="用劵时叠加优惠方案"
  294. prop="isMakertFlag"
  295. v-if="createForm.couponType == 1 || createForm.couponType == 2"
  296. >
  297. <el-radio-group v-model="createForm.isMakertFlag">
  298. <el-radio label="1">叠加优惠方案</el-radio>
  299. <el-radio label="0">不叠加优惠方案</el-radio>
  300. </el-radio-group>
  301. </el-form-item>
  302. <el-form-item
  303. label="优惠券的核销方"
  304. prop="couponType"
  305. v-if="createForm.couponType == 3"
  306. >
  307. (自己的站点也是核销商)
  308. </el-form-item>
  309. <div v-if="createForm.couponType == 3">
  310. <el-col :span="11">
  311. <el-table
  312. :data="unselectedCouponList"
  313. border
  314. size="mini"
  315. :resizable="false"
  316. highlight-current-row
  317. height="500"
  318. @selection-change="handleLeftChange"
  319. disabled
  320. ref="leftTable"
  321. >
  322. >
  323. <el-table-column label="可选">
  324. <el-table-column
  325. prop="phone"
  326. label="姓名"
  327. type="selection"
  328. ></el-table-column>
  329. <el-table-column prop="deptName" label="机构"></el-table-column>
  330. <el-table-column label="添加" width="60px" align="center">
  331. <template slot-scope="scope">
  332. <el-button
  333. type="text"
  334. icon="el-icon-circle-plus-outline"
  335. class="underline btn24"
  336. size="mini"
  337. @click="handleMoveLabel('right', 1, scope.row)"
  338. >添加</el-button
  339. >
  340. </template>
  341. </el-table-column>
  342. </el-table-column>
  343. </el-table>
  344. </el-col>
  345. <el-col :span="2" style="text-align: center">
  346. <el-button
  347. type="primary"
  348. size="mini"
  349. @click="toggleLabel"
  350. style="
  351. margin-top: 200px;
  352. text-align: center;
  353. width: 30px;
  354. padding-right: 0;
  355. padding-left: 0;
  356. "
  357. :disabled="toggleable"
  358. >切换</el-button
  359. >
  360. </el-col>
  361. <el-col :span="11">
  362. <el-table
  363. :data="selectedCouponList"
  364. border
  365. size="mini"
  366. highlight-current-row
  367. :resizable="false"
  368. height="500"
  369. @selection-change="handleRightChange"
  370. :loading="true"
  371. ref="rightTable"
  372. >
  373. <el-table-column label="已选" :resizable="false">
  374. <el-table-column
  375. prop="phone"
  376. type="selection"
  377. ></el-table-column>
  378. <el-table-column prop="deptName" label="姓名"></el-table-column>
  379. <el-table-column label="移除" width="60px" align="center">
  380. <template slot-scope="scope">
  381. <el-button
  382. type="text"
  383. icon="el-icon-remove-outline"
  384. class="underline btn24"
  385. size="mini"
  386. @click="handleMoveLabel('left', 1, scope.row)"
  387. >移除</el-button
  388. >
  389. </template>
  390. </el-table-column>
  391. </el-table-column>
  392. </el-table>
  393. </el-col>
  394. </div>
  395. </el-form>
  396. <div slot="footer" class="dialog-footer">
  397. <el-button type="primary" @click="submitForm">确 定</el-button>
  398. <el-button @click="cancel">取 消</el-button>
  399. </div>
  400. </el-dialog>
  401. </div>
  402. </template>
  403. <script>
  404. import {
  405. listManage,
  406. getManage,
  407. delManage,
  408. addManage,
  409. updateManage,
  410. exportManage,
  411. changeManageStatus,
  412. } from "@/api/station/manage";
  413. import { listGun } from "@/api/station/gun";
  414. import { listPrice } from "@/api/station/price";
  415. import { addInfo, verificationList, listInfo, updateInfo, changeCouponStatus } from "@/api/coupon";
  416. import { updateDept } from "@/api/system/dept";
  417. export default {
  418. name: "Station_Equipment",
  419. data() {
  420. let validateGunNo = (rule, value, callback) => {
  421. callback();
  422. };
  423. return {
  424. couponEnabledFlag: "1",
  425. pageStatus: 4,
  426. // 油站设备管理表格数据
  427. createForm: {
  428. couponName: "",
  429. couponDetails: "",
  430. couponThresholdAmt: 0,
  431. couponType: "1",
  432. couponAmt: 0,
  433. oilNameList: [],
  434. effectiveTimeType: "", //有效时间类型: 1,固定时间;2,领取后x天内有效
  435. effectiveTime: [],
  436. effectiveDayNum: 30,
  437. couponHoldNum: 1,
  438. couponReceiveNum: 100,
  439. couponNum: 100,
  440. status: "1",
  441. verificationList: [],
  442. isCardFlag: "1",
  443. isGradeFlag: "1",
  444. isMakertFlag: "1",
  445. },
  446. couponList: [],
  447. oilNameList: [],
  448. allVerificationList: [
  449. ],
  450. equipmentList: [],
  451. // 油枪复选
  452. allGunList: [],
  453. // 已选的油枪
  454. checkedGunList: [],
  455. //设备状态
  456. deviceStatusOptions: [],
  457. //设备类型
  458. deviceTypeOptions: [],
  459. stationOptions: [],
  460. // 弹出层标题
  461. title: "",
  462. // 是否显示弹出层
  463. open: false,
  464. // 总条数
  465. total: 100,
  466. leftQuery: {},
  467. rightQuery: {},
  468. leftData: [],
  469. rightData: [],
  470. moveRightData: [],
  471. moveLeftData: [],
  472. // 查询参数
  473. queryForm: {
  474. pageNum: 1,
  475. pageSize: 10, // 初始值只能比10大
  476. },
  477. // 表单校验
  478. rules: {},
  479. };
  480. },
  481. created() {
  482. this.init();
  483. this.getCoupon();
  484. this.setPageStatus();
  485. },
  486. computed: {
  487. toggleable() {
  488. if (this.moveRightData.length === 0 && this.moveLeftData.length === 0) {
  489. return true;
  490. }
  491. return false;
  492. },
  493. selectedCouponList() {
  494. return this.allVerificationList.filter((ele) => {
  495. return this.createForm.verificationList.includes(ele.deptId);
  496. });
  497. },
  498. unselectedCouponList() {
  499. return this.allVerificationList.filter((ele) => {
  500. return !!!this.createForm.verificationList.includes(ele.deptId);
  501. });
  502. },
  503. getTodayDateString() {
  504. const today = new Date();
  505. return;
  506. },
  507. },
  508. methods: {
  509. handleFlagChange() {
  510. const that = this
  511. let text = this.couponEnabledFlag === "1" ? "启用" : "停用";
  512. this.$confirm('确认要"' + text + '"优惠券功能吗?', "警告", {
  513. confirmButtonText: "确定",
  514. cancelButtonText: "取消",
  515. type: "warning",
  516. })
  517. .then(function () {
  518. return changeCouponStatus({
  519. deptId: that.deptId,
  520. couponEnabledFlag: that.couponEnabledFlag,
  521. });
  522. })
  523. .then(() => {
  524. that.msgSuccess(text + "成功");
  525. })
  526. .catch(function () {
  527. that.couponEnabledFlag = that.couponEnabledFlag === "0" ? "1" : "0";
  528. });
  529. },
  530. handleStatusChange(row) {
  531. let text = row.status === "1" ? "启用" : "停用";
  532. this.$confirm(
  533. '确认要"' + text + '""' + row.couponName + '"该优惠券吗?',
  534. "警告",
  535. {
  536. confirmButtonText: "确定",
  537. cancelButtonText: "取消",
  538. type: "warning",
  539. }
  540. )
  541. .then(function () {
  542. return updateInfo({
  543. id: row.id,
  544. status: row.status,
  545. });
  546. })
  547. .then(() => {
  548. this.msgSuccess(text + "成功");
  549. })
  550. .catch(function () {
  551. row.status = row.status === "0" ? "1" : "0";
  552. });
  553. },
  554. getOilList() {
  555. listPrice()
  556. .then((res) => {
  557. if (res.code == 200) {
  558. this.oilNameList = res.rows || [];
  559. } else {
  560. throw new Error("");
  561. }
  562. })
  563. .catch((err) => {
  564. this.msgError("亲,拉取油品列表失败~");
  565. });
  566. },
  567. getCoupon() {
  568. listInfo({
  569. pageNum: 1,
  570. pageSize: 10,
  571. })
  572. .then((res) => {
  573. if (res.code == 200) {
  574. console.log(res);
  575. if (res.rows == null) {
  576. this.total = 0;
  577. this.couponList = [];
  578. } else {
  579. this.total = res.total;
  580. this.couponList = res.rows;
  581. }
  582. } else {
  583. throw new Error("");
  584. }
  585. })
  586. .catch((err) => {
  587. this.msgError("亲,拉取优惠券列表失败~");
  588. });
  589. },
  590. getVerificationList() {
  591. verificationList({
  592. pageNum: 1,
  593. pageSize: 1000,
  594. })
  595. .then((res) => {
  596. if (res.code == 200) {
  597. if (res.rows == null) {
  598. this.allVerificationList = [];
  599. } else {
  600. this.allVerificationList = res.rows;
  601. }
  602. } else {
  603. throw new Error("");
  604. }
  605. })
  606. .catch((err) => {
  607. this.msgError("亲,拉取核销机构失败~");
  608. });
  609. },
  610. toggleLabel() {
  611. if (this.moveLeftData.length !== 0) {
  612. this.createForm.verificationList =
  613. this.createForm.verificationList.filter((ele) => {
  614. return ele != this.moveLeftData;
  615. });
  616. this.createForm = { ...this.createForm };
  617. return;
  618. }
  619. if (this.moveRightData.length !== 0) {
  620. this.createForm.verificationList = [
  621. ...new Set(
  622. this.createForm.verificationList.concat(this.moveRightData)
  623. ),
  624. ].filter((ele) => {
  625. return !!ele;
  626. });
  627. this.createForm = { ...this.createForm };
  628. return;
  629. }
  630. return;
  631. },
  632. handleLeftChange(val) {
  633. let changeArr = [];
  634. val.map((ele) => {
  635. changeArr.push(ele.deptId);
  636. });
  637. console.log(changeArr);
  638. this.moveLeftData = [];
  639. this.moveRightData = changeArr;
  640. // console.log(this.moveRightData);
  641. this.$refs.rightTable.clearSelection();
  642. },
  643. handleRightChange(val) {
  644. let changeArr = [];
  645. val.map((ele) => {
  646. changeArr.push(ele.deptId);
  647. });
  648. this.moveLeftData = changeArr;
  649. this.moveRightData = [];
  650. this.$refs.leftTable.clearSelection();
  651. },
  652. init() {
  653. this.getOilList();
  654. this.getCoupon();
  655. this.getVerificationList();
  656. },
  657. setPageStatus() {
  658. this.queryPageStatus([2]).then((res) => {
  659. this.pageStatus = res;
  660. });
  661. },
  662. // 取消按钮
  663. cancel() {
  664. this.open = false;
  665. },
  666. /** 搜索按钮操作 */
  667. handleQuery() {
  668. this.createForm.pageNum = 1;
  669. this.getList();
  670. },
  671. deviceNoInput(value) {
  672. this.dialogForm.posQueue = value;
  673. },
  674. /** 重置按钮操作 */
  675. resetQuery() {
  676. this.resetForm("createForm");
  677. this.handleQuery();
  678. },
  679. /** 新增按钮操作 */
  680. handleAdd() {
  681. this.title = "添加优惠券";
  682. this.createForm = {
  683. couponName: "",
  684. couponDetails: "",
  685. couponThresholdAmt: 0,
  686. couponType: "1",
  687. couponAmt: 0,
  688. oilNameList: [],
  689. effectiveTimeType: "",
  690. effectiveTime: [],
  691. effectiveDayNum: 30,
  692. couponHoldNum: 1,
  693. couponReceiveNum: 100,
  694. couponNum: 100,
  695. status: "1",
  696. verificationList: [],
  697. isCardFlag: "1",
  698. isGradeFlag: "1",
  699. isMakertFlag: "1",
  700. }
  701. this.open = true;
  702. },
  703. /** 修改按钮操作 */
  704. handleUpdate(row) {
  705. // // 查找自己已经选中的枪号
  706. this.createForm = JSON.parse(JSON.stringify(row));
  707. this.title = "修改油站设备管理";
  708. this.open = true;
  709. },
  710. /** 提交按钮 */
  711. submitForm() {
  712. this.$refs["dialogForm"].validate((valid) => {
  713. if (valid) {
  714. if(!!this.createForm.id){
  715. updateInfo(this.createForm).then((res) => {
  716. if(res.code == 200){
  717. this.msgSuccess("亲,修改成功了~")
  718. this.getCoupon()
  719. this.open = false
  720. }else{
  721. throw new Error("");
  722. }
  723. }).catch((err) => {
  724. this.msgError("修改失败了呀~")
  725. });
  726. }else{
  727. addInfo(this.createForm).then((res) => {
  728. if(res.code == 200){
  729. this.msgSuccess("亲,新增成功了~")
  730. this.getCoupon()
  731. this.open = false
  732. }else{
  733. throw new Error("");
  734. }
  735. }).catch((err)=>{
  736. this.msgError("创建优惠劵失败了~")
  737. });
  738. }
  739. }
  740. });
  741. },
  742. /** 删除按钮操作 */
  743. handleDelete(row) {
  744. const deviceIds = row.deviceId;
  745. this.$confirm("是否确认删除油站设备管理", "警告", {
  746. confirmButtonText: "确定",
  747. cancelButtonText: "取消",
  748. type: "warning",
  749. })
  750. .then(function () {
  751. return delManage(deviceIds);
  752. })
  753. .then(() => {
  754. this.getList();
  755. this.msgSuccess("删除成功");
  756. });
  757. },
  758. },
  759. };
  760. </script>
  761. <style lang="scss">
  762. .el-transfer__buttons {
  763. }
  764. </style>