|
@@ -337,7 +337,7 @@
|
|
|
resetConsumable,
|
|
|
consumableDetail,
|
|
|
consumptionAlgorithmTypeList,
|
|
|
- toWorkOrder, syncRunTime
|
|
|
+ toWorkOrder, syncRunTime, forceReset
|
|
|
} from "@/api/consumble";
|
|
|
import { currentUserName } from "@/utils/trace";
|
|
|
import { getBoxDetail, getProjectList } from "@/api/box";
|
|
@@ -346,7 +346,11 @@ import DeleteIcon from "@/assets/consumable/Delete.png";
|
|
|
import EditIcon from "@/assets/consumable/edit-button.png";
|
|
|
import RefreshIcon from "@/assets/consumable/refresh.png";
|
|
|
import {pulishRunStat} from "@/api/box-debug-mqtt";
|
|
|
- import {sendConsumablesMessage, sendCtrlMessage} from "@/views/equip-management/box-debug-rebuild/public-method";
|
|
|
+ import {
|
|
|
+ sendConsumablesMessage,
|
|
|
+ sendCtrlMessage,
|
|
|
+ sendForceResetMessage
|
|
|
+ } from "@/views/equip-management/box-debug-rebuild/public-method";
|
|
|
export default {
|
|
|
components: {
|
|
|
OperateConsumble
|
|
@@ -533,6 +537,17 @@ export default {
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(async () => {
|
|
|
+ const res0 = await sendForceResetMessage(
|
|
|
+ row.newtrend_order,
|
|
|
+ row.box_id,
|
|
|
+ row.order,
|
|
|
+ row.uuid,
|
|
|
+ "newtrend",
|
|
|
+ [{ key: 'consumables', value: 0 }]
|
|
|
+ );
|
|
|
+ if (res0.code === 200){
|
|
|
+ console.log('force_reset')
|
|
|
+ }
|
|
|
//下发mqtt,value=0给盒子
|
|
|
const res = await sendConsumablesMessage(
|
|
|
row.newtrend_order,
|