semiProductJobBomPL.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969
  1. <template>
  2. <view>
  3. <view class="title_box rx-bc">
  4. <view class="name"> 报工信息: ({{list.length || 0}})个</view>
  5. </view>
  6. <view :class="['material', it.extInfo.reportWeight && it.extInfo.reportWeight && 'materialBor']"
  7. v-for="(it, idx) in list" :key="it.id + idx">
  8. <view class="content_table">
  9. <view class="item rx-sc">
  10. <view class="rx">
  11. <view class="lable lable190 rx-cc " @click="getDelete2(idx)">
  12. <view class="round">{{idx + 1}}</view>
  13. <uni-icons custom-prefix="iconfont" type="icon-shanchu" size="16"
  14. color="#fa3534"></uni-icons>
  15. 物料编码
  16. </view>
  17. <view class="content rx-bc">
  18. <view>{{it.code}} </view>
  19. <view class="tag_box"
  20. v-if="Object.prototype.hasOwnProperty.call(it, 'extInfo') && Object.prototype.hasOwnProperty.call(it.extInfo, 'productionTimes') && Object.prototype.hasOwnProperty.call(it.extInfo.productionTimes,item.currentTaskDiagram.taskId) ">
  21. {{ it.extInfo.productionTimes[item.currentTaskDiagram.taskId]}}
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="item rx-sc">
  27. <view class="rx">
  28. <view class="lable lable150 rx-cc ">名称</view>
  29. <view class="content rx-bc">
  30. <view>{{it.name}} <text v-if="[2, 23,9,28].includes(Number(it.rootCategoryLevelId))">
  31. ({{it.rootCategoryLevelId == 2 ? '在制品' : it.rootCategoryLevelId == 23 ? '半成品' : it.rootCategoryLevelId == 9 ? '产品' : it.rootCategoryLevelId == 28 ? '废品' : '' }})
  32. </text> </view>
  33. <view class="tag_box " v-if="it.isCache" style="margin-right: -36rpx;">缓</view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="item rx-sc">
  38. <view class="rx">
  39. <view class="lable lable150 rx-cc ">型号</view>
  40. <view class="content rx-sc">
  41. <view>{{it.modelType}}</view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- <view class="item rx-sc">
  46. <view class="rx ww50">
  47. <view class="lable lable150 rx-cc ">设备</view>
  48. <view class="content rx-sc">
  49. <view>{{ it.deviceName || it.extInfo.deviceName }}</view>
  50. </view>
  51. </view>
  52. <view class="rx ww50">
  53. <view class="lable lable150 rx-cc ">炉次号</view>
  54. <view class="content content_num ">
  55. <view v-if='isDetails'>{{it.extInfo.heatNumber }}</view>
  56. <input class="uni-input" v-else v-model="it.extInfo.heatNumber"></input>
  57. </view>
  58. </view>
  59. </view> -->
  60. <view class="item rx-sc">
  61. <view class="rx">
  62. <view class="lable lable190 rx-cc ">{{ it.extInfo.newWeight ? '上道工序总重量' : '物料总重量' }}(
  63. {{it.extInfo.weightUnit}})
  64. </view>
  65. <view class="content content_num rx-sc">
  66. <view v-if="it.extInfo.newWeight">{{it.extInfo.newWeight }}
  67. </view>
  68. <input v-else class="uni-input" size="mini" v-model="it.extInfo.weight"></input>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="item rx-sc">
  73. <view class="rx ww50">
  74. <view class="lable lable150 rx-cc ">投料数量</view>
  75. <view class="content content_num ">
  76. <view style="color:#157A2C;">{{it.feedQuantity }}</view>
  77. </view>
  78. </view>
  79. <view class="rx ww50">
  80. <view class="lable lable150 rx-cc ">投料类型</view>
  81. <view class="content rx-sc" style="color:#157A2C;">
  82. <view>批量投料</view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <view class="content_table2">
  88. <view class="head row rx-sc">
  89. <view class="item ww15" style="font-size: 20rpx;">
  90. 合格品数量
  91. </view>
  92. <view class="item ww25">报工总重量/{{it.extInfo.weightUnit}} </view>
  93. <view class="item ww20" style="font-size: 20rpx;">
  94. 设备
  95. </view>
  96. <view class="item ww20" style="font-size: 20rpx;">
  97. 炉次号
  98. </view>
  99. <view class="item ww20 rx-bc">
  100. <text>处置</text>
  101. <image v-if='!isDetails' class="icon" @click="handAddListPL(it, idx)"
  102. src="~@/static/pda/add.svg" style="width: 46rpx;height: 46rpx;margin-right: 12rpx;"></image>
  103. </view>
  104. <view class="item ww10 ">
  105. 操作
  106. </view>
  107. </view>
  108. <view class="table">
  109. <view class="tr row rx-sc" v-for="(yy, yyIdx) in it.extInfo.batchReportInfo">
  110. <view class="item ww15 content_num">
  111. <view v-if='isDetails'>{{yy.allFeedQuantity }}</view>
  112. <input class="uni-input" v-else v-model="yy.allFeedQuantity"
  113. @input="blurNum($event,idx, yyIdx)" type='number'></input>
  114. </view>
  115. <view class="item ww25 content_num">
  116. <view v-if='isDetails'>{{yy.allReportWeight }}</view>
  117. <input class="uni-input" v-else v-model="yy.allReportWeight" type='digit'></input>
  118. </view>
  119. <view class="item ww20 content_num">
  120. <view v-if='isDetails'>{{yy.deviceName }}</view>
  121. <zxz-uni-data-select v-else :localdata="deviceList" v-model="yy.deviceId" dataValue='instanceId'
  122. format='{name}' dataKey="instanceId" filterable
  123. @change=" e => selectValBatch(e, it, idx, yyIdx)" :clear='false'></zxz-uni-data-select>
  124. </view>
  125. <view class="item ww20 content_num">
  126. <view v-if='isDetails'>{{yy.heatNumber }}</view>
  127. <input class="uni-input" v-else v-model="yy.heatNumber" type='digit'></input>
  128. </view>
  129. <view class="item ww20" v-if='isDetails'>
  130. {{ yy.taskName}}
  131. </view>
  132. <view class="item ww20" v-else>
  133. <zxz-uni-data-select :localdata="stepsList" v-model="yy.taskId" dataValue='taskId'
  134. format='{taskTypeName}' dataKey="taskId" filterable
  135. @change=" e => yy.taskName = e.taskTypeName" :clear='false'></zxz-uni-data-select>
  136. </view>
  137. <view class="item ww10">
  138. <uni-icons v-if='!isDetails' custom-prefix="iconfont" type="icon-shanchu" size="16"
  139. @click="handDel3(idx, yyIdx)" color="#fa3534"></uni-icons>
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <view class="content_table2">
  145. <view class="head row rx-sc">
  146. <view class="item ww10" style="font-size: 20rpx;">
  147. 不合格数
  148. </view>
  149. <view class="item ww10" style="font-size: 20rpx;">
  150. 重量
  151. </view>
  152. <view class="item ww15">类型</view>
  153. <view class="item ww15" style="font-size: 20rpx;">
  154. 设备
  155. </view>
  156. <view class="item ww15" style="font-size: 20rpx;">
  157. 炉次号
  158. </view>
  159. <view class="item ww25 rx-bc">
  160. <text>处置/原因</text>
  161. <image v-if='!isDetails' class="icon" @click="handAddListPL4(it, idx)"
  162. src="~@/static/pda/add.svg" style="width: 46rpx;height: 46rpx;margin-right: 12rpx;"></image>
  163. </view>
  164. <view class="item ww10 ">
  165. 操作
  166. </view>
  167. </view>
  168. <view class="table">
  169. <view class="tr row rx-sc" v-for="(yy, yyIdx) in it.extInfo.notBatchReportInfo" :key="'not'+ idx + yyIdx">
  170. <view class="item ww10 content_num">
  171. <view v-if='isDetails'>{{yy.allFeedQuantity }}</view>
  172. <input class="uni-input" v-else v-model="yy.allFeedQuantity"
  173. @input="blurNum2($event,idx, yyIdx)" type='number'></input>
  174. </view>
  175. <view class="item ww10 content_num">
  176. <view v-if='isDetails'>{{yy.allReportWeight }}</view>
  177. <input class="uni-input" v-else v-model="yy.allReportWeight"
  178. type='number'></input>
  179. </view>
  180. <view class="item ww15 content_num">
  181. <zxz-uni-data-select :localdata="notTypeList" v-model="yy.notType" dataValue='code'
  182. format='{name}' dataKey="code" filterable :disabled="isDetails" @change="handLoad()"
  183. :clear='false'></zxz-uni-data-select>
  184. </view>
  185. <view class="item ww15 content_num">
  186. <view v-if='isDetails'>{{yy.deviceName }}</view>
  187. <zxz-uni-data-select :localdata="deviceList" v-model="yy.deviceId" dataValue='instanceId'
  188. format='{name}' dataKey="instanceId" filterable
  189. @change=" e => selectValNoBatch(e, it, idx, yyIdx)" :clear='false'></zxz-uni-data-select>
  190. </view>
  191. <view class="item ww15 content_num">
  192. <view v-if='isDetails'>{{yy.heatNumber }}</view>
  193. <input class="uni-input" v-else v-model="yy.heatNumber" ></input>
  194. </view>
  195. <view class="item ww25" v-if='isDetails'>
  196. {{ yy.notType == 5 ? yy.taskName : yy.notReason}}
  197. </view>
  198. <view class="item ww25 content_num" v-if="!isDetails && yy.notType == 5">
  199. <zxz-uni-data-select :localdata="stepsList" v-model="yy.taskId" dataValue='taskId'
  200. format='{taskTypeName}' dataKey="taskId" filterable
  201. @change=" e => yy.taskName = e.taskTypeName" :clear='false'></zxz-uni-data-select>
  202. </view>
  203. <view class="item ww25 content_num" v-if="!isDetails && yy.notType != 5">
  204. <input class="uni-input" v-if="yy.notType != 5 " v-model="yy.notReason"></input>
  205. </view>
  206. <view class="item ww10">
  207. <uni-icons v-if='!isDetails' custom-prefix="iconfont" type="icon-shanchu" size="16"
  208. @click="handDel4(idx, yyIdx)" color="#fa3534"></uni-icons>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. </view>
  215. </template>
  216. <script>
  217. import {
  218. getTaskInstanceList
  219. } from '@/api/pda/workOrder.js'
  220. export default {
  221. props: {
  222. item: {
  223. type: Object,
  224. default: () => {}
  225. },
  226. list: {
  227. type: Array,
  228. default: () => []
  229. },
  230. isDetails: {
  231. type: Boolean,
  232. default: false
  233. },
  234. equipmentList: {
  235. type: Array,
  236. default: () => []
  237. },
  238. },
  239. watch: {
  240. equipmentList: {
  241. immediate: true,
  242. deep: true,
  243. handler(newVal) {
  244. // this.deviceList = newVal
  245. //设备下拉框数据来源
  246. let newData=JSON.parse(JSON.stringify(newVal))
  247. if(this.isDetails){
  248. this.deviceList = newData;
  249. }else{
  250. this.deviceArr(newData)
  251. }
  252. this.changeHeatNumber()
  253. }
  254. },
  255. },
  256. data() {
  257. return {
  258. stepsList: [],
  259. deviceList: [],
  260. notTypeList: [{
  261. code: "1",
  262. name: '返工'
  263. },
  264. {
  265. code: "2",
  266. name: '返修'
  267. },
  268. {
  269. code: "3",
  270. name: '报废'
  271. },
  272. {
  273. code: '4',
  274. name: '降级使用'
  275. },
  276. {
  277. code: "5",
  278. name: '让步接收'
  279. }
  280. ]
  281. }
  282. },
  283. created() {
  284. this.getSteps()
  285. console.log(this.list)
  286. },
  287. mounted(){
  288. this.theFirst()
  289. },
  290. methods: {
  291. theFirst(){
  292. if(this.deviceList.length>0){
  293. let obj = this.deviceList[0];
  294. this.list.map((item,index)=>{
  295. this.$set(this.list[index].extInfo.batchReportInfo[0],'deviceName',obj.name)
  296. this.$set(this.list[index].extInfo.batchReportInfo[0], 'heatNumber',obj.extInfo.heatNumber)
  297. this.$set(this.list[index].extInfo.batchReportInfo[0],'deviceId',obj.instanceId)
  298. this.$set(this.list[index].extInfo.notBatchReportInfo[0],'deviceName',obj.name)
  299. this.$set(this.list[index].extInfo.notBatchReportInfo[0], 'heatNumber',obj.extInfo.heatNumber)
  300. this.$set(this.list[index].extInfo.notBatchReportInfo[0],'deviceId',obj.instanceId)
  301. })
  302. }
  303. },
  304. getSteps() {
  305. getTaskInstanceList(this.item.workOrderId).then(res => {
  306. if (this.item.singleReport == 1) {
  307. this.stepsList = res
  308. } else {
  309. this.stepsList = res.filter(f => f.type != 6);
  310. }
  311. })
  312. },
  313. deviceArr(data){
  314. data.forEach((o,i) => {
  315. o.id=o.id ? o.id.toString()+'/'+i : '';
  316. o.instanceId=o.instanceId ? o.instanceId.toString()+'/'+i : '';
  317. })
  318. this.deviceList = data;
  319. if (this.deviceList.length == 0) {
  320. this.list.forEach((o,index) => {
  321. //碳谷合格分批设备炉次号
  322. o.extInfo.batchReportInfo.map((report,ridx)=>{
  323. this.$set(this.list[index].extInfo.batchReportInfo[ridx],'deviceName',this.deviceList[0].name)
  324. this.$set(this.list[index].extInfo.batchReportInfo[ridx],'deviceId',this.deviceList[0].id||this.deviceList[0].instanceId)
  325. //炉次号
  326. this.$set(this.list[index].extInfo.batchReportInfo[ridx], 'heatNumber',this.deviceList[0].extInfo.heatNumber)
  327. })
  328. o.extInfo.notBatchReportInfo.map((noReport,noidx)=>{
  329. this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'deviceName',this.deviceList[0].name)
  330. this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'deviceId',this.deviceList[0].id||this.deviceList[0].instanceId)
  331. //炉次号
  332. this.$set(this.list[index].extInfo.notBatchReportInfo[noidx], 'heatNumber',this.deviceList[0].extInfo.heatNumber)
  333. })
  334. //碳谷合格分批设备炉次号
  335. this.$forceUpdate();
  336. })
  337. }
  338. },
  339. handAddListPL(it, idx) {
  340. let deviceid=''
  341. if(this.deviceList.length>0){
  342. deviceid=this.deviceList[0].id||this.deviceList[0].instanceId
  343. }
  344. this.list[idx].extInfo.batchReportInfo.push({
  345. allFeedQuantity: '',
  346. allReportWeight: '',
  347. taskId: '',
  348. taskName: '',
  349. deviceId: deviceid?deviceid:'',
  350. deviceName:this.deviceList.length>0?this.deviceList[0].deviceName:'',
  351. heatNumber: this.deviceList.length>0?this.deviceList[0].extInfo.heatNumber:'',
  352. })
  353. this.$forceUpdate()
  354. },
  355. handDel3(idx, yyIdx) {
  356. this.list[idx].extInfo.batchReportInfo.splice(yyIdx, 1)
  357. },
  358. blurNum(event, idx, yyIdx) {
  359. let value = event.target.value;
  360. value = value.replace(/\./g, '');
  361. this.$set(this.list[idx].extInfo.batchReportInfo[yyIdx], 'allFeedQuantity', value);
  362. let count = 0
  363. this.list[idx].extInfo.batchReportInfo.forEach(m => {
  364. count = count + Number(m.allFeedQuantity || 0)
  365. })
  366. let count2 = 0
  367. this.list[idx].extInfo.notBatchReportInfo.forEach(m => {
  368. count2 = count2 + Number(m.allFeedQuantity || 0)
  369. })
  370. if (Number(count + count2) > this.list[idx].feedQuantity) {
  371. this.$set(this.list[idx].extInfo.batchReportInfo[yyIdx], 'allFeedQuantity', 0)
  372. this.$forceUpdate()
  373. uni.showToast({
  374. title: `投料数不能大于投料数量`,
  375. icon: 'none'
  376. })
  377. }
  378. },
  379. blurNum2(event, idx, yyIdx) {
  380. let value = event.target.value;
  381. value = value.replace(/\./g, '');
  382. this.$set(this.list[idx].extInfo.notBatchReportInfo[yyIdx], 'allFeedQuantity', value);
  383. let count = 0
  384. this.list[idx].extInfo.batchReportInfo.forEach(m => {
  385. count = count + Number(m.allFeedQuantity || 0)
  386. })
  387. let count2 = 0
  388. this.list[idx].extInfo.notBatchReportInfo.forEach(m => {
  389. count2 = count2 + Number(m.allFeedQuantity || 0)
  390. })
  391. if (Number(count + count2) > this.list[idx].feedQuantity) {
  392. this.$set(this.list[idx].extInfo.notBatchReportInfo[yyIdx], 'allFeedQuantity', 0)
  393. this.$forceUpdate()
  394. uni.showToast({
  395. title: `投料数不能大于投料数量`,
  396. icon: 'none'
  397. })
  398. }
  399. },
  400. getDelete2(idx) {
  401. uni.showModal({
  402. title: '删除',
  403. content: '是否确实删除此物料!',
  404. confirmText: '确认', //这块是确定按钮的文字
  405. success: rr => {
  406. if (rr.confirm) {
  407. this.list.splice(idx, 1)
  408. }
  409. }
  410. })
  411. },
  412. selectValBatch(e, item, idx,bidx){
  413. let obj = this.deviceList.find((f) => f.id||f.instanceId == e.instanceId);
  414. //设备名称
  415. this.$set(this.list[idx].extInfo.batchReportInfo[bidx],'deviceName',obj.name)
  416. //炉次号
  417. this.$set(this.list[idx].extInfo.batchReportInfo[bidx], 'heatNumber',obj.extInfo.heatNumber)
  418. //设备id
  419. this.$set(this.list[idx].extInfo.batchReportInfo[bidx],'deviceId',obj.id||obj.instanceId)
  420. this.$forceUpdate();
  421. },
  422. selectValNoBatch(e, item, idx,bidx){
  423. let obj = this.deviceList.find((f) => f.id||f.instanceId == e.instanceId);
  424. //设备名称
  425. this.$set(this.list[idx].extInfo.notBatchReportInfo[bidx],'deviceName',obj.name)
  426. //炉次号
  427. this.$set(this.list[idx].extInfo.notBatchReportInfo[bidx], 'heatNumber',obj.extInfo.heatNumber)
  428. //设备id
  429. this.$set(this.list[idx].extInfo.notBatchReportInfo[bidx],'deviceId',obj.id||obj.instanceId)
  430. console.log('456',this.list[idx].extInfo.notBatchReportInfo[bidx])
  431. this.$forceUpdate();
  432. },
  433. handAddListPL4(it, idx) {
  434. let deviceid=''
  435. if(this.deviceList.length>0){
  436. deviceid=this.deviceList[0].id||this.deviceList[0].instanceId
  437. }
  438. this.list[idx].extInfo.notBatchReportInfo.push({
  439. allFeedQuantity: '',
  440. allReportWeight: '',
  441. notType: '',
  442. taskId: '',
  443. taskName: '',
  444. notReason: '',
  445. deviceId: deviceid?deviceid:'',
  446. deviceName:this.deviceList.length>0?this.deviceList[0].deviceName:'',
  447. heatNumber: this.deviceList.length>0?this.deviceList[0].extInfo.heatNumber:''
  448. })
  449. this.$forceUpdate()
  450. },
  451. handDel4(idx, yyIdx) {
  452. this.list[idx].extInfo.notBatchReportInfo.splice(yyIdx, 1)
  453. this.$forceUpdate()
  454. },
  455. handLoad() {
  456. this.$forceUpdate()
  457. },
  458. changeHeatNumber() {
  459. this.deviceList.forEach((f) => {
  460. this.list.forEach((o,index) => {
  461. // o.deviceId &&
  462. // f.instanceId == o.deviceId &&
  463. if (
  464. this.deviceList.length > 1
  465. ) {
  466. // o.extInfo.heatNumber = f.extInfo.heatNumber;
  467. this.$set(this.list[index].extInfo,'heatNumber',f.extInfo.heatNumber)
  468. //碳谷合格分批设备炉次号
  469. o.extInfo.batchReportInfo.map((report,ridx)=>{
  470. if(report.deviceId==f.instanceId){
  471. this.$set(this.list[index].extInfo.batchReportInfo[ridx],'heatNumber',f.extInfo.heatNumber)
  472. }
  473. })
  474. o.extInfo.notBatchReportInfo.map((noReport,noidx)=>{
  475. if(noReport.deviceId==f.instanceId){
  476. this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'heatNumber',f.extInfo.heatNumber)
  477. }
  478. })
  479. this.$forceUpdate();
  480. } else if (this.deviceList.length == 1) {
  481. o['deviceId'] = this.deviceList[0].id;
  482. // o.extInfo.heatNumber = this.deviceList[0].extInfo.heatNumber;
  483. this.$set(this.list[index].extInfo,'heatNumber',this.deviceList[0].extInfo.heatNumber)
  484. //碳谷合格分批设备炉次号
  485. o.extInfo.batchReportInfo.map((report,ridx)=>{
  486. this.$set(this.list[index].extInfo.batchReportInfo[ridx],'deviceId',this.deviceList[0].instanceId)
  487. this.$set(this.list[index].extInfo.batchReportInfo[ridx],'heatNumber',this.deviceList[0].extInfo.heatNumber)
  488. this.$set(this.list[index].extInfo.batchReportInfo[ridx],'deviceName',this.deviceList[0].extInfo.name)
  489. })
  490. //碳谷合格分批设备炉次号
  491. o.extInfo.notBatchReportInfo.map((noReport,noidx)=>{
  492. this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'deviceId',this.deviceList[0].instanceId)
  493. this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'heatNumber',this.deviceList[0].extInfo.heatNumber)
  494. this.$set(this.list[index].extInfo.notBatchReportInfo[noidx],'deviceName',this.deviceList[0].extInfo.name)
  495. })
  496. this.$forceUpdate();
  497. }
  498. });
  499. });
  500. },
  501. toFixedFn(weight, num) {
  502. let total = Number(weight) * Number(num)
  503. return total.toFixed(2)
  504. }
  505. }
  506. }
  507. </script>
  508. <style lang="scss" scoped>
  509. .title_box {
  510. margin-top: 20rpx;
  511. .name {
  512. font-size: 28rpx;
  513. font-style: normal;
  514. font-weight: 400;
  515. color: $theme-color;
  516. padding-left: 20rpx;
  517. position: relative;
  518. &:before {
  519. position: absolute;
  520. content: '';
  521. left: 0rpx;
  522. top: 0rpx;
  523. bottom: 0rpx;
  524. width: 4rpx;
  525. height: 28rpx;
  526. background: $theme-color;
  527. margin: auto;
  528. }
  529. }
  530. .btn_box {
  531. .btn {
  532. padding: 0 18rpx;
  533. height: 50rpx;
  534. line-height: 50rpx;
  535. background: $theme-color;
  536. font-size: 26rpx;
  537. font-style: normal;
  538. font-weight: 400;
  539. font-size: 24rpx;
  540. color: #fff;
  541. border-radius: 4rpx;
  542. margin-left: 24rpx;
  543. }
  544. }
  545. }
  546. .material {
  547. margin-top: 16rpx;
  548. border: 1rpx solid transparent;
  549. .content_table {
  550. width: 100%;
  551. border: 2rpx solid $border-color;
  552. box-sizing: border-box;
  553. .item {
  554. display: flex;
  555. border-bottom: 2rpx solid $border-color;
  556. .lable {
  557. width: 132rpx;
  558. text-align: center;
  559. background-color: #F7F9FA;
  560. font-size: 26rpx;
  561. border-right: 2rpx solid $border-color;
  562. flex-shrink: 0;
  563. }
  564. .lable150 {
  565. width: 156rpx !important;
  566. font-size: 24rpx;
  567. }
  568. .lable190 {
  569. width: 230rpx !important;
  570. font-size: 24rpx;
  571. }
  572. .ww80 {
  573. width: 80rpx;
  574. }
  575. .content {
  576. width: 500rpx;
  577. min-height: 64rpx;
  578. font-size: 28rpx;
  579. line-height: 28rpx;
  580. font-style: normal;
  581. font-weight: 400;
  582. padding: 18rpx 8rpx;
  583. box-sizing: border-box;
  584. word-wrap: break-word;
  585. flex-grow: 1 !important;
  586. .unit {
  587. padding: 0 4rpx;
  588. font-size: 24rpx;
  589. color: #404446;
  590. }
  591. .penalize {
  592. width: 160rpx;
  593. line-height: 60rpx;
  594. background: $theme-color;
  595. font-size: 24rpx;
  596. text-align: center;
  597. color: #fff;
  598. }
  599. }
  600. .content_H {
  601. min-height: 92rpx;
  602. }
  603. .pd4 {
  604. padding: 4rpx 8rpx;
  605. }
  606. &:last-child {
  607. border-bottom: none;
  608. }
  609. }
  610. .ww55 {
  611. width: 55%;
  612. }
  613. .ww10 {
  614. width: 10%;
  615. }
  616. .ww40 {
  617. width: 40%;
  618. }
  619. .ww50 {
  620. width: 50%;
  621. }
  622. .ww45 {
  623. width: 45%;
  624. }
  625. .tag_box {
  626. padding: 2rpx 10rpx;
  627. margin-right: 12rpx;
  628. background: #E6A23C;
  629. font-size: 22rpx;
  630. color: #fff;
  631. border-radius: 4rpx;
  632. }
  633. }
  634. }
  635. .materialBor {
  636. border: 1rpx solid #157A2C
  637. }
  638. .content_table2 {
  639. width: 100%;
  640. .row {
  641. width: 100%;
  642. .item {
  643. color: #404446;
  644. font-size: 28rpx;
  645. padding-left: 12rpx;
  646. }
  647. .color157 {
  648. color: $theme-color;
  649. }
  650. .ww30 {
  651. width: 30%;
  652. }
  653. .ww20 {
  654. width: 20%;
  655. }
  656. .ww15 {
  657. width: 15%;
  658. }
  659. .ww25 {
  660. width: 25%;
  661. }
  662. .ww35 {
  663. width: 35%;
  664. }
  665. .ww50 {
  666. width: 50%;
  667. }
  668. .ww10 {
  669. width: 10%;
  670. }
  671. .ww40 {
  672. width: 40%;
  673. }
  674. }
  675. .head {
  676. height: 64rpx;
  677. background: #F7F9FA;
  678. // border-top: 2rpx solid #E3E5E5;
  679. border-left: 2rpx solid #E3E5E5;
  680. box-sizing: border-box;
  681. .item {
  682. height: 64rpx;
  683. line-height: 64rpx;
  684. border-right: 2rpx solid #E3E5E5;
  685. box-sizing: border-box;
  686. font-size: 22rpx;
  687. }
  688. }
  689. .tr {
  690. border-top: 2rpx solid #E3E5E5;
  691. border-left: 2rpx solid #E3E5E5;
  692. .item {
  693. font-size: 24rpx;
  694. min-height: 74rpx;
  695. display: flex;
  696. align-items: center;
  697. border-right: 2rpx solid #E3E5E5;
  698. box-sizing: border-box;
  699. white-space: normal;
  700. word-break: break-all;
  701. }
  702. &:last-child {
  703. border-bottom: 2rpx solid #E3E5E5;
  704. }
  705. .numerate {
  706. font-size: 22rpx;
  707. color: $theme-color;
  708. }
  709. }
  710. }
  711. .content_num {
  712. display: flex;
  713. align-items: center;
  714. padding: 0 4rpx;
  715. /deep/ .uni-input-input {
  716. border: 2rpx solid #F0F8F2;
  717. box-sizing: border-box;
  718. background: #F0F8F2;
  719. color: $theme-color;
  720. }
  721. }
  722. .round {
  723. width: 32rpx;
  724. height: 32rpx;
  725. line-height: 30rpx;
  726. text-align: center;
  727. border-radius: 50%;
  728. background: $theme-color;
  729. font-size: 24rpx;
  730. font-style: normal;
  731. font-weight: 400;
  732. color: #fff;
  733. margin-right: 10rpx;
  734. }
  735. </style>