list.vue 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007
  1. <template>
  2. <div>
  3. <TopTitle title="入库单">
  4. <Button type="primary" @click="searchModal = true">查找</Button>
  5. <Button type="primary" @click="showModalTrue()" style="margin-left: 20px"
  6. >栏目设置</Button
  7. >
  8. </TopTitle>
  9. <div class="content">
  10. <Table
  11. :data="tableData"
  12. :columns="tableColumns"
  13. border
  14. max-height="700"
  15. v-show="tableData.length != 0"
  16. >
  17. <template slot="set" slot-scope="{ row, index }">
  18. <a @click="delSelectData(row, index)">详情</a>
  19. </template>
  20. </Table>
  21. <div class="content_body_page">
  22. <Page
  23. :page-size-opts="[10, 20, 30, 40, 100]"
  24. @on-page-size-change="changeSize"
  25. @on-change="changePage"
  26. :current="pageIndex"
  27. show-total
  28. show-elevator
  29. :total="total"
  30. show-sizer
  31. :page-size="pageSize"
  32. />
  33. </div>
  34. </div>
  35. <Modal
  36. v-model="searchModal"
  37. title="查找"
  38. @on-ok="searchModalOk"
  39. @on-cancel="showModal = false"
  40. width="700"
  41. >
  42. <Form :model="formItem" :label-width="85">
  43. <Row
  44. style="
  45. display: flex;
  46. justify-content: center;
  47. border-bottom: 1px solid #e8eaec;
  48. padding: 20px;
  49. "
  50. >
  51. <Col span="11">
  52. <Form-item label="选择器">
  53. <Select
  54. clearable
  55. v-model="formItem.select"
  56. placeholder="请选择"
  57. style="width: 200px"
  58. >
  59. <Option value="beijing">北京市</Option>
  60. <Option value="shanghai">上海市</Option>
  61. <Option value="shenzhen">深圳市</Option>
  62. </Select>
  63. </Form-item>
  64. </Col>
  65. <Col span="11">
  66. <Form-item label="日期控件">
  67. <Date-picker
  68. clearable
  69. :value="formItem.date"
  70. format="yyyy/MM/dd"
  71. type="daterange"
  72. placement="bottom-end"
  73. placeholder="选择日期"
  74. style="width: 200px"
  75. ></Date-picker>
  76. </Form-item>
  77. </Col>
  78. </Row>
  79. <div
  80. style="
  81. display: flex;
  82. flex-wrap: wrap;
  83. justify-content: space-around;
  84. padding: 20px;
  85. border-bottom: 1px solid #e8eaec;
  86. "
  87. >
  88. <Form-item label="订单编号">
  89. <Input
  90. clearable
  91. v-model="formItem.order_no"
  92. placeholder="请输入订单编号"
  93. style="width: 200px"
  94. ></Input>
  95. </Form-item>
  96. <Form-item label="项目名称">
  97. <Input
  98. clearable
  99. v-model="formItem.project_name"
  100. placeholder="请输入项目名称"
  101. style="width: 200px"
  102. ></Input>
  103. </Form-item>
  104. <Form-item label="对方单号">
  105. <Input
  106. clearable
  107. v-model="formItem.adverse_odd"
  108. placeholder="请输入对方单号"
  109. style="width: 200px"
  110. ></Input>
  111. </Form-item>
  112. <Form-item label="业务员">
  113. <Input
  114. clearable
  115. v-model="formItem.salesman"
  116. placeholder="请输入业务员"
  117. style="width: 200px"
  118. ></Input>
  119. </Form-item>
  120. <Form-item label="客户名称">
  121. <Select
  122. clearable
  123. v-model="formItem.customer_name"
  124. placeholder="请选择"
  125. style="width: 200px"
  126. >
  127. <Option value="beijing">北京市</Option>
  128. <Option value="shanghai">上海市</Option>
  129. <Option value="shenzhen">深圳市</Option>
  130. </Select>
  131. </Form-item>
  132. <Form-item label="产品名称">
  133. <Input
  134. clearable
  135. v-model="formItem.product_name"
  136. placeholder="请输入产品名称"
  137. style="width: 200px"
  138. ></Input>
  139. </Form-item>
  140. <Form-item label="客户地区">
  141. <Select
  142. clearable
  143. v-model="formItem.client_area"
  144. placeholder="请选择"
  145. style="width: 200px"
  146. >
  147. <Option value="beijing">北京市</Option>
  148. <Option value="shanghai">上海市</Option>
  149. <Option value="shenzhen">深圳市</Option>
  150. </Select>
  151. </Form-item>
  152. <Form-item label="楼层编号">
  153. <Input
  154. clearable
  155. v-model="formItem.floor_number"
  156. placeholder="请输入楼层编号"
  157. style="width: 200px"
  158. ></Input>
  159. </Form-item>
  160. <Form-item label="审核状态">
  161. <Select
  162. clearable
  163. v-model="formItem.audit_status"
  164. placeholder="请选择"
  165. style="width: 200px"
  166. >
  167. <Option value="beijing">北京市</Option>
  168. <Option value="shanghai">上海市</Option>
  169. <Option value="shenzhen">深圳市</Option>
  170. </Select>
  171. </Form-item>
  172. <Form-item label="通用产品码">
  173. <Input
  174. clearable
  175. v-model="formItem.universal_product_code"
  176. placeholder="请输入通用产品码 "
  177. style="width: 200px"
  178. ></Input>
  179. </Form-item>
  180. </div>
  181. <div>
  182. <Form-item label="">
  183. <Checkbox-group
  184. v-model="formItem.checkbox"
  185. style="padding-top: 20px"
  186. >
  187. <Checkbox style="width: 100px" label="尺寸确认"></Checkbox>
  188. <Checkbox style="width: 100px" label="发货"></Checkbox>
  189. <Checkbox style="width: 100px" label="分箱"></Checkbox>
  190. <Checkbox style="width: 100px" label="套料"></Checkbox>
  191. <Checkbox style="width: 100px" label="流程卡"></Checkbox>
  192. <Checkbox style="width: 100px" label="工艺"></Checkbox>
  193. <Checkbox style="width: 100px" label="收款"></Checkbox>
  194. <Checkbox style="width: 100px" label="已下达"></Checkbox>
  195. <Checkbox style="width: 100px" label="价格审核"></Checkbox>
  196. <Checkbox style="width: 100px" label="入库"></Checkbox>
  197. <Checkbox style="width: 100px" label="外协"></Checkbox>
  198. </Checkbox-group>
  199. </Form-item>
  200. </div>
  201. </Form>
  202. </Modal>
  203. <ColumnSetup
  204. ref="child"
  205. :tableModalTableDataHeader="tableModalTableDataHeader"
  206. :formModalColumns="formModalColumns"
  207. :tableModalColumns="tableModalColumns"
  208. :tableModalTableData="tableModalTableData"
  209. :showModal="showModal"
  210. @event1="change($event)"
  211. @handleModalOk="handleModalOk"
  212. />
  213. </div>
  214. </template>
  215. <script>
  216. import TopTitle from "../../components/TopTitle/index";
  217. import ColumnSetup from "../../components/columnSetup/index.vue";
  218. export default {
  219. components: {
  220. TopTitle,
  221. ColumnSetup,
  222. },
  223. data() {
  224. return {
  225. ifCheckAll: false,
  226. ifCheckAllHeader: false,
  227. formItem: {},
  228. searchModal: false,
  229. showModal: false,
  230. selectData: [],
  231. searchData: {
  232. start_time: "",
  233. end_time: "",
  234. },
  235. pageSize: 10,
  236. pageIndex: 1,
  237. total: 0,
  238. tableData: [],
  239. tableModalTableData: [
  240. {
  241. is_show: true,
  242. key: "order_no",
  243. value: "订单编号",
  244. title: "订单编号",
  245. },
  246. {
  247. is_show: true,
  248. key: "order_type",
  249. value: "订单类型",
  250. title: "项目名称",
  251. },
  252. {
  253. is_show: true,
  254. key: "order_status",
  255. value: "订单状态",
  256. title: "订单状态",
  257. },
  258. {
  259. is_show: true,
  260. key: "salesman",
  261. value: "业务员",
  262. title: "业务员 ",
  263. },
  264. {
  265. is_show: true,
  266. key: "warning_state",
  267. value: "紧急程度",
  268. title: "紧急程度",
  269. },
  270. {
  271. is_show: true,
  272. key: "crt_time",
  273. value: "订单创建时间",
  274. title: "订单创建时间",
  275. },
  276. {
  277. is_show: true,
  278. key: "project_name",
  279. value: "项目名称",
  280. title: "项目名称",
  281. },
  282. {
  283. is_show: true,
  284. key: "start_time",
  285. value: "订单开始日期",
  286. title: "订单开始日期",
  287. },
  288. {
  289. is_show: true,
  290. key: "end_time",
  291. value: "订单交付日期",
  292. title: "订单交付日期",
  293. },
  294. {
  295. is_show: true,
  296. key: "complete_rate",
  297. value: "生产进度",
  298. title: "生产进度",
  299. },
  300. {
  301. is_show: true,
  302. key: "delivery_date",
  303. value: "预估交付日期",
  304. title: "预估交付日期",
  305. },
  306. ],
  307. tableModalTableDataHeader: [
  308. {
  309. is_show: false,
  310. sortord: "1",
  311. key: "order_no",
  312. value: "订单编号",
  313. title: "订单编号",
  314. },
  315. {
  316. is_show: true,
  317. sortord: "2",
  318. key: "order_type",
  319. value: "订单类型",
  320. title: "项目名称",
  321. },
  322. {
  323. is_show: true,
  324. sortord: "1",
  325. key: "order_status",
  326. value: "订单状态",
  327. title: "订单状态",
  328. },
  329. {
  330. is_show: true,
  331. key: "salesman",
  332. sortord: "1",
  333. value: "业务员",
  334. title: "业务员 ",
  335. },
  336. {
  337. is_show: true,
  338. key: "warning_state",
  339. sortord: "1",
  340. value: "紧急程度",
  341. title: "紧急程度",
  342. },
  343. {
  344. is_show: true,
  345. key: "crt_time",
  346. value: "订单创建时间",
  347. sortord: "1",
  348. title: "订单创建时间",
  349. },
  350. {
  351. is_show: true,
  352. key: "project_name",
  353. value: "项目名称",
  354. sortord: "1",
  355. title: "项目名称",
  356. },
  357. {
  358. is_show: true,
  359. key: "start_time",
  360. value: "订单开始日期",
  361. sortord: "1",
  362. title: "订单开始日期",
  363. },
  364. {
  365. is_show: true,
  366. key: "end_time",
  367. value: "订单交付日期",
  368. sortord: "1",
  369. title: "订单交付日期",
  370. },
  371. {
  372. is_show: true,
  373. key: "complete_rate",
  374. sortord: "1",
  375. value: "生产进度",
  376. title: "生产进度",
  377. },
  378. {
  379. is_show: true,
  380. key: "delivery_date",
  381. sortord: "1",
  382. value: "预估交付日期",
  383. title: "预估交付日期",
  384. },
  385. {
  386. is_show: true,
  387. key: "delivery_date",
  388. sortord: "1",
  389. value: "操作",
  390. title: "操作",
  391. },
  392. ],
  393. tableColumns: [
  394. {
  395. title: "自序",
  396. align: "center",
  397. minWidth: 100,
  398. type: "index",
  399. key: "index",
  400. },
  401. {
  402. title: "ID",
  403. align: "center",
  404. width: 120,
  405. key: "id",
  406. },
  407. {
  408. title: "辅助信息确认",
  409. align: "center",
  410. width: 130,
  411. key: "auxiliary_information",
  412. render: (h, params) => {
  413. return h("div", [
  414. h("Checkbox", {
  415. props: {
  416. value: params.row.auxiliary_information == 0 ? true : false,
  417. disabled: true,
  418. },
  419. }),
  420. ]);
  421. },
  422. },
  423. {
  424. title: "本分厂",
  425. align: "center",
  426. width: 120,
  427. key: "factory",
  428. },
  429. {
  430. title: "下分厂",
  431. align: "center",
  432. width: 120,
  433. key: "theFactory",
  434. },
  435. {
  436. title: "单据编号",
  437. align: "center",
  438. width: 120,
  439. key: "receiptNumber",
  440. },
  441. {
  442. title: "当前工序",
  443. align: "center",
  444. width: 100,
  445. key: "current_process",
  446. },
  447. {
  448. title: "处理方式",
  449. align: "center",
  450. width: 100,
  451. key: "process_mode",
  452. },
  453. {
  454. title: "单据状态",
  455. align: "center",
  456. width: 100,
  457. key: "documents_state",
  458. },
  459. {
  460. title: "订单编号",
  461. align: "center",
  462. width: 100,
  463. key: "order_no",
  464. },
  465. {
  466. title: "客户名称",
  467. align: "center",
  468. width: 100,
  469. key: "customer_name",
  470. },
  471. {
  472. title: "项目名称",
  473. align: "center",
  474. width: 100,
  475. key: "project_name",
  476. },
  477. {
  478. title: "报表日期",
  479. align: "center",
  480. width: 120,
  481. key: "reportDate",
  482. render: (h, params) => {
  483. const { row } = params;
  484. return h("span", {}, this.func.replaceDateNoHMS(row.reportDate));
  485. },
  486. },
  487. {
  488. title: "班次",
  489. align: "center",
  490. width: 100,
  491. key: "classes",
  492. },
  493. {
  494. title: "流程卡号",
  495. align: "center",
  496. width: 100,
  497. key: "card_number",
  498. },
  499. {
  500. title: "制单员",
  501. align: "center",
  502. width: 100,
  503. key: "making_part",
  504. },
  505. {
  506. title: "制单日期",
  507. align: "center",
  508. width: 80,
  509. key: "documentationDate",
  510. render: (h, params) => {
  511. const { row } = params;
  512. return h(
  513. "span",
  514. {},
  515. this.func.replaceDateNoHMS(row.documentationDate)
  516. );
  517. },
  518. },
  519. {
  520. title: "审核人",
  521. align: "center",
  522. width: 100,
  523. key: "auditor",
  524. },
  525. {
  526. title: "审核日期",
  527. align: "center",
  528. width: 120,
  529. key: "approvalDate",
  530. render: (h, params) => {
  531. const { row } = params;
  532. return h("span", {}, this.func.replaceDateNoHMS(row.approvalDate));
  533. },
  534. },
  535. {
  536. title: "班组",
  537. align: "center",
  538. width: 100,
  539. key: "team_group",
  540. },
  541. {
  542. title: "设备",
  543. align: "center",
  544. width: 90,
  545. key: "equipment",
  546. },
  547. {
  548. title: "总数量",
  549. align: "center",
  550. width: 100,
  551. key: "total",
  552. },
  553. {
  554. title: "打印次数",
  555. align: "center",
  556. width: 100,
  557. key: "printTime",
  558. },
  559. {
  560. title: "备注",
  561. align: "center",
  562. minWidth: 100,
  563. key: "remark",
  564. },
  565. {
  566. title: "审核后备注",
  567. align: "center",
  568. width: 120,
  569. key: "remarks_after_audit",
  570. },
  571. {
  572. title: "送货地址",
  573. align: "center",
  574. minWidth: 100,
  575. key: "deliveryAddress",
  576. },
  577. {
  578. title: "库存备注",
  579. align: "center",
  580. minWidth: 100,
  581. key: "inventory_note",
  582. },
  583. {
  584. title: "操作",
  585. align: "center",
  586. minWidth: 100,
  587. slot: "set",
  588. },
  589. ],
  590. tableModalColumns: [
  591. {
  592. type: "selection",
  593. width: 55,
  594. align: "center",
  595. },
  596. {
  597. title: "字段名",
  598. align: "center",
  599. key: "value",
  600. minWidth: 100,
  601. },
  602. {
  603. title: "展示名称",
  604. align: "center",
  605. key: "title",
  606. minWidth: 100,
  607. slot:"screenTitle",
  608. },
  609. ],
  610. pointList: [
  611. {
  612. value: "1",
  613. label: "升序",
  614. },
  615. {
  616. value: "2",
  617. label: "降序",
  618. },
  619. ],
  620. newTableColumns: [],
  621. formModalColumns: [
  622. {
  623. type: "selection",
  624. width: 55,
  625. align: "center",
  626. },
  627. {
  628. title: "全部字段",
  629. align: "center",
  630. key: "value",
  631. minWidth: 100,
  632. },
  633. {
  634. title: "展示名称",
  635. align: "center",
  636. key: "title",
  637. minWidth: 100,
  638. slot:"title",
  639. },
  640. {
  641. title: "排序方式",
  642. align: "center",
  643. key: "sortord",
  644. minWidth: 100,
  645. slot:"sortord",
  646. },
  647. {
  648. title: "排序优先级",
  649. align: "center",
  650. key: "priority",
  651. minWidth: 100,
  652. render: (h, params) => {
  653. return h(
  654. "Select",
  655. {
  656. props: {
  657. value: params.row.priority,
  658. },
  659. on: {
  660. "on-change": (event) => {
  661. this.formModalColumns[params.index][params.column.key] =
  662. event; //获取编辑行的inde和编辑字段名,对表格数据进行重新赋值
  663. },
  664. },
  665. },
  666. this.pointList.map(function (type) {
  667. return h(
  668. "Option",
  669. {
  670. props: {
  671. value: type.value,
  672. key: type.label,
  673. },
  674. },
  675. type.label
  676. );
  677. })
  678. );
  679. },
  680. },
  681. ],
  682. checkedList: [], //筛选项选择的
  683. checkedListHeader: [], //表头选择的
  684. };
  685. },
  686. mounted() {
  687. this.tableData = [
  688. {
  689. id: 1,
  690. size: 0,
  691. auxiliary_information: 0, //工艺
  692. factory: "本分厂", // 分箱
  693. theFactory: "下分厂", //已下达
  694. receiptNumber: "单据编号", //流程卡
  695. current_process: "当前工序", //入库
  696. process_mode: "处理方式", //发货
  697. documents_state: "单据状态", //收款
  698. order_no: "订单编号", // 套料
  699. customer_name: "客户名称", //价格审核
  700. project_name: "项目名称", // 外协
  701. reportDate: "1653527527",
  702. classes: "班次",
  703. making_part: "制单员", // 0 未审核 1 已审核
  704. documentationDate: "制单日期",
  705. auditor: "审核人",
  706. approvalDate: "1653527527",
  707. team_group: "班组",
  708. equipment: "设备",
  709. total: "总数量",
  710. printTime: "打印次数",
  711. remark: "备注",
  712. remarks_after_audit: "审核后备注",
  713. deliveryAddress: "库存备注", //0 普通订单
  714. },
  715. ];
  716. this.data();
  717. },
  718. methods: {
  719. selectAll(row){
  720. console.log(row,"这是row");
  721. },
  722. data() {
  723. this.newTableColumns = [
  724. {
  725. title: "自序",
  726. align: "center",
  727. minWidth: 100,
  728. ifShow: true,
  729. sort: 0,
  730. type: "index",
  731. key: "index",
  732. },
  733. {
  734. title: "id",
  735. align: "center",
  736. minWidth: 100,
  737. key: "id",
  738. ifShow: true,
  739. sort: 0,
  740. },
  741. {
  742. title: "辅助信息确认",
  743. align: "center",
  744. width: 130,
  745. sort: 1,
  746. ifShow: true,
  747. key: "auxiliary_information",
  748. },
  749. {
  750. title: "本分厂",
  751. align: "center",
  752. width: 80,
  753. ifShow: true,
  754. sort: 2,
  755. key: "factory",
  756. },
  757. {
  758. title: "下分厂",
  759. align: "center",
  760. width: 80,
  761. sort: 2,
  762. ifShow: true,
  763. key: "theFactory",
  764. },
  765. {
  766. title: "单据编号",
  767. align: "center",
  768. width: 90,
  769. ifShow: true,
  770. sort: 2,
  771. key: "receiptNumber",
  772. },
  773. {
  774. title: "当前工序",
  775. align: "center",
  776. sort: 2,
  777. ifShow: true,
  778. width: 90,
  779. key: "current_process",
  780. },
  781. {
  782. title: "处理方式",
  783. align: "center",
  784. width: 80,
  785. sort: 2,
  786. ifShow: true,
  787. key: "process_mode",
  788. },
  789. {
  790. title: "单据状态",
  791. align: "center",
  792. width: 80,
  793. sort: 2,
  794. ifShow: true,
  795. key: "documents_state",
  796. },
  797. {
  798. title: "订单编号",
  799. align: "center",
  800. width: 90,
  801. sort: 2,
  802. key: "order_no",
  803. ifShow: true,
  804. },
  805. {
  806. title: "客户名称",
  807. align: "center",
  808. width: 90,
  809. sort: 2,
  810. key: "customer_name",
  811. ifShow: true,
  812. },
  813. {
  814. title: "项目名称",
  815. align: "center",
  816. width: 100,
  817. sort: 2,
  818. key: "project_name",
  819. ifShow: true,
  820. },
  821. {
  822. title: "报表日期",
  823. align: "center",
  824. width: 120,
  825. sort: 2,
  826. key: "reportDate",
  827. ifShow: true,
  828. },
  829. {
  830. title: "班次",
  831. align: "center",
  832. minWidth: 100,
  833. key: "classes",
  834. sort: 2,
  835. ifShow: true,
  836. },
  837. {
  838. title: "流程卡号",
  839. align: "center",
  840. minWidth: 100,
  841. key: "card_number",
  842. sort: 6,
  843. ifShow: true,
  844. },
  845. {
  846. title: "制单员",
  847. align: "center",
  848. sort: 2,
  849. ifShow: true,
  850. minWidth: 100,
  851. key: "making_part",
  852. },
  853. {
  854. title: "审核人",
  855. sort: 2,
  856. align: "center",
  857. minWidth: 100,
  858. ifShow: true,
  859. key: "auditor",
  860. },
  861. {
  862. title: "审核日期",
  863. sort: 2,
  864. align: "center",
  865. minWidth: 120,
  866. ifShow: true,
  867. key: "approvalDate",
  868. },
  869. {
  870. title: "班组",
  871. align: "center",
  872. minWidth: 100,
  873. key: "team_group",
  874. ifShow: true,
  875. sort: 2,
  876. },
  877. {
  878. title: "设备",
  879. align: "center",
  880. minWidth: 100,
  881. key: "equipment",
  882. ifShow: true,
  883. sort: 2,
  884. },
  885. {
  886. title: "总数量",
  887. align: "center",
  888. minWidth: 100,
  889. key: "total",
  890. ifShow: true,
  891. sort: 2,
  892. },
  893. {
  894. title: "打印次数",
  895. align: "center",
  896. minWidth: 100,
  897. key: "printTime",
  898. ifShow: true,
  899. sort: 2,
  900. },
  901. {
  902. title: "备注",
  903. align: "center",
  904. minWidth: 100,
  905. key: "remark",
  906. ifShow: true,
  907. sort: 2,
  908. },
  909. {
  910. title: "审核后备注",
  911. align: "center",
  912. minWidth: 120,
  913. key: "remarks_after_audit",
  914. ifShow: true,
  915. sort: 2,
  916. },
  917. {
  918. title: "送货地址",
  919. align: "center",
  920. minWidth: 100,
  921. ifShow: true,
  922. sort: 2,
  923. key: "deliveryAddress",
  924. },
  925. {
  926. title: "库存备注",
  927. align: "center",
  928. minWidth: 100,
  929. key: "inventory_note",
  930. ifShow: true,
  931. sort: 2,
  932. },
  933. {
  934. title: "操作",
  935. align: "center",
  936. ifShow: true,
  937. sort: 9,
  938. minWidth: 100,
  939. slot: "set",
  940. },
  941. ];
  942. let arr = [];
  943. this.tableColumns.forEach((e) => {
  944. this.newTableColumns.forEach((a) => {
  945. if (e.key == a.key) {
  946. if (a.ifShow == true) {
  947. arr.push(e);
  948. }
  949. }
  950. });
  951. });
  952. this.tableColumns = arr;
  953. this.tableColumns.sort((a, b) => {
  954. return a.sort - b.sort;
  955. });
  956. },
  957. change(data) {
  958. this.showModal = data;
  959. },
  960. //点击栏目设置按钮
  961. showModalTrue() {
  962. this.showModal = true;
  963. this.$refs.child.showModalTrue()
  964. },
  965. changeSize() {},
  966. changePage() {},
  967. handleModalOk(row1, row2) {
  968. console.log(row1,"这个是checkedListHeader");
  969. console.log(row2,"这是checkedList");
  970. },
  971. searchModalOk() {
  972. console.log(this.formItem, "这是form");
  973. console.log("查找");
  974. },
  975. select(e) {
  976. this.selectData = e;
  977. },
  978. delSelectData(type) {
  979. this.$router.push({
  980. path: "/cms/godownEntry/particulars",
  981. query: { type },
  982. });
  983. },
  984. },
  985. };
  986. </script>
  987. <style lang="scss" scoped>
  988. .form_item {
  989. margin-top: 20px;
  990. display: flex;
  991. flex-wrap: wrap;
  992. }
  993. .content_body_page {
  994. text-align: center;
  995. }
  996. .content {
  997. height: 90%;
  998. overflow: auto;
  999. }
  1000. .content_body_page {
  1001. text-align: center;
  1002. margin-top: 20px;
  1003. }
  1004. </style>