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.

2124 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: '5302ProduceCostRollUpFlag',
  276. tableId: "5302Produce",
  277. tableName: "待生产工单",
  278. columnProp: "costRollUpFlag",
  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: '5302ProduceManualFlag',
  294. tableId: "5302Produce",
  295. tableName: "待生产工单",
  296. columnProp: "manualFlag",
  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: '5302ProduceRepairSOFlag',
  312. tableId: "5302Produce",
  313. tableName: "待生产工单",
  314. columnProp: "repairSOFlag",
  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. // 关闭按钮
  1170. if (currentRow.closedFlag == 'N') {
  1171. let data = {
  1172. userSpecialSecurityNo: 230,
  1173. username: this.$store.state.user.name,
  1174. }
  1175. getUserSpecialSecurity(data).then(({data}) => {
  1176. if (data.userSpecialSecurity == 'Y') {
  1177. this.menuButton.closedButton = false
  1178. } else {
  1179. this.menuButton.closedButton = true
  1180. }
  1181. })
  1182. } else {
  1183. this.menuButton.closedButton = true
  1184. }
  1185. // 打开按钮
  1186. if (currentRow.closedFlag == 'Y') {
  1187. let data = {
  1188. userSpecialSecurityNo: 231,
  1189. username: this.$store.state.user.name,
  1190. }
  1191. getUserSpecialSecurity(data).then(({data}) => {
  1192. if (data.userSpecialSecurity == 'Y') {
  1193. this.menuButton.openButton = false
  1194. } else {
  1195. this.menuButton.openButton = true
  1196. }
  1197. })
  1198. } else {
  1199. this.menuButton.openButton = true
  1200. }
  1201. // 暂停
  1202. if (currentRow.closedFlag == 'N' && currentRow.parkFlag == 'N') {
  1203. this.menuButton.pauseButton = false
  1204. } else {
  1205. this.menuButton.pauseButton = true
  1206. }
  1207. // 重开
  1208. if (currentRow.closedFlag == 'N' && currentRow.parkFlag == 'Y') {
  1209. this.menuButton.openReverseButton = false
  1210. } else {
  1211. this.menuButton.openReverseButton = true
  1212. }
  1213. // 生产排料
  1214. if (currentRow.costRollUpFlag == 'N') {
  1215. // 获取特殊权限
  1216. let data = {
  1217. userSpecialSecurityNo: 238,
  1218. username: this.$store.state.user.name,
  1219. }
  1220. getUserSpecialSecurity(data).then(({data}) => {
  1221. if (data.userSpecialSecurity == 'Y') {
  1222. this.menuButton.costRollUpFlagButton = false
  1223. } else {
  1224. this.menuButton.costRollUpFlagButton = true
  1225. }
  1226. })
  1227. } else {
  1228. this.menuButton.costRollUpFlagButton = true
  1229. }
  1230. // 取消生产排料
  1231. if (currentRow.costRollUpFlag == 'Y') {
  1232. // 获取特殊权限
  1233. let data = {
  1234. userSpecialSecurityNo: 238,
  1235. username: this.$store.state.user.name,
  1236. }
  1237. getUserSpecialSecurity(data).then(({data}) => {
  1238. if (data.userSpecialSecurity == 'Y') {
  1239. this.menuButton.canceledCostRollUpFlagButton = false
  1240. } else {
  1241. this.menuButton.canceledCostRollUpFlagButton = true
  1242. }
  1243. })
  1244. } else {
  1245. this.menuButton.canceledCostRollUpFlagButton = true
  1246. }
  1247. // 刀模已发 确认
  1248. if (currentRow.manualFlag == 'N') {
  1249. // 获取特殊权限
  1250. let data = {
  1251. userSpecialSecurityNo: 258,
  1252. username: this.$store.state.user.name,
  1253. }
  1254. getUserSpecialSecurity(data).then(({data}) => {
  1255. if (data.userSpecialSecurity == 'Y') {
  1256. this.menuButton.manualFlagButton = false
  1257. } else {
  1258. this.menuButton.manualFlagButton = true
  1259. }
  1260. })
  1261. } else {
  1262. this.menuButton.manualFlagButton = true
  1263. }
  1264. // 刀模已发 取消
  1265. if (currentRow.manualFlag == 'Y') {
  1266. // 获取特殊权限
  1267. let canceledAllPrdData = {
  1268. userSpecialSecurityNo: 259,
  1269. username: this.$store.state.user.name,
  1270. }
  1271. getUserSpecialSecurity(canceledAllPrdData).then(({data}) => {
  1272. if (data.userSpecialSecurity == 'Y') {
  1273. this.menuButton.canceledManualFlagButton = false
  1274. } else {
  1275. this.menuButton.canceledManualFlagButton = true
  1276. }
  1277. })
  1278. } else {
  1279. this.menuButton.canceledManualFlagButton = true
  1280. }
  1281. // 印版已发 确认
  1282. if (currentRow.repairSOFlag == 'N') {
  1283. // 获取特殊权限
  1284. let data = {
  1285. userSpecialSecurityNo: 259,
  1286. username: this.$store.state.user.name,
  1287. }
  1288. getUserSpecialSecurity(data).then(({data}) => {
  1289. if (data.userSpecialSecurity == 'Y') {
  1290. this.menuButton.repairSOFlagButton = false
  1291. } else {
  1292. this.menuButton.repairSOFlagButton = true
  1293. }
  1294. })
  1295. } else {
  1296. this.menuButton.repairSOFlagButton = true
  1297. }
  1298. // 印版已发 取消
  1299. if (currentRow.repairSOFlag == 'Y') {
  1300. // 获取特殊权限
  1301. let data = {
  1302. userSpecialSecurityNo: 259,
  1303. username: this.$store.state.user.name,
  1304. }
  1305. getUserSpecialSecurity(data).then(({data}) => {
  1306. if (data.userSpecialSecurity == 'Y') {
  1307. this.menuButton.canceledRepairSOFlagButton = false
  1308. } else {
  1309. this.menuButton.canceledRepairSOFlagButton = true
  1310. }
  1311. })
  1312. } else {
  1313. this.menuButton.canceledRepairSOFlagButton = true
  1314. }
  1315. this.menuShow = true
  1316. });
  1317. }
  1318. },
  1319. /*区分不同的菜单 调用不同的方法 调用不同的方法*/
  1320. handleCommand(val) {
  1321. //区分是哪一个方法调用
  1322. //页面跳转
  1323. if ('0' == val) {
  1324. if (JSON.stringify(this.currentRow) == '{}') {
  1325. this.$message.error('请先选择派工单!');
  1326. return false;
  1327. }
  1328. this.$router.push({
  1329. path: '/shopOrder-shopOrder/shopOrder',
  1330. query: {
  1331. order: this.currentRow.orderNo,
  1332. site: this.currentRow.site,
  1333. user: this.$store.state.user.name
  1334. }
  1335. })
  1336. }
  1337. if('查看物料库存' === val){
  1338. //判断是否选择好了工单
  1339. if(this.currentRow == null || this.currentRow == {}){
  1340. //重置按钮
  1341. this.menuButton.partStockFlag = true;
  1342. //返回错误
  1343. this.$message.error('请选择派工单!');
  1344. return false;
  1345. }
  1346. let tempData = {'site': this.currentRow.site, 'orderNo': this.currentRow.orderNo};
  1347. //打开组件 需要的数据 展示需要的数据
  1348. this.$nextTick(() => {
  1349. this.showPartStockFlag = true;
  1350. this.$refs.comPartStock.init(tempData);
  1351. })
  1352. }
  1353. // 关闭
  1354. if ('1' == val) {
  1355. //调用提示的方法
  1356. this.$confirm(`确定要关闭当前派工单吗?`, `关闭派工单`, {
  1357. confirmButtonText: '确定',
  1358. cancelButtonText: '取消',
  1359. type: 'warning'
  1360. }).then(() => {
  1361. let data = {
  1362. username: this.$store.state.user.name,
  1363. itemNo: this.currentRow.itemNo,
  1364. site: this.currentRow.site,
  1365. orderNo: this.currentRow.orderNo,
  1366. seqNo: this.currentRow.seqNo,
  1367. closedFlag: 'Y',
  1368. }
  1369. closeOrOpenProduceOrder(data).then(({data}) => {
  1370. if (data.code == 0) {
  1371. this.$message.success(data.msg)
  1372. } else {
  1373. this.$message.error(data.msg)
  1374. }
  1375. })
  1376. });
  1377. }
  1378. // 打开
  1379. if ('2' == val) {
  1380. //调用提示的方法
  1381. this.$confirm(`确定要打开当前派工单吗?`, `关闭派工单`, {
  1382. confirmButtonText: '确定',
  1383. cancelButtonText: '取消',
  1384. type: 'warning'
  1385. }).then(() => {
  1386. let data = {
  1387. username: this.$store.state.user.name,
  1388. itemNo: this.currentRow.itemNo,
  1389. site: this.currentRow.site,
  1390. orderNo: this.currentRow.orderNo,
  1391. seqNo: this.currentRow.seqNo,
  1392. closedFlag: 'N',
  1393. }
  1394. closeOrOpenProduceOrder(data).then(({data}) => {
  1395. if (data.code == 0) {
  1396. this.$message.success(data.msg)
  1397. } else {
  1398. this.$message.error(data.msg)
  1399. }
  1400. })
  1401. });
  1402. }
  1403. // 暂停
  1404. if ('3' == val) {
  1405. //调用提示的方法
  1406. this.$confirm(`确定要暂停当前派工单吗?`, `关闭派工单`, {
  1407. confirmButtonText: '确定',
  1408. cancelButtonText: '取消',
  1409. type: 'warning'
  1410. }).then(() => {
  1411. let data = {
  1412. username: this.$store.state.user.name,
  1413. itemNo: this.currentRow.itemNo,
  1414. site: this.currentRow.site,
  1415. orderNo: this.currentRow.orderNo,
  1416. seqNo: this.currentRow.seqNo,
  1417. parkFlag: 'Y',
  1418. }
  1419. pauseOrOpenProduceOrder(data).then(({data}) => {
  1420. if (data.code == 0) {
  1421. this.$message.success(data.msg)
  1422. } else {
  1423. this.$message.error(data.msg)
  1424. }
  1425. })
  1426. });
  1427. }
  1428. // 重开
  1429. if ('4' == val) {
  1430. //调用提示的方法
  1431. this.$confirm(`确定要重开当前派工单吗?`, `关闭派工单`, {
  1432. confirmButtonText: '确定',
  1433. cancelButtonText: '取消',
  1434. type: 'warning'
  1435. }).then(() => {
  1436. let data = {
  1437. username: this.$store.state.user.name,
  1438. itemNo: this.currentRow.itemNo,
  1439. site: this.currentRow.site,
  1440. orderNo: this.currentRow.orderNo,
  1441. seqNo: this.currentRow.seqNo,
  1442. parkFlag: 'N',
  1443. }
  1444. pauseOrOpenProduceOrder(data).then(({data}) => {
  1445. if (data.code == 0) {
  1446. this.$message.success(data.msg)
  1447. } else {
  1448. this.$message.error(data.msg)
  1449. }
  1450. })
  1451. });
  1452. }
  1453. // 创建重检派工单
  1454. if ('5' == val) {
  1455. this.$nextTick(() => {
  1456. this.$refs.createRecheck.init(this.currentRow);
  1457. });
  1458. }
  1459. // 取消所有派工单操作
  1460. if ('6' == val) {
  1461. //调用提示的方法
  1462. this.$confirm(` 确定取消所有派工单操作`, `生产订单`, {
  1463. confirmButtonText: '确定',
  1464. cancelButtonText: '取消',
  1465. type: 'warning'
  1466. }).then(() => {
  1467. let data = {
  1468. orderNo: this.currentRow.orderNo,
  1469. itemNo: this.currentRow.itemNo,
  1470. site: this.currentRow.site,
  1471. seqNo: this.currentRow.seqNo,
  1472. username: this.searchData.username,
  1473. userDisplay: this.searchData.userDisplay,
  1474. }
  1475. workbenchCancelallops(data).then(({data}) => {
  1476. if (data.code == 0) {
  1477. this.$message.success(data.msg)
  1478. } else {
  1479. this.$message.warning(data.msg)
  1480. }
  1481. })
  1482. })
  1483. }
  1484. // 生产已排料 确认
  1485. if ('7' == val) {
  1486. //调用提示的方法
  1487. this.$confirm(` 确定该订单的料已排`, `生产已排料`, {
  1488. confirmButtonText: '确定',
  1489. cancelButtonText: '取消',
  1490. type: 'warning'
  1491. }).then(() => {
  1492. let data = {
  1493. username: this.$store.state.user.name,
  1494. orderNo: this.currentRow.orderNo,
  1495. costRollUpFlag: 'Y',
  1496. site: this.currentRow.site,
  1497. orderChangeStatus: "订单已排料",
  1498. }
  1499. costRollUpProduceOrder(data).then(({data}) => {
  1500. if (data.code == 0) {
  1501. this.$message.success(data.msg)
  1502. } else {
  1503. this.$message.warning(data.msg)
  1504. }
  1505. })
  1506. })
  1507. }
  1508. // 生产已排料 取消
  1509. if ('8' == val) {
  1510. //调用提示的方法
  1511. this.$confirm(` 确定要撤销该订单的排料?`, `撤销订单排料`, {
  1512. confirmButtonText: '确定',
  1513. cancelButtonText: '取消',
  1514. type: 'warning'
  1515. }).then(() => {
  1516. let data = {
  1517. username: this.$store.state.user.name,
  1518. orderNo: this.currentRow.orderNo,
  1519. costRollUpFlag: 'N',
  1520. site: this.currentRow.site,
  1521. orderChangeStatus: "撤销订单排料",
  1522. }
  1523. costRollUpProduceOrder(data).then(({data}) => {
  1524. if (data.code == 0) {
  1525. this.$message.success(data.msg)
  1526. } else {
  1527. this.$message.warning(data.msg)
  1528. }
  1529. })
  1530. })
  1531. }
  1532. // 刀模 确认
  1533. if ('9' == val) {
  1534. this.$confirm(` 确定该订单的刀模已发?`, `刀模已发`, {
  1535. confirmButtonText: '确定',
  1536. cancelButtonText: '取消',
  1537. type: 'warning'
  1538. }).then(() => {
  1539. let data = {
  1540. username: this.$store.state.user.name,
  1541. orderNo: this.currentRow.orderNo,
  1542. manualFlag: 'Y',
  1543. site: this.currentRow.site,
  1544. orderChangeStatus: "订单刀模已发",
  1545. }
  1546. manualProduceOrder(data).then(({data}) => {
  1547. if (data.code == 0) {
  1548. this.$message.success(data.msg)
  1549. } else {
  1550. this.$message.warning(data.msg)
  1551. }
  1552. })
  1553. })
  1554. }
  1555. // 刀模 取消
  1556. if ('10' == val) {
  1557. this.$confirm(` 确定要撤销该订单的刀模已发?`, `刀模已发`, {
  1558. confirmButtonText: '确定',
  1559. cancelButtonText: '取消',
  1560. type: 'warning'
  1561. }).then(() => {
  1562. let data = {
  1563. username: this.$store.state.user.name,
  1564. orderNo: this.currentRow.orderNo,
  1565. manualFlag: 'N',
  1566. site: this.currentRow.site,
  1567. orderChangeStatus: "撤销订单刀模已发",
  1568. }
  1569. manualProduceOrder(data).then(({data}) => {
  1570. if (data.code == 0) {
  1571. this.$message.success(data.msg)
  1572. } else {
  1573. this.$message.warning(data.msg)
  1574. }
  1575. })
  1576. })
  1577. }
  1578. // 印版已发
  1579. if ('11' == val) {
  1580. this.$confirm(` 确定该订单的印版已发?`, `印版已发`, {
  1581. confirmButtonText: '确定',
  1582. cancelButtonText: '取消',
  1583. type: 'warning'
  1584. }).then(() => {
  1585. let data = {
  1586. username: this.$store.state.user.name,
  1587. orderNo: this.currentRow.orderNo,
  1588. repairSOFlag: 'Y',
  1589. site: this.currentRow.site,
  1590. orderChangeStatus: "订单印版已发",
  1591. }
  1592. repairSOFlagProduceOrder(data).then(({data}) => {
  1593. if (data.code == 0) {
  1594. this.$message.success(data.msg)
  1595. } else {
  1596. this.$message.warning(data.msg)
  1597. }
  1598. })
  1599. })
  1600. }
  1601. // 印版已发 取消
  1602. if ('12' == val) {
  1603. this.$confirm(` 确定要撤销该订单的印版已发?`, `订单印版`, {
  1604. confirmButtonText: '确定',
  1605. cancelButtonText: '取消',
  1606. type: 'warning'
  1607. }).then(() => {
  1608. let data = {
  1609. username: this.$store.state.user.name,
  1610. orderNo: this.currentRow.orderNo,
  1611. repairSOFlag: 'N',
  1612. site: this.currentRow.site,
  1613. orderChangeStatus: "订单印版已发",
  1614. }
  1615. repairSOFlagProduceOrder(data).then(({data}) => {
  1616. if (data.code == 0) {
  1617. this.$message.success(data.msg)
  1618. } else {
  1619. this.$message.warning(data.msg)
  1620. }
  1621. })
  1622. })
  1623. }
  1624. },
  1625. // FQC 报工
  1626. fqcReportModal() {
  1627. //首先判断是否选择好派工单
  1628. if (JSON.stringify(this.currentRow) == '{}') {
  1629. this.$message.error('请先选择派工单!');
  1630. return false;
  1631. }
  1632. //打开操作员切换功能
  1633. this.fqcShowReportFlag = true;
  1634. this.$nextTick(() => {
  1635. this.$refs.fqcProduceReportNormal.init(this.currentRow.seqNo, this.operatorData);
  1636. });
  1637. },
  1638. // FQC 分卷
  1639. fqcSplitRollModal() {
  1640. if (JSON.stringify(this.currentRow) == '{}') {
  1641. this.$message.error('请先选择派工单!');
  1642. return false;
  1643. }
  1644. //打开操作员切换功能
  1645. this.fqcRollShowReportFlag = true;
  1646. this.$nextTick(() => {
  1647. this.$refs.fqcSplitRollReport.init(this.currentRow.seqNo, this.operatorData);
  1648. });
  1649. },
  1650. // 返工重捡
  1651. reworkInspectModal() {
  1652. //首先判断是否选择好派工单
  1653. if (JSON.stringify(this.currentRow) == '{}') {
  1654. this.$message.error('请先选择派工单!');
  1655. return false;
  1656. }
  1657. //打开操作员切换功能
  1658. this.reworkShowReportFlag = true;
  1659. this.$nextTick(() => {
  1660. this.$refs.reworkInspectReport.init(this.currentRow.seqNo, this.operatorData);
  1661. });
  1662. },
  1663. // 换包装
  1664. changePackaging() {
  1665. //首先判断是否选择好派工单
  1666. if (JSON.stringify(this.currentRow) == '{}') {
  1667. this.$message.error('请先选择派工单!');
  1668. return false;
  1669. }
  1670. //打开操作员切换功能
  1671. this.changePackagingFlag = true;
  1672. this.$nextTick(() => {
  1673. this.$refs.changePackaging.init(this.currentRow.seqNo, this.operatorData);
  1674. });
  1675. },
  1676. /*查询派工单*/
  1677. getProduceScheduleList() {
  1678. //开始真的查询;
  1679. this.searchData.searchFlag = true;
  1680. getProduceScheduleList(this.searchData).then(({data}) => {
  1681. //设置查询数据
  1682. this.produceScheduleList = data.rows;
  1683. })
  1684. },
  1685. /*刷新页面table*/
  1686. refreshPageTables() {
  1687. this.currentRow = {}
  1688. this.getProduceScheduleList();
  1689. },
  1690. /*设置选中行的参数*/
  1691. setCurrentRow(row, column, event) {
  1692. this.currentRow = JSON.parse(JSON.stringify(row));
  1693. },
  1694. //设置参数
  1695. initOperatorData(operatorData) {
  1696. this.showOperatorFlag = false;
  1697. this.operatorData = JSON.parse(JSON.stringify(operatorData));
  1698. if (operatorData.reportType == 0) {
  1699. //切换到报工组件
  1700. this.switchProduceReportModal();
  1701. }
  1702. if (operatorData.reportType == 1) {
  1703. //切换到fqc报工组件
  1704. this.fqcReportModal();
  1705. }
  1706. if (operatorData.reportType == 2) {
  1707. //切换到返工 重检组件
  1708. this.reworkInspectModal();
  1709. }
  1710. if (operatorData.reportType == 3) {
  1711. //切换到fqc分卷组件
  1712. this.fqcSplitRollModal();
  1713. }
  1714. if (operatorData.reportType == 4) {
  1715. // 换包装
  1716. this.changePackaging();
  1717. }
  1718. /*分切报工*/
  1719. if (operatorData.reportType == 8) {
  1720. // 分切报工
  1721. this.showSplitOrderReportModal();
  1722. }
  1723. },
  1724. notInitOperatorData(val) {
  1725. //注销用户信息
  1726. this.operatorData.operatorId = '';
  1727. this.operatorData.operatorName = '';
  1728. //关闭切换用户模态框
  1729. this.showOperatorFlag = false;
  1730. if (val == 0) {
  1731. //切换到报工组件
  1732. this.switchProduceReportModal();
  1733. }
  1734. if (val == 1) {
  1735. //切换到fqc报工组件
  1736. this.fqcReportModal();
  1737. }
  1738. if (val == 2) {
  1739. //切换到返工 重检组件
  1740. this.reworkInspectModal();
  1741. }
  1742. if (val == 3) {
  1743. //切换到fqc分卷组件
  1744. this.fqcSplitRollModal();
  1745. }
  1746. if (val == 4) {
  1747. //切换到换包装
  1748. this.changePackaging();
  1749. }
  1750. //分切报工
  1751. if (val == 8) {
  1752. //分切报工
  1753. this.showSplitOrderReportModal();
  1754. }
  1755. },
  1756. //切换员工modal
  1757. switchOperatorModal(val) {
  1758. //首先判断是否选择好派工单
  1759. if (JSON.stringify(this.currentRow) == '{}') {
  1760. this.$message.error('请先选择派工单!');
  1761. return false;
  1762. }
  1763. if (val == 0) {
  1764. let orderType = this.currentRow.orderType;
  1765. let workCenterNo = this.currentRow.workCenterNo;
  1766. if(orderType != 'S' || workCenterNo === 'FQC'){
  1767. //验证通过
  1768. this.$message.error('当前派工单无法使用报工!');
  1769. return false;
  1770. }
  1771. let data = {
  1772. site: this.currentRow.site,
  1773. resourceId: this.currentRow.resourceId,
  1774. workCenterNo: this.currentRow.workCenterNo,
  1775. seqNo: this.currentRow.seqNo,
  1776. username: this.$store.state.user.name
  1777. }
  1778. reportCheck(data).then(({data}) => {
  1779. if (data.code == 0) {
  1780. //打开操作员切换功能
  1781. this.showOperatorFlag = true;
  1782. this.$nextTick(() => {
  1783. this.$refs.comSwitchOperator.init(val);
  1784. });
  1785. }
  1786. if (data.code == 300) {
  1787. this.$message.warning(data.msg)
  1788. }
  1789. if (data.code == 400) {
  1790. this.$confirm(`${data.msg}`, '提示', {
  1791. confirmButtonText: '确定',
  1792. cancelButtonText: '取消',
  1793. type: 'warning'
  1794. }).then(() => {
  1795. //打开操作员切换功能
  1796. this.showOperatorFlag = true;
  1797. this.$nextTick(() => {
  1798. this.$refs.comSwitchOperator.init(val);
  1799. });
  1800. })
  1801. }
  1802. })
  1803. }else if(val == 8){//处理 分切工单
  1804. //判断当前工单是否是分切工单
  1805. let orderType = this.currentRow.orderType;
  1806. if(orderType === 'D'){
  1807. this.showOperatorFlag = true;
  1808. this.$refs.comSwitchOperator.init(val);
  1809. }else{
  1810. this.$message.error('当前工单非分切工单!');
  1811. return false;
  1812. }
  1813. }else if(val == 1){//处理 FQC
  1814. //判断订单类型和加工中心
  1815. let workCenterNo = this.currentRow.workCenterNo;
  1816. if(workCenterNo === 'FQC'){
  1817. this.showOperatorFlag = true;
  1818. this.$refs.comSwitchOperator.init(val);
  1819. }else{
  1820. this.$message.error('当前派工单非FQC报工派工单!');
  1821. return false;
  1822. }
  1823. }else{
  1824. if (val == 4){
  1825. getShopOrder(this.currentRow).then(({data}) =>{
  1826. if (data.code == 0){
  1827. if (data.data == 'P'){
  1828. //打开操作员切换功能
  1829. this.showOperatorFlag = true;
  1830. this.$nextTick(() => {
  1831. this.$refs.comSwitchOperator.init(val);
  1832. });
  1833. }else {
  1834. this.$alert('该订单不是特殊订单,不能采用该功能!', '提示', {
  1835. confirmButtonText: '确定'})
  1836. }
  1837. }
  1838. })
  1839. }else {
  1840. //打开操作员切换功能
  1841. this.showOperatorFlag = true;
  1842. this.$nextTick(() => {
  1843. this.$refs.comSwitchOperator.init(val);
  1844. });
  1845. }
  1846. }
  1847. },
  1848. //切换报工modal
  1849. switchProduceReportModal() {
  1850. //首先判断是否选择好派工单
  1851. if (JSON.stringify(this.currentRow) == '{}') {
  1852. this.$message.error('请先选择派工单!');
  1853. return false;
  1854. }
  1855. //打开操作员切换功能
  1856. this.showReportFlag = true;
  1857. this.$nextTick(() => {
  1858. this.$refs.comProduceReportNormal.init(this.currentRow.seqNo, this.operatorData);
  1859. });
  1860. },
  1861. //打开分切报工的
  1862. showSplitOrderReportModal() {
  1863. //首先判断是否选择好派工单
  1864. if (JSON.stringify(this.currentRow) == '{}') {
  1865. this.$message.error('请先选择派工单!');
  1866. return false;
  1867. }
  1868. this.$nextTick(() => {
  1869. //打开分切报工功能
  1870. this.showSplitReportFlag = true;
  1871. this.$refs.comSplitOrderReport.init(this.currentRow.seqNo, this.operatorData);
  1872. });
  1873. },
  1874. //打开结束派工单的modal
  1875. showFinishScheduleModal() {
  1876. //首先判断是否选择好派工单
  1877. if (JSON.stringify(this.currentRow) == '{}') {
  1878. this.$message.error('请先选择派工单!');
  1879. return false;
  1880. }
  1881. //打开操作员切换功能
  1882. this.showFinishScheduleFlag = true;
  1883. this.$nextTick(() => {
  1884. this.$refs.comFinishSchedule.init(this.currentRow, this.operatorData);
  1885. });
  1886. },
  1887. //结束派工单后刷新页面
  1888. processFinishScheduleOperation() {
  1889. //刷新当前页面的数据
  1890. this.refreshPageTables();
  1891. },
  1892. //保存操作员的信息
  1893. saveOperatorData() {
  1894. //查询操作员信息
  1895. getOperatorData(this.operatorData).then(({data}) => {
  1896. let operatorData = data.row;
  1897. let status = operatorData.status;
  1898. this.operatorData.operatorName = data.row.operatorName;
  1899. //重置操作员信息状态
  1900. this.operatorData.status = status;
  1901. //判断是否验证通过
  1902. if (status == 'N') {
  1903. this.operatorFlag = false;
  1904. } else {
  1905. this.operatorFlag = true;
  1906. }
  1907. if (!this.operatorFlag) {
  1908. this.$message.error('操作员信息不可用!');
  1909. }
  1910. })
  1911. //判断是否检查通过--不通过不在继续
  1912. .then(() => {
  1913. if (!this.operatorFlag) {
  1914. return false;
  1915. }
  1916. //关闭操作员切换功能
  1917. this.operatorData.showFlag = false;
  1918. //打开组件
  1919. this.showReportFlag = true;
  1920. //打开报工操作页面
  1921. this.$nextTick(() => {
  1922. this.$refs.comProduceReportNormal.init(this.currentRow.seqNo, this.operatorData);
  1923. });
  1924. })
  1925. },
  1926. /*列表方法的回调*/
  1927. getBaseData(val){
  1928. if (this.tagNo === 88){
  1929. this.searchData.resourceId = val.ResourceID;
  1930. }
  1931. },
  1932. // 获取基础数据列表
  1933. getBaseList(val){
  1934. this.tagNo = val
  1935. this.$nextTick(() => {
  1936. let strVal = "";
  1937. if (val === 88){
  1938. strVal = this.searchData.resourceId;
  1939. }
  1940. this.$refs.baseList.init(val,strVal, " AND WorkCenterNo <> 'FQC'");
  1941. })
  1942. },
  1943. },
  1944. created() {
  1945. //不查询
  1946. getProduceScheduleList(this.searchData).then(({data}) => {
  1947. //设置查询数据
  1948. this.searchData.searchFlag = false;
  1949. this.produceScheduleList = data.rows;
  1950. });
  1951. /*获取报工的特殊权限*/
  1952. getScheduleMultiReportSpecialAuth(this.searchData).then(({data}) => {
  1953. let authMap = data.authMap;
  1954. //区分是否打开按钮
  1955. if(authMap.normalReportFlag === 'Y'){
  1956. this.reportButton.normalReportButton = false;
  1957. }else {
  1958. this.reportButton.normalReportButton = true;
  1959. }
  1960. if(authMap.fqcReportFlag === 'Y'){
  1961. this.reportButton.fqcReportButton = false;
  1962. }else {
  1963. this.reportButton.fqcReportButton = true;
  1964. }
  1965. if(authMap.reworkReportFlag === 'Y'){
  1966. this.reportButton.reworkReportButton = false;
  1967. }else {
  1968. this.reportButton.reworkReportButton = true;
  1969. }
  1970. if(authMap.packReportFlag === 'Y'){
  1971. this.reportButton.packReportButton = false;
  1972. }else {
  1973. this.reportButton.packReportButton = true;
  1974. }
  1975. if(authMap.fqcSegmentReportFlag === 'Y'){
  1976. this.reportButton.fqcSegmentReportButton = false;
  1977. }else {
  1978. this.reportButton.fqcSegmentReportButton = true;
  1979. }
  1980. if(authMap.slitReportFlag === 'Y'){
  1981. this.reportButton.slitReportButton = false;
  1982. }else{
  1983. this.reportButton.slitReportButton = true;
  1984. }
  1985. });
  1986. }
  1987. }
  1988. </script>
  1989. <style>
  1990. .el-textarea__inner {
  1991. padding: 5px 5px;
  1992. }
  1993. </style>
  1994. <!--当前页面的标签样式-->
  1995. <style scoped lang="scss">
  1996. /*针对el-card*/
  1997. .customer-card .el-form-item__content {
  1998. margin-top: -15px;
  1999. }
  2000. .customer-card .el-form-item {
  2001. height: 22px;
  2002. }
  2003. .customer-border .el-form-item__content {
  2004. margin-top: -30px;
  2005. }
  2006. /*全局年与日类型 宽度*/
  2007. div.el-time-width {
  2008. width: 110px !important;
  2009. }
  2010. /* 全局时间右边框*/
  2011. .customer-css input.el-input__inner {
  2012. height: 22px !important;
  2013. padding-right: 0px !important;
  2014. }
  2015. /* 控制el-card标签的数据*/
  2016. div.customer-el-card {
  2017. margin-left: 110px;
  2018. margin-top: -15px;
  2019. height: 20px;
  2020. width: 60px;
  2021. }
  2022. /* 颜色控制 */
  2023. div.customer-el-card-pink {
  2024. background: #FF00FF;
  2025. }
  2026. div.customer-el-card-orange {
  2027. background: #FFD700;
  2028. }
  2029. div.customer-el-card-blue {
  2030. background: #0000CD;
  2031. }
  2032. /*清掉样式*/
  2033. .el-radio + .el-radio {
  2034. margin-left: 0px;
  2035. }
  2036. /*当前按钮的通用样式*/
  2037. .customer-css .customer-bun-mid {
  2038. width: 65px;
  2039. text-align: center;
  2040. }
  2041. /*当前按钮的通用样式*/
  2042. .customer-css .el-button--medium {
  2043. padding: 5px 5px;
  2044. }
  2045. /*添加主菜单和明细菜单的样式*/
  2046. .customer-css .customer-dropdown .el-button--primary {
  2047. padding: 2px;
  2048. font-size: 12px;
  2049. }
  2050. .el-dropdown-menu--medium .el-dropdown-menu__item {
  2051. line-height: 18px;
  2052. padding: 0 17px;
  2053. font-size: 12px;
  2054. }
  2055. hr {
  2056. margin-top: 0px;
  2057. }
  2058. /*控制上下间距*/
  2059. </style>