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.

3947 lines
139 KiB

  1. <template>
  2. <div class="mod-config">
  3. <!-- 收藏 -->
  4. <div>
  5. <span @click="favoriteFunction()">
  6. <icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg"></icon-svg>
  7. </span>
  8. </div>
  9. <!-- 条件查询 -->
  10. <el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList">
  11. <el-form-item :label="'BU'">
  12. <el-select v-model="searchData.buDesc" placeholder="请选择" clearable style="width: 75px">
  13. <el-option
  14. v-for = "i in userBuList"
  15. :key = "i.buNo"
  16. :label = "i.buDesc"
  17. :value = "i.buDesc">
  18. </el-option>
  19. </el-select>
  20. </el-form-item>
  21. <el-form-item :label="'检验单号'">
  22. <el-input v-model="searchData.inspectionNo" clearable style="width: 120px"></el-input>
  23. </el-form-item>
  24. <el-form-item :label="'物料编码'">
  25. <el-input v-model="searchData.partNo" clearable style="width: 120px"></el-input>
  26. </el-form-item>
  27. <el-form-item :label="'SKU'">
  28. <el-input v-model="searchData.sku" clearable style="width: 120px"></el-input>
  29. </el-form-item>
  30. <el-form-item :label="'物料名称'">
  31. <el-input v-model="searchData.partDesc" clearable style="width: 200px"></el-input>
  32. </el-form-item>
  33. <el-form-item :label="'检验结论'">
  34. <el-select v-model="searchData.inspectionResult" clearable style="width: 80px">
  35. <el-option label="合格" value="合格"></el-option>
  36. <el-option label="不合格" value="不合格"></el-option>
  37. </el-select>
  38. </el-form-item>
  39. <el-form-item :label="'处置措施'">
  40. <el-select v-model="searchData.disposalMeasures" clearable style="width: 90px">
  41. <el-option
  42. v-for = "i in disposalMeasuresOptions"
  43. :key = "i.id"
  44. :label = "i.disposalMeasures"
  45. :value = "i.disposalMeasures">
  46. </el-option>
  47. </el-select>
  48. </el-form-item>
  49. </el-form>
  50. <el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList">
  51. <el-form-item :label="'PN'">
  52. <el-input v-model="searchData.cinvSourceCode" clearable style="width: 120px"></el-input>
  53. </el-form-item>
  54. <el-form-item :label="'工单号'">
  55. <el-input v-model="searchData.orderNo" clearable style="width: 137px"></el-input>
  56. </el-form-item>
  57. <el-form-item :label="'派工单号'">
  58. <el-input v-model="searchData.seqNo" clearable style="width: 167px"></el-input>
  59. </el-form-item>
  60. <el-form-item :label="'工序'">
  61. <el-input v-model="searchData.operationDesc" clearable style="width: 108px"></el-input>
  62. </el-form-item>
  63. <el-form-item :label="'状态'">
  64. <el-select v-model="searchData.states" multiple style="width: 340px">
  65. <el-option label="未开始" value="未开始"></el-option>
  66. <el-option label="待检验" value="待检验"></el-option>
  67. <el-option label="待审核" value="待审核"></el-option>
  68. <el-option label="已完成" value="已完成"></el-option>
  69. </el-select>
  70. </el-form-item>
  71. </el-form>
  72. <el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList">
  73. <el-form-item :label="'送检日期'">
  74. <el-date-picker style="width: 150px" v-model="searchData.startDate2" type="datetime" value-format='yyyy-MM-dd HH:mm' format='yyyy-MM-dd HH:mm' placeholder="开始日期"></el-date-picker>
  75. -
  76. <el-date-picker style="width: 150px" v-model="searchData.endDate2" type="datetime" value-format='yyyy-MM-dd HH:mm' format='yyyy-MM-dd HH:mm' placeholder="结束日期"></el-date-picker>
  77. </el-form-item>
  78. <el-form-item :label="'检验时间:'">
  79. <el-date-picker style="width: 170px" v-model="searchData.startDate" type="datetime"
  80. value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss' placeholder="开始日期">
  81. </el-date-picker>
  82. -
  83. <el-date-picker style="width: 170px" v-model="searchData.endDate" type="datetime"
  84. value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss' placeholder="结束日期">
  85. </el-date-picker>
  86. </el-form-item>
  87. <el-form-item :label="' '">
  88. <el-button v-if="!authSearch" type="primary" @click="getDataList()">查询</el-button>
  89. <el-button v-if="!authSave" type="primary" @click="addModal()">新增</el-button>
  90. <el-button v-if="!authCheck" type="primary" @click="submitResult()">审核</el-button>
  91. <el-button v-if="!authDelete" type="primary" @click="deleteModal()">删除</el-button>
  92. <download-excel
  93. :fields="fields()"
  94. :data="exportData"
  95. type="xls"
  96. :name="exportName"
  97. :header="exportHeader"
  98. :footer="exportFooter"
  99. :fetch="createExportData"
  100. :before-generate="startDownload"
  101. :before-finish="finishDownload"
  102. worksheet="导出信息"
  103. class="el-button el-button--primary el-button--medium">
  104. {{ "导出" }}
  105. </download-excel>
  106. </el-form-item>
  107. </el-form>
  108. <!-- 检验记录展示列表 -->
  109. <el-table
  110. :height="height"
  111. :data="dataList"
  112. border
  113. ref="FAITable"
  114. @row-click="FAIClickRow"
  115. @selection-change="selectionFAI"
  116. style="width: 100%;">
  117. <el-table-column
  118. type="selection"
  119. header-align="center"
  120. align="center"
  121. :selectable="selectFlag"
  122. width="50">
  123. </el-table-column>
  124. <el-table-column
  125. prop="state"
  126. header-align="center"
  127. align="center"
  128. label="状态">
  129. <template slot-scope="scope">
  130. <div :style="{fontWeight:'bold', color: scope.row.state === '待检验' ? 'red' : scope.row.state === '待审核' ? '#ffa500e0' : scope.row.state === '已完成' ? '#3ac252' : ''}">
  131. {{scope.row.state}}
  132. </div>
  133. </template>
  134. </el-table-column>
  135. <el-table-column
  136. v-for="(item,index) in columnList1" :key="index"
  137. :sortable="item.columnSortable"
  138. :prop="item.columnProp"
  139. :header-align="item.headerAlign"
  140. :show-overflow-tooltip="item.showOverflowTooltip"
  141. :align="item.align"
  142. :fixed="item.fixed === '' ? false : item.fixed"
  143. :min-width="item.columnWidth"
  144. :label="item.columnLabel">
  145. <template slot-scope="scope">
  146. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  147. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  148. </template>
  149. </el-table-column>
  150. <el-table-column
  151. fixed="right"
  152. header-align="center"
  153. align="center"
  154. width="130"
  155. label="操作">
  156. <template slot-scope="scope">
  157. <el-link style="cursor: pointer" v-if="!authDetail && scope.row.state === '未开始'" @click="actionModal(scope.row)">开始检验</el-link>
  158. <el-link style="cursor: pointer" v-if="!authDetail && scope.row.state !== '未开始'" @click="detailModal(scope.row)">检验单</el-link>
  159. <el-link v-if="!authFile" style="cursor: pointer" @click="getFileContentData(scope.row)">工作文件</el-link>
  160. </template>
  161. </el-table-column>
  162. </el-table>
  163. <!-- 分页-->
  164. <el-pagination
  165. @size-change="sizeChangeHandle"
  166. @current-change="currentChangeHandle"
  167. :current-page="pageIndex"
  168. :page-sizes="[20, 50, 100, 200, 500]"
  169. :page-size="pageSize"
  170. :total="totalPage"
  171. layout="total, sizes, prev, pager, next, jumper">
  172. </el-pagination>
  173. <!-- 新增检验记录 -->
  174. <el-dialog title="新增检验记录" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px">
  175. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
  176. <el-form-item label="BU" prop="bu" :rules="rules.bu">
  177. <el-select v-model="modalData.bu" placeholder="请选择" @change="buChange" style="width: 221px">
  178. <el-option
  179. v-for = "i in userBuList"
  180. :key = "i.buNo"
  181. :label = "i.buNo"
  182. :value = "i.buNo">
  183. <span style="float: left;width: 100px">{{ i.sitename }}</span>
  184. <span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">
  185. {{ i.buDesc }}
  186. </span>
  187. </el-option>
  188. </el-select>
  189. </el-form-item>
  190. <el-form-item label="标签号">
  191. <el-input v-if="this.modalData.specialTaskFlag === 'Y'" disabled v-model="modalData.rollNo" style="width: 221px"></el-input>
  192. <el-input v-else v-model="modalData.rollNo" @keyup.native.enter="rollNoEnter" clearable style="width: 221px"></el-input>
  193. </el-form-item>
  194. </el-form>
  195. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
  196. <el-form-item v-if="this.modalData.specialTaskFlag !== 'Y' && (this.modalData.rollNo === '' || this.modalData.rollNo == null)" prop="orderNo" :rules="rules.seqNoType">
  197. <span style="cursor: pointer" slot="label" @click="getBaseList(1052)"><a herf="#">派工单号</a></span>
  198. <el-input v-model="modalData.seqNo" style="width: 221px"></el-input>
  199. </el-form-item>
  200. <el-form-item v-if="this.modalData.specialTaskFlag !== 'Y' && this.modalData.rollNo !== '' && this.modalData.rollNo != null" prop="orderNo" :rules="rules.seqNoType">
  201. <span slot="label">派工单号</span>
  202. <el-input v-model="modalData.seqNo" disabled style="width: 221px"></el-input>
  203. </el-form-item>
  204. <el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" prop="orderNo" :rules="rules.seqNoType">
  205. <span slot="label">派工单号</span>
  206. <el-input v-model="modalData.seqNo" disabled style="width: 221px"></el-input>
  207. </el-form-item>
  208. <el-form-item label="工单号" prop="orderNo" :rules="rules.orderNoType">
  209. <el-input v-model="modalData.orderNo" style="width: 221px" disabled></el-input>
  210. </el-form-item>
  211. </el-form>
  212. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
  213. <el-form-item label="工序" prop="operationDesc" :rules="rules.operationDescType">
  214. <el-select v-model="modalData.operationDesc" placeholder="请选择" style="width: 221px">
  215. <el-option
  216. v-for = "i in operationList"
  217. :key = "i.operationNo"
  218. :label = "i.operationDesc"
  219. :value = "i.operationDesc">
  220. </el-option>
  221. </el-select>
  222. </el-form-item>
  223. <el-form-item v-if="this.modalData.specialTaskFlag === 'Y'">
  224. <span style="cursor: pointer" slot="label" @click="getBaseList(505)"><a herf="#">机台</a></span>
  225. <el-input v-model="modalData.resourceDesc" style="width: 221px"></el-input>
  226. </el-form-item>
  227. <el-form-item v-else label="机台" prop="resourceId" :rules="rules.resourceIdType">
  228. <el-input v-model="modalData.resourceDesc" style="width: 221px"></el-input>
  229. </el-form-item>
  230. </el-form>
  231. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  232. <el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" :model="modalData">
  233. <span style="cursor: pointer" slot="label" @click="queryPartList"><a herf="#">物料编码</a></span>
  234. <el-input v-model="modalData.partNo" style="width: 221px"></el-input>
  235. </el-form-item>
  236. <el-form-item v-else label="物料编码" prop="partNo" :rules="rules.partNoType">
  237. <el-input v-model="modalData.partNo" readonly style="width: 221px"></el-input>
  238. </el-form-item>
  239. <el-form-item label="物料名称">
  240. <el-input v-model="modalData.partDesc" readonly style="width: 221px"></el-input>
  241. </el-form-item>
  242. </el-form>
  243. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  244. <el-form-item label="物料类别">
  245. <el-input v-model="modalData.spec" readonly style="width: 221px"></el-input>
  246. </el-form-item>
  247. <el-form-item label="SKU">
  248. <el-input v-model="modalData.sku" readonly style="width: 221px"></el-input>
  249. </el-form-item>
  250. </el-form>
  251. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
  252. <el-form-item prop="templateId" :rules="rules.templateId">
  253. <span style="cursor: pointer" v-if="this.controlData.baseData === '控制'" slot="label" @click="queryTemplateList"><a>检验模板</a></span>
  254. <span v-else slot="label">检验模板</span>
  255. <el-input v-model="modalData.templateName" disabled style="width: 221px"></el-input>
  256. </el-form-item>
  257. <el-form-item label="送检数量:" prop="rollQty" :rules="rules.rollQtyType">
  258. <el-input v-model="modalData.rollQty" type="number" style="width: 103px"></el-input>
  259. </el-form-item>
  260. <el-form-item label="单位" prop="umId" :rules="rules.umIdType">
  261. <el-select v-model="modalData.umId" placeholder="请选择" style="width: 103px">
  262. <el-option
  263. v-for = "i in umList"
  264. :key = "i.umId"
  265. :label = "i.umName"
  266. :value = "i.umId">
  267. </el-option>
  268. </el-select>
  269. </el-form-item>
  270. </el-form>
  271. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  272. <el-form-item label="老卷号">
  273. <el-input v-model="modalData.batchRollNo" style="width: 221px"></el-input>
  274. </el-form-item>
  275. <el-form-item label="送检总数">
  276. <el-input v-model="modalData.sjzs" disabled style="width: 120px"></el-input>
  277. </el-form-item>
  278. <el-form-item label=" ">
  279. <input type="checkbox" id="specialTask" name="specialTask" v-model="checked" @click="changeSpecialTask"/> <label for="specialTask">无工单检验</label>
  280. </el-form-item>
  281. </el-form>
  282. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  283. <el-form-item label="特殊要求">
  284. <el-input type="textarea" v-model="modalData.specialRequirements" :rows="3" resize='none' show-word-limit style="width: 456px;height: 30px"></el-input>
  285. </el-form-item>
  286. </el-form>
  287. <el-footer style="height:40px;margin-top: 55px;text-align:center">
  288. <el-button type="primary" @click="saveData">保存</el-button>
  289. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  290. </el-footer>
  291. </el-dialog>
  292. <!-- 检验单详情页 -->
  293. <el-dialog title="检验明细清单" :close-on-click-modal="false" v-drag :visible.sync="detailInformationFlag" width="1200px">
  294. <el-form :inline="true" label-position="top" @keyup.enter.native = "getDataList">
  295. <el-form-item :label="'物料编码'">
  296. <el-input v-model="detailData.partNo" readonly style="width: 100px"></el-input>
  297. </el-form-item>
  298. <el-form-item :label="'物料类别'">
  299. <el-input v-model="detailData.spec" readonly style="width: 200px"></el-input>
  300. </el-form-item>
  301. <el-form-item :label="'PN'">
  302. <el-input v-model="detailData.cinvSourceCode" readonly style="width: 100px"></el-input>
  303. </el-form-item>
  304. <el-form-item :label="'SKU'">
  305. <el-input v-model="detailData.sku" readonly style="width: 100px"></el-input>
  306. </el-form-item>
  307. <el-form-item :label="'物料名称'">
  308. <el-input v-model="detailData.partDesc" readonly style="width: 200px"></el-input>
  309. </el-form-item>
  310. <el-form-item :label="'送检数量'">
  311. <el-input class="numInput" v-model="detailData.rollQty" type="number" style="width: 80px"></el-input>
  312. </el-form-item>
  313. <el-form-item :label="'抽样数量'">
  314. <el-input class="numInput" v-model="detailData.samplingQty" type="number" style="width: 80px"></el-input>
  315. </el-form-item>
  316. <el-form-item :label="'单位'">
  317. <el-input v-model="detailData.umName" readonly style="width: 80px"></el-input>
  318. </el-form-item>
  319. <el-form-item :label="' '">
  320. <el-button v-if="detailData.submitFlag !== 'Y'" type="primary" :loading="loadFlag" @click="dataAcquisition">数据采集</el-button>
  321. </el-form-item>
  322. </el-form>
  323. <el-form :inline="true" label-position="top" @keyup.enter.native = "getDataList">
  324. <el-form-item :label="'不合格项目数量'">
  325. <el-input class="numInput" v-if="detailData.submitFlag === 'Y'" v-model="detailData.unqualifiedQty" disabled type="number" style="width: 80px"></el-input>
  326. <el-input class="numInput" v-else @input="handleInput(detailData.unqualifiedQty,1)" v-model="detailData.unqualifiedQty" type="number" style="width: 80px"></el-input>
  327. </el-form-item>
  328. <el-form-item :label="'检验结论'">
  329. <el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionResult" disabled style="width: 100px" placeholder="请选择">
  330. <el-option label="合格" value="合格"></el-option>
  331. <el-option label="不合格" value="不合格"></el-option>
  332. </el-select>
  333. <el-select v-else v-model="detailData.inspectionResult" style="width: 100px" placeholder="请选择">
  334. <el-option label="合格" value="合格"></el-option>
  335. <el-option label="不合格" value="不合格"></el-option>
  336. </el-select>
  337. </el-form-item>
  338. <el-form-item :label="'质检备注'">
  339. <el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 280px"></el-input>
  340. <el-input v-else v-model="detailData.inspectionRemark" style="width: 280px"></el-input>
  341. </el-form-item>
  342. <el-form-item label="检验员">
  343. <el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectorNo" disabled placeholder="请选择" style="width: 100px">
  344. <el-option
  345. v-for = "i in options"
  346. :key = "i.inspectorNo"
  347. :label = "i.inspectorName"
  348. :value = "i.inspectorNo">
  349. </el-option>
  350. </el-select>
  351. <el-select v-else v-model="detailData.inspectorNo" disabled placeholder="请选择" style="width: 100px">
  352. <el-option
  353. v-for = "i in options"
  354. :key = "i.inspectorNo"
  355. :label = "i.inspectorName"
  356. :value = "i.inspectorNo">
  357. </el-option>
  358. </el-select>
  359. </el-form-item>
  360. <el-form-item>
  361. <span v-if="detailData.submitFlag === 'Y'" slot="label">协同人员</span>
  362. <span v-else style="cursor: pointer" slot="label" @click="getOperatorList"><a>协同人员</a></span>
  363. <el-input v-model="detailData.operatorName" readonly style="width: 173px"></el-input>
  364. </el-form-item>
  365. <el-form-item>
  366. <span v-if="detailData.submitFlag === 'Y'" slot="label">责任人</span>
  367. <span v-else style="cursor: pointer" slot="label" @click="getResponsiblePersonList"><a>责任人</a></span>
  368. <el-input v-model="detailData.responsiblePersonName" readonly style="width: 173px"></el-input>
  369. </el-form-item>
  370. <el-form-item :label="' '">
  371. <el-button type="primary" @click="getFileContentData(detailData)">工作文件</el-button>
  372. <!-- <el-button type="primary" @click="addUploadFileModal">上传文件</el-button>-->
  373. <el-button type="primary" icon="el-icon-upload" @click="subDetailUpload">明细导入</el-button>
  374. </el-form-item>
  375. </el-form>
  376. <el-form v-show="detailData.inspectionResult === '不合格'" :inline="true" label-position="top">
  377. <el-form-item :label="'处置措施'">
  378. <el-select v-if="detailData.submitFlag === 'Y'" clearable v-model="detailData.disposalMeasures" disabled style="width: 100px">
  379. <el-option
  380. v-for = "i in disposalMeasuresOptions"
  381. :key = "i.id"
  382. :label = "i.disposalMeasures"
  383. :value = "i.disposalMeasures">
  384. </el-option>
  385. </el-select>
  386. <el-select v-else clearable v-model="detailData.disposalMeasures" style="width: 100px">
  387. <el-option
  388. v-for = "i in disposalMeasuresOptions"
  389. :key = "i.id"
  390. :label = "i.disposalMeasures"
  391. :value = "i.disposalMeasures">
  392. </el-option>
  393. </el-select>
  394. </el-form-item>
  395. <el-form-item :label="'处置说明'">
  396. <el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.disposalRemark" disabled style="width: 200px"></el-input>
  397. <el-input v-else v-model="detailData.disposalRemark" style="width: 280px"></el-input>
  398. </el-form-item>
  399. </el-form>
  400. <!-- 展示列表 -->
  401. <div class="rq ">
  402. <el-table
  403. :height="500"
  404. :data="detailList"
  405. border
  406. style="width: 100%;">
  407. <el-table-column
  408. prop=""
  409. header-align="center"
  410. align="center"
  411. min-width="90"
  412. label="操作">
  413. <template slot-scope="scope">
  414. <el-button class="el-icon-picture" type="primary" @click="uploadImageModal(scope.row)"></el-button>
  415. <el-button style="margin-left: 2px" class="el-icon-s-platform" type="primary" :loading="loadFlag" @click="dataAcquisitionByItem(scope.row)"></el-button>
  416. </template>
  417. </el-table-column>
  418. <el-table-column
  419. v-for="(item,index) in detailColumnList" :key="index"
  420. :sortable="item.columnSortable"
  421. :prop="item.columnProp"
  422. :header-align="item.headerAlign"
  423. :show-overflow-tooltip="item.showOverflowTooltip"
  424. :align="item.align"
  425. :fixed="item.fixed === ''?false:item.fixed"
  426. :min-width="item.columnWidth"
  427. :label="item.columnLabel">
  428. <template slot-scope="scope">
  429. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  430. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  431. </template>
  432. </el-table-column>
  433. <el-table-column
  434. prop=""
  435. header-align="center"
  436. align="right"
  437. min-width="80"
  438. label="实测值">
  439. <template slot-scope="scope">
  440. <el-input :ref="`textValue${scope.$index}`" v-if="scope.row.valueTypeDb === 'N'" v-model="scope.row.numberValue" @keyup.enter.native="focusNextInput(scope.$index, 'textValue')" type="number" style="height: 11px; width: 98%"></el-input>
  441. <el-input :ref="`textValue${scope.$index}`" v-else v-model="scope.row.textValue" @keyup.enter.native="focusNextInput(scope.$index, 'textValue')" style="height: 11px; width: 98%"></el-input>
  442. </template>
  443. </el-table-column>
  444. <el-table-column
  445. prop=""
  446. header-align="center"
  447. align="center"
  448. min-width="80"
  449. label="检验明细">
  450. <template slot-scope="scope">
  451. <el-button v-if="scope.row.subDetailRecordNum > 0" type="success" @click="subDetailModal(scope.row) ">点击输入</el-button>
  452. <el-button v-else type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
  453. </template>
  454. </el-table-column>
  455. <el-table-column
  456. prop=""
  457. header-align="center"
  458. align="right"
  459. min-width="80"
  460. label="抽样数量">
  461. <template slot-scope="scope">
  462. <el-input class="numInput" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.samplingQty" disabled type="number" style="height: 11px; width: 98%"></el-input>
  463. <el-input class="numInput" v-else :ref="`samplingQty${scope.$index}`" v-model="scope.row.samplingQty" type="number" @keyup.enter.native="focusNextInput(scope.$index, 'samplingQty')" style="height: 11px; width: 98%"></el-input>
  464. </template>
  465. </el-table-column>
  466. <el-table-column
  467. prop=""
  468. header-align="center"
  469. align="right"
  470. min-width="80"
  471. label="不合格数量">
  472. <template slot-scope="scope">
  473. <el-input class="numInput" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.unqualifiedQuantity" disabled type="number" style="height: 11px; width: 98%"></el-input>
  474. <el-input class="numInput" v-else :ref="`unqualifiedQuantity${scope.$index}`" v-model="scope.row.unqualifiedQuantity" type="number" @keyup.enter.native="focusNextInput(scope.$index, 'unqualifiedQuantity')" style="height: 11px; width: 98%"></el-input>
  475. </template>
  476. </el-table-column>
  477. <el-table-column
  478. prop=""
  479. header-align="center"
  480. align="right"
  481. min-width="75"
  482. label="项目检验结论">
  483. <template slot-scope="scope">
  484. <el-select :class="{redElSelect:scope.row.itemResult === 'N', greenElSelect:scope.row.itemResult === 'Y'}" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.itemResult" disabled style="height: 11px" >
  485. <el-option label="合格" value="Y" style="color: green"></el-option>
  486. <el-option label="不合格" value="N" style="color: red"></el-option>
  487. </el-select>
  488. <el-select :class="{redElSelect:scope.row.itemResult === 'N', greenElSelect:scope.row.itemResult === 'Y'}" v-else v-model="scope.row.itemResult" style="height: 11px" placeholder="合格">
  489. <el-option label="合格" value="Y" style="color: green"></el-option>
  490. <el-option label="不合格" value="N" style="color: red"></el-option>
  491. </el-select>
  492. </template>
  493. </el-table-column>
  494. </el-table>
  495. </div>
  496. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  497. <el-button type="primary" @click="Transfer">保存</el-button>
  498. <el-button type="primary" @click="detailInformationFlag=false">关闭</el-button>
  499. </el-footer>
  500. </el-dialog>
  501. <!-- 子明细信息 -->
  502. <el-dialog title="子明细信息" :close-on-click-modal="false" v-drag :visible.sync="subDetailFlag" width="572px">
  503. <el-button type="success" icon="el-icon-plus" size="mini" @click="handleAddBtn(subDetailData)">添加</el-button>
  504. <el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDeleteBtn(subDetailData)">删除</el-button>
  505. <el-button type="primary" icon="el-icon-more" size="mini" @click="batchHandleAdd(subDetailData)">批量新增</el-button>
  506. <div class="rq ">
  507. <el-table
  508. :height="400"
  509. :data="tableData"
  510. border
  511. :row-class-name="rowClassName"
  512. @selection-change="handleDetailSelectionChange"
  513. style="width: 100%;">
  514. <el-table-column type="selection" align="center" width="50"></el-table-column>
  515. <el-table-column label="序号" align="center" prop="xh" width="50"></el-table-column>
  516. <el-table-column prop="samplingLocation" header-align="center" align="center" :required="true" label="抽样位置A" width="150">
  517. <template slot-scope="{row}">
  518. <el-input v-if="tableData[row.xh-1].isSubmit === 'Y'" v-model="tableData[row.xh-1].samplingLocation" readonly placeholder="请输入抽样位置A"></el-input>
  519. <el-input v-else :ref="`${row.xh-1}` + `a`" v-model="tableData[row.xh-1].samplingLocation" @keyup.enter.native="nextFocus1(row.xh-1)" placeholder="请输入抽样位置A"></el-input>
  520. </template>
  521. </el-table-column>
  522. <el-table-column prop="samplingLocationB" header-align="center" align="center" :required="true" label="抽样位置B" width="150">
  523. <template slot-scope="{row}">
  524. <el-input v-if="tableData[row.xh-1].isSubmit === 'Y'" v-model="tableData[row.xh-1].samplingLocationB" readonly placeholder="请输入抽样位置B"></el-input>
  525. <el-input v-else :ref="`${row.xh-1}` + `b`" v-model="tableData[row.xh-1].samplingLocationB" @keyup.enter.native="nextFocus2(row.xh-1)" placeholder="请输入抽样位置B"></el-input>
  526. </template>
  527. </el-table-column>
  528. <el-table-column prop="subDetailValue" header-align="center" align="center" :required="true" label="实测值" width="200">
  529. <template slot-scope="{row}">
  530. <el-input v-if="tableData[row.xh-1].isSubmit==='Y'" v-model="tableData[row.xh-1].subDetailValue" readonly placeholder="请输入实测值"></el-input>
  531. <el-input v-else :ref="`${row.xh-1}` + `c`" v-model="tableData[row.xh-1].subDetailValue" @keyup.enter.native="nextFocus3(row.xh-1)" placeholder="请输入实测值"></el-input>
  532. </template>
  533. </el-table-column>
  534. </el-table>
  535. </div>
  536. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  537. <el-button v-if="detailData.submitFlag !== 'Y'" type="primary" @click="saveSubDetailResult">保存</el-button>
  538. <el-button type="primary" @click="subDetailFlag = false">关闭</el-button>
  539. </el-footer>
  540. </el-dialog>
  541. <!-- 批量新增子明细操作-->
  542. <el-dialog title="批量新增" :close-on-click-modal="false" v-drag :visible.sync="batchHandleAddModalFlag" width="510px">
  543. <el-form :inline="true" label-position="top">
  544. <el-form-item :label="'默认抽样位置A'">
  545. <el-input v-model="batchAddData.samplingLocation" style="width: 150px"></el-input>
  546. </el-form-item>
  547. <el-form-item :label="'默认抽样位置B'">
  548. <el-input v-model="batchAddData.samplingLocationB" style="width: 150px"></el-input>
  549. </el-form-item>
  550. <el-form-item :label="'抽样数量'">
  551. <el-input type="number" v-model="batchAddData.samplingNumber" style="width: 150px"></el-input>
  552. </el-form-item>
  553. </el-form>
  554. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  555. <el-button type="primary" @click="batchHandleAddModal">保存</el-button>
  556. <el-button type="primary" @click="batchHandleAddModalFlag=false">关闭</el-button>
  557. </el-footer>
  558. </el-dialog>
  559. <!-- 检验模板 -->
  560. <el-dialog title="检验模板清单" :close-on-click-modal="false" v-drag :visible.sync="templateModelFlag" width="520px">
  561. <div class="rq">
  562. <el-form :inline="true" label-position="top" :model="templateData">
  563. <el-form-item :label="'模板编码'">
  564. <el-input v-model="templateData.templateId" clearable style="width: 120px"></el-input>
  565. </el-form-item>
  566. <el-form-item :label="'模板名称'">
  567. <el-input v-model="templateData.templateName" clearable style="width: 120px"></el-input>
  568. </el-form-item>
  569. <el-form-item :label="' '">
  570. <el-button type="primary" @click="queryTemplateList">查询</el-button>
  571. </el-form-item>
  572. </el-form>
  573. <el-table
  574. :height="300"
  575. :data="templateList"
  576. @row-dblclick="getRowData"
  577. border
  578. style="width: 100%;">
  579. <el-table-column
  580. v-for="(item,index) in templateDetailList" :key="index"
  581. :sortable="item.columnSortable"
  582. :prop="item.columnProp"
  583. :header-align="item.headerAlign"
  584. :show-overflow-tooltip="item.showOverflowTooltip"
  585. :align="item.align"
  586. :fixed="item.fixed==''?false:item.fixed"
  587. :min-width="item.columnWidth"
  588. :label="item.columnLabel">
  589. <template slot-scope="scope">
  590. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  591. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  592. </template>
  593. </el-table-column>
  594. </el-table>
  595. </div>
  596. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  597. <el-button type="primary" @click="templateModelFlag=false">关闭</el-button>
  598. </el-footer>
  599. </el-dialog>
  600. <!-- 物料 -->
  601. <el-dialog title="物料清单" :close-on-click-modal="false" v-drag :visible.sync="partModelFlag" width="520px">
  602. <div class="rq">
  603. <el-form :inline="true" label-position="top" :model="partData">
  604. <el-form-item :label="'物料编码'">
  605. <el-input v-model="partData.partNo" clearable style="width: 115px"></el-input>
  606. </el-form-item>
  607. <el-form-item :label="'物料名称'">
  608. <el-input v-model="partData.partDesc" clearable style="width: 115px"></el-input>
  609. </el-form-item>
  610. <el-form-item :label="'SKU'">
  611. <el-input v-model="partData.sku" clearable style="width: 79px"></el-input>
  612. </el-form-item>
  613. <el-form-item :label="'PN'">
  614. <el-input v-model="partData.cinvSourceCode" clearable style="width: 79px"></el-input>
  615. </el-form-item>
  616. <el-form-item :label="' '">
  617. <el-button type="primary" @click="queryPartList">查询</el-button>
  618. </el-form-item>
  619. </el-form>
  620. <el-table
  621. :height="300"
  622. :data="partList"
  623. @row-dblclick="getRowData2"
  624. border
  625. style="width: 100%;">
  626. <el-table-column
  627. v-for="(item,index) in partDetailList" :key="index"
  628. :sortable="item.columnSortable"
  629. :prop="item.columnProp"
  630. :header-align="item.headerAlign"
  631. :show-overflow-tooltip="item.showOverflowTooltip"
  632. :align="item.align"
  633. :fixed="item.fixed==''?false:item.fixed"
  634. :min-width="item.columnWidth"
  635. :label="item.columnLabel">
  636. <template slot-scope="scope">
  637. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  638. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  639. </template>
  640. </el-table-column>
  641. </el-table>
  642. </div>
  643. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  644. <el-button type="primary" @click="partModelFlag=false">关闭</el-button>
  645. </el-footer>
  646. </el-dialog>
  647. <!-- 文件清单 -->
  648. <el-dialog title="文件清单" :close-on-click-modal="false" v-drag :visible.sync="fileFlag" width="800px">
  649. <el-form :inline="true" label-position="top">
  650. <el-form-item v-if="detailInformationFlag">
  651. <el-button type="primary" @click="addUploadFileModal">上传文件</el-button>
  652. </el-form-item>
  653. </el-form>
  654. <el-table
  655. :height="350"
  656. :data="fileContentList"
  657. border
  658. style="width: 100%; ">
  659. <el-table-column
  660. v-for="(item,index) in fileColumnList" :key="index"
  661. :sortable="item.columnSortable"
  662. :prop="item.columnProp"
  663. :header-align="item.headerAlign"
  664. :show-overflow-tooltip="item.showOverflowTooltip"
  665. :align="item.align"
  666. :fixed="item.fixed==''?false:item.fixed"
  667. :min-width="item.columnWidth"
  668. :label="item.columnLabel">
  669. <template slot-scope="scope">
  670. <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
  671. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  672. </template>
  673. </el-table-column>
  674. <el-table-column
  675. fixed="right"
  676. header-align="center"
  677. align="center"
  678. width="100"
  679. label="操作">
  680. <template slot-scope="scope">
  681. <el-link style="cursor: pointer" @click="downloadFile(scope.row)">下载</el-link>
  682. <el-link style="cursor: pointer" @click="deleteFile(scope.row)">删除</el-link>
  683. </template>
  684. </el-table-column>
  685. </el-table>
  686. </el-dialog>
  687. <!-- 派工单号 -->
  688. <el-dialog title="派工单号" @close="closeDialog" :close-on-click-modal="false" v-drag :visible.sync="seqDetailFlag" width="952px" height="273px">
  689. <el-form :inline="true" label-position="top" :model="seqDetailData" style="margin-left: 7px;margin-top: -5px;">
  690. <el-form-item label="工单号">
  691. <el-input v-model="seqDetailData.orderNo" clearable style="width: 150px"></el-input>
  692. </el-form-item>
  693. <el-form-item label="派工单号">
  694. <el-input v-model="seqDetailData.seqNo" clearable style="width: 150px"></el-input>
  695. </el-form-item>
  696. <el-form-item label="SKU">
  697. <el-input v-model="seqDetailData.sku" clearable style="width: 150px"></el-input>
  698. </el-form-item>
  699. <el-form-item label="状态">
  700. <el-select v-model="seqDetailData.status" style="width: 100px" placeholder="请选择">
  701. <el-option label="下达" value="下达"></el-option>
  702. <el-option label="关闭" value="关闭"></el-option>
  703. </el-select>
  704. </el-form-item>
  705. </el-form>
  706. <el-form :inline="true" label-position="top" :model="seqDetailData" style="margin-left: 7px;margin-top: -5px;">
  707. <el-form-item label="物料编码">
  708. <el-input v-model="seqDetailData.partNo" clearable style="width: 150px"></el-input>
  709. </el-form-item>
  710. <el-form-item label="物料名称">
  711. <el-input v-model="seqDetailData.partDesc" clearable style="width: 315px"></el-input>
  712. </el-form-item>
  713. <el-form-item label="工序">
  714. <el-input v-model="seqDetailData.operationDesc" clearable style="width: 150px"></el-input>
  715. </el-form-item>
  716. <el-form-item>
  717. <el-button type="primary" @click="searchSeqInfo" style="margin-top: 24px">查询</el-button>
  718. </el-form-item>
  719. </el-form>
  720. <el-table
  721. :height="400"
  722. :data="seqInfoList"
  723. @row-dblclick="getRowData1"
  724. border
  725. style="width: 100%;">
  726. <el-table-column
  727. v-for="(item,index) in seqDetailColumnList" :key="index"
  728. :sortable="item.columnSortable"
  729. :prop="item.columnProp"
  730. :header-align="item.headerAlign"
  731. :show-overflow-tooltip="item.showOverflowTooltip"
  732. :align="item.align"
  733. :fixed="item.fixed==''?false:item.fixed"
  734. :min-width="item.columnWidth"
  735. :label="item.columnLabel">
  736. </el-table-column>
  737. </el-table>
  738. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  739. <el-button type="primary" @click="seqDetailFlag = false">关闭</el-button>
  740. </el-footer>
  741. </el-dialog>
  742. <!-- 机修人员清单 -->
  743. <el-dialog title="人员清单" :close-on-click-modal="false" v-drag :visible.sync="operatorModelFlag" width="820px">
  744. <div class="rq">
  745. <el-form :inline="true" label-position="top" :model="operatorData">
  746. <el-form-item v-if="operatorData.flag !== '2'" :label="'所属角色'">
  747. <el-select v-model="operatorData.roleId" placeholder="请选择" style="width: 120px">
  748. <el-option
  749. v-for = "i in roleList"
  750. :key = "i.roleId"
  751. :label = "i.roleName"
  752. :value = "i.roleId">
  753. </el-option>
  754. </el-select>
  755. </el-form-item>
  756. <el-form-item :label="'用户编码'">
  757. <el-input v-model="operatorData.adminID" clearable style="width: 120px"></el-input>
  758. </el-form-item>
  759. <el-form-item :label="'用户姓名'">
  760. <el-input v-model="operatorData.adminName" clearable style="width: 120px"></el-input>
  761. </el-form-item>
  762. <el-form-item :label="' '">
  763. <el-button type="primary" @click="getOperatorList2">查询</el-button>
  764. </el-form-item>
  765. </el-form>
  766. <el-table
  767. :height="300"
  768. :data="operatorList"
  769. ref="operatorTable"
  770. @row-click="operatorClickRow"
  771. @selection-change="selectionChangeHandle2"
  772. border
  773. style="width: 100%;">
  774. <el-table-column
  775. type="selection"
  776. header-align="center"
  777. align="center"
  778. width="50">
  779. </el-table-column>
  780. <el-table-column
  781. v-for="(item,index) in operatorDetailList" :key="index"
  782. :sortable="item.columnSortable"
  783. :prop="item.columnProp"
  784. :header-align="item.headerAlign"
  785. :show-overflow-tooltip="item.showOverflowTooltip"
  786. :align="item.align"
  787. :fixed="item.fixed==''?false:item.fixed"
  788. :min-width="item.columnWidth"
  789. :label="item.columnLabel">
  790. <template slot-scope="scope">
  791. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  792. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  793. </template>
  794. </el-table-column>
  795. </el-table>
  796. </div>
  797. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  798. <el-button type="primary" @click="confirmOperator">确认</el-button>
  799. <el-button type="primary" @click="operatorModelFlag = false">关闭</el-button>
  800. </el-footer>
  801. </el-dialog>
  802. <!-- 配置项目设备 -->
  803. <el-dialog title="检验项目" :close-on-click-modal="false" v-drag :visible.sync="ItemObjectModelFlag" width="666px">
  804. <div class="rq">
  805. <el-table
  806. :height="350"
  807. :data="itemObjectList"
  808. border
  809. style="width: 100%">
  810. <el-table-column
  811. v-for="(item,index) in itemObjectColumnList" :key="index"
  812. :sortable="item.columnSortable"
  813. :prop="item.columnProp"
  814. :header-align="item.headerAlign"
  815. :show-overflow-tooltip="item.showOverflowTooltip"
  816. :align="item.align"
  817. :fixed="item.fixed===''?false:item.fixed"
  818. :min-width="item.columnWidth"
  819. :label="item.columnLabel">
  820. <template slot-scope="scope">
  821. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  822. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  823. </template>
  824. </el-table-column>
  825. <el-table-column
  826. header-align="center"
  827. align="center"
  828. min-width="100"
  829. label="设备">
  830. <template slot-scope="scope">
  831. <el-select v-model="scope.row.equipmentNo" style="height: 11px" placeholder="请选择设备">
  832. <el-option
  833. v-for = "i in scope.row.objectList"
  834. :key = "i.objectID"
  835. :label = "i.objectDesc"
  836. :value = "i.objectID">
  837. </el-option>
  838. </el-select>
  839. </template>
  840. </el-table-column>
  841. </el-table>
  842. </div>
  843. <el-footer style="height:35px;margin-top: 15px;text-align:center">
  844. <el-button type="primary" @click="actionModal2">保存</el-button>
  845. <el-button type="primary" @click="ItemObjectModelFlag=false">关闭</el-button>
  846. </el-footer>
  847. </el-dialog>
  848. <!-- chooseList模态框 -->
  849. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  850. <!-- 上传文件的modal -->
  851. <qcFAIUploadFile ref="qcFAIUploadFile" @refreshPageTables="()=>{this.getFileContentData(this.detailData)}" v-drag></qcFAIUploadFile>
  852. <!-- 上传文件的modal -->
  853. <comQcItemImageUploadFile ref="comQcItemImageUploadFile" @refreshPageTables2="getInspectionFormData" v-drag></comQcItemImageUploadFile>
  854. <!-- 子明细导入 -->
  855. <subDetailUpload @changeEvent="changeMyString" ref="subDetailUpload" @refreshPageTables="getInspectionFormData" v-drag></subDetailUpload>
  856. </div>
  857. </template>
  858. <script>
  859. import {
  860. qcFQCInspectionSearch, // 查询FAI的检验记录
  861. fqcDetailSearch, // 查询FAI的检验明细
  862. inspectorSearch, // 查询检验员
  863. fqcRecordDelete, // 删除检验记录
  864. saveFQCDetailedRecord, // 新增明细信息
  865. saveFQCSubmitResult, // 审核
  866. saveFQCSubDetailed, // 新增子明细信息
  867. selectFQCSubDetailedRecord, // 子明细记录信息查询
  868. checkFQCIsSubmit, // 检查是否已提交
  869. getResourceList, // 查询机台列表
  870. getOperationList, // 查询工序列表
  871. getPartList, // 查询物料列表
  872. saveFQCInspection, // 新增FQC检验
  873. queryController, // 检查动控
  874. queryTemplateList, // 获取检验模板列表
  875. getPartInformation, // 获取物料信息
  876. getSpecialOperationList, // 获取特殊工序列表
  877. inspectionTypeSearch, // 搜索所有检验类型
  878. disposalMeasuresSearch, // 获取处置措施列表
  879. getRollNo, // 模糊查询标签号
  880. rollNoEnter, // 标签号回车事件
  881. queryPartList, // 查询物料集合
  882. umSearch, // 查询单位列表
  883. getSiteAndBuByUserName,
  884. searchSeqInfo, // 查询派工单号
  885. actionFQCInspection, // 开始检验
  886. dataAcquisition, // 数据采集
  887. getResponsibleOperatorList, // 获取责任人列表
  888. getFQCItemObjectList, // 查询项目设备
  889. dataAcquisitionByItem, // 根据项目数据采集
  890. } from "@/api/qc/qc.js"
  891. import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
  892. import Chooselist from '@/views/modules/common/Chooselist_eam'
  893. import {getFileContentList, downLoadObjectFile} from '@/api/eam/eam_object_list.js'
  894. import {
  895. deleteObjectFile,
  896. getUserRoleList, // 获取用户角色列表
  897. getOperatorList
  898. } from '@/api/eam/eam.js'
  899. import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
  900. import qcFAIUploadFile from "./qc_FAI_upload_file"
  901. import comQcItemImageUploadFile from "./com_qc_itemImage_upload_file"
  902. import subDetailUpload from "./sub_detail_upload"
  903. /*上传文件的組件*/
  904. export default {
  905. components: {
  906. Chooselist,
  907. qcFAIUploadFile,
  908. comQcItemImageUploadFile,
  909. subDetailUpload
  910. },
  911. watch: {
  912. detailList: {
  913. deep: true,
  914. handler: function (newV, oldV) {
  915. let num = 0
  916. for (let i = 0; i < this.detailList.length; i++) {
  917. if (this.detailList[i].itemResult === 'N') {
  918. num++
  919. }
  920. }
  921. this.detailData.unqualifiedQty = num
  922. }
  923. },
  924. },
  925. data () {
  926. return {
  927. loadFlag: false,
  928. inspectionNo: '',
  929. fileFlag: false,
  930. fileContentList: [],
  931. // 是否收藏
  932. favorite: false,
  933. // 导出 start
  934. exportData: [],
  935. exportName: "FAI检验录入" + this.dayjs().format('YYYYMMDDHHmmss'),
  936. exportHeader: ["FAI检验录入"],
  937. exportFooter: [],
  938. exportList: [],
  939. // 导出 end
  940. checkCompletedData: {
  941. inspectionNo: ''
  942. },
  943. submitData: {
  944. site: '',
  945. inspectionNo: '',
  946. submit_flag: '',
  947. inspectionResult: '',
  948. submitList: [],
  949. },
  950. tagNo:'',
  951. searchData: {
  952. site: '',
  953. userName: this.$store.state.user.name,
  954. inspectionNo: '',
  955. state: '待检验',
  956. inspectionResult: '',
  957. orderNo: '',
  958. operationDesc: '',
  959. buDesc: '',
  960. startDate: '',
  961. endDate: '',
  962. partNo: '',
  963. startDate2: '',
  964. endDate2: '',
  965. partDesc: '',
  966. cinvSourceCode: '',
  967. sku: '',
  968. disposalMeasures: '',
  969. page: 1,
  970. limit: 10,
  971. seqNo: '',
  972. states: ['未开始','待检验'],
  973. },
  974. pageIndex: 1,
  975. pageSize: 20,
  976. totalPage: 0,
  977. height: 200,
  978. dataList: [],
  979. dataListSelections: [],
  980. modalData: {
  981. flag: '',
  982. site: '',
  983. bu: '',
  984. inspectionNo: '',
  985. partNo: '',
  986. partDesc: '',
  987. inspectionTypeNo: '107',
  988. inspectionTypeName: '',
  989. inspectorNo: '',
  990. inspectorName: '',
  991. submit_flag: '',
  992. seqNo: '',
  993. batchRollNo: '',
  994. spec: '',
  995. sku: '',
  996. qtyrequired: '',
  997. lotsize:'',
  998. operationDesc:'',
  999. specialRequirements: '',
  1000. templateId: '',
  1001. templateName: '',
  1002. specialTaskFlag: '',
  1003. workCenterNo: '',
  1004. rollNo: '',
  1005. umId: '',
  1006. umName: '',
  1007. sjzs: ''
  1008. },
  1009. // 展示列集
  1010. columnList1: [
  1011. {
  1012. userId: this.$store.state.user.name,
  1013. functionId: 301015,
  1014. serialNumber: '301015Table1BuDesc',
  1015. tableId: "301015Table1",
  1016. tableName: "FQC检验记录表",
  1017. columnProp: 'buDesc',
  1018. headerAlign: "center",
  1019. align: "center",
  1020. columnLabel: 'BU',
  1021. columnHidden: false,
  1022. columnImage: false,
  1023. columnSortable: false,
  1024. sortLv: 0,
  1025. status: true,
  1026. fixed: '',
  1027. columnWidth: 100,
  1028. },
  1029. {
  1030. userId: this.$store.state.user.name,
  1031. functionId: 301015,
  1032. serialNumber: '301015Table1InspectionNo',
  1033. tableId: "301015Table1",
  1034. tableName: "FQC检验记录表",
  1035. columnProp: 'inspectionNo',
  1036. headerAlign: "center",
  1037. align: "center",
  1038. columnLabel: '检验单号',
  1039. columnHidden: false,
  1040. columnImage: false,
  1041. columnSortable: false,
  1042. sortLv: 0,
  1043. status: true,
  1044. fixed: '',
  1045. columnWidth: 120,
  1046. },
  1047. {
  1048. userId: this.$store.state.user.name,
  1049. functionId: 301015,
  1050. serialNumber: '301015Table1BatchRollNo',
  1051. tableId: "301015Table1",
  1052. tableName: "FQC检验记录表",
  1053. columnProp: 'batchRollNo',
  1054. headerAlign: "center",
  1055. align: "center",
  1056. columnLabel: '老卷号',
  1057. columnHidden: false,
  1058. columnImage: false,
  1059. columnSortable: false,
  1060. sortLv: 0,
  1061. status: true,
  1062. fixed: '',
  1063. columnWidth: 150,
  1064. },
  1065. {
  1066. userId: this.$store.state.user.name,
  1067. functionId: 301015,
  1068. serialNumber: '301015Table1RollNo',
  1069. tableId: "301015Table1",
  1070. tableName: "FQC检验记录表",
  1071. columnProp: 'rollNo',
  1072. headerAlign: "center",
  1073. align: "center",
  1074. columnLabel: '标签条码',
  1075. columnHidden: false,
  1076. columnImage: false,
  1077. columnSortable: false,
  1078. sortLv: 0,
  1079. status: true,
  1080. fixed: '',
  1081. columnWidth: 150,
  1082. },
  1083. {
  1084. userId: this.$store.state.user.name,
  1085. functionId: 301015,
  1086. serialNumber: '301015Table1InspectionResult',
  1087. tableId: "301015Table1",
  1088. tableName: "FQC检验记录表",
  1089. columnProp: 'inspectionResult',
  1090. headerAlign: "center",
  1091. align: "center",
  1092. columnLabel: '检验结论',
  1093. columnHidden: false,
  1094. columnImage: false,
  1095. columnSortable: false,
  1096. sortLv: 0,
  1097. status: true,
  1098. fixed: '',
  1099. columnWidth: 100,
  1100. },
  1101. {
  1102. userId: this.$store.state.user.name,
  1103. functionId: 301015,
  1104. serialNumber: '301015Table1DisposalMeasures',
  1105. tableId: "301015Table1",
  1106. tableName: "FQC检验记录表",
  1107. columnProp: 'disposalMeasures',
  1108. headerAlign: "center",
  1109. align: "center",
  1110. columnLabel: '处置措施',
  1111. columnHidden: false,
  1112. columnImage: false,
  1113. columnSortable: false,
  1114. sortLv: 0,
  1115. status: true,
  1116. fixed: '',
  1117. columnWidth: 100,
  1118. },
  1119. {
  1120. userId: this.$store.state.user.name,
  1121. functionId: 301015,
  1122. serialNumber: '301015Table1TaskDate',
  1123. tableId: "301015Table1",
  1124. tableName: "FQC检验记录表",
  1125. columnProp: 'taskDate',
  1126. headerAlign: "center",
  1127. align: "center",
  1128. columnLabel: '送检日期',
  1129. columnHidden: false,
  1130. columnImage: false,
  1131. columnSortable: false,
  1132. sortLv: 0,
  1133. status: true,
  1134. fixed: '',
  1135. columnWidth: 130,
  1136. },
  1137. {
  1138. userId: this.$store.state.user.name,
  1139. functionId: 301015,
  1140. serialNumber: '301015Table1InspectionCycle',
  1141. tableId: "301015Table1",
  1142. tableName: "FQC检验记录表",
  1143. columnProp: 'inspectionCycle',
  1144. headerAlign: "center",
  1145. align: "right",
  1146. columnLabel: '检验周期(h)',
  1147. columnHidden: false,
  1148. columnImage: false,
  1149. columnSortable: false,
  1150. sortLv: 0,
  1151. status: true,
  1152. fixed: '',
  1153. columnWidth: 100,
  1154. },
  1155. {
  1156. userId: this.$store.state.user.name,
  1157. functionId: 301015,
  1158. serialNumber: '301015Table1OrderNo',
  1159. tableId: "301015Table1",
  1160. tableName: "FQC检验记录表",
  1161. columnProp: 'orderNo',
  1162. headerAlign: "center",
  1163. align: "left",
  1164. columnLabel: '工单号',
  1165. columnHidden: false,
  1166. columnImage: false,
  1167. columnSortable: false,
  1168. sortLv: 0,
  1169. status: true,
  1170. fixed: '',
  1171. columnWidth: 150,
  1172. },
  1173. {
  1174. userId: this.$store.state.user.name,
  1175. functionId: 301015,
  1176. serialNumber: '301015Table1SeqNo',
  1177. tableId: "301015Table1",
  1178. tableName: "FQC检验记录表",
  1179. columnProp: 'seqNo',
  1180. headerAlign: "center",
  1181. align: "left",
  1182. columnLabel: '派工单号',
  1183. columnHidden: false,
  1184. columnImage: false,
  1185. columnSortable: false,
  1186. sortLv: 0,
  1187. status: true,
  1188. fixed: '',
  1189. columnWidth: 150,
  1190. },
  1191. {
  1192. userId: this.$store.state.user.name,
  1193. functionId: 301015,
  1194. serialNumber: '301015Table1OperationDesc',
  1195. tableId: "301015Table1",
  1196. tableName: "FQC检验记录表",
  1197. columnProp: 'operationDesc',
  1198. headerAlign: "center",
  1199. align: "left",
  1200. columnLabel: '工序',
  1201. columnHidden: false,
  1202. columnImage: false,
  1203. columnSortable: false,
  1204. sortLv: 0,
  1205. status: true,
  1206. fixed: '',
  1207. columnWidth: 120,
  1208. },
  1209. {
  1210. userId: this.$store.state.user.name,
  1211. functionId: 301015,
  1212. serialNumber: '301015Table1ResourceDesc',
  1213. tableId: "301015Table1",
  1214. tableName: "FQC检验记录表",
  1215. columnProp: 'resourceDesc',
  1216. headerAlign: "center",
  1217. align: "left",
  1218. columnLabel: '机台',
  1219. columnHidden: false,
  1220. columnImage: false,
  1221. columnSortable: false,
  1222. sortLv: 0,
  1223. status: true,
  1224. fixed: '',
  1225. columnWidth: 120,
  1226. },
  1227. {
  1228. userId: this.$store.state.user.name,
  1229. functionId: 301015,
  1230. serialNumber: '301015Table1PartNo',
  1231. tableId: "301015Table1",
  1232. tableName: "FQC检验记录表",
  1233. columnProp: 'partNo',
  1234. headerAlign: "center",
  1235. align: "center",
  1236. columnLabel: '物料编码',
  1237. columnHidden: false,
  1238. columnImage: false,
  1239. columnSortable: false,
  1240. sortLv: 0,
  1241. status: true,
  1242. fixed: '',
  1243. columnWidth: 120,
  1244. },
  1245. {
  1246. userId: this.$store.state.user.name,
  1247. functionId: 301015,
  1248. serialNumber: '301015Table1Spec',
  1249. tableId: "301015Table1",
  1250. tableName: "FQC检验记录表",
  1251. columnProp: 'spec',
  1252. headerAlign: "center",
  1253. align: "left",
  1254. columnLabel: '物料类别',
  1255. columnHidden: false,
  1256. columnImage: false,
  1257. columnSortable: false,
  1258. sortLv: 0,
  1259. status: true,
  1260. fixed: '',
  1261. columnWidth: 200,
  1262. },
  1263. {
  1264. userId: this.$store.state.user.name,
  1265. functionId: 301015,
  1266. serialNumber: '301015Table1CinvSourceCode',
  1267. tableId: "301015Table1",
  1268. tableName: "FQC检验记录表",
  1269. columnProp: 'cinvSourceCode',
  1270. headerAlign: "center",
  1271. align: "center",
  1272. columnLabel: 'PN',
  1273. columnHidden: false,
  1274. columnImage: false,
  1275. columnSortable: false,
  1276. sortLv: 0,
  1277. status: true,
  1278. fixed: '',
  1279. columnWidth: 120,
  1280. },
  1281. {
  1282. userId: this.$store.state.user.name,
  1283. functionId: 301015,
  1284. serialNumber: '301015Table1Sku',
  1285. tableId: "301015Table1",
  1286. tableName: "FQC检验记录表",
  1287. columnProp: 'sku',
  1288. headerAlign: "center",
  1289. align: "center",
  1290. columnLabel: 'SKU',
  1291. columnHidden: false,
  1292. columnImage: false,
  1293. columnSortable: false,
  1294. sortLv: 0,
  1295. status: true,
  1296. fixed: '',
  1297. columnWidth: 120,
  1298. },
  1299. {
  1300. userId: this.$store.state.user.name,
  1301. functionId: 301015,
  1302. serialNumber: '301015Table1PartDesc',
  1303. tableId: "301015Table1",
  1304. tableName: "FQC检验记录表",
  1305. columnProp: 'partDesc',
  1306. headerAlign: "center",
  1307. align: "left",
  1308. columnLabel: '物料名称',
  1309. columnHidden: false,
  1310. columnImage: false,
  1311. columnSortable: false,
  1312. sortLv: 0,
  1313. status: true,
  1314. fixed: '',
  1315. columnWidth: 300,
  1316. },
  1317. {
  1318. userId: this.$store.state.user.name,
  1319. functionId: 301015,
  1320. serialNumber: '301015Table1RollQty',
  1321. tableId: "301015Table1",
  1322. tableName: "FQC检验记录表",
  1323. columnProp: 'rollQty',
  1324. headerAlign: "center",
  1325. align: "right",
  1326. columnLabel: '送检数量',
  1327. columnHidden: false,
  1328. columnImage: false,
  1329. columnSortable: false,
  1330. sortLv: 0,
  1331. status: true,
  1332. fixed: '',
  1333. columnWidth: 100,
  1334. },
  1335. {
  1336. userId: this.$store.state.user.name,
  1337. functionId: 301015,
  1338. serialNumber: '301015Table1SamplingQty',
  1339. tableId: "301015Table1",
  1340. tableName: "FQC检验记录表",
  1341. columnProp: 'samplingQty',
  1342. headerAlign: "center",
  1343. align: "right",
  1344. columnLabel: '抽样数量',
  1345. columnHidden: false,
  1346. columnImage: false,
  1347. columnSortable: false,
  1348. sortLv: 0,
  1349. status: true,
  1350. fixed: '',
  1351. columnWidth: 100,
  1352. },
  1353. {
  1354. userId: this.$store.state.user.name,
  1355. functionId: 301015,
  1356. serialNumber: '301015Table1UmName',
  1357. tableId: "301015Table1",
  1358. tableName: "FQC检验记录表",
  1359. columnProp: 'umName',
  1360. headerAlign: "center",
  1361. align: "center",
  1362. columnLabel: '单位',
  1363. columnHidden: false,
  1364. columnImage: false,
  1365. columnSortable: false,
  1366. sortLv: 0,
  1367. status: true,
  1368. fixed: '',
  1369. columnWidth: 100,
  1370. },
  1371. {
  1372. userId: this.$store.state.user.name,
  1373. functionId: 301015,
  1374. serialNumber: '301015Table1InspectionRemark',
  1375. tableId: "301015Table1",
  1376. tableName: "FQC检验记录表",
  1377. columnProp: 'inspectionRemark',
  1378. headerAlign: "center",
  1379. align: "left",
  1380. columnLabel: '质检备注',
  1381. columnHidden: false,
  1382. columnImage: false,
  1383. columnSortable: false,
  1384. sortLv: 0,
  1385. status: true,
  1386. fixed: '',
  1387. columnWidth: 200,
  1388. },
  1389. {
  1390. userId: this.$store.state.user.name,
  1391. functionId: 301015,
  1392. serialNumber: '301015Table1DisposalRemark',
  1393. tableId: "301015Table1",
  1394. tableName: "FQC检验记录表",
  1395. columnProp: 'disposalRemark',
  1396. headerAlign: "center",
  1397. align: "left",
  1398. columnLabel: '处置说明',
  1399. columnHidden: false,
  1400. columnImage: false,
  1401. columnSortable: false,
  1402. sortLv: 0,
  1403. status: true,
  1404. fixed: '',
  1405. columnWidth: 200,
  1406. },
  1407. {
  1408. userId: this.$store.state.user.name,
  1409. functionId: 301015,
  1410. serialNumber: '301015Table1ActionDate',
  1411. tableId: "301015Table1",
  1412. tableName: "FQC检验记录表",
  1413. columnProp: 'actionDate',
  1414. headerAlign: "center",
  1415. align: "center",
  1416. columnLabel: '开始检验时间',
  1417. columnHidden: false,
  1418. columnImage: false,
  1419. columnSortable: false,
  1420. sortLv: 0,
  1421. status: true,
  1422. fixed: '',
  1423. columnWidth: 170,
  1424. },
  1425. {
  1426. userId: this.$store.state.user.name,
  1427. functionId: 301015,
  1428. serialNumber: '301015Table1InspectorDate',
  1429. tableId: "301015Table1",
  1430. tableName: "FQC检验记录表",
  1431. columnProp: 'inspectorDate',
  1432. headerAlign: "center",
  1433. align: "center",
  1434. columnLabel: '检验时间',
  1435. columnHidden: false,
  1436. columnImage: false,
  1437. columnSortable: false,
  1438. sortLv: 0,
  1439. status: true,
  1440. fixed: '',
  1441. columnWidth: 170,
  1442. },
  1443. {
  1444. userId: this.$store.state.user.name,
  1445. functionId: 301015,
  1446. serialNumber: '301015Table1InspectorName',
  1447. tableId: "301015Table1",
  1448. tableName: "FQC检验记录表",
  1449. columnProp: 'inspectorName',
  1450. headerAlign: "center",
  1451. align: "center",
  1452. columnLabel: '质检员',
  1453. columnHidden: false,
  1454. columnImage: false,
  1455. columnSortable: false,
  1456. sortLv: 0,
  1457. status: true,
  1458. fixed: '',
  1459. columnWidth: 100,
  1460. },
  1461. {
  1462. userId: this.$store.state.user.name,
  1463. functionId: 301015,
  1464. serialNumber: '301015Table1SpecialRequirements',
  1465. tableId: "301015Table1",
  1466. tableName: "FQC检验记录表",
  1467. columnProp: 'specialRequirements',
  1468. headerAlign: "center",
  1469. align: "left",
  1470. columnLabel: '特殊要求',
  1471. columnHidden: false,
  1472. columnImage: false,
  1473. columnSortable: false,
  1474. sortLv: 0,
  1475. status: true,
  1476. fixed: '',
  1477. columnWidth: 200,
  1478. },
  1479. ],
  1480. //项目清单
  1481. detailData: {
  1482. site: '',
  1483. buNo: '',
  1484. inspectionNo:'',
  1485. partNo:'',
  1486. partDesc:'',
  1487. rollQty:'',
  1488. samplingQty: '',
  1489. unqualifiedQty: 0,
  1490. unqualifiedQuantity:'',
  1491. disposalMeasures:'',
  1492. disposalRemark: '',
  1493. inspectionResult: '',
  1494. inspectorNo: '',
  1495. inspectorName: '',
  1496. inspectionRemark: '',
  1497. submitFlag: '',
  1498. cinvSourceCode: '',
  1499. sku: '',
  1500. spec: '',
  1501. umId: '',
  1502. umName: '',
  1503. operator: '',
  1504. operatorName: '',
  1505. responsiblePerson: '',
  1506. responsiblePersonName: ''
  1507. },
  1508. detailInformationFlag: false,
  1509. detailList: [],
  1510. saveInformationData: {
  1511. site: '',
  1512. buNo: '',
  1513. inspectionNo:'',
  1514. disposalMeasures: '',
  1515. disposalRemark: '',
  1516. inspectorNo: '',
  1517. inspectionRemark: '',
  1518. samplingQty: '',
  1519. rollQty: '',
  1520. itemList:[],
  1521. unqualifiedQty: '',
  1522. partNo: '',
  1523. partDesc: '',
  1524. operator: '',
  1525. operatorName: '',
  1526. responsiblePerson: '',
  1527. responsiblePersonName: '',
  1528. subDetailList: []
  1529. },
  1530. detailColumnList: [
  1531. {
  1532. userId: this.$store.state.user.name,
  1533. functionId: 301015,
  1534. serialNumber: '301015Table2ItemNo',
  1535. tableId: "301015Table2",
  1536. tableName: "检验单明细表",
  1537. columnProp: 'itemNo',
  1538. headerAlign: "center",
  1539. align: "center",
  1540. columnLabel: '检验项目编码',
  1541. columnHidden: false,
  1542. columnImage: false,
  1543. columnSortable: false,
  1544. sortLv: 0,
  1545. status: true,
  1546. fixed: '',
  1547. columnWidth: 120,
  1548. },
  1549. {
  1550. userId: this.$store.state.user.name,
  1551. functionId: 301015,
  1552. serialNumber: '301015Table2ItemDesc',
  1553. tableId: "301015Table2",
  1554. tableName: "检验单明细表",
  1555. columnProp: 'itemDesc',
  1556. headerAlign: "center",
  1557. align: "left",
  1558. columnLabel: '检验项目',
  1559. columnHidden: false,
  1560. columnImage: false,
  1561. columnSortable: false,
  1562. sortLv: 0,
  1563. status: true,
  1564. fixed: '',
  1565. columnWidth: 150,
  1566. },
  1567. {
  1568. userId: this.$store.state.user.name,
  1569. functionId: 301015,
  1570. serialNumber: '301015Table2SamplingLevelDesc',
  1571. tableId: "301015Table2",
  1572. tableName: "检验单明细表",
  1573. columnProp: 'samplingLevelDesc',
  1574. headerAlign: "center",
  1575. align: "left",
  1576. columnLabel: '检验水平',
  1577. columnHidden: false,
  1578. columnImage: false,
  1579. columnSortable: false,
  1580. sortLv: 0,
  1581. status: true,
  1582. fixed: '',
  1583. columnWidth: 120,
  1584. },
  1585. {
  1586. userId: this.$store.state.user.name,
  1587. functionId: 301015,
  1588. serialNumber: '301015Table2SamplingProgrammeDesc',
  1589. tableId: "301015Table2",
  1590. tableName: "检验单明细表",
  1591. columnProp: 'samplingProgrammeDesc',
  1592. headerAlign: "center",
  1593. align: "left",
  1594. columnLabel: '检验方案',
  1595. columnHidden: false,
  1596. columnImage: false,
  1597. columnSortable: false,
  1598. sortLv: 0,
  1599. status: true,
  1600. fixed: '',
  1601. columnWidth: 120,
  1602. },
  1603. {
  1604. userId: this.$store.state.user.name,
  1605. functionId: 301015,
  1606. serialNumber: '301015Table2MethodName',
  1607. tableId: "301015Table2",
  1608. tableName: "检验单明细表",
  1609. columnProp: 'methodName',
  1610. headerAlign: "center",
  1611. align: "left",
  1612. columnLabel: '检验方法',
  1613. columnHidden: false,
  1614. columnImage: false,
  1615. columnSortable: false,
  1616. sortLv: 0,
  1617. status: true,
  1618. fixed: '',
  1619. columnWidth: 120,
  1620. },
  1621. {
  1622. userId: this.$store.state.user.name,
  1623. functionId: 301015,
  1624. serialNumber: '301015Table2MethodRemark',
  1625. tableId: "301015Table2",
  1626. tableName: "检验单明细表",
  1627. columnProp: 'methodRemark',
  1628. headerAlign: "center",
  1629. align: "left",
  1630. columnLabel: '检验方法说明',
  1631. columnHidden: false,
  1632. columnImage: false,
  1633. columnSortable: false,
  1634. sortLv: 0,
  1635. status: true,
  1636. fixed: '',
  1637. columnWidth: 200,
  1638. },
  1639. {
  1640. userId: this.$store.state.user.name,
  1641. functionId: 301015,
  1642. serialNumber: '301015Table2ObjectDesc',
  1643. tableId: "301015Table2",
  1644. tableName: "检验单明细表",
  1645. columnProp: 'objectDesc',
  1646. headerAlign: "center",
  1647. align: "center",
  1648. columnLabel: '检测仪器',
  1649. columnHidden: false,
  1650. columnImage: false,
  1651. columnSortable: false,
  1652. sortLv: 0,
  1653. status: true,
  1654. fixed: '',
  1655. columnWidth: 120,
  1656. },
  1657. {
  1658. userId: this.$store.state.user.name,
  1659. functionId: 301015,
  1660. serialNumber: '301015Table2Aql',
  1661. tableId: "301015Table2",
  1662. tableName: "检验单明细表",
  1663. columnProp: 'aql',
  1664. headerAlign: "center",
  1665. align: "right",
  1666. columnLabel: 'AQL',
  1667. columnHidden: false,
  1668. columnImage: false,
  1669. columnSortable: false,
  1670. sortLv: 0,
  1671. status: true,
  1672. fixed: '',
  1673. columnWidth: 100,
  1674. },
  1675. {
  1676. userId: this.$store.state.user.name,
  1677. functionId: 301015,
  1678. serialNumber: '301015Table2Ac',
  1679. tableId: "301015Table2",
  1680. tableName: "检验单明细表",
  1681. columnProp: 'ac',
  1682. headerAlign: "center",
  1683. align: "right",
  1684. columnLabel: 'AC',
  1685. columnHidden: false,
  1686. columnImage: false,
  1687. columnSortable: false,
  1688. sortLv: 0,
  1689. status: true,
  1690. fixed: '',
  1691. columnWidth: 100,
  1692. },
  1693. {
  1694. userId: this.$store.state.user.name,
  1695. functionId: 301015,
  1696. serialNumber: '301015Table2Re',
  1697. tableId: "301015Table2",
  1698. tableName: "检验单明细表",
  1699. columnProp: 're',
  1700. headerAlign: "center",
  1701. align: "right",
  1702. columnLabel: 'RE',
  1703. columnHidden: false,
  1704. columnImage: false,
  1705. columnSortable: false,
  1706. sortLv: 0,
  1707. status: true,
  1708. fixed: '',
  1709. columnWidth: 100,
  1710. },
  1711. {
  1712. userId: this.$store.state.user.name,
  1713. functionId: 301015,
  1714. serialNumber: '301015Table2DefaultValue',
  1715. tableId: "301015Table2",
  1716. tableName: "检验单明细表",
  1717. columnProp: 'defaultValue',
  1718. headerAlign: "center",
  1719. align: "right",
  1720. columnLabel: '标准值',
  1721. columnHidden: false,
  1722. columnImage: false,
  1723. columnSortable: false,
  1724. sortLv: 0,
  1725. status: true,
  1726. fixed: '',
  1727. columnWidth: 100,
  1728. },
  1729. {
  1730. userId: this.$store.state.user.name,
  1731. functionId: 301015,
  1732. serialNumber: '301015Table2MaxValue',
  1733. tableId: "301015Table2",
  1734. tableName: "检验单明细表",
  1735. columnProp: 'maxValue',
  1736. headerAlign: "center",
  1737. align: "right",
  1738. columnLabel: '上限值',
  1739. columnHidden: false,
  1740. columnImage: false,
  1741. columnSortable: false,
  1742. sortLv: 0,
  1743. status: true,
  1744. fixed: '',
  1745. columnWidth: 100,
  1746. },
  1747. {
  1748. userId: this.$store.state.user.name,
  1749. functionId: 301015,
  1750. serialNumber: '301015Table2MinValue',
  1751. tableId: "301015Table2",
  1752. tableName: "检验单明细表",
  1753. columnProp: 'minValue',
  1754. headerAlign: "center",
  1755. align: "right",
  1756. columnLabel: '下限值',
  1757. columnHidden: false,
  1758. columnImage: false,
  1759. columnSortable: false,
  1760. sortLv: 0,
  1761. status: true,
  1762. fixed: '',
  1763. columnWidth: 100,
  1764. },
  1765. {
  1766. userId: this.$store.state.user.name,
  1767. functionId: 301015,
  1768. serialNumber: '301015Table2ValueType',
  1769. tableId: "301015Table2",
  1770. tableName: "检验单明细表",
  1771. columnProp: 'valueType',
  1772. headerAlign: "center",
  1773. align: "center",
  1774. columnLabel: '检测值类型',
  1775. columnHidden: false,
  1776. columnImage: false,
  1777. columnSortable: false,
  1778. sortLv: 0,
  1779. status: true,
  1780. fixed: '',
  1781. columnWidth: 100,
  1782. },
  1783. ],
  1784. fileColumnList: [
  1785. {
  1786. columnProp: 'fileName',
  1787. headerAlign: "center",
  1788. align: "center",
  1789. columnLabel: '文件名称',
  1790. columnHidden: false,
  1791. columnImage: false,
  1792. columnSortable: false,
  1793. sortLv: 0,
  1794. status: true,
  1795. fixed: '',
  1796. },
  1797. {
  1798. columnProp: 'createdBy',
  1799. headerAlign: "center",
  1800. align: 'center',
  1801. columnLabel: '上传人',
  1802. columnHidden: false,
  1803. columnImage: false,
  1804. columnSortable: true,
  1805. sortLv: 0,
  1806. status: true,
  1807. fixed: false
  1808. },
  1809. {
  1810. columnProp: 'createDate',
  1811. headerAlign: "center",
  1812. align: 'center',
  1813. columnLabel: '上传时间',
  1814. columnHidden: false,
  1815. columnImage: false,
  1816. columnSortable: true,
  1817. sortLv: 0,
  1818. status: true,
  1819. fixed: false
  1820. },
  1821. {
  1822. columnProp: 'orderRef3',
  1823. headerAlign: "center",
  1824. align: 'center',
  1825. columnLabel: '备注',
  1826. columnHidden: false,
  1827. columnImage: false,
  1828. columnSortable: true,
  1829. sortLv: 0,
  1830. status: true,
  1831. fixed: false
  1832. },
  1833. ],
  1834. // 派工单号
  1835. seqInfoList: [],
  1836. seqDetailFlag: false,
  1837. seqDetailData: {
  1838. orderNo: '',
  1839. seqNo: '',
  1840. sku: '',
  1841. partNo: '',
  1842. partDesc: '',
  1843. operationDesc: '',
  1844. qtyrequired: '',
  1845. lotsize: '',
  1846. status: '下达'
  1847. },
  1848. seqDetailColumnList: [
  1849. {
  1850. userId: this.$store.state.user.name,
  1851. functionId: 301015,
  1852. serialNumber: '301015Table3OrderNo',
  1853. tableId: "301015Table3",
  1854. tableName: "任务新增-派工单",
  1855. fixed: '',
  1856. columnWidth: 80,
  1857. columnProp: 'orderNo',
  1858. headerAlign: "center",
  1859. align: "center",
  1860. columnLabel: '工单号',
  1861. columnHidden: false,
  1862. columnImage: false,
  1863. columnSortable: false,
  1864. sortLv: 0,
  1865. status: true,
  1866. },
  1867. {
  1868. userId: this.$store.state.user.name,
  1869. functionId: 301015,
  1870. serialNumber: '301015Table3SeqNo',
  1871. tableId: "301015Table3",
  1872. tableName: "任务新增-派工单",
  1873. fixed: '',
  1874. columnWidth: 80,
  1875. columnProp: 'seqNo',
  1876. headerAlign: "center",
  1877. align: "center",
  1878. columnLabel: '派工单号',
  1879. columnHidden: false,
  1880. columnImage: false,
  1881. columnSortable: false,
  1882. sortLv: 0,
  1883. status: true,
  1884. },
  1885. {
  1886. userId: this.$store.state.user.name,
  1887. functionId: 301015,
  1888. serialNumber: '301015Table3Sku',
  1889. tableId: "301015Table3",
  1890. tableName: "任务新增-派工单",
  1891. fixed: '',
  1892. columnWidth: 80,
  1893. columnProp: 'sku',
  1894. headerAlign: "center",
  1895. align: "center",
  1896. columnLabel: 'SKU',
  1897. columnHidden: false,
  1898. columnImage: false,
  1899. columnSortable: false,
  1900. sortLv: 0,
  1901. status: true,
  1902. },
  1903. {
  1904. userId: this.$store.state.user.name,
  1905. functionId: 301015,
  1906. serialNumber: '301015Table3PartNo',
  1907. tableId: "301015Table3",
  1908. tableName: "任务新增-派工单",
  1909. fixed: '',
  1910. columnWidth: 80,
  1911. columnProp: 'partNo',
  1912. headerAlign: "center",
  1913. align: "center",
  1914. columnLabel: '物料编码',
  1915. columnHidden: false,
  1916. columnImage: false,
  1917. columnSortable: false,
  1918. sortLv: 0,
  1919. status: true,
  1920. },
  1921. {
  1922. userId: this.$store.state.user.name,
  1923. functionId: 301015,
  1924. serialNumber: '301015Table3PartDesc',
  1925. tableId: "301015Table3",
  1926. tableName: "任务新增-派工单",
  1927. fixed: '',
  1928. columnWidth: 80,
  1929. columnProp: 'partDesc',
  1930. headerAlign: "center",
  1931. align: "center",
  1932. columnLabel: '物料名称',
  1933. columnHidden: false,
  1934. columnImage: false,
  1935. columnSortable: false,
  1936. sortLv: 0,
  1937. status: true,
  1938. },
  1939. {
  1940. userId: this.$store.state.user.name,
  1941. functionId: 301015,
  1942. serialNumber: '301015Table3Lotsize',
  1943. tableId: "301015Table3",
  1944. tableName: "任务新增-派工单",
  1945. fixed: '',
  1946. columnWidth: 80,
  1947. columnProp: 'lotsize',
  1948. headerAlign: "center",
  1949. align: "center",
  1950. columnLabel: '工单数量',
  1951. columnHidden: false,
  1952. columnImage: false,
  1953. columnSortable: false,
  1954. sortLv: 0,
  1955. status: true,
  1956. },
  1957. {
  1958. userId: this.$store.state.user.name,
  1959. functionId: 301015,
  1960. serialNumber: '301015Table3Qtyrequired',
  1961. tableId: "301015Table3",
  1962. tableName: "任务新增-派工单",
  1963. fixed: '',
  1964. columnWidth: 80,
  1965. columnProp: 'qtyrequired',
  1966. headerAlign: "center",
  1967. align: "center",
  1968. columnLabel: '派工数量',
  1969. columnHidden: false,
  1970. columnImage: false,
  1971. columnSortable: false,
  1972. sortLv: 0,
  1973. status: true,
  1974. },
  1975. {
  1976. userId: this.$store.state.user.name,
  1977. functionId: 301015,
  1978. serialNumber: '301015Table3OperationDesc',
  1979. tableId: "301015Table3",
  1980. tableName: "任务新增-派工单",
  1981. fixed: '',
  1982. columnWidth: 80,
  1983. columnProp: 'operationDesc',
  1984. headerAlign: "center",
  1985. align: "center",
  1986. columnLabel: '工序',
  1987. columnHidden: false,
  1988. columnImage: false,
  1989. columnSortable: false,
  1990. sortLv: 0,
  1991. status: true,
  1992. }
  1993. ],
  1994. // 子明细数据对象
  1995. tableData: [],
  1996. checkedDetail: [],
  1997. subDetailFlag: false,
  1998. subDetailData: {
  1999. site: '',
  2000. buNo: '',
  2001. inspectionNo: '',
  2002. itemNo: '',
  2003. itemDesc: '',
  2004. defaultValue: '',
  2005. maxValue: '',
  2006. minValue: '',
  2007. valueTypeDb: '',
  2008. subDetailValues:[]
  2009. },
  2010. options: [],
  2011. FAISelections: [],
  2012. modalFlag: false,
  2013. rules: {
  2014. orderNoType:[
  2015. {
  2016. required: true,
  2017. message: ' ',
  2018. trigger: 'change'
  2019. }
  2020. ],
  2021. operationDescType:[
  2022. {
  2023. required: true,
  2024. message: ' ',
  2025. trigger: 'change'
  2026. }
  2027. ],
  2028. resourceIdType:[
  2029. {
  2030. required: true,
  2031. message: ' ',
  2032. trigger: 'change'
  2033. }
  2034. ],
  2035. rollQtyType:[
  2036. {
  2037. required: true,
  2038. message: ' ',
  2039. trigger: 'change'
  2040. }
  2041. ],
  2042. seqNoType: [
  2043. {
  2044. required: true,
  2045. message: ' ',
  2046. trigger: 'change'
  2047. }
  2048. ],
  2049. partNoType: [
  2050. {
  2051. required: true,
  2052. message: ' ',
  2053. trigger: 'change'
  2054. }
  2055. ],
  2056. umIdType: [
  2057. {
  2058. required: true,
  2059. message: ' ',
  2060. trigger: 'change'
  2061. }
  2062. ],
  2063. templateId: [
  2064. {
  2065. required: true,
  2066. message: ' ',
  2067. trigger: 'change'
  2068. }
  2069. ],
  2070. bu:[
  2071. {
  2072. required: true,
  2073. message: ' ',
  2074. trigger: 'change'
  2075. }
  2076. ]
  2077. },
  2078. resourceList: [],
  2079. operationList: [],
  2080. partList: [],
  2081. batchHandleAddModalFlag: false,
  2082. batchAddData: {
  2083. samplingLocation: '',
  2084. samplingLocationB: '',
  2085. samplingNumber: ''
  2086. },
  2087. controlData: {},
  2088. templateData: {
  2089. site: '',
  2090. bu: '',
  2091. templateId: '',
  2092. templateName: '',
  2093. inspectionTypeNo: '',
  2094. inspectionTypeName: ''
  2095. },
  2096. templateList: [],
  2097. templateModelFlag: false,
  2098. templateDetailList: [
  2099. {
  2100. columnProp: 'templateId',
  2101. headerAlign: "center",
  2102. align: "center",
  2103. columnLabel: '模板编码',
  2104. columnHidden: false,
  2105. columnImage: false,
  2106. columnSortable: false,
  2107. sortLv: 0,
  2108. status: true,
  2109. fixed: '',
  2110. },
  2111. {
  2112. columnProp: 'templateName',
  2113. headerAlign: "center",
  2114. align: "center",
  2115. columnLabel: '模板名称',
  2116. columnHidden: false,
  2117. columnImage: false,
  2118. columnSortable: false,
  2119. sortLv: 0,
  2120. status: true,
  2121. fixed: '',
  2122. },
  2123. {
  2124. columnProp: 'inspectionTypeName',
  2125. headerAlign: "center",
  2126. align: "center",
  2127. columnLabel: '检验类型',
  2128. columnHidden: false,
  2129. columnImage: false,
  2130. columnSortable: false,
  2131. sortLv: 0,
  2132. status: true,
  2133. fixed: '',
  2134. },
  2135. ],
  2136. checked: false,
  2137. typeOptions: [],
  2138. disposalMeasuresOptions: [],
  2139. timeout: null,
  2140. partData: {
  2141. site: '',
  2142. bu: '',
  2143. partNo: '',
  2144. partDesc: '',
  2145. sku: '',
  2146. cinvSourceCode: ''
  2147. },
  2148. partDetailList: [
  2149. {
  2150. columnProp: 'partNo',
  2151. headerAlign: "center",
  2152. align: "center",
  2153. columnLabel: '物料编码',
  2154. columnHidden: false,
  2155. columnImage: false,
  2156. columnSortable: false,
  2157. sortLv: 0,
  2158. status: true,
  2159. fixed: '',
  2160. },
  2161. {
  2162. columnProp: 'partDesc',
  2163. headerAlign: "center",
  2164. align: "center",
  2165. columnLabel: '物料名称',
  2166. columnHidden: false,
  2167. columnImage: false,
  2168. columnSortable: false,
  2169. sortLv: 0,
  2170. status: true,
  2171. fixed: '',
  2172. },
  2173. {
  2174. columnProp: 'sku',
  2175. headerAlign: "center",
  2176. align: "center",
  2177. columnLabel: 'SKU',
  2178. columnHidden: false,
  2179. columnImage: false,
  2180. columnSortable: false,
  2181. sortLv: 0,
  2182. status: true,
  2183. fixed: '',
  2184. },
  2185. {
  2186. columnProp: 'cinvSourceCode',
  2187. headerAlign: "center",
  2188. align: "center",
  2189. columnLabel: 'PN',
  2190. columnHidden: false,
  2191. columnImage: false,
  2192. columnSortable: false,
  2193. sortLv: 0,
  2194. status: true,
  2195. fixed: '',
  2196. },
  2197. ],
  2198. partModelFlag: false,
  2199. umList: [],
  2200. userBuList: [],
  2201. authSearch: false,
  2202. authSave: false,
  2203. authCheck: false,
  2204. authDelete: false,
  2205. authDetail: false,
  2206. authFile: false,
  2207. menuId: this.$route.meta.menuId,
  2208. roleList: [],
  2209. operatorList: [],
  2210. operatorData: {
  2211. flag: '',
  2212. site: '',
  2213. bu: '',
  2214. adminID: '',
  2215. adminName: '',
  2216. roleName: '',
  2217. roleId: '',
  2218. userName: this.$store.state.user.name
  2219. },
  2220. operatorModelFlag: false,
  2221. dataListSelections2: [],
  2222. operatorDetailList: [
  2223. {
  2224. columnProp: 'adminID',
  2225. headerAlign: "center",
  2226. align: "center",
  2227. columnLabel: '用户账号',
  2228. columnHidden: false,
  2229. columnImage: false,
  2230. columnSortable: false,
  2231. sortLv: 0,
  2232. status: true,
  2233. fixed: '',
  2234. },
  2235. {
  2236. columnProp: 'adminName',
  2237. headerAlign: "center",
  2238. align: "center",
  2239. columnLabel: '用户名称',
  2240. columnHidden: false,
  2241. columnImage: false,
  2242. columnSortable: false,
  2243. sortLv: 0,
  2244. status: true,
  2245. fixed: '',
  2246. },
  2247. {
  2248. columnProp: 'email',
  2249. headerAlign: "center",
  2250. align: "center",
  2251. columnLabel: '邮箱',
  2252. columnHidden: false,
  2253. columnImage: false,
  2254. columnSortable: false,
  2255. sortLv: 0,
  2256. status: true,
  2257. fixed: '',
  2258. },
  2259. {
  2260. columnProp: 'phone',
  2261. headerAlign: "center",
  2262. align: "center",
  2263. columnLabel: '手机号',
  2264. columnHidden: false,
  2265. columnImage: false,
  2266. columnSortable: false,
  2267. sortLv: 0,
  2268. status: true,
  2269. fixed: '',
  2270. },
  2271. ],
  2272. acquisitionList: [],
  2273. ItemObjectModelFlag: false,
  2274. itemObjectList: [],
  2275. itemObjectColumnList: [
  2276. {
  2277. columnProp: 'itemNo',
  2278. headerAlign: "center",
  2279. align: "center",
  2280. columnLabel: '项目编码',
  2281. columnHidden: false,
  2282. columnImage: false,
  2283. status: true,
  2284. columnWidth: 120,
  2285. },
  2286. {
  2287. columnProp: 'itemDesc',
  2288. headerAlign: "center",
  2289. align: "left",
  2290. columnLabel: '项目名称',
  2291. columnHidden: false,
  2292. columnImage: false,
  2293. status: true,
  2294. columnWidth: 200,
  2295. },
  2296. ],
  2297. actionData: {
  2298. site: '',
  2299. buNo: '',
  2300. inspectionNo: ''
  2301. }
  2302. }
  2303. },
  2304. mounted () {
  2305. this.$nextTick(() => {
  2306. this.height = window.innerHeight - 250
  2307. })
  2308. },
  2309. created () {
  2310. // 按钮控制
  2311. this.getButtonAuthData()
  2312. // 获取用户的 site 和 bu
  2313. this.getSiteAndBuByUserName()
  2314. // 收藏
  2315. this.favoriteIsOk()
  2316. // 检验类型
  2317. this.inspectionTypeSearch()
  2318. // 处置措施
  2319. this.disposalMeasuresSearch()
  2320. // 单位
  2321. this.umSearch()
  2322. // 查看 质量任务生成规则控制 动控是否开启
  2323. this.queryController()
  2324. // 动态列
  2325. this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
  2326. this.getTableUserColumn(this.$route.meta.menuId+'table2',2)
  2327. this.getTableUserColumn(this.$route.meta.menuId+'table3',3)
  2328. if (!this.authSearch) {
  2329. // 获取数据列表
  2330. this.getDataList()
  2331. }
  2332. // 获取用户角色
  2333. this.getUserRoleList()
  2334. },
  2335. methods: {
  2336. // 数据采集
  2337. dataAcquisition () {
  2338. this.loadFlag = true
  2339. let tempDate = {
  2340. site: this.detailData.site,
  2341. buNo: this.detailData.buNo,
  2342. inspectionNo: this.detailData.inspectionNo,
  2343. flag: 'fqc'
  2344. }
  2345. dataAcquisition(tempDate).then(({data}) => {
  2346. if (data.code === 0) {
  2347. // this.acquisitionList = data.rows
  2348. this.changeMyString(data.rows)
  2349. this.$message({
  2350. message: '数据采集成功',
  2351. type: 'success',
  2352. duration: 1500
  2353. })
  2354. } else {
  2355. this.$message({
  2356. message: data.msg,
  2357. type: 'warning',
  2358. duration: 1500
  2359. })
  2360. }
  2361. this.loadFlag = false
  2362. })
  2363. },
  2364. // 根据项目数据采集
  2365. dataAcquisitionByItem (row) {
  2366. this.loadFlag = true
  2367. let tempDate = {
  2368. site: row.site,
  2369. buNo: row.buNo,
  2370. inspectionNo: row.inspectionNo,
  2371. itemNo: row.itemNo,
  2372. flag: 'fqc'
  2373. }
  2374. dataAcquisitionByItem(tempDate).then(({data}) => {
  2375. if (data.code === 0) {
  2376. this.changeMyString(data.rows)
  2377. this.$message({
  2378. message: '数据采集成功',
  2379. type: 'success',
  2380. duration: 1500
  2381. })
  2382. } else {
  2383. this.$message({
  2384. message: data.msg,
  2385. type: 'warning',
  2386. duration: 1500
  2387. })
  2388. }
  2389. this.loadFlag = false
  2390. })
  2391. },
  2392. // 获取用户角色
  2393. getUserRoleList () {
  2394. getUserRoleList().then(({data}) => {
  2395. if (data.code === 0) {
  2396. this.roleList = data.rows
  2397. } else {
  2398. this.roleList = []
  2399. }
  2400. })
  2401. },
  2402. // 获取协同人员列表
  2403. getOperatorList () {
  2404. this.operatorData.flag = '1'
  2405. this.operatorData.bu = this.detailData.site + '_' + this.detailData.buNo
  2406. if (this.roleList.length > 0) {
  2407. let filterList = this.roleList.filter(item => item.roleName === '机修人员')
  2408. if (filterList.length > 0) {
  2409. this.operatorData.roleId = filterList[0].roleId
  2410. } else {
  2411. this.operatorData.roleId = this.roleList[0].roleId
  2412. }
  2413. } else {
  2414. this.operatorData.roleId = ''
  2415. }
  2416. // 先清空缓存选中
  2417. this.$nextTick(() => this.$refs.operatorTable.clearSelection())
  2418. // 拿到选中的人员编号
  2419. let tempDataList = (this.detailData.operator == null ? '' : this.detailData.operator).split(';')
  2420. getOperatorList(this.operatorData).then(({data}) => {
  2421. if (data && data.code === 0) {
  2422. this.operatorList = data.rows
  2423. this.operatorList.forEach(val => {
  2424. // 回显选中
  2425. if (tempDataList.includes(val.adminID)) {
  2426. this.$nextTick(() => this.$refs.operatorTable.toggleRowSelection(val, true))
  2427. }
  2428. })
  2429. this.operatorModelFlag = true
  2430. } else {
  2431. this.$alert(data.msg, '错误', {
  2432. confirmButtonText: '确定'
  2433. })
  2434. }
  2435. })
  2436. },
  2437. // 获取责任人员列表
  2438. getResponsiblePersonList () {
  2439. this.operatorData.flag = '2'
  2440. this.operatorData.bu = this.detailData.site + '_' + this.detailData.buNo
  2441. // 先清空缓存选中
  2442. this.$nextTick(() => this.$refs.operatorTable.clearSelection())
  2443. // 拿到选中的人员编号
  2444. let tempDataList = (this.detailData.responsiblePerson == null ? '' : this.detailData.responsiblePerson).split(';')
  2445. getResponsibleOperatorList(this.operatorData).then(({data}) => {
  2446. if (data && data.code === 0) {
  2447. this.operatorList = data.rows
  2448. this.operatorList.forEach(val => {
  2449. // 回显选中
  2450. if (tempDataList.includes(val.adminID)) {
  2451. this.$nextTick(() => this.$refs.operatorTable.toggleRowSelection(val, true))
  2452. }
  2453. })
  2454. this.operatorModelFlag = true
  2455. } else {
  2456. this.$alert(data.msg, '错误', {
  2457. confirmButtonText: '确定'
  2458. })
  2459. }
  2460. })
  2461. },
  2462. // 查询机修人员列表
  2463. getOperatorList2 () {
  2464. if (this.operatorData.flag === '1') {
  2465. // 拿到选中的人员编号
  2466. let tempDataList = (this.detailData.operator == null ? '' : this.detailData.operator).split(';')
  2467. getOperatorList(this.operatorData).then(({data}) => {
  2468. if (data && data.code === 0) {
  2469. this.operatorList = data.rows
  2470. this.operatorList.forEach(val => {
  2471. // 回显选中的部门
  2472. if (tempDataList.includes(val.adminID)) {
  2473. this.$nextTick(() => this.$refs.operatorTable.toggleRowSelection(val, true))
  2474. }
  2475. })
  2476. } else {
  2477. this.operatorList = []
  2478. }
  2479. })
  2480. } else {
  2481. // 拿到选中的人员编号
  2482. let tempDataList = (this.detailData.responsiblePerson == null ? '' : this.detailData.responsiblePerson).split(';')
  2483. getResponsibleOperatorList(this.operatorData).then(({data}) => {
  2484. if (data && data.code === 0) {
  2485. this.operatorList = data.rows
  2486. this.operatorList.forEach(val => {
  2487. // 回显选中的部门
  2488. if (tempDataList.includes(val.adminID)) {
  2489. this.$nextTick(() => this.$refs.operatorTable.toggleRowSelection(val, true))
  2490. }
  2491. })
  2492. } else {
  2493. this.operatorList = []
  2494. }
  2495. })
  2496. }
  2497. },
  2498. // 点击行选中复选框
  2499. operatorClickRow (row) {
  2500. this.$refs.operatorTable.toggleRowSelection(row)
  2501. },
  2502. // 多选
  2503. selectionChangeHandle2 (val) {
  2504. this.dataListSelections2 = val
  2505. },
  2506. // 确认多选协同人员
  2507. confirmOperator () {
  2508. if (this.dataListSelections2.length === 0) {
  2509. this.$message.warning('请勾选人员!')
  2510. return
  2511. }
  2512. if (this.operatorData.flag === '1') {
  2513. for (let i = 0; i < this.dataListSelections2.length; i++) {
  2514. if (!this.detailData.operator.split(';').includes(this.dataListSelections2[i].adminID)) {
  2515. this.detailData.operatorName = this.detailData.operatorName + ";" + this.dataListSelections2[i].adminName
  2516. this.detailData.operator = this.detailData.operator + ";" + this.dataListSelections2[i].adminID
  2517. }
  2518. }
  2519. if (this.detailData.operator.charAt(0) === ';') {
  2520. this.detailData.operator = this.detailData.operator.substring(1)
  2521. this.detailData.operatorName = this.detailData.operatorName.substring(1)
  2522. }
  2523. } else {
  2524. for (let i = 0; i < this.dataListSelections2.length; i++) {
  2525. if (!this.detailData.responsiblePerson.split(';').includes(this.dataListSelections2[i].adminID)) {
  2526. this.detailData.responsiblePersonName = this.detailData.responsiblePersonName + ";" + this.dataListSelections2[i].adminName
  2527. this.detailData.responsiblePerson = this.detailData.responsiblePerson + ";" + this.dataListSelections2[i].adminID
  2528. }
  2529. }
  2530. if (this.detailData.responsiblePerson.charAt(0) === ';') {
  2531. this.detailData.responsiblePerson = this.detailData.responsiblePerson.substring(1)
  2532. this.detailData.responsiblePersonName = this.detailData.responsiblePersonName.substring(1)
  2533. }
  2534. }
  2535. this.operatorData = {
  2536. flag: '',
  2537. site: '',
  2538. bu: '',
  2539. adminID: '',
  2540. adminName: '',
  2541. roleName: '',
  2542. roleId: '',
  2543. userName: this.$store.state.user.name
  2544. }
  2545. this.operatorModelFlag = false
  2546. },
  2547. // bu内容改变事件
  2548. buChange () {
  2549. if (this.modalData.specialTaskFlag !== 'Y') { // 正常检验
  2550. this.modalData.templateId = ''
  2551. this.modalData.templateName = ''
  2552. } else { // 无工单检验
  2553. this.modalData.partNo = ''
  2554. this.modalData.partDesc = ''
  2555. this.modalData.spec = ''
  2556. this.modalData.sku = ''
  2557. this.modalData.cinvSourceCode = ''
  2558. this.modalData.templateId = ''
  2559. this.modalData.templateName = ''
  2560. }
  2561. },
  2562. // 获取用户的bu
  2563. getSiteAndBuByUserName () {
  2564. let tempData = {
  2565. username: this.$store.state.user.name,
  2566. }
  2567. getSiteAndBuByUserName(tempData).then(({data}) => {
  2568. if (data.code === 0) {
  2569. this.userBuList = data.rows
  2570. }
  2571. })
  2572. },
  2573. // ======= 正则校验 =======
  2574. handleInput (value, type) {
  2575. // 大于等于0,且只能输入4位小数
  2576. let val = value.replace(/^\D*([0-9]\d*\.?\d{0,4})?.*$/,'$1')
  2577. if (val === null || val === undefined || val === '') {
  2578. val = 0
  2579. }
  2580. if (type === 1) {
  2581. this.detailData.unqualifiedQty = val
  2582. }
  2583. },
  2584. // 子明细导入
  2585. subDetailUpload () {
  2586. let currentData = {
  2587. flag: 'FQC',
  2588. site: this.detailData.site,
  2589. buNo: this.detailData.buNo,
  2590. inspectionNo: this.detailData.inspectionNo
  2591. }
  2592. //打开组件 去做新增业务
  2593. this.$nextTick(() => {
  2594. this.$refs.subDetailUpload.init(currentData)
  2595. })
  2596. },
  2597. // 查询单位
  2598. umSearch () {
  2599. let tempData = {
  2600. site: this.$store.state.user.site,
  2601. active: 'Y'
  2602. }
  2603. umSearch(tempData).then(({data}) => {
  2604. if (data.code === 0) {
  2605. this.umList = data.rows
  2606. }
  2607. })
  2608. },
  2609. // 标签号回车事件
  2610. rollNoEnter () {
  2611. let tempData = {
  2612. site: '',
  2613. bu: this.modalData.bu,
  2614. rollNo: this.modalData.rollNo
  2615. }
  2616. rollNoEnter(tempData).then(({data}) => {
  2617. if (data && data.code === 0) {
  2618. this.operationList = data.rows
  2619. this.modalData.seqNo = data.rows[0].seqNo
  2620. this.modalData.orderNo = data.rows[0].orderNo
  2621. this.modalData.operationDesc = data.rows[0].operationDesc
  2622. this.modalData.workCenterNo = data.rows[0].workCenterNo
  2623. this.modalData.resourceId = data.rows[0].resourceId
  2624. this.modalData.resourceDesc = data.rows[0].resourceDesc
  2625. this.modalData.partNo = data.rows[0].partNo
  2626. this.modalData.partDesc = data.rows[0].partDesc
  2627. this.modalData.spec = data.rows[0].spec
  2628. this.modalData.sku = data.rows[0].sku
  2629. this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
  2630. } else {
  2631. this.$alert(data.msg, '错误', {
  2632. confirmButtonText: '确定'
  2633. })
  2634. }
  2635. })
  2636. },
  2637. querySearchAsync (queryString, cb) {
  2638. clearTimeout(this.timeout)
  2639. let results = []
  2640. if (queryString === '') {
  2641. cb(results)
  2642. } else {
  2643. // 掉接口需要的参数
  2644. let find = {
  2645. rollNo: queryString, //上面输入框绑定的数据
  2646. site: this.$store.state.user.site,
  2647. }
  2648. // 这里去调后端的接口.根据自己接口的情况进行赋值
  2649. getRollNo(find).then(({data}) => {
  2650. if (data.code === 0) {
  2651. let result = data.rows
  2652. // 循环放到一个远程搜索需要的数组
  2653. for (let i = 0; i < result.length; i++) {
  2654. const element = result[i]
  2655. results.push({
  2656. value: element.rollNo,
  2657. seqNo: element.seqNo,
  2658. orderNo: element.orderNo
  2659. })
  2660. }
  2661. cb(results)
  2662. } else {
  2663. results = []
  2664. cb(results)
  2665. }
  2666. })
  2667. }
  2668. },
  2669. // 点击出现搜索后点击的每一项
  2670. handleSelect (item) {
  2671. this.modalData.rollNo = item.value
  2672. this.modalData.seqNo = item.seqNo
  2673. this.modalData.orderNo = item.orderNo
  2674. this.getOperationList()
  2675. //this.getPartList()
  2676. },
  2677. // 获取处置措施列表
  2678. disposalMeasuresSearch () {
  2679. let tempData = {
  2680. inspectionTypeNo: '107'
  2681. }
  2682. disposalMeasuresSearch(tempData).then(({data}) => {
  2683. if (data.code === 0) {
  2684. this.disposalMeasuresOptions = data.rows
  2685. }
  2686. })
  2687. },
  2688. // 查询检验类型
  2689. inspectionTypeSearch () {
  2690. let tempData = {
  2691. site: this.$store.state.user.site
  2692. }
  2693. inspectionTypeSearch(tempData).then(({data}) => {
  2694. if (data.code === 0) {
  2695. this.typeOptions = data.rows
  2696. this.typeOptions.forEach(val => {
  2697. if (val.inspectionTypeName.includes('FQC')) {
  2698. this.templateData.inspectionTypeNo = val.inspectionTypeNo
  2699. this.templateData.inspectionTypeName = val.inspectionTypeName
  2700. }
  2701. })
  2702. }
  2703. })
  2704. },
  2705. // 获取基础数据列表S
  2706. getBaseList (val,type) {
  2707. this.tagNo = val
  2708. this.$nextTick(() => {
  2709. let strVal = ''
  2710. if (val === 1052) {
  2711. this.searchSeqInfo()
  2712. this.seqDetailFlag = true
  2713. }
  2714. if (val === 505) {
  2715. strVal = this.modalData.resourceDesc
  2716. this.$refs.baseList.init(val, strVal)
  2717. }
  2718. // if (val === 206) {
  2719. // strVal = this.modalData.partNo
  2720. // this.$refs.baseList.init(val, strVal)
  2721. // }
  2722. })
  2723. },
  2724. /* 列表方法的回调 */
  2725. getBaseData (val) {
  2726. if (this.tagNo === 1052) {
  2727. this.modalData.seqNo = val.seqno
  2728. this.modalData.orderNo = val.orderno
  2729. this.modalData.operationDesc = ''
  2730. this.modalData.resourceId = ''
  2731. this.getOperationList()
  2732. //this.getPartList()
  2733. }
  2734. if (this.tagNo === 505) {
  2735. this.modalData.resourceId = val.resource_id
  2736. this.modalData.resourceDesc = val.resource_desc
  2737. }
  2738. // if (this.tagNo === 206) {
  2739. // this.modalData.partNo = val.part_no
  2740. // this.modalData.partDesc = val.part_desc
  2741. // // 获取物料的其他信息
  2742. // this.getPartInformation()
  2743. // }
  2744. },
  2745. // // 获取物料其它信息
  2746. // getPartInformation () {
  2747. // getPartInformation(this.modalData).then(({data}) => {
  2748. // if (data && data.code === 0) {
  2749. // this.modalData.spec = data.rows[0].spec
  2750. // this.modalData.sku = data.rows[0].sku
  2751. // } else {
  2752. // this.$alert(data.msg, '错误', {
  2753. // confirmButtonText: '确定'
  2754. // })
  2755. // }
  2756. // })
  2757. // },
  2758. // 获取机台列表
  2759. getResourceList () {
  2760. // 判断是否为特殊任务,特殊任务的机台不随工序改变
  2761. if (this.modalData.specialTaskFlag === 'Y') {
  2762. return
  2763. } else {
  2764. getResourceList(this.modalData).then(({data}) => {
  2765. if (data && data.code === 0) {
  2766. //this.resourceList = data.rows
  2767. this.modalData.workCenterNo = data.rows[0].workCenterNo
  2768. this.modalData.resourceId = data.rows[0].resourceId
  2769. this.modalData.resourceDesc = data.rows[0].resourceDesc
  2770. } else {
  2771. this.$alert(data.msg, '错误', {
  2772. confirmButtonText: '确定'
  2773. })
  2774. }
  2775. })
  2776. }
  2777. },
  2778. // 获取工序列表
  2779. getOperationList () {
  2780. getOperationList(this.modalData).then(({data}) => {
  2781. if (data && data.code === 0) {
  2782. this.operationList = data.rows
  2783. this.modalData.operationDesc = data.rows[0].operationDesc
  2784. //this.getResourceList()
  2785. this.modalData.workCenterNo = data.rows[0].workCenterNo
  2786. this.modalData.resourceId = data.rows[0].resourceId
  2787. this.modalData.resourceDesc = data.rows[0].resourceDesc
  2788. this.modalData.partNo = data.rows[0].partNo
  2789. this.modalData.partDesc = data.rows[0].partDesc
  2790. this.modalData.spec = data.rows[0].spec
  2791. this.modalData.sku = data.rows[0].sku
  2792. this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
  2793. this.modalData.operationDesc = data.rows[0].operationDesc
  2794. this.modalData.qtyrequired = data.rows[0].qtyrequired
  2795. this.modalData.lotsize = data.rows[0].lotsize
  2796. } else {
  2797. this.$alert(data.msg, '错误', {
  2798. confirmButtonText: '确定'
  2799. })
  2800. }
  2801. })
  2802. },
  2803. // 获取物料列表
  2804. getPartList () {
  2805. getPartList(this.modalData).then(({data}) => {
  2806. if (data && data.code === 0) {
  2807. this.partList = data.rows
  2808. this.modalData.partNo = this.partList[0].partNo
  2809. this.modalData.partDesc = this.partList[0].partDesc
  2810. this.modalData.spec = this.partList[0].spec
  2811. this.modalData.sku = this.partList[0].sku
  2812. this.modalData.cinvSourceCode = this.partList[0].cinvSourceCode
  2813. } else {
  2814. this.$alert(data.msg, '错误', {
  2815. confirmButtonText: '确定'
  2816. })
  2817. }
  2818. })
  2819. },
  2820. // 是否新增特殊任务
  2821. changeSpecialTask () {
  2822. // 先重置数据
  2823. this.modalData = {
  2824. flag: '1',
  2825. site: '',
  2826. bu: this.userBuList[0].buNo,
  2827. inspectionNo: '',
  2828. partNo: '',
  2829. partDesc: '',
  2830. inspectionTypeNo: '',
  2831. inspectionTypeName: '',
  2832. inspectorNo: '',
  2833. inspectorName: '',
  2834. submit_flag: '',
  2835. orderNo: '',
  2836. operationDesc: '',
  2837. operationNo: '',
  2838. resourceId: '',
  2839. resourceDesc: '',
  2840. rollQty: '',
  2841. seqNo: '',
  2842. batchRollNo: '',
  2843. spec: '',
  2844. sku: '',
  2845. cinvSourceCode: '',
  2846. specialRequirements: '',
  2847. templateId: '',
  2848. templateName: '',
  2849. specialTaskFlag: '',
  2850. workCenterNo: '',
  2851. rollNo: '',
  2852. umId: this.umList[0].umId,
  2853. umName: this.umList[0].umName
  2854. }
  2855. // 获取选中框
  2856. let obj = document.getElementsByName('specialTask')
  2857. // 判断是否打勾
  2858. if (obj[0].checked) {
  2859. let tempData = {
  2860. site: '',
  2861. bu: this.modalData.bu
  2862. }
  2863. this.modalData.specialTaskFlag = 'Y'
  2864. // 获取特殊工序列表
  2865. getSpecialOperationList(tempData).then(({data}) => {
  2866. if (data && data.code === 0) {
  2867. this.operationList = data.rows
  2868. } else {
  2869. this.$alert(data.msg, '错误', {
  2870. confirmButtonText: '确定'
  2871. })
  2872. }
  2873. })
  2874. // 派工单和工单号赋值
  2875. this.modalData.seqNo = '000#1TSGD'
  2876. this.modalData.orderNo = '000#1'
  2877. } else {
  2878. this.operationList = []
  2879. this.modalData.specialTaskFlag = ''
  2880. }
  2881. },
  2882. // 新增FAI巡检记录
  2883. saveData () {
  2884. if (this.modalData.bu === '' || this.modalData.bu == null) {
  2885. this.$message.warning('请选择BU!')
  2886. return
  2887. }
  2888. if (this.modalData.seqNo === '' || this.modalData.seqNo == null) {
  2889. this.$message.warning('请选择派工单!')
  2890. return
  2891. }
  2892. if (this.modalData.orderNo === '' || this.modalData.orderNo == null) {
  2893. this.$message.warning('请选择工单!')
  2894. return
  2895. }
  2896. if (this.modalData.specialTaskFlag !== 'Y' && (this.modalData.partNo === '' || this.modalData.partNo == null)) {
  2897. this.$message.warning('请选择物料!')
  2898. return
  2899. }
  2900. if (this.modalData.operationDesc === '' || this.modalData.operationDesc == null) {
  2901. this.$message.warning('请选择工序!')
  2902. return
  2903. }
  2904. if (this.modalData.specialTaskFlag !== 'Y' && (this.modalData.resourceId === '' || this.modalData.resourceId == null)) {
  2905. this.$message.warning('请选择机台!')
  2906. return
  2907. }
  2908. if (this.modalData.rollQty === '' || this.modalData.rollQty == null) {
  2909. this.$message.warning('请填写送检数量!')
  2910. return
  2911. }
  2912. if (this.modalData.umId === '' || this.modalData.umId == null) {
  2913. this.$message.warning('请选择单位!')
  2914. return
  2915. }
  2916. if (this.controlData.baseData === '控制' && (this.modalData.templateId == null || this.modalData.templateId === '')) {
  2917. this.$message.warning('请选择检验模板!')
  2918. return
  2919. }
  2920. if (this.modalData.flag === '1') {
  2921. saveFQCInspection(this.modalData).then(({data}) => {
  2922. if (data && data.code === 0) {
  2923. this.getDataList()
  2924. this.operationList = []
  2925. this.resourceList = []
  2926. this.partList = []
  2927. this.modalFlag = false
  2928. this.$message({
  2929. message: '操作成功',
  2930. type: 'success',
  2931. duration: 1500,
  2932. onClose: () => {}
  2933. })
  2934. } else {
  2935. this.$alert(data.msg, '错误', {
  2936. confirmButtonText: '确定'
  2937. })
  2938. }
  2939. })
  2940. }
  2941. },
  2942. // 检查动控是否开启
  2943. queryController () {
  2944. let tempData = {
  2945. controlNo: '10004',
  2946. site: this.$store.state.user.site,
  2947. }
  2948. queryController(tempData).then(({data}) => {
  2949. if (data && data.code === 0) {
  2950. this.controlData = data.rows
  2951. } else {
  2952. this.$alert(data.msg, '错误', {
  2953. confirmButtonText: '确定'
  2954. })
  2955. }
  2956. })
  2957. },
  2958. // 新增
  2959. addModal () {
  2960. this.modalData = {
  2961. flag: '1',
  2962. site: '',
  2963. bu: this.userBuList[0].buNo,
  2964. inspectionNo: '',
  2965. partNo: '',
  2966. partDesc: '',
  2967. inspectionTypeNo: '107',
  2968. inspectionTypeName: '',
  2969. inspectorNo: '',
  2970. inspectorName: '',
  2971. submit_flag: '',
  2972. orderNo: '',
  2973. operationDesc: '',
  2974. operationNo: '',
  2975. resourceId: '',
  2976. resourceDesc: '',
  2977. rollQty: '',
  2978. seqNo: '',
  2979. batchRollNo: '',
  2980. spec: '',
  2981. sku: '',
  2982. cinvSourceCode: '',
  2983. specialRequirements: '',
  2984. templateId: '',
  2985. templateName: '',
  2986. specialTaskFlag: '',
  2987. workCenterNo: '',
  2988. rollNo: '',
  2989. umId: this.umList[0].umId,
  2990. umName: this.umList[0].umName,
  2991. sjzs: '',
  2992. }
  2993. this.operationList = []
  2994. this.resourceList = []
  2995. this.partList = []
  2996. this.modalFlag = true
  2997. this.checked = false
  2998. },
  2999. // 获取检验模板列表
  3000. queryTemplateList () {
  3001. this.templateData.bu = this.modalData.bu
  3002. // 查询所有检验模板
  3003. queryTemplateList(this.templateData).then(({data}) => {
  3004. if (data && data.code === 0) {
  3005. this.templateList = data.rows
  3006. this.templateModelFlag = true
  3007. }else {
  3008. this.$alert(data.msg, '错误', {
  3009. confirmButtonText: '确定'
  3010. })
  3011. }
  3012. })
  3013. },
  3014. // 获取物料列表
  3015. queryPartList () {
  3016. this.partData.bu = this.modalData.bu
  3017. // 查询所有物料
  3018. if (this.partData.partNo === '' && this.partData.partDesc === '' && this.partData.sku === '' && this.partData.cinvSourceCode === '') {
  3019. this.partList = []
  3020. this.partModelFlag = true
  3021. } else {
  3022. queryPartList(this.partData).then(({data}) => {
  3023. if (data && data.code === 0) {
  3024. this.partList = data.rows
  3025. this.partModelFlag = true
  3026. } else {
  3027. this.$alert(data.msg, '错误', {
  3028. confirmButtonText: '确定'
  3029. })
  3030. }
  3031. })
  3032. }
  3033. },
  3034. // 选中检验模板
  3035. getRowData (row) {
  3036. this.modalData.templateId = row.templateId
  3037. this.modalData.templateName = row.templateName
  3038. this.templateModelFlag = false
  3039. },
  3040. // 选中派工单号
  3041. getRowData1 (row) {
  3042. this.modalData.sku = row.sku
  3043. this.modalData.cinvSourceCode = row.cinvSourceCode
  3044. this.modalData.orderNo = row.orderNo
  3045. this.modalData.seqNo = row.seqNo
  3046. this.modalData.lotsize = row.lotsize
  3047. this.modalData.operationDesc = row.operationDesc
  3048. this.modalData.qtyrequired = row.qtyrequired
  3049. this.modalData.rollQty = row.qtyrequired
  3050. this.modalData.sjzs = row.sjzs
  3051. this.getOperationList()
  3052. this.seqDetailFlag = false
  3053. },
  3054. // 选中物料
  3055. getRowData2 (row) {
  3056. this.modalData.partNo = row.partNo
  3057. this.modalData.partDesc = row.partDesc
  3058. this.modalData.sku = row.sku
  3059. this.modalData.cinvSourceCode = row.cinvSourceCode
  3060. this.modalData.spec = row.spec
  3061. this.partData = {
  3062. site: '',
  3063. bu: '',
  3064. partNo: '',
  3065. partDesc: '',
  3066. sku: '',
  3067. cinvSourceCode: ''
  3068. }
  3069. this.partModelFlag = false
  3070. },
  3071. selectFlag () {
  3072. return true
  3073. },
  3074. // 单机选中
  3075. FAIClickRow (row) {
  3076. this.$refs.FAITable.toggleRowSelection(row)
  3077. },
  3078. // 复选
  3079. selectionFAI (val) {
  3080. this.FAISelections = val
  3081. },
  3082. // 刷新派设备文档的列表
  3083. getFileContentData (row) {
  3084. let currentData = {
  3085. orderRef1: row.site,
  3086. orderRef2: row.inspectionNo,
  3087. orderRef4: row.buNo,
  3088. }
  3089. getFileContentList(currentData).then(({data}) => {
  3090. //区分请求成功和失败的状况
  3091. if (data && data.code === 200) {
  3092. this.fileContentList = data.rows
  3093. } else {
  3094. this.fileContentList = []
  3095. }
  3096. })
  3097. this.fileFlag = true;
  3098. },
  3099. // 新增文件的modal
  3100. addUploadFileModal () {
  3101. let currentData = {
  3102. titleCon: 'FQC文件上传',
  3103. site: this.detailData.site,
  3104. buNo: this.detailData.buNo,
  3105. createBy: this.$store.state.user.name,
  3106. inspectionNo: this.detailData.inspectionNo,
  3107. remark: '',
  3108. folder: 'qcFQC',
  3109. }
  3110. //打开组件 去做新增业务
  3111. this.$nextTick(() => {
  3112. this.$refs.qcFAIUploadFile.init(currentData)
  3113. })
  3114. },
  3115. // 上传项目图片
  3116. uploadImageModal (row) {
  3117. let currentData = {
  3118. site: this.detailData.site,
  3119. buNo: this.detailData.buNo,
  3120. createBy: this.$store.state.user.name,
  3121. inspectionNo: this.detailData.inspectionNo,
  3122. itemNo: row.itemNo,
  3123. folder: 'FQCItemImageFile'
  3124. }
  3125. //打开组件 去做新增业务
  3126. this.$nextTick(() => {
  3127. this.$refs.comQcItemImageUploadFile.init(currentData)
  3128. })
  3129. },
  3130. downloadFile (row) {
  3131. downLoadObjectFile(row)
  3132. .then(({data}) => {
  3133. // 不限制文件下载类型
  3134. const blob = new Blob([data], {type: "application/octet-stream"})
  3135. // 下载文件名称
  3136. const fileName = row.fileName
  3137. // a标签下载
  3138. const linkNode = document.createElement('a')
  3139. // a标签的download属性规定下载文件的名称
  3140. linkNode.download = fileName
  3141. linkNode.style.display = 'none'
  3142. // 生成一个Blob URL
  3143. linkNode.href = URL.createObjectURL(blob)
  3144. document.body.appendChild(linkNode)
  3145. // 模拟在按钮上的一次鼠标单击
  3146. linkNode.click()
  3147. // 释放URL 对象
  3148. URL.revokeObjectURL(linkNode.href)
  3149. document.body.removeChild(linkNode)
  3150. })
  3151. },
  3152. // 删除文件
  3153. deleteFile (row) {
  3154. let tempData = {
  3155. site: row.orderRef1,
  3156. inspectionNo: row.orderRef2,
  3157. buNo: row.orderRef4
  3158. }
  3159. this.$confirm('确定要删除此文件?', '提示', {
  3160. confirmButtonText: '确定',
  3161. cancelButtonText: '取消',
  3162. type: 'warning'
  3163. }).then(() => {
  3164. deleteObjectFile(row).then(({data}) => {
  3165. if (data && data.code === 0) {
  3166. this.getFileContentData(tempData);
  3167. this.$message({
  3168. message: '操作成功',
  3169. type: 'success',
  3170. duration: 1500,
  3171. onClose: () => {}
  3172. })
  3173. } else {
  3174. this.$alert(data.msg, '错误', {
  3175. confirmButtonText: '确定'
  3176. })
  3177. }
  3178. })
  3179. }).catch(() => {
  3180. })
  3181. },
  3182. // 查询检验类型
  3183. inspectorSearch () {
  3184. inspectorSearch().then(({data}) => {
  3185. if (data.code === 0) {
  3186. this.options = data.rows
  3187. }
  3188. })
  3189. },
  3190. // 获取主信息数据列表
  3191. getDataList () {
  3192. this.searchData.limit = this.pageSize
  3193. this.searchData.page = this.pageIndex
  3194. qcFQCInspectionSearch(this.searchData).then(({data}) => {
  3195. if (data.code === 0) {
  3196. this.dataList = data.page.list
  3197. this.pageIndex = data.page.currPage
  3198. this.pageSize = data.page.pageSize
  3199. this.totalPage = data.page.totalCount
  3200. }
  3201. })
  3202. },
  3203. // 每页数
  3204. sizeChangeHandle (val) {
  3205. this.pageSize = val
  3206. this.pageIndex = 1
  3207. this.getDataList()
  3208. },
  3209. // 当前页
  3210. currentChangeHandle (val) {
  3211. this.pageIndex = val
  3212. this.getDataList()
  3213. },
  3214. // 多选
  3215. selectionChangeHandle (val) {
  3216. this.dataListSelections = val
  3217. },
  3218. // 删除检验记录
  3219. deleteModal () {
  3220. if (this.FAISelections.length === 0) {
  3221. this.$alert('请勾选要删除的检验单!', '提示', {
  3222. confirmButtonText: '确定'
  3223. })
  3224. return false
  3225. }
  3226. this.$confirm(`是否删除该 `+ this.FAISelections.length +` 条检验记录?`, '提示', {
  3227. confirmButtonText: '确定',
  3228. cancelButtonText: '取消',
  3229. type: 'warning'
  3230. }).then(() => {
  3231. let tempData = {
  3232. site: '',
  3233. submitList: this.FAISelections
  3234. }
  3235. fqcRecordDelete(tempData).then(({data}) => {
  3236. if (data && data.code === 0) {
  3237. this.getDataList()
  3238. this.FAISelections = []
  3239. this.$message({
  3240. message: '操作成功',
  3241. type: 'success',
  3242. duration: 1500,
  3243. onClose: () => {}
  3244. })
  3245. } else {
  3246. this.$alert(data.msg, '错误', {
  3247. confirmButtonText: '确定'
  3248. })
  3249. }
  3250. })
  3251. }).catch(() => {
  3252. })
  3253. },
  3254. Transfer () {
  3255. if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) {
  3256. this.$message.warning('请选择检验结论!')
  3257. return
  3258. }
  3259. if (this.detailData.inspectionResult === '不合格' && (this.detailData.disposalMeasures == null || this.detailData.disposalMeasures === '')) {
  3260. this.$message.warning('请选择处置措施!')
  3261. return
  3262. }
  3263. if (this.detailList.length > 0 && this.detailData.inspectionResult === '不合格') {
  3264. const flag = this.detailList.some(item => item.itemResult === 'N')
  3265. if (!flag) {
  3266. this.$message.warning('请选择不合格项目!')
  3267. return
  3268. }
  3269. }
  3270. if (this.detailData.inspectionResult !== '不合格') {
  3271. this.detailData.disposalMeasures = ''
  3272. this.detailData.disposalRemark = ''
  3273. }
  3274. this.saveDetailInformation()
  3275. },
  3276. // 新增明细信息
  3277. saveDetailInformation () {
  3278. this.saveInformationData.site = this.detailData.site
  3279. this.saveInformationData.buNo = this.detailData.buNo
  3280. this.saveInformationData.inspectionNo = this.detailData.inspectionNo
  3281. this.saveInformationData.disposalMeasures = this.detailData.disposalMeasures
  3282. this.saveInformationData.disposalRemark = this.detailData.disposalRemark
  3283. this.saveInformationData.inspectorNo = this.$store.state.user.name
  3284. this.saveInformationData.inspectionResult = this.detailData.inspectionResult
  3285. this.saveInformationData.inspectionRemark = this.detailData.inspectionRemark
  3286. this.saveInformationData.rollQty = this.detailData.rollQty
  3287. this.saveInformationData.samplingQty = this.detailData.samplingQty
  3288. this.saveInformationData.unqualifiedQty = this.detailData.unqualifiedQty
  3289. this.saveInformationData.partNo = this.detailData.partNo
  3290. this.saveInformationData.partDesc = this.detailData.partDesc
  3291. this.saveInformationData.operator = this.detailData.operator
  3292. this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson
  3293. this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList))
  3294. // this.saveInformationData.subDetailList = this.acquisitionList
  3295. saveFQCDetailedRecord(this.saveInformationData).then(({data}) => {
  3296. if (data && data.code === 0) {
  3297. this.getDataList()
  3298. this.detailInformationFlag = false
  3299. this.$message({
  3300. message: '操作成功',
  3301. type: 'success',
  3302. duration: 1500,
  3303. onClose: () => {}
  3304. })
  3305. } else {
  3306. this.$alert(data.msg, '错误', {
  3307. confirmButtonText: '确定'
  3308. })
  3309. }
  3310. })
  3311. },
  3312. // 开始检验
  3313. actionModal (row) {
  3314. this.actionData = {
  3315. site: row.site,
  3316. buNo: row.buNo,
  3317. inspectionNo: row.inspectionNo
  3318. }
  3319. getFQCItemObjectList(this.actionData).then(({data}) => {
  3320. if (data && data.code === 0) {
  3321. if (data.rows.length === 0) {
  3322. this.actionModal2()
  3323. } else {
  3324. this.itemObjectList = data.rows
  3325. this.ItemObjectModelFlag = true
  3326. }
  3327. } else {
  3328. this.$alert(data.msg, '错误', {
  3329. confirmButtonText: '确定'
  3330. })
  3331. }
  3332. })
  3333. },
  3334. // 开始检验
  3335. actionModal2 () {
  3336. this.$confirm(`确认开始检验?`, '提示', {
  3337. confirmButtonText: '确定',
  3338. cancelButtonText: '取消',
  3339. type: 'warning'
  3340. }).then(() => {
  3341. let tempData = {
  3342. site: this.actionData.site,
  3343. buNo: this.actionData.buNo,
  3344. inspectionNo: this.actionData.inspectionNo,
  3345. actionBy: this.$store.state.user.name,
  3346. state: '待检验',
  3347. equipmentList: this.itemObjectList
  3348. }
  3349. actionFQCInspection(tempData).then(({data}) => {
  3350. if (data && data.code === 0) {
  3351. this.getDataList()
  3352. this.$message({
  3353. message: '操作成功',
  3354. type: 'success',
  3355. duration: 1500,
  3356. onClose: () => {}
  3357. })
  3358. this.ItemObjectModelFlag = false
  3359. } else {
  3360. this.$alert(data.msg, '错误', {
  3361. confirmButtonText: '确定'
  3362. })
  3363. }
  3364. })
  3365. })
  3366. },
  3367. // 明细记录信息查询
  3368. detailModal (row) {
  3369. this.detailData.site = row.site
  3370. this.detailData.buNo = row.buNo
  3371. this.detailData.inspectionNo = row.inspectionNo
  3372. this.detailData.partNo = row.partNo
  3373. this.detailData.partDesc = row.partDesc
  3374. this.detailData.rollQty = row.rollQty
  3375. this.detailData.samplingQty = row.samplingQty
  3376. this.detailData.unqualifiedQty = row.unqualifiedQty
  3377. this.detailData.unqualifiedQuantity = row.unqualifiedQuantity
  3378. this.detailData.submitFlag = row.submitFlag
  3379. this.detailData.disposalMeasures = row.disposalMeasures
  3380. this.detailData.disposalRemark = row.disposalRemark
  3381. this.detailData.inspectionResult = row.inspectionResult
  3382. this.detailData.inspectorNo = row.inspectorNo
  3383. this.detailData.inspectorName = row.inspectorName
  3384. this.detailData.inspectionRemark = row.inspectionRemark
  3385. this.detailData.cinvSourceCode = row.cinvSourceCode
  3386. this.detailData.sku = row.sku
  3387. this.detailData.spec = row.spec
  3388. this.detailData.umId = row.umId
  3389. this.detailData.umName = row.umName
  3390. this.detailData.operator = row.operator
  3391. this.detailData.operatorName = row.operatorName
  3392. this.detailData.responsiblePerson = row.responsiblePerson
  3393. this.detailData.responsiblePersonName = row.responsiblePersonName
  3394. this.getInspectionFormData()
  3395. this.inspectorSearch()
  3396. // this.acquisitionList = []
  3397. this.detailInformationFlag = true
  3398. },
  3399. // 检验单明细
  3400. getInspectionFormData () {
  3401. fqcDetailSearch(this.detailData).then(({data}) => {
  3402. if (data && data.code === 0) {
  3403. this.detailList = data.rows
  3404. } else {
  3405. this.detailList = []
  3406. }
  3407. })
  3408. },
  3409. // 子明细记录信息查询
  3410. subDetailModal (row) {
  3411. this.subDetailData = row
  3412. selectFQCSubDetailedRecord(this.subDetailData).then(({data}) => {
  3413. this.tableData = data.rows
  3414. })
  3415. this.batchAddData = {
  3416. samplingLocation: '',
  3417. samplingLocationB: '',
  3418. samplingNumber: ''
  3419. }
  3420. this.subDetailFlag = true
  3421. },
  3422. // 审核按钮
  3423. submitResult () {
  3424. let tempData1 = '' // 记录不是待审核状态的单号
  3425. let tempData2 = '' // 记录处置措施未填写的单号
  3426. if (this.FAISelections.length === 0) {
  3427. this.$alert('请勾选要审核的检验单!', '提示', {
  3428. confirmButtonText: '确定'
  3429. })
  3430. return false
  3431. }
  3432. for (let i = 0; i < this.FAISelections.length; i++) {
  3433. if (this.FAISelections[i].state !== '待审核'){
  3434. tempData1 = tempData1 + this.FAISelections[i].inspectionNo + '、'
  3435. }
  3436. if (this.FAISelections[i].inspectionResult === '不合格' && (this.FAISelections[i].disposalMeasures ==='' || this.FAISelections[i].disposalMeasures == null)) {
  3437. tempData2 = tempData2 + this.FAISelections[i].inspectionNo + '、'
  3438. }
  3439. }
  3440. if (tempData1 !== ''){
  3441. tempData1 = tempData1.substring(0, tempData1.length - 1)
  3442. this.$alert('检验单号 ' + tempData1 + ' 不是待审核状态!', '提示', {
  3443. confirmButtonText: '确定'
  3444. })
  3445. return false
  3446. }
  3447. if (tempData2 !== ''){
  3448. tempData2 = tempData2.substring(0, tempData2.length - 1)
  3449. this.$alert('检验单号 ' + tempData2 + ' 的处置措施未选择!', '提示', {
  3450. confirmButtonText: '确定'
  3451. })
  3452. return false
  3453. }
  3454. this.$confirm(`已确认单据信息无误,确定审核该 ` + this.FAISelections.length + ` 条记录`, '提示', {
  3455. confirmButtonText: '确定',
  3456. cancelButtonText: '取消',
  3457. type: 'warning'
  3458. }).then(() => {
  3459. this.submitData.submitList = this.FAISelections
  3460. saveFQCSubmitResult(this.submitData).then(({data}) => {
  3461. if (data && data.code ==0) {
  3462. this.getDataList()
  3463. this.FAISelections = []
  3464. this.$message({
  3465. message: '操作成功',
  3466. type: 'success',
  3467. duration: 1500,
  3468. onClose: () => {
  3469. }
  3470. })
  3471. } else {
  3472. this.$alert(data.msg, '错误', {
  3473. confirmButtonText: '确定'
  3474. })
  3475. }
  3476. })
  3477. }).catch(() => {
  3478. })
  3479. },
  3480. // 子明细方法
  3481. //表格的新增
  3482. rowClassName ({ row, rowIndex }) {
  3483. row.xh = rowIndex + 1
  3484. },
  3485. //单选框选中数据
  3486. handleDetailSelectionChange (selection) {
  3487. this.checkedDetail = selection
  3488. },
  3489. //点击新增更多
  3490. handleAddBtn (td) {
  3491. checkFQCIsSubmit(td).then(({data}) => {
  3492. if (data.flag != 1) {
  3493. let obj = {}
  3494. obj.subDetailValue = ""
  3495. obj.samplingLocation = ""
  3496. this.tableData.push(obj)
  3497. } else {
  3498. this.$alert("记录已提交!", '错误', {
  3499. confirmButtonText: '确定'
  3500. })
  3501. }
  3502. })
  3503. },
  3504. // 批量新增操作
  3505. batchHandleAdd (td) {
  3506. checkFQCIsSubmit(td).then(({data}) => {
  3507. if (data.flag !== 1) {
  3508. this.batchHandleAddModalFlag = true
  3509. } else {
  3510. this.$alert("记录已提交!", '错误', {
  3511. confirmButtonText: '确定'
  3512. })
  3513. }
  3514. })
  3515. },
  3516. // 批量新增行
  3517. batchHandleAddModal () {
  3518. for (let i = 0; i < this.batchAddData.samplingNumber; i++) {
  3519. let obj = {}
  3520. obj.samplingLocation = this.batchAddData.samplingLocation
  3521. obj.samplingLocationB = this.batchAddData.samplingLocationB
  3522. obj.subDetailValue = ""
  3523. this.tableData.push(obj)
  3524. }
  3525. this.batchHandleAddModalFlag = false
  3526. },
  3527. // 回车事件
  3528. nextFocus1 (index) {
  3529. let a1 = `${index + 1}` + `a`
  3530. this.$nextTick(() => {
  3531. this.$refs[a1].focus()
  3532. })
  3533. },
  3534. nextFocus2 (index) {
  3535. let a2 = `${index + 1}` + `b`
  3536. this.$nextTick(() => {
  3537. this.$refs[a2].focus()
  3538. })
  3539. },
  3540. nextFocus3 (index) {
  3541. let a3 = `${index + 1}` + `c`
  3542. this.$nextTick(() => {
  3543. this.$refs[a3].focus()
  3544. })
  3545. },
  3546. focusNextInput (index, type) {
  3547. let aaa = ''
  3548. if (this.detailList.length - 1 === index) {
  3549. aaa = `${type}0`
  3550. } else {
  3551. aaa = `${type}${index + 1}`
  3552. }
  3553. this.$nextTick(() => {
  3554. this.$refs[aaa].focus()
  3555. })
  3556. },
  3557. //删除
  3558. handleDeleteBtn (td) {
  3559. checkFQCIsSubmit(td).then(({data}) => {
  3560. if (data.flag !== 1) {
  3561. if (this.checkedDetail.length === 0) {
  3562. this.$alert("请先选择要删除的数据", "提示", {
  3563. confirmButtonText: "确定",
  3564. });
  3565. } else {
  3566. this.$confirm("请是否确认删除该子明细记录?", "提示", {
  3567. confirmButtonText: "确定",
  3568. cancelButtonText: "取消",
  3569. type: "warning",
  3570. callback: (action) => {
  3571. if (action === "confirm") {
  3572. let val = this.checkedDetail;
  3573. val.forEach((val, index) => {
  3574. this.tableData.forEach((v, i) => {
  3575. if (val.xh === v.xh) {
  3576. this.tableData.splice(i, 1);
  3577. }
  3578. })
  3579. })
  3580. this.$message({
  3581. message: "删除成功!",
  3582. type: "success",
  3583. })
  3584. //this.$refs.tb.clearSelection();
  3585. return
  3586. } else {
  3587. this.$message({
  3588. message: "已取消删除操作",
  3589. type: "warning",
  3590. })
  3591. return
  3592. }
  3593. },
  3594. })
  3595. }
  3596. } else {
  3597. this.$alert("记录已提交!", '错误', {
  3598. confirmButtonText: '确定'
  3599. })
  3600. }
  3601. })
  3602. },
  3603. // 新增子明细记录
  3604. saveSubDetailResult () {
  3605. for (let i = 0; i < this.tableData.length; i++) {
  3606. if (this.tableData[i].subDetailValue === '' || this.tableData[i].subDetailValue == null) {
  3607. this.$message.warning('序号' + (i+1) +'未填写实测值!')
  3608. return
  3609. }
  3610. }
  3611. this.subDetailData.subDetailValues = this.tableData
  3612. saveFQCSubDetailed(this.subDetailData).then(({data}) => {
  3613. if (data && data.code === 0) {
  3614. if (data.count > 0) {
  3615. this.subDetailData.itemResult = 'N'
  3616. this.subDetailData.unqualifiedQuantity = data.count
  3617. }
  3618. if (this.subDetailData.subDetailValues.length > 0) {
  3619. this.subDetailData.subDetailRecordNum = 1
  3620. } else {
  3621. this.subDetailData.subDetailRecordNum = -1
  3622. this.subDetailData.unqualifiedQuantity = 0
  3623. this.subDetailData.itemResult = 'Y'
  3624. }
  3625. this.subDetailFlag = false
  3626. this.tableData = []
  3627. this.$message({
  3628. message: '操作成功',
  3629. type: 'success',
  3630. duration: 1500,
  3631. onClose: () => {}
  3632. })
  3633. } else {
  3634. this.$alert(data.msg, '错误', {
  3635. confirmButtonText: '确定'
  3636. })
  3637. }
  3638. })
  3639. },
  3640. // 校验用户是否收藏
  3641. favoriteIsOk () {
  3642. let userFavorite = {
  3643. userId: this.$store.state.user.id,
  3644. languageCode: this.$i18n.locale
  3645. }
  3646. userFavoriteList(userFavorite).then(({data}) => {
  3647. for (let i = 0; i < data.list.length; i++) {
  3648. if (this.$route.meta.menuId === data.list[i].menuId) {
  3649. this.favorite = true
  3650. }
  3651. }
  3652. })
  3653. },
  3654. // 收藏 OR 取消收藏
  3655. favoriteFunction () {
  3656. let userFavorite = {
  3657. userId: this.$store.state.user.id,
  3658. functionId: this.$route.meta.menuId,
  3659. }
  3660. if (this.favorite) {
  3661. removeUserFavorite(userFavorite).then(({data}) => {
  3662. this.$message.success(data.msg)
  3663. this.favorite = false
  3664. })
  3665. } else {
  3666. // 收藏
  3667. saveUserFavorite(userFavorite).then(({data}) => {
  3668. this.$message.success(data.msg)
  3669. this.favorite = true
  3670. })
  3671. }
  3672. },
  3673. //导出excel
  3674. async createExportData () {
  3675. this.searchData.limit = -1
  3676. this.searchData.page = 1
  3677. await qcFQCInspectionSearch(this.searchData).then(({data}) => {
  3678. this.exportList= data.page.list
  3679. })
  3680. return this.exportList
  3681. },
  3682. startDownload() {},
  3683. finishDownload() {},
  3684. fields () {
  3685. let json = "{"
  3686. this.columnList1.forEach((item, index) => {
  3687. if (index === this.columnList1.length - 1) {
  3688. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
  3689. } else {
  3690. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
  3691. }
  3692. })
  3693. json += "}"
  3694. let s = eval("(" + json + ")")
  3695. return s
  3696. },
  3697. // 动态列开始 获取 用户保存的 格式列
  3698. async getTableUserColumn (tableId, columnId) {
  3699. let queryTableUser = {
  3700. userId: this.$store.state.user.name,
  3701. functionId: this.$route.meta.menuId,
  3702. tableId: tableId,
  3703. status: true,
  3704. languageCode: this.$i18n.locale
  3705. }
  3706. await getTableUserListLanguage(queryTableUser).then(({data}) => {
  3707. if (data.rows.length > 0) {
  3708. //this.columnList1 = []
  3709. switch (columnId) {
  3710. case 1:
  3711. this.columnList1 = data.rows
  3712. break;
  3713. case 2:
  3714. this.detailColumnList = data.rows
  3715. break;
  3716. case 3:
  3717. this.seqDetailColumnList = data.rows
  3718. break;
  3719. // case 4:
  3720. // this.columnList3 = data.rows
  3721. // break;
  3722. }
  3723. } else {
  3724. this.getColumnList(tableId, columnId)
  3725. }
  3726. })
  3727. },
  3728. // 获取 tableDefault 列
  3729. async getColumnList (tableId, columnId) {
  3730. let queryTable = {
  3731. functionId: this.$route.meta.menuId,
  3732. tableId: tableId,
  3733. languageCode: this.$i18n.locale
  3734. }
  3735. await getTableDefaultListLanguage(queryTable).then(({data}) => {
  3736. if (!data.rows.length == 0) {
  3737. switch (columnId) {
  3738. case 1:
  3739. this.columnList1 = data.rows
  3740. break;
  3741. case 2:
  3742. this.detailColumnList = data.rows
  3743. break;
  3744. case 3:
  3745. this.seqDetailColumnList = data.rows
  3746. break;
  3747. // case 4:
  3748. // this.columnList3 = data.rows
  3749. // break;
  3750. }
  3751. } else {
  3752. // this.showDefault = true.
  3753. }
  3754. })
  3755. },
  3756. /**
  3757. * 明细导入后将返回值回传给父组件
  3758. * @param val
  3759. */
  3760. changeMyString (val) {
  3761. for (let i = 0; i < this.detailList.length; i++) {
  3762. if (val[this.detailList[i].itemNo] !== undefined) {
  3763. this.detailList[i].unqualifiedQuantity = val[this.detailList[i].itemNo]
  3764. if (val[this.detailList[i].itemNo] != null) {
  3765. this.detailList[i].subDetailRecordNum = 1
  3766. }
  3767. if (val[this.detailList[i].itemNo] > 0) {
  3768. this.detailList[i].itemResult = 'N'
  3769. }
  3770. }
  3771. }
  3772. },
  3773. searchSeqInfo () {
  3774. let tempData = {
  3775. // 取modalData.bu中index为0的字符作为site 例:2_01-Label 取2
  3776. site: this.modalData.bu.at(0),
  3777. seqNo: this.seqDetailData.seqNo,
  3778. orderNo: this.seqDetailData.orderNo,
  3779. sku: this.seqDetailData.sku,
  3780. partDesc: this.seqDetailData.partDesc,
  3781. partNo: this.seqDetailData.partNo,
  3782. operationDesc: this.seqDetailData.operationDesc,
  3783. status: this.seqDetailData.status
  3784. }
  3785. if (!this.seqDetailData.seqNo && !this.seqDetailData.orderNo && !this.seqDetailData.sku && !this.seqDetailData.partNo && !this.seqDetailData.partDesc && !this.seqDetailData.operationDesc){
  3786. this.seqInfoList = []
  3787. } else {
  3788. searchSeqInfo(tempData).then(({data}) => {
  3789. if (data && data.code === 0) {
  3790. this.seqInfoList = data.rows
  3791. } else {
  3792. this.$alert(data.msg, '错误', {
  3793. confirmButtonText: '确定'
  3794. })
  3795. }
  3796. })
  3797. }
  3798. },
  3799. closeDialog () {
  3800. this.seqDetailData = {
  3801. seqNo : '',
  3802. orderNo: '',
  3803. sku: '',
  3804. partNo: '',
  3805. partDesc:'',
  3806. operationDesc: '',
  3807. status: '下达'
  3808. }
  3809. this.seqInfoList = []
  3810. },
  3811. //获取按钮的权限数据
  3812. getButtonAuthData () {
  3813. let searchFlag = this.isAuth(this.menuId+":search")
  3814. let checkFlag = this.isAuth(this.menuId+":check")
  3815. let saveFlag = this.isAuth(this.menuId+":save")
  3816. let deleteFlag = this.isAuth(this.menuId+":delete")
  3817. let detailFlag = this.isAuth(this.menuId+":detail")
  3818. let fileFlag = this.isAuth(this.menuId+":file")
  3819. //处理页面的权限数据
  3820. this.authSearch = !searchFlag
  3821. this.authCheck = !checkFlag
  3822. this.authSave = !saveFlag
  3823. this.authDelete = !deleteFlag
  3824. this.authDetail = !detailFlag
  3825. this.authFile = !fileFlag
  3826. },
  3827. }
  3828. }
  3829. </script>
  3830. <style scoped>
  3831. /deep/ .redElSelect .el-input--suffix .el-input__inner{
  3832. color: red;
  3833. font-weight: bold;
  3834. }
  3835. /deep/ .greenElSelect .el-input--suffix .el-input__inner{
  3836. color: rgb(103,194,58);
  3837. font-weight: bold;
  3838. }
  3839. .numInput /deep/ .el-input__inner{
  3840. text-align: right;
  3841. }
  3842. .el-table /deep/ .cell{
  3843. height: auto;
  3844. line-height: 1.5;
  3845. }
  3846. </style>