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.

1260 lines
45 KiB

4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
  1. <template>
  2. <div class="customer-css">
  3. <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
  4. width="920px" style="height: 680px;" class="customer-dialog">
  5. <el-form :inline="true" label-position="top" style="height: 495px;"
  6. label-width="80px">
  7. <!-- 菜单信息 -->
  8. <el-row>
  9. <el-col :span="24">
  10. <el-form-item :label=labels.currentTime>
  11. <el-date-picker disabled="disabled" style="width: 145px;"
  12. v-model="pageData.reportedTime"
  13. format="yyyy-MM-dd HH:mm:ss"
  14. value-format="yyyy-MM-dd HH:mm:ss"
  15. placeholder="">
  16. </el-date-picker>
  17. </el-form-item>
  18. <el-form-item class="customer-button">
  19. <el-button type="primary" @click="refreshPageData" style="margin-left: 10px; margin-bottom: 5px;">
  20. {{buttons.refreshButton}}</el-button>
  21. </el-form-item>
  22. <el-form-item class="customer-button">
  23. <el-button type="primary" @click="finishRollBun" style="margin-left: 10px; margin-bottom: 5px;">
  24. {{buttons.saveButton}}</el-button>
  25. </el-form-item>
  26. <el-form-item class="customer-button">
  27. <el-button type="primary" @click="closeDialog" style="margin-left: 10px; margin-bottom: 5px;">
  28. {{buttons.closeButton}}</el-button>
  29. </el-form-item>
  30. <el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">对语言设置</el-button>
  31. </el-col>
  32. </el-row>
  33. <!-- 卷数量统计 班次信息 -->
  34. <el-form>
  35. <fieldset class="customer-fieldset" style="width: 495px;">
  36. <legend>{{labels.rollQtySum}}</legend>
  37. <el-form-item class="customer-item">
  38. <el-checkbox disabled="disabled" style="margin-top: 15px;" true-label="Y" false-label="N"
  39. v-model="pageData.reportedFlag">{{labels.whetherReport}}</el-checkbox>
  40. </el-form-item>
  41. <el-form-item class="customer-item" :label=labels.approvedQty style="margin-top: -10px;">
  42. <el-input v-if="this.preItemNo <= 0" v-model="pageData.approvedQty" type="number" @blur="checkValidApprovedQty"
  43. style="width: 80px;" ></el-input>
  44. <el-input v-if="this.preItemNo > 0" disabled class="customer-input-color-red"
  45. v-model="pageData.approvedQty" type="number" style="width: 80px;" ></el-input>
  46. </el-form-item>
  47. <el-form-item class="customer-item" :label=labels.defectedQty style="margin-top: -10px;">
  48. <el-input v-model="pageData.defectedQty" disabled="disabled" style="width: 80px;"></el-input>
  49. </el-form-item>
  50. <el-form-item class="customer-item" :label=labels.totalQty style="margin-top: -10px;">
  51. <el-input v-model="pageData.totalQty" disabled="disabled" style="width: 80px;"></el-input>
  52. </el-form-item>
  53. <el-form-item class="customer-item" :label=labels.otherRollQty style="margin-top: -10px;">
  54. <el-input v-model="pageData.otherRollQty" disabled="disabled" style="width: 80px;"></el-input>
  55. </el-form-item>
  56. </fieldset>
  57. <!-- 操作员信息和班次信息 -->
  58. <fieldset class="customer-fieldset"
  59. style="margin-left: 500px; margin-top: -70px; ;width: 400px;">
  60. <legend>{{labels.operatorScheduleInfo}}</legend>
  61. <el-form-item class="customer-item" :label=labels.operatorId>
  62. <el-input v-model="operatorData.operatorId" disabled="disabled" style="width: 80px;" ></el-input>
  63. </el-form-item>
  64. <el-form-item class="customer-item" :label=labels.operatorName>
  65. <el-input v-model="operatorData.operatorName" disabled="disabled" style="width: 80px;"></el-input>
  66. </el-form-item>
  67. <el-form-item class="customer-item" :label=labels.scheduledDate>
  68. <el-input v-model="pageData.scheduledDate" disabled="disabled" style="width: 80px;" ></el-input>
  69. </el-form-item>
  70. <el-form-item class="customer-item" :label=labels.shiftNo>
  71. <el-input v-model="pageData.shiftDesc" disabled="disabled" style="width: 80px;"></el-input>
  72. </el-form-item>
  73. <el-button type="info" :disabled="buttonTags.selectShiftFlag" plain @click="selectSchduleShiftModal"
  74. style="margin-left: -10px; margin-top: 10px; height: 20px; padding: 3px 3px;">
  75. <icon-svg name="ellipsis" style="height: 10px; width: 10px;" ></icon-svg>
  76. </el-button>
  77. </fieldset>
  78. </el-form>
  79. <!-- 卷生产时间统计产量报告 -->
  80. <el-form style="margin-top: 5px;">
  81. <fieldset class="customer-fieldset" style="width: 320px; margin-top: -10px; ">
  82. <legend>{{labels.rollTimeSum}}</legend>
  83. <!-- 调机时间 -->
  84. <el-row style="margin-top: -10px;">
  85. <el-col :span="24">
  86. <el-form-item :label=labels.totalTuningTime>
  87. <el-input v-model="pageData.totalSetupTime" disabled="disabled" style="width: 80px;" ></el-input>
  88. </el-form-item>
  89. <el-form-item :label=labels.totalTuningDownTime>
  90. <el-input v-model="pageData.totalDowntimeTimeSetup" disabled="disabled" style="width: 100px;"></el-input>
  91. </el-form-item>
  92. <el-form-item :label=labels.totalPureTuningTime >
  93. <el-input v-model="pageData.totalPureSetupTime" disabled="disabled" style="width: 80px;"></el-input>
  94. </el-form-item>
  95. </el-col>
  96. </el-row>
  97. <!-- 生产时间 -->
  98. <el-row>
  99. <el-col :span="24">
  100. <el-form-item :label=labels.totalProdTime>
  101. <el-input v-model="pageData.totalProdTime" disabled="disabled" style="width: 80px;"></el-input>
  102. </el-form-item>
  103. <el-form-item :label=labels.totalProdDownTime>
  104. <el-input v-model="pageData.totalDowntimeTimeProd" disabled="disabled" style="width: 100px;"></el-input>
  105. </el-form-item>
  106. <el-form-item :label=labels.totalPureProdTime >
  107. <el-input v-model="pageData.totalPureProdTime" disabled="disabled" style="width: 80px;"></el-input>
  108. </el-form-item>
  109. </el-col>
  110. </el-row>
  111. <!-- 制造时间 -->
  112. <el-row>
  113. <el-col :span="24">
  114. <el-form-item :label=labels.totalManufTime>
  115. <el-input v-model="pageData.totalManufactureTime" disabled="disabled" style="width: 80px;"></el-input>
  116. </el-form-item>
  117. <el-form-item :label=labels.totalManufDownTime>
  118. <el-input v-model="pageData.totalManufactureDowntimeTime" disabled="disabled" style="width: 100px;"></el-input>
  119. </el-form-item>
  120. <el-form-item :label=labels.totalPureManufTime >
  121. <el-input v-model="pageData.totalPureManufactureTime" disabled="disabled" style="width: 80px;"></el-input>
  122. </el-form-item>
  123. </el-col>
  124. </el-row>
  125. </fieldset>
  126. <!-- 产量报告 -->
  127. <fieldset class="customer-fieldset"
  128. style="margin-left: 325px; margin-top: -144px; width: 575px;">
  129. <legend>{{ labels.produceReport }}</legend>
  130. <!-- 开工时间 -->
  131. <el-row>
  132. <el-col :span="24">
  133. <el-form-item :label=labels.startTime>
  134. <el-input v-model="pageData.eventTime" disabled="disabled" style="width: 130px;"></el-input>
  135. </el-form-item>
  136. <el-form-item :label=labels.finishTime>
  137. <el-input v-model="pageData.tillTime" disabled="disabled" style="width: 130px;"></el-input>
  138. </el-form-item>
  139. <el-form-item :label=labels.prodTime >
  140. <el-input v-model="pageData.sfdcProdTime" disabled="disabled" style="width: 80px;"></el-input>
  141. </el-form-item>
  142. <el-form-item :label=labels.tuningTime >
  143. <el-input v-model="pageData.sfdcSetupTime" disabled="disabled" style="width: 80px;"></el-input>
  144. </el-form-item>
  145. <el-form-item :label=labels.manufTime>
  146. <el-input v-model="pageData.sfdcManufactureTime" disabled="disabled" style="width: 80px;"></el-input>
  147. </el-form-item>
  148. </el-col>
  149. </el-row>
  150. <!-- 合格数量 -->
  151. <el-row>
  152. <el-col :span="24">
  153. <el-form-item :label=labels.sfdcApprovedQty>
  154. <el-input v-model="pageData.sfdcApprovedQty" disabled="disabled" style="width: 130px;"></el-input>
  155. </el-form-item>
  156. <el-form-item :label=labels.sfdcDefectedQty>
  157. <el-input v-model="pageData.defectedQty" disabled="disabled" style="width: 130px;"></el-input>
  158. </el-form-item>
  159. <el-form-item :label=labels.sfdcReportedQty >
  160. <el-input v-model="pageData.sfdcReportedQty" disabled="disabled" style="width: 80px;"></el-input>
  161. </el-form-item>
  162. <el-form-item :label=labels.tuningDown>
  163. <el-input v-model="pageData.sfdcSetupDownTime" style="width: 80px;"></el-input>
  164. </el-form-item>
  165. <el-form-item :label=labels.manufTuning >
  166. <el-input v-model="pageData.sfdcProdSetupTime" style="width: 80px;"></el-input>
  167. </el-form-item>
  168. </el-col>
  169. </el-row>
  170. <!-- 备注 -->
  171. <el-row>
  172. <el-col :span="24">
  173. <el-form-item :label=labels.remark>
  174. <el-input v-model="pageData.remark" disabled="disabled" style="width: 430px;"></el-input>
  175. </el-form-item>
  176. <el-form-item :label=labels.downTime>
  177. <el-input v-model="pageData.sfdcDownTime" style="width: 80px;"></el-input>
  178. </el-form-item>
  179. </el-col>
  180. </el-row>
  181. </fieldset>
  182. </el-form>
  183. <!-- 主材料 -->
  184. <el-form>
  185. <fieldset class="customer-fieldset" style="width: 830px;">
  186. <legend>{{labels.primaryMaterial}}</legend>
  187. <el-table
  188. height="180"
  189. :data="sfdcMaterialList"
  190. :cell-style="customerCellStyle" :cell-class-name="customerCellClassName"
  191. border
  192. v-loading="dataListLoading"
  193. style="width: 100%; margin-top: -5px;">
  194. <el-table-column
  195. v-for="(item,index) in columnMaterialArray" :key="index"
  196. :sortable="item.columnSortable"
  197. :prop="item.columnProp"
  198. :header-align="item.headerAlign"
  199. :show-overflow-tooltip="item.showOverflowTooltip"
  200. :align="item.align"
  201. :fixed="item.fixed==''?false:item.fixed"
  202. :width="item.columnWidth"
  203. :label="item.columnLabel">
  204. <template slot-scope="scope">
  205. <el-input type="number" class="table-input" align="right" @blur="checkValidQty(scope.row)"
  206. v-if="item.columnHidden" v-model="scope.row[item.columnProp]"></el-input>
  207. <span v-else>{{scope.row[item.columnProp]}}</span>
  208. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  209. style="width: 100px; height: 80px"/></span>
  210. </template>
  211. </el-table-column>
  212. </el-table>
  213. </fieldset>
  214. </el-form>
  215. </el-form>
  216. </el-dialog>
  217. <!-- 异常原因录入的组件 -->
  218. <comExceptionReason ref="comExceptionReason" :close-on-click-modal="false"
  219. :visible.sync="showExceptionFlag"
  220. @initExceptionReason = "initExceptionReason">
  221. </comExceptionReason>
  222. <!-- 班次选择组件 -->
  223. <comSelectShift ref="comSelectShift" :close-on-click-modal="false"
  224. :visible.sync="showShiftFlag"
  225. @initScheduleShift = "initScheduleShift">
  226. </comSelectShift>
  227. </div>
  228. </template>
  229. <script>
  230. /*添加组件*/
  231. import comExceptionReason from "./com_exception_reason";//异常远远
  232. import comSelectShift from "./com_select_shift";//班次选择的组件
  233. import {
  234. getCurrentRollReportedQty,
  235. countSfdcTimeQty,
  236. getScheduleShiftData,
  237. getSfdcTimeMaxAndMinTime,
  238. getSfdcTimeData,
  239. getSfdcReportedData,
  240. getSfdcMaterialByRollNo,
  241. checkFinishPartRollWithNoFqc,
  242. finishPartRollWithNoFqc
  243. } from '@/api/yieldReport/com_finish_part_roll.js';
  244. import {
  245. searchSysLanguagePackList,
  246. searchSysLanguageParam,
  247. searchFunctionButtonList,
  248. saveButtonList,
  249. searchSysLanguage,
  250. searchLanguageListByLanguageCode,
  251. saveSysLanguageOne,
  252. searchPageLanguageData,
  253. removerLanguage,
  254. saveSysLanguageList
  255. } from "@/api/sysLanguage.js";
  256. var functionId = 'C10000015';
  257. export default {
  258. data() {
  259. return {
  260. titleCon: '产量报告',
  261. showDefault: false,
  262. showExceptionFlag: false,
  263. showShiftFlag: false,
  264. preItemNo: 0,
  265. sfdcTimeList: [],
  266. scheduleData: {
  267. site: this.$store.state.user.site,
  268. username: this.$store.state.user.name,
  269. seqNo: '',
  270. orderNo: '',
  271. itemNo: 0,
  272. partNo: '',
  273. workCenterNo: '',
  274. workCenterDesc: '',
  275. resourceDesc: '',
  276. rollNo: '',
  277. partDesc: '',
  278. planStartTime: '',
  279. planFinishTime: '',
  280. qtyRequiredOriginal: 0,
  281. scheduledDate: '',
  282. shiftNo: '',
  283. preItemDesc: '',
  284. nextItemDesc: '',
  285. nextItemNo: 0,
  286. operatorId: '',
  287. functionName: '',
  288. currentRollFlag: false
  289. },
  290. pageData: {
  291. site: this.$store.state.user.site,
  292. username: this.$store.state.user.name,
  293. orderNo: '',
  294. itemNo: 0,
  295. seqNo: '',
  296. rollNo: '',
  297. resourceId: '',
  298. scheduledDate: '',
  299. shiftNo: '',
  300. reportedTime: this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'),
  301. reportedFlag: 'N',
  302. approvedQty: 0,
  303. defectedQty: 0,
  304. totalQty: 0,
  305. editNewRollQty: 0,
  306. otherRollQty: '',
  307. shiftDesc: '',
  308. totalSetupTime: 0,
  309. totalDowntimeTimeSetup: 0,
  310. totalPureSetupTime: 0,
  311. totalProdTime: 0,
  312. totalDowntimeTimeProd: 0,
  313. totalPureProdTime: 0,
  314. totalManufactureTime: 0,
  315. totalManufactureDowntimeTime: 0,
  316. totalPureManufactureTime: 0,
  317. sfdcProdTime: 0,//生产时间
  318. sfdcSetupTime: 0,//调机时间
  319. sfdcManufactureTime: 0,//制造时间
  320. sfdcSetupDownTime: 0,//调机停机时间
  321. sfdcProdSetupTime: 0,//生产调机时间
  322. sfdcDownTime: 0,//停机时间
  323. eventTime: '',
  324. tillTime: '',
  325. sfdcApprovedQty: 0,
  326. sfdcDefectedQty: 0,
  327. sfdcReportedQty: 0,
  328. remark: '',
  329. exceptionFlag: 'N',
  330. exceptionReason: '',
  331. createNewRollFlag: 'N',
  332. },
  333. operatorData: {
  334. site: this.$store.state.user.site,
  335. username: this.$store.state.user.name,
  336. operatorId: '',
  337. operatorName: '',
  338. status: '',
  339. seqNo: '',
  340. showFlag: false
  341. },
  342. sfdcMaterialList: [],
  343. columnMaterialArray: [
  344. {
  345. userId: this.$store.state.user.name,
  346. functionId: 5303,
  347. serialNumber: '5303MaterialReportDate',
  348. tableId: "5303Material",
  349. tableName: "派工单材料",
  350. columnProp: "reportDate",
  351. headerAlign: "center",
  352. align: "center",
  353. columnLabel: "报告时间",
  354. columnWidth: 125,
  355. columnHidden: false,
  356. columnImage: false,
  357. columnSortable: false,
  358. sortLv: 0,
  359. status: true,
  360. fixed: false
  361. },
  362. {
  363. userId: this.$store.state.user.name,
  364. functionId: 5303,
  365. serialNumber: '5303MaterialReportedBy',
  366. tableId: "5303Material",
  367. tableName: "派工单材料",
  368. columnProp: "reportedBy",
  369. headerAlign: "center",
  370. align: "center",
  371. columnLabel: "报告人",
  372. columnWidth: 80,
  373. columnHidden: false,
  374. columnImage: false,
  375. columnSortable: false,
  376. sortLv: 0,
  377. status: true,
  378. fixed: false
  379. },
  380. {
  381. userId: this.$store.state.user.name,
  382. functionId: 5303,
  383. serialNumber: '5303MaterialRmRollNo',
  384. tableId: "5303Material",
  385. tableName: "派工单材料",
  386. columnProp: "rmRollNo",
  387. headerAlign: "center",
  388. align: "center",
  389. columnLabel: "材料卷号",
  390. columnWidth: 100,
  391. columnHidden: false,
  392. columnImage: false,
  393. columnSortable: false,
  394. sortLv: 0,
  395. status: true,
  396. fixed: false
  397. },
  398. {
  399. userId: this.$store.state.user.name,
  400. functionId: 5303,
  401. serialNumber: '5303MaterialPartNo',
  402. tableId: "5303Material",
  403. tableName: "派工单材料",
  404. columnProp: "partNo",
  405. headerAlign: "center",
  406. align: "center",
  407. columnLabel: "零部件编码",
  408. columnWidth: 100,
  409. columnHidden: false,
  410. columnImage: false,
  411. columnSortable: false,
  412. sortLv: 0,
  413. status: true,
  414. fixed: false
  415. },
  416. {
  417. userId: this.$store.state.user.name,
  418. functionId: 5303,
  419. serialNumber: '5303MaterialStartDate',
  420. tableId: "5303Material",
  421. tableName: "派工单材料",
  422. columnProp: "startDate",
  423. headerAlign: "center",
  424. align: "center",
  425. columnLabel: "开始使用时间",
  426. columnWidth: 125,
  427. columnHidden: false,
  428. columnImage: false,
  429. columnSortable: false,
  430. sortLv: 0,
  431. status: true,
  432. fixed: false
  433. },
  434. {
  435. userId: this.$store.state.user.name,
  436. functionId: 5303,
  437. serialNumber: '5303MaterialTransQty',
  438. tableId: "5303Material",
  439. tableName: "派工单材料",
  440. columnProp: "transQty",
  441. headerAlign: "center",
  442. align: "center",
  443. columnLabel: "数量",
  444. columnWidth: 80,
  445. columnHidden: false,
  446. columnImage: false,
  447. columnSortable: false,
  448. sortLv: 0,
  449. status: true,
  450. fixed: false
  451. },
  452. {
  453. userId: this.$store.state.user.name,
  454. functionId: 5303,
  455. serialNumber: '5303MaterialNetIssueQty',
  456. tableId: "5303Material",
  457. tableName: "派工单材料",
  458. columnProp: "netIssueQty",
  459. headerAlign: "center",
  460. align: "center",
  461. columnLabel: "本卷耗用数量",
  462. columnWidth: 100,
  463. columnHidden: true,
  464. columnImage: false,
  465. columnSortable: false,
  466. sortLv: 0,
  467. status: true,
  468. fixed: false
  469. },
  470. {
  471. userId: this.$store.state.user.name,
  472. functionId: 5303,
  473. serialNumber: '5303MaterialKeyRMFlag',
  474. tableId: "5303Material",
  475. tableName: "派工单材料",
  476. columnProp: "keyRMFlag",
  477. headerAlign: "center",
  478. align: "center",
  479. columnLabel: "是否主材",
  480. columnWidth: 80,
  481. columnHidden: false,
  482. columnImage: false,
  483. columnSortable: false,
  484. sortLv: 0,
  485. status: true,
  486. fixed: false
  487. },
  488. {
  489. userId: this.$store.state.user.name,
  490. functionId: 5303,
  491. serialNumber: '5303MaterialSAPBOMItemNo',
  492. tableId: "5303Material",
  493. tableName: "派工单材料",
  494. columnProp: "sAPBOMItemNo",
  495. headerAlign: "center",
  496. align: "center",
  497. columnLabel: "SAP BOM序号",
  498. columnWidth: 100,
  499. columnHidden: false,
  500. columnImage: false,
  501. columnSortable: false,
  502. sortLv: 0,
  503. status: true,
  504. fixed: false
  505. }
  506. ],
  507. dataListLoading: false,
  508. buttonTags:{
  509. selectShiftFlag: true,
  510. },
  511. buttons: {
  512. refreshButton: '刷新',
  513. saveButton: '保存',
  514. closeButton: '关闭',
  515. },
  516. buttonList: [
  517. {
  518. functionId: functionId,
  519. languageValue: '刷新',
  520. objectId: 'refreshButton',
  521. objectType: 'button',
  522. tableId: '*'
  523. }, {
  524. functionId: functionId,
  525. languageValue: '保存',
  526. objectId: 'saveButton',
  527. objectType: 'button',
  528. tableId: '*'
  529. }, {
  530. functionId: functionId,
  531. languageValue: '关闭',
  532. objectId: 'closeButton',
  533. objectType: 'button',
  534. tableId: '*'
  535. },
  536. ],
  537. queryButton: {
  538. functionId: functionId,
  539. table_id: '*',
  540. languageCode: this.$i18n.locale,
  541. objectType: 'button'
  542. },
  543. labels: {
  544. titleCon: '结束卷操作 ',
  545. seqNoName: '派工单号:',
  546. currentTime: '当前时间',
  547. rollQtySum: '卷数量统计',
  548. whetherReport: '是否报告产量',
  549. approvedQty: '总良品数量',
  550. defectedQty: '总不良品数量',
  551. totalQty: '总数量',
  552. otherRollQty: '其他卷数量',
  553. operatorScheduleInfo: '人员排程班次信息',
  554. operatorId: '操作员',
  555. operatorName: '操作员姓名',
  556. scheduledDate: '排产日期',
  557. shiftNo: '班次',
  558. rollTimeSum: '卷生产时间统计',
  559. totalTuningTime: '总调机时间',
  560. totalTuningDownTime: '总调机过程停机时间',
  561. totalPureTuningTime: '净调机时间',
  562. totalProdTime: '总生产时间',
  563. totalProdDownTime: '总生产过程停机时间',
  564. totalPureProdTime: '净生产时间',
  565. totalManufTime: '总制造时间',
  566. totalManufDownTime: '总制造过程停机时间 ',
  567. totalPureManufTime: '净制造时间:',
  568. produceReport: '产量报告',
  569. startTime: '开工时间',
  570. finishTime: '完工时间',
  571. prodTime: '生产时间',
  572. tuningTime: '调机时间',
  573. manufTime: '制造时间',
  574. sfdcApprovedQty: '合格数量',
  575. sfdcDefectedQty: '不合格数量',
  576. sfdcReportedQty: '报告数量',
  577. tuningDown: '调机停机',
  578. manufTuning: '生产调机',
  579. remark: '备注',
  580. downTime: '停机时间',
  581. primaryMaterial: '主材料 ',
  582. },
  583. labelsList: [
  584. {
  585. functionId: functionId,
  586. languageValue: '结束卷操作 ',
  587. objectId: 'titleCon',
  588. objectType: 'label',
  589. tableId: '*'
  590. }, {
  591. functionId: functionId,
  592. languageValue: '派工单号:',
  593. objectId: 'seqNoName',
  594. objectType: 'label',
  595. tableId: '*'
  596. }, {
  597. functionId: functionId,
  598. languageValue: '当前时间',
  599. objectId: 'currentTime',
  600. objectType: 'label',
  601. tableId: '*'
  602. }, {
  603. functionId: functionId,
  604. languageValue: '卷数量统计 ',
  605. objectId: 'rollQtySum',
  606. objectType: 'label',
  607. tableId: '*'
  608. }, {
  609. functionId: functionId,
  610. languageValue: '是否报告产量 ',
  611. objectId: 'whetherReport',
  612. objectType: 'label',
  613. tableId: '*'
  614. }, {
  615. functionId: functionId,
  616. languageValue: '总良品数量',
  617. objectId: 'approvedQty',
  618. objectType: 'label',
  619. tableId: '*'
  620. }, {
  621. functionId: functionId,
  622. languageValue: '总不良品数量',
  623. objectId: 'defectedQty',
  624. objectType: 'label',
  625. tableId: '*'
  626. }, {
  627. functionId: functionId,
  628. languageValue: '总数量',
  629. objectId: 'totalQty',
  630. objectType: 'label',
  631. tableId: '*'
  632. }, {
  633. functionId: functionId,
  634. languageValue: '其他卷数量',
  635. objectId: 'otherRollQty',
  636. objectType: 'label',
  637. tableId: '*'
  638. }, {
  639. functionId: functionId,
  640. languageValue: '人员排程班次信息',
  641. objectId: 'operatorScheduleInfo',
  642. objectType: 'label',
  643. tableId: '*'
  644. }, {
  645. functionId: functionId,
  646. languageValue: '操作员',
  647. objectId: 'operatorId',
  648. objectType: 'label',
  649. tableId: '*'
  650. }, {
  651. functionId: functionId,
  652. languageValue: '操作员姓名',
  653. objectId: 'operatorName',
  654. objectType: 'label',
  655. tableId: '*'
  656. }, {
  657. functionId: functionId,
  658. languageValue: '排产日期',
  659. objectId: 'scheduledDate',
  660. objectType: 'label',
  661. tableId: '*'
  662. }, {
  663. functionId: functionId,
  664. languageValue: '班次',
  665. objectId: 'shiftNo',
  666. objectType: 'label',
  667. tableId: '*'
  668. }, {
  669. functionId: functionId,
  670. languageValue: '卷生产时间统计',
  671. objectId: 'rollTimeSum',
  672. objectType: 'label',
  673. tableId: '*'
  674. }, {
  675. functionId: functionId,
  676. languageValue: '总调机时间',
  677. objectId: 'totalTuningTime',
  678. objectType: 'label',
  679. tableId: '*'
  680. }, {
  681. functionId: functionId,
  682. languageValue: '总调机过程停机时间',
  683. objectId: 'totalTuningDownTime',
  684. objectType: 'label',
  685. tableId: '*'
  686. }, {
  687. functionId: functionId,
  688. languageValue: '净调机时间',
  689. objectId: 'totalPureTuningTime',
  690. objectType: 'label',
  691. tableId: '*'
  692. }, {
  693. functionId: functionId,
  694. languageValue: '总生产时间',
  695. objectId: 'totalProdTime',
  696. objectType: 'label',
  697. tableId: '*'
  698. }, {
  699. functionId: functionId,
  700. languageValue: '总生产过程停机时间',
  701. objectId: 'totalProdDownTime',
  702. objectType: 'label',
  703. tableId: '*'
  704. }, {
  705. functionId: functionId,
  706. languageValue: '净生产时间',
  707. objectId: 'totalPureProdTime',
  708. objectType: 'label',
  709. tableId: '*'
  710. }, {
  711. functionId: functionId,
  712. languageValue: '总制造时间',
  713. objectId: 'totalManufTime',
  714. objectType: 'label',
  715. tableId: '*'
  716. }, {
  717. functionId: functionId,
  718. languageValue: '总制造过程停机时间',
  719. objectId: 'totalManufDownTime',
  720. objectType: 'label',
  721. tableId: '*'
  722. }, {
  723. functionId: functionId,
  724. languageValue: '净制造时间',
  725. objectId: 'totalPureManufTime',
  726. objectType: 'label',
  727. tableId: '*'
  728. }, {
  729. functionId: functionId,
  730. languageValue: '产量报告',
  731. objectId: 'roduceReport',
  732. objectType: 'label',
  733. tableId: '*'
  734. }, {
  735. functionId: functionId,
  736. languageValue: '开工时间 ',
  737. objectId: 'startTime',
  738. objectType: 'label',
  739. tableId: '*'
  740. }, {
  741. functionId: functionId,
  742. languageValue: '完工时间:',
  743. objectId: 'finishTime',
  744. objectType: 'label',
  745. tableId: '*'
  746. }, {
  747. functionId: functionId,
  748. languageValue: '生产时间',
  749. objectId: 'prodTime',
  750. objectType: 'label',
  751. tableId: '*'
  752. }, {
  753. functionId: functionId,
  754. languageValue: '调机时间',
  755. objectId: 'tuningTime',
  756. objectType: 'label',
  757. tableId: '*'
  758. }, {
  759. functionId: functionId,
  760. languageValue: '制造时间',
  761. objectId: 'manufTime',
  762. objectType: 'label',
  763. tableId: '*'
  764. }, {
  765. functionId: functionId,
  766. languageValue: '合格数量',
  767. objectId: 'sfdcApprovedQty',
  768. objectType: 'label',
  769. tableId: '*'
  770. }, {
  771. functionId: functionId,
  772. languageValue: '不合格数量',
  773. objectId: 'sfdcDefectedQty',
  774. objectType: 'label',
  775. tableId: '*'
  776. }, {
  777. functionId: functionId,
  778. languageValue: '报告数量',
  779. objectId: 'sfdcReportedQty',
  780. objectType: 'label',
  781. tableId: '*'
  782. }, {
  783. functionId: functionId,
  784. languageValue: '调机停机',
  785. objectId: 'tuningDown',
  786. objectType: 'label',
  787. tableId: '*'
  788. }, {
  789. functionId: functionId,
  790. languageValue: '生产调机 ',
  791. objectId: 'manufTuning',
  792. objectType: 'label',
  793. tableId: '*'
  794. }, {
  795. functionId: functionId,
  796. languageValue: '备注:',
  797. objectId: 'remark',
  798. objectType: 'label',
  799. tableId: '*'
  800. }, {
  801. functionId: functionId,
  802. languageValue: '停机时间',
  803. objectId: 'downTime',
  804. objectType: 'label',
  805. tableId: '*'
  806. }, {
  807. functionId: functionId,
  808. languageValue: '主材料',
  809. objectId: 'primaryMaterial',
  810. objectType: 'label',
  811. tableId: '*'
  812. },
  813. ],
  814. queryLabel: {
  815. functionId: functionId,
  816. table_id: '*',
  817. languageCode: this.$i18n.locale,
  818. objectType: 'label'
  819. },
  820. }
  821. },
  822. components: {
  823. comExceptionReason,/*异常原因的组件*/
  824. comSelectShift,/*班次选择的组件*/
  825. },
  826. methods: {
  827. /*初始化页面参数*/
  828. init(scheduleData, operatorData) {
  829. //初始化参数
  830. this.scheduleData = scheduleData;
  831. //初始化参数
  832. this.pageData.orderNo = scheduleData.orderNo;
  833. this.pageData.itemNo = scheduleData.itemNo;
  834. this.pageData.seqNo = scheduleData.seqNo;
  835. //设置首道工序
  836. this.preItemNo = scheduleData.preItemNo
  837. //特殊处理 判断是否是空的卷号
  838. if(null == scheduleData.rollNo || scheduleData.rollNo == ''){
  839. this.pageData.rollNo = '暂无卷号';
  840. this.scheduleData.rollNo = '暂无卷号';
  841. }else{
  842. this.pageData.rollNo = scheduleData.rollNo;
  843. }
  844. this.pageData.scheduledDate = scheduleData.scheduledDate;
  845. this.pageData.shiftNo = scheduleData.shiftNo;
  846. this.pageData.resourceId = scheduleData.resourceId;
  847. this.pageData.operatorId = operatorData.operatorId;
  848. //重置时间
  849. this.pageData.reportedTime = this.dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss');
  850. //初始化操作员对象
  851. this.operatorData = JSON.parse(JSON.stringify(operatorData));
  852. //初始化标题
  853. this.titleCon = this.labels.titleCon+this.labels.seqNoName+scheduleData.seqNo;
  854. //处理异常的原因
  855. this.pageData.exceptionFlag = 'N';
  856. this.pageData.exceptionReason = '';
  857. //刷新当前派工单的信息
  858. this.refreshPageData();
  859. },
  860. /*关闭modal*/
  861. closeDialog(){
  862. //刷新报工的页面
  863. this.$emit('refreshPageData');
  864. //关闭当前的页面
  865. this.$emit('update:visible', false);
  866. },
  867. /*生产过程的停机组件*/
  868. exceptionReasonModal() {
  869. //1.首先调用菜单判断方式 打开生产过程的停机的页面
  870. //checkProduceButton('produceDownFlag');
  871. //打开生产过程的工具的页面
  872. this.$nextTick(() => {
  873. this.show = true;
  874. this.$refs.comProduceDown.init(this.scheduleData, this.operatorData)
  875. });
  876. },
  877. /*刷新当前的页面参数*/
  878. async refreshPageData(){
  879. //1.刷新当前卷的报工数据
  880. await getCurrentRollReportedQty(this.scheduleData).then(({data}) => {
  881. this.pageData.approvedQty = data.row.approvedQty;
  882. this.pageData.defectedQty = data.row.defectedQty;
  883. this.pageData.totalQty = data.row.totalQty;
  884. this.pageData.otherRollQty = data.row.otherRollQty;
  885. })
  886. //2.刷新当前卷的时间信息
  887. await countSfdcTimeQty(this.scheduleData).then(({data}) => {
  888. this.pageData.totalSetupTime = data.row.totalSetupTime;
  889. this.pageData.totalDowntimeTimeSetup = data.row.totalDowntimeTimeSetup;
  890. this.pageData.totalPureSetupTime = data.row.totalPureSetupTime;
  891. this.pageData.totalProdTime = data.row.totalProdTime;
  892. this.pageData.totalDowntimeTimeProd = data.row.totalDowntimeTimeProd;
  893. this.pageData.totalPureProdTime = data.row.totalPureProdTime;
  894. this.pageData.totalManufactureTime = data.row.totalManufactureTime;
  895. this.pageData.totalManufactureDowntimeTime = data.row.totalManufactureDowntimeTime;
  896. this.pageData.totalPureManufactureTime = data.row.totalPureManufactureTime;
  897. //先预设一些参数 后期方法再计算
  898. //生产时间=总生产时间
  899. this.pageData.sfdcProdTime = this.pageData.totalProdTime;
  900. //调机时间=总调机时间
  901. this.pageData.sfdcSetupTime = this.pageData.totalSetupTime;
  902. //制造时间=总制造时间
  903. this.pageData.sfdcManufactureTime = this.pageData.totalManufactureTime;
  904. //调机停机=总调机过程停机时间
  905. this.pageData.sfdcSetupDownTime = this.pageData.totalDowntimeTimeSetup;
  906. //生产调机=总生产过程停机时间
  907. this.pageData.sfdcProdSetupTime = this.pageData.totalDowntimeTimeProd;
  908. //停机时间=总制造过程停机时间
  909. this.pageData.sfdcDownTime = this.pageData.totalManufactureDowntimeTime;
  910. });
  911. //3.刷新派工单的班次信息
  912. await getScheduleShiftData(this.pageData).then(({data}) => {
  913. let specialAuth = 'N';
  914. //区分是否存在班次
  915. if(data.code == 500){
  916. this.pageData.shiftDesc = '无班次';//重置班次
  917. this.pageData.scheduledDate = '';//重置排产日期
  918. this.pageData.shiftNo = '';
  919. }else{
  920. this.pageData.shiftDesc = data.row.shiftDesc;//重置班次
  921. this.pageData.scheduledDate = data.row.scheduledDate.substring(0, 10);//重置排产日期
  922. this.pageData.shiftNo = data.row.shiftNo;
  923. //设置结果
  924. specialAuth = data.row.specialAuth;
  925. }
  926. //根据不同设置不同的属性
  927. if("Y" === specialAuth){
  928. this.buttonTags.selectShiftFlag = false;
  929. }else{
  930. this.buttonTags.selectShiftFlag = true;
  931. }
  932. });
  933. //4.刷新当前卷的最早和最晚时间
  934. await getSfdcTimeMaxAndMinTime(this.scheduleData).then(({data}) => {
  935. this.pageData.eventTime = data.row.eventTime;
  936. this.pageData.tillTime = data.row.tillTime;
  937. });
  938. //5.刷新当前卷的Sfdc表的时间
  939. await getSfdcTimeData(this.scheduleData).then(({data}) => {
  940. //先判断是否成功查询
  941. if(data.resultCode == 200){
  942. //判断是否操作成功
  943. this.pageData.eventTime = data.row.finishTime;
  944. this.pageData.sfdcProdTime = data.row.sfdcProdTime;
  945. this.pageData.sfdcSetupTime = data.row.sfdcSetupTime;
  946. this.pageData.sfdcManufactureTime = data.row.sfdcManufactureTime;
  947. this.pageData.sfdcDownTime = data.row.sfdcDownTime;
  948. this.pageData.sfdcSetupDownTime = data.row.sfdcSetupDownTime;
  949. this.pageData.sfdcProdSetupTime = data.row.sfdcProdSetupTime;
  950. }else{
  951. //暂时不处理数据
  952. }
  953. });
  954. //6.刷新当前卷的报工数据
  955. await getSfdcReportedData(this.scheduleData).then(({data}) => {
  956. this.pageData.sfdcApprovedQty = this.pageData.approvedQty - 0;
  957. this.pageData.sfdcDefectedQty = this.pageData.defectedQty - 0;
  958. this.pageData.sfdcReportedQty = this.pageData.sfdcApprovedQty + this.pageData.sfdcDefectedQty;
  959. });
  960. //刷新当前卷的时间数据
  961. await getSfdcMaterialByRollNo(this.scheduleData).then(({data}) => {
  962. this.sfdcMaterialList = data.rows;
  963. });
  964. },
  965. /*刷新当前卷的报工数据汇总*/
  966. refreshCurrentRollReportedQty(){
  967. getCurrentRollReportedQty(this.scheduleData).then(({data}) => {
  968. this.pageData.approvedQty = data.row.approvedQty;
  969. this.pageData.defectedQty = data.row.defectedQty;
  970. this.pageData.totalQty = data.row.totalQty;
  971. this.pageData.otherRollQty = data.row.otherRollQty;
  972. })
  973. },
  974. //刷新当前卷的时间信息
  975. refreshCurrentRollTimeQty(){
  976. countSfdcTimeQty(this.scheduleData).then(({data}) => {
  977. this.pageData.totalSetupTime = data.row.totalSetupTime;
  978. this.pageData.totalDowntimeTimeSetup = data.row.totalDowntimeTimeSetup;
  979. this.pageData.totalPureSetupTime = data.row.totalPureSetupTime;
  980. this.pageData.totalProdTime = data.row.totalProdTime;
  981. this.pageData.totalDowntimeTimeProd = data.row.totalDowntimeTimeProd;
  982. this.pageData.totalPureProdTime = data.row.totalPureProdTime;
  983. this.pageData.totalManufactureTime = data.row.totalManufactureTime;
  984. this.pageData.totalManufactureDowntimeTime = data.row.totalManufactureDowntimeTime;
  985. this.pageData.totalPureManufactureTime = data.row.totalPureManufactureTime;
  986. });
  987. },
  988. //刷新派工单的班次信息
  989. refreshScheduleShiftData(){
  990. getScheduleShiftData(this.scheduleData).then(({data}) => {
  991. //区分是否存在班次
  992. if(data.code == 500){
  993. this.pageData.shiftDesc = '无班次';//重置班次
  994. this.pageData.scheduledDate = '';//重置排产日期
  995. this.pageData.shiftNo = '';
  996. }else{
  997. this.pageData.shiftDesc = data.row.shiftDesc;//重置班次
  998. this.pageData.scheduledDate = data.row.scheduledDate.substring(0, 10);//重置排产日期
  999. this.pageData.shiftNo = data.row.shiftNo;
  1000. }
  1001. });
  1002. },
  1003. //刷新当前卷的时间信息
  1004. refreshCurrentRollMaxAndMinTime(){
  1005. getSfdcTimeMaxAndMinTime(this.scheduleData).then(({data}) => {
  1006. this.pageData.eventTime = data.row.eventTime;
  1007. this.pageData.tillTime = data.row.tillTime;
  1008. });
  1009. },
  1010. //刷新当前卷的Sfdc的信息
  1011. refreshSfdcTimeData(){
  1012. getSfdcTimeData(this.scheduleData).then(({data}) => {
  1013. //判断是否操作成功
  1014. this.pageData.eventTime = data.row.finishTime;
  1015. this.pageData.sfdcProdTime = data.row.sfdcProdTime;
  1016. this.pageData.sfdcSetupTime = data.row.sfdcSetupTime;
  1017. this.pageData.sfdcManufactureTime = data.row.sfdcManufactureTime;
  1018. this.pageData.sfdcDownTime = data.row.sfdcDownTime;
  1019. this.pageData.sfdcSetupDownTime = data.row.sfdcSetupDownTime;
  1020. this.pageData.sfdcProdSetupTime = data.row.sfdcProdSetupTime;
  1021. });
  1022. },
  1023. //刷新当前卷的报工数据
  1024. refreshSfdcData(){
  1025. getSfdcReportedData(this.scheduleData).then(({data}) => {
  1026. this.pageData.sfdcApprovedQty = this.pageData.approvedQty - 0;
  1027. this.pageData.sfdcDefectedQty = this.pageData.defectedQty - 0;
  1028. this.pageData.sfdcReportedQty = this.pageData.sfdcApprovedQty + this.pageData.sfdcDefectedQty;
  1029. });
  1030. },
  1031. //刷新当前卷的时间数据
  1032. refreshSfdcMaterialTable(){
  1033. getSfdcMaterialByRollNo(this.scheduleData).then(({data}) => {
  1034. this.sfdcMaterialList = data.rows;
  1035. });
  1036. },
  1037. /*检查数据是否有效*/
  1038. checkValidQty(row){
  1039. //判断当前是否为空
  1040. if(row.netIssueQty == ''){
  1041. this.$message.error('材料上本卷耗用数量不能为空!');
  1042. row.netIssueQty = 0;//重新赋值
  1043. return false;
  1044. }
  1045. //判断当前是否有效
  1046. if(row.netIssueQty <= 0){
  1047. this.$message.error('材料耗用数量必须大于0!');
  1048. return false;
  1049. }
  1050. //判断是否超限
  1051. if(row.netIssueQty > row.transQty){
  1052. this.$message.error('材料耗用数量大于发料数量!');
  1053. row.netIssueQty = 0;//重新赋值
  1054. return false;
  1055. }
  1056. },
  1057. /*添加定制的css类*/
  1058. customerCellClassName({row, column, rowIndex, columnIndex}) {
  1059. if(column.property == 'netIssueQty'){
  1060. return 'customer-number-cell';
  1061. }
  1062. },
  1063. /*添加定制的cess样式*/
  1064. customerCellStyle({row, column, rowIndex, columnIndex}) {
  1065. if(column.property == 'netIssueQty'){
  1066. return 'padding: 0px 0px;';
  1067. }
  1068. },
  1069. /*检验良品的总数量*/
  1070. checkValidApprovedQty(){
  1071. //调用刷新的方法
  1072. this.refreshSfdcData();
  1073. this.pageData.totalQty = parseFloat(this.pageData.approvedQty) + parseFloat(this.pageData.defectedQty);
  1074. },
  1075. /*结束当前的操作*/
  1076. finishRollBun(){
  1077. //首先判断数值是否通过判断
  1078. let approvedQty = this.pageData.approvedQty;
  1079. if(approvedQty == null || approvedQty == ''){
  1080. this.$message.error('请输入良品总数量!');
  1081. this.pageData.approvedQty = 0;//重新赋值
  1082. return false;
  1083. }
  1084. if(approvedQty < 0){
  1085. this.$message.error('良品总数量必须大于等于0!');
  1086. this.pageData.approvedQty = 0;//重新赋值
  1087. return false;
  1088. }
  1089. //班次判断
  1090. if(this.pageData.shiftDesc == '无班次'){
  1091. this.$message.error('该时间段内没有匹配的班次信息,请联系相关人员!!');
  1092. return false;
  1093. }
  1094. //验证通过提交到后台
  1095. let postData = {'pageData': JSON.stringify(this.pageData), 'materialList': JSON.stringify(this.sfdcMaterialList)};
  1096. //先调用检查方法
  1097. checkFinishPartRollWithNoFqc(postData).then(({data}) => {
  1098. //判断是否成功
  1099. if(data.code == 500){
  1100. this.$message.error(data.msg);
  1101. }else{
  1102. //执行结束卷操作
  1103. this.finishPartRollOperation();
  1104. }
  1105. });
  1106. },
  1107. /*结束卷的具体操作*/
  1108. finishPartRollOperation(){
  1109. //验证通过提交到后台
  1110. let postData = {'pageData': JSON.stringify(this.pageData), 'materialList': JSON.stringify(this.sfdcMaterialList)};
  1111. //处理信息
  1112. finishPartRollWithNoFqc(postData).then(({data}) => {
  1113. //判断操作是否成功
  1114. if(data.code == 500){
  1115. this.$message.error(data.msg);
  1116. }else{
  1117. //关闭当前的页面
  1118. this.closeDialog();
  1119. }
  1120. })
  1121. },
  1122. /*打开异常原因录入页面*/
  1123. showExceptionReasonModal(){
  1124. //1.首先调用菜单判断方式 打开生产过程的材料的页面
  1125. //checkProduceButton('produceMaterialFlag');
  1126. //打开生产过程的工具的页面
  1127. this.$nextTick(() => {
  1128. this.showExceptionFlag = true;
  1129. this.$refs.comExceptionReason.init();
  1130. });
  1131. },
  1132. /*处理异常的原因*/
  1133. initExceptionReason(exceptionReason){
  1134. //处理异常的原因
  1135. this.pageData.exceptionFlag = 'Y';
  1136. this.pageData.exceptionReason = exceptionReason;
  1137. //然后提交结束卷的数据
  1138. this.finishRollOperation();
  1139. },
  1140. /*打开班次选择页面*/
  1141. selectSchduleShiftModal(){
  1142. //1.首先调用菜单判断方式 打开生产过程的材料的页面
  1143. //checkProduceButton('produceMaterialFlag');
  1144. //打开生产过程的工具的页面
  1145. this.$nextTick(() => {
  1146. this.showShiftFlag = true;
  1147. this.$refs.comSelectShift.init(this.pageData);
  1148. });
  1149. },
  1150. /*修改页面的班次和排产的时间*/
  1151. initScheduleShift(scheduleDate, shiftDesc, username){
  1152. //重置班次和排产的时间
  1153. this.pageData.scheduledDate = scheduleDate.substring(0, 10);
  1154. this.pageData.shiftDesc = shiftDesc;
  1155. this.pageData.remark = username+"更改了班次."
  1156. },
  1157. // 保存 默认配置 列
  1158. async saveMultiLanguage() {
  1159. // 保存页面 button label title 属性
  1160. let buttons = this.buttonList;
  1161. let labels = this.labelsList;
  1162. await saveButtonList(buttons)
  1163. await saveButtonList(labels)
  1164. this.getMultiLanguageList()
  1165. },
  1166. getMultiLanguageList() {
  1167. //首先查询当前按钮的多语言
  1168. searchFunctionButtonList(this.queryButton).then(({data}) => {
  1169. if (JSON.stringify(data.data) != '{}') {
  1170. this.buttons = data.data
  1171. } else {
  1172. // saveButtonList(this.buttonList).then(({data}) => {
  1173. // })
  1174. }
  1175. });
  1176. //其次查询当前标签的多语言
  1177. searchFunctionButtonList(this.queryLabel).then(({data}) => {
  1178. if (JSON.stringify(data.data) != '{}') {
  1179. this.labels = data.data
  1180. } else {
  1181. // saveButtonList(this.buttonList).then(({data}) => {
  1182. // })
  1183. }
  1184. });
  1185. },
  1186. },
  1187. created() {
  1188. // this.factoryList()
  1189. // this.getLanguageList()
  1190. this.getMultiLanguageList();//刷新多语言的信息
  1191. }
  1192. }
  1193. </script>
  1194. <style scoped lang="scss">
  1195. /*调节页面button和input的上下间距*/
  1196. .customer-css .customer-button{
  1197. margin-top: 25px;
  1198. }
  1199. /*调节样式*/
  1200. .customer-item{
  1201. margin-top: -10px;
  1202. }
  1203. /*fieldset下table的样式*/
  1204. .customer-fieldset /deep/ .el-table__header th.is-leaf{
  1205. line-height: 16px;
  1206. }
  1207. /deep/ .customer-tab .el-tabs__content{
  1208. padding: 0px !important;
  1209. }
  1210. /*table中input*/
  1211. div.table-input /deep/ input.el-input__inner{
  1212. text-align: right;
  1213. }
  1214. </style>