retail_list.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. <template>
  2. <div class="app-container">
  3. <div v-show="!isShowDetail && !isShowForm && !isShowExamine && !isShowReturn">
  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="goodsName">
  23. <el-input v-model="screenForm.goodsName" 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="model">
  28. <el-input v-model="screenForm.model" 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="isDirectTransfer">
  51. <el-select v-model="screenForm.isDirectTransfer" placeholder="请选择是否直调">
  52. <el-option label="是" :value="true"></el-option>
  53. <el-option label="否" :value="false"></el-option>
  54. </el-select>
  55. </el-form-item>
  56. </el-col>
  57. <el-col :xs="24" :sm="12" :lg="6">
  58. <el-form-item label="制表人" prop="zbMan">
  59. <el-input v-model="screenForm.zbMan" placeholder="请输入制表人"></el-input>
  60. </el-form-item>
  61. </el-col>
  62. <el-col :xs="24" :sm="12" :lg="6">
  63. <el-form-item label="审核人" prop="shMan">
  64. <el-input v-model="screenForm.shMan" placeholder="请输入审核人"></el-input>
  65. </el-form-item>
  66. </el-col>
  67. <!-- <el-col :xs="24" :sm="12" :lg="6">
  68. <el-form-item label="业务员" prop="salesMan">
  69. <el-select v-model="screenForm.salesMan" placeholder="选择业务员" clearable filterable style="width: 100%">
  70. <el-option
  71. v-for="item in salesmanList"
  72. :key="item.adminUserId"
  73. :label="item.nickName"
  74. :value="item.adminUserId">
  75. </el-option>
  76. </el-select>
  77. </el-form-item>
  78. </el-col> -->
  79. <el-col :xs="24" :sm="12" :lg="6">
  80. <el-form-item label="表头业务员" prop="k3ServiceId">
  81. <el-select v-model="screenForm.k3ServiceId" placeholder="选择表头业务员" size="small" clearable filterable style="width: 100%">
  82. <el-option
  83. v-for="item in salesmanList"
  84. :key="item.adminUserId"
  85. :label="item.nickName"
  86. :value="item.adminUserId">
  87. </el-option>
  88. </el-select>
  89. </el-form-item>
  90. </el-col>
  91. <el-col :xs="24" :sm="12" :lg="6">
  92. <el-form-item label="表体业务员" prop="serviceId">
  93. <el-select v-model="screenForm.serviceId" placeholder="选择表体业务员" size="small" clearable filterable style="width: 100%">
  94. <el-option
  95. v-for="item in salesmanList"
  96. :key="item.adminUserId"
  97. :label="item.nickName"
  98. :value="item.adminUserId">
  99. </el-option>
  100. </el-select>
  101. </el-form-item>
  102. </el-col>
  103. <el-col :xs="24" :sm="24" :lg="12" class="tr">
  104. <el-form-item label="">
  105. <el-button @click="resetScreenForm">清空</el-button>
  106. <el-button type="primary" @click="submitScreenForm">搜索</el-button>
  107. </el-form-item>
  108. </el-col>
  109. </el-row>
  110. </el-form>
  111. </div>
  112. <div class="mymain-container">
  113. <div class="btn-group clearfix">
  114. <div class="fl">
  115. <el-button size="mini" type="primary" icon="el-icon-plus" @click="toForm()" v-if="$checkBtnRole('add', $route.meta.roles)">新增</el-button>
  116. </div>
  117. <div class="fr">
  118. <ExportButton :exUrl="'retail/export'" :exParams="exParams" />
  119. </div>
  120. </div>
  121. <div class="table">
  122. <el-table
  123. v-loading="listLoading"
  124. :data="dataList"
  125. element-loading-text="Loading"
  126. border
  127. fit
  128. highlight-current-row
  129. stripe
  130. show-summary
  131. :summary-method="$getSummaries">
  132. <!-- <el-table-column align="left" label="提货进度" min-width="120" show-overflow-tooltip>
  133. <template slot-scope="scope">
  134. <el-progress :text-inside="true" :stroke-width="26" :percentage="((scope.row.hasSendQty * 100) / (scope.row.totalQty * 100)) || 0"></el-progress>
  135. </template>
  136. </el-table-column> -->
  137. <el-table-column align="left" label="审核状态" prop="examineStatus" min-width="100" show-overflow-tooltip>
  138. <template slot-scope="scope">
  139. {{scope.row.examineStatus | statusFilter}}
  140. </template>
  141. </el-table-column>
  142. <el-table-column align="left" label="开票状态" prop="isInvoicing" min-width="100" show-overflow-tooltip>
  143. <template slot-scope="scope">
  144. {{scope.row.isInvoicing ? '已开票':'未开票'}}
  145. </template>
  146. </el-table-column>
  147. <el-table-column align="left" label="订单号" prop="id" min-width="140" show-overflow-tooltip>
  148. <template slot-scope="scope">
  149. <CopyButton :copyText="scope.row.id" />
  150. <span>{{scope.row.id}}</span>
  151. </template>
  152. </el-table-column>
  153. <el-table-column align="left" label="订单日期" prop="theTime" min-width="120" show-overflow-tooltip>
  154. <template slot-scope="scope">
  155. <div>
  156. <span>{{scope.row.theTime | dateToDayFilter}}</span>
  157. <el-button type="text" icon="el-icon-edit" style="padding: 0; margin-left: 4px" v-if="$checkBtnRole('date', $route.meta.roles)" @click="editDate(scope.row)" ></el-button>
  158. </div>
  159. </template>
  160. </el-table-column>
  161. <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
  162. <el-table-column align="left" label="物料编码" prop="materialCode" min-width="120" show-overflow-tooltip>
  163. <template slot-scope="scope">
  164. <CopyButton :copyText="scope.row.materialCode" />
  165. <span>{{scope.row.materialCode}}</span>
  166. </template>
  167. </el-table-column>
  168. <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="140" show-overflow-tooltip>
  169. <template slot-scope="scope">
  170. <CopyButton :copyText="scope.row.materialOldNumber" />
  171. <span>{{scope.row.materialOldNumber}}</span>
  172. </template>
  173. </el-table-column>
  174. <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip>
  175. <template slot-scope="scope">
  176. <CopyButton :copyText="scope.row.materialName" />
  177. <span>{{scope.row.materialName}}</span>
  178. </template>
  179. </el-table-column>
  180. <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip>
  181. <template slot-scope="scope">
  182. <CopyButton :copyText="scope.row.specification" />
  183. <span>{{scope.row.specification}}</span>
  184. </template>
  185. </el-table-column>
  186. <el-table-column align="left" label="计量单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
  187. <el-table-column align="left" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
  188. <template slot-scope="scope">
  189. {{scope.row.isDirectTransfer ? '是':'否'}}
  190. </template>
  191. </el-table-column>
  192. <el-table-column align="right" label="总数量" prop="qty" min-width="100" sortable show-overflow-tooltip></el-table-column>
  193. <el-table-column align="right" label="直调数量" prop="directTransferQty" min-width="110" sortable show-overflow-tooltip></el-table-column>
  194. <el-table-column align="right" label="出库数量" prop="hasSendQty" min-width="110" sortable show-overflow-tooltip></el-table-column>
  195. <el-table-column align="right" label="可退数量" prop="refundableQty" min-width="110" sortable show-overflow-tooltip></el-table-column>
  196. <el-table-column align="right" label="单价" prop="price" min-width="100" sortable show-overflow-tooltip>
  197. <template slot-scope="scope">
  198. {{ scope.row.price | numToFixed }}
  199. </template>
  200. </el-table-column>
  201. <el-table-column align="right" label="订单金额" prop="totalAmount" min-width="110" sortable show-overflow-tooltip>
  202. <template slot-scope="scope">
  203. {{ scope.row.totalAmount | numToFixed }}
  204. </template>
  205. </el-table-column>
  206. <el-table-column align="right" label="实付金额" prop="payAmount" min-width="110" sortable show-overflow-tooltip>
  207. <template slot-scope="scope">
  208. {{ scope.row.payAmount | numToFixed }}
  209. </template>
  210. </el-table-column>
  211. <el-table-column align="left" label="返利类型" prop="customerWalletName2" min-width="100" show-overflow-tooltip></el-table-column>
  212. <el-table-column align="right" label="返利金额" prop="rebateAmount" min-width="110" sortable show-overflow-tooltip>
  213. <template slot-scope="scope">
  214. <div>{{scope.row.rebateAmount | numToFixed}}</div>
  215. </template>
  216. </el-table-column>
  217. <el-table-column align="right" label="实际返利金额" prop="payRebateAmount" min-width="130" sortable show-overflow-tooltip>
  218. <template slot-scope="scope">
  219. <div>{{scope.row.payRebateAmount | numToFixed}}</div>
  220. </template>
  221. </el-table-column>
  222. <el-table-column align="right" label="格力折扣" prop="totalDiscAmount" min-width="110" sortable show-overflow-tooltip>
  223. <template slot-scope="scope">
  224. {{ scope.row.totalDiscAmount | numToFixed }}
  225. </template>
  226. </el-table-column>
  227. <el-table-column align="left" label="备注" prop="itemRemark" min-width="160" show-overflow-tooltip></el-table-column>
  228. <el-table-column align="left" label="表头备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
  229. <el-table-column align="left" label="业务员" prop="serviceName" min-width="100" show-overflow-tooltip></el-table-column>
  230. <el-table-column align="left" label="表头业务员" prop="k3ServiceName" min-width="100" show-overflow-tooltip></el-table-column>
  231. <el-table-column align="left" label="制表人" prop="createName" min-width="100" show-overflow-tooltip></el-table-column>
  232. <el-table-column align="left" label="制表日期" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
  233. <el-table-column align="left" label="审核人" prop="examineName" min-width="100" show-overflow-tooltip></el-table-column>
  234. <el-table-column align="left" label="审核日期" prop="examineTime" min-width="160" show-overflow-tooltip></el-table-column>
  235. <el-table-column align="center" label="操作" width="220" fixed="right">
  236. <template slot-scope="scope">
  237. <el-popconfirm
  238. style="margin-right: 10px;"
  239. title="确定申请吗?"
  240. @onConfirm="handleSubmit(scope.row.id)"
  241. v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'SAVE'" >
  242. <el-button slot="reference" type="text">申请</el-button>
  243. </el-popconfirm>
  244. <el-popconfirm
  245. style="margin-right: 10px;"
  246. title="确定撤回吗?"
  247. @onConfirm="handleWithdraw(scope.row.id)"
  248. v-if="$checkBtnRole('apply', $route.meta.roles) && scope.row.examineStatus === 'WAIT'" >
  249. <el-button slot="reference" type="text">撤回</el-button>
  250. </el-popconfirm>
  251. <el-popconfirm
  252. style="margin-right: 10px;"
  253. title="确定弃审吗?"
  254. @onConfirm="handleAbandon(scope.row.id)"
  255. v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'" >
  256. <el-button slot="reference" type="text">弃审</el-button>
  257. </el-popconfirm>
  258. <el-popconfirm
  259. style="margin-right: 10px;"
  260. title="确定关闭吗?"
  261. @onConfirm="handleClose(scope.row.id)"
  262. v-if="$checkBtnRole('examine', $route.meta.roles) && !scope.row.closeTime && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'WAIT')" >
  263. <el-button slot="reference" type="text">关闭</el-button>
  264. </el-popconfirm>
  265. <el-popconfirm
  266. style="margin-right: 10px;"
  267. title="确定删除吗?"
  268. @onConfirm="handleDelete(scope.row.id)"
  269. v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus === 'SAVE'" >
  270. <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
  271. </el-popconfirm>
  272. <el-button
  273. type="text"
  274. @click="toExamine(scope.row)"
  275. v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'">
  276. 审批
  277. </el-button>
  278. <el-button
  279. type="text"
  280. @click="toForm(scope.row)"
  281. v-if="$checkBtnRole('edit', $route.meta.roles) && scope.row.examineStatus === 'SAVE'">
  282. 编辑
  283. </el-button>
  284. <el-button
  285. type="text"
  286. @click="toReturn(scope.row)"
  287. v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'">
  288. 退订
  289. </el-button>
  290. <el-button
  291. type="text"
  292. @click="toDetail(scope.row)">
  293. 详情
  294. </el-button>
  295. </template>
  296. </el-table-column>
  297. </el-table>
  298. </div>
  299. </div>
  300. <div class="pagination clearfix">
  301. <div class="fr">
  302. <el-pagination
  303. @size-change="handleSizeChange"
  304. @current-change="handleCurrentChange"
  305. :current-page="currentPage"
  306. :page-sizes="[10, 20, 30, 50]"
  307. :page-size="10"
  308. layout="total, sizes, prev, pager, next, jumper"
  309. :total="listTotal">
  310. </el-pagination>
  311. </div>
  312. </div>
  313. </div>
  314. <EditDateDialog :isShow.sync="isShowEditDateDialog" :dateForm.sync="dateForm" />
  315. <RetailDetail :listItem="queryItem" v-if="isShowDetail" @backListFormDetail="backList" />
  316. <RetailForm :listItem="queryItem" v-if="isShowForm" @backListFormDetail="backList" />
  317. <RetailExamine :listItem="queryItem" v-if="isShowExamine" @backListFormDetail="backList" />
  318. <RetailReturn :listItem="queryItem" v-if="isShowReturn" @backListFormDetail="backList" />
  319. </div>
  320. </template>
  321. <script>
  322. import { getList, closeData, submitData, editData, abandonData, deleteData, withdrawData } from "@/api/supply/retail";
  323. import { getSalesmanList } from '@/api/common'
  324. import RetailDetail from "@/views/supply/retail/components/retail_detail";
  325. import RetailForm from "@/views/supply/retail/components/retail_form";
  326. import RetailExamine from "@/views/supply/retail/components/retail_examine";
  327. import RetailReturn from "@/views/supply/retail/components/retail_return";
  328. import EditDateDialog from "@/components/Common/edit-date-dialog";
  329. let that
  330. export default {
  331. components: {
  332. RetailDetail,
  333. RetailForm,
  334. RetailExamine,
  335. RetailReturn,
  336. EditDateDialog,
  337. },
  338. filters: {
  339. statusFilter(val) {
  340. let obj = that.statusList.find(o => o.value == val);
  341. return obj ? obj.label : ''
  342. }
  343. },
  344. data() {
  345. return {
  346. currentPage: 1, // 当前页码
  347. pageSize: 10, // 每页数量
  348. listTotal: 0, // 列表总数
  349. dataList: null, // 列表数据
  350. listLoading: false, // 列表加载loading
  351. screenForm: { // 筛选表单数据
  352. orderNum: '',
  353. goodsName: '',
  354. model: '',
  355. jxsName: '',
  356. date: '',
  357. isDirectTransfer: '',
  358. zbMan: '',
  359. shMan: '',
  360. salesMan: '',
  361. status: '',
  362. k3ServiceId:'',
  363. serviceId:''
  364. },
  365. statusList: [
  366. { label: '已保存', value: 'SAVE' },
  367. { label: '待审核', value: 'WAIT' },
  368. { label: '审核通过', value: 'OK' },
  369. { label: '已关闭', value: 'CLOSE' },
  370. ],
  371. salesmanList: [],
  372. queryItem: {},
  373. isShowDetail: false,
  374. isShowForm: false,
  375. isShowExamine: false,
  376. isShowReturn: false,
  377. editId: null,
  378. isShowEditDateDialog: false,
  379. dateForm: {
  380. date: '',
  381. },
  382. }
  383. },
  384. computed: {
  385. exParams() {
  386. return {
  387. examineStatus: this.screenForm.status,
  388. id: this.screenForm.orderNum,
  389. materialName: this.screenForm.goodsName,
  390. specification: this.screenForm.model,
  391. customer: this.screenForm.jxsName,
  392. startTime: this.screenForm.date ? this.screenForm.date[0] : '',
  393. endTime: this.screenForm.date ? this.screenForm.date[1] : '',
  394. createBy: this.screenForm.zbMan,
  395. examineBy: this.screenForm.shMan,
  396. isDirectTransfer: this.screenForm.isDirectTransfer,
  397. k3ServiceId:this.screenForm.k3ServiceId,
  398. serviceId:this.screenForm.serviceId,
  399. type: 1, // 1:普通零售单,2:政策零售单
  400. }
  401. },
  402. },
  403. beforeCreate() {
  404. that = this;
  405. },
  406. created() {
  407. this.getSalesmanList();
  408. this.getList();
  409. },
  410. methods: {
  411. // 获取业务员列表
  412. getSalesmanList() {
  413. getSalesmanList({
  414. pageNum: 1,
  415. pageSize: -1,
  416. isCustomer: 0,
  417. status: true,
  418. }).then(res => {
  419. this.salesmanList = res.data.records;
  420. })
  421. },
  422. // 查询列表
  423. getList() {
  424. this.listLoading = true;
  425. let params = {
  426. pageNum: this.currentPage,
  427. pageSize: this.pageSize,
  428. examineStatus: this.screenForm.status,
  429. id: this.screenForm.orderNum,
  430. materialName: this.screenForm.goodsName,
  431. specification: this.screenForm.model,
  432. customer: this.screenForm.jxsName,
  433. startTime: this.screenForm.date ? this.screenForm.date[0] : '',
  434. endTime: this.screenForm.date ? this.screenForm.date[1] : '',
  435. createBy: this.screenForm.zbMan,
  436. examineBy: this.screenForm.shMan,
  437. isDirectTransfer: this.screenForm.isDirectTransfer,
  438. k3ServiceId:this.screenForm.k3ServiceId,
  439. serviceId:this.screenForm.serviceId,
  440. type: 1, // 1:普通零售单,2:政策零售单
  441. };
  442. getList(params).then((res) => {
  443. res.data.records.forEach(item => {
  444. item.sums1 = ['qty', 'directTransferQty', 'hasSendQty', 'refundableQty'];
  445. item.sums2 = ['price', 'totalAmount', 'payAmount', 'rebateAmount', 'payRebateAmount', 'totalDiscAmount'];
  446. })
  447. this.dataList = res.data.records;
  448. this.listTotal = res.data.total;
  449. this.listLoading = false;
  450. })
  451. },
  452. // 提交筛选表单
  453. submitScreenForm() {
  454. this.currentPage = 1;
  455. this.getList();
  456. },
  457. // 重置筛选表单
  458. resetScreenForm() {
  459. this.$refs.screenForm.resetFields();
  460. this.currentPage = 1;
  461. this.getList();
  462. },
  463. // 更改每页数量
  464. handleSizeChange(val) {
  465. this.pageSize = val;
  466. this.currentPage = 1;
  467. this.getList();
  468. },
  469. // 更改当前页
  470. handleCurrentChange(val) {
  471. this.currentPage = val;
  472. this.getList();
  473. },
  474. // 进入表单
  475. toForm(item) {
  476. this.queryItem = item;
  477. this.isShowForm = true;
  478. },
  479. // 进入详情
  480. toDetail(item) {
  481. this.queryItem = item;
  482. this.isShowDetail = true;
  483. },
  484. // 进入审批
  485. toExamine(item) {
  486. this.queryItem = item;
  487. this.isShowExamine = true;
  488. },
  489. // 进入退订
  490. toReturn(item) {
  491. if(item.refundableQty < 1) {
  492. return this.$errorMsg('可退数量为0');
  493. }
  494. this.queryItem = item;
  495. this.isShowReturn = true;
  496. },
  497. backList() {
  498. this.queryItem = {};
  499. this.isShowDetail = false;
  500. this.isShowForm = false;
  501. this.isShowExamine = false;
  502. this.isShowReturn = false;
  503. },
  504. // 关闭
  505. handleClose(id) {
  506. closeData({id}).then(res => {
  507. this.$successMsg();
  508. this.getList();
  509. })
  510. },
  511. // 删除
  512. handleDelete(id) {
  513. deleteData({id}).then(res => {
  514. this.$successMsg();
  515. this.getList();
  516. })
  517. },
  518. // 弃审
  519. handleAbandon(id) {
  520. abandonData({id}).then(res => {
  521. this.$successMsg();
  522. this.getList();
  523. })
  524. },
  525. // 申请
  526. handleSubmit(id) {
  527. submitData({id}).then(res => {
  528. this.$successMsg();
  529. this.getList();
  530. })
  531. },
  532. // 撤回
  533. handleWithdraw(id) {
  534. withdrawData({id}).then(res => {
  535. this.$successMsg();
  536. this.getList();
  537. })
  538. },
  539. // 打开 修改订单日期
  540. editDate(item) {
  541. this.editId = item.id;
  542. this.dateForm.date = item.theTime.slice(0, 10);
  543. this.isShowEditDateDialog = true;
  544. },
  545. // 提交 修改订单日期
  546. submitDateForm() {
  547. editData({
  548. id: this.editId,
  549. theTime: this.dateForm.date + ' 00:00:00',
  550. }).then(res => {
  551. this.isShowEditDateDialog = false;
  552. this.getList();
  553. this.$successMsg('修改成功');
  554. })
  555. },
  556. }
  557. }
  558. </script>
  559. <style lang="scss" scoped>
  560. </style>