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.

2142 lines
68 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
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
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
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
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
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: 675px; padding: 0.35em 0.75em 0.425em;">
  5. <legend>菜单</legend>
  6. <el-form :inline="true" label-position="top" label-width="100px" style="">
  7. <el-form-item :label="''">
  8. <el-button type="primary" @click="refreshPageTables()" class="customer-bun-mid"
  9. style="margin-left: 10px; margin-bottom: 5px;">查询
  10. </el-button>
  11. </el-form-item>
  12. <el-form-item :label="''">
  13. <el-button type="primary" @click="switchOperatorModal(0)" class="customer-bun-mid"
  14. :disabled="reportButton.normalReportButton"
  15. style="margin-left: 10px; margin-bottom: 5px;">报工
  16. </el-button>
  17. </el-form-item>
  18. <el-form-item :label="''">
  19. <el-button type="primary" @click="switchOperatorModal(1)" class="customer-bun-mid"
  20. :disabled="reportButton.fqcReportButton"
  21. style="margin-left: 10px; margin-bottom: 5px;">FQC报工
  22. </el-button>
  23. </el-form-item>
  24. <el-form-item :label="''">
  25. <el-button type="primary" @click="switchOperatorModal(2)" class="customer-bun-mid"
  26. :disabled="reportButton.reworkReportButton"
  27. style="margin-left: 10px; margin-bottom: 5px;">返工重检
  28. </el-button>
  29. </el-form-item>
  30. <el-form-item :label="''">
  31. <el-button type="primary" @click="switchOperatorModal(4)" class="customer-bun-mid"
  32. :disabled="reportButton.packReportButton"
  33. style="margin-left: 10px; margin-bottom: 5px;">换包装
  34. </el-button>
  35. </el-form-item>
  36. <el-form-item :label="''">
  37. <el-button type="primary" @click="switchOperatorModal(3)" class="customer-bun-mid"
  38. :disabled="reportButton.fqcSegmentReportButton"
  39. style="margin-left: 10px; margin-bottom: 5px;">FQC分卷
  40. </el-button>
  41. </el-form-item>
  42. <el-form-item :label="''">
  43. <el-button type="primary" class="customer-bun-mid" @click="switchOperatorModal(8)"
  44. :disabled="reportButton.slitReportButton"
  45. style="margin-left: 10px; width: 60px; margin-bottom: 5px;">分切报工
  46. </el-button>
  47. </el-form-item>
  48. </el-form>
  49. </fieldset>
  50. <!-- 查询时间和产品 -->
  51. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 5px;">
  52. <el-form-item :label="'工厂编号:'">
  53. <el-input v-model="searchData.site" style="width: 85px"></el-input>
  54. </el-form-item>
  55. <el-form-item :label="'机台编号:'">
  56. <span slot="label" style="" @click="getBaseList(88)"><a herf="#">机台编号:</a></span>
  57. <el-input v-model="searchData.resourceId" style="width: 110px"></el-input>
  58. </el-form-item>
  59. <el-form-item :label="'计划开工时间:'">
  60. <el-date-picker class="el-time-width"
  61. style=""
  62. v-model="searchData.planStartTime1"
  63. value-format="yyyy-MM-dd">
  64. </el-date-picker>
  65. </el-form-item>
  66. <el-form-item :label="''">
  67. <el-date-picker class="el-time-width"
  68. style="margin-top: 20px;"
  69. v-model="searchData.planStartTime2"
  70. format="yyyy-MM-dd"
  71. value-format="yyyy-MM-dd"
  72. placeholder="">
  73. </el-date-picker>
  74. </el-form-item>
  75. <el-form-item :label="'生产订单号:'">
  76. <el-input v-model="searchData.orderNo" style="width: 120px" @keyup.enter.native="refreshPageTables"></el-input>
  77. </el-form-item>
  78. <el-form-item :label="'派工单号:'">
  79. <el-input v-model="searchData.seqNo" style="width: 120px" @keyup.enter.native="refreshPageTables"></el-input>
  80. </el-form-item>
  81. <el-form-item :label="''" style="margin-left: -5px;">
  82. <el-checkbox style="margin-top: 20px;" true-label="Y" false-label="N" v-model="searchData.closedFlag">显示已结束派工单
  83. </el-checkbox>
  84. </el-form-item>
  85. </el-form>
  86. <!-- 右键操作菜单 -->
  87. <el-form :inline="true">
  88. <el-form-item label="生产工单列表">
  89. <el-dropdown trigger="click" style="margin-top: 3px" class="customer-dropdown" @command="handleCommand">
  90. <el-button type="primary" @click="menuButtonFlag">
  91. 主菜单<i class="el-icon-arrow-down el-icon--right"></i>
  92. </el-button>
  93. <el-dropdown-menu v-show="menuShow" slot="dropdown">
  94. <el-dropdown-item class="customer-li" command="0" :disabled="menuButton.prdButton"><span>生产订单</span>
  95. </el-dropdown-item>
  96. <hr width="95%"/>
  97. <el-dropdown-item class="customer-li" command="1" :disabled="menuButton.closedButton">关闭</el-dropdown-item>
  98. <el-dropdown-item class="customer-li" command="2" :disabled="menuButton.openButton">打开
  99. </el-dropdown-item>
  100. <hr width="95%"/>
  101. <el-dropdown-item class="customer-li" command="3" :disabled="menuButton.pauseButton">暂停</el-dropdown-item>
  102. <el-dropdown-item class="customer-li" command="4" :disabled="menuButton.openReverseButton">重新开工
  103. </el-dropdown-item>
  104. <hr width="95%"/>
  105. <el-dropdown-item class="customer-li" command="5" :disabled="menuButton.createRecheckButton">创建重检派工单
  106. </el-dropdown-item>
  107. <hr width="95%"/>
  108. <el-dropdown-item class="customer-li" command="6" :disabled="menuButton.canceledAllPrdButton">取消所有派工单操作
  109. </el-dropdown-item>
  110. <hr width="95%"/>
  111. <el-dropdown-item class="customer-li" command="7" :disabled="menuButton.costRollUpFlagButton">生产已排料
  112. </el-dropdown-item>
  113. <el-dropdown-item class="customer-li" command="8" :disabled="menuButton.canceledCostRollUpFlagButton">
  114. 取消生产已排料
  115. </el-dropdown-item>
  116. <el-dropdown-item class="customer-li" command="查看物料库存"
  117. :disabled="menuButton.partStockFlag">查看物料库存</el-dropdown-item>
  118. <hr width="95%"/>
  119. <el-dropdown-item class="customer-li" command="9" :disabled="menuButton.manualFlagButton">刀模已发
  120. </el-dropdown-item>
  121. <el-dropdown-item class="customer-li" command="10" :disabled="menuButton.canceledManualFlagButton">取消刀模已发
  122. </el-dropdown-item>
  123. <hr width="95%"/>
  124. <el-dropdown-item class="customer-li" command="11" :disabled="menuButton.repairSOFlagButton">印版已发
  125. </el-dropdown-item>
  126. <el-dropdown-item class="customer-li" command="12" :disabled="menuButton.canceledRepairSOFlagButton">取消印版已发
  127. </el-dropdown-item>
  128. <hr width="95%"/>
  129. </el-dropdown-menu>
  130. </el-dropdown>
  131. </el-form-item>
  132. </el-form>
  133. <!-- 工单主表信息 -->
  134. <el-main style="margin-left: -20px; margin-top: -20px; width: 104%;">
  135. <el-table @row-click="setCurrentRow"
  136. :height="height"
  137. highlight-current-row
  138. :data="produceScheduleList"
  139. border
  140. v-loading="dataListLoading"
  141. style="width: 100%;">
  142. <el-table-column
  143. v-for="(item,index) in columnProduceScheduleArray" :key="index"
  144. :sortable="item.columnSortable"
  145. :prop="item.columnProp"
  146. :header-align="item.headerAlign"
  147. :show-overflow-tooltip="item.showOverflowTooltip"
  148. :align="item.align"
  149. :fixed="item.fixed"
  150. :width="item.columnWidth"
  151. :label="item.columnLabel">
  152. <template slot-scope="scope">
  153. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  154. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  155. style="width: 100px; height: 80px"/></span>
  156. </template>
  157. </el-table-column>
  158. </el-table>
  159. </el-main>
  160. <!-- 切换操作员 -->
  161. <comSwitchOperator ref="comSwitchOperator" :close-on-click-modal="false"
  162. :visible.sync="showOperatorFlag"
  163. @initOperatorData="initOperatorData"
  164. @notInitOperatorData="notInitOperatorData">
  165. </comSwitchOperator>
  166. <!-- 正常报工的组件 -->
  167. <comProduceReportNormal :close-on-click-modal="false"
  168. :visible.sync="showReportFlag" ref="comProduceReportNormal">
  169. </comProduceReportNormal>
  170. <!-- 分切报工的组件 -->
  171. <comSplitOrderReport :close-on-click-modal="false"
  172. :visible.sync="showSplitReportFlag" ref="comSplitOrderReport">
  173. </comSplitOrderReport>
  174. <!-- 正常的结束派工单组件 -->
  175. <comFinishSchedule :close-on-click-modal="false"
  176. :visible.sync="showFinishScheduleFlag" ref="comFinishSchedule"
  177. @processFinishScheduleOperation="processFinishScheduleOperation">
  178. </comFinishSchedule>
  179. <!-- fqc报工的组件 -->
  180. <fqcProduceReportNormal :close-on-click-modal="false"
  181. :visible.sync="fqcShowReportFlag" ref="fqcProduceReportNormal">
  182. </fqcProduceReportNormal>
  183. <!-- 返工重检 -->
  184. <reworkInspectReport :close-on-click-modal="false"
  185. :visible.sync="reworkShowReportFlag" ref="reworkInspectReport"></reworkInspectReport>
  186. <!-- FQC分卷 -->
  187. <fqcSplitRollReport :close-on-click-modal="false"
  188. :visible.sync="fqcRollShowReportFlag" ref="fqcSplitRollReport"></fqcSplitRollReport>
  189. <!-- 创建重检派工单 -->
  190. <createRecheck ref="createRecheck"></createRecheck>
  191. <!-- 换包装 -->
  192. <changePackaging :close-on-click-modal="false"
  193. :visible.sync="changePackagingFlag" ref="changePackaging"></changePackaging>
  194. <!-- 物料库存查询 -->
  195. <comPartStock ref="comPartStock" :close-on-click-modal="false"
  196. :visible.sync="showPartStockFlag">
  197. </comPartStock>
  198. <!--列表的组件-->
  199. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  200. </div>
  201. </template>
  202. <script>
  203. import {
  204. getProduceScheduleList,
  205. reportCheck,
  206. getUserSpecialSecurity,
  207. closeOrOpenProduceOrder,
  208. pauseOrOpenProduceOrder,
  209. costRollUpProduceOrder,
  210. manualProduceOrder,
  211. repairSOFlagProduceOrder,
  212. workbenchCancelallops,
  213. getShopOrder,
  214. getScheduleMultiReportSpecialAuth,/*获取派工单的特殊权限*/
  215. } from '@/api/yieldReport/produce_order.js';
  216. /*引入组件*/
  217. import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/
  218. import comSwitchOperator from "./com_switch_operator";/*切换操作员*/
  219. import comProduceReportNormal from "./com_produce_report_normal";/* 报工的组件*/
  220. import comFinishSchedule from "./com_finish_schedule";/*结束派工的组件*/
  221. import fqcProduceReportNormal from "./otherReport/fqc_produce_report_normal";/*结束派工的组件*/
  222. import reworkInspectReport from "./otherReport/rework_inspect_report";/*结束派工的组件*/
  223. import fqcSplitRollReport from "./otherReport/fqc_split_roll_report";/*结束派工的组件*/
  224. import changePackaging from "./otherReport/change_packaging";/*结束派工的组件*/
  225. import createRecheck from './com_create_recheck'
  226. import Com_split_schedule from "../schedule/com_split_schedule";
  227. import comSplitOrderReport from './com_split_order_report';
  228. import comPartStock from "../common/com_part_stock";/*展示物料库存的组件*/
  229. /*分切报工*/
  230. export default {
  231. data() {
  232. return {
  233. height: 800,
  234. menuShow: false,
  235. showOperatorFlag: false,
  236. showReportFlag: false,
  237. showSplitReportFlag: false,
  238. fqcShowReportFlag: false,
  239. reworkShowReportFlag: false,
  240. fqcRollShowReportFlag: false,
  241. showFinishScheduleFlag: false,
  242. changePackagingFlag: false,
  243. showPartStockFlag: false,
  244. searchData: {
  245. site: this.$store.state.user.site,
  246. resourceId: '',
  247. orderNo: '',
  248. seqNo: '',
  249. planStartTime1: '',
  250. planStartTime2: '',
  251. closedFlag: 'N',
  252. status: 1,
  253. username: this.$store.state.user.name,
  254. searchFlag: false
  255. },
  256. currentRow: {},
  257. operatorData: {
  258. site: this.$store.state.user.site,
  259. username: this.$store.state.user.name,
  260. userDisplay: this.$store.state.user.userDisplay,
  261. operatorId: '',
  262. operatorName: '',
  263. status: '',
  264. showFlag: false
  265. },
  266. produceScheduleList: [],
  267. dataListLoading: false,
  268. buttons: {
  269. search: '查询',
  270. },
  271. columnProduceScheduleArray: [
  272. {
  273. userId: this.$store.state.user.name,
  274. functionId: 5302,
  275. serialNumber: '5302ProduceMatIssueFlag',
  276. tableId: "5302Produce",
  277. tableName: "待生产工单",
  278. columnProp: "matIssueFlag",
  279. headerAlign: "center",
  280. align: "center",
  281. columnLabel: "已排料",
  282. columnWidth: 80,
  283. columnHidden: false,
  284. columnImage: false,
  285. columnSortable: true,
  286. sortLv: 0,
  287. status: true,
  288. fixed: false
  289. },
  290. {
  291. userId: this.$store.state.user.name,
  292. functionId: 5302,
  293. serialNumber: '5302ProduceToolIssueFlag',
  294. tableId: "5302Produce",
  295. tableName: "待生产工单",
  296. columnProp: "toolIssueFlag",
  297. headerAlign: "center",
  298. align: "center",
  299. columnLabel: "刀模已发",
  300. columnWidth: 90,
  301. columnHidden: false,
  302. columnImage: false,
  303. columnSortable: true,
  304. sortLv: 0,
  305. status: true,
  306. fixed: false
  307. },
  308. {
  309. userId: this.$store.state.user.name,
  310. functionId: 5302,
  311. serialNumber: '5302ProducePlateIssueFlag',
  312. tableId: "5302Produce",
  313. tableName: "待生产工单",
  314. columnProp: "plateIssueFlag",
  315. headerAlign: "center",
  316. align: "center",
  317. columnLabel: "印版已发",
  318. columnWidth: 90,
  319. columnHidden: false,
  320. columnImage: false,
  321. columnSortable: true,
  322. sortLv: 0,
  323. status: true,
  324. fixed: false
  325. },
  326. {
  327. userId: this.$store.state.user.name,
  328. functionId: 5302,
  329. serialNumber: '5302ProducePreResourceInfo',
  330. tableId: "5302Produce",
  331. tableName: "待生产工单",
  332. columnProp: "preResourceInfo",
  333. headerAlign: "center",
  334. align: "left",
  335. columnLabel: "上工序机台信息",
  336. columnWidth: 100,
  337. columnHidden: false,
  338. columnImage: false,
  339. columnSortable: false,
  340. sortLv: 0,
  341. status: true,
  342. fixed: false
  343. },
  344. {
  345. userId: this.$store.state.user.name,
  346. functionId: 5302,
  347. serialNumber: '5302ProducePreQtyFinished',
  348. tableId: "5302Produce",
  349. tableName: "待生产工单",
  350. columnProp: "preQtyFinished",
  351. headerAlign: "center",
  352. align: "right",
  353. columnLabel: "上工序完工数",
  354. columnWidth: 100,
  355. columnHidden: false,
  356. columnImage: false,
  357. columnSortable: false,
  358. sortLv: 0,
  359. status: true,
  360. fixed: false
  361. },
  362. {
  363. userId: this.$store.state.user.name,
  364. functionId: 5302,
  365. serialNumber: '5302ProducePlanStartTime',
  366. tableId: "5302Produce",
  367. tableName: "待生产工单",
  368. columnProp: "planStartTime",
  369. headerAlign: "center",
  370. align: "center",
  371. columnLabel: "计划开工时间",
  372. columnWidth: 125,
  373. columnHidden: false,
  374. columnImage: false,
  375. columnSortable: true,
  376. sortLv: 0,
  377. status: true,
  378. fixed: false
  379. },
  380. {
  381. userId: this.$store.state.user.name,
  382. functionId: 5302,
  383. serialNumber: '5302ProducePlanFinishTime',
  384. tableId: "5302Produce",
  385. tableName: "待生产工单",
  386. columnProp: "planFinishTime",
  387. headerAlign: "center",
  388. align: "center",
  389. columnLabel: "计划完工时间",
  390. columnWidth: 125,
  391. columnHidden: false,
  392. columnImage: false,
  393. columnSortable: true,
  394. sortLv: 0,
  395. status: true,
  396. fixed: false
  397. },
  398. {
  399. userId: this.$store.state.user.name,
  400. functionId: 5302,
  401. serialNumber: '5302ProduceTimeRequired',
  402. tableId: "5302Produce",
  403. tableName: "待生产工单",
  404. columnProp: "timeRequired",
  405. headerAlign: "center",
  406. align: "center",
  407. columnLabel: "需求时间",
  408. columnWidth: 60,
  409. columnHidden: false,
  410. columnImage: false,
  411. columnSortable: false,
  412. sortLv: 0,
  413. status: true,
  414. fixed: false
  415. },
  416. {
  417. userId: this.$store.state.user.name,
  418. functionId: 5302,
  419. serialNumber: '5302ProduceTimeReported',
  420. tableId: "5302Produce",
  421. tableName: "待生产工单",
  422. columnProp: "timeReported",
  423. headerAlign: "center",
  424. align: "center",
  425. columnLabel: "已报告时间",
  426. columnWidth: 70,
  427. columnHidden: false,
  428. columnImage: false,
  429. columnSortable: false,
  430. sortLv: 0,
  431. status: true,
  432. fixed: false
  433. },
  434. {
  435. userId: this.$store.state.user.name,
  436. functionId: 5302,
  437. serialNumber: '5302ProduceOrderNo',
  438. tableId: "5302Produce",
  439. tableName: "待生产工单",
  440. columnProp: "orderNo",
  441. headerAlign: "center",
  442. align: "center",
  443. columnLabel: "生产订单号",
  444. columnWidth: 70,
  445. columnHidden: false,
  446. columnImage: false,
  447. columnSortable: false,
  448. sortLv: 0,
  449. status: true,
  450. fixed: false
  451. },
  452. {
  453. userId: this.$store.state.user.name,
  454. functionId: 5302,
  455. serialNumber: '5302ProduceItemNo',
  456. tableId: "5302Produce",
  457. tableName: "待生产工单",
  458. columnProp: "itemNo",
  459. headerAlign: "center",
  460. align: "center",
  461. columnLabel: "工序号",
  462. columnWidth: 80,
  463. columnHidden: false,
  464. columnImage: false,
  465. columnSortable: true,
  466. sortLv: 0,
  467. status: true,
  468. fixed: false
  469. },
  470. {
  471. userId: this.$store.state.user.name,
  472. functionId: 5302,
  473. serialNumber: '5302ProduceItemDesc',
  474. tableId: "5302Produce",
  475. tableName: "待生产工单",
  476. columnProp: "itemDesc",
  477. headerAlign: "center",
  478. align: "center",
  479. columnLabel: "工序描述",
  480. columnWidth: 80,
  481. columnHidden: false,
  482. columnImage: false,
  483. columnSortable: false,
  484. sortLv: 0,
  485. status: true,
  486. fixed: false
  487. },
  488. {
  489. userId: this.$store.state.user.name,
  490. functionId: 5302,
  491. serialNumber: '5302ProduceResourceId',
  492. tableId: "5302Produce",
  493. tableName: "待生产工单",
  494. columnProp: "resourceId",
  495. headerAlign: "center",
  496. align: "center",
  497. columnLabel: "机台",
  498. columnWidth: 60,
  499. columnHidden: false,
  500. columnImage: false,
  501. columnSortable: true,
  502. sortLv: 0,
  503. status: true,
  504. fixed: false
  505. },
  506. {
  507. userId: this.$store.state.user.name,
  508. functionId: 5302,
  509. serialNumber: '5302ProduceQtyRequired',
  510. tableId: "5302Produce",
  511. tableName: "待生产工单",
  512. columnProp: "qtyRequired",
  513. headerAlign: "center",
  514. align: "center",
  515. columnLabel: "需求数量",
  516. columnWidth: 60,
  517. columnHidden: false,
  518. columnImage: false,
  519. columnSortable: false,
  520. sortLv: 0,
  521. status: true,
  522. fixed: false
  523. },
  524. {
  525. userId: this.$store.state.user.name,
  526. functionId: 5302,
  527. serialNumber: '5302ProduceQtyReported',
  528. tableId: "5302Produce",
  529. tableName: "待生产工单",
  530. columnProp: "qtyReported",
  531. headerAlign: "center",
  532. align: "right",
  533. columnLabel: "已报告数量",
  534. columnWidth: 100,
  535. columnHidden: false,
  536. columnImage: false,
  537. columnSortable: true,
  538. sortLv: 0,
  539. status: true,
  540. fixed: false
  541. },
  542. {
  543. userId: this.$store.state.user.name,
  544. functionId: 5302,
  545. serialNumber: '5302ProduceNeedDate',
  546. tableId: "5302Produce",
  547. tableName: "待生产工单",
  548. columnProp: "needDate",
  549. headerAlign: "center",
  550. align: "center",
  551. columnLabel: "生产订单要求完工日期",
  552. columnWidth: 170,
  553. columnHidden: false,
  554. columnImage: false,
  555. columnSortable: true,
  556. sortLv: 0,
  557. status: true,
  558. fixed: false
  559. },
  560. {
  561. userId: this.$store.state.user.name,
  562. functionId: 5302,
  563. serialNumber: '5302ProduceClosedFlag',
  564. tableId: "5302Produce",
  565. tableName: "待生产工单",
  566. columnProp: "closedFlag",
  567. headerAlign: "center",
  568. align: "center",
  569. columnLabel: "已关闭",
  570. columnWidth: 50,
  571. columnHidden: false,
  572. columnImage: false,
  573. columnSortable: false,
  574. sortLv: 0,
  575. status: true,
  576. fixed: false
  577. },
  578. {
  579. userId: this.$store.state.user.name,
  580. functionId: 5302,
  581. serialNumber: '5302ProducePartNo',
  582. tableId: "5302Produce",
  583. tableName: "待生产工单",
  584. columnProp: "partNo",
  585. headerAlign: "center",
  586. align: "center",
  587. columnLabel: "产品编码",
  588. columnWidth: 110,
  589. columnHidden: false,
  590. columnImage: false,
  591. columnSortable: true,
  592. sortLv: 0,
  593. status: true,
  594. fixed: false
  595. },
  596. {
  597. userId: this.$store.state.user.name,
  598. functionId: 5302,
  599. serialNumber: '5302ProducePartDesc',
  600. tableId: "5302Produce",
  601. tableName: "待生产工单",
  602. columnProp: "partDesc",
  603. headerAlign: "center",
  604. align: "center",
  605. columnLabel: "产品名称",
  606. columnWidth: 180,
  607. columnHidden: false,
  608. columnImage: false,
  609. columnSortable: false,
  610. sortLv: 0,
  611. status: true,
  612. fixed: false
  613. },
  614. {
  615. userId: this.$store.state.user.name,
  616. functionId: 5302,
  617. serialNumber: '5302ProduceSpec',
  618. tableId: "5302Produce",
  619. tableName: "待生产工单",
  620. columnProp: "spec",
  621. headerAlign: "center",
  622. align: "center",
  623. columnLabel: "规格型号",
  624. columnWidth: 80,
  625. columnHidden: false,
  626. columnImage: false,
  627. columnSortable: false,
  628. sortLv: 0,
  629. status: true,
  630. fixed: false
  631. },
  632. {
  633. userId: this.$store.state.user.name,
  634. functionId: 5302,
  635. serialNumber: '5302ProduceSeqNo',
  636. tableId: "5302Produce",
  637. tableName: "待生产工单",
  638. columnProp: "seqNo",
  639. headerAlign: "center",
  640. align: "center",
  641. columnLabel: "次序号",
  642. columnWidth: 80,
  643. columnHidden: false,
  644. columnImage: false,
  645. columnSortable: false,
  646. sortLv: 0,
  647. status: true,
  648. fixed: false
  649. },
  650. {
  651. userId: this.$store.state.user.name,
  652. functionId: 5302,
  653. serialNumber: '5302ProduceQtyApprove',
  654. tableId: "5302Produce",
  655. tableName: "待生产工单",
  656. columnProp: "qtyApprove",
  657. headerAlign: "center",
  658. align: "center",
  659. columnLabel: "合格数量",
  660. columnWidth: 80,
  661. columnHidden: false,
  662. columnImage: false,
  663. columnSortable: false,
  664. sortLv: 0,
  665. status: true,
  666. fixed: false
  667. },
  668. {
  669. userId: this.$store.state.user.name,
  670. functionId: 5302,
  671. serialNumber: '5302ProduceBarcodeId',
  672. tableId: "5302Produce",
  673. tableName: "条形码",
  674. columnProp: "barcodeId",
  675. headerAlign: "center",
  676. align: "center",
  677. columnLabel: "条形码",
  678. columnWidth: 80,
  679. columnHidden: false,
  680. columnImage: false,
  681. columnSortable: false,
  682. sortLv: 0,
  683. status: true,
  684. fixed: false
  685. },
  686. {
  687. userId: this.$store.state.user.name,
  688. functionId: 5302,
  689. serialNumber: '5302ProduceRemark',
  690. tableId: "5302Produce",
  691. tableName: "待生产工单",
  692. columnProp: "remark",
  693. headerAlign: "center",
  694. align: "center",
  695. columnLabel: "备注",
  696. columnWidth: 80,
  697. columnHidden: false,
  698. columnImage: false,
  699. columnSortable: false,
  700. sortLv: 0,
  701. status: true,
  702. fixed: false
  703. },
  704. {
  705. userId: this.$store.state.user.name,
  706. functionId: 5302,
  707. serialNumber: '5302ProduceCrewSize',
  708. tableId: "5302Produce",
  709. tableName: "待生产工单",
  710. columnProp: "crewSize",
  711. headerAlign: "center",
  712. align: "center",
  713. columnLabel: "操作工人数",
  714. columnWidth: 80,
  715. columnHidden: false,
  716. columnImage: false,
  717. columnSortable: false,
  718. sortLv: 0,
  719. status: true,
  720. fixed: false
  721. },
  722. {
  723. userId: this.$store.state.user.name,
  724. functionId: 5302,
  725. serialNumber: '5302ProduceQtyScrapt',
  726. tableId: "5302Produce",
  727. tableName: "待生产工单",
  728. columnProp: "qtyScrapt",
  729. headerAlign: "center",
  730. align: "center",
  731. columnLabel: "报废数量",
  732. columnWidth: 80,
  733. columnHidden: false,
  734. columnImage: false,
  735. columnSortable: false,
  736. sortLv: 0,
  737. status: true,
  738. fixed: false
  739. },
  740. {
  741. userId: this.$store.state.user.name,
  742. functionId: 5302,
  743. serialNumber: '5302ProduceOutWorkFlag',
  744. tableId: "5302Produce",
  745. tableName: "待生产工单",
  746. columnProp: "outWorkFlag",
  747. headerAlign: "center",
  748. align: "center",
  749. columnLabel: "是否外协",
  750. columnWidth: 80,
  751. columnHidden: false,
  752. columnImage: false,
  753. columnSortable: false,
  754. sortLv: 0,
  755. status: true,
  756. fixed: false
  757. },
  758. {
  759. userId: this.$store.state.user.name,
  760. functionId: 5302,
  761. serialNumber: '5302ProduceScheduledDate',
  762. tableId: "5302Produce",
  763. tableName: "待生产工单",
  764. columnProp: "scheduledDate",
  765. headerAlign: "center",
  766. align: "center",
  767. columnLabel: "排产日期",
  768. columnWidth: 80,
  769. columnHidden: false,
  770. columnImage: false,
  771. columnSortable: false,
  772. sortLv: 0,
  773. status: true,
  774. fixed: false
  775. },
  776. {
  777. userId: this.$store.state.user.name,
  778. functionId: 5302,
  779. serialNumber: '5302ProduceScheduledSeqNo',
  780. tableId: "5302Produce",
  781. tableName: "待生产工单",
  782. columnProp: "scheduledSeqNo",
  783. headerAlign: "center",
  784. align: "center",
  785. columnLabel: "次序号",
  786. columnWidth: 80,
  787. columnHidden: false,
  788. columnImage: false,
  789. columnSortable: false,
  790. sortLv: 0,
  791. status: true,
  792. fixed: false
  793. },
  794. {
  795. userId: this.$store.state.user.name,
  796. functionId: 5302,
  797. serialNumber: '5302ProduceShiftNo',
  798. tableId: "5302Produce",
  799. tableName: "待生产工单",
  800. columnProp: "shiftNo",
  801. headerAlign: "center",
  802. align: "center",
  803. columnLabel: "班次",
  804. columnWidth: 80,
  805. columnHidden: false,
  806. columnImage: false,
  807. columnSortable: false,
  808. sortLv: 0,
  809. status: true,
  810. fixed: false
  811. },
  812. {
  813. userId: this.$store.state.user.name,
  814. functionId: 5302,
  815. serialNumber: '5302ProduceMachSetupTime',
  816. tableId: "5302Produce",
  817. tableName: "待生产工单",
  818. columnProp: "machSetupTime",
  819. headerAlign: "center",
  820. align: "center",
  821. columnLabel: "调机时间",
  822. columnWidth: 80,
  823. columnHidden: false,
  824. columnImage: false,
  825. columnSortable: false,
  826. sortLv: 0,
  827. status: true,
  828. fixed: false
  829. },
  830. {
  831. userId: this.$store.state.user.name,
  832. functionId: 5302,
  833. serialNumber: '5302ProduceMachRunFactor',
  834. tableId: "5302Produce",
  835. tableName: "待生产工单",
  836. columnProp: "machRunFactor",
  837. headerAlign: "center",
  838. align: "center",
  839. columnLabel: "单位产出",
  840. columnWidth: 80,
  841. columnHidden: false,
  842. columnImage: false,
  843. columnSortable: false,
  844. sortLv: 0,
  845. status: true,
  846. fixed: false
  847. },
  848. {
  849. userId: this.$store.state.user.name,
  850. functionId: 5302,
  851. serialNumber: '5302ProduceFactorUnit',
  852. tableId: "5302Produce",
  853. tableName: "待生产工单",
  854. columnProp: "factorUnit",
  855. headerAlign: "center",
  856. align: "center",
  857. columnLabel: "产出单位",
  858. columnWidth: 80,
  859. columnHidden: false,
  860. columnImage: false,
  861. columnSortable: false,
  862. sortLv: 0,
  863. status: true,
  864. fixed: false
  865. },
  866. {
  867. userId: this.$store.state.user.name,
  868. functionId: 5302,
  869. serialNumber: '5302ProduceEfficiency',
  870. tableId: "5302Produce",
  871. tableName: "待生产工单",
  872. columnProp: "efficiency",
  873. headerAlign: "center",
  874. align: "center",
  875. columnLabel: "效率",
  876. columnWidth: 80,
  877. columnHidden: false,
  878. columnImage: false,
  879. columnSortable: false,
  880. sortLv: 0,
  881. status: true,
  882. fixed: false
  883. },
  884. {
  885. userId: this.$store.state.user.name,
  886. functionId: 5302,
  887. serialNumber: '5302ProduceNextItemNo',
  888. tableId: "5302Produce",
  889. tableName: "待生产工单",
  890. columnProp: "nextItemNo",
  891. headerAlign: "center",
  892. align: "center",
  893. columnLabel: "下道工序号",
  894. columnWidth: 80,
  895. columnHidden: false,
  896. columnImage: false,
  897. columnSortable: false,
  898. sortLv: 0,
  899. status: true,
  900. fixed: false
  901. },
  902. {
  903. userId: this.$store.state.user.name,
  904. functionId: 5302,
  905. serialNumber: '5302ProduceNextItemDesc',
  906. tableId: "5302Produce",
  907. tableName: "待生产工单",
  908. columnProp: "nextItemDesc",
  909. headerAlign: "center",
  910. align: "center",
  911. columnLabel: "下道工序名称",
  912. columnWidth: 80,
  913. columnHidden: false,
  914. columnImage: false,
  915. columnSortable: false,
  916. sortLv: 0,
  917. status: true,
  918. fixed: false
  919. },
  920. {
  921. userId: this.$store.state.user.name,
  922. functionId: 5302,
  923. serialNumber: '5302ProducePreItemNo',
  924. tableId: "5302Produce",
  925. tableName: "待生产工单",
  926. columnProp: "preItemNo",
  927. headerAlign: "center",
  928. align: "center",
  929. columnLabel: "前道工序号",
  930. columnWidth: 80,
  931. columnHidden: false,
  932. columnImage: false,
  933. columnSortable: false,
  934. sortLv: 0,
  935. status: true,
  936. fixed: false
  937. },
  938. {
  939. userId: this.$store.state.user.name,
  940. functionId: 5302,
  941. serialNumber: '5302ProducePreItemDesc',
  942. tableId: "5302Produce",
  943. tableName: "待生产工单",
  944. columnProp: "preItemDesc",
  945. headerAlign: "center",
  946. align: "center",
  947. columnLabel: "前道工序名称",
  948. columnWidth: 80,
  949. columnHidden: false,
  950. columnImage: false,
  951. columnSortable: false,
  952. sortLv: 0,
  953. status: true,
  954. fixed: false
  955. },
  956. {
  957. userId: this.$store.state.user.name,
  958. functionId: 5302,
  959. serialNumber: '5302ProduceSite',
  960. tableId: "5302Produce",
  961. tableName: "待生产工单",
  962. columnProp: "site",
  963. headerAlign: "center",
  964. align: "center",
  965. columnLabel: "工厂编号",
  966. columnWidth: 80,
  967. columnHidden: false,
  968. columnImage: false,
  969. columnSortable: false,
  970. sortLv: 0,
  971. status: true,
  972. fixed: false
  973. },
  974. {
  975. userId: this.$store.state.user.name,
  976. functionId: 5302,
  977. serialNumber: '5302ProduceParkFlag',
  978. tableId: "5302Produce",
  979. tableName: "待生产工单",
  980. columnProp: "parkFlag",
  981. headerAlign: "center",
  982. align: "center",
  983. columnLabel: "暂停",
  984. columnWidth: 80,
  985. columnHidden: false,
  986. columnImage: false,
  987. columnSortable: false,
  988. sortLv: 0,
  989. status: true,
  990. fixed: false
  991. },
  992. {
  993. userId: this.$store.state.user.name,
  994. functionId: 5302,
  995. serialNumber: '5302ProduceCustomerName',
  996. tableId: "5302Produce",
  997. tableName: "待生产工单",
  998. columnProp: "customerName",
  999. headerAlign: "center",
  1000. align: "center",
  1001. columnLabel: "客户名称",
  1002. columnWidth: 80,
  1003. columnHidden: false,
  1004. columnImage: false,
  1005. columnSortable: false,
  1006. sortLv: 0,
  1007. status: true,
  1008. fixed: false
  1009. },
  1010. {
  1011. userId: this.$store.state.user.name,
  1012. functionId: 5302,
  1013. serialNumber: '5302ProduceCustPartNo',
  1014. tableId: "5302Produce",
  1015. tableName: "待生产工单",
  1016. columnProp: "custPartNo",
  1017. headerAlign: "center",
  1018. align: "center",
  1019. columnLabel: "客户产品料号",
  1020. columnWidth: 80,
  1021. columnHidden: false,
  1022. columnImage: false,
  1023. columnSortable: false,
  1024. sortLv: 0,
  1025. status: true,
  1026. fixed: false
  1027. },
  1028. {
  1029. userId: this.$store.state.user.name,
  1030. functionId: 5302,
  1031. serialNumber: '5302ProduceQtyRequiredOriginal',
  1032. tableId: "5302Produce",
  1033. tableName: "待生产工单",
  1034. columnProp: "qtyRequiredOriginal",
  1035. headerAlign: "center",
  1036. align: "center",
  1037. columnLabel: "原始派工单需求数量",
  1038. columnWidth: 80,
  1039. columnHidden: false,
  1040. columnImage: false,
  1041. columnSortable: false,
  1042. sortLv: 0,
  1043. status: true,
  1044. fixed: false
  1045. },
  1046. {
  1047. userId: this.$store.state.user.name,
  1048. functionId: 5302,
  1049. serialNumber: '5302ProduceClosedBy',
  1050. tableId: "5302Produce",
  1051. tableName: "待生产工单",
  1052. columnProp: "closedBy",
  1053. headerAlign: "center",
  1054. align: "center",
  1055. columnLabel: "关闭人",
  1056. columnWidth: 80,
  1057. columnHidden: false,
  1058. columnImage: false,
  1059. columnSortable: false,
  1060. sortLv: 0,
  1061. status: true,
  1062. fixed: false
  1063. },
  1064. {
  1065. userId: this.$store.state.user.name,
  1066. functionId: 5302,
  1067. serialNumber: '5302ProduceClosedDate',
  1068. tableId: "5302Produce",
  1069. tableName: "待生产工单",
  1070. columnProp: "closedDate",
  1071. headerAlign: "center",
  1072. align: "center",
  1073. columnLabel: "关闭日期",
  1074. columnWidth: 80,
  1075. columnHidden: false,
  1076. columnImage: false,
  1077. columnSortable: false,
  1078. sortLv: 0,
  1079. status: true,
  1080. fixed: false
  1081. },
  1082. ],
  1083. reportButton: {
  1084. normalReportButton: true,
  1085. fqcReportButton: true,
  1086. reworkReportButton: true,
  1087. packReportButton: true,
  1088. fqcSegmentReportButton: true,
  1089. slitReportButton: true,
  1090. },
  1091. menuButton: {
  1092. prdButton: true,
  1093. openButton: true,
  1094. closedButton: true,
  1095. pauseButton: true,
  1096. openReverseButton: true,
  1097. costRollUpFlagButton: true,
  1098. canceledCostRollUpFlagButton: false,
  1099. manualFlagButton: false,
  1100. canceledManualFlagButton: false,
  1101. repairSOFlagButton: false,
  1102. canceledRepairSOFlagButton: false,
  1103. canceledAllPrdButton: false,
  1104. createRecheckButton: false,
  1105. partStockFlag: true,/*查看物料库存*/
  1106. },
  1107. }
  1108. },
  1109. components: {
  1110. Chooselist,/*选择的组件*/
  1111. Com_split_schedule,
  1112. comSwitchOperator,/*切换用户的组件*/
  1113. comProduceReportNormal,/*报工页面的组件*/
  1114. comSplitOrderReport,/*分切报工*/
  1115. comFinishSchedule,/*结束派工单的组件*/
  1116. fqcProduceReportNormal, /*FQC报工*/
  1117. reworkInspectReport, /*返工重建*/
  1118. fqcSplitRollReport, /*FQC分卷*/
  1119. createRecheck,/*创建重检派工单*/
  1120. changePackaging, /*换包装*/
  1121. comPartStock,/*展示物料库存的组件*/
  1122. },
  1123. mounted() {
  1124. this.$nextTick(() => {
  1125. this.height = window.innerHeight - 235;
  1126. })
  1127. },
  1128. methods: {
  1129. // 控制是否显示功能
  1130. menuButtonFlag() {
  1131. this.menuShow = false
  1132. if (JSON.stringify(this.currentRow) == '{}') {
  1133. this.menuButton.prdButton = true
  1134. this.menuButton.openButton = true
  1135. this.menuButton.closedButton = true
  1136. this.menuButton.pauseButton = true
  1137. this.menuButton.costRollUpFlagButton = true
  1138. this.menuButton.canceledCostRollUpFlagButton = true
  1139. this.menuButton.manualFlagButton = true
  1140. this.menuButton.canceledManualFlagButton = true
  1141. this.menuButton.repairSOFlagButton = true
  1142. this.menuButton.canceledRepairSOFlagButton = true
  1143. this.menuButton.canceledAllPrdButton = true
  1144. this.menuButton.createRecheckButton = true
  1145. } else {
  1146. let currentRow = null
  1147. // 获取订单信息
  1148. let searchOrder = {
  1149. orderNo: this.currentRow.orderNo,
  1150. seqNo: this.currentRow.seqNo,
  1151. site: this.currentRow.site,
  1152. username: this.$store.state.user.name,
  1153. searchFlag: true
  1154. }
  1155. getProduceScheduleList(searchOrder).then(({data}) => {
  1156. //设置查询数据
  1157. currentRow = data.rows[0];
  1158. if (currentRow == null) {
  1159. return;
  1160. }
  1161. //this.menuButton.canceledAllPrdButton = false
  1162. this.menuButton.createRecheckButton = false
  1163. this.menuButton.partStockFlag = false;
  1164. // 判断是否具有该页面权限
  1165. let menList = JSON.parse(sessionStorage.getItem('dynamicMenuRoutes') || '[]').filter(item => item.path == 'shopOrder-shopOrder/shopOrder')
  1166. if (menList.length > 0) {
  1167. this.menuButton.prdButton = false
  1168. }
  1169. let canceledAllPrd = {
  1170. userSpecialSecurityNo: 232,
  1171. username: this.$store.state.user.name,
  1172. }
  1173. getUserSpecialSecurity(canceledAllPrd).then(({data}) => {
  1174. if (data.userSpecialSecurity == 'Y') {
  1175. this.menuButton.canceledAllPrdButton = false
  1176. } else {
  1177. this.menuButton.canceledAllPrdButton = true
  1178. }
  1179. })
  1180. // 关闭按钮
  1181. if (currentRow.closedFlag == 'N') {
  1182. let data = {
  1183. userSpecialSecurityNo: 230,
  1184. username: this.$store.state.user.name,
  1185. }
  1186. getUserSpecialSecurity(data).then(({data}) => {
  1187. if (data.userSpecialSecurity == 'Y') {
  1188. this.menuButton.closedButton = false
  1189. } else {
  1190. this.menuButton.closedButton = true
  1191. }
  1192. })
  1193. } else {
  1194. this.menuButton.closedButton = true
  1195. }
  1196. // 打开按钮
  1197. if (currentRow.closedFlag == 'Y') {
  1198. let data = {
  1199. userSpecialSecurityNo: 231,
  1200. username: this.$store.state.user.name,
  1201. }
  1202. getUserSpecialSecurity(data).then(({data}) => {
  1203. if (data.userSpecialSecurity == 'Y') {
  1204. this.menuButton.openButton = false
  1205. } else {
  1206. this.menuButton.openButton = true
  1207. }
  1208. })
  1209. } else {
  1210. this.menuButton.openButton = true
  1211. }
  1212. // 暂停
  1213. if (currentRow.closedFlag == 'N' && currentRow.parkFlag == 'N') {
  1214. this.menuButton.pauseButton = false
  1215. } else {
  1216. this.menuButton.pauseButton = true
  1217. }
  1218. // 重开
  1219. if (currentRow.closedFlag == 'N' && currentRow.parkFlag == 'Y') {
  1220. this.menuButton.openReverseButton = false
  1221. } else {
  1222. this.menuButton.openReverseButton = true
  1223. }
  1224. // 生产排料
  1225. if (currentRow.matIssueFlag == 'N') {
  1226. // 获取特殊权限
  1227. let data = {
  1228. userSpecialSecurityNo: 238,
  1229. username: this.$store.state.user.name,
  1230. }
  1231. getUserSpecialSecurity(data).then(({data}) => {
  1232. if (data.userSpecialSecurity == 'Y') {
  1233. this.menuButton.costRollUpFlagButton = false
  1234. } else {
  1235. this.menuButton.costRollUpFlagButton = true
  1236. }
  1237. })
  1238. } else {
  1239. this.menuButton.costRollUpFlagButton = true
  1240. }
  1241. // 取消生产排料
  1242. if (currentRow.matIssueFlag == 'Y') {
  1243. // 获取特殊权限
  1244. let data = {
  1245. userSpecialSecurityNo: 238,
  1246. username: this.$store.state.user.name,
  1247. }
  1248. getUserSpecialSecurity(data).then(({data}) => {
  1249. if (data.userSpecialSecurity == 'Y') {
  1250. this.menuButton.canceledCostRollUpFlagButton = false
  1251. } else {
  1252. this.menuButton.canceledCostRollUpFlagButton = true
  1253. }
  1254. })
  1255. } else {
  1256. this.menuButton.canceledCostRollUpFlagButton = true
  1257. }
  1258. // 刀模已发 确认
  1259. if (currentRow.toolIssueFlag == 'N') {
  1260. // 获取特殊权限
  1261. let data = {
  1262. userSpecialSecurityNo: 258,
  1263. username: this.$store.state.user.name,
  1264. }
  1265. getUserSpecialSecurity(data).then(({data}) => {
  1266. if (data.userSpecialSecurity == 'Y') {
  1267. this.menuButton.manualFlagButton = false
  1268. } else {
  1269. this.menuButton.manualFlagButton = true
  1270. }
  1271. })
  1272. } else {
  1273. this.menuButton.manualFlagButton = true
  1274. }
  1275. // 刀模已发 取消
  1276. if (currentRow.toolIssueFlag == 'Y') {
  1277. // 获取特殊权限
  1278. let canceledAllPrdData = {
  1279. userSpecialSecurityNo: 259,
  1280. username: this.$store.state.user.name,
  1281. }
  1282. getUserSpecialSecurity(canceledAllPrdData).then(({data}) => {
  1283. if (data.userSpecialSecurity == 'Y') {
  1284. this.menuButton.canceledManualFlagButton = false
  1285. } else {
  1286. this.menuButton.canceledManualFlagButton = true
  1287. }
  1288. })
  1289. } else {
  1290. this.menuButton.canceledManualFlagButton = true
  1291. }
  1292. // 印版已发 确认
  1293. if (currentRow.plateIssueFlag == 'N') {
  1294. // 获取特殊权限
  1295. let data = {
  1296. userSpecialSecurityNo: 259,
  1297. username: this.$store.state.user.name,
  1298. }
  1299. getUserSpecialSecurity(data).then(({data}) => {
  1300. if (data.userSpecialSecurity == 'Y') {
  1301. this.menuButton.repairSOFlagButton = false
  1302. } else {
  1303. this.menuButton.repairSOFlagButton = true
  1304. }
  1305. })
  1306. } else {
  1307. this.menuButton.repairSOFlagButton = true
  1308. }
  1309. // 印版已发 取消
  1310. if (currentRow.plateIssueFlag == 'Y') {
  1311. // 获取特殊权限
  1312. let data = {
  1313. userSpecialSecurityNo: 259,
  1314. username: this.$store.state.user.name,
  1315. }
  1316. getUserSpecialSecurity(data).then(({data}) => {
  1317. if (data.userSpecialSecurity == 'Y') {
  1318. this.menuButton.canceledRepairSOFlagButton = false
  1319. } else {
  1320. this.menuButton.canceledRepairSOFlagButton = true
  1321. }
  1322. })
  1323. } else {
  1324. this.menuButton.canceledRepairSOFlagButton = true
  1325. }
  1326. this.menuShow = true
  1327. });
  1328. }
  1329. },
  1330. /*区分不同的菜单 调用不同的方法 调用不同的方法*/
  1331. handleCommand(val) {
  1332. //区分是哪一个方法调用
  1333. //页面跳转
  1334. if ('0' == val) {
  1335. if (JSON.stringify(this.currentRow) == '{}') {
  1336. this.$message.error('请先选择派工单!');
  1337. return false;
  1338. }
  1339. this.$router.push({
  1340. path: '/shopOrder-shopOrder/shopOrder',
  1341. query: {
  1342. order: this.currentRow.orderNo,
  1343. site: this.currentRow.site,
  1344. user: this.$store.state.user.name
  1345. }
  1346. })
  1347. }
  1348. if('查看物料库存' === val){
  1349. //判断是否选择好了工单
  1350. if(this.currentRow == null || this.currentRow == {}){
  1351. //重置按钮
  1352. this.menuButton.partStockFlag = true;
  1353. //返回错误
  1354. this.$message.error('请选择派工单!');
  1355. return false;
  1356. }
  1357. let tempData = {'site': this.currentRow.site, 'orderNo': this.currentRow.orderNo};
  1358. //打开组件 需要的数据 展示需要的数据
  1359. this.$nextTick(() => {
  1360. this.showPartStockFlag = true;
  1361. this.$refs.comPartStock.init(tempData);
  1362. })
  1363. }
  1364. // 关闭
  1365. if ('1' == val) {
  1366. //调用提示的方法
  1367. this.$confirm(`确定要关闭当前派工单吗?`, `关闭派工单`, {
  1368. confirmButtonText: '确定',
  1369. cancelButtonText: '取消',
  1370. type: 'warning'
  1371. }).then(() => {
  1372. let data = {
  1373. username: this.$store.state.user.name,
  1374. itemNo: this.currentRow.itemNo,
  1375. site: this.currentRow.site,
  1376. orderNo: this.currentRow.orderNo,
  1377. seqNo: this.currentRow.seqNo,
  1378. closedFlag: 'Y',
  1379. }
  1380. closeOrOpenProduceOrder(data).then(({data}) => {
  1381. if (data.code == 0) {
  1382. this.$message.success(data.msg)
  1383. } else {
  1384. this.$message.error(data.msg)
  1385. }
  1386. })
  1387. });
  1388. }
  1389. // 打开
  1390. if ('2' == val) {
  1391. //调用提示的方法
  1392. this.$confirm(`确定要打开当前派工单吗?`, `关闭派工单`, {
  1393. confirmButtonText: '确定',
  1394. cancelButtonText: '取消',
  1395. type: 'warning'
  1396. }).then(() => {
  1397. let data = {
  1398. username: this.$store.state.user.name,
  1399. itemNo: this.currentRow.itemNo,
  1400. site: this.currentRow.site,
  1401. orderNo: this.currentRow.orderNo,
  1402. seqNo: this.currentRow.seqNo,
  1403. closedFlag: 'N',
  1404. }
  1405. closeOrOpenProduceOrder(data).then(({data}) => {
  1406. if (data.code == 0) {
  1407. this.$message.success(data.msg)
  1408. } else {
  1409. this.$message.error(data.msg)
  1410. }
  1411. })
  1412. });
  1413. }
  1414. // 暂停
  1415. if ('3' == val) {
  1416. //调用提示的方法
  1417. this.$confirm(`确定要暂停当前派工单吗?`, `关闭派工单`, {
  1418. confirmButtonText: '确定',
  1419. cancelButtonText: '取消',
  1420. type: 'warning'
  1421. }).then(() => {
  1422. let data = {
  1423. username: this.$store.state.user.name,
  1424. itemNo: this.currentRow.itemNo,
  1425. site: this.currentRow.site,
  1426. orderNo: this.currentRow.orderNo,
  1427. seqNo: this.currentRow.seqNo,
  1428. parkFlag: 'Y',
  1429. }
  1430. pauseOrOpenProduceOrder(data).then(({data}) => {
  1431. if (data.code == 0) {
  1432. this.$message.success(data.msg)
  1433. } else {
  1434. this.$message.error(data.msg)
  1435. }
  1436. })
  1437. });
  1438. }
  1439. // 重开
  1440. if ('4' == val) {
  1441. //调用提示的方法
  1442. this.$confirm(`确定要重开当前派工单吗?`, `关闭派工单`, {
  1443. confirmButtonText: '确定',
  1444. cancelButtonText: '取消',
  1445. type: 'warning'
  1446. }).then(() => {
  1447. let data = {
  1448. username: this.$store.state.user.name,
  1449. itemNo: this.currentRow.itemNo,
  1450. site: this.currentRow.site,
  1451. orderNo: this.currentRow.orderNo,
  1452. seqNo: this.currentRow.seqNo,
  1453. parkFlag: 'N',
  1454. }
  1455. pauseOrOpenProduceOrder(data).then(({data}) => {
  1456. if (data.code == 0) {
  1457. this.$message.success(data.msg)
  1458. } else {
  1459. this.$message.error(data.msg)
  1460. }
  1461. })
  1462. });
  1463. }
  1464. // 创建重检派工单
  1465. if ('5' == val) {
  1466. this.$nextTick(() => {
  1467. this.$refs.createRecheck.init(this.currentRow);
  1468. });
  1469. }
  1470. // 取消所有派工单操作
  1471. if ('6' == val) {
  1472. //调用提示的方法
  1473. this.$confirm(` 确定取消所有派工单操作`, `生产订单`, {
  1474. confirmButtonText: '确定',
  1475. cancelButtonText: '取消',
  1476. type: 'warning'
  1477. }).then(() => {
  1478. let data = {
  1479. orderNo: this.currentRow.orderNo,
  1480. itemNo: this.currentRow.itemNo,
  1481. site: this.currentRow.site,
  1482. seqNo: this.currentRow.seqNo,
  1483. username: this.searchData.username,
  1484. userDisplay: this.searchData.userDisplay,
  1485. }
  1486. workbenchCancelallops(data).then(({data}) => {
  1487. if (data.code == 0) {
  1488. this.$message.success(data.msg)
  1489. } else {
  1490. this.$message.warning(data.msg)
  1491. }
  1492. })
  1493. })
  1494. }
  1495. // 生产已排料 确认
  1496. if ('7' == val) {
  1497. //调用提示的方法
  1498. this.$confirm(` 确定该订单的料已排`, `生产已排料`, {
  1499. confirmButtonText: '确定',
  1500. cancelButtonText: '取消',
  1501. type: 'warning'
  1502. }).then(() => {
  1503. let data = {
  1504. site: this.currentRow.site,
  1505. orderNo: this.currentRow.orderNo,
  1506. itemNo: this.currentRow.itemNo,
  1507. seqNo: this.currentRow.seqNo,
  1508. username: this.$store.state.user.name,
  1509. matIssueFlag: 'Y',
  1510. orderChangeStatus: "订单已排料",
  1511. }
  1512. costRollUpProduceOrder(data).then(({data}) => {
  1513. if (data.code == 0) {
  1514. this.$message.success(data.msg)
  1515. } else {
  1516. this.$message.warning(data.msg)
  1517. }
  1518. })
  1519. })
  1520. }
  1521. // 生产已排料 取消
  1522. if ('8' == val) {
  1523. //调用提示的方法
  1524. this.$confirm(` 确定要撤销该订单的排料?`, `撤销订单排料`, {
  1525. confirmButtonText: '确定',
  1526. cancelButtonText: '取消',
  1527. type: 'warning'
  1528. }).then(() => {
  1529. let data = {
  1530. site: this.currentRow.site,
  1531. orderNo: this.currentRow.orderNo,
  1532. itemNo: this.currentRow.itemNo,
  1533. seqNo: this.currentRow.seqNo,
  1534. matIssueFlag: 'N',
  1535. orderChangeStatus: "撤销订单排料",
  1536. }
  1537. costRollUpProduceOrder(data).then(({data}) => {
  1538. if (data.code == 0) {
  1539. this.$message.success(data.msg)
  1540. } else {
  1541. this.$message.warning(data.msg)
  1542. }
  1543. })
  1544. })
  1545. }
  1546. // 刀模 确认
  1547. if ('9' == val) {
  1548. this.$confirm(` 确定该订单的刀模已发?`, `刀模已发`, {
  1549. confirmButtonText: '确定',
  1550. cancelButtonText: '取消',
  1551. type: 'warning'
  1552. }).then(() => {
  1553. let data = {
  1554. site: this.currentRow.site,
  1555. orderNo: this.currentRow.orderNo,
  1556. itemNo: this.currentRow.itemNo,
  1557. seqNo: this.currentRow.seqNo,
  1558. toolIssueFlag: 'Y',
  1559. orderChangeStatus: "订单刀模已发",
  1560. }
  1561. manualProduceOrder(data).then(({data}) => {
  1562. if (data.code == 0) {
  1563. this.$message.success(data.msg)
  1564. } else {
  1565. this.$message.warning(data.msg)
  1566. }
  1567. })
  1568. })
  1569. }
  1570. // 刀模 取消
  1571. if ('10' == val) {
  1572. this.$confirm(` 确定要撤销该订单的刀模已发?`, `刀模已发`, {
  1573. confirmButtonText: '确定',
  1574. cancelButtonText: '取消',
  1575. type: 'warning'
  1576. }).then(() => {
  1577. let data = {
  1578. site: this.currentRow.site,
  1579. orderNo: this.currentRow.orderNo,
  1580. itemNo: this.currentRow.itemNo,
  1581. seqNo: this.currentRow.seqNo,
  1582. toolIssueFlag: 'N',
  1583. orderChangeStatus: "撤销订单刀模已发",
  1584. }
  1585. manualProduceOrder(data).then(({data}) => {
  1586. if (data.code == 0) {
  1587. this.$message.success(data.msg)
  1588. } else {
  1589. this.$message.warning(data.msg)
  1590. }
  1591. })
  1592. })
  1593. }
  1594. // 印版已发
  1595. if ('11' == val) {
  1596. this.$confirm(` 确定该订单的印版已发?`, `印版已发`, {
  1597. confirmButtonText: '确定',
  1598. cancelButtonText: '取消',
  1599. type: 'warning'
  1600. }).then(() => {
  1601. let data = {
  1602. site: this.currentRow.site,
  1603. orderNo: this.currentRow.orderNo,
  1604. itemNo: this.currentRow.itemNo,
  1605. seqNo: this.currentRow.seqNo,
  1606. plateIssueFlag: 'Y',
  1607. orderChangeStatus: "订单印版已发",
  1608. }
  1609. repairSOFlagProduceOrder(data).then(({data}) => {
  1610. if (data.code == 0) {
  1611. this.$message.success(data.msg)
  1612. } else {
  1613. this.$message.warning(data.msg)
  1614. }
  1615. })
  1616. })
  1617. }
  1618. // 印版已发 取消
  1619. if ('12' == val) {
  1620. this.$confirm(` 确定要撤销该订单的印版已发?`, `订单印版`, {
  1621. confirmButtonText: '确定',
  1622. cancelButtonText: '取消',
  1623. type: 'warning'
  1624. }).then(() => {
  1625. let data = {
  1626. site: this.currentRow.site,
  1627. orderNo: this.currentRow.orderNo,
  1628. itemNo: this.currentRow.itemNo,
  1629. seqNo: this.currentRow.seqNo,
  1630. plateIssueFlag: 'N',
  1631. orderChangeStatus: "订单印版已发",
  1632. }
  1633. repairSOFlagProduceOrder(data).then(({data}) => {
  1634. if (data.code == 0) {
  1635. this.$message.success(data.msg)
  1636. } else {
  1637. this.$message.warning(data.msg)
  1638. }
  1639. })
  1640. })
  1641. }
  1642. },
  1643. // FQC 报工
  1644. fqcReportModal() {
  1645. //首先判断是否选择好派工单
  1646. if (JSON.stringify(this.currentRow) == '{}') {
  1647. this.$message.error('请先选择派工单!');
  1648. return false;
  1649. }
  1650. //打开操作员切换功能
  1651. this.fqcShowReportFlag = true;
  1652. this.$nextTick(() => {
  1653. this.$refs.fqcProduceReportNormal.init(this.currentRow.seqNo, this.operatorData);
  1654. });
  1655. },
  1656. // FQC 分卷
  1657. fqcSplitRollModal() {
  1658. if (JSON.stringify(this.currentRow) == '{}') {
  1659. this.$message.error('请先选择派工单!');
  1660. return false;
  1661. }
  1662. //打开操作员切换功能
  1663. this.fqcRollShowReportFlag = true;
  1664. this.$nextTick(() => {
  1665. this.$refs.fqcSplitRollReport.init(this.currentRow.seqNo, this.operatorData);
  1666. });
  1667. },
  1668. // 返工重捡
  1669. reworkInspectModal() {
  1670. //首先判断是否选择好派工单
  1671. if (JSON.stringify(this.currentRow) == '{}') {
  1672. this.$message.error('请先选择派工单!');
  1673. return false;
  1674. }
  1675. //打开操作员切换功能
  1676. this.reworkShowReportFlag = true;
  1677. this.$nextTick(() => {
  1678. this.$refs.reworkInspectReport.init(this.currentRow.seqNo, this.operatorData);
  1679. });
  1680. },
  1681. // 换包装
  1682. changePackaging() {
  1683. //首先判断是否选择好派工单
  1684. if (JSON.stringify(this.currentRow) == '{}') {
  1685. this.$message.error('请先选择派工单!');
  1686. return false;
  1687. }
  1688. //打开操作员切换功能
  1689. this.changePackagingFlag = true;
  1690. this.$nextTick(() => {
  1691. this.$refs.changePackaging.init(this.currentRow.seqNo, this.operatorData);
  1692. });
  1693. },
  1694. /*查询派工单*/
  1695. getProduceScheduleList() {
  1696. //开始真的查询;
  1697. this.searchData.searchFlag = true;
  1698. getProduceScheduleList(this.searchData).then(({data}) => {
  1699. //设置查询数据
  1700. this.produceScheduleList = data.rows;
  1701. })
  1702. },
  1703. /*刷新页面table*/
  1704. refreshPageTables() {
  1705. this.currentRow = {}
  1706. this.getProduceScheduleList();
  1707. },
  1708. /*设置选中行的参数*/
  1709. setCurrentRow(row, column, event) {
  1710. this.currentRow = JSON.parse(JSON.stringify(row));
  1711. },
  1712. //设置参数
  1713. initOperatorData(operatorData) {
  1714. this.showOperatorFlag = false;
  1715. this.operatorData = JSON.parse(JSON.stringify(operatorData));
  1716. if (operatorData.reportType == 0) {
  1717. //切换到报工组件
  1718. this.switchProduceReportModal();
  1719. }
  1720. if (operatorData.reportType == 1) {
  1721. //切换到fqc报工组件
  1722. this.fqcReportModal();
  1723. }
  1724. if (operatorData.reportType == 2) {
  1725. //切换到返工 重检组件
  1726. this.reworkInspectModal();
  1727. }
  1728. if (operatorData.reportType == 3) {
  1729. //切换到fqc分卷组件
  1730. this.fqcSplitRollModal();
  1731. }
  1732. if (operatorData.reportType == 4) {
  1733. // 换包装
  1734. this.changePackaging();
  1735. }
  1736. /*分切报工*/
  1737. if (operatorData.reportType == 8) {
  1738. // 分切报工
  1739. this.showSplitOrderReportModal();
  1740. }
  1741. },
  1742. notInitOperatorData(val) {
  1743. //注销用户信息
  1744. this.operatorData.operatorId = '';
  1745. this.operatorData.operatorName = '';
  1746. //关闭切换用户模态框
  1747. this.showOperatorFlag = false;
  1748. if (val == 0) {
  1749. //切换到报工组件
  1750. this.switchProduceReportModal();
  1751. }
  1752. if (val == 1) {
  1753. //切换到fqc报工组件
  1754. this.fqcReportModal();
  1755. }
  1756. if (val == 2) {
  1757. //切换到返工 重检组件
  1758. this.reworkInspectModal();
  1759. }
  1760. if (val == 3) {
  1761. //切换到fqc分卷组件
  1762. this.fqcSplitRollModal();
  1763. }
  1764. if (val == 4) {
  1765. //切换到换包装
  1766. this.changePackaging();
  1767. }
  1768. //分切报工
  1769. if (val == 8) {
  1770. //分切报工
  1771. this.showSplitOrderReportModal();
  1772. }
  1773. },
  1774. //切换员工modal
  1775. switchOperatorModal(val) {
  1776. //首先判断是否选择好派工单
  1777. if (JSON.stringify(this.currentRow) == '{}') {
  1778. this.$message.error('请先选择派工单!');
  1779. return false;
  1780. }
  1781. if (val == 0) {
  1782. let orderType = this.currentRow.orderType;
  1783. let workCenterNo = this.currentRow.workCenterNo;
  1784. if(orderType != 'S' || workCenterNo === 'FQC'){
  1785. //验证通过
  1786. this.$message.error('当前派工单无法使用报工!');
  1787. return false;
  1788. }
  1789. let data = {
  1790. site: this.currentRow.site,
  1791. resourceId: this.currentRow.resourceId,
  1792. workCenterNo: this.currentRow.workCenterNo,
  1793. seqNo: this.currentRow.seqNo,
  1794. username: this.$store.state.user.name
  1795. }
  1796. reportCheck(data).then(({data}) => {
  1797. if (data.code == 0) {
  1798. //打开操作员切换功能
  1799. this.showOperatorFlag = true;
  1800. this.$nextTick(() => {
  1801. this.$refs.comSwitchOperator.init(val);
  1802. });
  1803. }
  1804. if (data.code == 300) {
  1805. this.$message.warning(data.msg)
  1806. }
  1807. if (data.code == 400) {
  1808. this.$confirm(`${data.msg}`, '提示', {
  1809. confirmButtonText: '确定',
  1810. cancelButtonText: '取消',
  1811. type: 'warning'
  1812. }).then(() => {
  1813. //打开操作员切换功能
  1814. this.showOperatorFlag = true;
  1815. this.$nextTick(() => {
  1816. this.$refs.comSwitchOperator.init(val);
  1817. });
  1818. })
  1819. }
  1820. })
  1821. }else if(val == 8){//处理 分切工单
  1822. //判断当前工单是否是分切工单
  1823. let orderType = this.currentRow.orderType;
  1824. if(orderType === 'D'){
  1825. this.showOperatorFlag = true;
  1826. this.$refs.comSwitchOperator.init(val);
  1827. }else{
  1828. this.$message.error('当前工单非分切工单!');
  1829. return false;
  1830. }
  1831. }else if(val == 1){//处理 FQC
  1832. //判断订单类型和加工中心
  1833. let workCenterNo = this.currentRow.workCenterNo;
  1834. if(workCenterNo === 'FQC'){
  1835. this.showOperatorFlag = true;
  1836. this.$refs.comSwitchOperator.init(val);
  1837. }else{
  1838. this.$message.error('当前派工单非FQC报工派工单!');
  1839. return false;
  1840. }
  1841. }else{
  1842. if (val == 4){
  1843. getShopOrder(this.currentRow).then(({data}) =>{
  1844. if (data.code == 0){
  1845. if (data.data == 'P'){
  1846. //打开操作员切换功能
  1847. this.showOperatorFlag = true;
  1848. this.$nextTick(() => {
  1849. this.$refs.comSwitchOperator.init(val);
  1850. });
  1851. }else {
  1852. this.$alert('该订单不是特殊订单,不能采用该功能!', '提示', {
  1853. confirmButtonText: '确定'})
  1854. }
  1855. }
  1856. })
  1857. }else {
  1858. //打开操作员切换功能
  1859. this.showOperatorFlag = true;
  1860. this.$nextTick(() => {
  1861. this.$refs.comSwitchOperator.init(val);
  1862. });
  1863. }
  1864. }
  1865. },
  1866. //切换报工modal
  1867. switchProduceReportModal() {
  1868. //首先判断是否选择好派工单
  1869. if (JSON.stringify(this.currentRow) == '{}') {
  1870. this.$message.error('请先选择派工单!');
  1871. return false;
  1872. }
  1873. //打开操作员切换功能
  1874. this.showReportFlag = true;
  1875. this.$nextTick(() => {
  1876. this.$refs.comProduceReportNormal.init(this.currentRow.seqNo, this.operatorData);
  1877. });
  1878. },
  1879. //打开分切报工的
  1880. showSplitOrderReportModal() {
  1881. //首先判断是否选择好派工单
  1882. if (JSON.stringify(this.currentRow) == '{}') {
  1883. this.$message.error('请先选择派工单!');
  1884. return false;
  1885. }
  1886. this.$nextTick(() => {
  1887. //打开分切报工功能
  1888. this.showSplitReportFlag = true;
  1889. this.$refs.comSplitOrderReport.init(this.currentRow.seqNo, this.operatorData);
  1890. });
  1891. },
  1892. //打开结束派工单的modal
  1893. showFinishScheduleModal() {
  1894. //首先判断是否选择好派工单
  1895. if (JSON.stringify(this.currentRow) == '{}') {
  1896. this.$message.error('请先选择派工单!');
  1897. return false;
  1898. }
  1899. //打开操作员切换功能
  1900. this.showFinishScheduleFlag = true;
  1901. this.$nextTick(() => {
  1902. this.$refs.comFinishSchedule.init(this.currentRow, this.operatorData);
  1903. });
  1904. },
  1905. //结束派工单后刷新页面
  1906. processFinishScheduleOperation() {
  1907. //刷新当前页面的数据
  1908. this.refreshPageTables();
  1909. },
  1910. //保存操作员的信息
  1911. saveOperatorData() {
  1912. //查询操作员信息
  1913. getOperatorData(this.operatorData).then(({data}) => {
  1914. let operatorData = data.row;
  1915. let status = operatorData.status;
  1916. this.operatorData.operatorName = data.row.operatorName;
  1917. //重置操作员信息状态
  1918. this.operatorData.status = status;
  1919. //判断是否验证通过
  1920. if (status == 'N') {
  1921. this.operatorFlag = false;
  1922. } else {
  1923. this.operatorFlag = true;
  1924. }
  1925. if (!this.operatorFlag) {
  1926. this.$message.error('操作员信息不可用!');
  1927. }
  1928. })
  1929. //判断是否检查通过--不通过不在继续
  1930. .then(() => {
  1931. if (!this.operatorFlag) {
  1932. return false;
  1933. }
  1934. //关闭操作员切换功能
  1935. this.operatorData.showFlag = false;
  1936. //打开组件
  1937. this.showReportFlag = true;
  1938. //打开报工操作页面
  1939. this.$nextTick(() => {
  1940. this.$refs.comProduceReportNormal.init(this.currentRow.seqNo, this.operatorData);
  1941. });
  1942. })
  1943. },
  1944. /*列表方法的回调*/
  1945. getBaseData(val){
  1946. if (this.tagNo === 88){
  1947. this.searchData.resourceId = val.ResourceID;
  1948. }
  1949. },
  1950. // 获取基础数据列表
  1951. getBaseList(val){
  1952. this.tagNo = val
  1953. this.$nextTick(() => {
  1954. let strVal = "";
  1955. if (val === 88){
  1956. strVal = this.searchData.resourceId;
  1957. }
  1958. this.$refs.baseList.init(val,strVal, " AND WorkCenterNo <> 'FQC'");
  1959. })
  1960. },
  1961. },
  1962. created() {
  1963. //不查询
  1964. getProduceScheduleList(this.searchData).then(({data}) => {
  1965. //设置查询数据
  1966. this.searchData.searchFlag = false;
  1967. this.produceScheduleList = data.rows;
  1968. });
  1969. /*获取报工的特殊权限*/
  1970. getScheduleMultiReportSpecialAuth(this.searchData).then(({data}) => {
  1971. let authMap = data.authMap;
  1972. //区分是否打开按钮
  1973. if(authMap.normalReportFlag === 'Y'){
  1974. this.reportButton.normalReportButton = false;
  1975. }else {
  1976. this.reportButton.normalReportButton = true;
  1977. }
  1978. if(authMap.fqcReportFlag === 'Y'){
  1979. this.reportButton.fqcReportButton = false;
  1980. }else {
  1981. this.reportButton.fqcReportButton = true;
  1982. }
  1983. if(authMap.reworkReportFlag === 'Y'){
  1984. this.reportButton.reworkReportButton = false;
  1985. }else {
  1986. this.reportButton.reworkReportButton = true;
  1987. }
  1988. if(authMap.packReportFlag === 'Y'){
  1989. this.reportButton.packReportButton = false;
  1990. }else {
  1991. this.reportButton.packReportButton = true;
  1992. }
  1993. if(authMap.fqcSegmentReportFlag === 'Y'){
  1994. this.reportButton.fqcSegmentReportButton = false;
  1995. }else {
  1996. this.reportButton.fqcSegmentReportButton = true;
  1997. }
  1998. if(authMap.slitReportFlag === 'Y'){
  1999. this.reportButton.slitReportButton = false;
  2000. }else{
  2001. this.reportButton.slitReportButton = true;
  2002. }
  2003. });
  2004. }
  2005. }
  2006. </script>
  2007. <style>
  2008. .el-textarea__inner {
  2009. padding: 5px 5px;
  2010. }
  2011. </style>
  2012. <!--当前页面的标签样式-->
  2013. <style scoped lang="scss">
  2014. /*针对el-card*/
  2015. .customer-card .el-form-item__content {
  2016. margin-top: -15px;
  2017. }
  2018. .customer-card .el-form-item {
  2019. height: 22px;
  2020. }
  2021. .customer-border .el-form-item__content {
  2022. margin-top: -30px;
  2023. }
  2024. /*全局年与日类型 宽度*/
  2025. div.el-time-width {
  2026. width: 110px !important;
  2027. }
  2028. /* 全局时间右边框*/
  2029. .customer-css input.el-input__inner {
  2030. height: 22px !important;
  2031. padding-right: 0px !important;
  2032. }
  2033. /* 控制el-card标签的数据*/
  2034. div.customer-el-card {
  2035. margin-left: 110px;
  2036. margin-top: -15px;
  2037. height: 20px;
  2038. width: 60px;
  2039. }
  2040. /* 颜色控制 */
  2041. div.customer-el-card-pink {
  2042. background: #FF00FF;
  2043. }
  2044. div.customer-el-card-orange {
  2045. background: #FFD700;
  2046. }
  2047. div.customer-el-card-blue {
  2048. background: #0000CD;
  2049. }
  2050. /*清掉样式*/
  2051. .el-radio + .el-radio {
  2052. margin-left: 0px;
  2053. }
  2054. /*当前按钮的通用样式*/
  2055. .customer-css .customer-bun-mid {
  2056. width: 65px;
  2057. text-align: center;
  2058. }
  2059. /*当前按钮的通用样式*/
  2060. .customer-css .el-button--medium {
  2061. padding: 5px 5px;
  2062. }
  2063. /*添加主菜单和明细菜单的样式*/
  2064. .customer-css .customer-dropdown .el-button--primary {
  2065. padding: 2px;
  2066. font-size: 12px;
  2067. }
  2068. .el-dropdown-menu--medium .el-dropdown-menu__item {
  2069. line-height: 18px;
  2070. padding: 0 17px;
  2071. font-size: 12px;
  2072. }
  2073. hr {
  2074. margin-top: 0px;
  2075. }
  2076. /*控制上下间距*/
  2077. </style>