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.

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