list.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203
  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. <ColumnSetup
  36. ref="child"
  37. :tableModalTableDataHeader="tableModalTableDataHeader"
  38. :formModalColumns="formModalColumns"
  39. :tableModalColumns="tableModalColumns"
  40. :tableModalTableData="tableModalTableData"
  41. :showModal="showModal"
  42. @event1="change($event)"
  43. @handleModalOk="handleModalOk"
  44. />
  45. <Modal
  46. v-model="searchModal"
  47. title="查找"
  48. @on-ok="searchModalOk"
  49. @on-cancel="searchModal = false"
  50. width="700"
  51. >
  52. <Form :model="formItem" :label-width="85">
  53. <Row
  54. style="
  55. display: flex;
  56. justify-content: center;
  57. border-bottom: 1px solid #e8eaec;
  58. padding: 20px;
  59. "
  60. >
  61. <Col span="11">
  62. <Form-item label="选择器">
  63. <Select
  64. clearable
  65. v-model="formItem.select"
  66. placeholder="请选择"
  67. style="width: 200px"
  68. >
  69. <Option value="beijing">北京市</Option>
  70. <Option value="shanghai">上海市</Option>
  71. <Option value="shenzhen">深圳市</Option>
  72. </Select>
  73. </Form-item>
  74. </Col>
  75. <Col span="11">
  76. <Form-item label="日期控件">
  77. <Date-picker
  78. clearable
  79. :value="formItem.date"
  80. format="yyyy/MM/dd"
  81. type="daterange"
  82. placement="bottom-end"
  83. placeholder="选择日期"
  84. style="width: 200px"
  85. ></Date-picker>
  86. </Form-item>
  87. </Col>
  88. </Row>
  89. <div
  90. style="
  91. display: flex;
  92. flex-wrap: wrap;
  93. justify-content: space-around;
  94. padding: 20px;
  95. border-bottom: 1px solid #e8eaec;
  96. "
  97. >
  98. <Form-item label="订单编号">
  99. <Input
  100. clearable
  101. v-model="formItem.order_no"
  102. placeholder="请输入订单编号"
  103. style="width: 200px"
  104. ></Input>
  105. </Form-item>
  106. <Form-item label="项目名称">
  107. <Input
  108. clearable
  109. v-model="formItem.project_name"
  110. placeholder="请输入项目名称"
  111. style="width: 200px"
  112. ></Input>
  113. </Form-item>
  114. <Form-item label="对方单号">
  115. <Input
  116. clearable
  117. v-model="formItem.adverse_odd"
  118. placeholder="请输入对方单号"
  119. style="width: 200px"
  120. ></Input>
  121. </Form-item>
  122. <Form-item label="业务员">
  123. <Input
  124. clearable
  125. v-model="formItem.salesman"
  126. placeholder="请输入业务员"
  127. style="width: 200px"
  128. ></Input>
  129. </Form-item>
  130. <Form-item label="客户名称">
  131. <Select
  132. clearable
  133. v-model="formItem.customer_name"
  134. placeholder="请选择"
  135. style="width: 200px"
  136. >
  137. <Option value="beijing">北京市</Option>
  138. <Option value="shanghai">上海市</Option>
  139. <Option value="shenzhen">深圳市</Option>
  140. </Select>
  141. </Form-item>
  142. <Form-item label="产品名称">
  143. <Input
  144. clearable
  145. v-model="formItem.product_name"
  146. placeholder="请输入产品名称"
  147. style="width: 200px"
  148. ></Input>
  149. </Form-item>
  150. <Form-item label="客户地区">
  151. <Select
  152. clearable
  153. v-model="formItem.client_area"
  154. placeholder="请选择"
  155. style="width: 200px"
  156. >
  157. <Option value="beijing">北京市</Option>
  158. <Option value="shanghai">上海市</Option>
  159. <Option value="shenzhen">深圳市</Option>
  160. </Select>
  161. </Form-item>
  162. <Form-item label="楼层编号">
  163. <Input
  164. clearable
  165. v-model="formItem.floor_number"
  166. placeholder="请输入楼层编号"
  167. style="width: 200px"
  168. ></Input>
  169. </Form-item>
  170. <Form-item label="审核状态">
  171. <Select
  172. clearable
  173. v-model="formItem.audit_status"
  174. placeholder="请选择"
  175. style="width: 200px"
  176. >
  177. <Option value="beijing">北京市</Option>
  178. <Option value="shanghai">上海市</Option>
  179. <Option value="shenzhen">深圳市</Option>
  180. </Select>
  181. </Form-item>
  182. <Form-item label="通用产品码">
  183. <Input
  184. clearable
  185. v-model="formItem.universal_product_code"
  186. placeholder="请输入通用产品码 "
  187. style="width: 200px"
  188. ></Input>
  189. </Form-item>
  190. </div>
  191. <div>
  192. <Form-item label="">
  193. <Checkbox-group
  194. v-model="formItem.checkbox"
  195. style="padding-top: 20px"
  196. >
  197. <Checkbox style="width: 100px" label="尺寸确认"></Checkbox>
  198. <Checkbox style="width: 100px" label="发货"></Checkbox>
  199. <Checkbox style="width: 100px" label="分箱"></Checkbox>
  200. <Checkbox style="width: 100px" label="套料"></Checkbox>
  201. <Checkbox style="width: 100px" label="流程卡"></Checkbox>
  202. <Checkbox style="width: 100px" label="工艺"></Checkbox>
  203. <Checkbox style="width: 100px" label="收款"></Checkbox>
  204. <Checkbox style="width: 100px" label="已下达"></Checkbox>
  205. <Checkbox style="width: 100px" label="价格审核"></Checkbox>
  206. <Checkbox style="width: 100px" label="入库"></Checkbox>
  207. <Checkbox style="width: 100px" label="外协"></Checkbox>
  208. </Checkbox-group>
  209. </Form-item>
  210. </div>
  211. </Form>
  212. </Modal>
  213. </div>
  214. </template>
  215. <script>
  216. import TopTitle from "../../components/TopTitle/index";
  217. import ColumnSetup from "../../components/columnSetup/index.vue";
  218. import { dataInJs } from "./index.js";
  219. export default {
  220. components: {
  221. TopTitle,
  222. ColumnSetup,
  223. },
  224. data() {
  225. return {
  226. arrList: dataInJs(),
  227. ifCheckAll: false,
  228. formItem: {},
  229. searchModal: false,
  230. showModal: false,
  231. selectData: [],
  232. searchData: {
  233. start_time: "",
  234. end_time: "",
  235. },
  236. pageSize: 10,
  237. pageIndex: 1,
  238. total: 0,
  239. tableData: [],
  240. pointList: [
  241. {
  242. value: "1",
  243. label: "升序",
  244. },
  245. {
  246. value: "2",
  247. label: "降序",
  248. },
  249. ],
  250. tableModalTableDataHeader: [
  251. {
  252. is_show: false,
  253. key: "order_no",
  254. value: "订单编号",
  255. title: "订单编号",
  256. },
  257. {
  258. is_show: true,
  259. key: "order_type",
  260. value: "订单类型",
  261. title: "项目名称",
  262. },
  263. {
  264. is_show: true,
  265. key: "order_status",
  266. value: "订单状态",
  267. title: "订单状态",
  268. },
  269. {
  270. is_show: true,
  271. key: "salesman",
  272. value: "业务员",
  273. title: "业务员 ",
  274. },
  275. {
  276. is_show: true,
  277. key: "warning_state",
  278. value: "紧急程度",
  279. title: "紧急程度",
  280. },
  281. {
  282. is_show: true,
  283. key: "crt_time",
  284. value: "订单创建时间",
  285. title: "订单创建时间",
  286. },
  287. {
  288. is_show: true,
  289. key: "project_name",
  290. value: "项目名称",
  291. title: "项目名称",
  292. },
  293. {
  294. is_show: true,
  295. key: "start_time",
  296. value: "订单开始日期",
  297. title: "订单开始日期",
  298. },
  299. {
  300. is_show: true,
  301. key: "end_time",
  302. value: "订单交付日期",
  303. title: "订单交付日期",
  304. },
  305. {
  306. is_show: true,
  307. key: "complete_rate",
  308. value: "生产进度",
  309. title: "生产进度",
  310. },
  311. {
  312. is_show: true,
  313. key: "delivery_date",
  314. value: "预估交付日期",
  315. title: "预估交付日期",
  316. },
  317. {
  318. is_show: true,
  319. key: "delivery_date",
  320. value: "操作",
  321. title: "操作",
  322. },
  323. ],
  324. tableColumns: [
  325. {
  326. title: "id",
  327. align: "center",
  328. minWidth: 100,
  329. key: "id",
  330. },
  331. {
  332. title: "尺寸确认",
  333. align: "center",
  334. width: 100,
  335. key: "size",
  336. is_show: true,
  337. render: (h, params) => {
  338. return h("div", [
  339. h("Checkbox", {
  340. props: {
  341. value: params.row.size == 0 ? true : false,
  342. disabled: true,
  343. },
  344. }),
  345. ]);
  346. },
  347. },
  348. {
  349. title: "订单编号",
  350. align: "center",
  351. width: 100,
  352. key: "size",
  353. is_show: true,
  354. render: (h, params) => {
  355. return h("div", [
  356. h("Checkbox", {
  357. props: {
  358. value: params.row.size == 0 ? true : false,
  359. disabled: true,
  360. },
  361. }),
  362. ]);
  363. },
  364. },
  365. {
  366. title: "工艺",
  367. align: "center",
  368. width: 80,
  369. key: "craft",
  370. render: (h, params) => {
  371. return h("div", [
  372. h("Checkbox", {
  373. props: {
  374. value: params.row.craft == 0 ? true : false,
  375. disabled: true,
  376. },
  377. }),
  378. ]);
  379. },
  380. },
  381. {
  382. title: "分箱",
  383. align: "center",
  384. width: 80,
  385. key: "binning",
  386. render: (h, params) => {
  387. return h("div", [
  388. h("Checkbox", {
  389. props: {
  390. value: params.row.binning == 0 ? true : false,
  391. disabled: true,
  392. },
  393. }),
  394. ]);
  395. },
  396. },
  397. {
  398. title: "已下达",
  399. align: "center",
  400. width: 90,
  401. key: "processed",
  402. render: (h, params) => {
  403. return h("div", [
  404. h("Checkbox", {
  405. props: {
  406. value: params.row.processed == 0 ? true : false,
  407. disabled: true,
  408. },
  409. }),
  410. ]);
  411. },
  412. },
  413. {
  414. title: "流程卡",
  415. align: "center",
  416. width: 90,
  417. key: "flowCard",
  418. render: (h, params) => {
  419. return h("div", [
  420. h("Checkbox", {
  421. props: {
  422. value: params.row.flowCard == 0 ? true : false,
  423. disabled: true,
  424. },
  425. }),
  426. ]);
  427. },
  428. },
  429. {
  430. title: "入库",
  431. align: "center",
  432. width: 80,
  433. key: "entry",
  434. render: (h, params) => {
  435. return h("div", [
  436. h("Checkbox", {
  437. props: {
  438. value: params.row.entry == 0 ? true : false,
  439. disabled: true,
  440. },
  441. }),
  442. ]);
  443. },
  444. },
  445. {
  446. title: "发货",
  447. align: "center",
  448. width: 80,
  449. key: "shipments",
  450. render: (h, params) => {
  451. return h("div", [
  452. h("Checkbox", {
  453. props: {
  454. value: params.row.shipments == 0 ? true : false,
  455. disabled: true,
  456. },
  457. }),
  458. ]);
  459. },
  460. },
  461. {
  462. title: "收款",
  463. align: "center",
  464. width: 90,
  465. key: "gathering",
  466. render: (h, params) => {
  467. return h("div", [
  468. h("Checkbox", {
  469. props: {
  470. value: params.row.gathering == 0 ? true : false,
  471. disabled: true,
  472. },
  473. }),
  474. ]);
  475. },
  476. },
  477. {
  478. title: "套料",
  479. align: "center",
  480. width: 90,
  481. key: "jacking",
  482. render: (h, params) => {
  483. return h("div", [
  484. h("Checkbox", {
  485. props: {
  486. value: params.row.jacking == 0 ? true : false,
  487. disabled: true,
  488. },
  489. }),
  490. ]);
  491. },
  492. },
  493. {
  494. title: "价格审核",
  495. align: "center",
  496. width: 100,
  497. key: "priceReview",
  498. render: (h, params) => {
  499. return h("div", [
  500. h("Checkbox", {
  501. props: {
  502. value: params.row.priceReview == 0 ? true : false,
  503. disabled: true,
  504. },
  505. }),
  506. ]);
  507. },
  508. },
  509. {
  510. title: "外协",
  511. align: "center",
  512. width: 90,
  513. key: "outsource",
  514. render: (h, params) => {
  515. return h("div", [
  516. h("Checkbox", {
  517. props: {
  518. value: params.row.outsource == 0 ? true : false,
  519. disabled: true,
  520. },
  521. }),
  522. ]);
  523. },
  524. },
  525. {
  526. title: "分厂",
  527. align: "center",
  528. minWidth: 100,
  529. key: "branch",
  530. },
  531. {
  532. title: "MES",
  533. align: "center",
  534. minWidth: 100,
  535. key: "MSE",
  536. },
  537. {
  538. title: "单据状态",
  539. align: "center",
  540. minWidth: 100,
  541. key: "receiptsState",
  542. render: (h, params) => {
  543. return h(
  544. "span",
  545. params.row.receiptsState == 0 ? "未审核" : "已审核"
  546. );
  547. },
  548. },
  549. {
  550. title: "客户编号",
  551. align: "center",
  552. minWidth: 100,
  553. key: "customerId",
  554. },
  555. {
  556. title: "客户名称",
  557. align: "center",
  558. minWidth: 100,
  559. key: "customerName",
  560. },
  561. {
  562. title: "地区",
  563. align: "center",
  564. minWidth: 100,
  565. key: "region",
  566. },
  567. {
  568. title: "工程ID",
  569. align: "center",
  570. minWidth: 100,
  571. key: "projectId",
  572. },
  573. {
  574. title: "工程名称",
  575. align: "center",
  576. minWidth: 100,
  577. key: "projectName",
  578. },
  579. {
  580. title: "合同编号",
  581. align: "center",
  582. minWidth: 100,
  583. key: "contractNumber",
  584. },
  585. {
  586. title: "对方编号",
  587. align: "center",
  588. minWidth: 100,
  589. key: "adverseNumber",
  590. },
  591. {
  592. title: "包装方式",
  593. align: "center",
  594. minWidth: 100,
  595. key: "mannerPacking",
  596. },
  597. {
  598. title: "订单类型",
  599. align: "center",
  600. minWidth: 100,
  601. key: "orderType",
  602. },
  603. {
  604. title: "铝条方式",
  605. align: "center",
  606. minWidth: 100,
  607. key: "aluminiumType",
  608. },
  609. {
  610. title: "业务员",
  611. align: "center",
  612. minWidth: 100,
  613. key: "salesman",
  614. },
  615. {
  616. title: "联系人",
  617. align: "center",
  618. minWidth: 100,
  619. key: "linkman",
  620. },
  621. {
  622. title: "联系电话",
  623. align: "center",
  624. minWidth: 100,
  625. key: "phone",
  626. },
  627. {
  628. title: "报表日期",
  629. align: "center",
  630. minWidth: 120,
  631. key: "reportDate",
  632. render: (h, params) => {
  633. const { row } = params;
  634. return h("span", {}, this.func.replaceDateNoHMS(row.reportDate));
  635. },
  636. },
  637. {
  638. title: "总周长",
  639. align: "center",
  640. minWidth: 100,
  641. key: "perimeter",
  642. },
  643. {
  644. title: "总数量",
  645. align: "center",
  646. minWidth: 100,
  647. key: "total",
  648. },
  649. {
  650. title: "总结算面积",
  651. align: "center",
  652. minWidth: 100,
  653. key: "settlementArea",
  654. },
  655. {
  656. title: "总金额",
  657. align: "center",
  658. minWidth: 100,
  659. key: "totalMoney",
  660. },
  661. {
  662. title: "收款金额",
  663. align: "center",
  664. minWidth: 100,
  665. key: "receivableAmount",
  666. },
  667. {
  668. title: "折扣金额",
  669. align: "center",
  670. minWidth: 100,
  671. key: "discountAmount",
  672. },
  673. {
  674. title: "欠款金额",
  675. align: "center",
  676. minWidth: 100,
  677. key: "debtAmount",
  678. },
  679. {
  680. title: "总实际面积",
  681. align: "center",
  682. minWidth: 100,
  683. key: "actualArea",
  684. },
  685. {
  686. title: "工艺员",
  687. align: "center",
  688. minWidth: 100,
  689. key: "technologist",
  690. },
  691. {
  692. title: "打印次数",
  693. align: "center",
  694. minWidth: 100,
  695. key: "printTime",
  696. },
  697. {
  698. title: "标签次数",
  699. align: "center",
  700. minWidth: 100,
  701. key: "labelTime",
  702. },
  703. {
  704. title: "制单员",
  705. align: "center",
  706. minWidth: 100,
  707. key: "makingPart",
  708. },
  709. {
  710. title: "制单日期",
  711. align: "center",
  712. minWidth: 120,
  713. key: "documentationDate",
  714. render: (h, params) => {
  715. const { row } = params;
  716. return h(
  717. "span",
  718. {},
  719. this.func.replaceDateNoHMS(row.documentationDate)
  720. );
  721. },
  722. },
  723. {
  724. title: "审核人",
  725. align: "center",
  726. minWidth: 100,
  727. key: "auditor",
  728. },
  729. {
  730. title: "审核日期",
  731. align: "center",
  732. minWidth: 120,
  733. key: "approvalDate",
  734. render: (h, params) => {
  735. const { row } = params;
  736. return h("span", {}, this.func.replaceDateNoHMS(row.approvalDate));
  737. },
  738. },
  739. {
  740. title: "交货日期",
  741. align: "center",
  742. minWidth: 120,
  743. key: "deliveryDate",
  744. render: (h, params) => {
  745. const { row } = params;
  746. return h("span", {}, this.func.replaceDateNoHMS(row.deliveryDate));
  747. },
  748. },
  749. {
  750. title: "生产交期",
  751. align: "center",
  752. minWidth: 120,
  753. key: "producedDate",
  754. render: (h, params) => {
  755. const { row } = params;
  756. return h("span", {}, this.func.replaceDateNoHMS(row.producedDate));
  757. },
  758. },
  759. {
  760. title: "送货地址",
  761. align: "center",
  762. minWidth: 100,
  763. key: "deliveryAddress",
  764. },
  765. {
  766. title: "附件",
  767. align: "center",
  768. minWidth: 100,
  769. key: "accessory",
  770. },
  771. {
  772. title: "加工要求",
  773. align: "center",
  774. minWidth: 100,
  775. key: "process",
  776. },
  777. {
  778. title: "结算币种",
  779. align: "center",
  780. minWidth: 100,
  781. key: "settleAccounts",
  782. },
  783. {
  784. title: "付款条件",
  785. align: "center",
  786. minWidth: 100,
  787. key: "paymentClause",
  788. },
  789. {
  790. title: "加工要求",
  791. align: "center",
  792. minWidth: 100,
  793. key: "process",
  794. },
  795. {
  796. title: "特别备注",
  797. align: "center",
  798. minWidth: 100,
  799. key: "specialNote",
  800. },
  801. {
  802. title: "备注",
  803. align: "center",
  804. minWidth: 100,
  805. key: "remark",
  806. },
  807. {
  808. title: "CrmId",
  809. align: "center",
  810. minWidth: 100,
  811. key: "crmId",
  812. },
  813. {
  814. title: "来源",
  815. align: "center",
  816. minWidth: 100,
  817. key: "source",
  818. },
  819. {
  820. title: "操作",
  821. align: "center",
  822. minWidth: 100,
  823. slot: "set",
  824. },
  825. ],
  826. newTableColumns: [],
  827. formModalColumns: [
  828. {
  829. type: "selection",
  830. width: 55,
  831. align: "center",
  832. },
  833. {
  834. title: "全部字段",
  835. align: "center",
  836. key: "value",
  837. minWidth: 100,
  838. },
  839. {
  840. title: "展示名称",
  841. align: "center",
  842. key: "title",
  843. minWidth: 100,
  844. slot: "title",
  845. },
  846. {
  847. title: "排序方式",
  848. align: "center",
  849. key: "sortord",
  850. minWidth: 100,
  851. slot: "sortord",
  852. },
  853. {
  854. title: "排序优先级",
  855. align: "center",
  856. key: "priority",
  857. minWidth: 100,
  858. render: (h, params) => {
  859. return h(
  860. "Select",
  861. {
  862. props: {
  863. value: params.row.priority,
  864. },
  865. on: {
  866. "on-change": (event) => {
  867. this.formModalColumns[params.index][params.column.key] =
  868. event; //获取编辑行的inde和编辑字段名,对表格数据进行重新赋值
  869. },
  870. },
  871. },
  872. this.pointList.map(function (type) {
  873. return h(
  874. "Option",
  875. {
  876. props: {
  877. value: type.value,
  878. key: type.label,
  879. },
  880. },
  881. type.label
  882. );
  883. })
  884. );
  885. },
  886. },
  887. ],
  888. tableModalTableData: [
  889. {
  890. is_show: true,
  891. key: "order_no",
  892. value: "订单编号",
  893. title: "订单编号",
  894. },
  895. {
  896. is_show: true,
  897. key: "order_type",
  898. value: "订单类型",
  899. title: "项目名称",
  900. },
  901. {
  902. is_show: true,
  903. key: "order_status",
  904. value: "订单状态",
  905. title: "订单状态",
  906. },
  907. {
  908. is_show: true,
  909. key: "salesman",
  910. value: "业务员",
  911. title: "业务员 ",
  912. },
  913. {
  914. is_show: true,
  915. key: "warning_state",
  916. value: "紧急程度",
  917. title: "紧急程度",
  918. },
  919. {
  920. is_show: true,
  921. key: "crt_time",
  922. value: "订单创建时间",
  923. title: "订单创建时间",
  924. },
  925. {
  926. is_show: true,
  927. key: "project_name",
  928. value: "项目名称",
  929. title: "项目名称",
  930. },
  931. {
  932. is_show: true,
  933. key: "start_time",
  934. value: "订单开始日期",
  935. title: "订单开始日期",
  936. },
  937. {
  938. is_show: true,
  939. key: "end_time",
  940. value: "订单交付日期",
  941. title: "订单交付日期",
  942. },
  943. {
  944. is_show: true,
  945. key: "complete_rate",
  946. value: "生产进度",
  947. title: "生产进度",
  948. },
  949. {
  950. is_show: true,
  951. key: "delivery_date",
  952. value: "预估交付日期",
  953. title: "预估交付日期",
  954. },
  955. ],
  956. tableModalColumns: [
  957. {
  958. type: "selection",
  959. width: 55,
  960. align: "center",
  961. },
  962. {
  963. title: "字段名",
  964. align: "center",
  965. key: "value",
  966. minWidth: 100,
  967. },
  968. {
  969. title: "展示名称",
  970. align: "center",
  971. key: "title",
  972. minWidth: 100,
  973. slot: "screenTitle",
  974. },
  975. ],
  976. };
  977. },
  978. watch: {
  979. ifCheckAll(newValue) {
  980. console.log(newValue);
  981. this.$nextTick(() => {
  982. this.$refs.selection1.selectAll(newValue);
  983. console.log(this.$refs.selection1, "测试");
  984. });
  985. },
  986. },
  987. mounted() {
  988. this.axios({
  989. url: "/PalDW/Pal.E8.BusinessRulesLayer.OpenAPI.RightMrg.remote",
  990. //设置请求头请求格式为JSON
  991. //设置token 其中K名要和后端协调好
  992. method: "post",
  993. data: { Method: "GetServerNow", Params: [] },
  994. headers: { "Content-Type": "cjq", "Access-Control-Allow-Origin": "*" },
  995. }).then((res) => {});
  996. // function xhr(){
  997. // let xhr = new XMLHttpRequest();
  998. // xhr.onreadystatechange = function() {
  999. // if (xhr.readyState == 4) {
  1000. // if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
  1001. // console.log(xhr.responseText);
  1002. // } else {
  1003. // alert("Request was unsuccessful: " + xhr.status);
  1004. // }
  1005. // }
  1006. // };
  1007. // xhr.setRequestHeader({'Content-Type': 'application/json'});
  1008. // xhr.open("post", "http://mes.im2x.com:9012/PalDW/Pal.E8.BusinessRulesLayer.OpenAPI.RightMrg.remote", true);
  1009. // xhr.send(null);};
  1010. // xhr();
  1011. this.tableData = [
  1012. {
  1013. id: 1,
  1014. size: 0,
  1015. craft: 0, //工艺
  1016. binning: 0, // 分箱
  1017. processed: 1, //已下达
  1018. flowCard: 0, //流程卡
  1019. entry: 1, //入库
  1020. shipments: 0, //发货
  1021. gathering: 0, //收款
  1022. jacking: 1, // 套料
  1023. priceReview: 1, //价格审核
  1024. outsource: 1, // 外协
  1025. branch: "分厂",
  1026. MSE: "这是MSE",
  1027. receiptsState: 1, // 0 未审核 1 已审核
  1028. customerId: "这是客户编号",
  1029. customerName: "这是客户名称",
  1030. region: "这是地区",
  1031. projectId: "这是工程ID",
  1032. projectName: "这是工程名称",
  1033. receiptNumber: "这是单据编号",
  1034. contractNumber: "这是合同编号",
  1035. adverseNumber: "这是对方编号",
  1036. mannerPacking: "这是包装方式",
  1037. orderType: 0, //0 普通订单
  1038. aluminiumType: "这是铝条方式",
  1039. salesman: "这是业务员",
  1040. linkman: "这是联系人",
  1041. phone: "17886512521",
  1042. reportDate: "1652852478", //报表日期
  1043. perimeter: "145.123", //总周长
  1044. total: "", //总数量
  1045. settlementArea: "175.21331", //总结算面积
  1046. totalMoney: "500", //总金额
  1047. receivableAmount: "收款金额",
  1048. discountAmount: "这是折扣金额",
  1049. debtAmount: "这是欠款金额",
  1050. actualArea: "这是总实际面积",
  1051. technologist: "这是工艺员",
  1052. printTime: 0, //打印次数
  1053. labelTime: 0, //标签次数
  1054. makingPart: "这是制单员",
  1055. documentationDate: "1652852478", //制单日期
  1056. auditor: "这时审核人", // 审核人
  1057. approvalDate: "1652852478", // 审核日期
  1058. deliveryDate: "1652852478", //交货日期
  1059. producedDate: "1652852478", //生产交期
  1060. deliveryAddress: "这是送货地址",
  1061. accessory: "这是附件",
  1062. process: "这是加工要求",
  1063. settleAccounts: "人民币",
  1064. paymentClause: "这是付款条件",
  1065. specialNote: "这是特别备注",
  1066. remark: "这是备注",
  1067. crmId: "这是crmid",
  1068. source: "这是来源",
  1069. },
  1070. ];
  1071. this.data();
  1072. console.log(dataInJs());
  1073. },
  1074. methods: {
  1075. //点击栏目设置按钮
  1076. showModalTrue() {
  1077. this.showModal = true;
  1078. this.$refs.child.showModalTrue();
  1079. },
  1080. change(data) {
  1081. this.showModal = data;
  1082. },
  1083. data() {
  1084. this.newTableColumns = this.arrList;
  1085. let arr = [];
  1086. this.tableColumns.forEach((e) => {
  1087. this.newTableColumns.forEach((a) => {
  1088. if (e.key == a.key) {
  1089. if (a.ifShow == true) {
  1090. arr.push(e);
  1091. }
  1092. }
  1093. });
  1094. });
  1095. this.tableColumns = arr;
  1096. this.tableColumns.sort((a, b) => {
  1097. return a.sort - b.sort;
  1098. });
  1099. },
  1100. changeSize() {},
  1101. changePage() {},
  1102. //点击栏目设置按钮
  1103. showModalTrue() {
  1104. this.showModal = true;
  1105. this.$refs.child.showModalTrue();
  1106. },
  1107. handleModalOk(row1, row2) {
  1108. console.log(row1, "这个是checkedListHeader");
  1109. console.log(row2, "这是checkedList");
  1110. },
  1111. searchModalOk() {
  1112. console.log("查找");
  1113. },
  1114. select(e) {
  1115. this.selectData = e;
  1116. },
  1117. // save() {
  1118. // if (this.selectData.length == 0) {
  1119. // return this.$Message.warning("请先选择数据!");
  1120. // }
  1121. // this.selectData.forEach((v, idx) => {
  1122. // v.index = idx + 1;
  1123. // });
  1124. // this.axios.post("/api/save", { data: this.selectData }).then((res) => {
  1125. // if (res.code == 200) {
  1126. // this.$Message.success(res.msg);
  1127. // this.searchData = { start_time: "", end_time: "" };
  1128. // this.tableData = [];
  1129. // this.selectData = [];
  1130. // }
  1131. // });
  1132. // },
  1133. // initData() {
  1134. // this.axios.post("/api/build_list", { ...this.searchData }).then((res) => {
  1135. // this.tableData = res.data;
  1136. // this.selectData = [];
  1137. // });
  1138. // },
  1139. delSelectData(type) {
  1140. this.$router.push({ path: "/cms/product/particulars", query: { type } });
  1141. },
  1142. },
  1143. };
  1144. </script>
  1145. <style lang="scss" scoped>
  1146. .form_item {
  1147. margin-top: 20px;
  1148. display: flex;
  1149. flex-wrap: wrap;
  1150. }
  1151. .content_body_page {
  1152. text-align: center;
  1153. }
  1154. .content {
  1155. height: 90%;
  1156. overflow: auto;
  1157. }
  1158. .content_body_page {
  1159. text-align: center;
  1160. margin-top: 20px;
  1161. }
  1162. </style>