policy_list.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. <template>
  2. <div class="app-container">
  3. <div
  4. v-show="!isShowDetail && !isShowForm && !isShowExamine && !isShowReturn"
  5. >
  6. <!-- 筛选条件 -->
  7. <div class="screen-container">
  8. <el-form
  9. ref="screenForm"
  10. :model="screenForm"
  11. label-width="100px"
  12. size="small"
  13. label-position="left"
  14. >
  15. <el-row :gutter="20">
  16. <el-col :xs="24" :sm="24" :lg="24">
  17. <el-form-item prop="status" label-width="0">
  18. <el-radio-group
  19. v-model="screenForm.status"
  20. size="medium"
  21. @change="getList()"
  22. >
  23. <el-radio-button label="">全部</el-radio-button>
  24. <el-radio-button
  25. v-for="(item, index) in statusList"
  26. :key="index"
  27. :label="item.value"
  28. >{{ item.label }}</el-radio-button>
  29. </el-radio-group>
  30. </el-form-item>
  31. </el-col>
  32. <el-col :xs="24" :sm="12" :lg="6">
  33. <el-form-item label="订单号" prop="orderNum">
  34. <el-input
  35. v-model="screenForm.orderNum"
  36. placeholder="请输入订单号"
  37. />
  38. </el-form-item>
  39. </el-col>
  40. <el-col :xs="24" :sm="12" :lg="6">
  41. <el-form-item label="销售政策编号" prop="policyCode">
  42. <el-input
  43. v-model="screenForm.policyCode"
  44. placeholder="请输入销售政策编号"
  45. />
  46. </el-form-item>
  47. </el-col>
  48. <el-col :xs="24" :sm="12" :lg="6">
  49. <el-form-item label="销售政策说明" prop="policyRemark">
  50. <el-input
  51. v-model="screenForm.policyRemark"
  52. placeholder="请输入销售政策说明"
  53. />
  54. </el-form-item>
  55. </el-col>
  56. <el-col :xs="24" :sm="12" :lg="6">
  57. <el-form-item label="经销商" prop="jxsName">
  58. <el-input
  59. v-model="screenForm.jxsName"
  60. placeholder="请输入经销商"
  61. />
  62. </el-form-item>
  63. </el-col>
  64. <el-col :xs="24" :sm="12" :lg="6">
  65. <el-form-item label="订单日期" prop="date">
  66. <!-- <el-date-picker
  67. v-model="screenForm.date"
  68. class="dateStyle"
  69. type="datetime"
  70. value-format="yyyy-MM-dd HH:mm:ss"
  71. placeholder="选择订单日期"
  72. >
  73. </el-date-picker> -->
  74. <el-date-picker
  75. v-model="screenForm.date"
  76. type="datetimerange"
  77. range-separator="至"
  78. style="width: 100%"
  79. value-format="yyyy-MM-dd HH:mm:ss"
  80. start-placeholder="开始日期"
  81. end-placeholder="结束日期"
  82. />
  83. </el-form-item>
  84. </el-col>
  85. <el-col :xs="24" :sm="12" :lg="6">
  86. <el-form-item label="制表人" prop="zbMan">
  87. <el-input
  88. v-model="screenForm.zbMan"
  89. placeholder="请输入制表人"
  90. />
  91. </el-form-item>
  92. </el-col>
  93. <el-col :xs="24" :sm="12" :lg="6">
  94. <el-form-item label="审核人" prop="shMan">
  95. <el-input
  96. v-model="screenForm.shMan"
  97. placeholder="请输入审核人"
  98. />
  99. </el-form-item>
  100. </el-col>
  101. <el-col :xs="24" :sm="12" :lg="6">
  102. <el-form-item label="业务员" prop="salesMan">
  103. <el-select v-model="screenForm.salesMan" placeholder="选择业务员" size="small" clearable filterable style="width: 100%">
  104. <el-option
  105. v-for="item in salesmanList"
  106. :key="item.adminUserId"
  107. :label="item.nickName"
  108. :value="item.adminUserId">
  109. </el-option>
  110. </el-select>
  111. </el-form-item>
  112. </el-col>
  113. <el-col :xs="24" :sm="24" :lg="24" class="tr">
  114. <el-form-item label="">
  115. <el-button
  116. size="small"
  117. @click="resetScreenForm"
  118. >清空</el-button>
  119. <el-button
  120. size="small"
  121. type="primary"
  122. @click="submitScreenForm"
  123. >搜索</el-button>
  124. </el-form-item>
  125. </el-col>
  126. </el-row>
  127. </el-form>
  128. </div>
  129. <div class="mymain-container">
  130. <div class="btn-group clearfix">
  131. <div class="fl">
  132. <el-button
  133. v-if="$checkBtnRole('add', $route.meta.roles)"
  134. size="small"
  135. type="primary"
  136. icon="el-icon-plus"
  137. @click="toForm()"
  138. >新增</el-button>
  139. </div>
  140. <div class="fr">
  141. <ExportButton :ex-url="'retail/export'" :ex-params="exParams" />
  142. </div>
  143. </div>
  144. <div class="table">
  145. <el-table
  146. v-loading="listLoading"
  147. :data="dataList"
  148. element-loading-text="Loading"
  149. border
  150. fit
  151. highlight-current-row
  152. stripe
  153. show-summary
  154. :summary-method="$getSummaries"
  155. >
  156. <!-- <el-table-column
  157. align="center"
  158. label="提货进度"
  159. prop="thjd"
  160. min-width="180"
  161. show-overflow-tooltip
  162. >
  163. <template slot-scope="scope">
  164. <el-progress :percentage="scope.row.thjd || 0"></el-progress>
  165. </template>
  166. </el-table-column> -->
  167. <el-table-column
  168. align="left"
  169. label="订单号"
  170. prop="id"
  171. min-width="180"
  172. show-overflow-tooltip
  173. />
  174. <el-table-column
  175. align="left"
  176. label="订单日期"
  177. prop="theTime"
  178. min-width="150"
  179. show-overflow-tooltip
  180. >
  181. <template slot-scope="scope">
  182. <div>
  183. <span>{{ scope.row.theTime | dateToDayFilter }}</span>
  184. <el-button
  185. v-if="$checkBtnRole('date', $route.meta.roles)"
  186. type="text"
  187. icon="el-icon-edit"
  188. style="padding: 0; margin-left: 6px"
  189. @click="editDate(scope.row)"
  190. />
  191. </div>
  192. </template>
  193. </el-table-column>
  194. <el-table-column
  195. align="left"
  196. label="销售政策编号"
  197. prop="policyCode"
  198. min-width="200"
  199. show-overflow-tooltip
  200. />
  201. <el-table-column
  202. align="left"
  203. label="销售政策说明"
  204. prop="policyTitle"
  205. min-width="160"
  206. show-overflow-tooltip
  207. />
  208. <el-table-column
  209. align="left"
  210. label="经销商"
  211. prop="customerName"
  212. min-width="200"
  213. show-overflow-tooltip
  214. >
  215. <template slot-scope="scope">
  216. <CopyButton :copyText="scope.row.customerName" />
  217. <span>{{scope.row.customerName}}</span>
  218. </template>
  219. </el-table-column>
  220. <el-table-column
  221. align="left"
  222. label="物料编码"
  223. prop="materialCode"
  224. min-width="160"
  225. show-overflow-tooltip
  226. >
  227. <template slot-scope="scope">
  228. <CopyButton :copyText="scope.row.materialCode" />
  229. <span>{{scope.row.materialCode}}</span>
  230. </template>
  231. </el-table-column>
  232. <el-table-column
  233. align="left"
  234. label="产品名称"
  235. prop="materialName"
  236. min-width="160"
  237. show-overflow-tooltip
  238. >
  239. <template slot-scope="scope">
  240. <CopyButton :copyText="scope.row.materialName" />
  241. <span>{{scope.row.materialName}}</span>
  242. </template>
  243. </el-table-column>
  244. <el-table-column
  245. align="left"
  246. label="规格型号"
  247. prop="specification"
  248. min-width="300"
  249. show-overflow-tooltip
  250. >
  251. <template slot-scope="scope">
  252. <CopyButton :copyText="scope.row.specification" />
  253. <span>{{scope.row.specification}}</span>
  254. </template>
  255. </el-table-column>
  256. <el-table-column
  257. align="left"
  258. label="计量单位"
  259. prop="unit"
  260. min-width="100"
  261. show-overflow-tooltip
  262. />
  263. <el-table-column
  264. align="left"
  265. label="是否直调"
  266. prop="isDirectTransfer"
  267. min-width="100"
  268. show-overflow-tooltip
  269. >
  270. <template slot-scope="scope">
  271. {{ scope.row.isDirectTransfer ? "是" : "否" }}
  272. </template>
  273. </el-table-column>
  274. <el-table-column
  275. align="right"
  276. label="总数量"
  277. prop="qty"
  278. min-width="100"
  279. show-overflow-tooltip
  280. />
  281. <el-table-column
  282. align="right"
  283. label="单价"
  284. prop="price"
  285. min-width="100"
  286. show-overflow-tooltip
  287. >
  288. <template slot-scope="scope">
  289. {{ scope.row.price | numToFixed }}
  290. </template>
  291. </el-table-column>
  292. <el-table-column
  293. align="right"
  294. label="实付金额"
  295. sortable
  296. prop="payAmount"
  297. min-width="100"
  298. show-overflow-tooltip
  299. >
  300. <template slot-scope="scope">
  301. {{ scope.row.payAmount | numToFixed }}
  302. </template>
  303. </el-table-column>
  304. <el-table-column
  305. align="left"
  306. label="返利类型"
  307. prop="customerWalletName2"
  308. min-width="100"
  309. show-overflow-tooltip
  310. >
  311. <template slot-scope="scope">
  312. <el-tag
  313. v-if="scope.row.customerWalletName2"
  314. type="success"
  315. size="small"
  316. >
  317. {{ scope.row.customerWalletName2 }}
  318. </el-tag>
  319. </template>
  320. </el-table-column>
  321. <el-table-column
  322. align="right"
  323. label="返利金额"
  324. sortable
  325. prop="rebateAmount"
  326. min-width="100"
  327. show-overflow-tooltip
  328. >
  329. <template slot-scope="scope">
  330. <div>{{ scope.row.rebateAmount | numToFixed }}</div>
  331. </template>
  332. </el-table-column>
  333. <el-table-column
  334. align="right"
  335. label="格力折扣"
  336. sortable
  337. prop="totalDiscAmount"
  338. min-width="100"
  339. show-overflow-tooltip
  340. >
  341. <template slot-scope="scope">
  342. {{ scope.row.totalDiscAmount | numToFixed }}
  343. </template></el-table-column>
  344. <el-table-column
  345. align="right"
  346. label="直调数量"
  347. prop="directTransferQty"
  348. min-width="100"
  349. show-overflow-tooltip
  350. />
  351. <el-table-column
  352. align="right"
  353. label="出库数量"
  354. prop="hasSendQty"
  355. min-width="100"
  356. show-overflow-tooltip
  357. />
  358. <el-table-column
  359. align="left"
  360. label="业务员"
  361. prop="k3ServiceName"
  362. min-width="100"
  363. show-overflow-tooltip
  364. />
  365. <el-table-column
  366. align="left"
  367. label="制表人"
  368. prop="createName"
  369. min-width="100"
  370. show-overflow-tooltip
  371. />
  372. <el-table-column
  373. align="left"
  374. label="制表日期"
  375. prop="createTime"
  376. min-width="200"
  377. show-overflow-tooltip
  378. />
  379. <el-table-column
  380. align="left"
  381. label="审核人"
  382. prop="examineName"
  383. min-width="200"
  384. show-overflow-tooltip
  385. />
  386. <el-table-column
  387. align="left"
  388. label="审核日期"
  389. prop="examineTime"
  390. min-width="160"
  391. show-overflow-tooltip
  392. />
  393. <el-table-column
  394. align="left"
  395. label="审核状态"
  396. prop="examineStatus"
  397. min-width="100"
  398. show-overflow-tooltip
  399. >
  400. <template slot-scope="scope">
  401. {{ scope.row.examineStatus | statusFilter }}
  402. </template>
  403. </el-table-column>
  404. <el-table-column
  405. align="center"
  406. label="操作"
  407. width="220"
  408. fixed="right"
  409. >
  410. <template slot-scope="scope">
  411. <el-popconfirm
  412. v-if="scope.row.examineStatus === 'SAVE'"
  413. style="margin-right: 10px"
  414. title="确定提审?"
  415. @onConfirm="handleSubmit(scope.row.id)"
  416. >
  417. <el-button slot="reference" type="text">提审</el-button>
  418. </el-popconfirm>
  419. <el-button
  420. v-if="
  421. scope.row.examineStatus == 'WAIT' &&
  422. $checkBtnRole('examine', $route.meta.roles)
  423. "
  424. type="text"
  425. @click="toExamine(scope.row)"
  426. >审核</el-button>
  427. <el-popconfirm v-if="$checkBtnRole('delete', $route.meta.roles) && scope.row.examineStatus === 'SAVE'" style="margin-left: 10px;" title="确定删除吗?" @onConfirm="handleDelete(scope.row.id)">
  428. <el-button slot="reference" type="text">删除</el-button>
  429. </el-popconfirm>
  430. <el-button
  431. v-if="
  432. scope.row.examineStatus === 'SAVE' &&
  433. $checkBtnRole('edit', $route.meta.roles)
  434. "
  435. type="text"
  436. @click="toForm(scope.row)"
  437. >编辑</el-button>
  438. <el-popconfirm v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" style="margin-left: 10px;" title="确定弃审吗?" @onConfirm="handleAbandon(scope.row.id)">
  439. <el-button slot="reference" type="text">弃审</el-button>
  440. </el-popconfirm>
  441. <el-popconfirm
  442. v-if="
  443. scope.row.examineStatus == 'WAIT' &&
  444. $checkBtnRole('apply', $route.meta.roles)
  445. "
  446. style="margin-left: 10px"
  447. title="确定撤回?"
  448. @onConfirm="handleCancel(scope.row.id)"
  449. >
  450. <el-button slot="reference" type="text">撤回</el-button>
  451. </el-popconfirm>
  452. <el-button
  453. style="margin-left: 10px"
  454. type="text"
  455. @click="toDetail(scope.row)"
  456. >详情</el-button>
  457. <el-button
  458. v-if="
  459. scope.row.examineStatus === 'OK' &&
  460. $checkBtnRole('examine', $route.meta.roles)
  461. "
  462. type="text"
  463. @click="toReturn(scope.row)"
  464. >退订</el-button>
  465. <el-popconfirm
  466. v-if="
  467. scope.row.examineStatus === 'SAVE' &&
  468. $checkBtnRole('examine', $route.meta.roles)
  469. "
  470. style="margin-left: 10px"
  471. title="确定关闭吗?"
  472. @onConfirm="handleClose(scope.row.id)"
  473. >
  474. <el-button slot="reference" type="text">关闭</el-button>
  475. </el-popconfirm>
  476. </template>
  477. </el-table-column>
  478. </el-table>
  479. </div>
  480. </div>
  481. <div class="pagination clearfix">
  482. <div class="fr">
  483. <el-pagination
  484. :current-page="currentPage"
  485. :page-sizes="[10, 20, 30, 50,500]"
  486. :page-size="10"
  487. layout="total, sizes, prev, pager, next, jumper"
  488. :total="listTotal"
  489. @size-change="handleSizeChange"
  490. @current-change="handleCurrentChange"
  491. />
  492. </div>
  493. </div>
  494. </div>
  495. <RetailDetail
  496. v-if="isShowDetail"
  497. :list-item="queryItem"
  498. @backListFormDetail="backList"
  499. />
  500. <RetailForm
  501. v-if="isShowForm"
  502. :list-item="queryItem"
  503. @backListFormDetail="backList"
  504. />
  505. <RetailExamine
  506. v-if="isShowExamine"
  507. :list-item="queryItem"
  508. @backListFormDetail="backList"
  509. />
  510. <RetailReturn
  511. v-if="isShowReturn"
  512. :list-item="queryItem"
  513. @backListFormDetail="backList"
  514. />
  515. <EditDateDialog
  516. :is-show.sync="isShowEditDateDialog"
  517. :date-form.sync="dateForm"
  518. />
  519. </div>
  520. </template>
  521. <script>
  522. import { abandonData, closeData, deleteList, editData, getList, submitCancel, submitData } from '@/api/supply/policy'
  523. import RetailDetail from './components/retail_detail'
  524. import RetailForm from './components/retail_form'
  525. import RetailExamine from './components/retail_examine'
  526. import RetailReturn from './components/retail_return'
  527. import EditDateDialog from '@/components/Common/edit-date-dialog'
  528. import { getSalesmanList } from '@/api/common'
  529. let that
  530. export default {
  531. components: {
  532. RetailDetail,
  533. RetailForm,
  534. RetailExamine,
  535. RetailReturn,
  536. EditDateDialog
  537. },
  538. filters: {
  539. statusFilter(val) {
  540. const obj = that.statusList.find((o) => o.value == val)
  541. return obj ? obj.label : ''
  542. }
  543. },
  544. data() {
  545. return {
  546. currentPage: 1, // 当前页码
  547. pageSize: 10, // 每页数量
  548. listTotal: 0, // 列表总数
  549. dataList: null, // 列表数据
  550. listLoading: false, // 列表加载loading
  551. screenForm: {
  552. // 筛选表单数据
  553. orderNum: '',
  554. policyCode: '',
  555. policyRemark: '',
  556. jxsName: '',
  557. date: '',
  558. zbMan: '',
  559. shMan: '',
  560. status: '',
  561. salesMan:''
  562. },
  563. statusList: [
  564. { label: '已保存', value: 'SAVE' },
  565. { label: '待审核', value: 'WAIT' },
  566. { label: '审核通过', value: 'OK' },
  567. { label: '审核驳回', value: 'FAIL' }
  568. ],
  569. queryItem: {},
  570. isShowDetail: false,
  571. isShowForm: false,
  572. isShowExamine: false,
  573. isShowReturn: false,
  574. isShowEditDateDialog: false,
  575. dateForm: {
  576. date: ''
  577. },
  578. salesmanList:[]
  579. }
  580. },
  581. computed: {
  582. exParams() {
  583. return {
  584. examineStatus: this.screenForm.status,
  585. id: this.screenForm.orderNum,
  586. policyCode: this.screenForm.policyCode,
  587. policyRemark: this.screenForm.policyRemark,
  588. customer: this.screenForm.jxsName,
  589. startTime: this.screenForm.date ? this.screenForm.date[0] : '',
  590. endTime: this.screenForm.date ? this.screenForm.date[1] : '',
  591. createBy: this.screenForm.zbMan,
  592. examineBy: this.screenForm.shMan,
  593. type: 2 // 1:普通零售单,2:政策零售单
  594. }
  595. }
  596. },
  597. beforeCreate() {
  598. that = this
  599. },
  600. created() {
  601. this.getList()
  602. this.getSalesmanList();
  603. },
  604. methods: {
  605. // 获取业务员列表
  606. getSalesmanList() {
  607. getSalesmanList({
  608. pageNum: 1,
  609. pageSize: -1,
  610. isCustomer: 0,
  611. status: true,
  612. }).then(res => {
  613. this.salesmanList = res.data.records;
  614. })
  615. },
  616. // 查询按钮权限
  617. checkBtnRole(value) {
  618. // let btnRole = this.$route.meta.roles;
  619. // if(!btnRole) {return true}
  620. // let index = btnRole.indexOf(value);
  621. // return index >= 0;
  622. return true
  623. },
  624. handleDelete(id) {
  625. deleteList({ id }).then(res => {
  626. this.$successMsg('删除成功')
  627. })
  628. },
  629. // 查询列表
  630. getList() {
  631. this.listLoading = true
  632. const params = {
  633. pageNum: this.currentPage,
  634. pageSize: this.pageSize,
  635. examineStatus: this.screenForm.status,
  636. id: this.screenForm.orderNum,
  637. policyCode: this.screenForm.policyCode,
  638. policyRemark: this.screenForm.policyRemark,
  639. customer: this.screenForm.jxsName,
  640. startTime: this.screenForm.date ? this.screenForm.date[0] : '',
  641. endTime: this.screenForm.date ? this.screenForm.date[1] : '',
  642. createBy: this.screenForm.zbMan,
  643. status: true,
  644. examineBy: this.screenForm.shMan,
  645. serviceId:this.screenForm.salesMan,
  646. type: 2 // 1:普通零售单,2:政策零售单
  647. }
  648. getList(params).then((res) => {
  649. res.data.records.forEach(item => {
  650. item.sums1 = ['qty', 'directTransferQty', 'hasSendQty', 'refundableQty','payRebateAmount'];
  651. item.sums2 = ['price', 'payAmount', 'rebateAmount', 'payRebateAmount', 'totalDiscAmount'];
  652. })
  653. this.dataList = res.data.records
  654. this.listTotal = res.data.total
  655. this.listLoading = false
  656. })
  657. },
  658. // 提交筛选表单
  659. submitScreenForm() {
  660. this.currentPage = 1
  661. this.getList()
  662. },
  663. // 重置筛选表单
  664. resetScreenForm() {
  665. this.$refs.screenForm.resetFields()
  666. this.currentPage = 1
  667. this.getList()
  668. },
  669. // 更改每页数量
  670. handleSizeChange(val) {
  671. this.pageSize = val
  672. this.currentPage = 1
  673. this.getList()
  674. },
  675. // 更改当前页
  676. handleCurrentChange(val) {
  677. this.currentPage = val
  678. this.getList()
  679. },
  680. // 进入表单
  681. toForm(item) {
  682. this.queryItem = item
  683. this.isShowForm = true
  684. },
  685. // 进入详情
  686. toDetail(item) {
  687. this.queryItem = item
  688. this.isShowDetail = true
  689. },
  690. // 进入审批
  691. toExamine(item) {
  692. this.queryItem = item
  693. this.isShowExamine = true
  694. },
  695. // 进入退订
  696. toReturn(item) {
  697. this.queryItem = item
  698. this.isShowReturn = true
  699. },
  700. // 弃审
  701. handleAbandon(id) {
  702. abandonData({ id }).then(res => {
  703. this.$successMsg()
  704. this.getList()
  705. })
  706. },
  707. backList() {
  708. this.queryItem = {}
  709. this.isShowDetail = false
  710. this.isShowForm = false
  711. this.isShowExamine = false
  712. this.isShowReturn = false
  713. },
  714. // 关闭
  715. handleClose(id) {
  716. closeData({ id }).then((res) => {
  717. this.$successMsg()
  718. this.getList()
  719. })
  720. },
  721. // 提审
  722. handleSubmit(id) {
  723. submitData({ id }).then((res) => {
  724. this.$successMsg()
  725. this.getList()
  726. })
  727. },
  728. // 撤回
  729. handleCancel(id) {
  730. submitCancel({ id }).then((res) => {
  731. this.$successMsg()
  732. this.getList()
  733. })
  734. },
  735. // 打开 修改订单日期
  736. editDate(item) {
  737. this.editId = item.id
  738. this.dateForm.date = item.theTime.slice(0, 10)
  739. this.isShowEditDateDialog = true
  740. },
  741. // 提交 修改订单日期
  742. submitDateForm() {
  743. editData({
  744. id: this.editId,
  745. theTime: this.dateForm.date + ' 00:00:00'
  746. }).then((res) => {
  747. this.isShowEditDateDialog = false
  748. this.getList()
  749. this.$successMsg('修改成功')
  750. })
  751. }
  752. }
  753. }
  754. </script>
  755. <style lang="scss" scoped></style>