123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- import {HttpClient} from "/@/api/admin/http-client";
- export class ComponentDetails<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
-
- timer = 500
- getBasicInfo = (params : string) : any => {
-
- console.log(params)
- return new Promise((resolve) => {
- setTimeout(() => {
- resolve({
- basicInfo: [
- {
- goodsTitle: "部件名称",
- goodsValue: "TQC+主板12321312312311231231231231232312312312123"
- },
- {
- goodsTitle: "部件类型",
- goodsValue: "计控主板12312312311231231231231232323123112312312312312323231231231123123123123123232"
- },
- {
- goodsTitle: "物料号",
- goodsValue: "TOK-20021203"
- },
- {
- goodsTitle: "生产料号",
- goodsValue: "SC202307051"
- },
- {
- goodsTitle: "序列号",
- goodsValue: "20121221"
- },
- {
- goodsTitle: "软件版本",
- goodsValue: ""
- },
- {
- goodsTitle: "厂商名称",
- goodsValue: "托肯恒山"
- },
- {
- goodsTitle: "中化密钥状态",
- goodsValue: "已绑定"
- },
- {
- goodsTitle: "团标密钥状态",
- goodsValue: "已备案"
- },
- {
- goodsTitle: "状态",
- goodsValue: "正常"
- },
- {
- goodsTitle: "创建时间",
- goodsValue: "2023-07-05"
- },
- {
- goodsTitle: "生产时间",
- goodsValue: "2023-07-05"
- },
- {
- goodsTitle: "备注",
- goodsValue: ""
- },
- {
- goodsTitle: "检测时间",
- goodsValue: "2023-07-06"
- },
- {
- goodsTitle: "检测员",
- goodsValue: "生产员"
- }
- ],
- goodsImg: {
- imgUrl: "https://fuss10.elemecdn.com/a/3f/3302e58f9a181d2509f3dc0fa68b0jpeg.jpeg",
- title: "哈哈"
- }
- })
- },this.timer)
- })
- }
-
- getProductionLog = ( params: string ) : any => {
-
- console.log(params)
- return new Promise((resolve) => {
- setTimeout(()=> {
- resolve([
- {
- dateOfManufacture:"2023-07-05",
- operator:"蒋工1",
- workingProcedure:"团标密钥灌注1",
- state:true,
- productionPictures:"111",
- remarks:"222"
- },
- {
- dateOfManufacture:"2023-07-05",
- operator:"蒋工2",
- workingProcedure:"团标密钥灌注2",
- state:true,
- productionPictures:"111",
- remarks:"222"
- },
- {
- dateOfManufacture:"2023-07-05",
- operator:"蒋工3",
- workingProcedure:"团标密钥灌3",
- state:true,
- productionPictures:"2323",
- remarks:"333"
- }
- ])
- },this.timer)
- })
- }
-
- getAlarmLog = ( params:string ) : any => {
-
- console.log(params)
- return new Promise((resolve) => {
- setTimeout(()=> {
- resolve([
- {
- alarmDate:"23-07-06 09:14",
- eventName:"通讯异常1",
- remarks:"",
- state:false
- },
- {
- alarmDate:"23-07-06 09:14",
- eventName:"通讯异常2",
- remarks:"",
- state:false
- },
- {
- alarmDate:"23-07-06 09:14",
- eventName:"通讯异常3",
- remarks:"",
- state:false
- }
- ])
- },this.timer)
- })
- }
- }
|