show.blade.php 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. @extends('layouts.app')
  2. @section('title'){{$station->name}} - 监视器 - 站@endsection
  3. @section('content')
  4. <div id="nav2">
  5. @component('station.menu')
  6. @endcomponent
  7. @component('station.monitor.menu')
  8. <li class="nav-item">
  9. <a class="nav-link" href="{{URL::current()}}" :class="{active:isActive('{{$station->id}}',3)}">显示:{{$station->name}}</a>
  10. </li>
  11. @endcomponent
  12. </div>
  13. <div class="container-fluid body" id="container">
  14. <div class="card">
  15. <div class="card-body">
  16. <div class="row border" style="opacity: 0.75">
  17. <div class="col-4 text-center h3 py-2 font-weight-bold text-info position-relative">
  18. 宝时云仓
  19. </div>
  20. <div class="col text-center h3 py-2 text-muted">
  21. 智能分拣
  22. </div>
  23. </div>
  24. <div class="row pt-3">
  25. <div class="col-4">
  26. <div class="row">
  27. <div class="col py-3 h4">
  28. <div>波次号:</div>
  29. <div class=" text-center">
  30. <b v-if="task&&task.station_task_batches">
  31. <div v-for="taskBatch in task.station_task_batches">
  32. @{{ taskBatch.batch.code }}
  33. </div>
  34. </b>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="row">
  39. <div class="col py-3 text-muted text-center">
  40. <img id="barcode" alt="" :data-refresh="batchCode">
  41. </div>
  42. </div>
  43. <div class="row">
  44. <div class="col py-3 h4">
  45. 料箱号:
  46. <div v-if="task&&processingTaskMaterialBox">
  47. @{{processingTaskMaterialBox.material_box.code}}
  48. </div>
  49. </div>
  50. </div>
  51. <div class="row pt-2">
  52. <div class="col text-center">
  53. <svg class="box-display" width="300" height="160" viewBox="0 0 300 160">
  54. <rect x="0" y="80" width="300" height="80"
  55. style="fill:#ffffff;stroke-width:3;stroke:rgb(11,51,71)"/>
  56. <polygon points="0,80 50,0 250,0 300,80"
  57. style="fill:#ffffff;stroke:rgb(11,51,71);stroke-width:3;" />
  58. <polygon v-if="grids.single.status"
  59. class="spot single" points="0,80 50,0 250,0 300,80"
  60. :class="[
  61. grids.single.status==='启用'?'normal':'',
  62. grids.single.status==='处理中'?'box-spot-color n1':'',
  63. ]"
  64. style="stroke:rgb(11,51,71);stroke-width:3;" />
  65. <polygon v-if="grids.half.left.status"
  66. class="spot half-left" points="0,80 50,0 150,0 150,80"
  67. :class="[
  68. grids.half.left.status==='启用'?'normal':'',
  69. grids.half.left.status==='处理中'?'box-spot-color n1':'',
  70. ]"
  71. style="stroke:rgb(11,51,71);stroke-width:3;" />
  72. <polygon v-if="grids.half.right.status"
  73. class="spot half-right" points="150,0 150,80 300,80 250,0"
  74. :class="[
  75. grids.half.right.status==='启用'?'normal':'',
  76. grids.half.right.status==='处理中'?'box-spot-color n2':'',
  77. ]"
  78. style="stroke:rgb(11,51,71);stroke-width:3;" />
  79. <polygon v-if="grids.quarter.left.top.status"
  80. :class="[
  81. grids.quarter.left.top.status==='启用'?'normal':'',
  82. grids.quarter.left.top.status==='处理中'?'box-spot-color n1':'',
  83. ]"
  84. class="spot quarter-left-top" points="29.17,33.33 50,0 150,0 150,33.33"
  85. style="stroke:rgb(11,51,71);stroke-width:3;" />
  86. <polygon v-if="grids.quarter.left.bottom.status"
  87. :class="[
  88. grids.quarter.left.bottom.status==='启用'?'normal':'',
  89. grids.quarter.left.bottom.status==='处理中'?'box-spot-color n2':'',
  90. ]"
  91. class="spot quarter-left-bottom" points="0,80 29.17,33.33 150,33.33 150,80"
  92. style="stroke:rgb(11,51,71);stroke-width:3;" />
  93. <polygon v-if="grids.quarter.right.top.status"
  94. :class="[
  95. grids.quarter.right.top.status==='启用'?'normal':'',
  96. grids.quarter.right.top.status==='处理中'?'box-spot-color n3':'',
  97. ]"
  98. class="spot quarter-right-top" points="150,33.33 150,0 250,0 270.83,33.33"
  99. style="stroke:rgb(11,51,71);stroke-width:3;" />
  100. <polygon v-if="grids.quarter.right.bottom.status"
  101. :class="[
  102. grids.quarter.right.bottom.status==='启用'?'normal':'',
  103. grids.quarter.right.bottom.status==='处理中'?'box-spot-color n4':'',
  104. ]"
  105. class="spot quarter-right-bottom" points="150,33.33 150,80 300,80 270.83,33.33"
  106. style="stroke:rgb(11,51,71);stroke-width:3;" />
  107. <polygon v-if="grids.sixth.left.top.status"
  108. :class="[
  109. grids.sixth.left.top.status==='启用'?'normal':'',
  110. grids.sixth.left.top.status==='处理中'?'box-spot-color n1':'',
  111. ]"
  112. class="spot sixth-left-top" points="29.17,33.33 50,0 117,0 110.39,33.33"
  113. style="stroke:rgb(11,51,71);stroke-width:3;" />
  114. <polygon v-if="grids.sixth.left.bottom.status"
  115. :class="[
  116. grids.sixth.left.bottom.status==='启用'?'normal':'',
  117. grids.sixth.left.bottom.status==='处理中'?'box-spot-color n2':'',
  118. ]"
  119. class="spot sixth-left-bottom" points="0,80 29.17,33.33 110.39,33.33 100,80"
  120. style="stroke:rgb(11,51,71);stroke-width:3;" />
  121. <polygon v-if="grids.sixth.mid.top.status"
  122. :class="[
  123. grids.sixth.mid.top.status==='启用'?'normal':'',
  124. grids.sixth.mid.top.status==='处理中'?'box-spot-color n3':'',
  125. ]"
  126. class="spot sixth-mid-top" points="117,0 110.39,33.33 191.61,33.33 185.5,0"
  127. style="stroke:rgb(11,51,71);stroke-width:3;" />
  128. <polygon v-if="grids.sixth.mid.bottom.status"
  129. :class="[
  130. grids.sixth.mid.bottom.status==='启用'?'normal':'',
  131. grids.sixth.mid.bottom.status==='处理中'?'box-spot-color n4':'',
  132. ]"
  133. class="spot sixth-mid-bottom" points="110.39,33.33 100,80 200,80 191.61,33.33"
  134. style="stroke:rgb(11,51,71);stroke-width:3;" />
  135. <polygon v-if="grids.sixth.right.top.status"
  136. :class="[
  137. grids.sixth.right.top.status==='启用'?'normal':'',
  138. grids.sixth.right.top.status==='处理中'?'box-spot-color n5':'',
  139. ]"
  140. class="spot sixth-right-top" points="191.61,33.33 185.5,0 250,0 270.83,33.33"
  141. style="stroke:rgb(11,51,71);stroke-width:3;" />
  142. <polygon v-if="grids.sixth.right.bottom.status"
  143. :class="[
  144. grids.sixth.right.bottom.status==='启用'?'normal':'',
  145. grids.sixth.right.bottom.status==='处理中'?'box-spot-color n6':'',
  146. ]"
  147. class="spot sixth-right-bottom" points="200,80 191.61,33.33 270.83,33.33 300,80"
  148. style="stroke:rgb(11,51,71);stroke-width:3;" />
  149. </svg>
  150. <div class="text-left">
  151. <div >
  152. <div class="btn btn-outline-info" @click="
  153. (inputs.manuallyTakeBox.visible=true)
  154. &&(inputs.manuallyTakeBox.text='')">手动出库</div>
  155. <div class="position-relative bg-white" v-if="inputs.manuallyTakeBox.visible">
  156. <textarea name="" id="" cols="30" rows="3" class="form-control" v-model="inputs.manuallyTakeBox.text"
  157. placeholder="点选此处写入料箱号,可以省略IDE前缀和0,多个用空格分隔,例入:5121 156"></textarea>
  158. <button class="btn btn-info btn-lg" @click="manuallyTakeBoxOut">出库</button>
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. <div class="col text-center">
  166. <div class="d-flex flex-row justify-content-between" style="gap: 10px;" v-if="taskCommoditiesListByWall.length">
  167. <div class="border h4 d-flex flex-column-reverse flex-grow-1" v-for="wall in taskCommoditiesListByWall">
  168. <div class="d-flex flex-row" v-for="row in wall">
  169. <div class="border p-1 flex-grow-1" v-for="column in row"
  170. :class="[
  171. column.status?'':'small text-muted',
  172. column.status==='待处理'?'small text-muted':'',
  173. column.status==='异常'?'bg-danger':'',
  174. column.status==='处理队列'?'font-weight-bold':'',
  175. column.status==='完成'?'small text-muted bg-success':'',
  176. column.status==='处理中' && !column.taskCommodity.material_box_position?'font-weight-bold bg-primary':'',
  177. column.status==='处理中' && column.taskCommodity.material_box_position===1?'font-weight-bold box-spot-color n1':'',
  178. column.status==='处理中' && column.taskCommodity.material_box_position===2?'font-weight-bold box-spot-color n2':'',
  179. column.status==='处理中' && column.taskCommodity.material_box_position===3?'font-weight-bold box-spot-color n3':'',
  180. column.status==='处理中' && column.taskCommodity.material_box_position===4?'font-weight-bold box-spot-color n4':'',
  181. column.status==='处理中' && column.taskCommodity.material_box_position===5?'font-weight-bold box-spot-color n5':'',
  182. column.status==='处理中' && column.taskCommodity.material_box_position===6?'font-weight-bold box-spot-color n6':'',
  183. ]"
  184. :style="{
  185. opacity:column.status?1:0.5,
  186. }">
  187. <span class="d-inline-block" style="width: 36px;">
  188. @{{column.number}}
  189. </span>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="row mb-1">
  195. <div class="col flex text-left">
  196. <span class="" style="opacity: 0.6"> 数量:</span>
  197. <span class="font-weight-bold">@{{ processedCommodities }}</span>
  198. /
  199. <span class="text-muted">@{{ totalCommodities }}</span>
  200. </div>
  201. <div class="col-1 offset-2 text-muted" v-if="error">异常:</div>
  202. <div class="col-6" v-if="error">@{{ error }}</div>
  203. </div>
  204. <div class="row">
  205. <div class="col py-1">
  206. <table class="table table-hover border table-sm" style="opacity: 0.85" v-if="taskCommodities">
  207. <tr class="text-muted">
  208. <th class="py-2">序号</th>
  209. <th class="py-2">商品</th>
  210. <th class="py-2">数量</th>
  211. <th class="py-2">条码</th>
  212. </tr>
  213. <tr class="" v-for="(taskCommodity,i) in taskCommodities" :class="[
  214. taskCommodity.status==='待处理'?'text-muted':'',
  215. taskCommodity.status==='挂起'?'bg-white':'',
  216. taskCommodity.status==='处理队列'?'font-weight-bold':'',
  217. taskCommodity.status==='完成'?'bg-success':'',
  218. taskCommodity.status==='异常'?'bg-danger':'',
  219. taskCommodity.status==='取消'?'text-muted':'',
  220. taskCommodity.status==='处理中' && !taskCommodity.material_box_position?'bg-primary':'',
  221. taskCommodity.status==='处理中' && taskCommodity.material_box_position===1?'box-spot-color n1':'',
  222. taskCommodity.status==='处理中' && taskCommodity.material_box_position===2?'box-spot-color n2':'',
  223. taskCommodity.status==='处理中' && taskCommodity.material_box_position===3?'box-spot-color n3':'',
  224. taskCommodity.status==='处理中' && taskCommodity.material_box_position===4?'box-spot-color n4':'',
  225. taskCommodity.status==='处理中' && taskCommodity.material_box_position===5?'box-spot-color n5':'',
  226. taskCommodity.status==='处理中' && taskCommodity.material_box_position===6?'box-spot-color n6':'',
  227. ]">
  228. <td style="opacity: 0.6">@{{ i+1 }}</td>
  229. <td>@{{ taskCommodity.commodity.name }}</td>
  230. <td>@{{ taskCommodity.amount }}</td>
  231. <td><small class="font-weight-bold" v-for="barcode in taskCommodity.commodity.barcodes">@{{ barcode.code }}</small><br></td>
  232. </tr>
  233. </table>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. </div>
  241. <style>
  242. .spot.normal{
  243. fill: #fff;
  244. }
  245. .box-spot-color{
  246. color: #fff;
  247. }
  248. .box-spot-color.n1{
  249. background: #d7e3ff;
  250. fill: #d7e3ff;
  251. }
  252. .box-spot-color.n2{
  253. background: #393409;
  254. fill: #393409;
  255. }
  256. .box-spot-color.n3{
  257. background: #391709;
  258. fill: #391709;
  259. }
  260. .box-spot-color.n4{
  261. background: #092039;
  262. fill: #092039;
  263. }
  264. .box-spot-color.n5{
  265. background: #390931;
  266. fill: #390931;
  267. }
  268. .box-spot-color.n6{
  269. background: #1a0106;
  270. fill: #1a0106;
  271. }
  272. </style>
  273. @endsection
  274. @section('lastScript')
  275. <script type="text/javascript" src="{{mix('js/utilities/barcode.js')}}"></script>
  276. <script>
  277. $vue=new Vue({
  278. el:"#container",
  279. data:{
  280. broadcastName : "{{config('database.redis.options.prefix').'station-'.$station->id}}",
  281. channelName : ".App\\Events\\BroadcastToStation",
  282. error:"",
  283. station:{!! $station??[] !!},
  284. inputs:{
  285. manuallyTakeBox:{
  286. visible:false,
  287. text:'',
  288. }
  289. },
  290. grids:{
  291. single:{status:'',},
  292. half:{
  293. left:{status:'',},
  294. right:{status:'',}
  295. },
  296. quarter:{
  297. left:{top:{status:'',},bottom:{status:'',},},
  298. right:{top:{status:'',},bottom:{status:'',},},
  299. },
  300. sixth:{
  301. left:{top:{status:'',},bottom:{status:'',},},
  302. mid:{top:{status:'',},bottom:{status:'',},},
  303. right:{top:{status:'',},bottom:{status:'',},},
  304. },
  305. },
  306. },
  307. mounted() {
  308. this._makeMenuHiding();
  309. this._listenBroadcast();
  310. },
  311. methods:{
  312. _makeMenuHiding(){
  313. $('.navbar,.nav1,.nav2').hide();
  314. $('.nav3').on('mouseenter', function () {
  315. $('.navbar,.nav1,.nav2').show();
  316. });
  317. $('.body').on('mouseenter', function () {
  318. $('.navbar,.nav1,.nav2').hide();
  319. });
  320. },
  321. _listenBroadcast(){
  322. initEcho();
  323. window.Echo.channel(this.broadcastName).listen(this.channelName,(msg)=> {
  324. console.log((new Date()).toTimeString(),msg);
  325. let json = JSON.parse(msg.json);
  326. if(!json||json.length===0)return;
  327. this.station['current_station_task']=json;
  328. });
  329. },
  330. manuallyTakeBoxOut(){
  331. let text = this.inputs.manuallyTakeBox.text.trim();
  332. if(!text){
  333. alert('请输入料箱号')
  334. return
  335. };
  336. axios.post('{{url('/api/thirdPart/haiq/storage/takeOutToULine')}}',{codes:text})
  337. .then(function(response){
  338. tempTip.okWindow(response.data.result,'确定')
  339. }).catch(function(err){
  340. tempTip.okWindow(err,'确定')
  341. }).finally(function(){
  342. this.inputs.manuallyTakeBox.text='';
  343. })
  344. },
  345. },
  346. computed:{
  347. task(){
  348. if(!this.station['current_station_task'])return null;
  349. return this.station['current_station_task'];
  350. },
  351. batchCode(){
  352. if(!this.task)return;
  353. let batches = this.task.station_task_batches;
  354. if(batches
  355. && Array.isArray(batches)
  356. && batches.length>0
  357. ){
  358. setTimeout(function (){
  359. setBarcode(batches[0].batch.code,"#barcode",1,50,false);
  360. })
  361. }
  362. return batches[0].batch.code;
  363. },
  364. taskCommodities(){
  365. if(!this.task)return [];
  366. return this.station['current_station_task']['station_task_commodities'];
  367. },
  368. taskCommoditiesListByBin(){
  369. if(!this.task)return [];
  370. function reIndexByBin() {
  371. this.taskCommoditiesListByBinVar = [];
  372. this.taskCommoditiesListByBinVar.md5 = md5(JSON.stringify(this.station['current_station_task']['station_task_commodities']));
  373. let _this=this;
  374. this.station['current_station_task']['station_task_commodities']
  375. .forEach(function (taskCommodity) {
  376. if (typeof (_this.taskCommoditiesListByBinVar[taskCommodity['bin_number']]) === 'undefined') {
  377. _this.taskCommoditiesListByBinVar[taskCommodity['bin_number']] = null;
  378. }
  379. _this.taskCommoditiesListByBinVar[taskCommodity['bin_number']]=taskCommodity;
  380. })
  381. return this.taskCommoditiesListByBinVar;
  382. }
  383. if((typeof this.taskCommoditiesListByBinVar)==='undefined'||!this.taskCommoditiesListByBinVar){
  384. return reIndexByBin.call(this);
  385. }
  386. let md5Now = md5(JSON.stringify(this.station['current_station_task']['station_task_commodities']));
  387. if(this.taskCommoditiesListByBinVar.md5!==md5Now){
  388. return reIndexByBin.call(this);
  389. }
  390. return this.taskCommoditiesListByBinVar;
  391. },
  392. taskCommoditiesListByWall(){
  393. if(!this.task)return [];
  394. let columnLength=this.station.station_type_bin_monitor.bin_column_length,
  395. rowLength=this.station.station_type_bin_monitor.bin_row_length,
  396. wallAmount=this.station.station_type_bin_monitor.bin_wall_amount,
  397. walls=[],
  398. wall,
  399. row;
  400. for(let wI=0;wI<wallAmount;wI++){
  401. wall=[];
  402. for(let rI=0;rI<rowLength;rI++){
  403. row=[];
  404. for(let cI=0;cI<columnLength;cI++){
  405. let number=((wI*rowLength+rI)*columnLength)+cI+1;
  406. let commoditiesInBin={
  407. taskCommodity:this.taskCommoditiesListByBin[number],
  408. number:number,
  409. status:''
  410. };
  411. if(typeof(commoditiesInBin.taskCommodity)==='undefined'
  412. ||!commoditiesInBin.taskCommodity){
  413. commoditiesInBin.taskCommodity={};
  414. }else{
  415. commoditiesInBin.status=commoditiesInBin.taskCommodity['status'];
  416. }
  417. row.push(commoditiesInBin);
  418. }
  419. wall.push(row);
  420. }
  421. walls.push(wall)
  422. }
  423. return walls
  424. },
  425. processedCommodities(){
  426. if(!this.task)return 0;
  427. let processedAmount=0;
  428. this.task['station_task_commodities'].forEach(function (taskCommodity) {
  429. if (taskCommodity.status === '完成') {
  430. processedAmount+=taskCommodity.amount;
  431. }
  432. })
  433. return processedAmount;
  434. },
  435. totalCommodities(){
  436. if(!this.task)return 0;
  437. let amount=0;
  438. this.task['station_task_commodities'].forEach(function (taskCommodity) {
  439. amount+=taskCommodity.amount;
  440. })
  441. return amount;
  442. },
  443. processingTaskMaterialBox(){
  444. if(!this.task)return [];
  445. let taskMaterialBox=null;
  446. this.task.station_task_material_boxes.some(function(taskMaterialBox_in){
  447. if(taskMaterialBox_in.status==='处理中'){
  448. taskMaterialBox=taskMaterialBox_in;
  449. }
  450. });
  451. return taskMaterialBox;
  452. },
  453. },
  454. watch:{
  455. 'station':{
  456. immediate:true,
  457. deep:true,
  458. handler:function(newStation){
  459. let grids={
  460. single:{status:'',amount:'',},
  461. half:{
  462. left:{status:'',amount:'',},
  463. right:{status:'',amount:'',}
  464. },
  465. quarter:{
  466. left:{top:{status:'',amount:'',},bottom:{status:'',amount:'',},},
  467. right:{top:{status:'',amount:'',},bottom:{status:'',amount:'',},},
  468. },
  469. sixth:{
  470. left:{top:{status:'',amount:'',},bottom:{status:'',amount:'',},},
  471. mid:{top:{status:'',amount:'',},bottom:{status:'',amount:'',},},
  472. right:{top:{status:'',amount:'',},bottom:{status:'',amount:'',},},
  473. },
  474. };
  475. if(!newStation.current_station_task||newStation.current_station_task.length===0) {
  476. this.grids=grids;
  477. return;
  478. }
  479. let gridsAmount=(function(){
  480. let taskMaterialBox=null;
  481. newStation.current_station_task.station_task_material_boxes.some(function(taskMaterialBox_in){
  482. if(taskMaterialBox_in.status==='处理中'){
  483. taskMaterialBox=taskMaterialBox_in;
  484. }
  485. });
  486. if(!taskMaterialBox)return 1;
  487. return taskMaterialBox.material_box.grid_amount;
  488. }
  489. )();
  490. let positions=(function(){
  491. let positions=[];
  492. newStation.current_station_task['station_task_commodities'].forEach(function(taskCommodity){
  493. if(taskCommodity.status==='处理中'){
  494. positions.push(taskCommodity.material_box_position)
  495. }
  496. });
  497. return positions;
  498. })();
  499. switch (gridsAmount){
  500. case 1:
  501. if(positions.length>0){
  502. grids.single.status='处理中';
  503. }break;
  504. case 2:
  505. positions.forEach(function(position){
  506. grids.half.left.status = '启用';
  507. grids.half.right.status = '启用';
  508. switch (position){
  509. case 1: grids.half.left.status = '处理中';break;
  510. case 2: grids.half.right.status = '处理中';break;
  511. }
  512. });break;
  513. case 4:
  514. positions.forEach(function(position){
  515. grids.quarter.left.top.status = '启用';
  516. grids.quarter.right.top.status = '启用';
  517. grids.quarter.left.bottom.status = '启用';
  518. grids.quarter.right.bottom.status = '启用';
  519. switch (position){
  520. case 1: grids.quarter.left.top.status = '处理中';break;
  521. case 2: grids.quarter.left.bottom.status = '处理中';break;
  522. case 3: grids.quarter.right.top.status = '处理中';break;
  523. case 4: grids.quarter.right.bottom.status = '处理中';break;
  524. }
  525. });break;
  526. case 6:
  527. positions.forEach(function(position){
  528. grids.sixth.left.top.status = '启用';
  529. grids.sixth.mid.top.status = '启用';
  530. grids.sixth.right.top.status = '启用';
  531. grids.sixth.left.bottom.status = '启用';
  532. grids.sixth.mid.bottom.status = '启用';
  533. grids.sixth.right.bottom.status = '启用';
  534. switch (position){
  535. case 1: grids.sixth.left.top.status = '处理中';break;
  536. case 2: grids.sixth.left.bottom.status = '处理中';break;
  537. case 3: grids.sixth.mid.top.status = '处理中';break;
  538. case 4: grids.sixth.mid.bottom.status = '处理中';break;
  539. case 5: grids.sixth.right.top.status = '处理中';break;
  540. case 6: grids.sixth.right.bottom.status = '处理中';break;
  541. }
  542. });break;
  543. }
  544. this.grids=grids;
  545. }
  546. },
  547. }
  548. });
  549. </script>
  550. @endsection