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.

3701 lines
119 KiB

  1. <template>
  2. <div class="produce-report customer-css">
  3. <el-dialog v-drag
  4. @close="closeDialog"
  5. width="900px" class="customer-dialog"
  6. :title="titleCon" v-bind="$attrs" v-on="$listeners">
  7. <el-form :inline="true" label-position="top" style="height: 507px;"
  8. label-width="80px">
  9. <!-- 第一行信息 -->
  10. <el-form style="margin-top: -10px;">
  11. <el-form-item label="订单号:" class="customer-item">
  12. <el-input v-model="scheduleData.orderNo" :readonly="true" style="width: 130px;"></el-input>
  13. </el-form-item>
  14. <el-form-item label="物料编码:" class="customer-item">
  15. <el-input v-model="scheduleData.partNo" :readonly="true" style="width: 130px;"></el-input>
  16. </el-form-item>
  17. <el-form-item label="物料名称/规则:" class="customer-item">
  18. <el-input v-model="scheduleData.partDesc" :readonly="true" style="width: 200px;"></el-input>
  19. </el-form-item>
  20. <el-form-item label="派工单号:" class="customer-item">
  21. <el-input v-model="scheduleData.seqNo" :readonly="true" style="width: 80px;"></el-input>
  22. </el-form-item>
  23. </el-form>
  24. <!-- 第二行信息 -->
  25. <el-form>
  26. <el-form-item label="要求完工日期" class="customer-item">
  27. <el-input v-model="scheduleData.planFinishTime" :readonly="true" style="width: 130px;"></el-input>
  28. </el-form-item>
  29. <el-form-item label="要求开工日期" class="customer-item">
  30. <el-input v-model="scheduleData.planStartTime" :readonly="true" style="width: 130px;"></el-input>
  31. </el-form-item>
  32. <el-form-item label="原始派工单需求数量" class="customer-item">
  33. <el-input v-model="scheduleData.qtyRequiredOriginal" :readonly="true" style="width: 80px;"></el-input>
  34. </el-form-item>
  35. <el-form-item label="排产日期" class="customer-item">
  36. <el-input v-model="scheduleData.scheduledDate" :readonly="true" style="width: 80px;"></el-input>
  37. </el-form-item>
  38. <el-form-item label="班次" class="customer-item">
  39. <el-input v-model="scheduleData.shiftNo" :readonly="true" style="width: 80px;"></el-input>
  40. </el-form-item>
  41. </el-form>
  42. <!-- 第三行信息 -->
  43. <el-form>
  44. <el-form-item label="前道工序" class="customer-item">
  45. <el-input v-model="scheduleData.preItemDesc" :readonly="true" style="width: 180px;"></el-input>
  46. </el-form-item>
  47. <el-form-item label="后道工序" prop="languageDefault" class="customer-item">
  48. <el-input v-model="scheduleData.nextItemDesc" :readonly="true" style="width: 180px;"></el-input>
  49. </el-form-item>
  50. <el-form-item :label="''" style="margin-left: -5px;" class="customer-item">
  51. <el-checkbox style="margin-left: 30px; margin-top: 28px;" true-label="true" false-label="false"
  52. v-model="scheduleData.currentRollFlag">仅显示当前卷信息
  53. </el-checkbox>
  54. </el-form-item>
  55. </el-form>
  56. <!-- 第四行菜单- 卷操作 -->
  57. <fieldset class="customer-fieldset" style="width: 330px; height: 60px">
  58. <legend class="customer-legend">卷操作</legend>
  59. <el-form style="margin-top: 5px">
  60. <el-form-item class="customer-roll-css" style="width: 130px; font-size: 16px; color: #387877;">
  61. <span>{{ this.currentRollOps.rollNo }}</span>
  62. </el-form-item>
  63. <el-form-item>
  64. <el-button class="customer-bun-mid" type="primary" @click="switchRollModal"
  65. :disabled="buttonTags.scannerRollFlag"
  66. style="margin-left: 5px; margin-bottom: 5px;">
  67. 扫描卷
  68. </el-button>
  69. </el-form-item>
  70. <el-form-item>
  71. <el-button class="customer-bun-mid" type="primary" @click="finishRollModal"
  72. :disabled="buttonTags.finishRollFlag"
  73. style="margin-left: 10px; margin-bottom: 5px;">
  74. 结束卷
  75. </el-button>
  76. </el-form-item>
  77. </el-form>
  78. </fieldset>
  79. <!-- 第四行菜单- fqc成品卷奥做 -->
  80. <fieldset class="customer-fieldset" style="width: 330px; margin-top: -60px;margin-left: 340px;height: 60px">
  81. <legend class="customer-legend">FQC成品卷操作</legend>
  82. <el-form>
  83. <el-form-item style="margin-top: -10px ;">
  84. <span slot="label" type="label">每卷数量</span>
  85. <el-input style="width: 80px" oninput="value=value.replace(/[^0-9]/g,'')" v-model="createRoll.rollQty">
  86. </el-input>
  87. </el-form-item>
  88. <el-form-item style="margin-top: -10px ;">
  89. <span slot="label" type="label">卷数</span>
  90. <el-input class="customer-bun-mid" oninput="value=value.replace(/[^0-9]/g,'')"
  91. v-model="createRoll.rollNums">
  92. </el-input>
  93. </el-form-item>
  94. <el-form-item style="margin-top: -12px ;">
  95. <span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px"> </span>
  96. <el-button class="customer-bun-mid" type="primary" @click="separateRollModal"
  97. :disabled="buttonTags.createNewRollFlag"
  98. >
  99. 创建分卷
  100. </el-button>
  101. </el-form-item>
  102. <el-form-item style="margin-top: -12px ;">
  103. <span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px"> </span>
  104. <el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.mergeRollFlag"
  105. @click="mergeRollModal" style="margin-left: 10px; margin-bottom: 5px;">
  106. 合并卷
  107. </el-button>
  108. </el-form-item>
  109. </el-form>
  110. </fieldset>
  111. <!-- 列表展示区域 -->
  112. <fieldset class="customer-fieldset" style="margin-bottom: 10px; width: 870px; height: 300px;">
  113. <legend class="customer-legend">列表信息</legend>
  114. <el-tabs v-model="activeTable" style="margin-top: -3px; width: 870px;"
  115. type="border-card" @tab-click="tabClick" class="customer-tab">
  116. <el-tab-pane label="材料" name="sfdc_material">
  117. <el-table
  118. height="120"
  119. :data="orderBomList"
  120. border
  121. v-loading="dataListLoading"
  122. style="width: 100%;">
  123. <el-table-column
  124. v-for="(item,index) in columnBomArray" :key="index"
  125. :sortable="item.columnSortable"
  126. :prop="item.columnProp"
  127. :header-align="item.headerAlign"
  128. :show-overflow-tooltip="item.showOverflowTooltip"
  129. :align="item.align"
  130. :fixed="item.fixed"
  131. :width="item.columnWidth"
  132. :label="item.columnLabel">
  133. <template slot-scope="scope">
  134. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  135. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  136. style="width: 100px; height: 80px"/></span>
  137. </template>
  138. </el-table-column>
  139. </el-table>
  140. <el-table
  141. height="140"
  142. :data="sfdcMaterialList"
  143. border
  144. v-loading="dataListLoading"
  145. style="width: 100%;">
  146. <el-table-column
  147. v-for="(item,index) in columnMaterialArray" :key="index"
  148. :sortable="item.columnSortable"
  149. :prop="item.columnProp"
  150. :header-align="item.headerAlign"
  151. :show-overflow-tooltip="item.showOverflowTooltip"
  152. :align="item.align"
  153. :fixed="item.fixed"
  154. :width="item.columnWidth"
  155. :label="item.columnLabel">
  156. <template slot-scope="scope">
  157. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  158. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  159. style="width: 100px; height: 80px"/></span>
  160. </template>
  161. </el-table-column>
  162. <el-table-column
  163. fixed="left"
  164. header-align="center"
  165. align="center"
  166. width="115"
  167. :label="'操作'">
  168. <template slot-scope="scope">
  169. <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.rollNo != '*' && scope.row.sAPBOMItemNo >= 0
  170. && scope.row.finishedFlag == 'N' && scope.row.histType == '发料'"
  171. @click="replaceMaterialModal(scope.row)">换料</a>
  172. <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.rollNo == '*' && scope.row.sAPBOMItemNo >= 0
  173. && scope.row.finishedFlag == 'N' && scope.row.histType == '发料'"
  174. @click="cuttingMaterialModal(scope.row)"
  175. >下料</a>
  176. <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag == 'N' && scope.row.sAPBOMItemNo >= 0
  177. && scope.row.histType == '发料' && scope.row.keyRMFlag == 'N'"
  178. @click="warnFinishMaterialWithNoRemainderConfirm(scope.row)"
  179. >生产结束</a>
  180. </template>
  181. </el-table-column>
  182. </el-table>
  183. </el-tab-pane>
  184. <el-tab-pane label="生产卷的操作信息" name="sfdc_rollOps">
  185. <el-table
  186. height="250"
  187. :data="sfdcRollOpsList"
  188. border
  189. v-loading="dataListLoading"
  190. style="width: 100%;">
  191. <el-table-column
  192. v-for="(item,index) in columnRollOpsArray" :key="index"
  193. :sortable="item.columnSortable"
  194. :prop="item.columnProp"
  195. :header-align="item.headerAlign"
  196. :show-overflow-tooltip="item.showOverflowTooltip"
  197. :align="item.align"
  198. :fixed="item.fixed"
  199. :width="item.columnWidth"
  200. :label="item.columnLabel">
  201. <template slot-scope="scope">
  202. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  203. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  204. style="width: 100px; height: 80px"/></span>
  205. </template>
  206. </el-table-column>
  207. </el-table>
  208. </el-tab-pane>
  209. <el-tab-pane label="不良记录" name="sfdc_defect">
  210. <el-form>
  211. <el-form-item style="margin-top: 0px ;">
  212. <span slot="label" type="label">报告日期</span>
  213. <el-date-picker style="width: 100px"
  214. format="yyyy-MM-dd"
  215. value-format="yyyy-MM-dd hh:mm:ss" v-model="harmful.reportedDate">
  216. </el-date-picker>
  217. </el-form-item>
  218. <el-form-item style="margin-top: 0px ;">
  219. <a slot="label" type="label" @click="getBaseList(89)">不良代码</a>
  220. <el-input style="width: 90px" v-model="harmful.defectCode">
  221. </el-input>
  222. </el-form-item>
  223. <el-form-item style="margin-top: 0px ;">
  224. <span slot="label" type="label">不良原因</span>
  225. <el-input style="width: 150px" v-model="harmful.defectDesc" readonly>
  226. </el-input>
  227. </el-form-item>
  228. <el-form-item style="margin-top: 0px ;">
  229. <span slot="label" type="label">不良数</span>
  230. <el-input style="width: 120px" v-model="harmful.defectQty"
  231. oninput="value=value.replace(/[^0-9]/g,'')">
  232. </el-input>
  233. </el-form-item>
  234. <el-form-item style="margin-top: 0px ;">
  235. <span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px" @click="getBaseList(89)"> </span>
  236. <el-button class="customer-bun-mid" type="primary" @click="saveHarmful">
  237. 保存
  238. </el-button>
  239. </el-form-item>
  240. <el-form-item style="margin-top: 0px ;">
  241. <span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px"> </span>
  242. <el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.mergeRollFlag"
  243. @click="getInspectionDefectCodeList" style="margin-left: 10px; margin-bottom: 5px;">
  244. 批量录入
  245. </el-button>
  246. </el-form-item>
  247. </el-form>
  248. <el-table
  249. height="200"
  250. :data="sfdcDefectList"
  251. border
  252. show-summary
  253. :summary-method="sfdcDefectListSummaries"
  254. v-loading="dataListLoading"
  255. style="width: 100%;">
  256. <el-table-column
  257. v-for="(item,index) in columnDefectArray" :key="index"
  258. :sortable="item.columnSortable"
  259. :prop="item.columnProp"
  260. :header-align="item.headerAlign"
  261. :show-overflow-tooltip="item.showOverflowTooltip"
  262. :align="item.align"
  263. :fixed="item.fixed"
  264. :width="item.columnWidth"
  265. :label="item.columnLabel">
  266. <template slot-scope="scope">
  267. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  268. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  269. style="width: 100px; height: 80px"/></span>
  270. </template>
  271. </el-table-column>
  272. </el-table>
  273. </el-tab-pane>
  274. <el-tab-pane label="机器下机卷" name="sfdc_roll">
  275. <el-table
  276. height="250"
  277. :data="sfdcRollList"
  278. border
  279. show-summary
  280. :summary-method="sfdcRollListSummaries"
  281. v-loading="dataListLoading"
  282. style="width: 100%;">
  283. <el-table-column
  284. v-for="(item,index) in columnRollArray" :key="index"
  285. :sortable="item.columnSortable"
  286. :prop="item.columnProp"
  287. :header-align="item.headerAlign"
  288. :show-overflow-tooltip="item.showOverflowTooltip"
  289. :align="item.align"
  290. :fixed="item.fixed"
  291. :width="item.columnWidth"
  292. :label="item.columnLabel">
  293. <template slot-scope="scope">
  294. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  295. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  296. style="width: 100px; height: 80px"/></span>
  297. </template>
  298. </el-table-column>
  299. <el-table-column
  300. fixed="left"
  301. header-align="center"
  302. align="center"
  303. width="115"
  304. :label="'操作'">
  305. <template slot-scope="scope">
  306. <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'"
  307. @click="warnReopenSfdcRollsConfirm(scope.row)"
  308. >重打开</a>
  309. <a class="customer-a" v-if="operatorData.operatorName != ''"
  310. @click="warnDeleteSfdcRollsConfirm(scope.row)"
  311. >删除卷</a>
  312. </template>
  313. </el-table-column>
  314. </el-table>
  315. </el-tab-pane>
  316. </el-tabs>
  317. </fieldset>
  318. <!-- 生产调机菜单 -->
  319. <fieldset class="customer-fieldset"
  320. style="margin-left: 680px; margin-top: -510px; width: 200px; height: 200px;">
  321. <legend class="customer-legend">生产调机</legend>
  322. <el-form>
  323. <el-form-item style="margin-left: 10px; margin-top: 20px">
  324. <el-button class="customer-bun-mid" type="primary" @click="refreshPageData"
  325. style="width: 80px; ">
  326. 刷新
  327. </el-button>
  328. </el-form-item>
  329. <el-form-item style="margin-left: 100px; margin-top: -20px">
  330. <el-button class="customer-bun-mid" type="primary" @click="switchOperatorModal" style="width: 80px;">
  331. 切换用户
  332. </el-button>
  333. </el-form-item>
  334. <el-form-item style="margin-left: 100px; margin-top: -20px">
  335. <el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishScheduleFlag"
  336. @click="showFinishScheduleModal" style="width: 80px; margin-left: -90px;margin-top: 15px;">
  337. 结单
  338. </el-button>
  339. </el-form-item>
  340. </el-form>
  341. </fieldset>
  342. </el-form>
  343. </el-dialog>
  344. <!-- 切换操作员 -->
  345. <comSwitchOperator ref="comSwitchOperator" :close-on-click-modal="false"
  346. :visible.sync="showOperatorFlag"
  347. @initOperatorData="initOperatorData" @notInitOperatorData="notInitOperatorData">
  348. </comSwitchOperator>
  349. <!-- 开始生产组件 -->
  350. <changeSwitchRoll ref="changeSwitchRoll" :close-on-click-modal="false"
  351. :visible.sync="showSwitchFlag" @refreshPageData="refreshPageData">
  352. </changeSwitchRoll>
  353. <!-- 创建分卷的操作 -->
  354. <comSeparateRoll ref="comSeparateRoll" :close-on-click-modal="false"
  355. :visible.sync="showSeparateFlag" @refreshPageData="refreshPageData">
  356. </comSeparateRoll>
  357. <!-- 结束卷的modal -->
  358. <changeFinishRoll ref="changeFinishRoll" :close-on-click-modal="false"
  359. :visible.sync="showFinishFlag" @refreshPageData="refreshPageData">
  360. </changeFinishRoll>
  361. <!-- 产量报告的组件 -->
  362. <comFinishPartRoll ref="comFinishPartRoll" :close-on-click-modal="false"
  363. :visible.sync="showFinishPartFlag"
  364. @refreshPageData="refreshPageData">
  365. </comFinishPartRoll>
  366. <!-- 合并卷组件 -->
  367. <comMergeRoll ref="comMergeRoll" :close-on-click-modal="false"
  368. :visible.sync="showMergeFlag" @refreshPageData="refreshPageData">
  369. </comMergeRoll>
  370. <!-- 开始生产组件 -->
  371. <comStartProduce ref="comStartProduce" :close-on-click-modal="false"
  372. :visible.sync="showProduceFlag" @refreshPageData="refreshPageData">
  373. </comStartProduce>
  374. <!-- 报告不良组件 -->
  375. <comDefectRoll ref="comDefectRoll" :close-on-click-modal="false"
  376. :visible.sync="showDefectFlag">
  377. </comDefectRoll>
  378. <!-- 生产过程的工具组件 -->
  379. <comProduceTool ref="comProduceTool" :close-on-click-modal="false"
  380. :visible.sync="showToolFlag"
  381. @refreshPageData="refreshPageData">
  382. </comProduceTool>
  383. <!-- 切换刀模的组件 -->
  384. <comReplaceTool ref="comReplaceTool" :close-on-click-modal="false"
  385. :visible.sync="showReplaceToolFlag"
  386. @refreshPageData="refreshPageData">
  387. </comReplaceTool>
  388. <!-- 生产过程的材料组件 -->
  389. <comProduceMaterial ref="comProduceMaterial" :close-on-click-modal="false"
  390. :visible.sync="showMaterialFlag">
  391. </comProduceMaterial>
  392. <!-- 换料组件 -->
  393. <comReplaceMaterial ref="comReplaceMaterial" :close-on-click-modal="false"
  394. :visible.sync="showReplaceMaterialFlag"
  395. @refreshPageData="refreshPageData">
  396. </comReplaceMaterial>
  397. <!-- 换料组件 -->
  398. <comCuttingMaterial ref="comCuttingMaterial" :close-on-click-modal="false"
  399. :visible.sync="showCuttingMaterialFlag"
  400. @refreshPageData="refreshPageData">
  401. </comCuttingMaterial>
  402. <!-- 生产过程的停机组件 -->
  403. <comProduceDown ref="comProduceDown" :close-on-click-modal="false"
  404. :visible.sync="showDownFlag"
  405. @refreshPageData="refreshPageData">
  406. </comProduceDown>
  407. <!-- 正常的组件 -->
  408. <comFinishSchedule :close-on-click-modal="false"
  409. :visible.sync="showFinishScheduleFlag" ref="comFinishSchedule">
  410. </comFinishSchedule>
  411. <defectList ref="defectList" @getSfdcDefectList='getSfdcDefectList' ></defectList>
  412. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  413. <!-- 为生产下机拆卷 -->
  414. <notOverFinishRoll ref="notOverFinishRoll" :visible.sync="showNotOverFlag"
  415. @refreshPageData="refreshPageData"></notOverFinishRoll>
  416. </div>
  417. </template>
  418. <script>
  419. import {
  420. otherCheckCreateSplitSfdcRoll,/*校验是否可以创建分卷*/
  421. otherCreateSplitSfdcRoll,/*执行创建分卷的操作*/
  422. workbenchCreateslittingrollRepackAction
  423. } from '@/api/yieldReport/com_separate_roll.js'
  424. import {
  425. getScheduleDataBySeqNo,
  426. getCurrentRollOpsBySeqNo,
  427. getSfdcTimeByCon,
  428. getOrderToolByCon,
  429. getSfdcToolByCon,
  430. getOrderBomByCon,
  431. getSfdcMaterialByCon,
  432. getSfdcRollOpsByCon,
  433. getSfdcDefectByCon,
  434. getSfdcRollByCon,
  435. refreshWorkPlatformButtons,
  436. checkScheduleButton,
  437. checkCreateNewSfdcRoll,
  438. createNewRoll,
  439. reopenSfdcRolls,/*重新打开卷操作*/
  440. deleteSfdcRolls,/*删除sfdcRolls的操作*/
  441. processFinishTool,/*执行工具的结束使用的方法*/
  442. finishMaterialWithNoRemainder,/*执行材料结束使用 且无剩余 */
  443. saveSfdcDefect, /* 保存不良*/
  444. checkSfdcDefect
  445. } from "@/api/yieldReport/produce_report_normal.js";
  446. /*引入组件*/
  447. import comSwitchOperator from "../com_switch_operator";/*切换操作员*/
  448. import changeSwitchRoll from "./change_switch_roll";/*切换卷操作*/
  449. import comSeparateRoll from "../com_separate_roll";
  450. import comFinishRoll from "../com_finish_roll";/*结束卷数的组件*/
  451. import changeFinishRoll from "./change_finish_roll";//产量报告的组件
  452. import comMergeRoll from "../com_merge_roll";/*合并卷的组件*/
  453. import comStartTuning from "../com_start_tuning";/*开始调机组件*/
  454. import comStartProduce from "../com_start_produce";/*开始生产组件*/
  455. import comDefectRoll from "../com_defect_roll";/*报告不良品卷*/
  456. import comProduceTool from "../com_produce_tool";/*生产过程的工具组件*/
  457. import comReplaceTool from "../com_replace_tool";/*生产过程的工具组件*/
  458. import comProduceMaterial from "../com_produce_material";/*生产过程的材料组件*/
  459. import comReplaceMaterial from "../com_replace_material"/*换料组件*/
  460. import comCuttingMaterial from "../com_cutting_material"/*材料下料*/
  461. import comProduceDown from "../com_produce_down";/*停机组件*/
  462. import comFinishSchedule from "../com_finish_schedule";/*结束派工单组件*/
  463. import defectList from "./defectList";/*结束派工单组件*/
  464. import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/
  465. import notOverFinishRoll from "../not_over_finish_roll";/*结束派工单组件*/
  466. /*生产过程的停机组件*/
  467. export default {
  468. data() {
  469. return {
  470. titleCon: '',
  471. popoverFlag: false,
  472. showNotOverFlag:false,
  473. showOperatorFlag: false,
  474. showSwitchFlag: false,
  475. showSeparateFlag: false,
  476. showFinishFlag: false,
  477. showFinishPartFlag: false,
  478. showMergeFlag: false,
  479. showTuningFlag: false,
  480. showProduceFlag: false,
  481. showDefectFlag: false,
  482. showToolFlag: false,
  483. showReplaceToolFlag: false,
  484. showMaterialFlag: false,
  485. showReplaceMaterialFlag: false,
  486. showCuttingMaterialFlag: false,
  487. showDownFlag: false,
  488. showFinishScheduleFlag: false,
  489. activeTable: 'sfdc_time',
  490. sfdcTimeList: [],
  491. orderToolList: [],
  492. sfdcToolList: [],
  493. orderBomList: [],
  494. sfdcMaterialList: [],
  495. sfdcRollOpsList: [],
  496. sfdcDefectList: [],
  497. sfdcRollList: [],
  498. columnTimeArray: [
  499. {
  500. userId: this.$store.state.user.name,
  501. functionId: 5303,
  502. serialNumber: '5303TimeSeqNo',
  503. tableId: "5303Time",
  504. tableName: "时间记录表",
  505. columnProp: "seqNo",
  506. headerAlign: "center",
  507. align: "center",
  508. columnLabel: "派工单号",
  509. columnWidth: 60,
  510. columnHidden: false,
  511. columnImage: false,
  512. columnSortable: false,
  513. sortLv: 0,
  514. status: true,
  515. fixed: false
  516. },
  517. {
  518. userId: this.$store.state.user.name,
  519. functionId: 5303,
  520. serialNumber: '5303TimeHistSeqNo',
  521. tableId: "5303Time",
  522. tableName: "时间记录表",
  523. columnProp: "histSeqNo",
  524. headerAlign: "center",
  525. align: "center",
  526. columnLabel: "记录号",
  527. columnWidth: 55,
  528. columnHidden: false,
  529. columnImage: false,
  530. columnSortable: false,
  531. sortLv: 0,
  532. status: true,
  533. fixed: false
  534. },
  535. {
  536. userId: this.$store.state.user.name,
  537. functionId: 5303,
  538. serialNumber: '5303TimeRollNo',
  539. tableId: "5303Time",
  540. tableName: "时间记录表",
  541. columnProp: "rollNo",
  542. headerAlign: "center",
  543. align: "center",
  544. columnLabel: "卷号",
  545. columnWidth: 90,
  546. columnHidden: false,
  547. columnImage: false,
  548. columnSortable: false,
  549. sortLv: 0,
  550. status: true,
  551. fixed: false
  552. },
  553. {
  554. userId: this.$store.state.user.name,
  555. functionId: 5303,
  556. serialNumber: '5303TimeEventDesc',
  557. tableId: "5303Time",
  558. tableName: "时间记录表",
  559. columnProp: "eventDesc",
  560. headerAlign: "center",
  561. align: "center",
  562. columnLabel: "事件",
  563. columnWidth: 75,
  564. columnHidden: false,
  565. columnImage: false,
  566. columnSortable: false,
  567. sortLv: 0,
  568. status: true,
  569. fixed: false
  570. },
  571. {
  572. userId: this.$store.state.user.name,
  573. functionId: 5303,
  574. serialNumber: '5303TimeDowntimeCode',
  575. tableId: "5303Time",
  576. tableName: "时间记录表",
  577. columnProp: "downtimeCode",
  578. headerAlign: "center",
  579. align: "center",
  580. columnLabel: "停机代码",
  581. columnWidth: 60,
  582. columnHidden: false,
  583. columnImage: false,
  584. columnSortable: false,
  585. sortLv: 0,
  586. status: true,
  587. fixed: false
  588. },
  589. {
  590. userId: this.$store.state.user.name,
  591. functionId: 5303,
  592. serialNumber: '5303TimeEventTime',
  593. tableId: "5303Time",
  594. tableName: "时间记录表",
  595. columnProp: "eventTime",
  596. headerAlign: "center",
  597. align: "center",
  598. columnLabel: "时间",
  599. columnWidth: 125,
  600. columnHidden: false,
  601. columnImage: false,
  602. columnSortable: false,
  603. sortLv: 0,
  604. status: true,
  605. fixed: false
  606. },
  607. {
  608. userId: this.$store.state.user.name,
  609. functionId: 5303,
  610. serialNumber: '5303TimeEnteredby',
  611. tableId: "5303Time",
  612. tableName: "时间记录表",
  613. columnProp: "enteredby",
  614. headerAlign: "center",
  615. align: "center",
  616. columnLabel: "录入人",
  617. columnWidth: 80,
  618. columnHidden: false,
  619. columnImage: false,
  620. columnSortable: false,
  621. sortLv: 0,
  622. status: true,
  623. fixed: false
  624. },
  625. {
  626. userId: this.$store.state.user.name,
  627. functionId: 5303,
  628. serialNumber: '5303TimeTillTime',
  629. tableId: "5303Time",
  630. tableName: "时间记录表",
  631. columnProp: "tillTime",
  632. headerAlign: "center",
  633. align: "center",
  634. columnLabel: "结束时间",
  635. columnWidth: 125,
  636. columnHidden: false,
  637. columnImage: false,
  638. columnSortable: false,
  639. sortLv: 0,
  640. status: true,
  641. fixed: false
  642. },
  643. {
  644. userId: this.$store.state.user.name,
  645. functionId: 5303,
  646. serialNumber: '5303TimeCompletedFlag',
  647. tableId: "5303Time",
  648. tableName: "时间记录表",
  649. columnProp: "completedFlag",
  650. headerAlign: "center",
  651. align: "center",
  652. columnLabel: "结束",
  653. columnWidth: 35,
  654. columnHidden: false,
  655. columnImage: false,
  656. columnSortable: false,
  657. sortLv: 0,
  658. status: true,
  659. fixed: false
  660. },
  661. {
  662. userId: this.$store.state.user.name,
  663. functionId: 5303,
  664. serialNumber: '5303TimeTotalTime',
  665. tableId: "5303Time",
  666. tableName: "时间记录表",
  667. columnProp: "totalTime",
  668. headerAlign: "center",
  669. align: "center",
  670. columnLabel: "总时长",
  671. columnWidth: 55,
  672. columnHidden: false,
  673. columnImage: false,
  674. columnSortable: false,
  675. sortLv: 0,
  676. status: true,
  677. fixed: false
  678. },
  679. {
  680. userId: this.$store.state.user.name,
  681. functionId: 5303,
  682. serialNumber: '5303TimeDowntimePhaseIn',
  683. tableId: "5303Time",
  684. tableName: "时间记录表",
  685. columnProp: "downtimePhaseIn",
  686. headerAlign: "center",
  687. align: "center",
  688. columnLabel: "停机所处时段",
  689. columnWidth: 90,
  690. columnHidden: false,
  691. columnImage: false,
  692. columnSortable: false,
  693. sortLv: 0,
  694. status: true,
  695. fixed: false
  696. }
  697. ],
  698. columnOrderToolArray: [
  699. {
  700. userId: this.$store.state.user.name,
  701. functionId: 5303,
  702. serialNumber: '5303OrderToolToolId',
  703. tableId: "5303OrderTool",
  704. tableName: "工单工具",
  705. columnProp: "toolId",
  706. headerAlign: "center",
  707. align: "center",
  708. columnLabel: "工具编号",
  709. columnWidth: 70,
  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: 5303,
  720. serialNumber: '5303OrderToolToolDesc',
  721. tableId: "5303OrderTool",
  722. tableName: "工单工具",
  723. columnProp: "toolDesc",
  724. headerAlign: "center",
  725. align: "center",
  726. columnLabel: "工具名称",
  727. columnWidth: 85,
  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: 5303,
  738. serialNumber: '5303OrderToolSpec',
  739. tableId: "5303OrderTool",
  740. tableName: "工单工具",
  741. columnProp: "spec",
  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: 5303,
  756. serialNumber: '5303OrderToolToolQty',
  757. tableId: "5303OrderTool",
  758. tableName: "工单工具",
  759. columnProp: "toolQty",
  760. headerAlign: "center",
  761. align: "center",
  762. columnLabel: "工具数量",
  763. columnWidth: 60,
  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: 5303,
  774. serialNumber: '5303OrderToolDowntimeUmid',
  775. tableId: "5303OrderTool",
  776. tableName: "工单工具",
  777. columnProp: "umid",
  778. headerAlign: "center",
  779. align: "center",
  780. columnLabel: "计量单位",
  781. columnWidth: 65,
  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: 5303,
  792. serialNumber: '5303OrderToolActive',
  793. tableId: "5303OrderTool",
  794. tableName: "工单工具",
  795. columnProp: "active",
  796. headerAlign: "center",
  797. align: "center",
  798. columnLabel: "在用",
  799. columnWidth: 35,
  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: 5303,
  810. serialNumber: '5303OrderToolFamilyId',
  811. tableId: "5303OrderTool",
  812. tableName: "工单工具",
  813. columnProp: "familyId",
  814. headerAlign: "center",
  815. align: "center",
  816. columnLabel: "工具分类",
  817. columnWidth: 55,
  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: 5303,
  828. serialNumber: '5303OrderToolRemark',
  829. tableId: "5303OrderTool",
  830. tableName: "工单工具",
  831. columnProp: "remark",
  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: 5303,
  846. serialNumber: '5303OrderToolCreatedDate',
  847. tableId: "5303OrderTool",
  848. tableName: "工单工具",
  849. columnProp: "createdDate",
  850. headerAlign: "center",
  851. align: "center",
  852. columnLabel: "录入日期",
  853. columnWidth: 125,
  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: 5303,
  864. serialNumber: '5303OrderToolCreatedBy',
  865. tableId: "5303OrderTool",
  866. tableName: "工单工具",
  867. columnProp: "createdBy",
  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. columnToolArray: [
  881. {
  882. userId: this.$store.state.user.name,
  883. functionId: 5303,
  884. serialNumber: '5301ToolHistSeqNo',
  885. tableId: "5303Tool",
  886. tableName: "工具记录表",
  887. columnProp: "histSeqNo",
  888. headerAlign: "center",
  889. align: "center",
  890. columnLabel: "序号",
  891. columnWidth: 35,
  892. columnHidden: false,
  893. columnImage: false,
  894. columnSortable: false,
  895. sortLv: 0,
  896. status: true,
  897. fixed: false
  898. },
  899. {
  900. userId: this.$store.state.user.name,
  901. functionId: 5303,
  902. serialNumber: '5301ToolRollNo',
  903. tableId: "5303Tool",
  904. tableName: "工单表",
  905. columnProp: "rollNo",
  906. headerAlign: "center",
  907. align: "center",
  908. columnLabel: "卷号",
  909. columnWidth: 90,
  910. columnHidden: false,
  911. columnImage: false,
  912. columnSortable: false,
  913. sortLv: 0,
  914. status: true,
  915. fixed: false
  916. },
  917. {
  918. userId: this.$store.state.user.name,
  919. functionId: 5303,
  920. serialNumber: '5301ToolReportedDate',
  921. tableId: "5303Tool",
  922. tableName: "工单表",
  923. columnProp: "reportedDate",
  924. headerAlign: "center",
  925. align: "center",
  926. columnLabel: "报告时间",
  927. columnWidth: 125,
  928. columnHidden: false,
  929. columnImage: false,
  930. columnSortable: false,
  931. sortLv: 0,
  932. status: true,
  933. fixed: false
  934. },
  935. {
  936. userId: this.$store.state.user.name,
  937. functionId: 5303,
  938. serialNumber: '5301ToolReportedBy',
  939. tableId: "5303Tool",
  940. tableName: "工单表",
  941. columnProp: "reportedBy",
  942. headerAlign: "center",
  943. align: "center",
  944. columnLabel: "报告人",
  945. columnWidth: 80,
  946. columnHidden: false,
  947. columnImage: false,
  948. columnSortable: false,
  949. sortLv: 0,
  950. status: true,
  951. fixed: false
  952. },
  953. {
  954. userId: this.$store.state.user.name,
  955. functionId: 5303,
  956. serialNumber: '5301ToolToolInstanceId',
  957. tableId: "5303Tool",
  958. tableName: "工单表",
  959. columnProp: "toolInstanceId",
  960. headerAlign: "center",
  961. align: "center",
  962. columnLabel: "工具实例编号",
  963. columnWidth: 100,
  964. columnHidden: false,
  965. columnImage: false,
  966. columnSortable: false,
  967. sortLv: 0,
  968. status: true,
  969. fixed: false
  970. },
  971. {
  972. userId: this.$store.state.user.name,
  973. functionId: 5303,
  974. serialNumber: '5301ToolStartDate',
  975. tableId: "5303Tool",
  976. tableName: "工单表",
  977. columnProp: "startDate",
  978. headerAlign: "center",
  979. align: "center",
  980. columnLabel: "开始使用时间",
  981. columnWidth: 125,
  982. columnHidden: false,
  983. columnImage: false,
  984. columnSortable: false,
  985. sortLv: 0,
  986. status: true,
  987. fixed: false
  988. },
  989. {
  990. userId: this.$store.state.user.name,
  991. functionId: 5303,
  992. serialNumber: '5301ToolFinishedDate',
  993. tableId: "5303Tool",
  994. tableName: "工单表",
  995. columnProp: "finishedDate",
  996. headerAlign: "center",
  997. align: "center",
  998. columnLabel: "结束使用时间",
  999. columnWidth: 125,
  1000. columnHidden: false,
  1001. columnImage: false,
  1002. columnSortable: false,
  1003. sortLv: 0,
  1004. status: true,
  1005. fixed: false
  1006. },
  1007. {
  1008. userId: this.$store.state.user.name,
  1009. functionId: 5303,
  1010. serialNumber: '5301ToolFinishedFlag',
  1011. tableId: "5303Tool",
  1012. tableName: "工单表",
  1013. columnProp: "finishedFlag",
  1014. headerAlign: "center",
  1015. align: "center",
  1016. columnLabel: "使用结束",
  1017. columnWidth: 60,
  1018. columnHidden: false,
  1019. columnImage: false,
  1020. columnSortable: false,
  1021. sortLv: 0,
  1022. status: true,
  1023. fixed: false
  1024. },
  1025. {
  1026. userId: this.$store.state.user.name,
  1027. functionId: 5303,
  1028. serialNumber: '5301ToolRemark',
  1029. tableId: "5303Tool",
  1030. tableName: "工单表",
  1031. columnProp: "remark",
  1032. headerAlign: "center",
  1033. align: "center",
  1034. columnLabel: "备注",
  1035. columnWidth: 80,
  1036. columnHidden: false,
  1037. columnImage: false,
  1038. columnSortable: false,
  1039. sortLv: 0,
  1040. status: true,
  1041. fixed: false
  1042. },
  1043. {
  1044. userId: this.$store.state.user.name,
  1045. functionId: 5303,
  1046. serialNumber: '5301ToolStartFromRollNo',
  1047. tableId: "5303Tool",
  1048. tableName: "工单表",
  1049. columnProp: "startFromRollNo",
  1050. headerAlign: "center",
  1051. align: "center",
  1052. columnLabel: "上机时的半成品卷号",
  1053. columnWidth: 120,
  1054. columnHidden: false,
  1055. columnImage: false,
  1056. columnSortable: false,
  1057. sortLv: 0,
  1058. status: true,
  1059. fixed: false
  1060. },
  1061. {
  1062. userId: this.$store.state.user.name,
  1063. functionId: 5303,
  1064. serialNumber: '5301ToolFinishQty',
  1065. tableId: "5303Tool",
  1066. tableName: "工单表",
  1067. columnProp: "finishQty",
  1068. headerAlign: "center",
  1069. align: "center",
  1070. columnLabel: "生产数量",
  1071. columnWidth: 60,
  1072. columnHidden: false,
  1073. columnImage: false,
  1074. columnSortable: false,
  1075. sortLv: 0,
  1076. status: true,
  1077. fixed: false
  1078. }
  1079. ],
  1080. columnBomArray: [
  1081. {
  1082. userId: this.$store.state.user.name,
  1083. functionId: 5303,
  1084. serialNumber: '5303BomItemNo',
  1085. tableId: "5303Bom",
  1086. tableName: "工单bom",
  1087. columnProp: "itemNo",
  1088. headerAlign: "center",
  1089. align: "center",
  1090. columnLabel: "序号",
  1091. columnWidth: 35,
  1092. columnHidden: false,
  1093. columnImage: false,
  1094. columnSortable: false,
  1095. sortLv: 0,
  1096. status: true,
  1097. fixed: false
  1098. },
  1099. {
  1100. userId: this.$store.state.user.name,
  1101. functionId: 5303,
  1102. serialNumber: '5303BomComponentPartNo',
  1103. tableId: "5303Bom",
  1104. tableName: "工单bom",
  1105. columnProp: "componentPartNo",
  1106. headerAlign: "center",
  1107. align: "center",
  1108. columnLabel: "零部件编码",
  1109. columnWidth: 100,
  1110. columnHidden: false,
  1111. columnImage: false,
  1112. columnSortable: false,
  1113. sortLv: 0,
  1114. status: true,
  1115. fixed: false
  1116. },
  1117. {
  1118. userId: this.$store.state.user.name,
  1119. functionId: 5303,
  1120. serialNumber: '5303BomPartDesc',
  1121. tableId: "5303Bom",
  1122. tableName: "工单bom",
  1123. columnProp: "partDesc",
  1124. headerAlign: "center",
  1125. align: "center",
  1126. columnLabel: "零部件名称",
  1127. columnWidth: 100,
  1128. columnHidden: false,
  1129. columnImage: false,
  1130. columnSortable: false,
  1131. sortLv: 0,
  1132. status: true,
  1133. fixed: false
  1134. },
  1135. {
  1136. userId: this.$store.state.user.name,
  1137. functionId: 5303,
  1138. serialNumber: '5303BomPartSpec',
  1139. tableId: "5303Bom",
  1140. tableName: "工单bom",
  1141. columnProp: "partSpec",
  1142. headerAlign: "center",
  1143. align: "center",
  1144. columnLabel: "规格型号",
  1145. columnWidth: 80,
  1146. columnHidden: false,
  1147. columnImage: false,
  1148. columnSortable: false,
  1149. sortLv: 0,
  1150. status: true,
  1151. fixed: false
  1152. },
  1153. {
  1154. userId: this.$store.state.user.name,
  1155. functionId: 5303,
  1156. serialNumber: '5303BomToolQtyAssembly',
  1157. tableId: "5303Bom",
  1158. tableName: "工单bom",
  1159. columnProp: "qtyAssembly",
  1160. headerAlign: "center",
  1161. align: "center",
  1162. columnLabel: "单位用量",
  1163. columnWidth: 80,
  1164. columnHidden: false,
  1165. columnImage: false,
  1166. columnSortable: false,
  1167. sortLv: 0,
  1168. status: true,
  1169. fixed: false
  1170. },
  1171. {
  1172. userId: this.$store.state.user.name,
  1173. functionId: 5303,
  1174. serialNumber: '5303BomQtyFixedScrapt',
  1175. tableId: "5303Bom",
  1176. tableName: "工单bom",
  1177. columnProp: "qtyFixedScrapt",
  1178. headerAlign: "center",
  1179. align: "center",
  1180. columnLabel: "固定损耗",
  1181. columnWidth: 60,
  1182. columnHidden: false,
  1183. columnImage: false,
  1184. columnSortable: false,
  1185. sortLv: 0,
  1186. status: true,
  1187. fixed: false
  1188. },
  1189. {
  1190. userId: this.$store.state.user.name,
  1191. functionId: 5303,
  1192. serialNumber: '5303BomPartUm',
  1193. tableId: "5303Bom",
  1194. tableName: "工单bom",
  1195. columnProp: "partUm",
  1196. headerAlign: "center",
  1197. align: "center",
  1198. columnLabel: "计量单位",
  1199. columnWidth: 60,
  1200. columnHidden: false,
  1201. columnImage: false,
  1202. columnSortable: false,
  1203. sortLv: 0,
  1204. status: true,
  1205. fixed: false
  1206. },
  1207. {
  1208. userId: this.$store.state.user.name,
  1209. functionId: 5303,
  1210. serialNumber: '5303BomScraptFactor',
  1211. tableId: "5303Bom",
  1212. tableName: "工单bom",
  1213. columnProp: "scraptFactor",
  1214. headerAlign: "center",
  1215. align: "center",
  1216. columnLabel: "报废率",
  1217. columnWidth: 55,
  1218. columnHidden: false,
  1219. columnImage: false,
  1220. columnSortable: false,
  1221. sortLv: 0,
  1222. status: true,
  1223. fixed: false
  1224. },
  1225. {
  1226. userId: this.$store.state.user.name,
  1227. functionId: 5303,
  1228. serialNumber: '5303BomQtyRequired',
  1229. tableId: "5303Bom",
  1230. tableName: "工单bom",
  1231. columnProp: "qtyRequired",
  1232. headerAlign: "center",
  1233. align: "center",
  1234. columnLabel: "需求数量",
  1235. columnWidth: 60,
  1236. columnHidden: false,
  1237. columnImage: false,
  1238. columnSortable: false,
  1239. sortLv: 0,
  1240. status: true,
  1241. fixed: false
  1242. },
  1243. {
  1244. userId: this.$store.state.user.name,
  1245. functionId: 5303,
  1246. serialNumber: '5303BomQtyReserved',
  1247. tableId: "5303Bom",
  1248. tableName: "工单bom",
  1249. columnProp: "qtyReserved",
  1250. headerAlign: "center",
  1251. align: "center",
  1252. columnLabel: "预留数量",
  1253. columnWidth: 60,
  1254. columnHidden: false,
  1255. columnImage: false,
  1256. columnSortable: false,
  1257. sortLv: 0,
  1258. status: true,
  1259. fixed: false
  1260. },
  1261. {
  1262. userId: this.$store.state.user.name,
  1263. functionId: 5303,
  1264. serialNumber: '5303BomQtyIssue',
  1265. tableId: "5303Bom",
  1266. tableName: "工单bom",
  1267. columnProp: "qtyIssue",
  1268. headerAlign: "center",
  1269. align: "center",
  1270. columnLabel: "发料数量",
  1271. columnWidth: 60,
  1272. columnHidden: false,
  1273. columnImage: false,
  1274. columnSortable: false,
  1275. sortLv: 0,
  1276. status: true,
  1277. fixed: false
  1278. },
  1279. {
  1280. userId: this.$store.state.user.name,
  1281. functionId: 5303,
  1282. serialNumber: '5303BomIssueDate',
  1283. tableId: "5303Bom",
  1284. tableName: "工单bom",
  1285. columnProp: "issueDate",
  1286. headerAlign: "center",
  1287. align: "center",
  1288. columnLabel: "发料日期",
  1289. columnWidth: 125,
  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: 5303,
  1300. serialNumber: '5303BomRemark',
  1301. tableId: "5303Bom",
  1302. tableName: "工单bom",
  1303. columnProp: "remark",
  1304. headerAlign: "center",
  1305. align: "center",
  1306. columnLabel: "备注",
  1307. columnWidth: 80,
  1308. columnHidden: false,
  1309. columnImage: false,
  1310. columnSortable: false,
  1311. sortLv: 0,
  1312. status: true,
  1313. fixed: false
  1314. },
  1315. {
  1316. userId: this.$store.state.user.name,
  1317. functionId: 5303,
  1318. serialNumber: '5303BomMatGroup',
  1319. tableId: "5303Bom",
  1320. tableName: "工单bom",
  1321. columnProp: "matGroup",
  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: 5303,
  1336. serialNumber: '5303BomRmTypeDb',
  1337. tableId: "5303Bom",
  1338. tableName: "工单bom",
  1339. columnProp: "rmTypeDb",
  1340. headerAlign: "center",
  1341. align: "center",
  1342. columnLabel: "是否是主材料",
  1343. columnWidth: 80,
  1344. columnHidden: false,
  1345. columnImage: false,
  1346. columnSortable: false,
  1347. sortLv: 0,
  1348. status: true,
  1349. fixed: false
  1350. }
  1351. ],
  1352. columnMaterialArray: [
  1353. {
  1354. userId: this.$store.state.user.name,
  1355. functionId: 5303,
  1356. serialNumber: '5303MaterialHistSeqNo',
  1357. tableId: "5303Material",
  1358. tableName: "派工单材料",
  1359. columnProp: "histSeqNo",
  1360. headerAlign: "center",
  1361. align: "center",
  1362. columnLabel: "序号",
  1363. columnWidth: 35,
  1364. columnHidden: false,
  1365. columnImage: false,
  1366. columnSortable: false,
  1367. sortLv: 0,
  1368. status: true,
  1369. fixed: false
  1370. },
  1371. {
  1372. userId: this.$store.state.user.name,
  1373. functionId: 5303,
  1374. serialNumber: '5303MaterialReportDate',
  1375. tableId: "5303Material",
  1376. tableName: "派工单材料",
  1377. columnProp: "reportDate",
  1378. headerAlign: "center",
  1379. align: "center",
  1380. columnLabel: "报告时间",
  1381. columnWidth: 125,
  1382. columnHidden: false,
  1383. columnImage: false,
  1384. columnSortable: false,
  1385. sortLv: 0,
  1386. status: true,
  1387. fixed: false
  1388. },
  1389. {
  1390. userId: this.$store.state.user.name,
  1391. functionId: 5303,
  1392. serialNumber: '5303MaterialReportedBy',
  1393. tableId: "5303Material",
  1394. tableName: "派工单材料",
  1395. columnProp: "reportedBy",
  1396. headerAlign: "center",
  1397. align: "center",
  1398. columnLabel: "报告人",
  1399. columnWidth: 80,
  1400. columnHidden: false,
  1401. columnImage: false,
  1402. columnSortable: false,
  1403. sortLv: 0,
  1404. status: true,
  1405. fixed: false
  1406. },
  1407. {
  1408. userId: this.$store.state.user.name,
  1409. functionId: 5303,
  1410. serialNumber: '5303MaterialRollNo',
  1411. tableId: "5303Material",
  1412. tableName: "派工单材料",
  1413. columnProp: "rollNo",
  1414. headerAlign: "center",
  1415. align: "center",
  1416. columnLabel: "卷号",
  1417. columnWidth: 100,
  1418. columnHidden: false,
  1419. columnImage: false,
  1420. columnSortable: false,
  1421. sortLv: 0,
  1422. status: true,
  1423. fixed: false
  1424. },
  1425. {
  1426. userId: this.$store.state.user.name,
  1427. functionId: 5303,
  1428. serialNumber: '5303MaterialRmRollNo',
  1429. tableId: "5303Material",
  1430. tableName: "派工单材料",
  1431. columnProp: "rmRollNo",
  1432. headerAlign: "center",
  1433. align: "center",
  1434. columnLabel: "材料卷号",
  1435. columnWidth: 100,
  1436. columnHidden: false,
  1437. columnImage: false,
  1438. columnSortable: false,
  1439. sortLv: 0,
  1440. status: true,
  1441. fixed: false
  1442. },
  1443. {
  1444. userId: this.$store.state.user.name,
  1445. functionId: 5303,
  1446. serialNumber: '5303MaterialPartNo',
  1447. tableId: "5303Material",
  1448. tableName: "派工单材料",
  1449. columnProp: "partNo",
  1450. headerAlign: "center",
  1451. align: "center",
  1452. columnLabel: "零部件编码",
  1453. columnWidth: 100,
  1454. columnHidden: false,
  1455. columnImage: false,
  1456. columnSortable: false,
  1457. sortLv: 0,
  1458. status: true,
  1459. fixed: false
  1460. },
  1461. {
  1462. userId: this.$store.state.user.name,
  1463. functionId: 5303,
  1464. serialNumber: '5303MaterialRemark',
  1465. tableId: "5303Material",
  1466. tableName: "派工单材料",
  1467. columnProp: "remark",
  1468. headerAlign: "center",
  1469. align: "center",
  1470. columnLabel: "备注",
  1471. columnWidth: 80,
  1472. columnHidden: false,
  1473. columnImage: false,
  1474. columnSortable: false,
  1475. sortLv: 0,
  1476. status: true,
  1477. fixed: false
  1478. },
  1479. {
  1480. userId: this.$store.state.user.name,
  1481. functionId: 5303,
  1482. serialNumber: '5303MaterialStartDate',
  1483. tableId: "5303Material",
  1484. tableName: "派工单材料",
  1485. columnProp: "startDate",
  1486. headerAlign: "center",
  1487. align: "center",
  1488. columnLabel: "开始使用时间",
  1489. columnWidth: 125,
  1490. columnHidden: false,
  1491. columnImage: false,
  1492. columnSortable: false,
  1493. sortLv: 0,
  1494. status: true,
  1495. fixed: false
  1496. },
  1497. {
  1498. userId: this.$store.state.user.name,
  1499. functionId: 5303,
  1500. serialNumber: '5303MaterialFinishedDate',
  1501. tableId: "5303Material",
  1502. tableName: "派工单材料",
  1503. columnProp: "finishedDate",
  1504. headerAlign: "center",
  1505. align: "center",
  1506. columnLabel: "结束使用时间",
  1507. columnWidth: 125,
  1508. columnHidden: false,
  1509. columnImage: false,
  1510. columnSortable: false,
  1511. sortLv: 0,
  1512. status: true,
  1513. fixed: false
  1514. },
  1515. {
  1516. userId: this.$store.state.user.name,
  1517. functionId: 5303,
  1518. serialNumber: '5303MaterialFinishedFlag',
  1519. tableId: "5303Material",
  1520. tableName: "派工单材料",
  1521. columnProp: "finishedFlag",
  1522. headerAlign: "center",
  1523. align: "center",
  1524. columnLabel: "结束使用",
  1525. columnWidth: 60,
  1526. columnHidden: false,
  1527. columnImage: false,
  1528. columnSortable: false,
  1529. sortLv: 0,
  1530. status: true,
  1531. fixed: false
  1532. },
  1533. {
  1534. userId: this.$store.state.user.name,
  1535. functionId: 5303,
  1536. serialNumber: '5303MaterialHistType',
  1537. tableId: "5303Material",
  1538. tableName: "派工单材料",
  1539. columnProp: "histType",
  1540. headerAlign: "center",
  1541. align: "center",
  1542. columnLabel: "类型",
  1543. columnWidth: 50,
  1544. columnHidden: false,
  1545. columnImage: false,
  1546. columnSortable: false,
  1547. sortLv: 0,
  1548. status: true,
  1549. fixed: false
  1550. },
  1551. {
  1552. userId: this.$store.state.user.name,
  1553. functionId: 5303,
  1554. serialNumber: '5303MaterialTransGeneratedFlag',
  1555. tableId: "5303Material",
  1556. tableName: "派工单材料",
  1557. columnProp: "transGeneratedFlag",
  1558. headerAlign: "center",
  1559. align: "center",
  1560. columnLabel: "是否同步SAp",
  1561. columnWidth: 80,
  1562. columnHidden: false,
  1563. columnImage: false,
  1564. columnSortable: false,
  1565. sortLv: 0,
  1566. status: true,
  1567. fixed: false
  1568. },
  1569. {
  1570. userId: this.$store.state.user.name,
  1571. functionId: 5303,
  1572. serialNumber: '5303MaterialOriginalRMRollNo',
  1573. tableId: "5303Material",
  1574. tableName: "派工单材料",
  1575. columnProp: "originalRMRollNo",
  1576. headerAlign: "center",
  1577. align: "center",
  1578. columnLabel: "原材料卷号",
  1579. columnWidth: 80,
  1580. columnHidden: false,
  1581. columnImage: false,
  1582. columnSortable: false,
  1583. sortLv: 0,
  1584. status: true,
  1585. fixed: false
  1586. },
  1587. {
  1588. userId: this.$store.state.user.name,
  1589. functionId: 5303,
  1590. serialNumber: '5303MaterialUnissueFlag',
  1591. tableId: "5303Material",
  1592. tableName: "派工单材料",
  1593. columnProp: "unissueFlag",
  1594. headerAlign: "center",
  1595. align: "center",
  1596. columnLabel: "是否退料",
  1597. columnWidth: 80,
  1598. columnHidden: false,
  1599. columnImage: false,
  1600. columnSortable: false,
  1601. sortLv: 0,
  1602. status: true,
  1603. fixed: false
  1604. },
  1605. {
  1606. userId: this.$store.state.user.name,
  1607. functionId: 5303,
  1608. serialNumber: '5303MaterialTransQty',
  1609. tableId: "5303Material",
  1610. tableName: "派工单材料",
  1611. columnProp: "transQty",
  1612. headerAlign: "center",
  1613. align: "center",
  1614. columnLabel: "数量",
  1615. columnWidth: 80,
  1616. columnHidden: false,
  1617. columnImage: false,
  1618. columnSortable: false,
  1619. sortLv: 0,
  1620. status: true,
  1621. fixed: false
  1622. },
  1623. {
  1624. userId: this.$store.state.user.name,
  1625. functionId: 5303,
  1626. serialNumber: '5303MaterialNetIssueQty',
  1627. tableId: "5303Material",
  1628. tableName: "派工单材料",
  1629. columnProp: "netIssueQty",
  1630. headerAlign: "center",
  1631. align: "center",
  1632. columnLabel: "净耗用数量",
  1633. columnWidth: 80,
  1634. columnHidden: false,
  1635. columnImage: false,
  1636. columnSortable: false,
  1637. sortLv: 0,
  1638. status: true,
  1639. fixed: false
  1640. },
  1641. {
  1642. userId: this.$store.state.user.name,
  1643. functionId: 5303,
  1644. serialNumber: '5303MaterialOriginalHistSeqNo',
  1645. tableId: "5303Material",
  1646. tableName: "派工单材料",
  1647. columnProp: "originalHistSeqNo",
  1648. headerAlign: "center",
  1649. align: "center",
  1650. columnLabel: "关联序号",
  1651. columnWidth: 80,
  1652. columnHidden: false,
  1653. columnImage: false,
  1654. columnSortable: false,
  1655. sortLv: 0,
  1656. status: true,
  1657. fixed: false
  1658. },
  1659. {
  1660. userId: this.$store.state.user.name,
  1661. functionId: 5303,
  1662. serialNumber: '5303MaterialKeyRMFlag',
  1663. tableId: "5303Material",
  1664. tableName: "派工单材料",
  1665. columnProp: "keyRMFlag",
  1666. headerAlign: "center",
  1667. align: "center",
  1668. columnLabel: "是否主材",
  1669. columnWidth: 80,
  1670. columnHidden: false,
  1671. columnImage: false,
  1672. columnSortable: false,
  1673. sortLv: 0,
  1674. status: true,
  1675. fixed: false
  1676. },
  1677. {
  1678. userId: this.$store.state.user.name,
  1679. functionId: 5303,
  1680. serialNumber: '5303MaterialStartFromRollNo',
  1681. tableId: "5303Material",
  1682. tableName: "派工单材料",
  1683. columnProp: "startFromRollNo",
  1684. headerAlign: "center",
  1685. align: "center",
  1686. columnLabel: "上机时的半成品卷号",
  1687. columnWidth: 115,
  1688. columnHidden: false,
  1689. columnImage: false,
  1690. columnSortable: false,
  1691. sortLv: 0,
  1692. status: true,
  1693. fixed: false
  1694. },
  1695. {
  1696. userId: this.$store.state.user.name,
  1697. functionId: 5303,
  1698. serialNumber: '5303MaterialSAPBOMItemNo',
  1699. tableId: "5303Material",
  1700. tableName: "派工单材料",
  1701. columnProp: "sAPBOMItemNo",
  1702. headerAlign: "center",
  1703. align: "center",
  1704. columnLabel: "SAP BOM序号",
  1705. columnWidth: 100,
  1706. columnHidden: false,
  1707. columnImage: false,
  1708. columnSortable: false,
  1709. sortLv: 0,
  1710. status: true,
  1711. fixed: false
  1712. },
  1713. {
  1714. userId: this.$store.state.user.name,
  1715. functionId: 5303,
  1716. serialNumber: '5303MaterialSetupflag',
  1717. tableId: "5303Material",
  1718. tableName: "派工单材料",
  1719. columnProp: "setupflag",
  1720. headerAlign: "center",
  1721. align: "center",
  1722. columnLabel: "调机",
  1723. columnWidth: 80,
  1724. columnHidden: false,
  1725. columnImage: false,
  1726. columnSortable: false,
  1727. sortLv: 0,
  1728. status: true,
  1729. fixed: false
  1730. }
  1731. ],
  1732. columnRollOpsArray: [
  1733. {
  1734. userId: this.$store.state.user.name,
  1735. functionId: 5303,
  1736. serialNumber: '5303RollOpsRollNo',
  1737. tableId: "5303RollOps",
  1738. tableName: "上机卷",
  1739. columnProp: "rollNo",
  1740. headerAlign: "center",
  1741. align: "center",
  1742. columnLabel: "卷号",
  1743. columnWidth: 100,
  1744. columnHidden: false,
  1745. columnImage: false,
  1746. columnSortable: false,
  1747. sortLv: 0,
  1748. status: true,
  1749. fixed: false
  1750. },
  1751. {
  1752. userId: this.$store.state.user.name,
  1753. functionId: 5303,
  1754. serialNumber: '5303RollOpsFinishedDate',
  1755. tableId: "5303RollOps",
  1756. tableName: "上机卷",
  1757. columnProp: "finishedDate",
  1758. headerAlign: "center",
  1759. align: "center",
  1760. columnLabel: "完工时间",
  1761. columnWidth: 125,
  1762. columnHidden: false,
  1763. columnImage: false,
  1764. columnSortable: false,
  1765. sortLv: 0,
  1766. status: true,
  1767. fixed: false
  1768. },
  1769. {
  1770. userId: this.$store.state.user.name,
  1771. functionId: 5303,
  1772. serialNumber: '5303RollOpsFinishedBy',
  1773. tableId: "5303RollOps",
  1774. tableName: "上机卷",
  1775. columnProp: "finishedBy",
  1776. headerAlign: "center",
  1777. align: "center",
  1778. columnLabel: "完工人",
  1779. columnWidth: 80,
  1780. columnHidden: false,
  1781. columnImage: false,
  1782. columnSortable: false,
  1783. sortLv: 0,
  1784. status: true,
  1785. fixed: false
  1786. },
  1787. {
  1788. userId: this.$store.state.user.name,
  1789. functionId: 5303,
  1790. serialNumber: '5303RollOpsFinishedFlag',
  1791. tableId: "5303RollOps",
  1792. tableName: "上机卷",
  1793. columnProp: "finishedFlag",
  1794. headerAlign: "center",
  1795. align: "center",
  1796. columnLabel: "是否完工",
  1797. columnWidth: 60,
  1798. columnHidden: false,
  1799. columnImage: false,
  1800. columnSortable: false,
  1801. sortLv: 0,
  1802. status: true,
  1803. fixed: false
  1804. },
  1805. {
  1806. userId: this.$store.state.user.name,
  1807. functionId: 5303,
  1808. serialNumber: '5303RollOpsRemark',
  1809. tableId: "5303RollOps",
  1810. tableName: "上机卷",
  1811. columnProp: "remark",
  1812. headerAlign: "center",
  1813. align: "center",
  1814. columnLabel: "备注",
  1815. columnWidth: 110,
  1816. columnHidden: false,
  1817. columnImage: false,
  1818. columnSortable: false,
  1819. sortLv: 0,
  1820. status: true,
  1821. fixed: false
  1822. },
  1823. {
  1824. userId: this.$store.state.user.name,
  1825. functionId: 5303,
  1826. serialNumber: '5303RollOpsScanedBy',
  1827. tableId: "5303RollOps",
  1828. tableName: "上机卷",
  1829. columnProp: "scanedBy",
  1830. headerAlign: "center",
  1831. align: "center",
  1832. columnLabel: "扫描员",
  1833. columnWidth: 60,
  1834. columnHidden: false,
  1835. columnImage: false,
  1836. columnSortable: false,
  1837. sortLv: 0,
  1838. status: true,
  1839. fixed: false
  1840. },
  1841. {
  1842. userId: this.$store.state.user.name,
  1843. functionId: 5303,
  1844. serialNumber: '5303RollOpsScanedDate',
  1845. tableId: "5303RollOps",
  1846. tableName: "上机卷",
  1847. columnProp: "scanedDate",
  1848. headerAlign: "center",
  1849. align: "center",
  1850. columnLabel: "扫描时间",
  1851. columnWidth: 125,
  1852. columnHidden: false,
  1853. columnImage: false,
  1854. columnSortable: false,
  1855. sortLv: 0,
  1856. status: true,
  1857. fixed: false
  1858. },
  1859. {
  1860. userId: this.$store.state.user.name,
  1861. functionId: 5303,
  1862. serialNumber: '5303RollOpsFirstSetupBy',
  1863. tableId: "5303RollOps",
  1864. tableName: "上机卷",
  1865. columnProp: "firstSetupBy",
  1866. headerAlign: "center",
  1867. align: "center",
  1868. columnLabel: "首次调机人",
  1869. columnWidth: 80,
  1870. columnHidden: false,
  1871. columnImage: false,
  1872. columnSortable: false,
  1873. sortLv: 0,
  1874. status: true,
  1875. fixed: false
  1876. },
  1877. {
  1878. userId: this.$store.state.user.name,
  1879. functionId: 5303,
  1880. serialNumber: '5303RollOpsFirstSetupDate',
  1881. tableId: "5303RollOps",
  1882. tableName: "上机卷",
  1883. columnProp: "firstSetupDate",
  1884. headerAlign: "center",
  1885. align: "center",
  1886. columnLabel: "首次调机时间",
  1887. columnWidth: 125,
  1888. columnHidden: false,
  1889. columnImage: false,
  1890. columnSortable: false,
  1891. sortLv: 0,
  1892. status: true,
  1893. fixed: false
  1894. },
  1895. {
  1896. userId: this.$store.state.user.name,
  1897. functionId: 5303,
  1898. serialNumber: '5303RollOpsLatestSetupBy',
  1899. tableId: "5303RollOps",
  1900. tableName: "上机卷",
  1901. columnProp: "latestSetupBy",
  1902. headerAlign: "center",
  1903. align: "center",
  1904. columnLabel: "最近一次调机人",
  1905. columnWidth: 100,
  1906. columnHidden: false,
  1907. columnImage: false,
  1908. columnSortable: false,
  1909. sortLv: 0,
  1910. status: true,
  1911. fixed: false
  1912. },
  1913. {
  1914. userId: this.$store.state.user.name,
  1915. functionId: 5303,
  1916. serialNumber: '5303RollOpsLatestSetupDate',
  1917. tableId: "5303RollOps",
  1918. tableName: "上机卷",
  1919. columnProp: "latestSetupDate",
  1920. headerAlign: "center",
  1921. align: "center",
  1922. columnLabel: "最近一次调机时间",
  1923. columnWidth: 125,
  1924. columnHidden: false,
  1925. columnImage: false,
  1926. columnSortable: false,
  1927. sortLv: 0,
  1928. status: true,
  1929. fixed: false
  1930. },
  1931. {
  1932. userId: this.$store.state.user.name,
  1933. functionId: 5303,
  1934. serialNumber: '5303RollOpsFirstEndSetupBy',
  1935. tableId: "5303RollOps",
  1936. tableName: "上机卷",
  1937. columnProp: "firstEndSetupBy",
  1938. headerAlign: "center",
  1939. align: "center",
  1940. columnLabel: "首次调机结束人",
  1941. columnWidth: 100,
  1942. columnHidden: false,
  1943. columnImage: false,
  1944. columnSortable: false,
  1945. sortLv: 0,
  1946. status: true,
  1947. fixed: false
  1948. },
  1949. {
  1950. userId: this.$store.state.user.name,
  1951. functionId: 5303,
  1952. serialNumber: '5303RollOpsFirstEndSetupDate',
  1953. tableId: "5303RollOps",
  1954. tableName: "上机卷",
  1955. columnProp: "firstEndSetupDate",
  1956. headerAlign: "center",
  1957. align: "center",
  1958. columnLabel: "首次调机结束时间",
  1959. columnWidth: 125,
  1960. columnHidden: false,
  1961. columnImage: false,
  1962. columnSortable: false,
  1963. sortLv: 0,
  1964. status: true,
  1965. fixed: false
  1966. },
  1967. {
  1968. userId: this.$store.state.user.name,
  1969. functionId: 5303,
  1970. serialNumber: '5303RollOpsLatestEndSetupBy',
  1971. tableId: "5303RollOps",
  1972. tableName: "上机卷",
  1973. columnProp: "latestEndSetupBy",
  1974. headerAlign: "center",
  1975. align: "center",
  1976. columnLabel: "最近一次调机结束人",
  1977. columnWidth: 110,
  1978. columnHidden: false,
  1979. columnImage: false,
  1980. columnSortable: false,
  1981. sortLv: 0,
  1982. status: true,
  1983. fixed: false
  1984. },
  1985. {
  1986. userId: this.$store.state.user.name,
  1987. functionId: 5303,
  1988. serialNumber: '5303RollOpsLatestEndSetupDate',
  1989. tableId: "5303RollOps",
  1990. tableName: "上机卷",
  1991. columnProp: "latestEndSetupDate",
  1992. headerAlign: "center",
  1993. align: "center",
  1994. columnLabel: "最近一次调机结束时间",
  1995. columnWidth: 125,
  1996. columnHidden: false,
  1997. columnImage: false,
  1998. columnSortable: false,
  1999. sortLv: 0,
  2000. status: true,
  2001. fixed: false
  2002. },
  2003. {
  2004. userId: this.$store.state.user.name,
  2005. functionId: 5303,
  2006. serialNumber: '5303RollOpsFirstProdBy',
  2007. tableId: "5303RollOps",
  2008. tableName: "上机卷",
  2009. columnProp: "firstProdBy",
  2010. headerAlign: "center",
  2011. align: "center",
  2012. columnLabel: "首次开始生产人",
  2013. columnWidth: 120,
  2014. columnHidden: false,
  2015. columnImage: false,
  2016. columnSortable: false,
  2017. sortLv: 0,
  2018. status: true,
  2019. fixed: false
  2020. },
  2021. {
  2022. userId: this.$store.state.user.name,
  2023. functionId: 5303,
  2024. serialNumber: '5303RollOpsFirstProdDate',
  2025. tableId: "5303RollOps",
  2026. tableName: "上机卷",
  2027. columnProp: "firstProdDate",
  2028. headerAlign: "center",
  2029. align: "center",
  2030. columnLabel: "首次开始生产时间",
  2031. columnWidth: 125,
  2032. columnHidden: false,
  2033. columnImage: false,
  2034. columnSortable: false,
  2035. sortLv: 0,
  2036. status: true,
  2037. fixed: false
  2038. },
  2039. {
  2040. userId: this.$store.state.user.name,
  2041. functionId: 5303,
  2042. serialNumber: '5303RollOpsLatestProdBy',
  2043. tableId: "5303RollOps",
  2044. tableName: "上机卷",
  2045. columnProp: "latestProdBy",
  2046. headerAlign: "center",
  2047. align: "center",
  2048. columnLabel: "最近一次开始生产人",
  2049. columnWidth: 120,
  2050. columnHidden: false,
  2051. columnImage: false,
  2052. columnSortable: false,
  2053. sortLv: 0,
  2054. status: true,
  2055. fixed: false
  2056. },
  2057. {
  2058. userId: this.$store.state.user.name,
  2059. functionId: 5303,
  2060. serialNumber: '5303RollOpsLatestProdDate',
  2061. tableId: "5303RollOps",
  2062. tableName: "上机卷",
  2063. columnProp: "latestProdDate",
  2064. headerAlign: "center",
  2065. align: "center",
  2066. columnLabel: "最近一次开始生产时间",
  2067. columnWidth: 125,
  2068. columnHidden: false,
  2069. columnImage: false,
  2070. columnSortable: false,
  2071. sortLv: 0,
  2072. status: true,
  2073. fixed: false
  2074. },
  2075. {
  2076. userId: this.$store.state.user.name,
  2077. functionId: 5303,
  2078. serialNumber: '5303RollOpsFirstEndProdBy',
  2079. tableId: "5303RollOps",
  2080. tableName: "上机卷",
  2081. columnProp: "firstEndProdBy",
  2082. headerAlign: "center",
  2083. align: "center",
  2084. columnLabel: "首次结束生产人",
  2085. columnWidth: 120,
  2086. columnHidden: false,
  2087. columnImage: false,
  2088. columnSortable: false,
  2089. sortLv: 0,
  2090. status: true,
  2091. fixed: false
  2092. },
  2093. {
  2094. userId: this.$store.state.user.name,
  2095. functionId: 5303,
  2096. serialNumber: '5303RollOpsFirstEndProdDate',
  2097. tableId: "5303RollOps",
  2098. tableName: "上机卷",
  2099. columnProp: "firstEndProdDate",
  2100. headerAlign: "center",
  2101. align: "center",
  2102. columnLabel: "首次结束生产时间",
  2103. columnWidth: 125,
  2104. columnHidden: false,
  2105. columnImage: false,
  2106. columnSortable: false,
  2107. sortLv: 0,
  2108. status: true,
  2109. fixed: false
  2110. },
  2111. {
  2112. userId: this.$store.state.user.name,
  2113. functionId: 5303,
  2114. serialNumber: '5303RollOpsLatestEndProdBy',
  2115. tableId: "5303RollOps",
  2116. tableName: "上机卷",
  2117. columnProp: "latestEndProdBy",
  2118. headerAlign: "center",
  2119. align: "center",
  2120. columnLabel: "最近一次结束生产人",
  2121. columnWidth: 120,
  2122. columnHidden: false,
  2123. columnImage: false,
  2124. columnSortable: false,
  2125. sortLv: 0,
  2126. status: true,
  2127. fixed: false
  2128. },
  2129. {
  2130. userId: this.$store.state.user.name,
  2131. functionId: 5303,
  2132. serialNumber: '5303RollOpsLatestEndProdDate',
  2133. tableId: "5303RollOps",
  2134. tableName: "上机卷",
  2135. columnProp: "latestEndProdDate",
  2136. headerAlign: "center",
  2137. align: "center",
  2138. columnLabel: "最近一次结束生产时间",
  2139. columnWidth: 125,
  2140. columnHidden: false,
  2141. columnImage: false,
  2142. columnSortable: false,
  2143. sortLv: 0,
  2144. status: true,
  2145. fixed: false
  2146. },
  2147. {
  2148. userId: this.$store.state.user.name,
  2149. functionId: 5303,
  2150. serialNumber: '5303RollOpsPauseFlag',
  2151. tableId: "5303RollOps",
  2152. tableName: "上机卷",
  2153. columnProp: "pauseFlag",
  2154. headerAlign: "center",
  2155. align: "center",
  2156. columnLabel: "暂停",
  2157. columnWidth: 35,
  2158. columnHidden: false,
  2159. columnImage: false,
  2160. columnSortable: false,
  2161. sortLv: 0,
  2162. status: true,
  2163. fixed: false
  2164. },
  2165. {
  2166. userId: this.$store.state.user.name,
  2167. functionId: 5303,
  2168. serialNumber: '5303RollOpsReportedFlag',
  2169. tableId: "5303RollOps",
  2170. tableName: "上机卷",
  2171. columnProp: "reportedFlag",
  2172. headerAlign: "center",
  2173. align: "center",
  2174. columnLabel: "是否报产量",
  2175. columnWidth: 80,
  2176. columnHidden: false,
  2177. columnImage: false,
  2178. columnSortable: false,
  2179. sortLv: 0,
  2180. status: true,
  2181. fixed: false
  2182. },
  2183. {
  2184. userId: this.$store.state.user.name,
  2185. functionId: 5303,
  2186. serialNumber: '5303RollOpsQtyReported',
  2187. tableId: "5303RollOps",
  2188. tableName: "上机卷",
  2189. columnProp: "qtyReported",
  2190. headerAlign: "center",
  2191. align: "center",
  2192. columnLabel: "产出数量",
  2193. columnWidth: 60,
  2194. columnHidden: false,
  2195. columnImage: false,
  2196. columnSortable: false,
  2197. sortLv: 0,
  2198. status: true,
  2199. fixed: false
  2200. }
  2201. ],
  2202. columnDefectArray: [
  2203. {
  2204. userId: this.$store.state.user.name,
  2205. functionId: 5303,
  2206. serialNumber: '5303DefectHistSeqNo',
  2207. tableId: "5303Defect",
  2208. tableName: "不良信息",
  2209. columnProp: "histSeqNo",
  2210. headerAlign: "center",
  2211. align: "center",
  2212. columnLabel: "序号",
  2213. columnWidth: 50,
  2214. columnHidden: false,
  2215. columnImage: false,
  2216. columnSortable: false,
  2217. sortLv: 0,
  2218. status: true,
  2219. fixed: false
  2220. },
  2221. {
  2222. userId: this.$store.state.user.name,
  2223. functionId: 5303,
  2224. serialNumber: '5303DefectRollNo',
  2225. tableId: "5303Defect",
  2226. tableName: "不良信息",
  2227. columnProp: "rollNo",
  2228. headerAlign: "center",
  2229. align: "center",
  2230. columnLabel: "卷号",
  2231. columnWidth: 200,
  2232. columnHidden: false,
  2233. columnImage: false,
  2234. columnSortable: false,
  2235. sortLv: 0,
  2236. status: true,
  2237. fixed: false
  2238. },
  2239. {
  2240. userId: this.$store.state.user.name,
  2241. functionId: 5303,
  2242. serialNumber: '5303DefectDefectCode',
  2243. tableId: "5303Defect",
  2244. tableName: "不良信息",
  2245. columnProp: "defectCode",
  2246. headerAlign: "center",
  2247. align: "center",
  2248. columnLabel: "不良代码",
  2249. columnWidth: 90,
  2250. columnHidden: false,
  2251. columnImage: false,
  2252. columnSortable: false,
  2253. sortLv: 0,
  2254. status: true,
  2255. fixed: false
  2256. },
  2257. {
  2258. userId: this.$store.state.user.name,
  2259. functionId: 5303,
  2260. serialNumber: '5303DefectDefectDesc',
  2261. tableId: "5303Defect",
  2262. tableName: "不良信息",
  2263. columnProp: "defectDesc",
  2264. headerAlign: "center",
  2265. align: "center",
  2266. columnLabel: "不良描述",
  2267. columnWidth: 200,
  2268. columnHidden: false,
  2269. columnImage: false,
  2270. columnSortable: false,
  2271. sortLv: 0,
  2272. status: true,
  2273. fixed: false
  2274. },
  2275. {
  2276. userId: this.$store.state.user.name,
  2277. functionId: 5303,
  2278. serialNumber: '5303DefectDefectQty',
  2279. tableId: "5303Defect",
  2280. tableName: "不良信息",
  2281. columnProp: "defectQty",
  2282. headerAlign: "center",
  2283. align: "center",
  2284. columnLabel: "不良数量",
  2285. columnWidth: 80,
  2286. columnHidden: false,
  2287. columnImage: false,
  2288. columnSortable: false,
  2289. sortLv: 0,
  2290. status: true,
  2291. fixed: false
  2292. },
  2293. {
  2294. userId: this.$store.state.user.name,
  2295. functionId: 5303,
  2296. serialNumber: '5303DefectReportedDate',
  2297. tableId: "5303Defect",
  2298. tableName: "不良信息",
  2299. columnProp: "reportedDate",
  2300. headerAlign: "center",
  2301. align: "center",
  2302. columnLabel: "报告日期",
  2303. columnWidth: 90,
  2304. columnHidden: false,
  2305. columnImage: false,
  2306. columnSortable: false,
  2307. sortLv: 0,
  2308. status: true,
  2309. fixed: false
  2310. },
  2311. {
  2312. userId: this.$store.state.user.name,
  2313. functionId: 5303,
  2314. serialNumber: '5303DefectReportedBy',
  2315. tableId: "5303Defect",
  2316. tableName: "不良信息",
  2317. columnProp: "reportedBy",
  2318. headerAlign: "center",
  2319. align: "center",
  2320. columnLabel: "报告人",
  2321. columnWidth: 85,
  2322. columnHidden: false,
  2323. columnImage: false,
  2324. columnSortable: false,
  2325. sortLv: 0,
  2326. status: true,
  2327. fixed: false
  2328. },
  2329. {
  2330. userId: this.$store.state.user.name,
  2331. functionId: 5303,
  2332. serialNumber: '5303DefectRemark',
  2333. tableId: "5303Defect",
  2334. tableName: "不良信息",
  2335. columnProp: "remark",
  2336. headerAlign: "center",
  2337. align: "center",
  2338. columnLabel: "备注",
  2339. columnWidth: 80,
  2340. columnHidden: false,
  2341. columnImage: false,
  2342. columnSortable: false,
  2343. sortLv: 0,
  2344. status: true,
  2345. fixed: false
  2346. }
  2347. ],
  2348. columnRollArray: [
  2349. {
  2350. userId: this.$store.state.user.name,
  2351. functionId: 5303,
  2352. serialNumber: '5303RollRollNo',
  2353. tableId: "5303Roll",
  2354. tableName: "下机卷",
  2355. columnProp: "rollNo",
  2356. headerAlign: "center",
  2357. align: "center",
  2358. columnLabel: "卷号",
  2359. columnWidth: 100,
  2360. columnHidden: false,
  2361. columnImage: false,
  2362. columnSortable: false,
  2363. sortLv: 0,
  2364. status: true,
  2365. fixed: false
  2366. },
  2367. {
  2368. userId: this.$store.state.user.name,
  2369. functionId: 5303,
  2370. serialNumber: '5303RollCreatedDate',
  2371. tableId: "5303Roll",
  2372. tableName: "下机卷",
  2373. columnProp: "createdDate",
  2374. headerAlign: "center",
  2375. align: "center",
  2376. columnLabel: "创建时间",
  2377. columnWidth: 125,
  2378. columnHidden: false,
  2379. columnImage: false,
  2380. columnSortable: false,
  2381. sortLv: 0,
  2382. status: true,
  2383. fixed: false
  2384. },
  2385. {
  2386. userId: this.$store.state.user.name,
  2387. functionId: 5303,
  2388. serialNumber: '5303RollCreatedBy',
  2389. tableId: "5303Roll",
  2390. tableName: "下机卷",
  2391. columnProp: "createdBy",
  2392. headerAlign: "center",
  2393. align: "center",
  2394. columnLabel: "创建人",
  2395. columnWidth: 55,
  2396. columnHidden: false,
  2397. columnImage: false,
  2398. columnSortable: false,
  2399. sortLv: 0,
  2400. status: true,
  2401. fixed: false
  2402. },
  2403. {
  2404. userId: this.$store.state.user.name,
  2405. functionId: 5303,
  2406. serialNumber: '5303RollCurrentOpsItemNo',
  2407. tableId: "5303Roll",
  2408. tableName: "下机卷",
  2409. columnProp: "currentOpsItemNo",
  2410. headerAlign: "center",
  2411. align: "center",
  2412. columnLabel: "当前生产工序号",
  2413. columnWidth: 95,
  2414. columnHidden: false,
  2415. columnImage: false,
  2416. columnSortable: false,
  2417. sortLv: 0,
  2418. status: true,
  2419. fixed: false
  2420. },
  2421. {
  2422. userId: this.$store.state.user.name,
  2423. functionId: 5303,
  2424. serialNumber: '5303RollLastFinishedOpsItemNo',
  2425. tableId: "5303Roll",
  2426. tableName: "下机卷",
  2427. columnProp: "lastFinishedOpsItemNo",
  2428. headerAlign: "center",
  2429. align: "center",
  2430. columnLabel: "最近完工工序号",
  2431. columnWidth: 95,
  2432. columnHidden: false,
  2433. columnImage: false,
  2434. columnSortable: false,
  2435. sortLv: 0,
  2436. status: true,
  2437. fixed: false
  2438. },
  2439. {
  2440. userId: this.$store.state.user.name,
  2441. functionId: 5303,
  2442. serialNumber: '5303RollFinishedDate',
  2443. tableId: "5303Roll",
  2444. tableName: "下机卷",
  2445. columnProp: "finishedDate",
  2446. headerAlign: "center",
  2447. align: "center",
  2448. columnLabel: "完工时间",
  2449. columnWidth: 125,
  2450. columnHidden: false,
  2451. columnImage: false,
  2452. columnSortable: false,
  2453. sortLv: 0,
  2454. status: true,
  2455. fixed: false
  2456. },
  2457. {
  2458. userId: this.$store.state.user.name,
  2459. functionId: 5303,
  2460. serialNumber: '5303RollFinishedFlag',
  2461. tableId: "5303Roll",
  2462. tableName: "下机卷",
  2463. columnProp: "finishedFlag",
  2464. headerAlign: "center",
  2465. align: "center",
  2466. columnLabel: "是否完成",
  2467. columnWidth: 60,
  2468. columnHidden: false,
  2469. columnImage: false,
  2470. columnSortable: false,
  2471. sortLv: 0,
  2472. status: true,
  2473. fixed: false
  2474. },
  2475. {
  2476. userId: this.$store.state.user.name,
  2477. functionId: 5303,
  2478. serialNumber: '5303RollOnLineFlag',
  2479. tableId: "5303Roll",
  2480. tableName: "下机卷",
  2481. columnProp: "onLineFlag",
  2482. headerAlign: "center",
  2483. align: "center",
  2484. columnLabel: "是否在线",
  2485. columnWidth: 60,
  2486. columnHidden: false,
  2487. columnImage: false,
  2488. columnSortable: false,
  2489. sortLv: 0,
  2490. status: true,
  2491. fixed: false
  2492. },
  2493. {
  2494. userId: this.$store.state.user.name,
  2495. functionId: 5303,
  2496. serialNumber: '5303RollPauseFlag',
  2497. tableId: "5303Roll",
  2498. tableName: "下机卷",
  2499. columnProp: "pauseFlag",
  2500. headerAlign: "center",
  2501. align: "center",
  2502. columnLabel: "暂停",
  2503. columnWidth: 35,
  2504. columnHidden: false,
  2505. columnImage: false,
  2506. columnSortable: false,
  2507. sortLv: 0,
  2508. status: true,
  2509. fixed: false
  2510. },
  2511. {
  2512. userId: this.$store.state.user.name,
  2513. functionId: 5303,
  2514. serialNumber: '5303RollOriRollNo',
  2515. tableId: "5303Roll",
  2516. tableName: "下机卷",
  2517. columnProp: "oriRollNo",
  2518. headerAlign: "center",
  2519. align: "center",
  2520. columnLabel: "原卷号",
  2521. columnWidth: 100,
  2522. columnHidden: false,
  2523. columnImage: false,
  2524. columnSortable: false,
  2525. sortLv: 0,
  2526. status: true,
  2527. fixed: false
  2528. },
  2529. {
  2530. userId: this.$store.state.user.name,
  2531. functionId: 5303,
  2532. serialNumber: '5303RollStartOpsItemNo',
  2533. tableId: "5303Roll",
  2534. tableName: "下机卷",
  2535. columnProp: "startOpsItemNo",
  2536. headerAlign: "center",
  2537. align: "center",
  2538. columnLabel: "开始生产工序号",
  2539. columnWidth: 95,
  2540. columnHidden: false,
  2541. columnImage: false,
  2542. columnSortable: false,
  2543. sortLv: 0,
  2544. status: true,
  2545. fixed: false
  2546. },
  2547. {
  2548. userId: this.$store.state.user.name,
  2549. functionId: 5303,
  2550. serialNumber: '5303RollRollType',
  2551. tableId: "5303Roll",
  2552. tableName: "下机卷",
  2553. columnProp: "rollType",
  2554. headerAlign: "center",
  2555. align: "center",
  2556. columnLabel: "卷类型",
  2557. columnWidth: 75,
  2558. columnHidden: false,
  2559. columnImage: false,
  2560. columnSortable: false,
  2561. sortLv: 0,
  2562. status: true,
  2563. fixed: false
  2564. },
  2565. {
  2566. userId: this.$store.state.user.name,
  2567. functionId: 5303,
  2568. serialNumber: '5303RollCreatedOpsItemNo',
  2569. tableId: "5303Roll",
  2570. tableName: "下机卷",
  2571. columnProp: "createdOpsItemNo",
  2572. headerAlign: "center",
  2573. align: "center",
  2574. columnLabel: "创建卷的工序号",
  2575. columnWidth: 95,
  2576. columnHidden: false,
  2577. columnImage: false,
  2578. columnSortable: false,
  2579. sortLv: 0,
  2580. status: true,
  2581. fixed: false
  2582. },
  2583. {
  2584. userId: this.$store.state.user.name,
  2585. functionId: 5303,
  2586. serialNumber: '5303RollRollQty',
  2587. tableId: "5303Roll",
  2588. tableName: "下机卷",
  2589. columnProp: "rollQty",
  2590. headerAlign: "center",
  2591. align: "center",
  2592. columnLabel: "卷数量",
  2593. columnWidth: 55,
  2594. columnHidden: false,
  2595. columnImage: false,
  2596. columnSortable: false,
  2597. sortLv: 0,
  2598. status: true,
  2599. fixed: false
  2600. },
  2601. {
  2602. userId: this.$store.state.user.name,
  2603. functionId: 5303,
  2604. serialNumber: '5303RollFirstLevelRollNo',
  2605. tableId: "5303Roll",
  2606. tableName: "下机卷",
  2607. columnProp: "firstLevelRollNo",
  2608. headerAlign: "center",
  2609. align: "center",
  2610. columnLabel: "最原始卷号",
  2611. columnWidth: 100,
  2612. columnHidden: false,
  2613. columnImage: false,
  2614. columnSortable: false,
  2615. sortLv: 0,
  2616. status: true,
  2617. fixed: false
  2618. },
  2619. {
  2620. userId: this.$store.state.user.name,
  2621. functionId: 5303,
  2622. serialNumber: '5303RollVirtualRollFlag',
  2623. tableId: "5303Roll",
  2624. tableName: "下机卷",
  2625. columnProp: "virtualRollFlag",
  2626. headerAlign: "center",
  2627. align: "center",
  2628. columnLabel: "虚拟卷",
  2629. columnWidth: 80,
  2630. columnHidden: false,
  2631. columnImage: false,
  2632. columnSortable: false,
  2633. sortLv: 0,
  2634. status: true,
  2635. fixed: false
  2636. }
  2637. ],
  2638. searchData: {
  2639. site: this.$store.state.user.site,
  2640. userName: this.$store.state.user.name,
  2641. seqNo: '',
  2642. orderNo: '',
  2643. itemNo: 0,
  2644. resourceId: '',
  2645. scheduledDate: '',
  2646. shiftNo: '',
  2647. partNo: '',
  2648. workCenterNo: '',
  2649. workCenterDesc: '',
  2650. resourceDesc: '',
  2651. rollNo: '',
  2652. partDesc: '',
  2653. planStartTime: '',
  2654. planFinishTime: '',
  2655. qtyRequiredOriginal: 0,
  2656. preItemDesc: '',
  2657. nextItemDesc: '',
  2658. nextItemNo: 0,
  2659. operatorId: '',
  2660. functionName: ''
  2661. },
  2662. scheduleData: {
  2663. site: this.$store.state.user.site,
  2664. username: this.$store.state.user.name,
  2665. seqNo: '',
  2666. orderNo: '',
  2667. itemNo: 0,
  2668. resourceId: '',
  2669. scheduledDate: '',
  2670. shiftNo: '',
  2671. partNo: '',
  2672. workCenterNo: '',
  2673. workCenterDesc: '',
  2674. resourceDesc: '',
  2675. rollNo: '',
  2676. partDesc: '',
  2677. planStartTime: '',
  2678. planFinishTime: '',
  2679. qtyRequiredOriginal: 0,
  2680. preItemDesc: '',
  2681. nextItemDesc: '',
  2682. nextItemNo: 0,
  2683. operatorId: '',
  2684. functionName: '',
  2685. currentRollFlag: false,
  2686. // fqc , 切换卷参数
  2687. repairOrderFlag: 'N',
  2688. checkMultipleRoll: 'N',
  2689. directPass: 'N'
  2690. },
  2691. currentRollOps: {
  2692. site: this.$store.state.user.site,
  2693. seqNo: '',
  2694. rollNo: '',
  2695. finishedFlag: '',
  2696. },
  2697. operatorData: {
  2698. site: this.$store.state.user.site,
  2699. username: this.$store.state.user.name,
  2700. operatorId: '',
  2701. operatorName: '',
  2702. status: '',
  2703. showFlag: false
  2704. },
  2705. buttonTags: {
  2706. createNewRollFlag: false,
  2707. switchRollFlag: false,
  2708. separateRollFlag: false,
  2709. finishRollFlag: false,
  2710. mergeRollFlag: false,
  2711. tuningFlag: false,
  2712. produceFlag: false,
  2713. defectFlag: false,
  2714. produceToolFlag: false,
  2715. materialFlag: false,
  2716. downTimeFlag: false,
  2717. scannerRollFlag:false,
  2718. otherFlag:false,
  2719. },
  2720. dataListLoading: false,
  2721. createRoll: {
  2722. site: this.$store.state.user.site,
  2723. userName: this.$store.state.user.name,
  2724. orderNo: '',
  2725. itemNo: '',
  2726. seqNo: '',
  2727. rollNo: '',
  2728. reportDate: '',
  2729. reportTime: '',
  2730. rollQty: '',
  2731. rollNums: ''
  2732. },
  2733. harmful: {
  2734. site: this.$store.state.user.site,
  2735. reportedBy: this.$store.state.user.name,
  2736. orderNo: '',
  2737. itemNo: '',
  2738. seqNo: '',
  2739. histSeqNo: '',
  2740. rollNo: '',
  2741. reportedDate: '',
  2742. defectCode: '',
  2743. defectQty: '',
  2744. defectDesc: ''
  2745. }
  2746. }
  2747. },
  2748. watch: {
  2749. harmful: {
  2750. deep: true,
  2751. handler: function (newV, oldV) {
  2752. this.harmful.defectCode = this.harmful.defectCode.toUpperCase()
  2753. this.defectCodeCheck()
  2754. }
  2755. }
  2756. },
  2757. components: {
  2758. comSwitchOperator,/*切换用户的组件*/
  2759. changeSwitchRoll,/*切换卷操作*/
  2760. comSeparateRoll,/*創建分卷组件*/
  2761. comFinishRoll,/*结束卷的组件*/
  2762. changeFinishRoll,/*产量报告的组件*/
  2763. comMergeRoll,/*合并卷组件*/
  2764. comStartTuning,/*开始调机组件*/
  2765. comStartProduce,/*开始生产组件*/
  2766. comDefectRoll,/*报告不良品*/
  2767. comProduceTool,/*生产过程的工具组件*/
  2768. comReplaceTool,/*刀模切换组件*/
  2769. comProduceMaterial,/*生产过程的材料组件*/
  2770. comReplaceMaterial,/*换料的组件*/
  2771. comCuttingMaterial,/*材料下料的功能*/
  2772. comProduceDown,/*生产过程的停机组件*/
  2773. comFinishSchedule,/*结束派工单的组件*/
  2774. defectList,/*不良信息列表*/
  2775. Chooselist, /*基础信息列表*/
  2776. notOverFinishRoll, /*未结生产订单下机*/
  2777. },
  2778. methods: {
  2779. // 不良记录
  2780. sfdcDefectListSummaries(param){
  2781. const { columns, data } = param;
  2782. const sums = [];
  2783. columns.forEach((column, index) => {
  2784. if (index === 1) {
  2785. sums[index] = "合计: ";
  2786. return;
  2787. }
  2788. if (index == 4){
  2789. const values = data.map(item => Number(item[column.property]));
  2790. if (!values.every(value => isNaN(value))) {
  2791. sums[index] = values.reduce((prev, curr) => {
  2792. const value = Number(curr);
  2793. if (!isNaN(value)) {
  2794. return prev + curr;
  2795. } else {
  2796. return prev;
  2797. }
  2798. }, 0);
  2799. sums[index] ;
  2800. }
  2801. sums[index] = sums[index]?sums[index]:0
  2802. }
  2803. });
  2804. return sums;
  2805. },
  2806. // 机器下机卷
  2807. sfdcRollListSummaries(param){
  2808. const { columns, data } = param;
  2809. const sums = [];
  2810. columns.forEach((column, index) => {
  2811. if (index === 0) {
  2812. sums[index] = '下机卷总数:';
  2813. return;
  2814. }
  2815. if (index == 14){
  2816. let list = data.filter(item => item.virtualRollFlag!='Y' && item.rollType !='删除卷')
  2817. const values = list.map(item => Number(item[column.property]));
  2818. let sum = 0
  2819. if (!values.every(value => isNaN(value))) {
  2820. sum = values.reduce((prev, curr) => {
  2821. const value = Number(curr);
  2822. if (!isNaN(value)) {
  2823. return prev + curr;
  2824. } else {
  2825. return prev;
  2826. }
  2827. }, 0);
  2828. }
  2829. sums[0]+= sum?sum:0
  2830. }
  2831. });
  2832. return sums;
  2833. },
  2834. // 异常下机报工
  2835. notOverFinishRollModal() {
  2836. this.popoverFlag = false
  2837. this.$nextTick(() => {
  2838. this.showNotOverFlag = true;
  2839. this.$refs.notOverFinishRoll.init(this.scheduleData, this.operatorData)
  2840. });
  2841. },
  2842. /*列表方法的回调*/
  2843. getBaseData(val){
  2844. console.log(val)
  2845. if (this.tagNo === 89){
  2846. this.harmful.defectCode = val.DefectCode;
  2847. this.harmful.defectDesc = val.DefectDesc;
  2848. }
  2849. },
  2850. // 获取基础数据列表
  2851. getBaseList(val){
  2852. this.tagNo = val
  2853. this.$nextTick(() => {
  2854. let strVal = "";
  2855. if (val === 89 ){
  2856. strVal = this.harmful.defectCode;
  2857. }
  2858. this.$refs.baseList.init(val, strVal)
  2859. })
  2860. },
  2861. // 不良信息列表
  2862. getInspectionDefectCodeList(){
  2863. this.$nextTick(() => {
  2864. this.$refs.defectList.init(this.scheduleData)
  2865. });
  2866. },
  2867. // 校验不良代码
  2868. defectCodeCheck() {
  2869. this.harmful.orderNo = this.scheduleData.orderNo
  2870. this.harmful.itemNo = this.scheduleData.itemNo
  2871. this.harmful.seqNo = this.scheduleData.seqNo
  2872. this.harmful.rollNo = this.scheduleData.rollNo
  2873. checkSfdcDefect(this.harmful).then(({data}) => {
  2874. if (data.code == 0) {
  2875. this.harmful.defectDesc = data.map.defectDesc
  2876. }
  2877. })
  2878. },
  2879. // 保存不良
  2880. saveHarmful() {
  2881. if (!this.harmful.defectCode) {
  2882. this.$message.warning('请输入不良代码')
  2883. return
  2884. }
  2885. if (!this.harmful.defectQty) {
  2886. this.$message.warning('请输入不良数量')
  2887. return
  2888. }
  2889. this.harmful.orderNo = this.scheduleData.orderNo
  2890. this.harmful.itemNo = this.scheduleData.itemNo
  2891. this.harmful.seqNo = this.scheduleData.seqNo
  2892. this.harmful.rollNo = this.scheduleData.rollNo
  2893. this.harmful.reportedBy = this.operatorData.operatorId
  2894. saveSfdcDefect(this.harmful).then(({data}) => {
  2895. if (data.code == 0) {
  2896. this.$message.success(data.msg)
  2897. this.harmful.defectCode= ''
  2898. this.harmful.defectQty= ''
  2899. this.harmful.defectDesc = ''
  2900. this.getSfdcDefectList();
  2901. } else if(data.code == 500){
  2902. this.$message.error(data.msg)
  2903. } else {
  2904. this.$message.warning(data.msg)
  2905. }
  2906. })
  2907. },
  2908. // 获取派工单的信息
  2909. getScheduleDataBySeqNo() {
  2910. getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => {
  2911. this.scheduleData.seqNo = data.row.seqNo;
  2912. this.scheduleData.orderNo = data.row.orderNo;
  2913. this.scheduleData.itemNo = data.row.itemNo;
  2914. this.scheduleData.resourceId = data.row.resourceId;
  2915. this.scheduleData.partNo = data.row.partNo;
  2916. this.scheduleData.partDesc = data.row.partDesc;
  2917. this.scheduleData.planStartTime = data.row.planStartTime;
  2918. this.scheduleData.planFinishTime = data.row.planFinishTime;
  2919. this.scheduleData.qtyRequiredOriginal = data.row.qtyRequiredOriginal;
  2920. this.scheduleData.scheduledDate = data.row.scheduledDate;
  2921. this.scheduleData.shiftNo = data.row.shiftNo;
  2922. this.scheduleData.preItemDesc = data.row.preItemDesc;
  2923. this.scheduleData.nextItemDesc = data.row.nextItemDesc;
  2924. this.scheduleData.workCenterNo = data.row.workCenterNo;
  2925. this.scheduleData.workCenterDesc = data.row.workCenterDesc;
  2926. this.scheduleData.resourceDesc = data.row.resourceDesc;
  2927. this.scheduleData.preItemNo = data.row.preItemNo;
  2928. });
  2929. },
  2930. // 获取当前卷的信息
  2931. async getCurrentRollOpsBySeqNoFun() {
  2932. await getCurrentRollOpsBySeqNo(this.currentRollOps).then(({data}) => {
  2933. if (data.code === 200) {
  2934. this.currentRollOps.rollNo = data.row.rollNo;
  2935. this.scheduleData.rollNo = data.row.rollNo;
  2936. this.currentRollOps.finishedFlag = data.row.finishedFlag;
  2937. } else {
  2938. this.currentRollOps.rollNo = '';
  2939. this.scheduleData.rollNo = '';
  2940. }
  2941. //设置查询的数据
  2942. this.searchData = JSON.parse(JSON.stringify(this.scheduleData));
  2943. });
  2944. },
  2945. //列表表格选择替换
  2946. tabClick(tab, event) {
  2947. //刷新列表数据
  2948. this.refreshCurrentTabTable();
  2949. },
  2950. //刷新派工单的时间的记录
  2951. async getSfdcTimeList() {
  2952. await getSfdcTimeByCon(this.searchData).then(({data}) => {
  2953. this.sfdcTimeList = data.rows;
  2954. });
  2955. },
  2956. //刷新工单的工具信息
  2957. getOrderToolList() {
  2958. getOrderToolByCon(this.searchData).then(({data}) => {
  2959. this.orderToolList = data.rows;
  2960. });
  2961. },
  2962. //刷新派工单的刀模板的记录
  2963. getSfdcToolList() {
  2964. getSfdcToolByCon(this.searchData).then(({data}) => {
  2965. this.sfdcToolList = data.rows;
  2966. });
  2967. },
  2968. //刷新工单的bom信息
  2969. getOrderBomList() {
  2970. getOrderBomByCon(this.searchData).then(({data}) => {
  2971. this.orderBomList = data.rows;
  2972. });
  2973. },
  2974. //刷新派工单的材料表的记录
  2975. getSfdcMaterialList() {
  2976. getSfdcMaterialByCon(this.searchData).then(({data}) => {
  2977. this.sfdcMaterialList = data.rows;
  2978. });
  2979. },
  2980. //刷新派工单的下机卷的记录
  2981. getSfdcRollOpsList() {
  2982. getSfdcRollOpsByCon(this.searchData).then(({data}) => {
  2983. this.sfdcRollOpsList = data.rows;
  2984. });
  2985. },
  2986. //刷新派工单的不良标的记录
  2987. getSfdcDefectList() {
  2988. getSfdcDefectByCon(this.searchData).then(({data}) => {
  2989. this.sfdcDefectList = data.rows;
  2990. });
  2991. },
  2992. //刷新派工单的下机卷的记录
  2993. getSfdcRollList() {
  2994. getSfdcRollByCon(this.searchData).then(({data}) => {
  2995. this.sfdcRollList = data.rows;
  2996. });
  2997. },
  2998. //刷新页签的table数据
  2999. async refreshCurrentTabTable() {
  3000. //设置查询的数据
  3001. this.searchData = JSON.parse(JSON.stringify(this.scheduleData));
  3002. //判断是否按照当前卷来查询
  3003. if (this.scheduleData.currentRollFlag) {
  3004. //设置相关的卷号 判断是否存在卷
  3005. this.searchData.rollNo = this.currentRollOps.rollNo;
  3006. } else {
  3007. this.searchData.rollNo = '';
  3008. }
  3009. //区分不同的页签刷新不同的列表数据
  3010. if (this.activeTable == 'sfdc_time') {
  3011. await this.getSfdcTimeList();
  3012. } else if (this.activeTable == 'sfdc_tool') {
  3013. this.getOrderToolList();
  3014. this.getSfdcToolList();
  3015. } else if (this.activeTable == 'sfdc_material') {
  3016. this.getOrderBomList();
  3017. this.getSfdcMaterialList();
  3018. } else if (this.activeTable == 'sfdc_rollOps') {
  3019. this.getSfdcRollOpsList();
  3020. } else if (this.activeTable == 'sfdc_defect') {
  3021. this.harmful.reportedDate = this.dayjs().format("YYYY-MM-DD 00:00:00")
  3022. this.getSfdcDefectList();
  3023. } else if (this.activeTable == 'sfdc_roll') {
  3024. this.getSfdcRollList();
  3025. }
  3026. },
  3027. init(seqNo, operatorData) {
  3028. this.scheduleData.seqNo = seqNo;
  3029. this.currentRollOps.seqNo = seqNo;
  3030. this.operatorData = operatorData;
  3031. //清空当前的页面列表参数
  3032. this.sfdcTimeList = [];
  3033. this.sfdcToolList = [];
  3034. this.sfdcMaterialList = [];
  3035. this.sfdcRollOpsList = [];
  3036. this.sfdcDefectList = [];
  3037. this.sfdcRollList = [];
  3038. this.harmful.defectCode = ''
  3039. this.harmful.defectDesc = ''
  3040. //设置table页签
  3041. this.activeTable = 'sfdc_material';
  3042. //刷新当前派工单的信息
  3043. this.refreshPageData();
  3044. },
  3045. //刷新页面的数据
  3046. async refreshPageData() {
  3047. await getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => {
  3048. this.scheduleData.seqNo = data.row.seqNo;
  3049. this.scheduleData.orderNo = data.row.orderNo;
  3050. this.scheduleData.itemNo = data.row.itemNo;
  3051. this.scheduleData.resourceId = data.row.resourceId;
  3052. this.scheduleData.partNo = data.row.partNo;
  3053. this.scheduleData.partDesc = data.row.partDesc;
  3054. this.scheduleData.planStartTime = data.row.planStartTime;
  3055. this.scheduleData.planFinishTime = data.row.planFinishTime;
  3056. this.scheduleData.qtyRequiredOriginal = data.row.qtyRequiredOriginal;
  3057. this.scheduleData.scheduledDate = data.row.scheduledDate;
  3058. this.scheduleData.shiftNo = data.row.shiftNo;
  3059. this.scheduleData.preItemDesc = data.row.preItemDesc;
  3060. this.scheduleData.nextItemDesc = data.row.nextItemDesc;
  3061. this.scheduleData.workCenterNo = data.row.workCenterNo;
  3062. this.scheduleData.workCenterDesc = data.row.workCenterDesc;
  3063. this.scheduleData.resourceDesc = data.row.resourceDesc;
  3064. this.scheduleData.preItemNo = data.row.preItemNo;
  3065. //设置弹窗的标题
  3066. this.titleCon = '机台工作台' + ' - ' + data.row.itemDesc + ' '
  3067. + data.row.resourceDesc + ' (' + this.operatorData.operatorName + ')';
  3068. })
  3069. //刷新页面的卷信息
  3070. await this.getCurrentRollOpsBySeqNoFun();
  3071. //设置table页签
  3072. //this.activeTable = 'sfdc_time';
  3073. //刷新当前页签的table的内容
  3074. await this.refreshCurrentTabTable();
  3075. //刷新当前的菜单
  3076. await this.refreshPageButtons();
  3077. },
  3078. //刷新当前页面的菜单
  3079. async refreshPageButtons() {
  3080. //判断是否存在人员
  3081. if (this.operatorData.operatorId == null || this.operatorData.operatorId == '') {
  3082. this.buttonTags.createNewRollFlag = true;
  3083. this.buttonTags.switchRollFlag = true;
  3084. this.buttonTags.separateRollFlag = true;
  3085. this.buttonTags.finishRollFlag = true;
  3086. this.buttonTags.tuningFlag = true;
  3087. this.buttonTags.produceFlag = true;
  3088. this.buttonTags.defectFlag = true;
  3089. this.buttonTags.toolFlag = true;
  3090. this.buttonTags.materialFlag = true;
  3091. this.buttonTags.downTimeFlag = true;
  3092. this.buttonTags.scannerRollFlag = true;
  3093. this.buttonTags.mergeRollFlag = true;
  3094. this.buttonTags.otherFlag = true;
  3095. } else {
  3096. //存在人员既可以合并卷
  3097. this.buttonTags.otherFlag = false;
  3098. this.buttonTags.mergeRollFlag = false;
  3099. this.buttonTags.createNewRollFlag = false;
  3100. //刷新其他的菜单
  3101. await refreshWorkPlatformButtons(this.scheduleData).then(({data}) => {
  3102. if (data.resultMap.createNewRollFlag == 'Y') {
  3103. this.buttonTags.createNewRollFlag = false;
  3104. } else {
  3105. this.buttonTags.createNewRollFlag = true;
  3106. }
  3107. if (data.resultMap.switchRollFlag == 'Y') {
  3108. this.buttonTags.switchRollFlag = false;
  3109. } else {
  3110. this.buttonTags.switchRollFlag = true;
  3111. }
  3112. if (data.resultMap.separateRollFlag == 'Y') {
  3113. this.buttonTags.separateRollFlag = false;
  3114. } else {
  3115. this.buttonTags.separateRollFlag = true;
  3116. }
  3117. if (data.resultMap.finishRollFlag == 'Y') {
  3118. this.buttonTags.finishRollFlag = false;
  3119. } else {
  3120. this.buttonTags.finishRollFlag = true;
  3121. }
  3122. if (data.resultMap.tuningFlag == 'Y') {
  3123. this.buttonTags.tuningFlag = false;
  3124. } else {
  3125. this.buttonTags.tuningFlag = true;
  3126. }
  3127. if (data.resultMap.produceFlag == 'Y') {
  3128. this.buttonTags.produceFlag = false;
  3129. } else {
  3130. this.buttonTags.produceFlag = true;
  3131. }
  3132. if (data.resultMap.defectFlag == 'Y') {
  3133. this.buttonTags.defectFlag = false;
  3134. } else {
  3135. this.buttonTags.defectFlag = true;
  3136. }
  3137. if (data.resultMap.toolFlag == 'Y') {
  3138. this.buttonTags.toolFlag = false;
  3139. } else {
  3140. this.buttonTags.toolFlag = true;
  3141. }
  3142. if (data.resultMap.materialFlag == 'Y') {
  3143. this.buttonTags.materialFlag = false;
  3144. } else {
  3145. this.buttonTags.materialFlag = true;
  3146. }
  3147. if (data.resultMap.downTimeFlag == 'Y') {
  3148. this.buttonTags.downTimeFlag = false;
  3149. } else {
  3150. this.buttonTags.downTimeFlag = true;
  3151. }
  3152. });
  3153. }
  3154. },
  3155. //设置参数
  3156. initOperatorData(operatorData) {
  3157. this.showOperatorFlag = false;
  3158. this.operatorData = JSON.parse(JSON.stringify(operatorData));
  3159. //切换当前账户的信息
  3160. //设置弹窗的标题
  3161. this.titleCon = '机台工作台' + ' - ' + this.scheduleData.workCenterDesc + ' '
  3162. + this.scheduleData.resourceDesc + ' (' + this.operatorData.operatorName + ')';
  3163. //刷新菜单
  3164. },
  3165. /*不初始化操作员的方法*/
  3166. notInitOperatorData() {
  3167. //关闭切换用户的组件
  3168. this.showOperatorFlag = false;
  3169. },
  3170. //切换员工modal
  3171. switchOperatorModal() {
  3172. //首先判断是否选择好派工单
  3173. if (JSON.stringify(this.currentRow) == '{}') {
  3174. this.$message.error('请先选择派工单!');
  3175. return false;
  3176. }
  3177. //打开操作员切换功能
  3178. this.showOperatorFlag = true;
  3179. this.$nextTick(() => {
  3180. this.$refs.comSwitchOperator.init();
  3181. });
  3182. },
  3183. /*提示是否创建新卷*/
  3184. warnCreateNewRollConfirm() {
  3185. //禁用当按钮 操作完成 恢复
  3186. this.buttonTags.createNewRollFlag = true;
  3187. //提示操作
  3188. this.$confirm('确实要创建一个新卷吗?', '提示', {
  3189. confirmButtonText: '确认',
  3190. celButtonText: '取消',
  3191. type: 'warning'
  3192. }).then(() => {
  3193. //执行创建新卷的操作
  3194. this.createNewRollFun();
  3195. });
  3196. },
  3197. //创建新卷的功能
  3198. createNewRollFun() {
  3199. //校验当前的功能是否可用
  3200. this.scheduleData.operatorId = this.operatorData.operatorId;
  3201. checkCreateNewSfdcRoll(this.scheduleData).then(({data}) => {
  3202. if (data.code === 200) {
  3203. //调用创建卷的方法
  3204. this.createNewRollDo();
  3205. } else {
  3206. // 操作完成 恢复
  3207. this.buttonTags.createNewRollFlag = false;
  3208. this.$message.error(data.msg)
  3209. }
  3210. });
  3211. },
  3212. /*切换卷操作*/
  3213. switchRollModal() {
  3214. //1.首先调用菜单判断方式 看看是否可以结束卷
  3215. //checkProduceButton('switchRollFlag');
  3216. //打开切换用户的页面
  3217. this.$nextTick(() => {
  3218. this.showSwitchFlag = true;
  3219. this.$refs.changeSwitchRoll.init(this.scheduleData, this.operatorData)
  3220. });
  3221. },
  3222. /*创建分卷的modal调用*/
  3223. separateRollModal() {
  3224. if (!this.currentRollOps.rollNo) {
  3225. this.$message.warning( '请扫描卷后再进行分卷')
  3226. return;
  3227. }
  3228. if (!this.createRoll.rollQty || !this.createRoll.rollNums) {
  3229. this.$message.warning( '请输入每卷数量和卷数')
  3230. return;
  3231. }
  3232. this.createRoll.orderNo = this.scheduleData.orderNo
  3233. this.createRoll.itemNo = this.scheduleData.itemNo
  3234. this.createRoll.seqNo = this.scheduleData.seqNo
  3235. this.createRoll.rollNo = this.currentRollOps.rollNo
  3236. this.createRoll.operatorId = this.operatorData.operatorId;
  3237. this.createRoll.rollCount = this.operatorData.rollNums;
  3238. this.createRoll.sFQCSlitFlag = 'N'
  3239. otherCheckCreateSplitSfdcRoll(this.createRoll).then(({data}) => {
  3240. //判断是否成功
  3241. if (data.code == 0) {
  3242. // 执行创建分卷的操作
  3243. this.createSeparateRolllOperation();
  3244. }
  3245. if (data.code == 201) {
  3246. //打开异常原因录入的界面
  3247. this.$confirm(data.msg, '提示', {
  3248. confirmButtonText: '确认',
  3249. celButtonText: '取消',
  3250. type: 'warning'
  3251. }).then(() => {
  3252. // 执行创建分卷的操作
  3253. this.createSeparateRolllOperation();
  3254. });
  3255. }
  3256. if (data.code == 400) {
  3257. this.$message(data.msg);
  3258. }
  3259. });
  3260. },
  3261. /*执行创建分卷的操作*/
  3262. createSeparateRolllOperation() {
  3263. //处理信息
  3264. workbenchCreateslittingrollRepackAction(this.createRoll).then(({data}) => {
  3265. //判断操作是否成功
  3266. if (data.code == 500) {
  3267. this.$message.error(data.msg);
  3268. } else if (data.code == 200) {
  3269. this.$message.success(data.msg)
  3270. this.createRoll.rollNums= ''
  3271. this.createRoll.rollQty= ''
  3272. //刷新报工的页面
  3273. this.getSfdcRollList()
  3274. }else {
  3275. this.$message.warning(data.msg)
  3276. }
  3277. })
  3278. },
  3279. /*结束卷操作*/
  3280. finishRollModal() {
  3281. //1.首先调用菜单判断方式 看看是否可以结束卷
  3282. //checkProduceButton('finishRollFlag');
  3283. //打开结束卷的页面
  3284. this.$nextTick(() => {
  3285. this.showFinishFlag = true;
  3286. this.$refs.changeFinishRoll.init(this.scheduleData, this.operatorData)
  3287. });
  3288. },
  3289. /*产量报告的卷操作*/
  3290. finishPartRollModal() {
  3291. //1.首先调用菜单判断方式 看看是否可以结束卷
  3292. //checkProduceButton('finishRollFlag');
  3293. //打开结束卷的页面
  3294. this.$nextTick(() => {
  3295. this.showFinishPartFlag = true;
  3296. this.$refs.comFinishPartRoll.init(this.scheduleData, this.operatorData)
  3297. });
  3298. },
  3299. /*合并卷modal*/
  3300. mergeRollModal() {
  3301. //1.首先调用菜单判断方式 看看是否可以结束卷
  3302. //checkProduceButton('mergeRollFlag');
  3303. //打开合并卷的页面
  3304. this.$nextTick(() => {
  3305. this.showMergeFlag = true;
  3306. this.$refs.comMergeRoll.init(this.scheduleData, this.operatorData)
  3307. });
  3308. },
  3309. /*开始调机modal*/
  3310. startTuningModal() {
  3311. //1.首先调用菜单判断方式 看看是否可以结束卷
  3312. //checkProduceButton('startTuningFlag');
  3313. //打开开始调机的页面
  3314. this.$nextTick(() => {
  3315. this.showTuningFlag = true;
  3316. this.$refs.comStartTuning.init(this.scheduleData, this.operatorData)
  3317. });
  3318. },
  3319. /*开始调机modal*/
  3320. startProduceModal() {
  3321. //1.首先调用菜单判断方式 看看是否可以结束卷
  3322. //checkProduceButton('startProduceFlag');
  3323. //打开开始生产的页面
  3324. this.$nextTick(() => {
  3325. this.showProduceFlag = true;
  3326. this.$refs.comStartProduce.init(this.scheduleData, this.operatorData)
  3327. });
  3328. },
  3329. /*报告不良modal*/
  3330. defectRollModal() {
  3331. //1.首先调用菜单判断方式 看看是否可以结束卷
  3332. //checkProduceButton('defectRollFlag');
  3333. //打开不良卷的页面
  3334. this.$nextTick(() => {
  3335. this.showDefectFlag = true;
  3336. this.$refs.comDefectRoll.init(this.scheduleData, this.operatorData)
  3337. });
  3338. },
  3339. /*生产过程的工具组件*/
  3340. produceToolModal() {
  3341. //1.首先调用菜单判断方式 打开生产过程的工具的页面
  3342. //checkProduceButton('produceToolFlag');
  3343. //打开生产过程的工具的页面
  3344. this.$nextTick(() => {
  3345. this.showToolFlag = true;
  3346. this.$refs.comProduceTool.init(this.scheduleData, this.operatorData, 0)
  3347. });
  3348. },
  3349. /*生产过程的工具组件*/
  3350. produceMaterialModal() {
  3351. //1.首先调用菜单判断方式 打开生产过程的材料的页面
  3352. //checkProduceButton('produceMaterialFlag');
  3353. //打开生产过程的工具的页面
  3354. this.$nextTick(() => {
  3355. this.showMaterialFlag = true;
  3356. this.$refs.comProduceMaterial.init(this.scheduleData, this.operatorData)
  3357. });
  3358. },
  3359. /*生产过程的停机组件*/
  3360. produceDownModal() {
  3361. //1.首先调用菜单判断方式 打开生产过程的停机的页面
  3362. //checkProduceButton('produceDownFlag');
  3363. //打开生产过程的工具的页面
  3364. this.$nextTick(() => {
  3365. this.showDownFlag = true;
  3366. this.$refs.comProduceDown.init(this.scheduleData, this.operatorData)
  3367. });
  3368. },
  3369. /*替换工具的组件*/
  3370. replaceToolModal(toolRow) {
  3371. //1.首先调用菜单判断方式 打开生产过程的停机的页面
  3372. //checkProduceButton('produceDownFlag');
  3373. //打开生产过程的工具的页面
  3374. this.$nextTick(() => {
  3375. this.showReplaceToolFlag = true;
  3376. this.$refs.comReplaceTool.init(this.scheduleData, this.operatorData, toolRow)
  3377. });
  3378. },
  3379. /*替换工具的组件*/
  3380. replaceMaterialModal(materialRow) {
  3381. //1.首先调用菜单判断方式 打开生产过程的停机的页面
  3382. //checkProduceButton('produceDownFlag');
  3383. //打开生产过程的工具的页面
  3384. this.$nextTick(() => {
  3385. this.showReplaceMaterialFlag = true;
  3386. this.$refs.comReplaceMaterial.init(this.scheduleData, this.operatorData, materialRow)
  3387. });
  3388. },
  3389. /*材料下料的modal*/
  3390. cuttingMaterialModal(materialRow) {
  3391. this.$nextTick(() => {
  3392. this.showCuttingMaterialFlag = true;
  3393. this.$refs.comCuttingMaterial.init(this.scheduleData, this.operatorData, materialRow);
  3394. });
  3395. },
  3396. /*材料结束生产的modal*/
  3397. finishMaterialModal(materialRow) {
  3398. this.$nextTick(() => {
  3399. this.showMaterialFlag = true;
  3400. this.$refs.comProduceMaterial.init(this.scheduleData, this.operatorData)
  3401. });
  3402. },
  3403. //打开结束派工单的modal
  3404. showFinishScheduleModal() {
  3405. //打开操作员切换功能
  3406. this.showFinishScheduleFlag = true;
  3407. this.$nextTick(() => {
  3408. // 第三个换包装结单参数
  3409. this.$refs.comFinishSchedule.init(this.scheduleData, this.operatorData,4);
  3410. });
  3411. },
  3412. //结束派工单后刷新页面
  3413. processFinishScheduleOperation() {
  3414. //刷新当前页面的数据
  3415. this.refreshPageTables();
  3416. },
  3417. //创建新卷的方法
  3418. createNewRollDo() {
  3419. createNewRoll(this.scheduleData).then(({data}) => {
  3420. //判断是否成功
  3421. if (data.success) {
  3422. this.$message.success(data.msg);
  3423. //刷新当的按钮
  3424. this.refreshPageData();
  3425. } else {
  3426. //打开当前创建新卷的按钮
  3427. this.buttonTags.createNewRollFlag = false;
  3428. this.$message.error(data.msg);
  3429. }
  3430. });
  3431. },
  3432. /*提醒是否重新打开的提示*/
  3433. warnReopenSfdcRollsConfirm(sfdcRollRow) {
  3434. this.$confirm('确实要重新打开卷' + sfdcRollRow.rollNo + '吗?', '提示', {
  3435. confirmButtonText: '确认',
  3436. celButtonText: '取消',
  3437. type: 'warning'
  3438. }).then(() => {
  3439. //执行重新打开sfdcRolls记录的操作
  3440. this.reopenSfdcRollsOperation(sfdcRollRow);
  3441. });
  3442. },
  3443. /*执行重新sfdcRolls表的记录*/
  3444. reopenSfdcRollsOperation(sfdcRollRow) {
  3445. let sfdcRoll = {
  3446. 'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo,
  3447. 'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo,
  3448. 'rollNo': sfdcRollRow.rollNo, 'operatorId': this.scheduleData.operatorId
  3449. };
  3450. reopenSfdcRolls(sfdcRoll).then(({data}) => {
  3451. //判断是否成功
  3452. if (data.code == 500) {
  3453. this.$message.error(data.msg);
  3454. } else {
  3455. this.$message.info(data.resultMap.resultMsg);
  3456. //刷新报工的页面
  3457. this.refreshPageData();
  3458. }
  3459. });
  3460. },
  3461. /*提醒是否删除的提示*/
  3462. warnDeleteSfdcRollsConfirm(sfdcRollRow) {
  3463. this.$confirm('确实要删除该卷吗?', '提示', {
  3464. confirmButtonText: '确认',
  3465. celButtonText: '取消',
  3466. type: 'warning'
  3467. }).then(() => {
  3468. //执行重新打开sfdcRolls记录的操作
  3469. this.deleteSfdcRollsOperation(sfdcRollRow);
  3470. });
  3471. },
  3472. /*执行删除sfdcRolls的数据功能*/
  3473. deleteSfdcRollsOperation(sfdcRollRow) {
  3474. let sfdcRoll = {
  3475. 'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo,
  3476. 'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo,
  3477. 'rollNo': sfdcRollRow.rollNo, 'oriRollNo': sfdcRollRow.oriRollNo, 'operatorId': this.scheduleData.operatorId
  3478. };
  3479. //执行删除卷的操作
  3480. deleteSfdcRolls(sfdcRoll).then(({data}) => {
  3481. //判断是否成功
  3482. if (data.code == 500) {
  3483. this.$message.error(data.msg);
  3484. } else {
  3485. this.$message.info(data.resultMap.resultMsg);
  3486. //刷新报工的页面
  3487. this.refreshPageData();
  3488. }
  3489. });
  3490. },
  3491. /*结束使用 工具确认功能*/
  3492. warnFinishToolConfirm(toolRow) {
  3493. this.$confirm('确实要结束该工具的使用吗?', '提示', {
  3494. confirmButtonText: '确认',
  3495. celButtonText: '取消',
  3496. type: 'warning'
  3497. }).then(() => {
  3498. //执行结束使用工具的的操作
  3499. this.finishToolOperation(toolRow);
  3500. });
  3501. },
  3502. /*执行删除sfdcRolls的数据功能*/
  3503. finishToolOperation(toolRow) {
  3504. let toolData = {
  3505. 'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo,
  3506. 'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo,
  3507. 'histSeqNo': toolRow.histSeqNo, 'toolInstanceId': toolRow.toolInstanceId
  3508. };
  3509. //执行删除卷的操作
  3510. processFinishTool(toolData).then(({data}) => {
  3511. //判断是否成功
  3512. if (data.code == 500) {
  3513. this.$message.error(data.msg);
  3514. } else {
  3515. this.$message.info(data.msg);
  3516. //刷新报工的页面
  3517. this.refreshPageData();
  3518. }
  3519. });
  3520. },
  3521. /*结束使用 材料确认功能*/
  3522. warnFinishMaterialWithNoRemainderConfirm(materialRow) {
  3523. this.$confirm('确实要结束该工具的使用吗?', '提示', {
  3524. confirmButtonText: '确认',
  3525. celButtonText: '取消',
  3526. type: 'warning'
  3527. }).then(() => {
  3528. //执行结束使用材料的的操作
  3529. this.finishMaterialWithNoRemainderOperation(materialRow);
  3530. });
  3531. },
  3532. /*执行结束使用 材料的数据功能*/
  3533. finishMaterialWithNoRemainderOperation(materialRow) {
  3534. let materialData = {
  3535. 'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo,
  3536. 'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo,
  3537. 'histSeqNo': materialRow.histSeqNo, 'rollNo': materialRow.rollNo
  3538. };
  3539. //执行结束使用材料卷且无剩余的操作
  3540. finishMaterialWithNoRemainder(materialData).then(({data}) => {
  3541. //判断是否成功
  3542. if (data.code == 500) {
  3543. this.$message.error(data.msg);
  3544. } else {
  3545. this.$message.info(data.msg);
  3546. //刷新报工的页面
  3547. this.refreshPageData();
  3548. }
  3549. });
  3550. },
  3551. closeDialog(){
  3552. Object.assign(this.$data, this.$options.data.call(this));
  3553. }
  3554. },
  3555. created() {
  3556. // this.factoryList()
  3557. // this.getLanguageList()
  3558. }
  3559. }
  3560. </script>
  3561. <style scoped lang="scss">
  3562. /deep/ .customer-tab .el-tabs__content {
  3563. padding: 0px !important;
  3564. }
  3565. /*当前按钮的通用样式*/
  3566. .customer-css .customer-bun-mid {
  3567. width: 60px;
  3568. text-align: center;
  3569. }
  3570. .customer-css .customer-bun-min {
  3571. width: 50px;
  3572. text-align: center;
  3573. }
  3574. .customer-css .customer-bun-max {
  3575. width: 80px;
  3576. text-align: center;
  3577. }
  3578. /*当前按钮的通用样式*/
  3579. .customer-css .el-button--medium {
  3580. padding: 5px 5px;
  3581. }
  3582. .customer-css .customer-roll-css span {
  3583. margin-left: 15px;
  3584. font-size: 16px;
  3585. color: #387877;
  3586. }
  3587. /*定制组件的样式*/
  3588. .customer-css /deep/ .el-dialog {
  3589. top: 6vh !important;
  3590. margin-top: 0px !important;
  3591. margin-bottom: 10px;
  3592. }
  3593. /*自定义当前el-input的样式 */
  3594. .customer-item .el-input {
  3595. margin-right: 25px;
  3596. }
  3597. </style>