SaleOrderFormList.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. <template>
  2. <div class="p-2">
  3. <!--查询区域-->
  4. <div class="jeecg-basic-table-form-container">
  5. <a-form ref="formRef" @keyup.enter.native="reload" :model="queryParam" :label-col="{ style: 'width: 200px' }">
  6. <a-row :gutter="24">
  7. <a-col :lg="8">
  8. <a-form-item name="billDate">
  9. <template #label><span title="单据日期(bill date)">单据日期(bill date)</span></template>
  10. <a-range-picker value-format="YYYY-MM-DD" v-model:value="queryParam.billDate" class="query-group-cust" />
  11. </a-form-item>
  12. </a-col>
  13. <a-col :lg="8">
  14. <a-form-item name="project">
  15. <template #label><span title="系统项目(project)">系统项目(project)</span></template>
  16. <ApiSelect
  17. :api="ProjectOption"
  18. showSearch
  19. v-model:value="queryParam.project"
  20. :filterOption="true"
  21. resultField="records"
  22. labelField="code"
  23. valueField="id"
  24. :params="{ pageSize: -1 ,status:1}"
  25. optionFilterProp="label"
  26. />
  27. </a-form-item>
  28. </a-col>
  29. <template v-if="toggleSearchStatus">
  30. <a-col :lg="8">
  31. <a-form-item name="billCode">
  32. <template #label><span title="订单编号(bill code)">订单单号(bill code)</span></template>
  33. <JInput placeholder="请输入订单编号(bill code)" v-model:value="queryParam.billCode" allow-clear AutoComplete="off" />
  34. </a-form-item>
  35. </a-col>
  36. <a-col :lg="16">
  37. <a-form-item name="customer">
  38. <template #label><span title="客户(customer)">客户(customer)</span></template>
  39. <JSelect v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField" :param="{status:1}"></JSelect>
  40. </a-form-item>
  41. </a-col>
  42. <a-col :lg="8">
  43. <a-form-item name="priority">
  44. <template #label><span title="优先级(priority)">优先级(priority)</span></template>
  45. <JDictSelectTag v-model:value="queryParam.priority" placeholder="请选择" dictCode="priority" style="width: 100%" />
  46. </a-form-item>
  47. </a-col>
  48. <a-col :lg="16">
  49. <a-form-item name="customer">
  50. <template #label><span title="客户简称(abbreviation)">客户简称(abbreviation)</span></template>
  51. <JSelect v-model:value="queryParam.customer" :get-option-url="CustomerOption" :showField="showField2" :param="{status:1}"></JSelect>
  52. </a-form-item>
  53. </a-col>
  54. <a-col :lg="8">
  55. <a-form-item name="productionClass">
  56. <template #label><span title="产品分类(production class)">产品分类(production class)</span></template>
  57. <ApiSelect
  58. :api="ClassList"
  59. showSearch
  60. v-model:value="queryParam.productionClass"
  61. :filterOption="true"
  62. resultField="records"
  63. labelField="name"
  64. valueField="id"
  65. :params="{ pageSize: -1 }"
  66. optionFilterProp="label"
  67. />
  68. </a-form-item>
  69. </a-col>
  70. <a-col :lg="8">
  71. <a-form-item name="model">
  72. <template #label><span title="机型(model)">机型(model)</span></template>
  73. <JDictSelectTag v-model:value="queryParam.model" placeholder="请选择" dictCode="model_typer" style="width: 100%" />
  74. </a-form-item>
  75. </a-col>
  76. <a-col :lg="8">
  77. <a-form-item name="maker">
  78. <template #label><span title="厂家(maker)">厂家(maker)</span></template>
  79. <JDictSelectTag v-model:value="queryParam.maker" placeholder="请选择" dictCode="factory" />
  80. </a-form-item>
  81. </a-col>
  82. <a-col :lg="8">
  83. <a-form-item name="shipName" >
  84. <template #label><span title="船(shipName)">船(shipName)</span></template>
  85. <JInput placeholder="请输入船(shipName)" v-model:value="queryParam.shipName" allow-clear ></JInput>
  86. </a-form-item>
  87. </a-col>
  88. <a-col :lg="8">
  89. <a-form-item name="imo" >
  90. <template #label><span title="船IMO(imo)">船IMO(imo)</span></template>
  91. <JInput placeholder="请输入船IMO(imo)" v-model:value="queryParam.imo" allow-clear ></JInput>
  92. </a-form-item>
  93. </a-col>
  94. <a-col :lg="8">
  95. <a-form-item name="sourceCode2" >
  96. <template #label><span title="合同来源(sourceCode)">合同来源(sourceCode)</span></template>
  97. <JInput placeholder="请输入合同来源(sourceCode)" v-model:value="queryParam.sourceCode2" allow-clear ></JInput>
  98. </a-form-item>
  99. </a-col>
  100. <a-col :lg="8">
  101. <a-form-item name="sourceCode" >
  102. <template #label><span title="报价单来源(sourceCode)">报价单来源(sourceCode)</span></template>
  103. <JInput placeholder="请输入报价单来源(sourceCode)" v-model:value="queryParam.sourceCode" allow-clear ></JInput>
  104. </a-form-item>
  105. </a-col>
  106. <a-col :lg="8">
  107. <a-form-item name="customerOrder" >
  108. <template #label><span title="客户订单号(customer order)">客户订单号(customer order)</span></template>
  109. <JInput placeholder="请输入客户订单号(customer order)" v-model:value="queryParam.customerOrder" allow-clear ></JInput>
  110. </a-form-item>
  111. </a-col>
  112. <a-col :lg="8">
  113. <a-form-item name="saleDepartment">
  114. <template #label><span title="销售部门(sale saleDepartment)">销售部门(sale department)</span></template>
  115. <JSelectDept v-model:value="queryParam.saleDepartment" :multiple="false" />
  116. </a-form-item>
  117. </a-col>
  118. <a-col :lg="8">
  119. <a-form-item name="salesman">
  120. <template #label><span title="业务员(salesman)">业务员(salesman)</span></template>
  121. <ApiSelect
  122. :api="SaleManOption"
  123. showSearch
  124. v-model:value="queryParam.salesman"
  125. :filterOption="true"
  126. resultField="records"
  127. labelField="realname"
  128. valueField="username"
  129. :params="{ pageSize: -1 }"
  130. optionFilterProp="label"
  131. />
  132. <!-- <JSelectUser v-model:value="queryParam.salesman" placeholder="请选择" :multiple="false" /> -->
  133. </a-form-item>
  134. </a-col>
  135. <a-col :lg="8">
  136. <a-form-item name="submit">
  137. <template #label><span title="提交(submit)">提交(submit)</span></template>
  138. <JDictSelectTag v-model:value="queryParam.submit" placeholder="请选择" dictCode="yes_or_no" style="width: 100%" />
  139. </a-form-item>
  140. </a-col>
  141. <a-col :lg="8">
  142. <a-form-item name="status">
  143. <template #label><span title="客户确认(customer confirm)">客户确认(customer confirm)</span></template>
  144. <JDictSelectTag v-model:value="queryParam.status" placeholder="请选择" dictCode="customer_confirm" />
  145. </a-form-item>
  146. </a-col>
  147. <a-col :lg="8">
  148. <a-form-item name="close">
  149. <template #label><span title="关闭(close)">关闭(close)</span></template>
  150. <JDictSelectTag v-model:value="queryParam.close" placeholder="请选择" dictCode="yes_or_no" style="width: 100%" />
  151. </a-form-item>
  152. </a-col>
  153. <a-col :lg="8">
  154. <a-form-item name="shipName">
  155. <template #label><span title="船名(shipName)">船名(shipName)</span></template>
  156. <ApiSelect
  157. :api="shipOption"
  158. showSearch
  159. allowInput
  160. v-model:value="queryParam.shipName"
  161. :filterOption="true"
  162. resultField="records"
  163. labelField="shipName"
  164. valueField="shipName"
  165. :params="{ pageSize: -1 }"
  166. optionFilterProp="label"
  167. />
  168. </a-form-item>
  169. </a-col>
  170. <a-col :lg="8">
  171. <a-form-item name="organize">
  172. <template #label><span title="组织(organize)">组织(organize)</span></template>
  173. <a-select v-model:value="queryParam.organize">
  174. <a-select-option value="上海">上海</a-select-option>
  175. <a-select-option value="香港">香港</a-select-option>
  176. </a-select>
  177. </a-form-item>
  178. </a-col>
  179. </template>
  180. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  181. <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
  182. <a-col :lg="6">
  183. <a-button type="primary" preIcon="ant-design:search-outlined" @click="reload">查询</a-button>
  184. <a-button preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
  185. <a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
  186. {{ toggleSearchStatus ? '收起' : '展开' }}
  187. <Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
  188. </a>
  189. </a-col>
  190. </span>
  191. </a-col>
  192. </a-row>
  193. </a-form>
  194. </div>
  195. <!--引用表格-->
  196. <BasicTable @register="registerTable" :rowSelection="rowSelection" size="small">
  197. <!--插槽:table标题-->
  198. <template #tableTitle>
  199. <a-button type="primary" v-auth="'saleCode:sale_order:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增(add)</a-button>
  200. <a-button type="primary" v-auth="'saleCode:sale_order:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls">
  201. 导出(export)</a-button
  202. >
  203. <a-button type="primary" @click="submit"> 提交(submit)</a-button>
  204. <a-button type="primary" @click="cancelSubmit"> 取消提交(cancelSubmit)</a-button>
  205. <a-button type="primary" @click="close" v-auth="'saleCode:sale_order:close'"> 关闭(close)</a-button>
  206. <!-- <a-button type="primary" @click="cancelClose"> 取消关闭(cancel close)</a-button> -->
  207. <a-button type="primary" @click="confirm" v-auth="'saleCode:sale_order:confirm'"> 确认(confirm)</a-button>
  208. <a-button type="primary" @click="cancelConfirm" v-auth="'saleCode:sale_order:cancelConfirm'"> 取消确认(cancel confirm)</a-button>
  209. <a-dropdown v-if="selectedRowKeys.length > 0">
  210. <template #overlay>
  211. <a-menu>
  212. <a-menu-item key="1" @click="batchHandleDelete" v-auth="'saleCode:sale_order_form:deleteBatch'">
  213. <Icon icon="ant-design:delete-outlined" />
  214. 删除(delete)
  215. </a-menu-item>
  216. </a-menu>
  217. </template>
  218. <a-button v-auth="'saleCode:sale_order:delete'"
  219. >批量操作
  220. <Icon icon="mdi:chevron-down" />
  221. </a-button>
  222. </a-dropdown>
  223. </template>
  224. <!--操作栏-->
  225. <template #action="{ record }">
  226. <TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)" />
  227. </template>
  228. <!--字段回显插槽-->
  229. <template #bodyCell="{ column, record, index, text }"> </template>
  230. //
  231. <template #viewFile="props">
  232. <a @click="viewFileDetail(props)">查看(view)</a>
  233. </template>
  234. </BasicTable>
  235. <!-- 表单区域 -->
  236. <SaleInquiryFormModal @register="registerModal" @success="handleSuccess" />
  237. <ViewFileListModal ref="ViewFileListModalRef" />
  238. <SelectSaleOrderModal ref="SelectSaleOrderModalRef" @copy-product="handleCopyProduct" />
  239. <SetCloseReasonModal ref="SetCloseReasonModalRef" @success="successfullyClosed"></SetCloseReasonModal>
  240. <ViewHistoryVersionModal ref="ViewHistoryVersionModallRef" />
  241. </div>
  242. </template>
  243. <script lang="ts" name="saleCode-saleInquiryForm" setup>
  244. import { ref, reactive, computed, unref, onMounted } from 'vue';
  245. import { BasicTable, useTable, TableAction } from '/@/components/Table';
  246. import { useListPage } from '/@/hooks/system/useListPage';
  247. import { useModal } from '/@/components/Modal';
  248. import SaleInquiryFormModal from './components/SaleOrderFormModal.vue';
  249. import { columns, superQuerySchema } from './SaleOrderForm.data';
  250. import {
  251. list,
  252. deleteOne,
  253. batchDelete,
  254. getImportUrl,
  255. getExportUrl,
  256. batchSubmit,
  257. cancelBatchSubmit,
  258. bacthClose,
  259. cancelBatchClose,
  260. bacthConfirm,
  261. cancelBatchConfirm,
  262. ProjectOption,
  263. CustomerOption,
  264. ClassList,
  265. getExportUrlRow,
  266. SaleManOption,
  267. shipOption
  268. } from './SaleOrderyForm.api';
  269. import { cloneDeep } from 'lodash-es';
  270. import { JDictSelectTag, ApiSelect, JInput,JSelect } from '/@/components/Form';
  271. import JSelectUser from '/@/components/Form/src/jeecg/components/JSelectUser.vue';
  272. import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
  273. import ViewFileListModal from './components/ViewFileListModal.vue';
  274. import SelectSaleOrderModal from './components/SelectSaleOrderModal.vue';
  275. import SetCloseReasonModal from '../../publicComponents/SetCloseReasonModal.vue'
  276. import ViewHistoryVersionModal from './components/ViewHistoryVersionModal.vue';
  277. import { message } from 'ant-design-vue';
  278. import { useMethods } from '/@/hooks/system/useMethods';
  279. const { handleExportXlsx, } = useMethods();
  280. const formRef = ref();
  281. var showField = ref('currency_dictText+name');
  282. var showField2 = ref('currency_dictText+abbreviation');
  283. const ViewFileListModalRef = ref();
  284. const SelectSaleOrderModalRef = ref();
  285. const ViewHistoryVersionModallRef = ref();
  286. var SetCloseReasonModalRef = ref();
  287. const queryParam = reactive<any>({});
  288. //注册model
  289. const [registerModal, { openModal }] = useModal();
  290. //注册table数据
  291. const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
  292. tableProps: {
  293. title: '销售订单',
  294. api: list,
  295. columns,
  296. canResize: false,
  297. useSearchForm: false,
  298. actionColumn: {
  299. width: 300,
  300. fixed: 'right',
  301. },
  302. scroll: {
  303. x: '5300px',
  304. y:'calc(100vh - 400px)',
  305. },
  306. beforeFetch: async (params) => {
  307. let rangerQuery = await setRangeQuery();
  308. return Object.assign(params, rangerQuery);
  309. },
  310. },
  311. exportConfig: {
  312. name: '销售订单',
  313. url: getExportUrl,
  314. params: queryParam,
  315. },
  316. importConfig: {
  317. url: getImportUrl,
  318. success: handleSuccess,
  319. },
  320. });
  321. const [registerTable, { reload }, { rowSelection, selectedRowKeys }] = tableContext;
  322. // 高级查询配置
  323. const superQueryConfig = reactive(superQuerySchema);
  324. /**
  325. * 高级查询事件
  326. */
  327. function handleSuperQuery(params) {
  328. Object.keys(params).map((k) => {
  329. queryParam[k] = params[k];
  330. });
  331. reload();
  332. }
  333. /**
  334. * 新增事件
  335. */
  336. function handleAdd() {
  337. openModal(true, {
  338. isUpdate: false,
  339. showFooter: true,
  340. isRevise: false,
  341. });
  342. }
  343. /**
  344. * 编辑事件
  345. */
  346. function handleEdit(record: Recordable) {
  347. openModal(true, {
  348. record,
  349. isUpdate: true,
  350. showFooter: true,
  351. isRevise: false,
  352. });
  353. }
  354. //修订
  355. function handleRevise(record: Recordable) {
  356. openModal(true, {
  357. record,
  358. isUpdate: true,
  359. showFooter: true,
  360. isRevise: true,
  361. });
  362. }
  363. //查看历史版本
  364. function viewHistoryList(record) {
  365. ViewHistoryVersionModallRef.value.getTable(record);
  366. }
  367. //复制
  368. function handleCopy(record: Recordable) {
  369. SelectSaleOrderModalRef.value.getTable(record);
  370. }
  371. //下载合同
  372. function handleDownContract() {}
  373. //上传基本协议
  374. function handleUploadProtocol() {}
  375. //上传基础协议
  376. function handleExportInvoice() {}
  377. /**
  378. * 详情
  379. */
  380. function handleDetail(record: Recordable) {
  381. openModal(true, {
  382. record,
  383. isUpdate: true,
  384. showFooter: false,
  385. });
  386. }
  387. /**
  388. * 删除事件
  389. */
  390. async function handleDelete(record) {
  391. await deleteOne({ id: record.id }, handleSuccess);
  392. }
  393. /**
  394. * 批量删除事件
  395. */
  396. async function batchHandleDelete() {
  397. await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
  398. }
  399. /**
  400. * 成功回调
  401. */
  402. function handleSuccess() {
  403. (selectedRowKeys.value = []) && reload();
  404. }
  405. async function handleRowExport(record){
  406. var obj={
  407. id : record.id
  408. }
  409. // handleExportXlsx(record.billCode, getExportUrlRow,obj)
  410. handleExportXlsx('OA - '+record.projectName, getExportUrlRow,obj)
  411. }
  412. /**
  413. * 操作栏
  414. */
  415. function getTableAction(record) {
  416. return [
  417. {
  418. label: '导出(export)',
  419. onClick: handleRowExport.bind(null, record),
  420. },
  421. {
  422. label: '编辑(edit)',
  423. onClick: handleEdit.bind(null, record),
  424. auth: 'saleCode:sale_order:edit',
  425. ifShow: record.submit == '0' || !record.submit,
  426. },
  427. {
  428. label: '修订(revise)',
  429. onClick: handleRevise.bind(null, record),
  430. auth: 'saleCode:sale_order:editHis',
  431. ifShow: record.submit == '1',
  432. },
  433. ];
  434. }
  435. /**
  436. * 下拉操作栏
  437. */
  438. function getDropDownAction(record) {
  439. return [
  440. {
  441. label: '详情(detail)',
  442. onClick: handleDetail.bind(null, record),
  443. },
  444. {
  445. label: '查看历史版本(view history)',
  446. onClick: viewHistoryList.bind(null, record),
  447. auth: 'saleCode:sale_inquiry_form:delete',
  448. ifShow: record.submit == '1',
  449. },
  450. {
  451. label: '复制(copy)',
  452. onClick: handleCopy.bind(null, record),
  453. },
  454. // {
  455. // label: '导出发票(export invoice)',
  456. // onClick: handleExportInvoice.bind(null, record),
  457. // auth: 'saleCode:sale_inquiry_form:delete',
  458. // ifShow: record.submit=='1'
  459. // },
  460. // {
  461. // label: '导出预收款发票(export invoice)',
  462. // onClick: handleDetail.bind(null, record),
  463. // auth: 'saleCode:sale_inquiry_form:delete',
  464. // ifShow: record.submit=='1'
  465. // },
  466. {
  467. label: '删除(delete)',
  468. popConfirm: {
  469. title: '是否确认删除',
  470. confirm: handleDelete.bind(null, record),
  471. placement: 'topLeft',
  472. },
  473. auth: 'saleCode:sale_order:delete',
  474. ifShow: record.submit == '0' || !record.submit,
  475. },
  476. ];
  477. }
  478. function submit() {
  479. if (selectedRowKeys.value.length == 0) {
  480. message.warning('请选择数据');
  481. } else {
  482. var ids = selectedRowKeys.value.join(',');
  483. batchSubmit({ ids: ids }, handleSuccess);
  484. }
  485. }
  486. function cancelSubmit() {
  487. if (selectedRowKeys.value.length == 0) {
  488. message.warning('请选择数据');
  489. } else {
  490. var ids = selectedRowKeys.value.join(',');
  491. cancelBatchSubmit({ ids: ids }, handleSuccess);
  492. }
  493. }
  494. function close() {
  495. if (selectedRowKeys.value.length == 0) {
  496. message.warning('请选择数据');
  497. } else {
  498. var ids = selectedRowKeys.value.join(',');
  499. var ids=selectedRowKeys.value.join(',')
  500. SetCloseReasonModalRef.value.getTable(ids)
  501. }
  502. }
  503. function successfullyClosed(reason,id){
  504. var params={
  505. ids: id,
  506. closeReason: reason
  507. }
  508. bacthClose(params,handleSuccess);
  509. }
  510. // function cancelClose() {
  511. // if (selectedRowKeys.value.length == 0) {
  512. // message.warning('请选择数据');
  513. // } else {
  514. // var ids = selectedRowKeys.value.join(',');
  515. // cancelBatchClose({ ids: ids }, handleSuccess);
  516. // }
  517. // }
  518. function confirm() {
  519. if (selectedRowKeys.value.length == 0) {
  520. message.warning('请选择数据');
  521. } else {
  522. var ids = selectedRowKeys.value.join(',');
  523. bacthConfirm({ ids: ids }, handleSuccess);
  524. }
  525. }
  526. function cancelConfirm() {
  527. if (selectedRowKeys.value.length == 0) {
  528. message.warning('请选择数据');
  529. } else {
  530. var ids = selectedRowKeys.value.join(',');
  531. cancelBatchConfirm({ ids: ids }, handleSuccess);
  532. }
  533. }
  534. function viewFileDetail(props) {
  535. ViewFileListModalRef.value.getTable(props.column.dataIndex, props.record);
  536. }
  537. function handleCopyProduct(data, mainId) {
  538. openModal(true, {
  539. data,
  540. mainId,
  541. isUpdate: false,
  542. showFooter: true,
  543. isCopy: true,
  544. });
  545. }
  546. /* ----------------------以下为原生查询需要添加的-------------------------- */
  547. const toggleSearchStatus = ref<boolean>(false);
  548. const labelCol = reactive({
  549. xs: 24,
  550. sm: 9,
  551. });
  552. const wrapperCol = reactive({
  553. xs: 24,
  554. sm: 15,
  555. });
  556. const labelCol1 = reactive({
  557. xs: 24,
  558. sm: 12,
  559. });
  560. const wrapperCol1 = reactive({
  561. xs: 24,
  562. sm: 12,
  563. });
  564. /**
  565. * 重置
  566. */
  567. function searchReset() {
  568. formRef.value.resetFields();
  569. selectedRowKeys.value = [];
  570. //刷新数据
  571. reload();
  572. }
  573. let rangeField = 'billDate,';
  574. /**
  575. * 设置范围查询条件
  576. */
  577. async function setRangeQuery() {
  578. let queryParamClone = cloneDeep(queryParam);
  579. if (rangeField) {
  580. let fieldsValue = rangeField.split(',');
  581. fieldsValue.forEach((item) => {
  582. if (queryParamClone[item]) {
  583. let range = queryParamClone[item];
  584. queryParamClone[item + '_begin'] = range[0];
  585. queryParamClone[item + '_end'] = range[1];
  586. delete queryParamClone[item];
  587. } else {
  588. queryParamClone[item + '_begin'] = '';
  589. queryParamClone[item + '_end'] = '';
  590. }
  591. });
  592. }
  593. return queryParamClone;
  594. }
  595. </script>
  596. <style lang="less" scoped>
  597. .jeecg-basic-table-form-container {
  598. padding: 0;
  599. .table-page-search-submitButtons {
  600. display: block;
  601. margin-bottom: 8px;
  602. white-space: nowrap;
  603. }
  604. .query-group-cust {
  605. min-width: 100px !important;
  606. }
  607. .query-group-split-cust {
  608. width: 30px;
  609. display: inline-block;
  610. text-align: center;
  611. }
  612. .ant-form-item:not(.ant-form-item-with-help) {
  613. margin-bottom: 8px;
  614. height: 32px;
  615. }
  616. :deep(.ant-picker),
  617. :deep(.ant-input-number) {
  618. width: 100%;
  619. }
  620. }
  621. </style>