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.

2725 lines
90 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
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: 612px; padding: 0.35em 0.35em 0.35em;" >
  5. <legend>菜单</legend>
  6. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -5px;" >
  7. <el-form-item :label="''" style="margin-left: 30px;">
  8. <el-button class="customer-bun-min" type="primary" @click="refreshPageTables" style="margin-left: 10px; margin-bottom: 5px;">刷新</el-button>
  9. </el-form-item>
  10. <el-form-item :label="''">
  11. <el-button class="customer-bun-min" type="primary" @click="moveUpScheduleBun" style="margin-left: 10px; margin-bottom: 5px;">上移</el-button>
  12. </el-form-item>
  13. <el-form-item :label="''">
  14. <el-button class="customer-bun-min" type="primary" @click="moveDownScheduleBun" style="margin-left: 10px; margin-bottom: 5px;">下移</el-button>
  15. </el-form-item>
  16. </el-form>
  17. </fieldset>
  18. <!-- 排序规则 -->
  19. <fieldset class="customer-field" style="margin-left: 640px; margin-top: -45px; width: 135px;" >
  20. <legend>排序</legend><br>
  21. <el-form :inline="true" style="margin-top: -10px; margin-bottom: 10px;" label-position="top" label-width="100px" >
  22. <el-form-item :label="''" style="margin-bottom: 10px;">
  23. <el-radio-group v-model="pageData.sortField">
  24. <el-radio label="needDate">要求完工日期</el-radio>
  25. <el-radio label="orderNo">订单号</el-radio>
  26. <el-radio label="partNo">产品编码</el-radio>
  27. </el-radio-group>
  28. </el-form-item>
  29. </el-form>
  30. </fieldset>
  31. <!-- 查询时间和产品 -->
  32. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -25px;" >
  33. <el-form-item :label="'录入日期:'">
  34. <el-date-picker class="el-time-width"
  35. style=""
  36. v-model="pageData.enterTime1"
  37. value-format="yyyy-MM-dd">
  38. </el-date-picker>
  39. </el-form-item>
  40. <el-form-item :label="''" style="margin-top: -10px;">
  41. <el-date-picker class="el-time-width"
  42. style="margin-top: 30px;"
  43. v-model="pageData.enterTime2"
  44. value-format="yyyy-MM-dd" placeholder="">
  45. </el-date-picker>
  46. </el-form-item>
  47. <el-form-item :label="'要求完工日期:'">
  48. <el-date-picker class="el-time-width"
  49. style=""
  50. v-model="pageData.needTime1"
  51. value-format="yyyy-MM-dd" placeholder="">
  52. </el-date-picker>
  53. </el-form-item>
  54. <el-form-item :label="''" style="margin-top: -10px;">
  55. <el-date-picker class="el-time-width"
  56. style="margin-top: 30px;"
  57. v-model="pageData.needTime2"
  58. value-format="yyyy-MM-dd" placeholder="">
  59. </el-date-picker>
  60. </el-form-item>
  61. <el-form-item :label="'产成品编码:'">
  62. <el-input v-model="pageData.partNo" style="width: 120px"></el-input>
  63. </el-form-item>
  64. </el-form>
  65. <!-- 排产信息 -->
  66. <fieldset class="customer-field" style="margin-top: 0px; width: 612px; padding: 0.125em;" >
  67. <legend>排产信息</legend>
  68. <!-- 排产日期 -->
  69. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 5px;">
  70. <el-form-item :label="'排产日期:'">
  71. <el-date-picker class="el-time-width"
  72. style=""
  73. v-model="pageData.scheduleDate"
  74. value-format="yyyy-MM-dd">
  75. </el-date-picker>
  76. </el-form-item>
  77. <el-form-item :label="''" style="margin-top: -10px;">
  78. <el-checkbox v-model="pageData.specifiedTime" true-label="Y" false-label="N" style="margin-top: 28px; margin-right: -20px;" ></el-checkbox>
  79. <el-time-picker
  80. format="HH:mm"
  81. arrow-control
  82. style="margin-top: 30px; width: 65px"
  83. v-model="pageData.scheduleTime"
  84. value-format="HH:mm">
  85. </el-time-picker>
  86. </el-form-item>
  87. <el-form-item :label="''" style="margin-top: -10px; margin-left: -5px;">
  88. <el-checkbox style="margin-top: 28px;" label="仅查看前道工序已排产的工序" name="type"></el-checkbox>
  89. </el-form-item>
  90. </el-form>
  91. <el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 10px;">
  92. <el-form-item :label="'工厂编号:'">
  93. <el-input v-model="pageData.site" style="width: 85px"></el-input>
  94. </el-form-item>
  95. <el-form-item>
  96. <span slot="label" style="" @click="getBaseList(88)"><a herf="#">机台编号:</a></span>
  97. <el-input v-model="pageData.resourceId" @blur="getCurrentWorkCenterNoByResourceId" style="width: 120px"></el-input>
  98. </el-form-item>
  99. <el-form-item :label="'加工中心编码:'">
  100. <el-input v-model="pageData.workCenterNo" readonly="readonly" style="width: 120px"></el-input>
  101. </el-form-item>
  102. </el-form>
  103. <!-- 记录示意图 -->
  104. <fieldset style="margin-left: 380px; margin-top: -88px; width: 180px;">
  105. <legend>记录示意图</legend>
  106. <el-form :inline="true" label-position="top" label-width="100px" class="customer-card">
  107. <el-form-item :label="'已关闭,已达数量'">
  108. <el-card class="customer-el-card customer-el-card-pink"></el-card>
  109. </el-form-item>
  110. <el-form-item :label="'已关闭,未达数量'">
  111. <el-card class="customer-el-card customer-el-card-orange"></el-card>
  112. </el-form-item>
  113. <el-form-item :label="'未关闭,未达数量'">
  114. <el-card class="customer-el-card customer-el-card-blue"></el-card>
  115. </el-form-item>
  116. </el-form>
  117. </fieldset>
  118. <!-- 等待订单 -->
  119. <fieldset style="margin-left: 585px; margin-top: -93px; width: 180px; margin-bottom: 5px;">
  120. <legend>等待订单</legend>
  121. <el-form :inline="true" label-position="left" label-width="100px" class="customer-border">
  122. <el-form-item :label="'等待时间(分钟):'" >
  123. <el-input type="number" v-model="pageData.waitTimes"
  124. style="margin-top: 3px; width: 48px;">
  125. </el-input>
  126. </el-form-item>
  127. <el-form-item :label="''" style="text-align: center; margin-top: 15px; margin-bottom: 9px;">
  128. <el-button type="primary" @click="addWaitScheduleBun" style="margin-left: 30px; margin-top: 10px; margin-bottom: 15px;">插入等待订单</el-button>
  129. </el-form-item>
  130. </el-form>
  131. </fieldset>
  132. </fieldset >
  133. <!-- 机台班次信息 -->
  134. <el-main style="margin-left: 770px; margin-top: -235px; width: 452px;">
  135. <el-table
  136. height="215"
  137. :data="resourceShiftList"
  138. border
  139. v-loading="dataListLoading"
  140. style="width: 100%;">
  141. <el-table-column
  142. v-for="(item,index) in columnTimeArray" :key="index"
  143. :sortable="item.columnSortable"
  144. :prop="item.columnProp"
  145. :header-align="item.headerAlign"
  146. :show-overflow-tooltip="item.showOverflowTooltip"
  147. :align="item.align"
  148. :fixed="item.fixed"
  149. :width="item.columnWidth"
  150. :label="item.columnLabel">
  151. <template slot-scope="scope">
  152. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  153. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  154. style="width: 100px; height: 80px"/></span>
  155. </template>
  156. </el-table-column>
  157. </el-table>
  158. </el-main>
  159. <!-- 工单主表信息 -->
  160. <el-main style="margin-left: -20px; margin-top: -35px; width: 104%;">
  161. <el-form :inline="true" label-position="top" label-width="100px">
  162. <el-form-item :label="'主记录'">
  163. </el-form-item>
  164. <el-dropdown trigger="click" class="customer-dropdown" size="small" @command="orderHandleCommand">
  165. <el-button type="primary" @click="controlPrimaryMenuBun">
  166. 主菜单<i class="el-icon-arrow-down el-icon--right"></i>
  167. </el-button>
  168. <el-dropdown-menu slot="dropdown">
  169. <el-dropdown-item class="customer-li" command="生产工单"
  170. :disabled="primaryMenuButton.shopOrderFlag">生产订单</el-dropdown-item>
  171. <el-dropdown-item class="customer-li" command="工作日历"
  172. :disabled="primaryMenuButton.workCalendarOutFlag">工作日历</el-dropdown-item>
  173. <hr width="95%" />
  174. <el-dropdown-item class="customer-li" command="批量维护工作日历"
  175. :disabled="primaryMenuButton.batchWorkCalendarFlag">批量维护工作日历</el-dropdown-item>
  176. <hr width="95%" />
  177. <el-dropdown-item class="customer-li" command="分批排产"
  178. :disabled="primaryMenuButton.splitScheduleFlag">分批排产</el-dropdown-item>
  179. <hr width="95%" />
  180. <el-dropdown-item class="customer-li" command="重新排产"
  181. :disabled="primaryMenuButton.reScheduleOrderFlag">重新排产</el-dropdown-item>
  182. <hr width="95%"/>
  183. <el-dropdown-item class="customer-li" command="更改工艺路线"
  184. :disabled="primaryMenuButton.updateProductRouting">更改工艺路线</el-dropdown-item>
  185. <el-dropdown-item class="customer-li" command="更改工艺路线版本"
  186. :disabled="primaryMenuButton.updateProductRouting">更改工艺路线版本</el-dropdown-item>
  187. <hr width="95%" />
  188. <el-dropdown-item class="customer-li" command="查看物料库存"
  189. :disabled="primaryMenuButton.partStockFlag">查看物料库存</el-dropdown-item>
  190. </el-dropdown-menu>
  191. </el-dropdown>
  192. </el-form>
  193. <el-table
  194. :height="height"
  195. :data="shopOrderList"
  196. border
  197. ref="routingTable"
  198. highlight-current-row
  199. @row-click="setCurrentRoutingRow"
  200. :row-class-name="routingRowClassName"
  201. @row-dblclick="startScheduleOperation"
  202. v-loading="dataListLoading"
  203. style="margin-top: -20px; width: 100%;">
  204. <el-table-column
  205. v-for="(item,index) in columnOrderArray" :key="index"
  206. :sortable="item.columnSortable"
  207. :prop="item.columnProp"
  208. :header-align="item.headerAlign"
  209. :show-overflow-tooltip="item.showOverflowTooltip"
  210. :align="item.align"
  211. :fixed="item.fixed"
  212. :width="item.columnWidth"
  213. :label="item.columnLabel">
  214. <template slot-scope="scope">
  215. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  216. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  217. style="width: 100px; height: 80px"/></span>
  218. </template>
  219. </el-table-column>
  220. </el-table>
  221. </el-main>
  222. <!-- 工单明细表信息 -->
  223. <el-main style="margin-top: -15px; width: 104%; padding: 0px;">
  224. <el-form :inline="true" label-position="top" label-width="100px">
  225. <el-form-item :label="'明细记录'">
  226. </el-form-item>
  227. <el-dropdown trigger="click" class="customer-dropdown" size="mini" @command="scheduleHandleCommand">
  228. <el-button type="primary" @click="controlDetailMenuBun">
  229. 明细菜单<i class="el-icon-arrow-down el-icon--right"></i>
  230. </el-button>
  231. <el-dropdown-menu slot="dropdown">
  232. <el-dropdown-item class="customer-li" command="生产工单"
  233. :disabled="detailMenuButton.shopOrderFlag">生产订单</el-dropdown-item>
  234. <el-dropdown-item class="customer-li" command="工作日历"
  235. :disabled="detailMenuButton.workCalendarOutFlag">工作日历</el-dropdown-item>
  236. <hr width="95%"/>
  237. <el-dropdown-item class="customer-li" command="更改等待时间"
  238. :disabled="detailMenuButton.changeWaitTimeFlag">更改等待时间</el-dropdown-item>
  239. <el-dropdown-item class="customer-li" command="根据工艺路线调整"
  240. :disabled="detailMenuButton.changeScheduleByRoutingFlag">根据工艺路线调整</el-dropdown-item>
  241. <hr width="95%"/>
  242. <el-dropdown-item class="customer-li" command="根据工作日历调整"
  243. :disabled="detailMenuButton.changeScheduleByRoutingFlag">根据工作日历调整</el-dropdown-item>
  244. <hr width="95%"/>
  245. <el-dropdown-item class="customer-li" command="查看物料库存"
  246. :disabled="detailMenuButton.partStockFlag">查看物料库存</el-dropdown-item>
  247. </el-dropdown-menu>
  248. </el-dropdown>
  249. </el-form>
  250. <el-table
  251. :height="height"
  252. :data="orderScheduleList"
  253. border
  254. highlight-current-row
  255. ref="scheduleTable"
  256. :row-class-name="scheduleRowClassName"
  257. @row-click="setCurrentSchedulingRow"
  258. @current-change="currentSchedulingRow"
  259. @row-dblclick="warnCancelScheduleConfirm"
  260. v-loading="dataListLoading"
  261. style="margin-top: -20px; width: 96%;">
  262. <el-table-column
  263. v-for="(item,index) in columnOrderScheduleArray" :key="index"
  264. :sortable="item.columnSortable"
  265. :prop="item.columnProp"
  266. :header-align="item.headerAlign"
  267. :show-overflow-tooltip="item.showOverflowTooltip"
  268. :align="item.align"
  269. :fixed="item.fixed"
  270. :width="item.columnWidth"
  271. :label="item.columnLabel">
  272. <template slot-scope="scope">
  273. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  274. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  275. style="width: 100px; height: 80px"/></span>
  276. </template>
  277. </el-table-column>
  278. </el-table>
  279. </el-main>
  280. <!--列表的组件-->
  281. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  282. <!-- 分批排产的组件 -->
  283. <comSplitSchedule ref="comSplitSchedule" :close-on-click-modal="false"
  284. :visible.sync="showSplitScheduleFlag"
  285. @initAddSplitSchedule="initAddSplitSchedule">
  286. </comSplitSchedule>
  287. <!-- 工作日历外的组件 -->
  288. <comWorkCalendarOut ref="comWorkCalendarOut" :close-on-click-modal="false"
  289. :visible.sync="showWorkCalendarOut">
  290. </comWorkCalendarOut>
  291. <!-- 批量工作日历的组件 -->
  292. <comBatchWorkCalendar ref="comBatchWorkCalendar" :close-on-click-modal="false"
  293. :visible.sync="showBatchWorkCalendar">
  294. </comBatchWorkCalendar>
  295. <!-- 物料库存查询 -->
  296. <comPartStock ref="comPartStock" :close-on-click-modal="false"
  297. :visible.sync="showPartStockFlag">
  298. </comPartStock>
  299. <!-- 更改等待时间 -->
  300. <comChangeWaitTime ref="comChangeWaitTime" :close-on-click-modal="false"
  301. :visible.sync="showChangeWaitTime"
  302. @changeScheduleWaitTimes="changeScheduleWaitTimes">
  303. </comChangeWaitTime>
  304. <updateProductRouting ref="updateProductRouting" :close-on-click-modal="false"
  305. :visible.sync="updateProductRouting"
  306. >
  307. </updateProductRouting>
  308. <updateRoutingRev ref="updateRoutingRev" :close-on-click-modal="false"
  309. :visible.sync="updateRoutingRev"
  310. @updateRoutingRevClosed="updateRoutingRevClosed"
  311. >
  312. </updateRoutingRev>
  313. </div>
  314. </template>
  315. <script>
  316. import updateProductRouting from "../common/updateProductRouting";
  317. import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/
  318. import comSplitSchedule from '@/views/modules/schedule/com_split_schedule';/*分批排产的modal*/
  319. import comWorkCalendarOut from "../common/com_work_calendar_out";/*工作日历外组件*/
  320. import comBatchWorkCalendar from "../common/com_batch_work_calendar";/*批量维护工作日历外组件*/
  321. import comPartStock from "../common/com_part_stock";/*展示物料库存的组件*/
  322. import comChangeWaitTime from "./com_change_wait_time";/*修改等待派工单的等待时间*/
  323. import updateRoutingRev from "../common/updateRoutingRev";
  324. import {
  325. getResourceRestList,
  326. getShopOrderList,
  327. getOrderScheduleList,
  328. getCurrentWorkCenterNoByResourceId,
  329. scheduleWorkOrder,
  330. cancelSoSchedule,
  331. addWaitSchedule,
  332. reScheduleWorkOrders,
  333. moveUpSchedule,
  334. moveDownSchedule,
  335. updateScheduleWaitTimes,
  336. refreshScheduleByRouting,
  337. refreshScheduleByCalendar,
  338. } from '@/api/schedule/order_schedule.js'
  339. export default {
  340. data() {
  341. return {
  342. height: 200,
  343. tagNo: '',
  344. updateProductRouting:false,
  345. showWorkCalendarOut: false,
  346. showBatchWorkCalendar: false,
  347. showSplitScheduleFlag: false,
  348. updateRoutingRev:false,
  349. showPartStockFlag: false,
  350. showChangeWaitTime: false,
  351. scheduleIndex: -1,
  352. modelFlag: false,
  353. modelInputFlag: true,
  354. currentRoutingRow: {},
  355. currentSchedlingRow: {},
  356. selectList: [],
  357. pageData: {
  358. site: this.$store.state.user.site,
  359. username: this.$store.state.user.name,
  360. orderNo: '',
  361. itemNo: '',
  362. seqNo: 0,
  363. resourceId: '',
  364. workCenterNo: '',
  365. enterTime1: '',
  366. enterTime2: '',
  367. needTime1: '',
  368. needTime2: '',
  369. scheduleDate: this.dayjs(new Date()).format('YYYY-MM-DD'),
  370. scheduleTime: '08:30',
  371. specifiedTime: 'N',
  372. scheduledQty: 0,
  373. waitTimes: 0,
  374. scheduleSeqNo: 0,
  375. planStartTime: '',
  376. calendarId: '',
  377. calendarDesc: '',
  378. status: 1,
  379. sortField: 'needDate',
  380. },
  381. resourceShiftList: [],
  382. shopOrderList: [],
  383. orderScheduleList: [],
  384. dataListLoading: false,
  385. columnTimeArray: [
  386. {
  387. userId: this.$store.state.user.name,
  388. functionId: 5301,
  389. serialNumber: '5301ShiftShiftDate',
  390. tableId: "5301Shift",
  391. tableName: "工作日历",
  392. columnProp: "shiftDate",
  393. headerAlign: "center",
  394. align: "center",
  395. columnLabel: "日期",
  396. columnWidth: 90,
  397. columnHidden: false,
  398. columnImage: false,
  399. columnSortable: false,
  400. sortLv: 0,
  401. status: true,
  402. fixed: false
  403. },
  404. {
  405. userId: this.$store.state.user.name,
  406. functionId: 5301,
  407. serialNumber: '5301ShiftShiftInfo',
  408. tableId: "5301Shift",
  409. tableName: "工作日历",
  410. columnProp: "shiftInfo",
  411. headerAlign: "center",
  412. align: "center",
  413. columnLabel: "休息时间览表",
  414. columnWidth: 320,
  415. columnHidden: false,
  416. columnImage: false,
  417. columnSortable: false,
  418. sortLv: 0,
  419. status: true,
  420. fixed: false
  421. }
  422. ],
  423. columnOrderArray: [
  424. {
  425. userId: this.$store.state.user.name,
  426. functionId: 5301,
  427. serialNumber: '5301OrderOrderNo',
  428. tableId: "5301Order",
  429. tableName: "工单表",
  430. columnProp: "orderNo",
  431. headerAlign: "center",
  432. align: "center",
  433. columnLabel: "订单号",
  434. columnWidth: 90,
  435. columnHidden: false,
  436. columnImage: false,
  437. columnSortable: true,
  438. sortLv: 0,
  439. status: true,
  440. fixed: false
  441. },
  442. {
  443. userId: this.$store.state.user.name,
  444. functionId: 5301,
  445. serialNumber: '5301OrderItemNo',
  446. tableId: "5301Order",
  447. tableName: "工单表",
  448. columnProp: "itemNo",
  449. headerAlign: "center",
  450. align: "center",
  451. columnLabel: "工序号",
  452. columnWidth: 90,
  453. columnHidden: false,
  454. columnImage: false,
  455. columnSortable: true,
  456. sortLv: 0,
  457. status: true,
  458. fixed: false
  459. },
  460. {
  461. userId: this.$store.state.user.name,
  462. functionId: 5301,
  463. serialNumber: '5301OrderItemDesc',
  464. tableId: "5301Order",
  465. tableName: "工单表",
  466. columnProp: "itemDesc",
  467. headerAlign: "center",
  468. align: "center",
  469. columnLabel: "工序名称",
  470. columnWidth: 80,
  471. columnHidden: false,
  472. columnImage: false,
  473. columnSortable: false,
  474. sortLv: 0,
  475. status: true,
  476. fixed: false
  477. },
  478. {
  479. userId: this.$store.state.user.name,
  480. functionId: 5301,
  481. serialNumber: '5301OrderNeedDate',
  482. tableId: "5301Order",
  483. tableName: "工单表",
  484. columnProp: "needDate",
  485. headerAlign: "center",
  486. align: "center",
  487. columnLabel: "要求完工日期",
  488. columnWidth: 120,
  489. columnHidden: false,
  490. columnImage: false,
  491. columnSortable: true,
  492. sortLv: 0,
  493. status: true,
  494. fixed: false
  495. },
  496. {
  497. userId: this.$store.state.user.name,
  498. functionId: 5301,
  499. serialNumber: '5301OrderPartNo',
  500. tableId: "5301Order",
  501. tableName: "工单表",
  502. columnProp: "partNo",
  503. headerAlign: "center",
  504. align: "center",
  505. columnLabel: "产品编码",
  506. columnWidth: 100,
  507. columnHidden: false,
  508. columnImage: false,
  509. columnSortable: true,
  510. sortLv: 0,
  511. status: true,
  512. fixed: false
  513. },
  514. {
  515. userId: this.$store.state.user.name,
  516. functionId: 5301,
  517. serialNumber: '5301OrderCustomerName',
  518. tableId: "5301Order",
  519. tableName: "工单表",
  520. columnProp: "customerName",
  521. headerAlign: "center",
  522. align: "center",
  523. columnLabel: "客户名称",
  524. columnWidth: 80,
  525. columnHidden: false,
  526. columnImage: false,
  527. columnSortable: false,
  528. sortLv: 0,
  529. status: true,
  530. fixed: false
  531. },
  532. {
  533. userId: this.$store.state.user.name,
  534. functionId: 5301,
  535. serialNumber: '5301OrderCustPartNo',
  536. tableId: "5301Order",
  537. tableName: "工单表",
  538. columnProp: "custPartNo",
  539. headerAlign: "center",
  540. align: "center",
  541. columnLabel: "客户产品料号",
  542. columnWidth: 120,
  543. columnHidden: false,
  544. columnImage: false,
  545. columnSortable: true,
  546. sortLv: 0,
  547. status: true,
  548. fixed: false
  549. },
  550. {
  551. userId: this.$store.state.user.name,
  552. functionId: 5301,
  553. serialNumber: '5301OrderPartDesc',
  554. tableId: "5301Order",
  555. tableName: "工单表",
  556. columnProp: "partDesc",
  557. headerAlign: "center",
  558. align: "center",
  559. columnLabel: "产成品名称",
  560. columnWidth: 80,
  561. columnHidden: false,
  562. columnImage: false,
  563. columnSortable: false,
  564. sortLv: 0,
  565. status: true,
  566. fixed: false
  567. },
  568. {
  569. userId: this.$store.state.user.name,
  570. functionId: 5301,
  571. serialNumber: '5301OrderLotSize',
  572. tableId: "5301Order",
  573. tableName: "工单表",
  574. columnProp: "lotSize",
  575. headerAlign: "center",
  576. align: "center",
  577. columnLabel: "订单量",
  578. columnWidth: 90,
  579. columnHidden: false,
  580. columnImage: false,
  581. columnSortable: true,
  582. sortLv: 0,
  583. status: true,
  584. fixed: false
  585. },
  586. {
  587. userId: this.$store.state.user.name,
  588. functionId: 5301,
  589. serialNumber: '5301OrderQtyToSchedule',
  590. tableId: "5301Order",
  591. tableName: "工单表",
  592. columnProp: "qtyToSchedule",
  593. headerAlign: "center",
  594. align: "center",
  595. columnLabel: "待排产数量",
  596. columnWidth: 100,
  597. columnHidden: false,
  598. columnImage: false,
  599. columnSortable: true,
  600. sortLv: 0,
  601. status: true,
  602. fixed: false
  603. },
  604. {
  605. userId: this.$store.state.user.name,
  606. functionId: 5301,
  607. serialNumber: '5301OrderQtyScheduled',
  608. tableId: "5301Order",
  609. tableName: "工单表",
  610. columnProp: "qtyScheduled",
  611. headerAlign: "center",
  612. align: "center",
  613. columnLabel: "已排产数量",
  614. columnWidth: 100,
  615. columnHidden: false,
  616. columnImage: false,
  617. columnSortable: true,
  618. sortLv: 0,
  619. status: true,
  620. fixed: false
  621. },
  622. {
  623. userId: this.$store.state.user.name,
  624. functionId: 5301,
  625. serialNumber: '5301OrderQtyReported',
  626. tableId: "5301Order",
  627. tableName: "工单表",
  628. columnProp: "qtyReported",
  629. headerAlign: "center",
  630. align: "center",
  631. columnLabel: "已报工数量",
  632. columnWidth: 100,
  633. columnHidden: false,
  634. columnImage: false,
  635. columnSortable: true,
  636. sortLv: 0,
  637. status: true,
  638. fixed: false
  639. },
  640. {
  641. userId: this.$store.state.user.name,
  642. functionId: 5301,
  643. serialNumber: '5301OrderSpec',
  644. tableId: "5301Order",
  645. tableName: "工单表",
  646. columnProp: "spec",
  647. headerAlign: "center",
  648. align: "center",
  649. columnLabel: "规格型号",
  650. columnWidth: 80,
  651. columnHidden: false,
  652. columnImage: false,
  653. columnSortable: false,
  654. sortLv: 0,
  655. status: true,
  656. fixed: false
  657. },
  658. {
  659. userId: this.$store.state.user.name,
  660. functionId: 5301,
  661. serialNumber: '5301OrderSite',
  662. tableId: "5301Order",
  663. tableName: "工单表",
  664. columnProp: "site",
  665. headerAlign: "center",
  666. align: "center",
  667. columnLabel: "工厂编号",
  668. columnWidth: 80,
  669. columnHidden: false,
  670. columnImage: false,
  671. columnSortable: false,
  672. sortLv: 0,
  673. status: true,
  674. fixed: false
  675. },
  676. {
  677. userId: this.$store.state.user.name,
  678. functionId: 5301,
  679. serialNumber: '5301OrderWorkCenterNo',
  680. tableId: "5301Order",
  681. tableName: "工单表",
  682. columnProp: "workCenterNo",
  683. headerAlign: "center",
  684. align: "center",
  685. columnLabel: "加工中心",
  686. columnWidth: 100,
  687. columnHidden: false,
  688. columnImage: false,
  689. columnSortable: true,
  690. sortLv: 0,
  691. status: true,
  692. fixed: false
  693. },
  694. {
  695. userId: this.$store.state.user.name,
  696. functionId: 5301,
  697. serialNumber: '5301OrderNextItemNo',
  698. tableId: "5301Order",
  699. tableName: "工单表",
  700. columnProp: "nextItemNo",
  701. headerAlign: "center",
  702. align: "center",
  703. columnLabel: "下道工序",
  704. columnWidth: 100,
  705. columnHidden: false,
  706. columnImage: false,
  707. columnSortable: true,
  708. sortLv: 0,
  709. status: true,
  710. fixed: false
  711. },
  712. {
  713. userId: this.$store.state.user.name,
  714. functionId: 5301,
  715. serialNumber: '5301OrderNextItemDesc',
  716. tableId: "5301Order",
  717. tableName: "工单表",
  718. columnProp: "nextItemDesc",
  719. headerAlign: "center",
  720. align: "center",
  721. columnLabel: "下道工序名称",
  722. columnWidth: 80,
  723. columnHidden: false,
  724. columnImage: false,
  725. columnSortable: false,
  726. sortLv: 0,
  727. status: true,
  728. fixed: false
  729. },
  730. {
  731. userId: this.$store.state.user.name,
  732. functionId: 5301,
  733. serialNumber: '5301OrderNextScheduledFlag',
  734. tableId: "5301Order",
  735. tableName: "工单表",
  736. columnProp: "nextScheduledFlag",
  737. headerAlign: "center",
  738. align: "center",
  739. columnLabel: "下道工序已排产",
  740. columnWidth: 120,
  741. columnHidden: false,
  742. columnImage: false,
  743. columnSortable: true,
  744. sortLv: 0,
  745. status: true,
  746. fixed: false
  747. },
  748. {
  749. userId: this.$store.state.user.name,
  750. functionId: 5301,
  751. serialNumber: '5301OrderPreItemNo',
  752. tableId: "5301Order",
  753. tableName: "工单表",
  754. columnProp: "preItemNo",
  755. headerAlign: "center",
  756. align: "center",
  757. columnLabel: "上道工序",
  758. columnWidth: 90,
  759. columnHidden: false,
  760. columnImage: false,
  761. columnSortable: true,
  762. sortLv: 0,
  763. status: true,
  764. fixed: false
  765. },
  766. {
  767. userId: this.$store.state.user.name,
  768. functionId: 5301,
  769. serialNumber: '5301OrderPreItemDesc',
  770. tableId: "5301Order",
  771. tableName: "工单表",
  772. columnProp: "preItemDesc",
  773. headerAlign: "center",
  774. align: "center",
  775. columnLabel: "上道工序名称",
  776. columnWidth: 80,
  777. columnHidden: false,
  778. columnImage: false,
  779. columnSortable: false,
  780. sortLv: 0,
  781. status: true,
  782. fixed: false
  783. },
  784. {
  785. userId: this.$store.state.user.name,
  786. functionId: 5301,
  787. serialNumber: '5301OrderPreScheduledFlag',
  788. tableId: "5301Order",
  789. tableName: "工单表",
  790. columnProp: "preScheduledFlag",
  791. headerAlign: "center",
  792. align: "center",
  793. columnLabel: "上道工序已排产",
  794. columnWidth: 120,
  795. columnHidden: false,
  796. columnImage: false,
  797. columnSortable: true,
  798. sortLv: 0,
  799. status: true,
  800. fixed: false
  801. },
  802. {
  803. userId: this.$store.state.user.name,
  804. functionId: 5301,
  805. serialNumber: '5301OrderScheduledFlag',
  806. tableId: "5301Order",
  807. tableName: "工单表",
  808. columnProp: "scheduledFlag",
  809. headerAlign: "center",
  810. align: "center",
  811. columnLabel: "是否排产",
  812. columnWidth: 80,
  813. columnHidden: false,
  814. columnImage: false,
  815. columnSortable: false,
  816. sortLv: 0,
  817. status: true,
  818. fixed: false
  819. },
  820. {
  821. userId: this.$store.state.user.name,
  822. functionId: 5301,
  823. serialNumber: '5301OrderAvailResource',
  824. tableId: "5301Order",
  825. tableName: "工单表",
  826. columnProp: "availResource",
  827. headerAlign: "center",
  828. align: "center",
  829. columnLabel: "可用机台",
  830. columnWidth: 80,
  831. columnHidden: false,
  832. columnImage: false,
  833. columnSortable: false,
  834. sortLv: 0,
  835. status: true,
  836. fixed: false
  837. },
  838. {
  839. userId: this.$store.state.user.name,
  840. functionId: 5301,
  841. serialNumber: '5301OrderEnterDate',
  842. tableId: "5301Order",
  843. tableName: "工单表",
  844. columnProp: "enterDate",
  845. headerAlign: "center",
  846. align: "center",
  847. columnLabel: "录入日期",
  848. columnWidth: 125,
  849. columnHidden: false,
  850. columnImage: false,
  851. columnSortable: false,
  852. sortLv: 0,
  853. status: true,
  854. fixed: false
  855. },
  856. {
  857. userId: this.$store.state.user.name,
  858. functionId: 5301,
  859. serialNumber: '5301OrderScheduleToPlanTime',
  860. tableId: "5301Order",
  861. tableName: "工单表",
  862. columnProp: "scheduleToPlanTime",
  863. headerAlign: "center",
  864. align: "center",
  865. columnLabel: "计划时间",
  866. columnWidth: 80,
  867. columnHidden: false,
  868. columnImage: false,
  869. columnSortable: false,
  870. sortLv: 0,
  871. status: true,
  872. fixed: false
  873. },
  874. {
  875. userId: this.$store.state.user.name,
  876. functionId: 5301,
  877. serialNumber: '5301OrderMachRunFactor',
  878. tableId: "5301Order",
  879. tableName: "工单表",
  880. columnProp: "machRunFactor",
  881. headerAlign: "center",
  882. align: "center",
  883. columnLabel: "单位产出",
  884. columnWidth: 80,
  885. columnHidden: false,
  886. columnImage: false,
  887. columnSortable: false,
  888. sortLv: 0,
  889. status: true,
  890. fixed: false
  891. },
  892. {
  893. userId: this.$store.state.user.name,
  894. functionId: 5301,
  895. serialNumber: '5301OrderMachSetupTime',
  896. tableId: "5301Order",
  897. tableName: "工单表",
  898. columnProp: "machSetupTime",
  899. headerAlign: "center",
  900. align: "center",
  901. columnLabel: "调机时间",
  902. columnWidth: 80,
  903. columnHidden: false,
  904. columnImage: false,
  905. columnSortable: false,
  906. sortLv: 0,
  907. status: true,
  908. fixed: false
  909. },
  910. {
  911. userId: this.$store.state.user.name,
  912. functionId: 5301,
  913. serialNumber: '5301OrderFactorUnit',
  914. tableId: "5301Order",
  915. tableName: "工单表",
  916. columnProp: "factorUnit",
  917. headerAlign: "center",
  918. align: "center",
  919. columnLabel: "产出单位",
  920. columnWidth: 80,
  921. columnHidden: false,
  922. columnImage: false,
  923. columnSortable: false,
  924. sortLv: 0,
  925. status: true,
  926. fixed: false
  927. },
  928. {
  929. userId: this.$store.state.user.name,
  930. functionId: 5301,
  931. serialNumber: '5301OrderQtyScheduledPreOps',
  932. tableId: "5301Order",
  933. tableName: "工单表",
  934. columnProp: "qtyScheduledPreOps",
  935. headerAlign: "center",
  936. align: "center",
  937. columnLabel: "前道工序已排产数量",
  938. columnWidth: 80,
  939. columnHidden: false,
  940. columnImage: false,
  941. columnSortable: false,
  942. sortLv: 0,
  943. status: true,
  944. fixed: false
  945. },
  946. {
  947. userId: this.$store.state.user.name,
  948. functionId: 5301,
  949. serialNumber: '5301OrderQtyApprovedPreOps',
  950. tableId: "5301Order",
  951. tableName: "工单表",
  952. columnProp: "qtyApprovedPreOps",
  953. headerAlign: "center",
  954. align: "center",
  955. columnLabel: "前道工序已报合格数",
  956. columnWidth: 80,
  957. columnHidden: false,
  958. columnImage: false,
  959. columnSortable: false,
  960. sortLv: 0,
  961. status: true,
  962. fixed: false
  963. },
  964. {
  965. userId: this.$store.state.user.name,
  966. functionId: 5301,
  967. serialNumber: '5301OrderOriSOOrderNo',
  968. tableId: "5301Order",
  969. tableName: "工单表",
  970. columnProp: "oriSOOrderNo",
  971. headerAlign: "center",
  972. align: "center",
  973. columnLabel: "SAP参考号",
  974. columnWidth: 80,
  975. columnHidden: false,
  976. columnImage: false,
  977. columnSortable: false,
  978. sortLv: 0,
  979. status: true,
  980. fixed: false
  981. },
  982. {
  983. userId: this.$store.state.user.name,
  984. functionId: 5301,
  985. serialNumber: '5301OrderEficiency',
  986. tableId: "5301Order",
  987. tableName: "工单表",
  988. columnProp: "efficiency",
  989. headerAlign: "center",
  990. align: "center",
  991. columnLabel: "效率",
  992. columnWidth: 80,
  993. columnHidden: false,
  994. columnImage: false,
  995. columnSortable: false,
  996. sortLv: 0,
  997. status: true,
  998. fixed: false
  999. },
  1000. {
  1001. userId: this.$store.state.user.name,
  1002. functionId: 5301,
  1003. serialNumber: '5301OrderCostRollUpFlag',
  1004. tableId: "5301Order",
  1005. tableName: "工单表",
  1006. columnProp: "costRollUpFlag",
  1007. headerAlign: "center",
  1008. align: "center",
  1009. columnLabel: "已排料",
  1010. columnWidth: 80,
  1011. columnHidden: false,
  1012. columnImage: false,
  1013. columnSortable: false,
  1014. sortLv: 0,
  1015. status: true,
  1016. fixed: false
  1017. },
  1018. {
  1019. userId: this.$store.state.user.name,
  1020. functionId: 5301,
  1021. serialNumber: '5301OrderManualFlag',
  1022. tableId: "5301Order",
  1023. tableName: "工单表",
  1024. columnProp: "manualFlag",
  1025. headerAlign: "center",
  1026. align: "center",
  1027. columnLabel: "刀模已发",
  1028. columnWidth: 80,
  1029. columnHidden: false,
  1030. columnImage: false,
  1031. columnSortable: false,
  1032. sortLv: 0,
  1033. status: true,
  1034. fixed: false
  1035. },
  1036. {
  1037. userId: this.$store.state.user.name,
  1038. functionId: 5301,
  1039. serialNumber: '5301OrderRepairSOFlag',
  1040. tableId: "5301Order",
  1041. tableName: "工单表",
  1042. columnProp: "repairSOFlag",
  1043. headerAlign: "center",
  1044. align: "center",
  1045. columnLabel: "印版已发",
  1046. columnWidth: 80,
  1047. columnHidden: false,
  1048. columnImage: false,
  1049. columnSortable: false,
  1050. sortLv: 0,
  1051. status: true,
  1052. fixed: false
  1053. },
  1054. ],
  1055. columnOrderScheduleArray: [
  1056. {
  1057. userId: this.$store.state.user.name,
  1058. functionId: 5301,
  1059. serialNumber: '5301ScheduleScheduledSeqNo',
  1060. tableId: "5301Schedule",
  1061. tableName: "排产明细表",
  1062. columnProp: "scheduledSeqNo",
  1063. headerAlign: "center",
  1064. align: "center",
  1065. columnLabel: "排产序号",
  1066. columnWidth: 80,
  1067. columnHidden: false,
  1068. columnImage: false,
  1069. columnSortable: false,
  1070. sortLv: 0,
  1071. status: true,
  1072. fixed: false
  1073. },
  1074. {
  1075. userId: this.$store.state.user.name,
  1076. functionId: 5301,
  1077. serialNumber: '5301SchedulePlanStartTime',
  1078. tableId: "5301Schedule",
  1079. tableName: "排产明细表",
  1080. columnProp: "planStartTime",
  1081. headerAlign: "center",
  1082. align: "center",
  1083. columnLabel: "计划开工时间",
  1084. columnWidth: 125,
  1085. columnHidden: false,
  1086. columnImage: false,
  1087. columnSortable: false,
  1088. sortLv: 0,
  1089. status: true,
  1090. fixed: false
  1091. },
  1092. {
  1093. userId: this.$store.state.user.name,
  1094. functionId: 5301,
  1095. serialNumber: '5301SchedulePlanFinishTime',
  1096. tableId: "5301Schedule",
  1097. tableName: "排产明细表",
  1098. columnProp: "planFinishTime",
  1099. headerAlign: "center",
  1100. align: "center",
  1101. columnLabel: "计划完工时间",
  1102. columnWidth: 125,
  1103. columnHidden: false,
  1104. columnImage: false,
  1105. columnSortable: false,
  1106. sortLv: 0,
  1107. status: true,
  1108. fixed: false
  1109. },
  1110. {
  1111. userId: this.$store.state.user.name,
  1112. functionId: 5301,
  1113. serialNumber: '5301ScheduleTimeRequired',
  1114. tableId: "5301Schedule",
  1115. tableName: "排产明细表",
  1116. columnProp: "timeRequired",
  1117. headerAlign: "center",
  1118. align: "center",
  1119. columnLabel: "计划时间",
  1120. columnWidth: 80,
  1121. columnHidden: false,
  1122. columnImage: false,
  1123. columnSortable: false,
  1124. sortLv: 0,
  1125. status: true,
  1126. fixed: false
  1127. },
  1128. {
  1129. userId: this.$store.state.user.name,
  1130. functionId: 5301,
  1131. serialNumber: '5301ScheduleOrderNo',
  1132. tableId: "5301Schedule",
  1133. tableName: "排产明细表",
  1134. columnProp: "orderNo",
  1135. headerAlign: "center",
  1136. align: "center",
  1137. columnLabel: "订单号",
  1138. columnWidth: 80,
  1139. columnHidden: false,
  1140. columnImage: false,
  1141. columnSortable: false,
  1142. sortLv: 0,
  1143. status: true,
  1144. fixed: false
  1145. },
  1146. {
  1147. userId: this.$store.state.user.name,
  1148. functionId: 5301,
  1149. serialNumber: '5301ScheduleNeedDate',
  1150. tableId: "5301Schedule",
  1151. tableName: "排产明细表",
  1152. columnProp: "needDate",
  1153. headerAlign: "center",
  1154. align: "center",
  1155. columnLabel: "需求日期",
  1156. columnWidth: 80,
  1157. columnHidden: false,
  1158. columnImage: false,
  1159. columnSortable: false,
  1160. sortLv: 0,
  1161. status: true,
  1162. fixed: false
  1163. },
  1164. {
  1165. userId: this.$store.state.user.name,
  1166. functionId: 5301,
  1167. serialNumber: '5301ScheduleItemNo',
  1168. tableId: "5301Schedule",
  1169. tableName: "排产明细表",
  1170. columnProp: "itemNo",
  1171. headerAlign: "center",
  1172. align: "center",
  1173. columnLabel: "工序号",
  1174. columnWidth: 80,
  1175. columnHidden: false,
  1176. columnImage: false,
  1177. columnSortable: false,
  1178. sortLv: 0,
  1179. status: true,
  1180. fixed: false
  1181. },
  1182. {
  1183. userId: this.$store.state.user.name,
  1184. functionId: 5301,
  1185. serialNumber: '5301ScheduleItemDesc',
  1186. tableId: "5301Schedule",
  1187. tableName: "排产明细表",
  1188. columnProp: "itemDesc",
  1189. headerAlign: "center",
  1190. align: "center",
  1191. columnLabel: "工序名称",
  1192. columnWidth: 80,
  1193. columnHidden: false,
  1194. columnImage: false,
  1195. columnSortable: false,
  1196. sortLv: 0,
  1197. status: true,
  1198. fixed: false
  1199. },
  1200. {
  1201. userId: this.$store.state.user.name,
  1202. functionId: 5301,
  1203. serialNumber: '5301SchedulePartNo',
  1204. tableId: "5301Schedule",
  1205. tableName: "排产明细表",
  1206. columnProp: "partNo",
  1207. headerAlign: "center",
  1208. align: "center",
  1209. columnLabel: "产品编码",
  1210. columnWidth: 120,
  1211. columnHidden: false,
  1212. columnImage: false,
  1213. columnSortable: false,
  1214. sortLv: 0,
  1215. status: true,
  1216. fixed: false
  1217. },
  1218. {
  1219. userId: this.$store.state.user.name,
  1220. functionId: 5301,
  1221. serialNumber: '5301SchedulePartDesc',
  1222. tableId: "5301Schedule",
  1223. tableName: "排产明细表",
  1224. columnProp: "partDesc",
  1225. headerAlign: "center",
  1226. align: "center",
  1227. columnLabel: "产品名称",
  1228. columnWidth: 80,
  1229. columnHidden: false,
  1230. columnImage: false,
  1231. columnSortable: false,
  1232. sortLv: 0,
  1233. status: true,
  1234. fixed: false
  1235. },
  1236. {
  1237. userId: this.$store.state.user.name,
  1238. functionId: 5301,
  1239. serialNumber: '5301OrderSpec',
  1240. tableId: "5301Schedule",
  1241. tableName: "排产明细表",
  1242. columnProp: "spec",
  1243. headerAlign: "center",
  1244. align: "center",
  1245. columnLabel: "规格型号",
  1246. columnWidth: 80,
  1247. columnHidden: false,
  1248. columnImage: false,
  1249. columnSortable: false,
  1250. sortLv: 0,
  1251. status: true,
  1252. fixed: false
  1253. },
  1254. {
  1255. userId: this.$store.state.user.name,
  1256. functionId: 5301,
  1257. serialNumber: '5301ScheduleQtyRequired',
  1258. tableId: "5301Schedule",
  1259. tableName: "排产明细表",
  1260. columnProp: "qtyRequired",
  1261. headerAlign: "center",
  1262. align: "center",
  1263. columnLabel: "待生产数量",
  1264. columnWidth: 80,
  1265. columnHidden: false,
  1266. columnImage: false,
  1267. columnSortable: false,
  1268. sortLv: 0,
  1269. status: true,
  1270. fixed: false
  1271. },
  1272. {
  1273. userId: this.$store.state.user.name,
  1274. functionId: 5301,
  1275. serialNumber: '5301ScheduleQtyRequired',
  1276. tableId: "5301Schedule",
  1277. tableName: "排产明细表",
  1278. columnProp: "qtyRequired",
  1279. headerAlign: "center",
  1280. align: "center",
  1281. columnLabel: "派工单需求数量",
  1282. columnWidth: 80,
  1283. columnHidden: false,
  1284. columnImage: false,
  1285. columnSortable: false,
  1286. sortLv: 0,
  1287. status: true,
  1288. fixed: false
  1289. },
  1290. {
  1291. userId: this.$store.state.user.name,
  1292. functionId: 5301,
  1293. serialNumber: '5301ScheduleQtyReported',
  1294. tableId: "5301Schedule",
  1295. tableName: "排产明细表",
  1296. columnProp: "qtyReported",
  1297. headerAlign: "center",
  1298. align: "center",
  1299. columnLabel: "已报告数量",
  1300. columnWidth: 80,
  1301. columnHidden: false,
  1302. columnImage: false,
  1303. columnSortable: false,
  1304. sortLv: 0,
  1305. status: true,
  1306. fixed: false
  1307. },
  1308. {
  1309. userId: this.$store.state.user.name,
  1310. functionId: 5301,
  1311. serialNumber: '5301SchedulePreItemNo',
  1312. tableId: "5301Schedule",
  1313. tableName: "排产明细表",
  1314. columnProp: "preItemNo",
  1315. headerAlign: "center",
  1316. align: "center",
  1317. columnLabel: "前道工序",
  1318. columnWidth: 80,
  1319. columnHidden: false,
  1320. columnImage: false,
  1321. columnSortable: false,
  1322. sortLv: 0,
  1323. status: true,
  1324. fixed: false
  1325. },
  1326. {
  1327. userId: this.$store.state.user.name,
  1328. functionId: 5301,
  1329. serialNumber: '5301SchedulePreItemDesc',
  1330. tableId: "5301Schedule",
  1331. tableName: "排产明细表",
  1332. columnProp: "preItemDesc",
  1333. headerAlign: "center",
  1334. align: "center",
  1335. columnLabel: "前道工序名称",
  1336. columnWidth: 80,
  1337. columnHidden: false,
  1338. columnImage: false,
  1339. columnSortable: false,
  1340. sortLv: 0,
  1341. status: true,
  1342. fixed: false
  1343. },
  1344. {
  1345. userId: this.$store.state.user.name,
  1346. functionId: 5301,
  1347. serialNumber: '5301SchedulePreScheduledFlag',
  1348. tableId: "5301Schedule",
  1349. tableName: "排产明细表",
  1350. columnProp: "preScheduledFlag",
  1351. headerAlign: "center",
  1352. align: "center",
  1353. columnLabel: "前道工序是否排产",
  1354. columnWidth: 80,
  1355. columnHidden: false,
  1356. columnImage: false,
  1357. columnSortable: false,
  1358. sortLv: 0,
  1359. status: true,
  1360. fixed: false
  1361. },
  1362. {
  1363. userId: this.$store.state.user.name,
  1364. functionId: 5301,
  1365. serialNumber: '5301ScheduleNextItemNo',
  1366. tableId: "5301Schedule",
  1367. tableName: "排产明细表",
  1368. columnProp: "nextItemNo",
  1369. headerAlign: "center",
  1370. align: "center",
  1371. columnLabel: "后道工序",
  1372. columnWidth: 80,
  1373. columnHidden: false,
  1374. columnImage: false,
  1375. columnSortable: false,
  1376. sortLv: 0,
  1377. status: true,
  1378. fixed: false
  1379. },
  1380. {
  1381. userId: this.$store.state.user.name,
  1382. functionId: 5301,
  1383. serialNumber: '5301ScheduleNextItemDesc',
  1384. tableId: "5301Schedule",
  1385. tableName: "排产明细表",
  1386. columnProp: "nextItemDesc",
  1387. headerAlign: "center",
  1388. align: "center",
  1389. columnLabel: "后道工序名称",
  1390. columnWidth: 80,
  1391. columnHidden: false,
  1392. columnImage: false,
  1393. columnSortable: false,
  1394. sortLv: 0,
  1395. status: true,
  1396. fixed: false
  1397. },
  1398. {
  1399. userId: this.$store.state.user.name,
  1400. functionId: 5301,
  1401. serialNumber: '5301ScheduleNextScheduledFlag',
  1402. tableId: "5301Schedule",
  1403. tableName: "排产明细表",
  1404. columnProp: "nextScheduledFlag",
  1405. headerAlign: "center",
  1406. align: "center",
  1407. columnLabel: "后道工序是否排产",
  1408. columnWidth: 80,
  1409. columnHidden: false,
  1410. columnImage: false,
  1411. columnSortable: false,
  1412. sortLv: 0,
  1413. status: true,
  1414. fixed: false
  1415. },
  1416. {
  1417. userId: this.$store.state.user.name,
  1418. functionId: 5301,
  1419. serialNumber: '5301ScheduleResourceId',
  1420. tableId: "5301Schedule",
  1421. tableName: "排产明细表",
  1422. columnProp: "resourceId",
  1423. headerAlign: "center",
  1424. align: "center",
  1425. columnLabel: "机台号",
  1426. columnWidth: 80,
  1427. columnHidden: false,
  1428. columnImage: false,
  1429. columnSortable: false,
  1430. sortLv: 0,
  1431. status: true,
  1432. fixed: false
  1433. },
  1434. {
  1435. userId: this.$store.state.user.name,
  1436. functionId: 5301,
  1437. serialNumber: '5301ScheduleCustomerName',
  1438. tableId: "5301Schedule",
  1439. tableName: "排产明细表",
  1440. columnProp: "customerName",
  1441. headerAlign: "center",
  1442. align: "center",
  1443. columnLabel: "客户名称",
  1444. columnWidth: 80,
  1445. columnHidden: false,
  1446. columnImage: false,
  1447. columnSortable: false,
  1448. sortLv: 0,
  1449. status: true,
  1450. fixed: false
  1451. },
  1452. {
  1453. userId: this.$store.state.user.name,
  1454. functionId: 5301,
  1455. serialNumber: '5301ScheduleEnterDate',
  1456. tableId: "5301Schedule",
  1457. tableName: "排产明细表",
  1458. columnProp: "enterDate",
  1459. headerAlign: "center",
  1460. align: "center",
  1461. columnLabel: "录入日期",
  1462. columnWidth: 125,
  1463. columnHidden: false,
  1464. columnImage: false,
  1465. columnSortable: false,
  1466. sortLv: 0,
  1467. status: true,
  1468. fixed: false
  1469. },
  1470. {
  1471. userId: this.$store.state.user.name,
  1472. functionId: 5301,
  1473. serialNumber: '5301ScheduleAvailResource',
  1474. tableId: "5301Schedule",
  1475. tableName: "排产明细表",
  1476. columnProp: "availResource",
  1477. headerAlign: "center",
  1478. align: "center",
  1479. columnLabel: "可用机台",
  1480. columnWidth: 80,
  1481. columnHidden: false,
  1482. columnImage: false,
  1483. columnSortable: false,
  1484. sortLv: 0,
  1485. status: true,
  1486. fixed: false
  1487. },
  1488. {
  1489. userId: this.$store.state.user.name,
  1490. functionId: 5301,
  1491. serialNumber: '5301ScheduleWorkCenterNo',
  1492. tableId: "5301Schedule",
  1493. tableName: "排产明细表",
  1494. columnProp: "workCenterNo",
  1495. headerAlign: "center",
  1496. align: "center",
  1497. columnLabel: "加工中心",
  1498. columnWidth: 80,
  1499. columnHidden: false,
  1500. columnImage: false,
  1501. columnSortable: false,
  1502. sortLv: 0,
  1503. status: true,
  1504. fixed: false
  1505. },
  1506. {
  1507. userId: this.$store.state.user.name,
  1508. functionId: 5301,
  1509. serialNumber: '5301ScheduleMachRunFactor',
  1510. tableId: "5301Schedule",
  1511. tableName: "排产明细表",
  1512. columnProp: "machRunFactor",
  1513. headerAlign: "center",
  1514. align: "center",
  1515. columnLabel: "单位产出",
  1516. columnWidth: 80,
  1517. columnHidden: false,
  1518. columnImage: false,
  1519. columnSortable: false,
  1520. sortLv: 0,
  1521. status: true,
  1522. fixed: false
  1523. },
  1524. {
  1525. userId: this.$store.state.user.name,
  1526. functionId: 5301,
  1527. serialNumber: '5301ScheduleMachSetupTime',
  1528. tableId: "5301Schedule",
  1529. tableName: "排产明细表",
  1530. columnProp: "machSetupTime",
  1531. headerAlign: "center",
  1532. align: "center",
  1533. columnLabel: "调机时间",
  1534. columnWidth: 80,
  1535. columnHidden: false,
  1536. columnImage: false,
  1537. columnSortable: false,
  1538. sortLv: 0,
  1539. status: true,
  1540. fixed: false
  1541. },
  1542. {
  1543. userId: this.$store.state.user.name,
  1544. functionId: 5301,
  1545. serialNumber: '5301ScheduleFactorUnit',
  1546. tableId: "5301Schedule",
  1547. tableName: "排产明细表",
  1548. columnProp: "factorUnit",
  1549. headerAlign: "center",
  1550. align: "center",
  1551. columnLabel: "产出单位",
  1552. columnWidth: 80,
  1553. columnHidden: false,
  1554. columnImage: false,
  1555. columnSortable: false,
  1556. sortLv: 0,
  1557. status: true,
  1558. fixed: false
  1559. },
  1560. {
  1561. userId: this.$store.state.user.name,
  1562. functionId: 5301,
  1563. serialNumber: '5301ScheduleSite',
  1564. tableId: "5301Schedule",
  1565. tableName: "排产明细表",
  1566. columnProp: "site",
  1567. headerAlign: "center",
  1568. align: "center",
  1569. columnLabel: "工厂编号",
  1570. columnWidth: 80,
  1571. columnHidden: false,
  1572. columnImage: false,
  1573. columnSortable: false,
  1574. sortLv: 0,
  1575. status: true,
  1576. fixed: false
  1577. },
  1578. {
  1579. userId: this.$store.state.user.name,
  1580. functionId: 5301,
  1581. serialNumber: '5301ScheduleQtyScheduledPreOps',
  1582. tableId: "5301Schedule",
  1583. tableName: "排产明细表",
  1584. columnProp: "qtyScheduledPreOps",
  1585. headerAlign: "center",
  1586. align: "center",
  1587. columnLabel: "前道工序已排产数量",
  1588. columnWidth: 80,
  1589. columnHidden: false,
  1590. columnImage: false,
  1591. columnSortable: false,
  1592. sortLv: 0,
  1593. status: true,
  1594. fixed: false
  1595. },
  1596. {
  1597. userId: this.$store.state.user.name,
  1598. functionId: 5301,
  1599. serialNumber: '5301ScheduleDelayFlag',
  1600. tableId: "5301Schedule",
  1601. tableName: "排产明细表",
  1602. columnProp: "laterShipFlag",
  1603. headerAlign: "center",
  1604. align: "center",
  1605. columnLabel: "晚于发货时间",
  1606. columnWidth: 80,
  1607. columnHidden: false,
  1608. columnImage: false,
  1609. columnSortable: false,
  1610. sortLv: 0,
  1611. status: true,
  1612. fixed: false
  1613. },
  1614. {
  1615. userId: this.$store.state.user.name,
  1616. functionId: 5301,
  1617. serialNumber: '5301ScheduleClosedFlag',
  1618. tableId: "5301Schedule",
  1619. tableName: "排产明细表",
  1620. columnProp: "closedFlag",
  1621. headerAlign: "center",
  1622. align: "center",
  1623. columnLabel: "是否关闭",
  1624. columnWidth: 80,
  1625. columnHidden: false,
  1626. columnImage: false,
  1627. columnSortable: false,
  1628. sortLv: 0,
  1629. status: true,
  1630. fixed: false
  1631. },
  1632. {
  1633. userId: this.$store.state.user.name,
  1634. functionId: 5301,
  1635. serialNumber: '5301ScheduleParkFlag',
  1636. tableId: "5301Schedule",
  1637. tableName: "排产明细表",
  1638. columnProp: "parkFlag",
  1639. headerAlign: "center",
  1640. align: "center",
  1641. columnLabel: "暂停",
  1642. columnWidth: 80,
  1643. columnHidden: false,
  1644. columnImage: false,
  1645. columnSortable: false,
  1646. sortLv: 0,
  1647. status: true,
  1648. fixed: false
  1649. },
  1650. {
  1651. userId: this.$store.state.user.name,
  1652. functionId: 5301,
  1653. serialNumber: '5301ScheduleTimeRequired',
  1654. tableId: "5301Schedule",
  1655. tableName: "排产明细表",
  1656. columnProp: "timeRequired",
  1657. headerAlign: "center",
  1658. align: "center",
  1659. columnLabel: "派工单需求工时",
  1660. columnWidth: 80,
  1661. columnHidden: false,
  1662. columnImage: false,
  1663. columnSortable: false,
  1664. sortLv: 0,
  1665. status: true,
  1666. fixed: false
  1667. },
  1668. {
  1669. userId: this.$store.state.user.name,
  1670. functionId: 5301,
  1671. serialNumber: '5301SchedulePreOpsPlanFinishTime',
  1672. tableId: "5301Schedule",
  1673. tableName: "排产明细表",
  1674. columnProp: "earlierItemFlag",
  1675. headerAlign: "center",
  1676. align: "center",
  1677. columnLabel: "派工单早于上工序",
  1678. columnWidth: 80,
  1679. columnHidden: false,
  1680. columnImage: false,
  1681. columnSortable: false,
  1682. sortLv: 0,
  1683. status: true,
  1684. fixed: false
  1685. },
  1686. {
  1687. userId: this.$store.state.user.name,
  1688. functionId: 5301,
  1689. serialNumber: '5301ScheduleRemark',
  1690. tableId: "5301Schedule",
  1691. tableName: "排产明细表",
  1692. columnProp: "remark",
  1693. headerAlign: "center",
  1694. align: "center",
  1695. columnLabel: "备注",
  1696. columnWidth: 80,
  1697. columnHidden: false,
  1698. columnImage: false,
  1699. columnSortable: false,
  1700. sortLv: 0,
  1701. status: true,
  1702. fixed: false
  1703. },
  1704. {
  1705. userId: this.$store.state.user.name,
  1706. functionId: 5301,
  1707. serialNumber: '5301ScheduleOriSOOrderNo',
  1708. tableId: "5301Schedule",
  1709. tableName: "排产明细表",
  1710. columnProp: "oriSOOrderNo",
  1711. headerAlign: "center",
  1712. align: "center",
  1713. columnLabel: "SAP参考号",
  1714. columnWidth: 80,
  1715. columnHidden: false,
  1716. columnImage: false,
  1717. columnSortable: false,
  1718. sortLv: 0,
  1719. status: true,
  1720. fixed: false
  1721. },
  1722. {
  1723. userId: this.$store.state.user.name,
  1724. functionId: 5301,
  1725. serialNumber: '5301ScheduleCustPartNo',
  1726. tableId: "5301Schedule",
  1727. tableName: "排产明细表",
  1728. columnProp: "custPartNo",
  1729. headerAlign: "center",
  1730. align: "center",
  1731. columnLabel: "客户产品料号",
  1732. columnWidth: 80,
  1733. columnHidden: false,
  1734. columnImage: false,
  1735. columnSortable: false,
  1736. sortLv: 0,
  1737. status: true,
  1738. fixed: false
  1739. },
  1740. {
  1741. userId: this.$store.state.user.name,
  1742. functionId: 5301,
  1743. serialNumber: '5301ScheduleEficiency',
  1744. tableId: "5301Schedule",
  1745. tableName: "排产明细表",
  1746. columnProp: "eficiency",
  1747. headerAlign: "center",
  1748. align: "center",
  1749. columnLabel: "效率",
  1750. columnWidth: 80,
  1751. columnHidden: false,
  1752. columnImage: false,
  1753. columnSortable: false,
  1754. sortLv: 0,
  1755. status: true,
  1756. fixed: false
  1757. },
  1758. {
  1759. userId: this.$store.state.user.name,
  1760. functionId: 5301,
  1761. serialNumber: '5301ScheduleDelayHours',
  1762. tableId: "5301Schedule",
  1763. tableName: "排产明细表",
  1764. columnProp: "delayHours",
  1765. headerAlign: "center",
  1766. align: "center",
  1767. columnLabel: "延误小时数",
  1768. columnWidth: 80,
  1769. columnHidden: false,
  1770. columnImage: false,
  1771. columnSortable: false,
  1772. sortLv: 0,
  1773. status: true,
  1774. fixed: false
  1775. },
  1776. {
  1777. userId: this.$store.state.user.name,
  1778. functionId: 5301,
  1779. serialNumber: '5301ScheduleCostRollUpFlag',
  1780. tableId: "5301Schedule",
  1781. tableName: "排产明细表",
  1782. columnProp: "costRollUpFlag",
  1783. headerAlign: "center",
  1784. align: "center",
  1785. columnLabel: "已排料",
  1786. columnWidth: 80,
  1787. columnHidden: false,
  1788. columnImage: false,
  1789. columnSortable: false,
  1790. sortLv: 0,
  1791. status: true,
  1792. fixed: false
  1793. },
  1794. {
  1795. userId: this.$store.state.user.name,
  1796. functionId: 5301,
  1797. serialNumber: '5301Schedule',
  1798. tableId: "5301Schedule",
  1799. tableName: "排产明细表",
  1800. columnProp: "finishPreItemFlag",
  1801. headerAlign: "center",
  1802. align: "center",
  1803. columnLabel: "排产完成时间早于上工序",
  1804. columnWidth: 120,
  1805. columnHidden: false,
  1806. columnImage: false,
  1807. columnSortable: false,
  1808. sortLv: 0,
  1809. status: true,
  1810. fixed: false
  1811. }
  1812. ],
  1813. calendarOutList: [],
  1814. primaryMenuButton: {
  1815. updateProductRouting:true,
  1816. shopOrderFlag: true,
  1817. workCalendarOutFlag: true,
  1818. batchWorkCalendarFlag: true,
  1819. splitScheduleFlag: true,
  1820. reScheduleOrderFlag: true,
  1821. partStockFlag: true,
  1822. },
  1823. detailMenuButton: {
  1824. shopOrderFlag: true,
  1825. workCalendarOutFlag: true,
  1826. changeWaitTimeFlag: true,
  1827. changeScheduleByRoutingFlag: true,
  1828. changeScheduleByCalendarFlag: true,
  1829. partStockFlag: true,
  1830. }
  1831. }
  1832. },
  1833. /*组件*/
  1834. components: {
  1835. updateRoutingRev,
  1836. Chooselist,/*列表的组件*/
  1837. comSplitSchedule,/* 分批排产的组件 */
  1838. comWorkCalendarOut,/*工作日历外组件*/
  1839. comBatchWorkCalendar,/*批量维护工作日历外组件*/
  1840. comPartStock,/*展示物料库存的组件*/
  1841. comChangeWaitTime,/*修改等待派工单的等待时间*/
  1842. updateProductRouting,/*修改工艺路线*/
  1843. },
  1844. mounted() {
  1845. this.$nextTick(() => {
  1846. this.height = (window.innerHeight - 360) / 2;
  1847. })
  1848. },
  1849. methods: {
  1850. /*获取机台班次信息的方法*/
  1851. getResourceShiftData() {
  1852. let queryData = {
  1853. site: this.$store.state.user.site,
  1854. workCenterNo: this.pageData.workCenterNo,
  1855. resourceId: this.pageData.resourceId,
  1856. scheduleDate: this.pageData.scheduleDate
  1857. }
  1858. getResourceRestList(queryData).then(({data}) => {
  1859. this.resourceShiftList = data.rows
  1860. this.pageData.calendarId = data.calendarRow.calendarId;
  1861. this.pageData.calendarDesc = data.calendarRow.calendarDesc;
  1862. })
  1863. },
  1864. /*获取工单信息*/
  1865. getShopOrderList() {
  1866. getShopOrderList(this.pageData).then(({data}) => {
  1867. this.shopOrderList = data.rows;
  1868. //清空已经选好的行数据
  1869. this.currentRoutingRow = null;
  1870. })
  1871. },
  1872. /*获取派工单的信息*/
  1873. getOrderScheduleList() {
  1874. getOrderScheduleList(this.pageData).then(({data}) => {
  1875. this.orderScheduleList = data.rows;
  1876. //清空已经选好的行数据
  1877. this.currentSchedlingRow = null;
  1878. //判断是否需要选中当前行
  1879. if(this.scheduleIndex >= 0){
  1880. //选中当前是的行
  1881. setTimeout(() =>{
  1882. this.$refs.scheduleTable.setCurrentRow(this.orderScheduleList[this.scheduleIndex]);
  1883. },300);
  1884. }
  1885. })
  1886. },
  1887. /*刷新页面table*/
  1888. refreshPageTables(){
  1889. this.getResourceShiftData();
  1890. this.getShopOrderList();
  1891. this.getOrderScheduleList();
  1892. },
  1893. /*列表方法的回调*/
  1894. getBaseData(val){
  1895. if (this.tagNo === 88){
  1896. this.pageData.resourceId = val.ResourceID;
  1897. //调用方法获取加工中心
  1898. this.getCurrentWorkCenterNoByResourceId();
  1899. }else if(this.tagNo == 24){
  1900. this.pageData.workCenterNo = val.WorkCenterNo;
  1901. }
  1902. },
  1903. // 获取基础数据列表
  1904. getBaseList(val){
  1905. this.tagNo = val
  1906. this.$nextTick(() => {
  1907. let strVal = "";
  1908. if (val === 88){
  1909. strVal = this.pageData.resourceId;
  1910. }else if(val === 24){
  1911. strVal = this.pageData.workCenterNo;
  1912. }
  1913. this.$refs.baseList.init(val,strVal)
  1914. })
  1915. },
  1916. /*区分不同的菜单 调用不同的方法 调用不同的方法*/
  1917. orderHandleCommand(menuName){
  1918. //区分是哪一个方法调用
  1919. if('生产工单' === menuName){
  1920. //判断是否选择好了工单
  1921. if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
  1922. //重置按钮
  1923. this.primaryMenuButton.shopOrderFlag = true;
  1924. //返回错误
  1925. this.$message.error('请选择工单!');
  1926. return false;
  1927. }
  1928. this.$router.push({
  1929. path: '/shopOrder-shopOrder/shopOrder',
  1930. query: {
  1931. site: this.$store.state.user.site,
  1932. order: this.currentRoutingRow.orderNo,
  1933. user: this.$store.state.user.name
  1934. }
  1935. })
  1936. }else if('工作日历' === menuName){
  1937. //判断是否选择好了工单
  1938. if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
  1939. //重置按钮
  1940. this.primaryMenuButton.workCalendarOutFlag = true;
  1941. //返回错误
  1942. //this.$message.error('请选择工单!');
  1943. //return false;
  1944. }
  1945. let tempData = {'site': this.pageData.site, 'calendarId': this.pageData.calendarId,
  1946. 'calendarDesc': this.pageData.calendarDesc, 'scheduledDate': this.pageData.scheduleDate};
  1947. //打开组件 需要的数据 展示需要的数据
  1948. this.$nextTick(() => {
  1949. this.showWorkCalendarOut = true;
  1950. this.$refs.comWorkCalendarOut.init(tempData);
  1951. })
  1952. }else if('批量维护工作日历' === menuName){
  1953. //判断是否选择好了工单
  1954. if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
  1955. //重置按钮
  1956. this.primaryMenuButton.workCalendarOutFlag = true;
  1957. //返回错误
  1958. //this.$message.error('请选择工单!');
  1959. //return false;
  1960. }
  1961. let tempData = {'site': this.pageData.site, 'calendarId': this.pageData.calendarId,
  1962. 'calendarDesc': this.pageData.calendarDesc, 'scheduledDate': this.pageData.scheduleDate};
  1963. //打开组件 需要的数据 展示需要的数据
  1964. this.$nextTick(() => {
  1965. this.showBatchWorkCalendar = true;
  1966. this.$refs.comBatchWorkCalendar.init(tempData);
  1967. })
  1968. }else if('分批排产' === menuName){
  1969. //判断是否选择好了工单
  1970. if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
  1971. //重置按钮
  1972. this.primaryMenuButton.workCalendarOutFlag = true;
  1973. //返回错误
  1974. this.$message.error('请选择工单!');
  1975. return false;
  1976. }
  1977. this.openSplitScheduleModal();
  1978. }else if('重新排产' === menuName){
  1979. //判断是否选择好了工单
  1980. if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
  1981. //重置按钮
  1982. this.primaryMenuButton.workCalendarOutFlag = true;
  1983. //返回错误
  1984. //this.$message.error('请选择工单!');
  1985. //return false;
  1986. }
  1987. //调用提示的方法
  1988. this.warnReScheduleConfirm();
  1989. }else if('查看物料库存' === menuName){
  1990. //判断是否选择好了工单
  1991. if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
  1992. //重置按钮
  1993. this.primaryMenuButton.partStockFlag = true;
  1994. //返回错误
  1995. this.$message.error('请选择工单!');
  1996. return false;
  1997. }
  1998. let tempData = {'site': this.pageData.site, 'orderNo': this.currentRoutingRow.orderNo};
  1999. //打开组件 需要的数据 展示需要的数据
  2000. this.$nextTick(() => {
  2001. this.showPartStockFlag = true;
  2002. this.$refs.comPartStock.init(tempData);
  2003. })
  2004. }else if('更改工艺路线' === menuName) {
  2005. //判断是否选择好了工单
  2006. if (this.currentRoutingRow == null || this.currentRoutingRow == {}) {
  2007. //重置按钮
  2008. this.detailMenuButton.updateProductRouting = true;
  2009. //返回错误
  2010. this.$message.error('请选择工单!');
  2011. return false;
  2012. }
  2013. let tempData = {'site': this.pageData.site, 'orderNo': this.currentRoutingRow.orderNo,'partNo': this.currentRoutingRow.partNo,'partDesc': this.currentRoutingRow.partDesc};
  2014. //打开组件 需要的数据 展示需要的数据
  2015. this.$nextTick(() => {
  2016. this.updateProductRouting = true;
  2017. this.$refs.updateProductRouting.init(tempData);
  2018. })
  2019. }else if('更改工艺路线版本' === menuName) {
  2020. //判断是否选择好了工单
  2021. if (this.currentRoutingRow == null || this.currentRoutingRow == {}) {
  2022. //重置按钮
  2023. this.detailMenuButton.updateProductRouting = true;
  2024. //返回错误
  2025. this.$message.error('请选择工单!');
  2026. return false;
  2027. }
  2028. let tempData = {'site': this.pageData.site, 'orderNo': this.currentRoutingRow.orderNo,'partNo': this.currentRoutingRow.partNo};
  2029. //打开组件 需要的数据 展示需要的数据
  2030. this.$nextTick(() => {
  2031. this.updateRoutingRev = true;
  2032. this.$refs.updateRoutingRev.init(tempData);
  2033. })
  2034. }
  2035. },
  2036. /*区分不同的菜单 调用不同的方法 调用不同的方法*/
  2037. scheduleHandleCommand(menuName){
  2038. //区分是哪一个方法调用
  2039. if('生产工单' === menuName){
  2040. //判断是否选择好了工单
  2041. if(this.currentSchedlingRow == null || this.currentSchedlingRow == {}){
  2042. //重置按钮
  2043. this.detailMenuButton.shopOrderFlag = true;
  2044. //返回错误
  2045. this.$message.error('请选择派工单!');
  2046. return false;
  2047. }
  2048. this.$router.push({
  2049. path: '/shopOrder-shopOrder/shopOrder',
  2050. query: {
  2051. site: this.$store.state.user.site,
  2052. user: this.$store.state.user.name,
  2053. order: this.currentSchedlingRow.orderNo,
  2054. }
  2055. })
  2056. }else if('工作日历' === menuName){
  2057. //判断是否选择好了工单
  2058. if(this.currentSchedlingRow == null || this.currentSchedlingRow == {}){
  2059. //重置按钮
  2060. this.detailMenuButton.workCalendarOutFlag = true;
  2061. //返回错误
  2062. this.$message.error('请选择派工单!');
  2063. return false;
  2064. }
  2065. let tempData = {'site': this.pageData.site, 'calendarId': this.pageData.calendarId,
  2066. 'calendarDesc': this.pageData.calendarDesc, 'scheduledDate': this.pageData.scheduleDate};
  2067. //打开组件 需要的数据 展示需要的数据
  2068. this.$nextTick(() => {
  2069. this.showWorkCalendarOut = true;
  2070. this.$refs.comWorkCalendarOut.init(tempData);
  2071. })
  2072. }else if('更改等待时间' === menuName){
  2073. //判断是否选择好了工单
  2074. if(this.currentSchedlingRow == null || this.currentSchedlingRow == {}){
  2075. //重置按钮
  2076. this.detailMenuButton.changeWaitTimeFlag = true;
  2077. //返回错误
  2078. this.$message.error('请选择派工单!');
  2079. return false;
  2080. }
  2081. let waitTimes = parseFloat(this.currentSchedlingRow.timeRequired) * 60;
  2082. //等待时间取整
  2083. waitTimes = parseInt(waitTimes);
  2084. let tempData = {'site': this.pageData.site, 'orderNo': this.currentSchedlingRow.orderNo,
  2085. 'itemNo': this.currentSchedlingRow.itemNo, 'seqNo': this.currentSchedlingRow.seqNo,
  2086. 'waitTimes': waitTimes};
  2087. //打开组件 需要的数据 展示需要的数据
  2088. this.$nextTick(() => {
  2089. this.showChangeWaitTime = true;
  2090. this.$refs.comChangeWaitTime.init(tempData);
  2091. })
  2092. }else if('根据工艺路线调整' === menuName){
  2093. //判断是否选择好了工单
  2094. if(this.currentSchedlingRow == null || this.currentSchedlingRow == {}){
  2095. //重置按钮
  2096. this.detailMenuButton.changeScheduleByRoutingFlag = true;
  2097. //返回错误
  2098. this.$message.error('请选择派工单!');
  2099. return false;
  2100. }
  2101. this.changeScheduleByRouting(this.currentSchedlingRow);
  2102. }else if('根据工作日历调整' === menuName){
  2103. //判断是否选择好了工单
  2104. if(this.currentSchedlingRow == null || this.currentSchedlingRow == {}){
  2105. //重置按钮
  2106. this.detailMenuButton.changeScheduleByCalendarFlag = true;
  2107. //返回错误
  2108. this.$message.error('请选择派工单!');
  2109. return false;
  2110. }
  2111. //调用提示的方法
  2112. this.warnChangeScheduleByCalendar(this.currentSchedlingRow);
  2113. }else if('查看物料库存' === menuName){
  2114. //判断是否选择好了工单
  2115. if(this.currentSchedlingRow == null || this.currentSchedlingRow == {}){
  2116. //重置按钮
  2117. this.detailMenuButton.partStockFlag = true;
  2118. //返回错误
  2119. this.$message.error('请选择工单!');
  2120. return false;
  2121. }
  2122. let tempData = {'site': this.pageData.site, 'orderNo': this.currentSchedlingRow.orderNo};
  2123. //打开组件 需要的数据 展示需要的数据
  2124. this.$nextTick(() => {
  2125. this.showPartStockFlag = true;
  2126. this.$refs.comPartStock.init(tempData);
  2127. })
  2128. }
  2129. },
  2130. /*打开分批排产*/
  2131. openSplitScheduleModal(){
  2132. let routingRow = this.currentRoutingRow;
  2133. //首先判断是否选好
  2134. if(null == routingRow){
  2135. this.$message.error("请先单击选择行!")
  2136. return false;
  2137. }
  2138. //调用分批排产的方法
  2139. this.showSplitScheduleFlag = true;
  2140. //调用组件
  2141. this.$refs.comSplitSchedule.init(this.currentRoutingRow);
  2142. },
  2143. /*获取当前的机台对应的加工中心*/
  2144. getCurrentWorkCenterNoByResourceId(){
  2145. getCurrentWorkCenterNoByResourceId(this.pageData).then(({data}) => {
  2146. //区分是否成功
  2147. if (data.code == 500) {
  2148. //this.$message.error(data.msg);
  2149. } else{
  2150. this.pageData.workCenterNo = data.workCenterNo;
  2151. }
  2152. this.pageData.workCenterNo = data.workCenterNo;
  2153. });
  2154. },
  2155. /*设置当前行的下标*/
  2156. routingRowClassName({row, rowIndex}){
  2157. row.index = rowIndex;
  2158. //判断当前行颜色参数
  2159. if(row.qtyScheduled > 0){
  2160. return 'customer-row-gray';
  2161. }
  2162. },
  2163. /*设置工艺的行*/
  2164. setCurrentRoutingRow(row, column, event) {
  2165. this.currentRoutingRow = row;
  2166. },
  2167. /*设置当前派工单行的下标*/
  2168. scheduleRowClassName({row, rowIndex}){
  2169. row.index = rowIndex;
  2170. },
  2171. /*设置派工单的行*/
  2172. setCurrentSchedulingRow(row, column, event) {
  2173. this.currentSchedlingRow = JSON.parse(JSON.stringify(row));
  2174. //设置当前的序号
  2175. this.scheduleIndex = row.index;
  2176. },
  2177. /*当前值发生变化的时候修改*/
  2178. currentSchedulingRow(row, oldRow){
  2179. //判断是否是获取焦点的事件
  2180. if(row){
  2181. this.currentSchedlingRow = JSON.parse(JSON.stringify(row));
  2182. //设置当前的序号
  2183. this.scheduleIndex = row.index;
  2184. }
  2185. },
  2186. /*开始排产的操作*/
  2187. startScheduleOperation(row, $event, column){
  2188. //判断排产的加工中心和机台是否为空
  2189. if(this.pageData.workCenterNo == null || '' == this.pageData.workCenterNo){
  2190. this.$message.error('加工中心不能为空!')
  2191. return false;
  2192. }
  2193. if(this.pageData.resourceId == null || '' == this.pageData.resourceId){
  2194. this.$message.error('机台不能为空!')
  2195. return false;
  2196. }
  2197. //赋值排产的数量
  2198. let scheduledQty = row.qtyToSchedule;
  2199. row.qtyScheduled = scheduledQty;
  2200. row.qtyToSchedule = parseFloat(row.qtyToSchedule) - parseFloat(row.qtyScheduled);
  2201. this.pageData.scheduledQty = scheduledQty;
  2202. //设置工单和工序
  2203. this.pageData.orderNo = row.orderNo;
  2204. this.pageData.itemNo = row.itemNo;
  2205. //执行排产的方法
  2206. this.scheduleWorkOrderOperation(scheduledQty);
  2207. },
  2208. /*分批排产*/
  2209. initAddSplitSchedule(scheduledQty){
  2210. //设置工单和工序
  2211. this.pageData.orderNo = this.currentRoutingRow.orderNo;
  2212. this.pageData.itemNo = this.currentRoutingRow.itemNo;
  2213. //判断排产的加工中心和机台是否为空
  2214. if(this.pageData.workCenterNo == null || '' == this.pageData.workCenterNo){
  2215. this.$message.error('加工中心不能为空!')
  2216. return false;
  2217. }
  2218. if(this.pageData.resourceId == null || '' == this.pageData.resourceId){
  2219. this.$message.error('机台不能为空!')
  2220. return false;
  2221. }
  2222. this.currentRoutingRow.qtyScheduled = parseFloat(this.currentRoutingRow.qtyScheduled) + parseFloat(scheduledQty);
  2223. this.currentRoutingRow.qtyToSchedule = parseFloat(this.currentRoutingRow.qtyToSchedule) - parseFloat(scheduledQty);
  2224. //执行排产的方法
  2225. this.scheduleWorkOrderOperation(scheduledQty);
  2226. },
  2227. /*排产生产工单*/
  2228. scheduleWorkOrderOperation(scheduledQty){
  2229. //重置请求的参数
  2230. this.pageData.scheduledQty = scheduledQty;
  2231. scheduleWorkOrder(this.pageData).then(({data}) => {
  2232. if(data.code == 500){
  2233. this.currentRoutingRow.qtyScheduled = parseFloat(this.currentRoutingRow.qtyScheduled) - parseFloat(scheduledQty);
  2234. this.currentRoutingRow.qtyToSchedule = parseFloat(this.currentRoutingRow.qtyToSchedule) + parseFloat(scheduledQty);
  2235. this.$message.error(data.msg);
  2236. this.pageData.scheduledQty = 0;
  2237. }else{
  2238. this.$message.success(data.msg);
  2239. //刷新明细的报工页面
  2240. this.getOrderScheduleList();
  2241. }
  2242. });
  2243. },
  2244. /*提示取消派工单*/
  2245. warnCancelScheduleConfirm(row, $event, column){
  2246. //提示操作
  2247. this.$confirm('确实要取消该派工单吗?', '提示', {
  2248. confirmButtonText: '确认',
  2249. celButtonText: '取消',
  2250. type: 'warning'
  2251. }).then(() =>{
  2252. //执行创建新卷的操作
  2253. this.cancelScheduleBun(row);
  2254. });
  2255. },
  2256. /*取消派工单的操作*/
  2257. cancelScheduleBun(scheduleRow){
  2258. //设置参数
  2259. this.pageData.orderNo = scheduleRow.orderNo;
  2260. this.pageData.itemNo = scheduleRow.itemNo;
  2261. this.pageData.seqNo = scheduleRow.seqNo;
  2262. this.pageData.scheduledQty = scheduleRow.qtyRequired;
  2263. this.pageData.workCenterNo = scheduleRow.workCenterNo;
  2264. this.pageData.resourceId = scheduleRow.resourceId;
  2265. this.pageData.scheduleSeqNo = scheduleRow.scheduledSeqNo;
  2266. this.pageData.planStartTime = scheduleRow.planStartTime;
  2267. //取消排产
  2268. cancelSoSchedule(this.pageData).then(({data}) => {
  2269. if(data.code == 500){
  2270. this.$message.error(data.msg);
  2271. }else{
  2272. this.$message.success(data.msg);
  2273. //刷新排产的数据
  2274. this.getShopOrderList();
  2275. //刷新明细的数据
  2276. this.getOrderScheduleList();
  2277. }
  2278. });
  2279. },
  2280. /*分批排产*/
  2281. addWaitScheduleBun(){
  2282. //重置请求的参数
  2283. let waitTimes = this.pageData.waitTimes;
  2284. if(waitTimes <= 0){
  2285. this.$message.error('等待时间必须大于零!')
  2286. return false;
  2287. }
  2288. //发送请求
  2289. //判断排产的加工中心和机台是否为空
  2290. if(this.pageData.workCenterNo == null || '' == this.pageData.workCenterNo){
  2291. this.$message.error('加工中心不能为空!')
  2292. return false;
  2293. }
  2294. if(this.pageData.resourceId == null || '' == this.pageData.resourceId){
  2295. this.$message.error('机台不能为空!')
  2296. return false;
  2297. }
  2298. //执行排产的方法
  2299. this.addWaitScheduleOperation();
  2300. },
  2301. /*插入等待的派工单信息*/
  2302. addWaitScheduleOperation(){
  2303. addWaitSchedule(this.pageData).then(({data}) => {
  2304. if(data.code == 500){
  2305. this.$message.error(data.msg);
  2306. }else{
  2307. this.$message.success(data.msg);
  2308. //刷新明细
  2309. this.getOrderScheduleList();
  2310. }
  2311. });
  2312. },
  2313. /*提示取消派工单*/
  2314. warnReScheduleConfirm(){
  2315. //判断加工中心和机台
  2316. //判断排产的加工中心和机台是否为空
  2317. if(this.pageData.workCenterNo == null || '' == this.pageData.workCenterNo){
  2318. this.$message.error('加工中心不能为空!')
  2319. return false;
  2320. }
  2321. if(this.pageData.resourceId == null || '' == this.pageData.resourceId){
  2322. this.$message.error('机台不能为空!')
  2323. return false;
  2324. }
  2325. //提示操作
  2326. this.$confirm('确实要对排产清单中的未完成派工单进行排产吗?', '提示', {
  2327. confirmButtonText: '确认',
  2328. celButtonText: '取消',
  2329. type: 'warning'
  2330. }).then(() =>{
  2331. //执行创建新卷的操作
  2332. this.initReScheduleWorkOrders();
  2333. });
  2334. },
  2335. /*重新排产的方法*/
  2336. initReScheduleWorkOrders(){
  2337. reScheduleWorkOrders(this.pageData).then(({data}) => {
  2338. if(data.code != 200){
  2339. this.$message.error(data.msg);
  2340. }else{
  2341. this.$message.success(data.msg);
  2342. //刷新明细的报工页面
  2343. this.getOrderScheduleList();
  2344. }
  2345. });
  2346. },
  2347. /*上移派工单*/
  2348. moveUpScheduleBun(){
  2349. //判断是否选择好了移动的行
  2350. let scheduleRow = this.currentSchedlingRow;
  2351. if(null == scheduleRow || scheduleRow == ''){
  2352. this.$message.error('请先选择处理的行!');
  2353. return false;
  2354. }
  2355. //判断是否是第一行
  2356. if(scheduleRow.index == 0){
  2357. this.$message.error('已经是首行,无法继续上行!');
  2358. return false;
  2359. }
  2360. //请求的参数
  2361. let requestData = {'site': this.pageData.site,
  2362. 'workCenterNo': this.pageData.workCenterNo,
  2363. 'resourceId': this.pageData.resourceId,
  2364. 'scheduleSeqNo': scheduleRow.scheduledSeqNo};
  2365. //请求处理当前的参数
  2366. moveUpSchedule(requestData).then(({data}) => {
  2367. if(data.code != 200){
  2368. this.$message.error(data.msg);
  2369. }else{
  2370. this.$message.success(data.msg);
  2371. //重置当前行
  2372. this.scheduleIndex = this.scheduleIndex - 1;
  2373. //刷新派工单的数据
  2374. this.getOrderScheduleList();
  2375. }
  2376. });
  2377. },
  2378. /*上移派工单*/
  2379. moveDownScheduleBun(){
  2380. //判断是否选择好了移动的行
  2381. let scheduleRow = this.currentSchedlingRow;
  2382. if(null == scheduleRow || scheduleRow == ''){
  2383. this.$message.error('请先选择处理的行!');
  2384. return false;
  2385. }
  2386. let countNums = this.orderScheduleList.length;
  2387. //判断是否是第一行
  2388. if(scheduleRow.index == countNums - 1){
  2389. this.$message.error('已经是末行,无法继续下行!');
  2390. return false;
  2391. }
  2392. //请求的参数
  2393. let requestData = {'site': this.pageData.site,
  2394. 'workCenterNo': this.pageData.workCenterNo,
  2395. 'resourceId': this.pageData.resourceId,
  2396. 'scheduleSeqNo': scheduleRow.scheduledSeqNo};
  2397. //请求处理当前的参数
  2398. moveDownSchedule(requestData).then(({data}) => {
  2399. if(data.code != 200){
  2400. this.$message.error(data.msg);
  2401. }else{
  2402. this.$message.success(data.msg);
  2403. //重置当前行
  2404. this.scheduleIndex = this.scheduleIndex + 1;
  2405. //刷新派工单的数据
  2406. this.getOrderScheduleList();
  2407. }
  2408. });
  2409. },
  2410. /*判断主菜单的样式*/
  2411. controlPrimaryMenuBun(){
  2412. //没有选择行 所有的按钮都是灰色
  2413. if(this.currentRoutingRow == null || this.currentRoutingRow == {}){
  2414. this.primaryMenuButton.shopOrderFlag = true;
  2415. this.primaryMenuButton.workCalendarOutFlag = false;
  2416. this.primaryMenuButton.batchWorkCalendarFlag = false;
  2417. this.primaryMenuButton.splitScheduleFlag = true;
  2418. this.primaryMenuButton.reScheduleOrderFlag = false;
  2419. this.primaryMenuButton.partStockFlag = true;
  2420. this.primaryMenuButton.updateProductRouting=true;
  2421. }else{
  2422. // 判断是否具有该页面权限
  2423. let menList = JSON.parse(sessionStorage.getItem('dynamicMenuRoutes') || '[]')
  2424. .filter(item => item.path == 'shopOrder-shopOrder/shopOrder')
  2425. if (menList.length>0){
  2426. this.primaryMenuButton.shopOrderFlag = false;
  2427. }
  2428. this.primaryMenuButton.workCalendarOutFlag = false;
  2429. this.primaryMenuButton.batchWorkCalendarFlag = false;
  2430. this.primaryMenuButton.splitScheduleFlag = false;
  2431. this.primaryMenuButton.reScheduleOrderFlag = false;
  2432. this.primaryMenuButton.partStockFlag = false;
  2433. this.primaryMenuButton.updateProductRouting=false;
  2434. }
  2435. },
  2436. /*控制明细菜单是否显示*/
  2437. controlDetailMenuBun(){
  2438. //没有选择行 所有的按钮都是灰色
  2439. if(this.currentSchedlingRow == null || this.currentSchedlingRow == {}){
  2440. this.detailMenuButton.shopOrderFlag = true;
  2441. this.detailMenuButton.workCalendarOutFlag = true;
  2442. this.detailMenuButton.changeWaitTimeFlag = true;
  2443. this.detailMenuButton.changeScheduleByRoutingFlag = true;
  2444. this.detailMenuButton.changeScheduleByCalendarFlag = true;
  2445. this.detailMenuButton.partStockFlag = true;
  2446. }else{
  2447. // 判断是否具有该页面权限
  2448. let menList = JSON.parse(sessionStorage.getItem('dynamicMenuRoutes') || '[]')
  2449. .filter(item => item.path == 'shopOrder-shopOrder/shopOrder')
  2450. //如果存在权限
  2451. if (menList.length > 0){
  2452. this.detailMenuButton.shopOrderFlag = false;
  2453. }
  2454. this.detailMenuButton.workCalendarOutFlag = false;
  2455. //需要判断是否是等待工单(只有等待工单才可以修改时间)
  2456. if(this.currentSchedlingRow.orderNo === '9999'){
  2457. this.detailMenuButton.changeWaitTimeFlag = false;
  2458. }else{
  2459. this.detailMenuButton.changeWaitTimeFlag = true;
  2460. }
  2461. this.detailMenuButton.changeScheduleByRoutingFlag = false;
  2462. this.detailMenuButton.changeScheduleByCalendarFlag = false;
  2463. //等待订单无法查询物料库存
  2464. if(this.currentSchedlingRow.orderNo === '9999'){
  2465. this.detailMenuButton.partStockFlag = true;
  2466. }else{
  2467. this.detailMenuButton.partStockFlag = false;
  2468. }
  2469. }
  2470. },
  2471. /*调整等待派工单的等待时间*/
  2472. changeScheduleWaitTimes(tempData){
  2473. //修改当前等待派工单的等待时间
  2474. let requestData = {'site': tempData.site, 'orderNo': tempData.orderNo, 'itemNo': tempData.itemNo,
  2475. 'seqNo': tempData.seqNo, 'waitTimes': tempData.waitTimes, 'workCenterNo': this.pageData.workCenterNo,
  2476. 'resourceId': this.pageData.resourceId, 'scheduleSeqNo': this.currentSchedlingRow.scheduledSeqNo};
  2477. updateScheduleWaitTimes(requestData).then(({data}) => {
  2478. if(data.code != 200){
  2479. this.$message.error(data.msg);
  2480. }else{
  2481. this.$message.success(data.msg);
  2482. //刷新派工单的数据
  2483. this.getOrderScheduleList();
  2484. }
  2485. });
  2486. },
  2487. /*根据工艺路线调整派工单*/
  2488. changeScheduleByRouting(tempData){
  2489. //修改当前等待派工单的等待时间
  2490. let requestData = {'site': tempData.site, 'orderNo': tempData.orderNo, 'itemNo': tempData.itemNo,
  2491. 'seqNo': tempData.seqNo, 'workCenterNo': this.pageData.workCenterNo,
  2492. 'resourceId': this.pageData.resourceId, 'scheduleSeqNo': this.currentSchedlingRow.scheduledSeqNo};
  2493. refreshScheduleByRouting(requestData).then(({data}) => {
  2494. if(data.code != 200){
  2495. this.$message.error(data.msg);
  2496. }else{
  2497. this.$message.success(data.msg);
  2498. //刷新派工单的数据
  2499. this.getOrderScheduleList();
  2500. }
  2501. });
  2502. },
  2503. /*提示是否按照工作日历调整派工单*/
  2504. warnChangeScheduleByCalendar(scheduleRow){
  2505. //提示操作
  2506. this.$confirm('确实要要从该派工单开始,根据工作日历调整排产吗?', '提示', {
  2507. confirmButtonText: '确认',
  2508. celButtonText: '取消',
  2509. type: 'warning'
  2510. }).then(() =>{
  2511. //执行创建新卷的操作
  2512. this.changeScheduleByCalendar(scheduleRow);
  2513. });
  2514. },
  2515. /*根据日历调整派工单*/
  2516. changeScheduleByCalendar(tempData){
  2517. //修改当前等待派工单的等待时间
  2518. let requestData = {'site': tempData.site, 'orderNo': tempData.orderNo, 'itemNo': tempData.itemNo,
  2519. 'seqNo': tempData.seqNo, 'workCenterNo': this.pageData.workCenterNo,
  2520. 'resourceId': this.pageData.resourceId, 'scheduleSeqNo': this.currentSchedlingRow.scheduledSeqNo};
  2521. refreshScheduleByCalendar(requestData).then(({data}) => {
  2522. if(data.code != 200){
  2523. this.$message.error(data.msg);
  2524. }else{
  2525. this.$message.success(data.msg);
  2526. //刷新派工单的数据
  2527. this.getOrderScheduleList();
  2528. }
  2529. });
  2530. },
  2531. updateRoutingRevClosed(){
  2532. this.getShopOrderList();
  2533. },
  2534. },
  2535. created() {
  2536. //执行查询休息时间数据
  2537. this.getResourceShiftData();
  2538. //查询工单的数据
  2539. this.getShopOrderList();
  2540. //查询派工的数据
  2541. this.getOrderScheduleList();
  2542. },
  2543. watch:{
  2544. pageData: {
  2545. deep: true,
  2546. handler: function (newV, oldV) {
  2547. this.pageData.resourceId = this.pageData.resourceId.toUpperCase();
  2548. }
  2549. }
  2550. },
  2551. }
  2552. </script>
  2553. <!--当前页面的标签样式-->
  2554. <style scoped lang="scss">
  2555. /*针对el-card*/
  2556. .customer-card .el-form-item__content{
  2557. margin-top: -15px;
  2558. }
  2559. .customer-card .el-form-item{
  2560. height: 22px;
  2561. }
  2562. .customer-border .el-form-item__content{
  2563. margin-top: -30px;
  2564. }
  2565. /*全局年与日类型 宽度*/
  2566. div.el-time-width{
  2567. width: 110px !important;
  2568. }
  2569. /* 全局时间右边框*/
  2570. .customer-css input.el-input__inner{
  2571. height: 22px !important;
  2572. padding-right: 0px !important;
  2573. }
  2574. /* 控制el-card标签的数据*/
  2575. div.customer-el-card {
  2576. margin-left: 110px;
  2577. margin-top: -15px;
  2578. height: 20px;
  2579. width: 60px;
  2580. }
  2581. /* 颜色控制 */
  2582. div.customer-el-card-pink {
  2583. background: #FF00FF;
  2584. }
  2585. div.customer-el-card-orange {
  2586. background: #FFD700;
  2587. }
  2588. div.customer-el-card-blue {
  2589. background: #0000CD;
  2590. }
  2591. /*清掉样式*/
  2592. .el-radio+.el-radio {
  2593. margin-left: 0px;
  2594. }
  2595. /*当前按钮的通用样式*/
  2596. .customer-css .customer-bun-mid{
  2597. width: 60px;
  2598. text-align: center;
  2599. }
  2600. .customer-css .customer-bun-min{
  2601. width: 50px;
  2602. text-align: center;
  2603. }
  2604. .customer-css .customer-bun-max{
  2605. width: 80px;
  2606. text-align: center;
  2607. }
  2608. /*当前按钮的通用样式*/
  2609. .customer-css .el-button--medium {
  2610. padding: 5px 5px;
  2611. }
  2612. /*灰色的表格行背景颜色*/
  2613. .customer-css /deep/ tr.customer-row-gray:hover {
  2614. background: #7e819e;
  2615. }
  2616. /*灰色的表格行背景颜色*/
  2617. .customer-css /deep/ tr.customer-row-gray > td{
  2618. background: #7e819e;
  2619. }
  2620. /*去掉悬浮的样式*/
  2621. /*.customer-css /deep/ tr:hover > td{
  2622. background-color: transparent !important;
  2623. }
  2624. .customer-css /deep/ tr.hover-row.current-row > td{
  2625. background-color: transparent !important;
  2626. }
  2627. .customer-css /deep/ tr.hover-row > td{
  2628. background-color: transparent !important;
  2629. }*/
  2630. /*添加主菜单和明细菜单的样式*/
  2631. .customer-css .customer-dropdown .el-button--primary{
  2632. padding: 2px;
  2633. font-size: 12px;
  2634. }
  2635. /*设置间距*/
  2636. .el-dropdown-menu /deep/ li.customer-li{
  2637. font-size: 12px;
  2638. line-height: 16px;
  2639. padding: 4px 8px;
  2640. }
  2641. .el-input /deep/ .el-icon-time{
  2642. display: none;
  2643. }
  2644. /*控制上下间距*/
  2645. hr {
  2646. margin-top: 0px;
  2647. }
  2648. </style>