赫艾前端
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.

1443 lines
59 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <template>
  2. <div class="outgoing-report-container report-tabs">
  3. <el-button class="tabs-print no-print" type="success" size="small" :disabled="!report.delNo" @click="printBoth">打印</el-button>
  4. <el-tabs v-model="activeTab">
  5. <el-tab-pane label="出货检验" name="left">
  6. <div class="toolbar no-print">
  7. <el-button type="primary" @click="openSelectDialog">选择出货通知单</el-button>
  8. <span v-if="report.delNo" class="picked-no">通知单:{{ report.delNo }} 行号:{{ report.delItemNo }}</span>
  9. </div>
  10. <div v-if="report.delNo" class="report-content out-sheet">
  11. <table class="out-table">
  12. <colgroup>
  13. <col class="c1" /><col class="c2" /><col class="c3" /><col class="c4" />
  14. <col class="c5" /><col class="c6" /><col class="c7" /><col class="c8" />
  15. <col class="c9" /><col class="c10" /><col class="c11" /><col class="c12" />
  16. </colgroup>
  17. <tr class="head-row">
  18. <td colspan="3" class="logo-cell">
  19. <img v-if="logoUrl" :src="logoUrl" class="logo" alt="" />
  20. </td>
  21. <td colspan="9" class="title-cell">
  22. <div class="title-text">OUTGOING QUALITY INSPECTION REPORT</div>
  23. <div class="doc-no">QP-8.2-02-R05</div>
  24. </td>
  25. </tr>
  26. <tr>
  27. <td colspan="2" class="label">Date:</td>
  28. <td colspan="2" class="value">{{ formatDate(report.delDate) }}</td>
  29. <td colspan="2" class="label">Customer:</td>
  30. <td colspan="2" class="value">{{ report.customerName }}</td>
  31. <td colspan="2" class="label">PN:</td>
  32. <td colspan="2" class="value">{{ report.partNo }}</td>
  33. </tr>
  34. <tr>
  35. <td colspan="2" class="label">P/O:</td>
  36. <td colspan="2" class="value">{{ report.orderNo }}</td>
  37. <td colspan="2" class="label">Lot Size</td>
  38. <td colspan="2" class="value">{{ displayQty(report.shipQty) }}</td>
  39. <td colspan="2" class="label">Sampling QTY</td>
  40. <td colspan="2" class="value">{{ displayQty(report.samplingQty) }}</td>
  41. </tr>
  42. <tr>
  43. <td colspan="2" class="label left">Sampling Standard</td>
  44. <td colspan="2" class="value">GB/T 2828</td>
  45. <td class="label">Leverl</td>
  46. <td colspan="2" class="value"></td>
  47. <td colspan="5" class="value">
  48. <span class="opt" @click="samplingLevel = 'Normal'"><i class="tick">{{ samplingLevel === 'Normal' ? '✓' : '' }}</i>Normal 常规</span>
  49. <span class="opt" @click="samplingLevel = 'Tightened'"><i class="tick">{{ samplingLevel === 'Tightened' ? '✓' : '' }}</i>Tightened 加严</span>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td colspan="4" class="label">关键 Critical (0.1)</td>
  54. <td colspan="4" class="label">主要 Major (1)</td>
  55. <td colspan="4" class="label">次要 Minor (4.0)</td>
  56. </tr>
  57. <tr>
  58. <td class="label">ACC.</td>
  59. <td class="value">0</td>
  60. <td class="label">Rej.</td>
  61. <td class="value">1</td>
  62. <td class="label">ACC.</td>
  63. <td class="value">1</td>
  64. <td class="label">Rej.</td>
  65. <td class="value">3</td>
  66. <td class="label">ACC.</td>
  67. <td class="value">7</td>
  68. <td class="label">Rej.</td>
  69. <td class="value">10</td>
  70. </tr>
  71. <tr>
  72. <td colspan="9" class="section">Surface Quality Inspection Standard</td>
  73. <td class="label">Critical</td>
  74. <td class="label">Main</td>
  75. <td class="label">Minor</td>
  76. </tr>
  77. <tr>
  78. <td colspan="2" class="label">Constructure</td>
  79. <td colspan="7" class="left">Dimensions &amp; surface requirment based on the print; see print;</td>
  80. <td class="mark">√</td>
  81. <td></td>
  82. <td></td>
  83. </tr>
  84. <tr>
  85. <td colspan="2" rowspan="2" class="label">Surface</td>
  86. <td colspan="7" class="left">1.Surface inspection standard based on ISO3601;</td>
  87. <td></td>
  88. <td class="mark">√</td>
  89. <td></td>
  90. </tr>
  91. <tr>
  92. <td colspan="7" class="left">2.Surface has no crack,burrs,spews,bubble or defects;</td>
  93. <td class="mark">√</td>
  94. <td></td>
  95. <td></td>
  96. </tr>
  97. <tr>
  98. <td colspan="2" class="label">Scratch</td>
  99. <td colspan="7" class="left">Scratch can not feeling,length≤10mm,width≤0.1mm,one surface ≤1strip</td>
  100. <td></td>
  101. <td></td>
  102. <td class="mark">√</td>
  103. </tr>
  104. <tr>
  105. <td colspan="2" class="label">Chromatism</td>
  106. <td colspan="7" class="left">Color based on print;not allow obvious different color in one batch;</td>
  107. <td></td>
  108. <td></td>
  109. <td class="mark">√</td>
  110. </tr>
  111. <tr>
  112. <td colspan="12" class="banner">Surface Quality Inspection Report (Including Gage inspect)</td>
  113. </tr>
  114. <tr>
  115. <td colspan="12" class="photo-cell">
  116. <img v-if="photoUrl" :src="photoUrl" class="part-photo" alt="" />
  117. </td>
  118. </tr>
  119. <tr>
  120. <td rowspan="2" class="label">Item</td>
  121. <td colspan="2" rowspan="2" class="label">Inspection Item</td>
  122. <td colspan="9" class="label">Spot Inspection Data (1 group = 25 PCS)</td>
  123. </tr>
  124. <tr>
  125. <td v-for="n in 7" :key="'h'+n">{{ n }}</td>
  126. <td>PASS</td>
  127. <td>FAIL</td>
  128. </tr>
  129. <tr v-for="(name, index) in spotItems" :key="name">
  130. <td>{{ index + 1 }}</td>
  131. <td colspan="2" class="left">{{ name }}</td>
  132. <td v-for="n in 7" :key="name+n"></td>
  133. <td></td>
  134. <td></td>
  135. </tr>
  136. </table>
  137. </div>
  138. <div v-else class="empty-state">
  139. <i class="el-icon-document" style="font-size: 60px; color: #dcdfe6;"></i>
  140. <p>请先点击“选择出货通知单”</p>
  141. </div>
  142. </el-tab-pane>
  143. <el-tab-pane label="材料与尺寸" name="right" :disabled="!report.delNo">
  144. <div class="toolbar no-print">
  145. <el-button type="warning" @click="openTemplateDialog">选择模板</el-button>
  146. <el-button type="primary" :disabled="!selectedTemplateCode" @click="openInspDialog('fqc')">选择FQC检验单</el-button>
  147. <el-button type="primary" :disabled="!selectedTemplateCode" @click="openInspDialog('ipqc')">选择IPQC检验单</el-button>
  148. <span v-if="selectedTemplateCode" class="picked-no">模板:{{ selectedTemplateDesc || selectedTemplateCode }}</span>
  149. <span v-if="fqcRecord.inspectionNo" class="picked-no">FQC:{{ fqcRecord.inspectionNo }}</span>
  150. <span v-if="ipqcRecord.inspectionNo" class="picked-no">IPQC:{{ ipqcRecord.inspectionNo }}</span>
  151. </div>
  152. <div v-if="selectedTemplateCode" class="report-content mat-report">
  153. <table class="out-table">
  154. <colgroup>
  155. <col class="mc" /><col class="mc" /><col class="mc" /><col class="mc" />
  156. <col class="mc" /><col class="mc" /><col class="mc" /><col class="mc" />
  157. <col class="mc" /><col class="mc" /><col class="mc" /><col class="mp" /><col class="mp" />
  158. </colgroup>
  159. <tr class="head-row">
  160. <td colspan="3" class="logo-cell">
  161. <img v-if="logoUrl" :src="logoUrl" class="logo" alt="" />
  162. </td>
  163. <td colspan="10" class="title-cell title-plain">
  164. <div class="title-text">OUTGOING QUALITY INSPECTION REPORT</div>
  165. </td>
  166. </tr>
  167. <tr>
  168. <td colspan="6" class="section">Certification Of Material</td>
  169. <td colspan="2" class="label">Standard</td>
  170. <td colspan="2" class="label">Required</td>
  171. <td class="label">Result</td>
  172. <td class="label">Pass</td>
  173. <td class="label">Fail</td>
  174. </tr>
  175. <tr>
  176. <td>1</td>
  177. <td colspan="5" class="left">Material Type</td>
  178. <td colspan="2"></td>
  179. <td colspan="2">{{ mat('materialType').required }}</td>
  180. <td>{{ mat('materialType').result }}</td>
  181. <td class="mark">{{ mat('materialType').pass ? '✓' : '' }}</td>
  182. <td class="mark">{{ mat('materialType').fail ? '✓' : '' }}</td>
  183. </tr>
  184. <tr>
  185. <td>2</td>
  186. <td colspan="2" class="left">Durometer,pts</td>
  187. <td colspan="3">
  188. <span class="opt" @click="pickChoice('durometer', 'lab')"><i class="tick">{{ choices.durometer === 'lab' ? '✓' : '' }}</i>Lab. Standard</span>
  189. </td>
  190. <td colspan="2">D2240</td>
  191. <td colspan="2">{{ mat('durometerLab').required }}</td>
  192. <td>{{ mat('durometerLab').result }}</td>
  193. <td class="mark">{{ mat('durometerLab').pass ? '✓' : '' }}</td>
  194. <td class="mark">{{ mat('durometerLab').fail ? '✓' : '' }}</td>
  195. </tr>
  196. <tr>
  197. <td>3</td>
  198. <td colspan="2" class="left">Durometer,pts</td>
  199. <td colspan="3">
  200. <span class="opt" @click="pickChoice('durometer', 'product')"><i class="tick">{{ choices.durometer === 'product' ? '✓' : '' }}</i>Product</span>
  201. </td>
  202. <td colspan="2">D2240</td>
  203. <td colspan="2">{{ mat('durometerProduct').required }}</td>
  204. <td>{{ mat('durometerProduct').result }}</td>
  205. <td class="mark">{{ mat('durometerProduct').pass ? '✓' : '' }}</td>
  206. <td class="mark">{{ mat('durometerProduct').fail ? '✓' : '' }}</td>
  207. </tr>
  208. <tr>
  209. <td>4</td>
  210. <td colspan="5" class="left">Tensile, min(Mpa)</td>
  211. <td colspan="2">D412/DieC</td>
  212. <td colspan="2">{{ mat('tensile').required }}</td>
  213. <td>{{ mat('tensile').result }}</td>
  214. <td class="mark">{{ mat('tensile').pass ? '✓' : '' }}</td>
  215. <td class="mark">{{ mat('tensile').fail ? '✓' : '' }}</td>
  216. </tr>
  217. <tr>
  218. <td>5</td>
  219. <td colspan="5" class="left">Tear Resistance,min(KN/m)</td>
  220. <td colspan="2">D624/DieC</td>
  221. <td colspan="2">{{ mat('tear').required }}</td>
  222. <td>{{ mat('tear').result }}</td>
  223. <td class="mark">{{ mat('tear').pass ? '✓' : '' }}</td>
  224. <td class="mark">{{ mat('tear').fail ? '✓' : '' }}</td>
  225. </tr>
  226. <tr>
  227. <td>6</td>
  228. <td colspan="5" class="left">Elongation,min%</td>
  229. <td colspan="2">D412/DieC</td>
  230. <td colspan="2">{{ mat('elongation').required }}</td>
  231. <td>{{ mat('elongation').result }}</td>
  232. <td class="mark">{{ mat('elongation').pass ? '✓' : '' }}</td>
  233. <td class="mark">{{ mat('elongation').fail ? '✓' : '' }}</td>
  234. </tr>
  235. <tr>
  236. <td>7</td>
  237. <td colspan="2" class="left">Density(G/CM)</td>
  238. <td colspan="3">
  239. <span class="opt" @click="pickChoice('density', '100')"><i class="tick">{{ choices.density === '100' ? '✓' : '' }}</i>100℃</span>
  240. </td>
  241. <td colspan="2">D297</td>
  242. <td colspan="2">{{ mat('density').required }}</td>
  243. <td>{{ mat('density').result }}</td>
  244. <td class="mark">{{ mat('density').pass ? '✓' : '' }}</td>
  245. <td class="mark">{{ mat('density').fail ? '✓' : '' }}</td>
  246. </tr>
  247. <tr>
  248. <td>8</td>
  249. <td colspan="2" class="left">Mooney(1+4)</td>
  250. <td colspan="3">
  251. <span class="opt" @click="pickChoice('mooney', '125')"><i class="tick">{{ choices.mooney === '125' ? '✓' : '' }}</i>125℃</span>
  252. </td>
  253. <td colspan="2">D1646</td>
  254. <td colspan="2">{{ mat('mooney').required }}</td>
  255. <td>{{ mat('mooney').result }}</td>
  256. <td class="mark">{{ mat('mooney').pass ? '✓' : '' }}</td>
  257. <td class="mark">{{ mat('mooney').fail ? '✓' : '' }}</td>
  258. </tr>
  259. <tr>
  260. <td colspan="3" class="label">Carton Packing</td>
  261. <td colspan="3">
  262. <span class="opt" @click="pickChoice('carton', 'single')"><i class="tick">{{ choices.carton === 'single' ? '✓' : '' }}</i>single</span>
  263. <span class="opt" @click="pickChoice('carton', 'mixing')"><i class="tick">{{ choices.carton === 'mixing' ? '✓' : '' }}</i>Mixing</span>
  264. </td>
  265. <td colspan="2" class="left">Inspection Report</td>
  266. <td colspan="2">
  267. <span class="opt" @click="pickChoice('inspectionReport', 'yes')"><i class="tick">{{ choices.inspectionReport === 'yes' ? '✓' : '' }}</i>Yes</span>
  268. <span class="opt" @click="pickChoice('inspectionReport', 'no')"><i class="tick">{{ choices.inspectionReport === 'no' ? '✓' : '' }}</i>NO</span>
  269. </td>
  270. <td class="left">Bag label</td>
  271. <td colspan="2">
  272. <span class="opt" @click="pickChoice('bagLabel', 'yes')"><i class="tick">{{ choices.bagLabel === 'yes' ? '✓' : '' }}</i>Yes</span>
  273. <span class="opt" @click="pickChoice('bagLabel', 'no')"><i class="tick">{{ choices.bagLabel === 'no' ? '✓' : '' }}</i>NO</span>
  274. </td>
  275. </tr>
  276. <tr>
  277. <td colspan="3" class="label">Material Report</td>
  278. <td colspan="3">
  279. <span class="opt" @click="pickChoice('materialReport', 'yes')"><i class="tick">{{ choices.materialReport === 'yes' ? '✓' : '' }}</i>Yes</span>
  280. <span class="opt" @click="pickChoice('materialReport', 'no')"><i class="tick">{{ choices.materialReport === 'no' ? '✓' : '' }}</i>NO</span>
  281. </td>
  282. <td colspan="2" class="left">Packing List</td>
  283. <td colspan="2">
  284. <span class="opt" @click="pickChoice('packingList', 'yes')"><i class="tick">{{ choices.packingList === 'yes' ? '✓' : '' }}</i>Yes</span>
  285. <span class="opt" @click="pickChoice('packingList', 'no')"><i class="tick">{{ choices.packingList === 'no' ? '✓' : '' }}</i>NO</span>
  286. </td>
  287. <td class="left">Slabs</td>
  288. <td colspan="2">
  289. <span class="opt" @click="pickChoice('slabs', 'yes')"><i class="tick">{{ choices.slabs === 'yes' ? '✓' : '' }}</i>Yes</span>
  290. <span class="opt" @click="pickChoice('slabs', 'no')"><i class="tick">{{ choices.slabs === 'no' ? '✓' : '' }}</i>NO</span>
  291. </td>
  292. </tr>
  293. <tr>
  294. <td colspan="10" class="banner">Main Dimensions Random Inspection</td>
  295. <td class="left">Hardness</td>
  296. <td colspan="2">
  297. <span class="opt" @click="pickChoice('hardness', 'yes')"><i class="tick">{{ choices.hardness === 'yes' ? '✓' : '' }}</i>Yes</span>
  298. <span class="opt" @click="pickChoice('hardness', 'no')"><i class="tick">{{ choices.hardness === 'no' ? '✓' : '' }}</i>NO</span>
  299. </td>
  300. </tr>
  301. <tr>
  302. <td colspan="2" class="left">Post Cure:</td>
  303. <td colspan="2">{{ postText('postCure1') }}</td>
  304. <td class="label">xx</td>
  305. <td colspan="2">{{ postText('xx') }}</td>
  306. <td colspan="2" class="label">Job/Purchase No.</td>
  307. <td>{{ postText('jobPurchase') }}</td>
  308. <td class="left">Taste</td>
  309. <td colspan="2">
  310. <span class="opt" @click="pickChoice('taste', 'yes')"><i class="tick">{{ choices.taste === 'yes' ? '✓' : '' }}</i>Yes</span>
  311. <span class="opt" @click="pickChoice('taste', 'no')"><i class="tick">{{ choices.taste === 'no' ? '✓' : '' }}</i>NO</span>
  312. </td>
  313. </tr>
  314. <tr>
  315. <td colspan="10"></td>
  316. <td class="label">Tolerance</td>
  317. <td colspan="2">{{ postText('toleranceAttr') }}</td>
  318. </tr>
  319. </table>
  320. <table class="dim-table">
  321. <colgroup>
  322. <col class="dd" /><col class="dd" /><col class="dd" /><col class="dd" /><col class="dd" />
  323. <col class="dd" /><col class="dd" /><col class="dd" /><col class="dd" /><col class="dd" />
  324. <col class="dd" /><col class="dd" /><col class="dd" /><col class="dp" /><col class="dp" />
  325. </colgroup>
  326. <tr>
  327. <td rowspan="3" class="seq-head seq-cell">
  328. <button type="button" class="sign-btn plus no-print" @click="addDimRow">+</button>
  329. 序号
  330. </td>
  331. <td rowspan="3" class="col-op">操作</td>
  332. <td rowspan="3" class="col-mode">展现方式</td>
  333. <td rowspan="2">Dimension</td>
  334. <td rowspan="2">Tolerance</td>
  335. <td rowspan="3">转换</td>
  336. <td colspan="2">Limited Dimension</td>
  337. <td colspan="5">Inspection Data</td>
  338. <td rowspan="3">PASS</td>
  339. <td rowspan="3">FAIL</td>
  340. </tr>
  341. <tr>
  342. <td>Down</td>
  343. <td>UP</td>
  344. <td v-for="n in 5" :key="'cav'+n">Cavity</td>
  345. </tr>
  346. <tr>
  347. <td class="unit-note">(英寸:INCH) (不转换:MM)</td>
  348. <td class="unit-note">(英寸:INCH) (不转换:MM)</td>
  349. <td class="unit-note">(英寸:INCH) (不转换:MM)</td>
  350. <td class="unit-note">(英寸:INCH) (不转换:MM)</td>
  351. <td v-for="n in 5" :key="'idx'+n">{{ n }}</td>
  352. </tr>
  353. <tr v-for="(row, index) in dimRows" :key="'u'+row.uid">
  354. <td class="seq-cell">
  355. <button type="button" class="sign-btn minus no-print" @click="deleteDimRow(index)">−</button>
  356. {{ index + 1 }}
  357. </td>
  358. <td class="col-op">
  359. <el-button size="mini" class="no-print" @click="openItemDialog(row)">选择</el-button>
  360. </td>
  361. <td class="col-mode">
  362. <select v-model="row.displayMode" class="mode-select no-print" @change="rebuildDimRow(row)">
  363. <option value="列转行">列转行</option>
  364. <option value="行转列">行转列</option>
  365. </select>
  366. <span class="print-only">{{ row.displayMode }}</span>
  367. </td>
  368. <td class="left">{{ row.itemDesc }}</td>
  369. <td>{{ showNum(row, row.stdValue) }}</td>
  370. <td>
  371. <select v-model="row.unitMode" class="mode-select no-print">
  372. <option value="不转换">不转换</option>
  373. <option value="英寸">英寸</option>
  374. </select>
  375. <span class="print-only">{{ row.unitMode }}</span>
  376. </td>
  377. <td>{{ showNum(row, row.minValue) }}</td>
  378. <td>{{ showNum(row, row.maxValue) }}</td>
  379. <td v-for="n in 5" :key="'um'+row.uid+n">{{ showNum(row, row.upperMeasures[n - 1]) }}</td>
  380. <td class="mark">{{ row.fqcResult === 'Y' ? '✓' : '' }}</td>
  381. <td class="mark">{{ row.fqcResult === 'N' ? '✓' : '' }}</td>
  382. </tr>
  383. </table>
  384. <table class="dim-table lower-dim">
  385. <colgroup>
  386. <col class="dd" /><col class="dd" /><col class="dd" /><col class="dd" /><col class="dd" />
  387. <col class="dd" /><col class="dd" /><col class="dd" /><col class="dd" /><col class="dd" />
  388. <col class="dd" /><col class="dd" /><col class="dd" /><col class="dp" /><col class="dp" />
  389. </colgroup>
  390. <tr>
  391. <td rowspan="2" class="seq-head">序号</td>
  392. <td rowspan="2" class="col-op"></td>
  393. <td rowspan="2" class="col-mode"></td>
  394. <td rowspan="2">Dimension</td>
  395. <td rowspan="2">Tolerance</td>
  396. <td rowspan="2"></td>
  397. <td>Down</td>
  398. <td>UP</td>
  399. <td v-for="n in 5" :key="'lc'+n">Cavity</td>
  400. <td rowspan="2">PASS</td>
  401. <td rowspan="2">FAIL</td>
  402. </tr>
  403. <tr>
  404. <td class="unit-note">(英寸:INCH) (不转换:MM)</td>
  405. <td class="unit-note">(英寸:INCH) (不转换:MM)</td>
  406. <td v-for="n in 5" :key="'li'+n">{{ n + 5 }}</td>
  407. </tr>
  408. <tr v-for="(row, index) in dimRows" :key="'d'+row.uid">
  409. <td>{{ index + 1 }}</td>
  410. <td class="col-op"></td>
  411. <td class="col-mode"></td>
  412. <td class="left">{{ row.itemDesc }}</td>
  413. <td>{{ showNum(row, row.stdValue) }}</td>
  414. <td></td>
  415. <td>{{ showNum(row, row.minValue) }}</td>
  416. <td>{{ showNum(row, row.maxValue) }}</td>
  417. <td v-for="n in 5" :key="'lm'+row.uid+n">{{ showNum(row, row.lowerMeasures[n - 1]) }}</td>
  418. <td class="mark">{{ row.ipqcResult === 'Y' ? '✓' : '' }}</td>
  419. <td class="mark">{{ row.ipqcResult === 'N' ? '✓' : '' }}</td>
  420. </tr>
  421. </table>
  422. </div>
  423. <div v-else class="empty-state">
  424. <i class="el-icon-document" style="font-size: 60px; color: #dcdfe6;"></i>
  425. <p>请先选择模板,再分别选择 FQC、IPQC 检验单</p>
  426. </div>
  427. </el-tab-pane>
  428. </el-tabs>
  429. <el-dialog title="选择出货通知单" :visible.sync="selectDialogVisible" width="90%" top="5vh" :modal-append-to-body="false" :destroy-on-close="true">
  430. <el-form :inline="true" :model="searchData" size="small">
  431. <el-form-item label="通知单号">
  432. <el-input v-model="searchData.delNo" clearable style="width: 150px"></el-input>
  433. </el-form-item>
  434. <el-form-item label="订单号">
  435. <el-input v-model="searchData.orderNo" clearable style="width: 150px"></el-input>
  436. </el-form-item>
  437. <el-form-item label="物料编码">
  438. <el-input v-model="searchData.partNo" clearable style="width: 150px"></el-input>
  439. </el-form-item>
  440. <el-form-item label="客户编码">
  441. <el-input v-model="searchData.customerNo" clearable style="width: 140px"></el-input>
  442. </el-form-item>
  443. <el-form-item label="检验单号">
  444. <el-input v-model="searchData.inspectionNo" clearable style="width: 150px"></el-input>
  445. </el-form-item>
  446. <el-form-item label="检验单状态">
  447. <el-select v-model="searchData.state" clearable placeholder="全部" style="width: 120px">
  448. <el-option label="已完成" value="已完成"></el-option>
  449. <el-option label="待审核" value="待审核"></el-option>
  450. <el-option label="待检验" value="待检验"></el-option>
  451. <el-option label="未开始" value="未开始"></el-option>
  452. </el-select>
  453. </el-form-item>
  454. <el-form-item>
  455. <el-button type="primary" @click="searchList">查询</el-button>
  456. <el-button @click="resetSearch">重置</el-button>
  457. </el-form-item>
  458. </el-form>
  459. <el-table :data="delList" border stripe highlight-current-row height="450" @current-change="row => selectedRow = row" @row-dblclick="handleRowDblClick">
  460. <el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
  461. <el-table-column prop="delNo" label="通知单号" min-width="140"></el-table-column>
  462. <el-table-column prop="delDate" label="日期" min-width="110"></el-table-column>
  463. <el-table-column prop="customerNo" label="客户编码" min-width="110"></el-table-column>
  464. <el-table-column prop="customerName" label="客户" min-width="160"></el-table-column>
  465. <el-table-column prop="orderNo" label="订单号" min-width="130"></el-table-column>
  466. <el-table-column prop="delItemNo" label="行号" width="70"></el-table-column>
  467. <el-table-column prop="partNo" label="物料编码" min-width="130"></el-table-column>
  468. <el-table-column prop="shipQty" label="出货数量" min-width="90"></el-table-column>
  469. <el-table-column prop="samplingQty" label="抽样数量" min-width="90"></el-table-column>
  470. <el-table-column prop="inspectionNo" label="检验单号" min-width="150"></el-table-column>
  471. <el-table-column prop="state" label="检验单状态" min-width="100"></el-table-column>
  472. </el-table>
  473. <el-pagination
  474. @size-change="val => { searchData.limit = val; searchData.page = 1; searchList() }"
  475. @current-change="val => { searchData.page = val; searchList() }"
  476. :current-page="searchData.page"
  477. :page-sizes="[10, 20, 50, 100]"
  478. :page-size="searchData.limit"
  479. :total="total"
  480. layout="total, sizes, prev, pager, next, jumper"
  481. style="margin-top: 10px; text-align: right;">
  482. </el-pagination>
  483. <div slot="footer">
  484. <el-button @click="selectDialogVisible = false">取消</el-button>
  485. <el-button type="primary" :disabled="!selectedRow" @click="confirmSelection">确定</el-button>
  486. </div>
  487. </el-dialog>
  488. <el-dialog :title="inspKind === 'fqc' ? '选择FQC检验单' : '选择IPQC检验单'" :visible.sync="inspDialogVisible" width="90%" top="5vh" :modal-append-to-body="false" :destroy-on-close="true">
  489. <el-form :inline="true" :model="inspSearch" size="small">
  490. <el-form-item label="检验单号">
  491. <el-input v-model="inspSearch.inspectionNo" clearable style="width: 150px"></el-input>
  492. </el-form-item>
  493. <el-form-item label="物料编码">
  494. <el-input v-model="inspSearch.partNo" clearable style="width: 150px"></el-input>
  495. </el-form-item>
  496. <el-form-item label="物料名称">
  497. <el-input v-model="inspSearch.partDesc" clearable style="width: 180px"></el-input>
  498. </el-form-item>
  499. <el-form-item>
  500. <el-button type="primary" @click="searchInspList">查询</el-button>
  501. <el-button @click="resetInspSearch">重置</el-button>
  502. </el-form-item>
  503. </el-form>
  504. <el-table :data="inspList" border stripe highlight-current-row height="450" @current-change="row => selectedInspRow = row" @row-dblclick="handleInspDblClick">
  505. <el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
  506. <el-table-column prop="inspectionNo" label="检验单号" min-width="150"></el-table-column>
  507. <el-table-column prop="partNo" label="物料编码" min-width="120"></el-table-column>
  508. <el-table-column prop="partDesc" label="物料名称" min-width="150"></el-table-column>
  509. <el-table-column prop="seqNo" label="派工单号" min-width="120"></el-table-column>
  510. <el-table-column prop="state" label="状态" min-width="90"></el-table-column>
  511. <el-table-column prop="inspectionResult" label="检验结论" min-width="100"></el-table-column>
  512. </el-table>
  513. <el-pagination
  514. @size-change="val => { inspSearch.limit = val; inspSearch.page = 1; searchInspList() }"
  515. @current-change="val => { inspSearch.page = val; searchInspList() }"
  516. :current-page="inspSearch.page"
  517. :page-sizes="[10, 20, 50, 100]"
  518. :page-size="inspSearch.limit"
  519. :total="inspTotal"
  520. layout="total, sizes, prev, pager, next, jumper"
  521. style="margin-top: 10px; text-align: right;">
  522. </el-pagination>
  523. <div slot="footer">
  524. <el-button @click="inspDialogVisible = false">取消</el-button>
  525. <el-button type="primary" :disabled="!selectedInspRow" @click="confirmInsp">确定</el-button>
  526. </div>
  527. </el-dialog>
  528. <el-dialog title="选择模板" :visible.sync="templateDialogVisible" width="60%" top="8vh" :modal-append-to-body="false" :destroy-on-close="true">
  529. <el-form :inline="true" :model="templateSearch" size="small">
  530. <el-form-item label="模板编号">
  531. <el-input v-model="templateSearch.codeNo" clearable style="width: 150px"></el-input>
  532. </el-form-item>
  533. <el-form-item label="模板名称">
  534. <el-input v-model="templateSearch.codeDesc" clearable style="width: 200px"></el-input>
  535. </el-form-item>
  536. <el-form-item>
  537. <el-button type="primary" @click="searchTemplateList">查询</el-button>
  538. <el-button @click="resetTemplateSearch">重置</el-button>
  539. </el-form-item>
  540. </el-form>
  541. <el-table :data="templateList" border stripe highlight-current-row height="400" @current-change="row => selectedTemplateRow = row" @row-dblclick="handleTemplateDblClick">
  542. <el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
  543. <el-table-column prop="codeNo" label="属性模板编号" min-width="150"></el-table-column>
  544. <el-table-column prop="codeDesc" label="属性模板名称" min-width="220"></el-table-column>
  545. <el-table-column prop="functionType" label="功能类型" min-width="100"></el-table-column>
  546. </el-table>
  547. <el-pagination
  548. @size-change="val => { templateSearch.limit = val; templateSearch.page = 1; searchTemplateList() }"
  549. @current-change="val => { templateSearch.page = val; searchTemplateList() }"
  550. :current-page="templateSearch.page"
  551. :page-sizes="[10, 20, 50, 100]"
  552. :page-size="templateSearch.limit"
  553. :total="templateTotal"
  554. layout="total, sizes, prev, pager, next, jumper"
  555. style="margin-top: 10px; text-align: right;">
  556. </el-pagination>
  557. <div slot="footer">
  558. <el-button @click="templateDialogVisible = false">取消</el-button>
  559. <el-button type="primary" :disabled="!selectedTemplateRow" @click="confirmTemplate">确定</el-button>
  560. </div>
  561. </el-dialog>
  562. <el-dialog title="选择检验项目" :visible.sync="itemDialogVisible" width="60%" top="8vh" :modal-append-to-body="false" :destroy-on-close="true">
  563. <el-form :inline="true" :model="itemSearch" size="small">
  564. <el-form-item label="项目名称">
  565. <el-input v-model="itemSearch.itemDesc" clearable style="width: 200px"></el-input>
  566. </el-form-item>
  567. <el-form-item>
  568. <el-button type="primary" @click="searchItemList">查询</el-button>
  569. </el-form-item>
  570. </el-form>
  571. <el-table :data="itemList" border stripe highlight-current-row height="400" @current-change="row => selectedItemRow = row" @row-dblclick="handleItemDblClick">
  572. <el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
  573. <el-table-column prop="itemNo" label="检验项目编码" min-width="120"></el-table-column>
  574. <el-table-column prop="itemDesc" label="检验项目名称" min-width="180"></el-table-column>
  575. <el-table-column prop="defaultValue" label="标准值" min-width="100"></el-table-column>
  576. <el-table-column prop="minValue" label="最小值" min-width="90"></el-table-column>
  577. <el-table-column prop="maxValue" label="最大值" min-width="90"></el-table-column>
  578. <el-table-column prop="textValue" label="实测值" min-width="120"></el-table-column>
  579. <el-table-column label="FAIL" min-width="80" align="center">
  580. <template slot-scope="scope">{{ scope.row.itemResult === 'N' ? '✓' : '' }}</template>
  581. </el-table-column>
  582. </el-table>
  583. <el-pagination
  584. @size-change="val => { itemSearch.limit = val; itemSearch.page = 1; searchItemList() }"
  585. @current-change="val => { itemSearch.page = val; searchItemList() }"
  586. :current-page="itemSearch.page"
  587. :page-sizes="[10, 20, 50, 100]"
  588. :page-size="itemSearch.limit"
  589. :total="itemTotal"
  590. layout="total, sizes, prev, pager, next, jumper"
  591. style="margin-top: 10px; text-align: right;">
  592. </el-pagination>
  593. <div slot="footer">
  594. <el-button @click="itemDialogVisible = false">取消</el-button>
  595. <el-button type="primary" :disabled="!selectedItemRow" @click="confirmItem">确定</el-button>
  596. </div>
  597. </el-dialog>
  598. </div>
  599. </template>
  600. <script>
  601. import { getOutgoingDelList, getPropertiesModelList, getPropertiesModelDetail, getFQCReport, getIPQCReport } from '@/api/qc/qc_report.js'
  602. import { getPhotoAddressData } from '@/api/pad.js'
  603. import { qcFQCInspectionSearch, qcIPQCInspectionSearch, selectFQCSubDetailedRecord, selectIPQCSubDetailedRecord } from '@/api/qc/qc.js'
  604. import { buildPrintImageUrl } from '@/utils/runtimeSiteConfig.js'
  605. function normName (value) {
  606. return String(value == null ? '' : value).replace(/[\s::.。,,()()/%+\-]/g, '').toLowerCase()
  607. }
  608. const FIELD_ALIASES = [
  609. ['materialType', ['Material Type']],
  610. ['durometerLab', ['Durometer Lab', 'Durometer Lab. Standard', 'Durometer,pts(Lab. Standard)']],
  611. ['durometerProduct', ['Durometer Product', 'Durometer,pts(Product)']],
  612. ['tensile', ['Tensile', 'Tensile, min(Mpa)', 'Tensile min']],
  613. ['tear', ['Tear Resistance', 'Tear Resistance,min(KN/m)']],
  614. ['elongation', ['Elongation', 'Elongation,min%']],
  615. ['density', ['Density', 'Density(G/CM)']],
  616. ['mooney', ['Mooney', 'Mooney(1+4)']],
  617. ['postCure1', ['Post Cure', 'Post Cure 1']],
  618. ['xx', ['xx']],
  619. ['jobPurchase', ['Job/Purchase No.', 'Job/Purchase No']],
  620. ['toleranceAttr', ['Tolerance']]
  621. ]
  622. const FIELD_KEY = {}
  623. FIELD_ALIASES.forEach(pair => {
  624. pair[1].forEach(label => { FIELD_KEY[normName(label)] = pair[0] })
  625. })
  626. const POST_KEYS = { postCure1: true, xx: true, jobPurchase: true, toleranceAttr: true }
  627. const SPOT_ITEMS = [
  628. 'Flash & Burrs',
  629. 'Dirty Point & Bubble',
  630. 'Scratch & Crack',
  631. 'Broken & Split',
  632. 'Chromatism & colorate',
  633. 'Gage Tool check',
  634. 'Polybag label',
  635. 'Polybag weight',
  636. 'Carton Polybags'
  637. ]
  638. export default {
  639. name: '产品出货检验报告',
  640. data () {
  641. return {
  642. activeTab: 'left',
  643. samplingLevel: 'Normal',
  644. spotItems: SPOT_ITEMS,
  645. logoUrl: '',
  646. photoUrl: '',
  647. report: {},
  648. selectDialogVisible: false,
  649. selectedRow: null,
  650. delList: [],
  651. total: 0,
  652. searchData: { delNo: '', orderNo: '', partNo: '', customerNo: '', inspectionNo: '', state: '已完成', page: 1, limit: 10 },
  653. selectedTemplateCode: '',
  654. selectedTemplateDesc: '',
  655. templateRows: [],
  656. templateDialogVisible: false,
  657. selectedTemplateRow: null,
  658. templateList: [],
  659. templateTotal: 0,
  660. templateSearch: { codeNo: '', codeDesc: '', page: 1, limit: 10 },
  661. choices: {
  662. durometer: 'lab',
  663. density: '',
  664. mooney: '',
  665. carton: 'single',
  666. inspectionReport: 'yes',
  667. bagLabel: 'yes',
  668. materialReport: 'yes',
  669. packingList: 'yes',
  670. slabs: 'no',
  671. hardness: 'no',
  672. taste: 'no'
  673. },
  674. material: {},
  675. fqcRecord: {},
  676. ipqcRecord: {},
  677. fqcDetailMap: {},
  678. ipqcDetailMap: {},
  679. fqcDetailList: [],
  680. dimRows: [],
  681. inspKind: 'fqc',
  682. inspDialogVisible: false,
  683. selectedInspRow: null,
  684. inspList: [],
  685. inspTotal: 0,
  686. inspSearch: { inspectionNo: '', partNo: '', partDesc: '', page: 1, limit: 10 },
  687. itemDialogVisible: false,
  688. currentDimRow: null,
  689. selectedItemRow: null,
  690. itemList: [],
  691. itemTotal: 0,
  692. itemSearch: { itemDesc: '', page: 1, limit: 10 },
  693. dimSeed: 1
  694. }
  695. },
  696. methods: {
  697. displayQty (value) {
  698. if (value === null || value === undefined || value === '') return ''
  699. const num = Number(value)
  700. return Number.isNaN(num) ? value : String(num)
  701. },
  702. formatDate (value) {
  703. if (!value) return ''
  704. const text = String(value)
  705. return text.length >= 10 ? text.substring(0, 10) : text
  706. },
  707. openSelectDialog () {
  708. this.selectDialogVisible = true
  709. this.selectedRow = null
  710. this.searchList()
  711. },
  712. resetSearch () {
  713. this.searchData = { delNo: '', orderNo: '', partNo: '', customerNo: '', inspectionNo: '', state: '已完成', page: 1, limit: 10 }
  714. this.delList = []
  715. this.total = 0
  716. this.selectedRow = null
  717. this.searchList()
  718. },
  719. searchList () {
  720. getOutgoingDelList({
  721. site: '',
  722. delNo: this.searchData.delNo || '',
  723. orderNo: this.searchData.orderNo || '',
  724. partNo: this.searchData.partNo || '',
  725. customerNo: this.searchData.customerNo || '',
  726. inspectionNo: this.searchData.inspectionNo || '',
  727. state: this.searchData.state || '',
  728. page: this.searchData.page,
  729. limit: this.searchData.limit
  730. }).then(({data}) => {
  731. if (data && data.code === 0) {
  732. this.delList = (data.page && data.page.list) || []
  733. this.total = (data.page && data.page.totalCount) || 0
  734. } else {
  735. this.delList = []
  736. this.total = 0
  737. this.$message.error((data && data.msg) || '查询失败')
  738. }
  739. })
  740. },
  741. handleRowDblClick (row) {
  742. this.selectedRow = row
  743. this.confirmSelection()
  744. },
  745. confirmSelection () {
  746. if (!this.selectedRow) return
  747. this.report = { ...this.selectedRow }
  748. this.samplingLevel = 'Normal'
  749. this.logoUrl = ''
  750. this.photoUrl = ''
  751. const fileName = this.report.logoFileName == null ? '' : String(this.report.logoFileName).trim()
  752. if (fileName) this.logoUrl = buildPrintImageUrl(fileName)
  753. this.loadPartPhoto()
  754. this.selectDialogVisible = false
  755. this.activeTab = 'left'
  756. },
  757. loadPartPhoto () {
  758. if (!this.report.site || !this.report.partNo) return
  759. getPhotoAddressData({ site: this.report.site, partNo: this.report.partNo }).then(({data}) => {
  760. const rows = (data && data.rows) || []
  761. if (!rows.length) {
  762. this.photoUrl = ''
  763. return
  764. }
  765. const name = rows[0].attaFileNameDb || rows[0].attaFileName || ''
  766. const base = this.$store.state.user.padSopUrl || ''
  767. this.photoUrl = name ? base + name : ''
  768. })
  769. },
  770. printBoth () {
  771. if (!this.report.delNo) {
  772. this.$message.warning('请先选择出货通知单')
  773. return
  774. }
  775. const left = this.$el.querySelector('.out-sheet')
  776. if (!left) {
  777. this.$message.warning('请先选择出货通知单')
  778. return
  779. }
  780. const right = this.$el.querySelector('.mat-report')
  781. const leftClone = this.cloneSheet(left)
  782. const rightClone = right ? this.cloneSheet(right) : null
  783. const html = `<div class="print-pair"><div class="print-col">${leftClone.innerHTML}</div><div class="print-col">${rightClone ? rightClone.innerHTML : ''}</div></div>`
  784. const printWindow = window.open('', '_blank')
  785. printWindow.document.write(`<!DOCTYPE html><html><head><title>产品出货检验报告</title><style>${this.printStyle()}${this.materialPrintStyle()}</style></head><body>${html}</body></html>`)
  786. printWindow.document.close()
  787. printWindow.focus()
  788. setTimeout(() => {
  789. printWindow.print()
  790. printWindow.close()
  791. }, 300)
  792. },
  793. cloneSheet (node) {
  794. const clone = node.cloneNode(true)
  795. const liveImgs = node.querySelectorAll('img')
  796. const cloneImgs = clone.querySelectorAll('img')
  797. for (let i = 0; i < liveImgs.length; i++) {
  798. if (liveImgs[i].src && cloneImgs[i]) cloneImgs[i].setAttribute('src', liveImgs[i].src)
  799. }
  800. Array.prototype.forEach.call(clone.querySelectorAll('.no-print'), function (el) {
  801. if (el.parentNode) el.parentNode.removeChild(el)
  802. })
  803. return clone
  804. },
  805. printStyle () {
  806. return `
  807. @page { size: A3 landscape; margin: 6mm; }
  808. body { margin: 0; }
  809. .out-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  810. .out-table td { border: 1px solid #000; text-align: center; vertical-align: middle; font-family: Arial, '宋体', sans-serif; font-size: 10px; padding: 2px; word-break: break-all; }
  811. .head-row td, .doc-row td { border-color: transparent; }
  812. .head-row td { height: 58px; border-top: 1px solid #000; border-bottom: 1px solid #000; }
  813. .head-row td.logo-cell { border-left: 1px solid #000; }
  814. .head-row td.title-cell { border-right: 1px solid #000; }
  815. .doc-row td { height: 18px; }
  816. .doc-row td:first-child { border-left: 1px solid #000; }
  817. .doc-row td:last-child { border-right: 1px solid #000; }
  818. .logo { height: 36px; max-width: 140px; width: auto; object-fit: contain; }
  819. .out-table td.title-cell { position: relative; padding-bottom: 12px; border-color: transparent; border-top: 1px solid #000; border-bottom: 1px solid #000; border-right: 1px solid #000; font-family: 'Arial Black', 'Microsoft YaHei', sans-serif; font-size: 13px; font-weight: 700; line-height: 1.1; text-align: center; }
  820. .out-table td.title-plain { padding-bottom: 2px; }
  821. .doc-no { position: absolute; right: 6px; bottom: 2px; font-family: Arial, '宋体', sans-serif; font-size: 11px; font-weight: 700; line-height: 1; }
  822. .label { font-weight: 700; }
  823. .out-table td.left { text-align: left; padding-left: 4px; }
  824. .section { font-size: 13px; font-weight: 700; }
  825. .banner, .photo-title { font-family: 'Times New Roman', serif; font-size: 14px; font-weight: 700; }
  826. .photo-cell { height: 160px; }
  827. .part-photo { max-height: 150px; max-width: 90%; object-fit: contain; }
  828. .tick { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 12px; height: 12px; margin-right: 3px; border: 1px solid #000; font-style: normal; font-size: 11px; line-height: 1; vertical-align: middle; overflow: hidden; }
  829. .opt { margin-right: 10px; white-space: nowrap; }
  830. `
  831. },
  832. defaultChoices () {
  833. return {
  834. durometer: 'lab', density: '', mooney: '', carton: 'single',
  835. inspectionReport: 'yes', bagLabel: 'yes', materialReport: 'yes', packingList: 'yes',
  836. slabs: 'no', hardness: 'no', taste: 'no'
  837. }
  838. },
  839. emptyMaterial () {
  840. const material = {}
  841. FIELD_ALIASES.forEach(pair => {
  842. material[pair[0]] = { required: '', result: '', pass: false, fail: false }
  843. })
  844. return material
  845. },
  846. mat (key) {
  847. return this.material[key] || { required: '', result: '', pass: false, fail: false }
  848. },
  849. postText (key) {
  850. const item = this.mat(key)
  851. return item.result || ''
  852. },
  853. jobNo () {
  854. const seq = this.ipqcRecord && this.ipqcRecord.seqNo
  855. return seq == null ? '' : seq
  856. },
  857. pickChoice (group, value) {
  858. this.$set(this.choices, group, this.choices[group] === value ? '' : value)
  859. },
  860. blankFive () {
  861. return ['', '', '', '', '']
  862. },
  863. newDimRow () {
  864. this.dimSeed += 1
  865. return {
  866. uid: this.dimSeed,
  867. displayMode: '列转行',
  868. unitMode: '不转换',
  869. itemNo: '',
  870. itemDesc: '',
  871. stdValue: '',
  872. minValue: '',
  873. maxValue: '',
  874. fqcResult: '',
  875. ipqcResult: '',
  876. fqcSubs: [],
  877. ipqcSubs: [],
  878. upperMeasures: this.blankFive(),
  879. lowerMeasures: this.blankFive()
  880. }
  881. },
  882. blankDimRows () {
  883. const rows = []
  884. for (let i = 0; i < 6; i++) rows.push(this.newDimRow())
  885. return rows
  886. },
  887. addDimRow () {
  888. this.dimRows.push(this.newDimRow())
  889. },
  890. deleteDimRow (index) {
  891. this.dimRows.splice(index, 1)
  892. },
  893. openTemplateDialog () {
  894. if (!this.report.delNo) {
  895. this.$message.warning('请先在出货检验页签选择出货通知单')
  896. return
  897. }
  898. this.templateSearch = { codeNo: '', codeDesc: '', page: 1, limit: 10 }
  899. this.selectedTemplateRow = null
  900. this.templateDialogVisible = true
  901. this.searchTemplateList()
  902. },
  903. resetTemplateSearch () {
  904. this.templateSearch = { codeNo: '', codeDesc: '', page: 1, limit: 10 }
  905. this.selectedTemplateRow = null
  906. this.searchTemplateList()
  907. },
  908. searchTemplateList () {
  909. getPropertiesModelList({
  910. codeNo: this.templateSearch.codeNo || '',
  911. codeDesc: this.templateSearch.codeDesc || '',
  912. page: this.templateSearch.page,
  913. limit: this.templateSearch.limit
  914. }).then(({data}) => {
  915. if (data && data.code === 0) {
  916. this.templateList = (data.page && data.page.list) || []
  917. this.templateTotal = (data.page && data.page.totalCount) || 0
  918. } else {
  919. this.templateList = []
  920. this.templateTotal = 0
  921. this.$message.error((data && data.msg) || '属性模板查询失败')
  922. }
  923. })
  924. },
  925. handleTemplateDblClick (row) {
  926. this.selectedTemplateRow = row
  927. this.confirmTemplate()
  928. },
  929. confirmTemplate () {
  930. if (!this.selectedTemplateRow) return
  931. this.selectedTemplateCode = this.selectedTemplateRow.codeNo
  932. this.selectedTemplateDesc = this.selectedTemplateRow.codeDesc || ''
  933. this.templateDialogVisible = false
  934. this.fqcRecord = {}
  935. this.ipqcRecord = {}
  936. this.fqcDetailMap = {}
  937. this.ipqcDetailMap = {}
  938. this.fqcDetailList = []
  939. this.material = this.emptyMaterial()
  940. this.choices = this.defaultChoices()
  941. this.dimRows = this.blankDimRows()
  942. getPropertiesModelDetail({ codeNo: this.selectedTemplateCode }).then(({data}) => {
  943. if (data && data.code === 0) {
  944. this.templateRows = data.rows || []
  945. } else {
  946. this.templateRows = []
  947. this.$message.error((data && data.msg) || '属性模板明细查询失败')
  948. }
  949. })
  950. },
  951. openInspDialog (kind) {
  952. if (!this.selectedTemplateCode) {
  953. this.$message.warning('请先选择属性模板')
  954. return
  955. }
  956. this.inspKind = kind
  957. this.inspSearch = { inspectionNo: '', partNo: '', partDesc: '', page: 1, limit: 10 }
  958. this.inspList = []
  959. this.inspTotal = 0
  960. this.selectedInspRow = null
  961. this.inspDialogVisible = true
  962. },
  963. resetInspSearch () {
  964. this.inspSearch = { inspectionNo: '', partNo: '', partDesc: '', page: 1, limit: 10 }
  965. this.selectedInspRow = null
  966. this.inspList = []
  967. this.inspTotal = 0
  968. },
  969. searchInspList () {
  970. const payload = {
  971. site: '',
  972. userName: this.$store.state.user.name,
  973. inspectionNo: this.inspSearch.inspectionNo || '',
  974. partNo: this.inspSearch.partNo || '',
  975. partDesc: this.inspSearch.partDesc || '',
  976. page: this.inspSearch.page,
  977. limit: this.inspSearch.limit
  978. }
  979. const request = this.inspKind === 'ipqc' ? qcIPQCInspectionSearch : qcFQCInspectionSearch
  980. request(payload).then(({data}) => {
  981. if (data && data.code === 0) {
  982. this.inspList = (data.page && data.page.list) || []
  983. this.inspTotal = (data.page && data.page.totalCount) || 0
  984. } else {
  985. this.inspList = []
  986. this.inspTotal = 0
  987. this.$message.error((data && data.msg) || '检验单查询失败')
  988. }
  989. })
  990. },
  991. handleInspDblClick (row) {
  992. this.selectedInspRow = row
  993. this.confirmInsp()
  994. },
  995. confirmInsp () {
  996. if (!this.selectedInspRow) return
  997. const row = { ...this.selectedInspRow }
  998. this.inspDialogVisible = false
  999. if (this.inspKind === 'ipqc') {
  1000. this.ipqcRecord = row
  1001. this.loadInspDetails('ipqc', row)
  1002. } else {
  1003. this.fqcRecord = row
  1004. this.loadInspDetails('fqc', row)
  1005. }
  1006. },
  1007. loadInspDetails (kind, record) {
  1008. const request = kind === 'ipqc' ? getIPQCReport : getFQCReport
  1009. request({
  1010. userName: this.$store.state.user.name,
  1011. inspectionNo: record.inspectionNo,
  1012. page: 1,
  1013. limit: 9999
  1014. }).then(({data}) => {
  1015. const list = ((data && data.code === 0 && data.page && data.page.list) || [])
  1016. .filter(item => item.itemNo && item.inspectionNo === record.inspectionNo)
  1017. const map = {}
  1018. list.forEach(item => {
  1019. if (map[item.itemNo] === undefined) map[item.itemNo] = item
  1020. })
  1021. if (kind === 'ipqc') {
  1022. this.ipqcDetailMap = map
  1023. } else {
  1024. this.fqcDetailMap = map
  1025. this.fqcDetailList = list.filter((item, index) => list.findIndex(row => row.itemNo === item.itemNo) === index)
  1026. }
  1027. this.fillFixed()
  1028. this.dimRows.forEach(dimRow => {
  1029. if (dimRow.itemNo) this.refreshDimSide(dimRow, kind)
  1030. })
  1031. })
  1032. },
  1033. fillFixed () {
  1034. const material = this.emptyMaterial()
  1035. ;(this.templateRows || []).forEach(row => {
  1036. const key = FIELD_KEY[normName(row.itemDesc)]
  1037. if (!key) return
  1038. const current = material[key]
  1039. if (current.required || current.result) return
  1040. if (row.defaultValue == null || row.defaultValue === '') return
  1041. const detail = POST_KEYS[key] ? this.ipqcDetailMap[row.defaultValue] : this.fqcDetailMap[row.defaultValue]
  1042. if (!detail) return
  1043. material[key] = {
  1044. required: detail.defaultValue != null ? detail.defaultValue : '',
  1045. result: detail.textValue || '',
  1046. pass: this.resultFlag(detail) === 'Y',
  1047. fail: this.resultFlag(detail) === 'N'
  1048. }
  1049. })
  1050. this.material = material
  1051. },
  1052. openItemDialog (row) {
  1053. if (!this.fqcRecord.inspectionNo) {
  1054. this.$message.warning('请先选择FQC检验单')
  1055. return
  1056. }
  1057. this.currentDimRow = row
  1058. this.selectedItemRow = null
  1059. this.itemSearch = { itemDesc: '', page: 1, limit: 10 }
  1060. this.itemDialogVisible = true
  1061. this.searchItemList()
  1062. },
  1063. searchItemList () {
  1064. const key = (this.itemSearch.itemDesc || '').trim().toLowerCase()
  1065. const all = (this.fqcDetailList || []).filter(item => {
  1066. if (!key) return true
  1067. return String(item.itemDesc || '').toLowerCase().indexOf(key) >= 0 || String(item.itemNo || '').toLowerCase().indexOf(key) >= 0
  1068. })
  1069. this.itemTotal = all.length
  1070. const start = (this.itemSearch.page - 1) * this.itemSearch.limit
  1071. this.itemList = all.slice(start, start + this.itemSearch.limit)
  1072. },
  1073. handleItemDblClick (row) {
  1074. this.selectedItemRow = row
  1075. this.confirmItem()
  1076. },
  1077. confirmItem () {
  1078. if (!this.selectedItemRow || !this.currentDimRow) return
  1079. const detail = this.selectedItemRow
  1080. const row = this.currentDimRow
  1081. const ipqc = this.ipqcDetailMap[detail.itemNo]
  1082. this.$set(row, 'itemNo', detail.itemNo || '')
  1083. this.$set(row, 'itemDesc', detail.itemDesc || '')
  1084. this.$set(row, 'stdValue', detail.defaultValue != null ? detail.defaultValue : (ipqc && ipqc.defaultValue != null ? ipqc.defaultValue : ''))
  1085. this.$set(row, 'minValue', detail.minValue != null ? detail.minValue : (ipqc && ipqc.minValue != null ? ipqc.minValue : ''))
  1086. this.$set(row, 'maxValue', detail.maxValue != null ? detail.maxValue : (ipqc && ipqc.maxValue != null ? ipqc.maxValue : ''))
  1087. this.$set(row, 'fqcResult', this.resultFlag(detail))
  1088. this.$set(row, 'ipqcResult', ipqc ? this.resultFlag(ipqc) : '')
  1089. this.itemDialogVisible = false
  1090. this.loadDimSubs(row)
  1091. },
  1092. refreshDimSide (row, kind) {
  1093. if (kind === 'ipqc') {
  1094. const ipqc = this.ipqcDetailMap[row.itemNo]
  1095. this.$set(row, 'ipqcResult', ipqc ? this.resultFlag(ipqc) : '')
  1096. } else {
  1097. const fqc = this.fqcDetailMap[row.itemNo]
  1098. if (fqc) {
  1099. this.$set(row, 'itemDesc', fqc.itemDesc || row.itemDesc)
  1100. this.$set(row, 'stdValue', fqc.defaultValue != null ? fqc.defaultValue : '')
  1101. this.$set(row, 'minValue', fqc.minValue != null ? fqc.minValue : '')
  1102. this.$set(row, 'maxValue', fqc.maxValue != null ? fqc.maxValue : '')
  1103. this.$set(row, 'fqcResult', this.resultFlag(fqc))
  1104. }
  1105. }
  1106. this.loadDimSubs(row)
  1107. },
  1108. loadDimSubs (row) {
  1109. const jobs = []
  1110. if (this.fqcRecord.inspectionNo) {
  1111. jobs.push(selectFQCSubDetailedRecord({
  1112. site: this.fqcRecord.site || '',
  1113. buNo: this.fqcRecord.buNo || '',
  1114. inspectionNo: this.fqcRecord.inspectionNo,
  1115. itemNo: row.itemNo
  1116. }).then(({data}) => {
  1117. this.$set(row, 'fqcSubs', ((data && data.rows) || []).slice())
  1118. }))
  1119. } else {
  1120. this.$set(row, 'fqcSubs', [])
  1121. }
  1122. if (this.ipqcRecord.inspectionNo) {
  1123. jobs.push(selectIPQCSubDetailedRecord({
  1124. site: this.ipqcRecord.site || '',
  1125. buNo: this.ipqcRecord.buNo || '',
  1126. inspectionNo: this.ipqcRecord.inspectionNo,
  1127. itemNo: row.itemNo
  1128. }).then(({data}) => {
  1129. this.$set(row, 'ipqcSubs', ((data && data.rows) || []).slice())
  1130. }))
  1131. } else {
  1132. this.$set(row, 'ipqcSubs', [])
  1133. }
  1134. Promise.all(jobs).then(() => this.rebuildDimRow(row))
  1135. },
  1136. rebuildDimRow (row) {
  1137. const upper = this.calcMeasures(row.displayMode, row.fqcSubs).slice(0, 5)
  1138. const lower = this.calcMeasures(row.displayMode, row.ipqcSubs).slice(5, 10)
  1139. while (upper.length < 5) upper.push('')
  1140. while (lower.length < 5) lower.push('')
  1141. this.$set(row, 'upperMeasures', upper)
  1142. this.$set(row, 'lowerMeasures', lower)
  1143. },
  1144. textOf (value) {
  1145. return value == null ? '' : String(value).trim()
  1146. },
  1147. resultFlag (detail) {
  1148. if (!detail) return ''
  1149. if (detail.itemResult === 'Y' || detail.itemResult === 'N') return detail.itemResult
  1150. if (detail.itemResultDesc === '合格') return 'Y'
  1151. if (detail.itemResultDesc === '不合格') return 'N'
  1152. return ''
  1153. },
  1154. calcMeasures (mode, subDetails) {
  1155. const rows = (subDetails || []).slice().sort((a, b) => (a.num || 0) - (b.num || 0))
  1156. const raw = []
  1157. if (mode === '行转列') {
  1158. const first = rows[0] || {}
  1159. const second = rows[1] || {}
  1160. ;[first.subDetailValue, first.subDetailValueB, first.subDetailValueC, first.subDetailValueD, first.subDetailValueE,
  1161. second.subDetailValue, second.subDetailValueB, second.subDetailValueC, second.subDetailValueD, second.subDetailValueE]
  1162. .forEach(value => raw.push(this.textOf(value)))
  1163. } else {
  1164. rows.forEach(item => raw.push(this.textOf(item.subDetailValue)))
  1165. if (raw.filter(value => value).length < 10) {
  1166. rows.forEach(item => raw.push(this.textOf(item.subDetailValueB)))
  1167. }
  1168. }
  1169. const out = raw.filter(value => value)
  1170. while (out.length < 10) out.push('')
  1171. return out.slice(0, 10)
  1172. },
  1173. showNum (row, value) {
  1174. if (value == null || value === '') return ''
  1175. if (!row || row.unitMode !== '英寸') return value
  1176. const num = Number(String(value).replace(/,/g, ''))
  1177. if (!isFinite(num)) return value
  1178. const converted = Math.round((num / 25.4) * 10000) / 10000
  1179. return String(converted)
  1180. },
  1181. materialPrintStyle () {
  1182. return `
  1183. .print-pair { display: flex; align-items: flex-start; }
  1184. .print-col { width: 50%; box-sizing: border-box; }
  1185. .print-col + .print-col { padding-left: 8px; }
  1186. .print-col .out-table, .print-col .dim-table { min-width: 0; width: 100%; }
  1187. .dim-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: -1px; }
  1188. .dim-table td { border: 1px solid #000; text-align: center; vertical-align: middle; font-size: 8px; padding: 1px; word-break: break-all; height: auto; }
  1189. .print-only { display: inline; }
  1190. .unit-note { font-size: 7px; }
  1191. .sign-btn { display: none; }
  1192. `
  1193. }
  1194. }
  1195. }
  1196. </script>
  1197. <style scoped>
  1198. .outgoing-report-container {
  1199. padding: 0 12px 12px;
  1200. }
  1201. .report-tabs {
  1202. position: relative;
  1203. }
  1204. .tabs-print {
  1205. position: absolute;
  1206. right: 12px;
  1207. top: 4px;
  1208. z-index: 3;
  1209. }
  1210. .report-tabs >>> .el-tabs__header {
  1211. padding-right: 88px;
  1212. }
  1213. .toolbar {
  1214. margin-bottom: 8px;
  1215. text-align: right;
  1216. }
  1217. .picked-no {
  1218. margin-left: 12px;
  1219. font-size: 13px;
  1220. color: #606266;
  1221. }
  1222. .report-content {
  1223. background: #fff;
  1224. padding: 12px;
  1225. overflow: auto;
  1226. }
  1227. .out-table {
  1228. width: 100%;
  1229. min-width: 980px;
  1230. border-collapse: collapse;
  1231. table-layout: fixed;
  1232. }
  1233. .out-table td {
  1234. border: 1px solid #000;
  1235. text-align: center;
  1236. vertical-align: middle;
  1237. font-family: Arial, '宋体', sans-serif;
  1238. font-size: 12px;
  1239. height: 28px;
  1240. padding: 2px 4px;
  1241. }
  1242. .c1 { width: 7%; }
  1243. .c2 { width: 8%; }
  1244. .c3 { width: 7%; }
  1245. .c4 { width: 8%; }
  1246. .c5 { width: 8%; }
  1247. .c6 { width: 8%; }
  1248. .c7 { width: 10%; }
  1249. .c8 { width: 9%; }
  1250. .c9 { width: 8%; }
  1251. .c10 { width: 8%; }
  1252. .c11 { width: 9%; }
  1253. .c12 { width: 10%; }
  1254. .mat-report .mc,
  1255. .mat-report .mp,
  1256. .mat-report .dp {
  1257. width: 7.692%;
  1258. }
  1259. .mat-report .dd {
  1260. width: 6.509%;
  1261. }
  1262. .head-row td,
  1263. .doc-row td {
  1264. border-color: transparent;
  1265. }
  1266. .head-row td {
  1267. height: 58px;
  1268. border-top: 1px solid #000;
  1269. border-bottom: 1px solid #000;
  1270. }
  1271. .head-row td.logo-cell {
  1272. border-left: 1px solid #000;
  1273. }
  1274. .head-row td.title-cell {
  1275. border-right: 1px solid #000;
  1276. }
  1277. .doc-row td {
  1278. height: 22px;
  1279. }
  1280. .doc-row td:first-child {
  1281. border-left: 1px solid #000;
  1282. }
  1283. .doc-row td:last-child {
  1284. border-right: 1px solid #000;
  1285. }
  1286. .logo {
  1287. height: 40px;
  1288. max-width: 180px;
  1289. width: auto;
  1290. object-fit: contain;
  1291. display: block;
  1292. }
  1293. .out-table td.title-cell {
  1294. position: relative;
  1295. padding-bottom: 16px;
  1296. border-top: 1px solid #000;
  1297. border-bottom: 1px solid #000;
  1298. border-right: 1px solid #000;
  1299. font-family: 'Arial Black', 'Microsoft YaHei', sans-serif;
  1300. font-size: 22px;
  1301. font-weight: 700;
  1302. line-height: 1.1;
  1303. text-align: center;
  1304. }
  1305. .out-table td.title-plain {
  1306. padding-bottom: 2px;
  1307. }
  1308. .doc-no {
  1309. position: absolute;
  1310. right: 8px;
  1311. bottom: 3px;
  1312. font-family: Arial, '宋体', sans-serif;
  1313. font-size: 13px;
  1314. font-weight: 700;
  1315. line-height: 1;
  1316. }
  1317. .label {
  1318. font-weight: 700;
  1319. }
  1320. .out-table td.left {
  1321. text-align: left;
  1322. padding-left: 6px;
  1323. }
  1324. .section {
  1325. font-size: 15px;
  1326. font-weight: 700;
  1327. }
  1328. .banner,
  1329. .photo-title {
  1330. font-family: 'Times New Roman', serif;
  1331. font-size: 16px;
  1332. font-weight: 700;
  1333. }
  1334. .photo-cell {
  1335. height: 220px;
  1336. }
  1337. .part-photo {
  1338. max-height: 200px;
  1339. max-width: 70%;
  1340. object-fit: contain;
  1341. }
  1342. .mark {
  1343. font-size: 16px;
  1344. }
  1345. .opt {
  1346. margin-right: 16px;
  1347. cursor: pointer;
  1348. white-space: nowrap;
  1349. }
  1350. .tick {
  1351. display: inline-flex;
  1352. align-items: center;
  1353. justify-content: center;
  1354. box-sizing: border-box;
  1355. width: 13px;
  1356. height: 13px;
  1357. margin-right: 3px;
  1358. border: 1px solid #000;
  1359. font-style: normal;
  1360. font-size: 12px;
  1361. font-weight: 700;
  1362. line-height: 1;
  1363. vertical-align: middle;
  1364. overflow: hidden;
  1365. }
  1366. .empty-state {
  1367. text-align: center;
  1368. padding-top: 80px;
  1369. color: #909399;
  1370. }
  1371. .print-only {
  1372. display: none;
  1373. }
  1374. .mat-report {
  1375. padding-left: 28px;
  1376. }
  1377. .dim-table {
  1378. width: 100%;
  1379. min-width: 980px;
  1380. margin-top: -1px;
  1381. border-collapse: collapse;
  1382. table-layout: fixed;
  1383. }
  1384. .dim-table td {
  1385. border: 1px solid #000;
  1386. text-align: center;
  1387. vertical-align: middle;
  1388. font-family: Arial, '宋体', sans-serif;
  1389. font-size: 12px;
  1390. height: 28px;
  1391. padding: 2px 4px;
  1392. }
  1393. .dim-table td.left {
  1394. text-align: left;
  1395. padding-left: 4px;
  1396. }
  1397. .unit-note {
  1398. font-size: 10px;
  1399. line-height: 1.2;
  1400. }
  1401. .seq-cell {
  1402. position: relative;
  1403. }
  1404. .sign-btn {
  1405. position: absolute;
  1406. left: -22px;
  1407. top: 50%;
  1408. width: 18px;
  1409. height: 18px;
  1410. margin-top: -9px;
  1411. padding: 0;
  1412. border-radius: 2px;
  1413. background: #fff;
  1414. font-size: 14px;
  1415. line-height: 16px;
  1416. cursor: pointer;
  1417. }
  1418. .sign-btn.minus {
  1419. color: #f56c6c;
  1420. border: 1px solid #f56c6c;
  1421. }
  1422. .sign-btn.plus {
  1423. color: #409eff;
  1424. border: 1px solid #409eff;
  1425. }
  1426. .mode-select {
  1427. width: 76px;
  1428. height: 22px;
  1429. font-size: 12px;
  1430. }
  1431. </style>