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.

4234 lines
136 KiB

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