inl-ui 0.0.68 → 0.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -15,7 +15,6 @@ import { fabric } from 'fabric';
15
15
  import { AlignGuidelines } from 'fabric-guideline-plugin';
16
16
  import { ColorPicker } from 'vue-color-kit';
17
17
  import 'vue-color-kit/dist/vue-color-kit.css';
18
- import 'inl-card/dist/style.css';
19
18
 
20
19
  var version$1="0.0.73";/*
21
20
  * @Abstract: 摘要
@@ -39,13 +38,13 @@ setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_prop
39
38
  let sn=parseInt(val);if(sn<10){return chin_list[sn-1];}else if(sn<100){if(sn<20)return "十"+chin_list[sn%10-1];if(sn%10==0)return chin_list[Math.floor(sn/10)-1]+"十";else return chin_list[Math.floor(sn/10)-1]+"十"+chin_list[sn%10-1];}else if(sn===100)return "一百";};const alarmLevel=level=>{const textLevel=val=>{return `${toChinese(val)}级报警`;};switch(level){case 1:return {name:textLevel(1),color:"#EA5858"};case 2:return {name:textLevel(2),color:"#FF9214"};case 3:return {name:textLevel(3),color:"#FFC414"};case 4:return {name:textLevel(4),color:"#3E7EFF"};default:return {name:"-",color:""};}};const props$S={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
40
39
  };var alarmStatistics=defineComponent({name:"alarmStatistics",cname:"报警统计",developer:"前端开发组",equipment:"PC",props:props$S,setup(_props,_ctx){// 自定义接口配置
41
40
  setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_props.timeout// 超时时长
42
- });const data=reactive({alertLevelStatistic:[],alertList:[]});ref(0);const http=async()=>{const res=await defaultApi({timeType:_props.tabId||"",status:"ALARMING"},"ALERT_COUNT");data.alertLevelStatistic=res.data.alertLevelStatistic||[];data.alertList=res.data.alertList||[];};watch(()=>_props.tabId,e=>{if(e){http();}},{immediate:true});const alarmStatisticsItem=item=>{return createVNode("div",null,[createVNode("div",{"class":"val","style":{color:alarmLevel(item.level).color}},[item.count]),createVNode("div",null,[alarmLevel(item.level).name])]);};const timer=setInterval(()=>{http();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList$5);});onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard alarmStatistics"},[createVNode("div",{"class":"alarmStatistics_top"},[data.alertLevelStatistic?.map(item=>createVNode("div",{"class":"alarmStatistics_top_item"},[alarmStatisticsItem(item)]))]),createVNode("div",{"class":"alarmStatistics_list","style":data.alertList?.length===0?"height:100%":""},[data.alertList?.length>0?createVNode(Fragment,null,[data.alertList?.map(item=>createVNode("div",{"class":"alarmStatistics_list_item"},[createVNode("div",{"class":"alarmStatistics_list_item_name","style":{borderColor:alarmLevel(item.level).color}},[createVNode("span",null,[item.name])]),createVNode("div",{"class":"alarmStatistics_list_item_time"},[dayjs(item.lastAlarmTime||item.firstAlarmTime).format("YYYY-MM-DD HH:mm:ss")])]))]):createVNode(resolveComponent("a-empty"),{"image":Empty.PRESENTED_IMAGE_SIMPLE},null)])]);}});const historyDataInfo$1={6021:[{code:"SYS_1F__CONCENTRATION"},{code:"6001__TURBIDNESS"},{code:"6002__TURBIDNESS"},{code:"6005__TURBIDNESS"}],6028:[{code:"SYS_2F__CONCENTRATION"},{code:"6003__TURBIDNESS"},{code:"6004__TURBIDNESS"}]};const tabsList$4=[{name:"6021",id:"6021"},{name:"6028",id:"6028"}];const chartFormat$a=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-4,-2)}:${`${item.time}`.slice(-2)}`,type:item.type,value:item.value?Number(Number(item.value).toFixed(1)):null,v:item.v?Number(Number(item.v).toFixed(1)):null}));};var initChart$c=(id,data,items,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.tooltip(false);chart.scale({time:{sync:true,nice:true},value:{min:0,sync:true,nice:true},v:{min:0,sync:true,nice:true}});chart.axis("v",{line:{style:{lineWidth:1,stroke:"#BFBFBF"// 设置线的颜色
41
+ });const data=reactive({alertLevelStatistic:[],alertList:[]});ref(0);const http=async()=>{const res=await defaultApi({timeType:_props.tabId||"",status:"ALARMING"},"ALERT_COUNT");data.alertLevelStatistic=res.data.alertLevelStatistic||[];data.alertList=res.data.alertList||[];};watch(()=>_props.tabId,e=>{if(e){http();}},{immediate:true});const alarmStatisticsItem=item=>{return createVNode("div",null,[createVNode("div",{"class":"val","style":{color:alarmLevel(item.level).color}},[item.count]),createVNode("div",null,[alarmLevel(item.level).name])]);};const timer=setInterval(()=>{http();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList$5);});onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard alarmStatistics"},[createVNode("div",{"class":"alarmStatistics_top"},[data.alertLevelStatistic?.map(item=>createVNode("div",{"class":"alarmStatistics_top_item"},[alarmStatisticsItem(item)]))]),createVNode("div",{"class":"alarmStatistics_list","style":data.alertList?.length===0?"height:100%":""},[data.alertList?.length>0?createVNode(Fragment,null,[data.alertList?.map(item=>createVNode("div",{"class":"alarmStatistics_list_item"},[createVNode("div",{"class":"alarmStatistics_list_item_name","style":{borderColor:alarmLevel(item.level).color}},[createVNode("span",null,[item.name])]),createVNode("div",{"class":"alarmStatistics_list_item_time"},[dayjs(item.lastAlarmTime||item.firstAlarmTime).format("YYYY-MM-DD HH:mm:ss")])]))]):createVNode(resolveComponent("a-empty"),{"image":Empty.PRESENTED_IMAGE_SIMPLE},null)])]);}});const historyDataInfo$1={6021:[{code:"SYS_1F__CONCENTRATION"},{code:"6003__TURBIDNESS"},{code:"6004__TURBIDNESS"}],6028:[{code:"SYS_2F__CONCENTRATION"},{code:"6001__TURBIDNESS"},{code:"6002__TURBIDNESS"},{code:"6005__TURBIDNESS"}]};const tabsList$4=[{name:"6021",id:"6021"},{name:"6028",id:"6028"}];const chartFormat$a=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-4,-2)}:${`${item.time}`.slice(-2)}`,type:item.type,value:item.value?Number(Number(item.value).toFixed(1)):null,v:item.v?Number(Number(item.v).toFixed(1)):null}));};var initChart$c=(id,data,items,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.tooltip(false);chart.scale({time:{sync:true,nice:true},value:{min:0,sync:true,nice:true},v:{min:0,sync:true,nice:true}});chart.axis("v",{line:{style:{lineWidth:1,stroke:"#BFBFBF"// 设置线的颜色
43
42
  }},title:{text:"g/l\n\n\n",style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.axis("value",{line:{style:{lineWidth:1,stroke:"#BFBFBF"// 设置线的颜色
44
43
  }},title:{text:"NTU\n\n\n",style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.legend({custom:true,position:"bottom",items});chart.line().position("time*v").color("type",val=>{const item=items.find(n=>n.id===val);return item.marker.style.fill;});chart.line().position("time*value").color("type",val=>{const item=items.find(n=>n.id===val);return item.marker.style.fill;});chart.removeInteraction("legend-filter");chart.render();return chart;};const props$R={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
45
44
  };var concentrateDosing=defineComponent({name:"concentrateDosing",cname:"浓缩加药",developer:"前端开发组",equipment:"PC",props:props$R,setup(_props,_ctx){let chart=reactive({});// 自定义接口配置
46
45
  setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_props.timeout// 超时时长
47
46
  });const info=reactive({current_DATA:{},history_DATA:{}});const showChart=ref(true);const http=async()=>{const res=await defaultApi({CURRENT_DATA:currentArr("3001/2__COAL_CAP?THINGMODEL"),HISTORY_DATA:historyArr(historyDataInfo$1[_props.tabId||""]||[],"hour",3)},"CONCENTRATE_DOSING");info.current_DATA=res.data.current_DATA;info.history_DATA=res.data.history_DATA;const height=document.getElementById("concentrateDosing_bottom")?.clientHeight;const infoNew={turbidness:[],concentrations:[]};const items=[];for(const key in info.history_DATA){if(key.indexOf("CONCENTRATION")>-1){infoNew.concentrations=info.history_DATA[key].map(item=>({time:item.time,type:key,v:item.value}));items.push({name:"入料浓度",value:key,id:key,unchecked:false,marker:{style:{symbol:"circle",fill:"#4F7CF7"}}});}else {infoNew.turbidness=[...infoNew.turbidness,...info.history_DATA[key].map(item=>({...item,type:key}))];const itemArr=key.split("__");const color=val=>{switch(val){case"6001":return "#E89E42";case"6003":return "#E89E42";case"6002":return "#7915F5";case"6004":return "#7915F5";case"6005":return "#80B436";default:return "";}};items.push({name:`${itemArr[0]}浊度`,value:key,id:key,unchecked:false,marker:{style:{symbol:"circle",fill:color(itemArr[0])}}});}}const list=[...infoNew.concentrations,...infoNew.turbidness];if(!chart[`chart${_props.tabId}`]||!showChart.value){showChart.value=true;chart[`chart${_props.tabId}`]=null;await nextTick();chart[`chart${_props.tabId}`]=initChart$c(`${_props.tabId||"chart"}${_props.index}`,chartFormat$a(list),items,height);}else {chart[`chart${_props.tabId}`].legend({custom:true,position:"bottom",items:items});chart[`chart${_props.tabId}`].changeData(chartFormat$a(list));}};const getFlocculant=async()=>{const res=await getShiftId({depId:"385429676876763136",time:dayjs().format("YYYY-MM-DD HH:mm:ss")});const resp=await defaultApi({HISTORY_DATA:historyArr(`${_props.tabId}__FLOCCULANT_KG?${res.data}`,"shift",3,true)},"CONCENTRATE_DOSING");info.current_DATA[`${_props.tabId}__FLOCCULANT_KG`]=resp.data.history_DATA[`${_props.tabId}__FLOCCULANT_KG`][resp.data.history_DATA[`${_props.tabId}__FLOCCULANT_KG`].length-1]?.value||"-";};watch(()=>_props.tabId,async e=>{if(e){showChart.value=false;await http();getFlocculant();}},{immediate:true});const timer=setInterval(async()=>{await http();getFlocculant();},30000);onMounted(()=>{_ctx.emit("getTabs",tabsList$4);});onUnmounted(()=>{clearInterval(timer);});return ()=>createVNode("div",{"class":"defaultCard concentrateDosing"},[createVNode("div",{"class":"concentrateDosing_top"},[createVNode("div",{"class":"concentrateDosing_top_property"},[createVNode("div",{"class":"concentrateDosing_top_name"},[createTextVNode("\u73ED\u52A0\u836F\u91CF\uFF1A")]),createVNode("div",{"style":{color:"#80B436",fontWeight:"bold"}},[createVNode("span",{"class":"concentrateDosing_top_val"},[Number(info.current_DATA[`${_props.tabId}__FLOCCULANT_KG`]).toFixed(2)==="NaN"?"-":Number(info.current_DATA[`${_props.tabId}__FLOCCULANT_KG`]).toFixed(2)]),createVNode("span",{"class":"concentrateDosing_top_unit"},[createTextVNode("kg")])])]),createVNode("div",{"class":"concentrateDosing_top_property"},[createVNode("div",{"class":"concentrateDosing_top_name"},[createTextVNode("\u539F\u7164\u5165\u6D17\u91CF\uFF1A")]),createVNode("div",{"style":{color:"#4F7CF7",fontWeight:"bold"}},[createVNode("span",{"class":"concentrateDosing_top_val"},[Number(info.current_DATA["3001/2__COAL_CAP"]).toFixed(1)==="NaN"?"-":Number(info.current_DATA["3001/2__COAL_CAP"]).toFixed(1)]),createVNode("span",{"class":"concentrateDosing_top_unit"},[createTextVNode("t/h")])])])]),createVNode("div",{"class":"concentrateDosing_bottom","id":"concentrateDosing_bottom"},[showChart.value?createVNode("div",{"id":`${_props.tabId||"chart"}${_props.index}`,"style":{height:"100%"}},null):null])]);}});var initChart$b=(id,data,text,height=100)=>{const chart=new Chart({container:id,autoFit:true,height:height});chart.data(data);chart.tooltip(false);chart.scale({time:{range:[0,1]},value:{min:0,nice:true}});chart.axis("value",{line:{style:{lineWidth:1,stroke:"#BFBFBF"// 设置线的颜色
48
- }},title:{text:text,style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.line().position("time*value");chart.point().position("time*value");chart.render();return chart;};const tabsList$3=[{name:"电耗",id:"system_mt__ELECTRIC_PERRAW"},{name:"介耗",id:"system_mt__SHALLOW_MEDIUM_PERRAW"},{name:"水耗",id:"system_mt__WATER_PERRAW"},{name:"风耗",id:"system_mt__BLOWING_RATE_PERRAW"},{name:"浓缩药耗",id:"system_mt__FLOCCULANT_PERRAW"},{name:"浮选药耗",id:"system_mt__FROTHERS_PERRAW&system_mt_COLLECTOR_PERRAW"}];const chartFormat$9=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}`,value:Number(item.value.toString().match(/^\d+(?:\.\d{0,2})?/))}));};const props$Q={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
47
+ }},title:{text:text,style:{fill:"#546A91"},position:"end",autoRotate:false,offset:5}});chart.line().position("time*value");chart.point().position("time*value");chart.render();return chart;};const tabsList$3=[{name:"电耗",id:"system_mt__ELECTRIC_PERRAW"},{name:"介耗",id:"system_mt__SHALLOW_MEDIUM_PERRAW"},{name:"水耗",id:"system_mt__WATER_PERRAW"},{name:"风耗",id:"system_mt__BLOWING_RATE_PERRAW"},{name:"浓缩药耗",id:"system_mt__FLOCCULANT_PERRAW"},{name:"浮选药耗",id:"system_mt__FROTHERS_PERRAW&system_mt_COLLECTOR_PERRAW"}];const chartFormat$9=data=>{return data.map(item=>({time:`${`${item.time}`.slice(-2)}`,value:Number(item.value.toFixed(2))}));};const props$Q={tabId:String,workShopType:String,cardCode:String,prefix:String,serverName:String,timeout:Number,index:Number// 索引值
49
48
  };var energyConsumption=defineComponent({name:"energyConsumption",cname:"能源消耗",developer:"前端开发组",equipment:"PC",props:props$Q,setup(_props,_ctx){let chart;// 自定义接口配置
50
49
  setInstance$1$1({prefix:_props.prefix,serverName:_props.serverName,timeout:_props.timeout// 超时时长
51
50
  });const info=reactive({current_DATA:{},history_DATA:{}});const http=async()=>{const res=await defaultApi({CURRENT_DATA:[],HISTORY_DATA:historyArr(_props.tabId,"week")||[]},"ENERGY_CONSUME");info.current_DATA=res.data.current_DATA;info.history_DATA=res.data.history_DATA;const height=document.getElementById("energyConsumption")?.clientHeight;if(!chart){chart=initChart$b(`${_props.tabId||"chart"}${_props.index}`,chartFormat$9(historyList(info.history_DATA)),text(_props.tabId),height);}else {chart.axis("value",{line:{style:{lineWidth:1,stroke:"#BFBFBF"// 设置线的颜色
@@ -1068,7 +1067,7 @@ serverName:String,// 接口文件名
1068
1067
  timeout:Number,// 接口请求超时时长
1069
1068
  isInterval:Boolean,tabId:String},setup(_props,_ctx){const form=reactive({systemYieldData:[],coalRankYieldData:[]});const getData=async()=>{const{data}=await instance$1$1.post("/getCardData?cardType=productionStatistics",{});form.systemYieldData=data.systemYieldData;form.coalRankYieldData=data.coalRankYieldData;};let stopInterval=useInterval$1(getData,5000,_props.isInterval);watch(()=>_props.isInterval,e=>{if(e){stopInterval=useInterval$1(getData,5000,_props.isInterval);}else {stopInterval();}},{immediate:true});onBeforeUnmount(stopInterval);onMounted(()=>{_ctx.emit("getTabs",tabsList);});return ()=>createVNode("div",{"class":"production-statistics"},[createVNode(SystemYield,{"data":form.systemYieldData[_props.tabId||""]},null),createVNode(CoalRankYield,{"data":form.coalRankYieldData[_props.tabId||""]},null)]);}});const mock={systemYieldData:{day:[{name:"东区1#","value|0-20000":1},{name:"东区1#","percent|0-100":1,type:"产率"},{name:"东区2#","value|0-20000":1},{name:"东区2#","percent|0-100":1,type:"产率"},{name:"西区1#","value|0-20000":1},{name:"西区1#","percent|0-100":1,type:"产率"},{name:"西区2#","value|0-20000":1},{name:"西区2#","percent|0-100":1,type:"产率"},{name:"西区3#","value|0-20000":1},{name:"西区3#","percent|0-100":1,type:"产率"}],month:[{name:"东区1#","value|0-20000":1},{name:"东区1#","percent|0-100":1,type:"产率"},{name:"东区2#","value|0-20000":1},{name:"东区2#","percent|0-100":1,type:"产率"},{name:"西区1#","value|0-20000":1},{name:"西区1#","percent|0-100":1,type:"产率"},{name:"西区2#","value|0-20000":1},{name:"西区2#","percent|0-100":1,type:"产率"},{name:"西区3#","value|0-20000":1},{name:"西区3#","percent|0-100":1,type:"产率"}]},coalRankYieldData:{day:[{name:"肥","value|1000-20000":1},{name:"焦","value|1000-20000":1},{name:"1/3焦","value|1000-20000":1},{name:"中","value|1000-20000":1},{name:"煤泥","value|1000-20000":1},{name:"矸石","value|1000-20000":1}],month:[{name:"肥","value|1000-20000":1},{name:"焦","value|1000-20000":1},{name:"1/3焦","value|1000-20000":1},{name:"中","value|1000-20000":1},{name:"煤泥","value|1000-20000":1},{name:"矸石","value|1000-20000":1}]}};var mockData={storageInfo:mock$f,remoteSwitchhouse:mock$A,substation:mock$z,electricMonitor:mock$o,rawCoalSendIn2:mock$9,productionPlan2:mock$g,productionStatistics:mock,mechineTimeDayStatistics:mock$8,drySeparationPlant:mock$6,luLingDayStatistics:mock$5,humanResources:mock$4,energyConsumptionInfo:mock$3,logisticsInfo:mock$m,commodityConsume:mock$l,deviceOverview:mock$2,overhaulPlan:mock$7,smartInspection:mock$p,remoteElectricity:mock$w,alarmFaultDanger:mock$n,productionPlan:mock$k,washingRawCoalQuantity:mock$j,washingSystemHandleQuantity:mock$s,systemRunStatus:mock$r,realTimeAshWater:mock$b,consumeAnalysis:mock$a,alarmInfo:mock$y,keyEquipmentTesting:mock$u,opsInfo:mock$t,hiddenTrouble:mock$x,faultJudgment:mock$v,rawCoalSendIn:mock$i,warehouseStorage:mock$h,sendInOutCoalList:mock$q,outTransportStatistics:mock$c,videos:mock$1,storageDia:mock$d,storageDiaSimple:mock$e};const cardList=[];const coms=[];const createComp=()=>{coms.push(installCom(Layout,"layout"));coms.push(installCom(CardBox,"box"));coms.push(installCom(layoutEditor,"layout-editor"));for(let i of cards){const com=installCom(i,i.name);coms.push(com);cardList.push({name:i.name,cname:i.cname,developer:i.developer,equipment:i.equipment,version: version$1});}};createComp();var index$1={install(app){for(let i of coms){app.use(i);}},cards:cardList,mockData:mockData,version: version$1};
1070
1069
 
1071
- var version = "0.0.67";
1070
+ var version = "0.0.70";
1072
1071
 
1073
1072
  const config$1 = {
1074
1073
  prefix: "inl"
@@ -40042,11 +40041,9 @@ var NewOrder = defineComponent({
40042
40041
  };
40043
40042
 
40044
40043
  const resp = await api$9.toApply(param);
40045
- if (resp.code === "ok") {
40046
- message.success(resp.message || "成功");
40047
- cancelModal();
40048
- context.emit("refresh");
40049
- }
40044
+ message.success(resp.message || "成功");
40045
+ cancelModal();
40046
+ context.emit("refresh");
40050
40047
  };
40051
40048
  watch(() => props.showCreate, val => {
40052
40049
  if (val) {
@@ -40571,7 +40568,8 @@ var PerformOperation = defineComponent({
40571
40568
  const loopIds = props.detail.loops.map(lo => lo.id);
40572
40569
  const resp = await api$9.processPreExecute({
40573
40570
  loopIds,
40574
- processTaskDefKey: props.detail.taskDefKey
40571
+ processTaskDefKey: props.detail.taskDefKey,
40572
+ processInstanceId: props.detail.processInstanceId
40575
40573
  });
40576
40574
  if (resp.code === "error") {
40577
40575
  message.error(resp.message);
@@ -40604,6 +40602,8 @@ var PerformOperation = defineComponent({
40604
40602
  }, [createVNode("div", {
40605
40603
  "class": "name"
40606
40604
  }, [createTextVNode("\u63A7\u5236\u56DE\u8DEF")]), createVNode("div", {
40605
+ "class": "num"
40606
+ }, [props.detail.taskDefKey === "ExecuteStop" && "挂牌编号", props.detail.taskDefKey === "ExecuteSupply" && "摘牌编号"]), createVNode("div", {
40607
40607
  "class": "value"
40608
40608
  }, [createTextVNode("\u6267\u884C\u64CD\u4F5C")])]), loopList.value.map(loop => createVNode("div", {
40609
40609
  "class": "line",
@@ -40611,6 +40611,18 @@ var PerformOperation = defineComponent({
40611
40611
  }, [createVNode("div", {
40612
40612
  "class": "name"
40613
40613
  }, [loop.loopName]), createVNode("div", {
40614
+ "class": "num"
40615
+ }, [
40616
+ // 停电执行 ExecuteStop
40617
+ props.detail.taskDefKey === "ExecuteStop" && createVNode(resolveComponent("a-input"), {
40618
+ "value": loop.lockNo,
40619
+ "valueModifiers": {
40620
+ "trim": true
40621
+ },
40622
+ "onUpdate:value": $event => loop.lockNo = $event
40623
+ }, null),
40624
+ // 送电执行 ExecuteSupply
40625
+ props.detail.taskDefKey === "ExecuteSupply" && loop.lockNo]), createVNode("div", {
40614
40626
  "class": "value"
40615
40627
  }, [loop.lockCount])]))])],
40616
40628
  footer: () => createVNode("div", {
@@ -40624,7 +40636,17 @@ var PerformOperation = defineComponent({
40624
40636
  "onClick": () => {
40625
40637
  // 停电执行 ExecuteStop
40626
40638
  if (props.detail.taskDefKey === "ExecuteStop") {
40627
- context.emit("toExecuteStop");
40639
+ let state = true;
40640
+ loopList.value.forEach(loop => {
40641
+ if (!loop.lockNo) {
40642
+ state = false;
40643
+ }
40644
+ });
40645
+ if (state) {
40646
+ context.emit("toExecuteStop", loopList.value);
40647
+ } else {
40648
+ message.error("挂牌编号不能为空");
40649
+ }
40628
40650
  }
40629
40651
  // 送电执行 ExecuteSupply
40630
40652
  if (props.detail.taskDefKey === "ExecuteSupply") {
@@ -40805,6 +40827,10 @@ var Info$1 = defineComponent({
40805
40827
  title: "挂锁",
40806
40828
  width: "15%",
40807
40829
  key: "lock"
40830
+ }, {
40831
+ dataIndex: "lockNo",
40832
+ title: "编号",
40833
+ width: "15%"
40808
40834
  }, {
40809
40835
  dataIndex: "operationUser",
40810
40836
  title: "当前操作人",
@@ -41374,11 +41400,16 @@ var Tables = defineComponent({
41374
41400
  }
41375
41401
  };
41376
41402
  // 停电执行
41377
- const executeStop = async () => {
41403
+ const executeStop = async loopList => {
41378
41404
  const loopIds = currentObj.value.loops.map(lo => lo.id);
41405
+ let lockNo = [];
41406
+ loopIds.forEach(id => {
41407
+ lockNo.push(loopList.find(loop => loop.loopId === id).lockNo);
41408
+ });
41379
41409
  const resp = await api$9.executeStop({
41380
41410
  lockUser: userId,
41381
41411
  loopIds,
41412
+ lockNo,
41382
41413
  loopStatus: "localBreakStopPower",
41383
41414
  processInstanceId: currentObj.value.processInstanceId,
41384
41415
  processName: currentObj.value.supplyTypeName,
@@ -41717,7 +41748,9 @@ var Tables = defineComponent({
41717
41748
  "onUpdate:comment": $event => operationState.comment = $event
41718
41749
  }, null), createVNode(PerformOperation, {
41719
41750
  "detail": currentObj.value,
41720
- "onToExecuteStop": executeStop,
41751
+ "onToExecuteStop": loopList => {
41752
+ executeStop(loopList);
41753
+ },
41721
41754
  "onToExecuteSupply": executeSupply,
41722
41755
  "showPerform": operationState.showPerform,
41723
41756
  "onUpdate:showPerform": $event => operationState.showPerform = $event