This commit is contained in:
x
2026-05-27 16:44:17 +08:00
parent 695aca83c9
commit 71d31d5d6c
4 changed files with 2037 additions and 6 deletions

2025
src/fetch/mock.js Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -319,6 +319,7 @@
</template>
<script>
import { wlgyData } from '@fetch/mock.js'
import THeader from '@components/header.vue'
import TCircle from '@components/circle.vue'
export default {
@@ -475,8 +476,9 @@ export default {
myChart.resize()
})
},
iData () {
let res = {"code":"1","desc":"查询成功","result":{"workprocedure_rows":[{"workprocedure_uuid":"3560AB81A1CA4CB0942641CB3C51C34A","workprocedure_code":"0001","workprocedure_name":"混碾","ivt__qty":"665.8"},{"workprocedure_uuid":"D6FA61D29A0745D696970DB319E039E6","workprocedure_code":"0002","workprocedure_name":"困料","ivt__qty":"51.0"},{"workprocedure_uuid":"B239F5667F1C40E2B424D2ED6C51525B","workprocedure_code":"0003","workprocedure_name":"压制","ivt__qty":"19.3"},{"workprocedure_uuid":"2679C3DC63FE4B36A3E16156E291B57A","workprocedure_code":"0004","workprocedure_name":"干燥","ivt__qty":"0.0"},{"workprocedure_uuid":"60610416D34945A0ACF5799F82EB9D63","workprocedure_code":"0005","workprocedure_name":"分拣","ivt__qty":"0.0"}],"jxsjo":{"status":"3","device_code":"MDJXS01","device_name":"码垛机械手","device_uuid":"50","percentage":"0"},"kilnjo":[{"device_status":"","device_code":"KCD01","device_name":"空车道","device_uuid":"35","percentage":"14"},{"device_status":"","device_code":"ZBCD01","device_name":"准备车道","device_uuid":"36","percentage":"2"},{"device_status":"2","device_code":"GZY01","device_name":"1号窑","device_uuid":"37","percentage":"80"},{"device_status":"2","device_code":"GZY02","device_name":"2号窑","device_uuid":"39","percentage":"16"}],"pressjo":[{"device_status":"2","device_code":"YZJ01","device_name":"压制机1","device_uuid":"65","percentage":"0"},{"device_status":"3","device_code":"YZJ02","device_name":"压制机2","device_uuid":"66","percentage":"0"},{"device_status":"1","device_code":"YZJ03","device_name":"压制机3","device_uuid":"10","percentage":"0"},{"device_status":"1","device_code":"YZJ04","device_name":"压制机4","device_uuid":"11","percentage":"0"},{"device_status":"2","device_code":"YZJ05","device_name":"压制机5","device_uuid":"12","percentage":"0"},{"device_status":"2","device_code":"YZJ06","device_name":"压制机6","device_uuid":"13","percentage":"0"},{"device_status":"3","device_code":"YZJ07","device_name":"压制机7","device_uuid":"8","percentage":"0"},{"device_status":"2","device_code":"YZJ08","device_name":"压制机8","device_uuid":"9","percentage":"0"},{"device_status":"2","device_code":"YZJ09","device_name":"压制机1","device_uuid":"79","percentage":"0"},{"device_status":"3","device_code":"YZJ10","device_name":"压制机2","device_uuid":"80","percentage":"0"}],"mixjo":[{"device_status":"3","device_code":"HLJ01","device_name":"混料机1","device_uuid":"1","percentage":"0"},{"device_status":"3","device_code":"HLJ02","device_name":"混料机2","device_uuid":"2","percentage":"0"},{"device_status":"3","device_code":"HLJ03","device_name":"混料机3","device_uuid":"3","percentage":"0"},{"device_status":"2","device_code":"HLJ04","device_name":"混料机4","device_uuid":"4","percentage":"0"},{"device_status":"2","device_code":"HLJ05","device_name":"混料机5","device_uuid":"5","percentage":"0"},{"device_status":"2","device_code":"HLJ06","device_name":"混料机6","device_uuid":"60","percentage":"0"},{"device_status":"2","device_code":"HLJ07","device_name":"混料机7","device_uuid":"61","percentage":"0"},{"device_status":"3","device_code":"HLJ08","device_name":"混料机8","device_uuid":"62","percentage":"0"},{"device_status":"3","device_code":"HLJ09","device_name":"混料机9","device_uuid":"63","percentage":"0"}]}}
async iData () {
let res = await wlgyData()
// let res = {"code":"1","desc":"查询成功","result":{"workprocedure_rows":[{"workprocedure_uuid":"3560AB81A1CA4CB0942641CB3C51C34A","workprocedure_code":"0001","workprocedure_name":"混碾","ivt__qty":"665.8"},{"workprocedure_uuid":"D6FA61D29A0745D696970DB319E039E6","workprocedure_code":"0002","workprocedure_name":"困料","ivt__qty":"51.0"},{"workprocedure_uuid":"B239F5667F1C40E2B424D2ED6C51525B","workprocedure_code":"0003","workprocedure_name":"压制","ivt__qty":"19.3"},{"workprocedure_uuid":"2679C3DC63FE4B36A3E16156E291B57A","workprocedure_code":"0004","workprocedure_name":"干燥","ivt__qty":"0.0"},{"workprocedure_uuid":"60610416D34945A0ACF5799F82EB9D63","workprocedure_code":"0005","workprocedure_name":"分拣","ivt__qty":"0.0"}],"jxsjo":{"status":"3","device_code":"MDJXS01","device_name":"码垛机械手","device_uuid":"50","percentage":"0"},"kilnjo":[{"device_status":"","device_code":"KCD01","device_name":"空车道","device_uuid":"35","percentage":"14"},{"device_status":"","device_code":"ZBCD01","device_name":"准备车道","device_uuid":"36","percentage":"2"},{"device_status":"2","device_code":"GZY01","device_name":"1号窑","device_uuid":"37","percentage":"80"},{"device_status":"2","device_code":"GZY02","device_name":"2号窑","device_uuid":"39","percentage":"16"}],"pressjo":[{"device_status":"2","device_code":"YZJ01","device_name":"压制机1","device_uuid":"65","percentage":"0"},{"device_status":"3","device_code":"YZJ02","device_name":"压制机2","device_uuid":"66","percentage":"0"},{"device_status":"1","device_code":"YZJ03","device_name":"压制机3","device_uuid":"10","percentage":"0"},{"device_status":"1","device_code":"YZJ04","device_name":"压制机4","device_uuid":"11","percentage":"0"},{"device_status":"2","device_code":"YZJ05","device_name":"压制机5","device_uuid":"12","percentage":"0"},{"device_status":"2","device_code":"YZJ06","device_name":"压制机6","device_uuid":"13","percentage":"0"},{"device_status":"3","device_code":"YZJ07","device_name":"压制机7","device_uuid":"8","percentage":"0"},{"device_status":"2","device_code":"YZJ08","device_name":"压制机8","device_uuid":"9","percentage":"0"},{"device_status":"2","device_code":"YZJ09","device_name":"压制机1","device_uuid":"79","percentage":"0"},{"device_status":"3","device_code":"YZJ10","device_name":"压制机2","device_uuid":"80","percentage":"0"}],"mixjo":[{"device_status":"3","device_code":"HLJ01","device_name":"混料机1","device_uuid":"1","percentage":"0"},{"device_status":"3","device_code":"HLJ02","device_name":"混料机2","device_uuid":"2","percentage":"0"},{"device_status":"3","device_code":"HLJ03","device_name":"混料机3","device_uuid":"3","percentage":"0"},{"device_status":"2","device_code":"HLJ04","device_name":"混料机4","device_uuid":"4","percentage":"0"},{"device_status":"2","device_code":"HLJ05","device_name":"混料机5","device_uuid":"5","percentage":"0"},{"device_status":"2","device_code":"HLJ06","device_name":"混料机6","device_uuid":"60","percentage":"0"},{"device_status":"2","device_code":"HLJ07","device_name":"混料机7","device_uuid":"61","percentage":"0"},{"device_status":"3","device_code":"HLJ08","device_name":"混料机8","device_uuid":"62","percentage":"0"},{"device_status":"3","device_code":"HLJ09","device_name":"混料机9","device_uuid":"63","percentage":"0"}]}}
this.produceData = [...res.result.workprocedure_rows]
this.jxsjo = res.result.jxsjo
this.kilnjo = [...res.result.kilnjo]