You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1791 lines
54 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. <template>
  2. <div class="customer-css" >
  3. <!-- 菜单按钮区域 -->
  4. <fieldset class="customer-field" style="width: 612px; padding: 0.35em 0.75em 0.425em;" >
  5. <legend>菜单</legend>
  6. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -2px;" >
  7. <el-form-item :label="''">
  8. <el-button type="primary" style="margin-left: 30px; margin-bottom: 5px;">列表</el-button>
  9. </el-form-item>
  10. <el-form-item :label="''">
  11. <el-button type="primary" style="margin-left: 10px; margin-bottom: 5px;">关闭</el-button>
  12. </el-form-item>
  13. <el-form-item :label="''">
  14. <el-button type="primary" @click="refreshPageTables()" style="margin-left: 10px; margin-bottom: 5px;">查询</el-button>
  15. </el-form-item>
  16. </el-form>
  17. </fieldset>
  18. <!-- 排序规则 -->
  19. <fieldset class="customer-field" style="margin-left: 640px; margin-top: -45px; width: 135px;" >
  20. <legend>排序</legend><br>
  21. <el-form :inline="true" style="margin-top: -10px; margin-bottom: 15px;" label-position="top" label-width="100px" >
  22. <el-form-item :label="''" style="margin-bottom: 5px;">
  23. <el-radio-group v-model="searchData.sortField">
  24. <el-radio label="needDate">要求完工日期</el-radio>
  25. <el-radio label="orderNo">订单号</el-radio>
  26. <el-radio label="partNo">产品编码</el-radio>
  27. </el-radio-group>
  28. </el-form-item>
  29. </el-form>
  30. </fieldset>
  31. <!-- 查询时间和产品 -->
  32. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -15px;" >
  33. <el-form-item :label="'录入日期:'">
  34. <el-date-picker class="el-time-width"
  35. style=""
  36. v-model="searchData.enterTime1"
  37. value-format="yyyy-MM-dd">
  38. </el-date-picker>
  39. </el-form-item>
  40. <el-form-item :label="''" style="margin-top: -10px;">
  41. <el-date-picker class="el-time-width"
  42. style="margin-top: 30px;"
  43. v-model="searchData.enterTime2"
  44. value-format="yyyy-MM-dd" placeholder="">
  45. </el-date-picker>
  46. </el-form-item>
  47. <el-form-item :label="'要求完工日期:'">
  48. <el-date-picker class="el-time-width"
  49. style=""
  50. v-model="searchData.needTime1"
  51. value-format="yyyy-MM-dd" placeholder="">
  52. </el-date-picker>
  53. </el-form-item>
  54. <el-form-item :label="''" style="margin-top: -10px;">
  55. <el-date-picker class="el-time-width"
  56. style="margin-top: 30px;"
  57. v-model="searchData.needTime2"
  58. value-format="yyyy-MM-dd" placeholder="">
  59. </el-date-picker>
  60. </el-form-item>
  61. <el-form-item :label="'产成品编码:'">
  62. <el-input v-model="searchData.partNo" style="width: 120px"></el-input>
  63. </el-form-item>
  64. </el-form>
  65. <!-- 排产信息 -->
  66. <fieldset class="customer-field" style="margin-top: 10px; width: 612px; padding: 0.125em;" >
  67. <legend>排产信息</legend>
  68. <!-- 排产日期 -->
  69. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 5px;">
  70. <el-form-item :label="'排产日期:'">
  71. <el-date-picker class="el-time-width"
  72. style=""
  73. v-model="searchData.scheduleDate"
  74. value-format="yyyy-MM-dd">
  75. </el-date-picker>
  76. </el-form-item>
  77. <el-form-item :label="''" style="margin-top: -10px;">
  78. <el-time-picker
  79. format="HH:mm"
  80. arrow-control
  81. style="margin-top: 30px; width: 65px"
  82. v-model="searchData.timePeriod"
  83. value-format="HH:mm">
  84. </el-time-picker>
  85. </el-form-item>
  86. <el-form-item :label="''" style="margin-top: -10px; margin-left: -5px;">
  87. <el-checkbox style="margin-top: 28px;" label="仅查看前道工序已排产的工序" name="type"></el-checkbox>
  88. </el-form-item>
  89. </el-form>
  90. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 10px;">
  91. <el-form-item :label="'工厂编号:'">
  92. <el-input v-model="searchData.site" style="width: 85px"></el-input>
  93. </el-form-item>
  94. <el-form-item :label="'机台编号:'">
  95. <el-input v-model="searchData.resourceId" style="width: 120px"></el-input>
  96. </el-form-item>
  97. <el-form-item :label="'加工中心编码:'">
  98. <el-input v-model="searchData.workCenterNo" style="width: 120px"></el-input>
  99. </el-form-item>
  100. </el-form>
  101. <!-- 记录示意图 -->
  102. <fieldset style="margin-left: 380px; margin-top: -88px; width: 180px;">
  103. <legend>记录示意图</legend>
  104. <el-form :inline="true" label-position="top" label-width="100px" class="customer-card">
  105. <el-form-item :label="'已关闭,已达数量'">
  106. <el-card class="customer-el-card customer-el-card-pink"></el-card>
  107. </el-form-item>
  108. <el-form-item :label="'已关闭,未达数量'">
  109. <el-card class="customer-el-card customer-el-card-orange"></el-card>
  110. </el-form-item>
  111. <el-form-item :label="'未关闭,未达数量'">
  112. <el-card class="customer-el-card customer-el-card-blue"></el-card>
  113. </el-form-item>
  114. </el-form>
  115. </fieldset>
  116. <!-- 等待订单 -->
  117. <fieldset style="margin-left: 585px; margin-top: -93px; width: 180px; margin-bottom: 5px;">
  118. <legend>等待订单</legend>
  119. <el-form :inline="true" label-position="left" label-width="100px" class="customer-border">
  120. <el-form-item :label="'等待时间(分钟):'" >
  121. <el-input type="number" v-model="searchData.waitTimes"
  122. style="margin-top: 3px; width: 48px;">
  123. </el-input>
  124. </el-form-item>
  125. <el-form-item :label="''" style="text-align: center; margin-top: 15px; margin-bottom: 9px;">
  126. <el-button type="primary" style="margin-left: 30px; margin-top: 10px; margin-bottom: 15px;">插入等待订单</el-button>
  127. </el-form-item>
  128. </el-form>
  129. </fieldset>
  130. </fieldset >
  131. <!-- 机台班次信息 -->
  132. <el-main style="margin-left: 770px; margin-top: -255px; width: 452px;">
  133. <el-table
  134. height="235"
  135. :data="resourceShiftList"
  136. border
  137. v-loading="dataListLoading"
  138. style="width: 100%;">
  139. <el-table-column
  140. v-for="(item,index) in columnTimeArray" :key="index"
  141. :sortable="item.columnSortable"
  142. :prop="item.columnProp"
  143. :header-align="item.headerAlign"
  144. :show-overflow-tooltip="item.showOverflowTooltip"
  145. :align="item.align"
  146. :fixed="item.fixed"
  147. :width="item.columnWidth"
  148. :label="item.columnLabel">
  149. <template slot-scope="scope">
  150. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  151. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  152. style="width: 100px; height: 80px"/></span>
  153. </template>
  154. </el-table-column>
  155. </el-table>
  156. </el-main>
  157. <!-- 工单主表信息 -->
  158. <el-main style="margin-left: -20px; margin-top: -35px; width: 104%;">
  159. <el-form :inline="true" label-position="top" label-width="100px">
  160. <el-form-item :label="'主记录'">
  161. </el-form-item>
  162. </el-form>
  163. <el-table
  164. height="120"
  165. :data="shopOrderList"
  166. border
  167. @row-dblclick="startScheduleOperation(row, $event)"
  168. v-loading="dataListLoading"
  169. style="margin-top: -20px; width: 100%;">
  170. <el-table-column
  171. v-for="(item,index) in columnOrderArray" :key="index"
  172. :sortable="item.columnSortable"
  173. :prop="item.columnProp"
  174. :header-align="item.headerAlign"
  175. :show-overflow-tooltip="item.showOverflowTooltip"
  176. :align="item.align"
  177. :fixed="item.fixed"
  178. :width="item.columnWidth"
  179. :label="item.columnLabel">
  180. <template slot-scope="scope">
  181. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  182. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  183. style="width: 100px; height: 80px"/></span>
  184. </template>
  185. </el-table-column>
  186. </el-table>
  187. </el-main>
  188. <!-- 工单明细表信息 -->
  189. <el-main style="margin-left: -20px; margin-top: -35px; width: 104%;">
  190. <el-form :inline="true" label-position="top" label-width="100px">
  191. <el-form-item :label="'明细记录'">
  192. </el-form-item>
  193. </el-form>
  194. <el-table
  195. height="135"
  196. :data="orderScheduleList"
  197. border
  198. v-loading="dataListLoading"
  199. style="margin-top: -20px; width: 100%;">
  200. <el-table-column
  201. v-for="(item,index) in columnOrderScheduleArray" :key="index"
  202. :sortable="item.columnSortable"
  203. :prop="item.columnProp"
  204. :header-align="item.headerAlign"
  205. :show-overflow-tooltip="item.showOverflowTooltip"
  206. :align="item.align"
  207. :fixed="item.fixed"
  208. :width="item.columnWidth"
  209. :label="item.columnLabel">
  210. <template slot-scope="scope">
  211. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  212. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  213. style="width: 100px; height: 80px"/></span>
  214. </template>
  215. </el-table-column>
  216. </el-table>
  217. </el-main>
  218. </div>
  219. </template>
  220. <script>
  221. import {
  222. getResourceRestList,
  223. getShopOrderList,
  224. getOrderScheduleList,
  225. } from '@/api/schedule/order_schedule.js'
  226. export default {
  227. data() {
  228. return {
  229. height: 200,
  230. modelFlag: false,
  231. modelInputFlag: true,
  232. selectList: [],
  233. searchData: {
  234. site: this.$store.state.user.site,
  235. resourceId: '',
  236. workCenterNo: '',
  237. enterTime1: '',
  238. enterTime2: new Date(),
  239. needTime1: '',
  240. needTime2: new Date(),
  241. scheduleDate: '',
  242. sortField: '',
  243. status: 1,
  244. user: this.$store.state.user.name
  245. },
  246. resourceShiftList: [],
  247. shopOrderList: [],
  248. orderScheduleList: [],
  249. dataListLoading: false,
  250. buttons: {
  251. search: '查询',
  252. },
  253. columnTimeArray: [
  254. {
  255. userId: this.$store.state.user.name,
  256. functionId: 5301,
  257. serialNumber: '5301ShiftShiftDate',
  258. tableId: "5301Shift",
  259. tableName: "工作日历",
  260. columnProp: "shiftDate",
  261. headerAlign: "center",
  262. align: "center",
  263. columnLabel: "日期字段",
  264. columnWidth: 90,
  265. columnHidden: false,
  266. columnImage: false,
  267. columnSortable: false,
  268. sortLv: 0,
  269. status: true,
  270. fixed: false
  271. },
  272. {
  273. userId: this.$store.state.user.name,
  274. functionId: 5301,
  275. serialNumber: '5301ShiftShiftInfo',
  276. tableId: "5301Shift",
  277. tableName: "工作日历",
  278. columnProp: "shiftInfo",
  279. headerAlign: "center",
  280. align: "center",
  281. columnLabel: "休息时间览表",
  282. columnWidth: 320,
  283. columnHidden: false,
  284. columnImage: false,
  285. columnSortable: false,
  286. sortLv: 0,
  287. status: true,
  288. fixed: false
  289. }
  290. ],
  291. columnOrderArray: [
  292. {
  293. userId: this.$store.state.user.name,
  294. functionId: 5301,
  295. serialNumber: '5301OrderOrderNo',
  296. tableId: "5301Order",
  297. tableName: "工单表",
  298. columnProp: "orderNo",
  299. headerAlign: "center",
  300. align: "center",
  301. columnLabel: "订单号",
  302. columnWidth: 80,
  303. columnHidden: false,
  304. columnImage: false,
  305. columnSortable: false,
  306. sortLv: 0,
  307. status: true,
  308. fixed: false
  309. },
  310. {
  311. userId: this.$store.state.user.name,
  312. functionId: 5301,
  313. serialNumber: '5301OrderItemNo',
  314. tableId: "5301Order",
  315. tableName: "工单表",
  316. columnProp: "itemNo",
  317. headerAlign: "center",
  318. align: "center",
  319. columnLabel: "工序号",
  320. columnWidth: 60,
  321. columnHidden: false,
  322. columnImage: false,
  323. columnSortable: false,
  324. sortLv: 0,
  325. status: true,
  326. fixed: false
  327. },
  328. {
  329. userId: this.$store.state.user.name,
  330. functionId: 5301,
  331. serialNumber: '5301OrderItemDesc',
  332. tableId: "5301Order",
  333. tableName: "工单表",
  334. columnProp: "itemDesc",
  335. headerAlign: "center",
  336. align: "center",
  337. columnLabel: "工序名称",
  338. columnWidth: 80,
  339. columnHidden: false,
  340. columnImage: false,
  341. columnSortable: false,
  342. sortLv: 0,
  343. status: true,
  344. fixed: false
  345. },
  346. {
  347. userId: this.$store.state.user.name,
  348. functionId: 5301,
  349. serialNumber: '5301OrderNeedDate',
  350. tableId: "5301Order",
  351. tableName: "工单表",
  352. columnProp: "needDate",
  353. headerAlign: "center",
  354. align: "center",
  355. columnLabel: "要求完工日期",
  356. columnWidth: 80,
  357. columnHidden: false,
  358. columnImage: false,
  359. columnSortable: false,
  360. sortLv: 0,
  361. status: true,
  362. fixed: false
  363. },
  364. {
  365. userId: this.$store.state.user.name,
  366. functionId: 5301,
  367. serialNumber: '5301OrderPartNo',
  368. tableId: "5301Order",
  369. tableName: "工单表",
  370. columnProp: "partNo",
  371. headerAlign: "center",
  372. align: "center",
  373. columnLabel: "产品编码",
  374. columnWidth: 80,
  375. columnHidden: false,
  376. columnImage: false,
  377. columnSortable: false,
  378. sortLv: 0,
  379. status: true,
  380. fixed: false
  381. },
  382. {
  383. userId: this.$store.state.user.name,
  384. functionId: 5301,
  385. serialNumber: '5301OrderCustomerName',
  386. tableId: "5301Order",
  387. tableName: "工单表",
  388. columnProp: "customerName",
  389. headerAlign: "center",
  390. align: "center",
  391. columnLabel: "客户名称",
  392. columnWidth: 80,
  393. columnHidden: false,
  394. columnImage: false,
  395. columnSortable: false,
  396. sortLv: 0,
  397. status: true,
  398. fixed: false
  399. },
  400. {
  401. userId: this.$store.state.user.name,
  402. functionId: 5301,
  403. serialNumber: '5301OrderCustPartNo',
  404. tableId: "5301Order",
  405. tableName: "工单表",
  406. columnProp: "custPartNo",
  407. headerAlign: "center",
  408. align: "center",
  409. columnLabel: "客户产品料号",
  410. columnWidth: 80,
  411. columnHidden: false,
  412. columnImage: false,
  413. columnSortable: false,
  414. sortLv: 0,
  415. status: true,
  416. fixed: false
  417. },
  418. {
  419. userId: this.$store.state.user.name,
  420. functionId: 5301,
  421. serialNumber: '5301OrderPartDesc',
  422. tableId: "5301Order",
  423. tableName: "工单表",
  424. columnProp: "partDesc",
  425. headerAlign: "center",
  426. align: "center",
  427. columnLabel: "产成品名称",
  428. columnWidth: 80,
  429. columnHidden: false,
  430. columnImage: false,
  431. columnSortable: false,
  432. sortLv: 0,
  433. status: true,
  434. fixed: false
  435. },
  436. {
  437. userId: this.$store.state.user.name,
  438. functionId: 5301,
  439. serialNumber: '5301OrderLotSize',
  440. tableId: "5301Order",
  441. tableName: "工单表",
  442. columnProp: "lotSize",
  443. headerAlign: "center",
  444. align: "center",
  445. columnLabel: "订单量",
  446. columnWidth: 80,
  447. columnHidden: false,
  448. columnImage: false,
  449. columnSortable: false,
  450. sortLv: 0,
  451. status: true,
  452. fixed: false
  453. },
  454. {
  455. userId: this.$store.state.user.name,
  456. functionId: 5301,
  457. serialNumber: '5301OrderQtyToSchedule',
  458. tableId: "5301Order",
  459. tableName: "工单表",
  460. columnProp: "qtyToSchedule",
  461. headerAlign: "center",
  462. align: "center",
  463. columnLabel: "待排产数量",
  464. columnWidth: 80,
  465. columnHidden: false,
  466. columnImage: false,
  467. columnSortable: false,
  468. sortLv: 0,
  469. status: true,
  470. fixed: false
  471. },
  472. {
  473. userId: this.$store.state.user.name,
  474. functionId: 5301,
  475. serialNumber: '5301OrderQtyScheduled',
  476. tableId: "5301Order",
  477. tableName: "工单表",
  478. columnProp: "qtyScheduled",
  479. headerAlign: "center",
  480. align: "center",
  481. columnLabel: "已排产数量",
  482. columnWidth: 80,
  483. columnHidden: false,
  484. columnImage: false,
  485. columnSortable: false,
  486. sortLv: 0,
  487. status: true,
  488. fixed: false
  489. },
  490. {
  491. userId: this.$store.state.user.name,
  492. functionId: 5301,
  493. serialNumber: '5301OrderQtyReported',
  494. tableId: "5301Order",
  495. tableName: "工单表",
  496. columnProp: "qtyReported",
  497. headerAlign: "center",
  498. align: "center",
  499. columnLabel: "已报工数量",
  500. columnWidth: 80,
  501. columnHidden: false,
  502. columnImage: false,
  503. columnSortable: false,
  504. sortLv: 0,
  505. status: true,
  506. fixed: false
  507. },
  508. {
  509. userId: this.$store.state.user.name,
  510. functionId: 5301,
  511. serialNumber: '5301OrderSpec',
  512. tableId: "5301Order",
  513. tableName: "工单表",
  514. columnProp: "spec",
  515. headerAlign: "center",
  516. align: "center",
  517. columnLabel: "规格型号",
  518. columnWidth: 80,
  519. columnHidden: false,
  520. columnImage: false,
  521. columnSortable: false,
  522. sortLv: 0,
  523. status: true,
  524. fixed: false
  525. },
  526. {
  527. userId: this.$store.state.user.name,
  528. functionId: 5301,
  529. serialNumber: '5301OrderSite',
  530. tableId: "5301Order",
  531. tableName: "工单表",
  532. columnProp: "site",
  533. headerAlign: "center",
  534. align: "center",
  535. columnLabel: "工厂编号",
  536. columnWidth: 80,
  537. columnHidden: false,
  538. columnImage: false,
  539. columnSortable: false,
  540. sortLv: 0,
  541. status: true,
  542. fixed: false
  543. },
  544. {
  545. userId: this.$store.state.user.name,
  546. functionId: 5301,
  547. serialNumber: '5301OrderWorkCenterNo',
  548. tableId: "5301Order",
  549. tableName: "工单表",
  550. columnProp: "workCenterNo",
  551. headerAlign: "center",
  552. align: "center",
  553. columnLabel: "加工中心",
  554. columnWidth: 80,
  555. columnHidden: false,
  556. columnImage: false,
  557. columnSortable: false,
  558. sortLv: 0,
  559. status: true,
  560. fixed: false
  561. },
  562. {
  563. userId: this.$store.state.user.name,
  564. functionId: 5301,
  565. serialNumber: '5301OrderNextItemNo',
  566. tableId: "5301Order",
  567. tableName: "工单表",
  568. columnProp: "nextItemNo",
  569. headerAlign: "center",
  570. align: "center",
  571. columnLabel: "下道工序",
  572. columnWidth: 80,
  573. columnHidden: false,
  574. columnImage: false,
  575. columnSortable: false,
  576. sortLv: 0,
  577. status: true,
  578. fixed: false
  579. },
  580. {
  581. userId: this.$store.state.user.name,
  582. functionId: 5301,
  583. serialNumber: '5301OrderNextItemDesc',
  584. tableId: "5301Order",
  585. tableName: "工单表",
  586. columnProp: "nextItemDesc",
  587. headerAlign: "center",
  588. align: "center",
  589. columnLabel: "下道工序名称",
  590. columnWidth: 80,
  591. columnHidden: false,
  592. columnImage: false,
  593. columnSortable: false,
  594. sortLv: 0,
  595. status: true,
  596. fixed: false
  597. },
  598. {
  599. userId: this.$store.state.user.name,
  600. functionId: 5301,
  601. serialNumber: '5301OrderNextScheduledFlag',
  602. tableId: "5301Order",
  603. tableName: "工单表",
  604. columnProp: "nextScheduledFlag",
  605. headerAlign: "center",
  606. align: "center",
  607. columnLabel: "下道工序已排产",
  608. columnWidth: 80,
  609. columnHidden: false,
  610. columnImage: false,
  611. columnSortable: false,
  612. sortLv: 0,
  613. status: true,
  614. fixed: false
  615. },
  616. {
  617. userId: this.$store.state.user.name,
  618. functionId: 5301,
  619. serialNumber: '5301OrderPreItemNo',
  620. tableId: "5301Order",
  621. tableName: "工单表",
  622. columnProp: "preItemNo",
  623. headerAlign: "center",
  624. align: "center",
  625. columnLabel: "上道工序",
  626. columnWidth: 80,
  627. columnHidden: false,
  628. columnImage: false,
  629. columnSortable: false,
  630. sortLv: 0,
  631. status: true,
  632. fixed: false
  633. },
  634. {
  635. userId: this.$store.state.user.name,
  636. functionId: 5301,
  637. serialNumber: '5301OrderPreItemDesc',
  638. tableId: "5301Order",
  639. tableName: "工单表",
  640. columnProp: "preItemDesc",
  641. headerAlign: "center",
  642. align: "center",
  643. columnLabel: "上道工序名称",
  644. columnWidth: 80,
  645. columnHidden: false,
  646. columnImage: false,
  647. columnSortable: false,
  648. sortLv: 0,
  649. status: true,
  650. fixed: false
  651. },
  652. {
  653. userId: this.$store.state.user.name,
  654. functionId: 5301,
  655. serialNumber: '5301OrderPreScheduledFlag',
  656. tableId: "5301Order",
  657. tableName: "工单表",
  658. columnProp: "preScheduledFlag",
  659. headerAlign: "center",
  660. align: "center",
  661. columnLabel: "上道工序已排产",
  662. columnWidth: 80,
  663. columnHidden: false,
  664. columnImage: false,
  665. columnSortable: false,
  666. sortLv: 0,
  667. status: true,
  668. fixed: false
  669. },
  670. {
  671. userId: this.$store.state.user.name,
  672. functionId: 5301,
  673. serialNumber: '5301OrderScheduledFlag',
  674. tableId: "5301Order",
  675. tableName: "工单表",
  676. columnProp: "scheduledFlag",
  677. headerAlign: "center",
  678. align: "center",
  679. columnLabel: "是否排产",
  680. columnWidth: 80,
  681. columnHidden: false,
  682. columnImage: false,
  683. columnSortable: false,
  684. sortLv: 0,
  685. status: true,
  686. fixed: false
  687. },
  688. {
  689. userId: this.$store.state.user.name,
  690. functionId: 5301,
  691. serialNumber: '5301OrderAvailResource',
  692. tableId: "5301Order",
  693. tableName: "工单表",
  694. columnProp: "availResource",
  695. headerAlign: "center",
  696. align: "center",
  697. columnLabel: "可用机台",
  698. columnWidth: 80,
  699. columnHidden: false,
  700. columnImage: false,
  701. columnSortable: false,
  702. sortLv: 0,
  703. status: true,
  704. fixed: false
  705. },
  706. {
  707. userId: this.$store.state.user.name,
  708. functionId: 5301,
  709. serialNumber: '5301OrderEnterDate',
  710. tableId: "5301Order",
  711. tableName: "工单表",
  712. columnProp: "enterDate",
  713. headerAlign: "center",
  714. align: "center",
  715. columnLabel: "录入日期",
  716. columnWidth: 80,
  717. columnHidden: false,
  718. columnImage: false,
  719. columnSortable: false,
  720. sortLv: 0,
  721. status: true,
  722. fixed: false
  723. },
  724. {
  725. userId: this.$store.state.user.name,
  726. functionId: 5301,
  727. serialNumber: '5301Order',
  728. tableId: "5301Order",
  729. tableName: "工单表",
  730. columnProp: "计划时间",
  731. headerAlign: "center",
  732. align: "center",
  733. columnLabel: "",
  734. columnWidth: 80,
  735. columnHidden: false,
  736. columnImage: false,
  737. columnSortable: false,
  738. sortLv: 0,
  739. status: true,
  740. fixed: false
  741. },
  742. {
  743. userId: this.$store.state.user.name,
  744. functionId: 5301,
  745. serialNumber: '5301OrderMachRunFactor',
  746. tableId: "5301Order",
  747. tableName: "工单表",
  748. columnProp: "machRunFactor",
  749. headerAlign: "center",
  750. align: "center",
  751. columnLabel: "单位产出",
  752. columnWidth: 80,
  753. columnHidden: false,
  754. columnImage: false,
  755. columnSortable: false,
  756. sortLv: 0,
  757. status: true,
  758. fixed: false
  759. },
  760. {
  761. userId: this.$store.state.user.name,
  762. functionId: 5301,
  763. serialNumber: '5301OrderQtyScheduledPreOps',
  764. tableId: "5301Order",
  765. tableName: "工单表",
  766. columnProp: "qtyScheduledPreOps",
  767. headerAlign: "center",
  768. align: "center",
  769. columnLabel: "前道工序已排产数量",
  770. columnWidth: 80,
  771. columnHidden: false,
  772. columnImage: false,
  773. columnSortable: false,
  774. sortLv: 0,
  775. status: true,
  776. fixed: false
  777. },
  778. {
  779. userId: this.$store.state.user.name,
  780. functionId: 5301,
  781. serialNumber: '5301OrderQtyApprovedPreOps',
  782. tableId: "5301Order",
  783. tableName: "工单表",
  784. columnProp: "qtyApprovedPreOps",
  785. headerAlign: "center",
  786. align: "center",
  787. columnLabel: "前道工序已报合格数",
  788. columnWidth: 80,
  789. columnHidden: false,
  790. columnImage: false,
  791. columnSortable: false,
  792. sortLv: 0,
  793. status: true,
  794. fixed: false
  795. },
  796. {
  797. userId: this.$store.state.user.name,
  798. functionId: 5301,
  799. serialNumber: '5301Order',
  800. tableId: "5301Order",
  801. tableName: "工单表",
  802. columnProp: "",
  803. headerAlign: "center",
  804. align: "center",
  805. columnLabel: "SAP参考号",
  806. columnWidth: 80,
  807. columnHidden: false,
  808. columnImage: false,
  809. columnSortable: false,
  810. sortLv: 0,
  811. status: true,
  812. fixed: false
  813. },
  814. {
  815. userId: this.$store.state.user.name,
  816. functionId: 5301,
  817. serialNumber: '5301OrderTimeRequired',
  818. tableId: "5301Order",
  819. tableName: "工单表",
  820. columnProp: "timeRequired",
  821. headerAlign: "center",
  822. align: "center",
  823. columnLabel: "待排产时间",
  824. columnWidth: 80,
  825. columnHidden: false,
  826. columnImage: false,
  827. columnSortable: false,
  828. sortLv: 0,
  829. status: true,
  830. fixed: false
  831. },
  832. {
  833. userId: this.$store.state.user.name,
  834. functionId: 5301,
  835. serialNumber: '5301OrderEfficiency',
  836. tableId: "5301Order",
  837. tableName: "工单表",
  838. columnProp: "efficiency",
  839. headerAlign: "center",
  840. align: "center",
  841. columnLabel: "效率",
  842. columnWidth: 80,
  843. columnHidden: false,
  844. columnImage: false,
  845. columnSortable: false,
  846. sortLv: 0,
  847. status: true,
  848. fixed: false
  849. },
  850. {
  851. userId: this.$store.state.user.name,
  852. functionId: 5301,
  853. serialNumber: '5301Order',
  854. tableId: "5301Order",
  855. tableName: "工单表",
  856. columnProp: "刀模已发",
  857. headerAlign: "center",
  858. align: "center",
  859. columnLabel: "",
  860. columnWidth: 80,
  861. columnHidden: false,
  862. columnImage: false,
  863. columnSortable: false,
  864. sortLv: 0,
  865. status: true,
  866. fixed: false
  867. },
  868. {
  869. userId: this.$store.state.user.name,
  870. functionId: 5301,
  871. serialNumber: '5301Order',
  872. tableId: "5301Order",
  873. tableName: "工单表",
  874. columnProp: "印版已发",
  875. headerAlign: "center",
  876. align: "center",
  877. columnLabel: "",
  878. columnWidth: 80,
  879. columnHidden: false,
  880. columnImage: false,
  881. columnSortable: false,
  882. sortLv: 0,
  883. status: true,
  884. fixed: false
  885. }
  886. ],
  887. columnOrderScheduleArray: [
  888. {
  889. userId: this.$store.state.user.name,
  890. functionId: 5301,
  891. serialNumber: '5301Schedule',
  892. tableId: "5301Schedule",
  893. tableName: "排产明细表",
  894. columnProp: "",
  895. headerAlign: "center",
  896. align: "center",
  897. columnLabel: "排产序号",
  898. columnWidth: 80,
  899. columnHidden: false,
  900. columnImage: false,
  901. columnSortable: false,
  902. sortLv: 0,
  903. status: true,
  904. fixed: false
  905. },
  906. {
  907. userId: this.$store.state.user.name,
  908. functionId: 5301,
  909. serialNumber: '5301SchedulePlanStartTime',
  910. tableId: "5301Schedule",
  911. tableName: "排产明细表",
  912. columnProp: "planStartTime",
  913. headerAlign: "center",
  914. align: "center",
  915. columnLabel: "计划开工时间",
  916. columnWidth: 60,
  917. columnHidden: false,
  918. columnImage: false,
  919. columnSortable: false,
  920. sortLv: 0,
  921. status: true,
  922. fixed: false
  923. },
  924. {
  925. userId: this.$store.state.user.name,
  926. functionId: 5301,
  927. serialNumber: '5301SchedulePlanFinishTime',
  928. tableId: "5301Schedule",
  929. tableName: "排产明细表",
  930. columnProp: "planFinishTime",
  931. headerAlign: "center",
  932. align: "center",
  933. columnLabel: "计划完工时间",
  934. columnWidth: 80,
  935. columnHidden: false,
  936. columnImage: false,
  937. columnSortable: false,
  938. sortLv: 0,
  939. status: true,
  940. fixed: false
  941. },
  942. {
  943. userId: this.$store.state.user.name,
  944. functionId: 5301,
  945. serialNumber: '5301ScheduleTimeRequired',
  946. tableId: "5301Schedule",
  947. tableName: "排产明细表",
  948. columnProp: "timeRequired",
  949. headerAlign: "center",
  950. align: "center",
  951. columnLabel: "计划时间",
  952. columnWidth: 80,
  953. columnHidden: false,
  954. columnImage: false,
  955. columnSortable: false,
  956. sortLv: 0,
  957. status: true,
  958. fixed: false
  959. },
  960. {
  961. userId: this.$store.state.user.name,
  962. functionId: 5301,
  963. serialNumber: '5301ScheduleOrderNo',
  964. tableId: "5301Schedule",
  965. tableName: "排产明细表",
  966. columnProp: "orderNo",
  967. headerAlign: "center",
  968. align: "center",
  969. columnLabel: "订单号",
  970. columnWidth: 80,
  971. columnHidden: false,
  972. columnImage: false,
  973. columnSortable: false,
  974. sortLv: 0,
  975. status: true,
  976. fixed: false
  977. },
  978. {
  979. userId: this.$store.state.user.name,
  980. functionId: 5301,
  981. serialNumber: '5301ScheduleNeedDate',
  982. tableId: "5301Schedule",
  983. tableName: "排产明细表",
  984. columnProp: "needDate",
  985. headerAlign: "center",
  986. align: "center",
  987. columnLabel: "需求日期",
  988. columnWidth: 80,
  989. columnHidden: false,
  990. columnImage: false,
  991. columnSortable: false,
  992. sortLv: 0,
  993. status: true,
  994. fixed: false
  995. },
  996. {
  997. userId: this.$store.state.user.name,
  998. functionId: 5301,
  999. serialNumber: '5301ScheduleItemNo',
  1000. tableId: "5301Schedule",
  1001. tableName: "排产明细表",
  1002. columnProp: "itemNo",
  1003. headerAlign: "center",
  1004. align: "center",
  1005. columnLabel: "工序号",
  1006. columnWidth: 80,
  1007. columnHidden: false,
  1008. columnImage: false,
  1009. columnSortable: false,
  1010. sortLv: 0,
  1011. status: true,
  1012. fixed: false
  1013. },
  1014. {
  1015. userId: this.$store.state.user.name,
  1016. functionId: 5301,
  1017. serialNumber: '5301ScheduleItemDesc',
  1018. tableId: "5301Schedule",
  1019. tableName: "排产明细表",
  1020. columnProp: "itemDesc",
  1021. headerAlign: "center",
  1022. align: "center",
  1023. columnLabel: "工序名称",
  1024. columnWidth: 80,
  1025. columnHidden: false,
  1026. columnImage: false,
  1027. columnSortable: false,
  1028. sortLv: 0,
  1029. status: true,
  1030. fixed: false
  1031. },
  1032. {
  1033. userId: this.$store.state.user.name,
  1034. functionId: 5301,
  1035. serialNumber: '5301SchedulePartNo',
  1036. tableId: "5301Schedule",
  1037. tableName: "排产明细表",
  1038. columnProp: "partNo",
  1039. headerAlign: "center",
  1040. align: "center",
  1041. columnLabel: "产品编码",
  1042. columnWidth: 80,
  1043. columnHidden: false,
  1044. columnImage: false,
  1045. columnSortable: false,
  1046. sortLv: 0,
  1047. status: true,
  1048. fixed: false
  1049. },
  1050. {
  1051. userId: this.$store.state.user.name,
  1052. functionId: 5301,
  1053. serialNumber: '5301SchedulePartDesc',
  1054. tableId: "5301Schedule",
  1055. tableName: "排产明细表",
  1056. columnProp: "partDesc",
  1057. headerAlign: "center",
  1058. align: "center",
  1059. columnLabel: "产品名称",
  1060. columnWidth: 80,
  1061. columnHidden: false,
  1062. columnImage: false,
  1063. columnSortable: false,
  1064. sortLv: 0,
  1065. status: true,
  1066. fixed: false
  1067. },
  1068. {
  1069. userId: this.$store.state.user.name,
  1070. functionId: 5301,
  1071. serialNumber: '5301OrderSpec',
  1072. tableId: "5301Schedule",
  1073. tableName: "排产明细表",
  1074. columnProp: "spec",
  1075. headerAlign: "center",
  1076. align: "center",
  1077. columnLabel: "规格型号",
  1078. columnWidth: 80,
  1079. columnHidden: false,
  1080. columnImage: false,
  1081. columnSortable: false,
  1082. sortLv: 0,
  1083. status: true,
  1084. fixed: false
  1085. },
  1086. {
  1087. userId: this.$store.state.user.name,
  1088. functionId: 5301,
  1089. serialNumber: '5301ScheduleLotSize',
  1090. tableId: "5301Schedule",
  1091. tableName: "排产明细表",
  1092. columnProp: "lotSize",
  1093. headerAlign: "center",
  1094. align: "center",
  1095. columnLabel: "待生产数量",
  1096. columnWidth: 80,
  1097. columnHidden: false,
  1098. columnImage: false,
  1099. columnSortable: false,
  1100. sortLv: 0,
  1101. status: true,
  1102. fixed: false
  1103. },
  1104. {
  1105. userId: this.$store.state.user.name,
  1106. functionId: 5301,
  1107. serialNumber: '5301ScheduleLotSize',
  1108. tableId: "5301Schedule",
  1109. tableName: "排产明细表",
  1110. columnProp: "lotSize",
  1111. headerAlign: "center",
  1112. align: "center",
  1113. columnLabel: "派工单需求数量",
  1114. columnWidth: 80,
  1115. columnHidden: false,
  1116. columnImage: false,
  1117. columnSortable: false,
  1118. sortLv: 0,
  1119. status: true,
  1120. fixed: false
  1121. },
  1122. {
  1123. userId: this.$store.state.user.name,
  1124. functionId: 5301,
  1125. serialNumber: '5301ScheduleQtyReported',
  1126. tableId: "5301Schedule",
  1127. tableName: "排产明细表",
  1128. columnProp: "qtyReported",
  1129. headerAlign: "center",
  1130. align: "center",
  1131. columnLabel: "已报告数量",
  1132. columnWidth: 80,
  1133. columnHidden: false,
  1134. columnImage: false,
  1135. columnSortable: false,
  1136. sortLv: 0,
  1137. status: true,
  1138. fixed: false
  1139. },
  1140. {
  1141. userId: this.$store.state.user.name,
  1142. functionId: 5301,
  1143. serialNumber: '5301SchedulePreItemNo',
  1144. tableId: "5301Schedule",
  1145. tableName: "排产明细表",
  1146. columnProp: "preItemNo",
  1147. headerAlign: "center",
  1148. align: "center",
  1149. columnLabel: "前道工序",
  1150. columnWidth: 80,
  1151. columnHidden: false,
  1152. columnImage: false,
  1153. columnSortable: false,
  1154. sortLv: 0,
  1155. status: true,
  1156. fixed: false
  1157. },
  1158. {
  1159. userId: this.$store.state.user.name,
  1160. functionId: 5301,
  1161. serialNumber: '5301SchedulePreItemDesc',
  1162. tableId: "5301Schedule",
  1163. tableName: "排产明细表",
  1164. columnProp: "preItemDesc",
  1165. headerAlign: "center",
  1166. align: "center",
  1167. columnLabel: "前道工序名称",
  1168. columnWidth: 80,
  1169. columnHidden: false,
  1170. columnImage: false,
  1171. columnSortable: false,
  1172. sortLv: 0,
  1173. status: true,
  1174. fixed: false
  1175. },
  1176. {
  1177. userId: this.$store.state.user.name,
  1178. functionId: 5301,
  1179. serialNumber: '5301SchedulePreScheduledFlag',
  1180. tableId: "5301Schedule",
  1181. tableName: "排产明细表",
  1182. columnProp: "preScheduledFlag",
  1183. headerAlign: "center",
  1184. align: "center",
  1185. columnLabel: "前道工序是否排产",
  1186. columnWidth: 80,
  1187. columnHidden: false,
  1188. columnImage: false,
  1189. columnSortable: false,
  1190. sortLv: 0,
  1191. status: true,
  1192. fixed: false
  1193. },
  1194. {
  1195. userId: this.$store.state.user.name,
  1196. functionId: 5301,
  1197. serialNumber: '5301ScheduleNextItemNo',
  1198. tableId: "5301Schedule",
  1199. tableName: "排产明细表",
  1200. columnProp: "nextItemNo",
  1201. headerAlign: "center",
  1202. align: "center",
  1203. columnLabel: "后道工序",
  1204. columnWidth: 80,
  1205. columnHidden: false,
  1206. columnImage: false,
  1207. columnSortable: false,
  1208. sortLv: 0,
  1209. status: true,
  1210. fixed: false
  1211. },
  1212. {
  1213. userId: this.$store.state.user.name,
  1214. functionId: 5301,
  1215. serialNumber: '5301ScheduleNextItemDesc',
  1216. tableId: "5301Schedule",
  1217. tableName: "排产明细表",
  1218. columnProp: "nextItemDesc",
  1219. headerAlign: "center",
  1220. align: "center",
  1221. columnLabel: "后道工序名称",
  1222. columnWidth: 80,
  1223. columnHidden: false,
  1224. columnImage: false,
  1225. columnSortable: false,
  1226. sortLv: 0,
  1227. status: true,
  1228. fixed: false
  1229. },
  1230. {
  1231. userId: this.$store.state.user.name,
  1232. functionId: 5301,
  1233. serialNumber: '5301ScheduleNextScheduledFlag',
  1234. tableId: "5301Schedule",
  1235. tableName: "排产明细表",
  1236. columnProp: "nextScheduledFlag",
  1237. headerAlign: "center",
  1238. align: "center",
  1239. columnLabel: "后道工序是否排产",
  1240. columnWidth: 80,
  1241. columnHidden: false,
  1242. columnImage: false,
  1243. columnSortable: false,
  1244. sortLv: 0,
  1245. status: true,
  1246. fixed: false
  1247. },
  1248. {
  1249. userId: this.$store.state.user.name,
  1250. functionId: 5301,
  1251. serialNumber: '5301ScheduleResourceId',
  1252. tableId: "5301Schedule",
  1253. tableName: "排产明细表",
  1254. columnProp: "resourceId",
  1255. headerAlign: "center",
  1256. align: "center",
  1257. columnLabel: "机台号",
  1258. columnWidth: 80,
  1259. columnHidden: false,
  1260. columnImage: false,
  1261. columnSortable: false,
  1262. sortLv: 0,
  1263. status: true,
  1264. fixed: false
  1265. },
  1266. {
  1267. userId: this.$store.state.user.name,
  1268. functionId: 5301,
  1269. serialNumber: '5301ScheduleCustomerName',
  1270. tableId: "5301Schedule",
  1271. tableName: "排产明细表",
  1272. columnProp: "customerName",
  1273. headerAlign: "center",
  1274. align: "center",
  1275. columnLabel: "客户名称",
  1276. columnWidth: 80,
  1277. columnHidden: false,
  1278. columnImage: false,
  1279. columnSortable: false,
  1280. sortLv: 0,
  1281. status: true,
  1282. fixed: false
  1283. },
  1284. {
  1285. userId: this.$store.state.user.name,
  1286. functionId: 5301,
  1287. serialNumber: '5301ScheduleEnterDate',
  1288. tableId: "5301Schedule",
  1289. tableName: "排产明细表",
  1290. columnProp: "enterDate",
  1291. headerAlign: "center",
  1292. align: "center",
  1293. columnLabel: "录入日期",
  1294. columnWidth: 80,
  1295. columnHidden: false,
  1296. columnImage: false,
  1297. columnSortable: false,
  1298. sortLv: 0,
  1299. status: true,
  1300. fixed: false
  1301. },
  1302. {
  1303. userId: this.$store.state.user.name,
  1304. functionId: 5301,
  1305. serialNumber: '5301ScheduleAvailResource',
  1306. tableId: "5301Schedule",
  1307. tableName: "排产明细表",
  1308. columnProp: "availResource",
  1309. headerAlign: "center",
  1310. align: "center",
  1311. columnLabel: "可用机台",
  1312. columnWidth: 80,
  1313. columnHidden: false,
  1314. columnImage: false,
  1315. columnSortable: false,
  1316. sortLv: 0,
  1317. status: true,
  1318. fixed: false
  1319. },
  1320. {
  1321. userId: this.$store.state.user.name,
  1322. functionId: 5301,
  1323. serialNumber: '5301ScheduleWorkCenterNo',
  1324. tableId: "5301Schedule",
  1325. tableName: "排产明细表",
  1326. columnProp: "workCenterNo",
  1327. headerAlign: "center",
  1328. align: "center",
  1329. columnLabel: "加工中心",
  1330. columnWidth: 80,
  1331. columnHidden: false,
  1332. columnImage: false,
  1333. columnSortable: false,
  1334. sortLv: 0,
  1335. status: true,
  1336. fixed: false
  1337. },
  1338. {
  1339. userId: this.$store.state.user.name,
  1340. functionId: 5301,
  1341. serialNumber: '5301ScheduleMachRunFactor',
  1342. tableId: "5301Schedule",
  1343. tableName: "排产明细表",
  1344. columnProp: "machRunFactor",
  1345. headerAlign: "center",
  1346. align: "center",
  1347. columnLabel: "单位产出",
  1348. columnWidth: 80,
  1349. columnHidden: false,
  1350. columnImage: false,
  1351. columnSortable: false,
  1352. sortLv: 0,
  1353. status: true,
  1354. fixed: false
  1355. },
  1356. {
  1357. userId: this.$store.state.user.name,
  1358. functionId: 5301,
  1359. serialNumber: '5301ScheduleMachSetupTime',
  1360. tableId: "5301Schedule",
  1361. tableName: "排产明细表",
  1362. columnProp: "machSetupTime",
  1363. headerAlign: "center",
  1364. align: "center",
  1365. columnLabel: "调机时间",
  1366. columnWidth: 80,
  1367. columnHidden: false,
  1368. columnImage: false,
  1369. columnSortable: false,
  1370. sortLv: 0,
  1371. status: true,
  1372. fixed: false
  1373. },
  1374. {
  1375. userId: this.$store.state.user.name,
  1376. functionId: 5301,
  1377. serialNumber: '5301ScheduleFactorUnit',
  1378. tableId: "5301Schedule",
  1379. tableName: "排产明细表",
  1380. columnProp: "factorUnit",
  1381. headerAlign: "center",
  1382. align: "center",
  1383. columnLabel: "产出单位",
  1384. columnWidth: 80,
  1385. columnHidden: false,
  1386. columnImage: false,
  1387. columnSortable: false,
  1388. sortLv: 0,
  1389. status: true,
  1390. fixed: false
  1391. },
  1392. {
  1393. userId: this.$store.state.user.name,
  1394. functionId: 5301,
  1395. serialNumber: '5301ScheduleSite',
  1396. tableId: "5301Schedule",
  1397. tableName: "排产明细表",
  1398. columnProp: "site",
  1399. headerAlign: "center",
  1400. align: "center",
  1401. columnLabel: "工厂编号",
  1402. columnWidth: 80,
  1403. columnHidden: false,
  1404. columnImage: false,
  1405. columnSortable: false,
  1406. sortLv: 0,
  1407. status: true,
  1408. fixed: false
  1409. },
  1410. {
  1411. userId: this.$store.state.user.name,
  1412. functionId: 5301,
  1413. serialNumber: '5301ScheduleQtyScheduledPreOps',
  1414. tableId: "5301Schedule",
  1415. tableName: "排产明细表",
  1416. columnProp: "qtyScheduledPreOps",
  1417. headerAlign: "center",
  1418. align: "center",
  1419. columnLabel: "前道工序已排产数量",
  1420. columnWidth: 80,
  1421. columnHidden: false,
  1422. columnImage: false,
  1423. columnSortable: false,
  1424. sortLv: 0,
  1425. status: true,
  1426. fixed: false
  1427. },
  1428. {
  1429. userId: this.$store.state.user.name,
  1430. functionId: 5301,
  1431. serialNumber: '5301ScheduleDelayHours',
  1432. tableId: "5301Schedule",
  1433. tableName: "排产明细表",
  1434. columnProp: "delayHours",
  1435. headerAlign: "center",
  1436. align: "center",
  1437. columnLabel: "晚于发货时间",
  1438. columnWidth: 80,
  1439. columnHidden: false,
  1440. columnImage: false,
  1441. columnSortable: false,
  1442. sortLv: 0,
  1443. status: true,
  1444. fixed: false
  1445. },
  1446. {
  1447. userId: this.$store.state.user.name,
  1448. functionId: 5301,
  1449. serialNumber: '5301Schedule',
  1450. tableId: "5301Schedule",
  1451. tableName: "排产明细表",
  1452. columnProp: "RecordType",
  1453. headerAlign: "center",
  1454. align: "center",
  1455. columnLabel: "",
  1456. columnWidth: 80,
  1457. columnHidden: false,
  1458. columnImage: false,
  1459. columnSortable: false,
  1460. sortLv: 0,
  1461. status: true,
  1462. fixed: false
  1463. },
  1464. {
  1465. userId: this.$store.state.user.name,
  1466. functionId: 5301,
  1467. serialNumber: '5301ScheduleClosedFlag',
  1468. tableId: "5301Schedule",
  1469. tableName: "排产明细表",
  1470. columnProp: "closedFlag",
  1471. headerAlign: "center",
  1472. align: "center",
  1473. columnLabel: "是否关闭",
  1474. columnWidth: 80,
  1475. columnHidden: false,
  1476. columnImage: false,
  1477. columnSortable: false,
  1478. sortLv: 0,
  1479. status: true,
  1480. fixed: false
  1481. },
  1482. {
  1483. userId: this.$store.state.user.name,
  1484. functionId: 5301,
  1485. serialNumber: '5301Schedule',
  1486. tableId: "5301Schedule",
  1487. tableName: "排产明细表",
  1488. columnProp: "是否关闭",
  1489. headerAlign: "center",
  1490. align: "center",
  1491. columnLabel: "",
  1492. columnWidth: 80,
  1493. columnHidden: false,
  1494. columnImage: false,
  1495. columnSortable: false,
  1496. sortLv: 0,
  1497. status: true,
  1498. fixed: false
  1499. },
  1500. {
  1501. userId: this.$store.state.user.name,
  1502. functionId: 5301,
  1503. serialNumber: '5301ScheduleParkFlag',
  1504. tableId: "5301Schedule",
  1505. tableName: "排产明细表",
  1506. columnProp: "parkFlag",
  1507. headerAlign: "center",
  1508. align: "center",
  1509. columnLabel: "暂停",
  1510. columnWidth: 80,
  1511. columnHidden: false,
  1512. columnImage: false,
  1513. columnSortable: false,
  1514. sortLv: 0,
  1515. status: true,
  1516. fixed: false
  1517. },
  1518. {
  1519. userId: this.$store.state.user.name,
  1520. functionId: 5301,
  1521. serialNumber: '5301ScheduleTimeRequired',
  1522. tableId: "5301Schedule",
  1523. tableName: "排产明细表",
  1524. columnProp: "timeRequired",
  1525. headerAlign: "center",
  1526. align: "center",
  1527. columnLabel: "派工单需求工时",
  1528. columnWidth: 80,
  1529. columnHidden: false,
  1530. columnImage: false,
  1531. columnSortable: false,
  1532. sortLv: 0,
  1533. status: true,
  1534. fixed: false
  1535. },
  1536. {
  1537. userId: this.$store.state.user.name,
  1538. functionId: 5301,
  1539. serialNumber: '5301SchedulePreOpsPlanFinishTime',
  1540. tableId: "5301Schedule",
  1541. tableName: "排产明细表",
  1542. columnProp: "preOpsPlanFinishTime",
  1543. headerAlign: "center",
  1544. align: "center",
  1545. columnLabel: "派工单早于上工序",
  1546. columnWidth: 80,
  1547. columnHidden: false,
  1548. columnImage: false,
  1549. columnSortable: false,
  1550. sortLv: 0,
  1551. status: true,
  1552. fixed: false
  1553. },
  1554. {
  1555. userId: this.$store.state.user.name,
  1556. functionId: 5301,
  1557. serialNumber: '5301ScheduleRemark',
  1558. tableId: "5301Schedule",
  1559. tableName: "排产明细表",
  1560. columnProp: "remark",
  1561. headerAlign: "center",
  1562. align: "center",
  1563. columnLabel: "备注",
  1564. columnWidth: 80,
  1565. columnHidden: false,
  1566. columnImage: false,
  1567. columnSortable: false,
  1568. sortLv: 0,
  1569. status: true,
  1570. fixed: false
  1571. },
  1572. {
  1573. userId: this.$store.state.user.name,
  1574. functionId: 5301,
  1575. serialNumber: '5301Schedule',
  1576. tableId: "5301Schedule",
  1577. tableName: "排产明细表",
  1578. columnProp: "SAP参考号",
  1579. headerAlign: "center",
  1580. align: "center",
  1581. columnLabel: "",
  1582. columnWidth: 80,
  1583. columnHidden: false,
  1584. columnImage: false,
  1585. columnSortable: false,
  1586. sortLv: 0,
  1587. status: true,
  1588. fixed: false
  1589. },
  1590. {
  1591. userId: this.$store.state.user.name,
  1592. functionId: 5301,
  1593. serialNumber: '5301ScheduleCustPartNo',
  1594. tableId: "5301Schedule",
  1595. tableName: "排产明细表",
  1596. columnProp: "custPartNo",
  1597. headerAlign: "center",
  1598. align: "center",
  1599. columnLabel: "客户产品料号",
  1600. columnWidth: 80,
  1601. columnHidden: false,
  1602. columnImage: false,
  1603. columnSortable: false,
  1604. sortLv: 0,
  1605. status: true,
  1606. fixed: false
  1607. },
  1608. {
  1609. userId: this.$store.state.user.name,
  1610. functionId: 5301,
  1611. serialNumber: '5301ScheduleEficiency',
  1612. tableId: "5301Schedule",
  1613. tableName: "排产明细表",
  1614. columnProp: "eficiency",
  1615. headerAlign: "center",
  1616. align: "center",
  1617. columnLabel: "效率",
  1618. columnWidth: 80,
  1619. columnHidden: false,
  1620. columnImage: false,
  1621. columnSortable: false,
  1622. sortLv: 0,
  1623. status: true,
  1624. fixed: false
  1625. },
  1626. {
  1627. userId: this.$store.state.user.name,
  1628. functionId: 5301,
  1629. serialNumber: '5301ScheduleDelayHours',
  1630. tableId: "5301Schedule",
  1631. tableName: "排产明细表",
  1632. columnProp: "delayHours",
  1633. headerAlign: "center",
  1634. align: "center",
  1635. columnLabel: "延误小时数",
  1636. columnWidth: 80,
  1637. columnHidden: false,
  1638. columnImage: false,
  1639. columnSortable: false,
  1640. sortLv: 0,
  1641. status: true,
  1642. fixed: false
  1643. },
  1644. {
  1645. userId: this.$store.state.user.name,
  1646. functionId: 5301,
  1647. serialNumber: '5301Schedule',
  1648. tableId: "5301Schedule",
  1649. tableName: "排产明细表",
  1650. columnProp: "已排料",
  1651. headerAlign: "center",
  1652. align: "center",
  1653. columnLabel: "",
  1654. columnWidth: 80,
  1655. columnHidden: false,
  1656. columnImage: false,
  1657. columnSortable: false,
  1658. sortLv: 0,
  1659. status: true,
  1660. fixed: false
  1661. },
  1662. {
  1663. userId: this.$store.state.user.name,
  1664. functionId: 5301,
  1665. serialNumber: '5301Schedule',
  1666. tableId: "5301Schedule",
  1667. tableName: "排产明细表",
  1668. columnProp: "排产完成时间早于上工序",
  1669. headerAlign: "center",
  1670. align: "center",
  1671. columnLabel: "",
  1672. columnWidth: 80,
  1673. columnHidden: false,
  1674. columnImage: false,
  1675. columnSortable: false,
  1676. sortLv: 0,
  1677. status: true,
  1678. fixed: false
  1679. }
  1680. ],
  1681. }
  1682. },
  1683. mounted() {
  1684. this.$nextTick(() => {
  1685. this.height = window.innerHeight - 300;
  1686. })
  1687. },
  1688. methods: {
  1689. getResourceShiftData() {
  1690. let queryData = {
  1691. site: this.$store.state.user.site,
  1692. workCenterNo: this.searchData.workCenterNo,
  1693. resourceId: this.searchData.resourceId,
  1694. scheduleDate: this.searchData.scheduleDate
  1695. }
  1696. getResourceRestList(queryData).then(({data}) => {
  1697. this.resourceShiftList = data.rows
  1698. })
  1699. },
  1700. getShopOrderList() {
  1701. getShopOrderList(this.searchData).then(({data}) => {
  1702. this.shopOrderList = data.rows
  1703. })
  1704. },
  1705. getOrderScheduleList() {
  1706. getOrderScheduleList(this.searchData).then(({data}) => {
  1707. this.orderScheduleList = data.rows
  1708. })
  1709. },
  1710. /*刷新页面table*/
  1711. refreshPageTables(){
  1712. this.getResourceShiftData();
  1713. this.getShopOrderList();
  1714. this.getOrderScheduleList();
  1715. },
  1716. /*开始排产的操作*/
  1717. startScheduleOperation(row, $event){
  1718. this.$message.error('字段time_required找不到!');
  1719. }
  1720. },
  1721. created() {
  1722. //执行查询休息时间数据
  1723. this.getResourceShiftData();
  1724. //查询工单的数据
  1725. this.getShopOrderList();
  1726. //查询派工的数据
  1727. this.getOrderScheduleList();
  1728. }
  1729. }
  1730. </script>
  1731. <!--当前页面的标签样式-->
  1732. <style scoped lang="scss">
  1733. /*针对el-card*/
  1734. .customer-card .el-form-item__content{
  1735. margin-top: -15px;
  1736. }
  1737. .customer-card .el-form-item{
  1738. height: 22px;
  1739. }
  1740. .customer-border .el-form-item__content{
  1741. margin-top: -30px;
  1742. }
  1743. /*全局年与日类型 宽度*/
  1744. div.el-time-width{
  1745. width: 110px !important;
  1746. }
  1747. /* 全局时间右边框*/
  1748. .customer-css input.el-input__inner{
  1749. height: 22px !important;
  1750. padding-right: 0px !important;
  1751. }
  1752. /* 控制el-card标签的数据*/
  1753. div.customer-el-card {
  1754. margin-left: 110px;
  1755. margin-top: -15px;
  1756. height: 20px;
  1757. width: 60px;
  1758. }
  1759. /* 颜色控制 */
  1760. div.customer-el-card-pink {
  1761. background: #FF00FF;
  1762. }
  1763. div.customer-el-card-orange {
  1764. background: #FFD700;
  1765. }
  1766. div.customer-el-card-blue {
  1767. background: #0000CD;
  1768. }
  1769. /*清掉样式*/
  1770. .el-radio+.el-radio {
  1771. margin-left: 0px;
  1772. }
  1773. /*控制上下间距*/
  1774. </style>