commerce_list.vue 23 KB

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