|
@@ -24,42 +24,14 @@
|
|
|
style="font-size: 18px; color: rgb(10, 89, 247); font-weight: 600"
|
|
|
>新增数据</span
|
|
|
>
|
|
|
- <!-- DDLSD -->
|
|
|
-<!-- <el-select
|
|
|
- v-model="taskValue"
|
|
|
- v-if="item.deviceType == 'DDLSD'"
|
|
|
- placeholder="请选择任务"
|
|
|
- size="large"
|
|
|
- @change="changeTask"
|
|
|
- style="position: absolute; right: 460px; z-index: 2; width: 140px"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
- </el-select>-->
|
|
|
-<!-- <el-button
|
|
|
- class="ces"
|
|
|
- type="primary"
|
|
|
- style="position: absolute; right: 340px; z-index: 2"
|
|
|
- v-if="item.deviceType == 'DDLSD'"
|
|
|
- @click.stop="
|
|
|
- startTest1(item.deviceName, item.deviceNo, item.deviceType)
|
|
|
- "
|
|
|
- :disabled="
|
|
|
- (item.deviceType == 'DDLSD' && !taskValue) ||
|
|
|
- btnDisabled ||
|
|
|
- setDiabledStatus
|
|
|
- "
|
|
|
- >设置参数</el-button
|
|
|
- >
|
|
|
+
|
|
|
+
|
|
|
<el-select
|
|
|
v-model="taskId"
|
|
|
v-if="item.deviceType == 'DDLSD'"
|
|
|
placeholder="选择任务号"
|
|
|
size="large"
|
|
|
+ @click.stop=""
|
|
|
style="position: absolute; right: 180px; z-index: 2; width: 140px"
|
|
|
>
|
|
|
<el-option
|
|
@@ -68,25 +40,26 @@
|
|
|
:label="item.label"
|
|
|
:value="item.value"
|
|
|
/>
|
|
|
- </el-select>-->
|
|
|
+ </el-select>
|
|
|
<!-- DDLSD -->
|
|
|
<!-- WKDLT -->
|
|
|
|
|
|
-<!-- <el-input-number
|
|
|
+ <el-input-number
|
|
|
@click.stop
|
|
|
style="
|
|
|
position: absolute;
|
|
|
- right: 300px;
|
|
|
+ right: 180px;
|
|
|
z-index: 2;
|
|
|
margin-bottom: 1px;
|
|
|
"
|
|
|
v-model="tipTemperature"
|
|
|
- :min="50"
|
|
|
- :max="450"
|
|
|
- v-if="item.deviceType == 'WKDLT'"
|
|
|
+ :min="5"
|
|
|
+ :max="30"
|
|
|
+ v-if="item.deviceType == 'WXDJC'"
|
|
|
/>
|
|
|
+
|
|
|
<span
|
|
|
- v-if="item.deviceType == 'WKDLT'"
|
|
|
+ v-if="item.deviceType == 'WXDJC'"
|
|
|
style="
|
|
|
position: absolute;
|
|
|
right: 345px;
|
|
@@ -95,9 +68,9 @@
|
|
|
font-size: 16px;
|
|
|
color: black !important;
|
|
|
"
|
|
|
- >℃</span
|
|
|
+ >检测频率(分钟)</span
|
|
|
>
|
|
|
- <el-button
|
|
|
+<!-- <el-button
|
|
|
class="ces"
|
|
|
type="primary"
|
|
|
style="position: absolute; right: 180px; z-index: 2"
|
|
@@ -207,7 +180,7 @@ defineOptions({
|
|
|
});
|
|
|
const dictS = useDictionaryStore();
|
|
|
const store = useProcessStore();
|
|
|
-const tipTemperature = ref(50);
|
|
|
+const tipTemperature = ref(5);
|
|
|
const tipTemperatureDisabled = ref(false);
|
|
|
const setTipTemperature = async () => {
|
|
|
try {
|
|
@@ -278,19 +251,28 @@ const getTask = async () => {
|
|
|
};
|
|
|
const options = ref([]);
|
|
|
const options2 = ref([
|
|
|
- { value: "1", label: "任务0" },
|
|
|
- { value: "2", label: "任务1" },
|
|
|
- { value: "3", label: "任务2" },
|
|
|
- { value: "4", label: "任务3" },
|
|
|
- { value: "5", label: "任务4" },
|
|
|
- { value: "6", label: "任务5" },
|
|
|
- { value: "7", label: "任务6" },
|
|
|
- { value: "8", label: "任务7" },
|
|
|
+ { value: "1", label: "Pset1" },
|
|
|
+ { value: "2", label: "Pset2" },
|
|
|
+ { value: "3", label: "Pset3" },
|
|
|
+ { value: "4", label: "Psett4" },
|
|
|
+ { value: "5", label: "Pset5" },
|
|
|
+ { value: "6", label: "Pset6" },
|
|
|
+ { value: "7", label: "Pset7" },
|
|
|
+ { value: "8", label: "Psett8" },
|
|
|
+ { value: "9", label: "Psett9" },
|
|
|
+ { value: "10", label: "Psett10" },
|
|
|
+ { value: "11", label: "Psett11" },
|
|
|
+ { value: "12", label: "Psett12" },
|
|
|
+ { value: "13", label: "Psett13" },
|
|
|
+ { value: "14", label: "Psett14" },
|
|
|
+ { value: "15", label: "Psett15" },
|
|
|
+ { value: "16", label: "Psett16" },
|
|
|
]);
|
|
|
const startTest = (a, b, c) => {
|
|
|
let obj = {
|
|
|
deviceName: a,
|
|
|
deviceNo: b,
|
|
|
+ tipTemperature: tipTemperature.value,
|
|
|
deviceType: c,
|
|
|
operationId: store.scanInfo.operationId,
|
|
|
operationName: store.processInfo.operationName,
|
|
@@ -321,24 +303,20 @@ const showLable = (key) => {
|
|
|
switch (key) {
|
|
|
case "tipTemperature":
|
|
|
return "温度";
|
|
|
- case "Finalangle":
|
|
|
- return "最终角度";
|
|
|
- case "Finaltime":
|
|
|
- return "最终时间";
|
|
|
- case "Tighteningresult":
|
|
|
- return "最终结果";
|
|
|
- case "Finaltorque":
|
|
|
+ case "Pset":
|
|
|
+ return "Pset号";
|
|
|
+ case "torque":
|
|
|
return "最终扭矩";
|
|
|
+ case "angle":
|
|
|
+ return "最终角度";
|
|
|
+ case "duration":
|
|
|
+ return "持续时间";
|
|
|
case "DataTimes":
|
|
|
return "采集时间";
|
|
|
- case "taskNo":
|
|
|
- return "当前任务号";
|
|
|
- case "warning":
|
|
|
+ case "tighteningresult":
|
|
|
+ return "拧紧结果";
|
|
|
+ case "error":
|
|
|
return "警报";
|
|
|
- case "tightenResult":
|
|
|
- return "最终拧紧结果";
|
|
|
- case "totalCycles":
|
|
|
- return "总圈数";
|
|
|
case "length":
|
|
|
return "长度";
|
|
|
case "height":
|
|
@@ -347,62 +325,6 @@ const showLable = (key) => {
|
|
|
return "电烙铁通道1温度";
|
|
|
case "ch2_temperature":
|
|
|
return "电烙铁通道2温度";
|
|
|
- case "DDLSD3":
|
|
|
- return "目标扭力";
|
|
|
- case "DDLSD4":
|
|
|
- return "扭力保持时间";
|
|
|
- case "DDLSD5":
|
|
|
- return "浮高界定圈数";
|
|
|
- case "DDLSD6":
|
|
|
- return "滑牙界定圈数";
|
|
|
- case "DDLSD7":
|
|
|
- return "触发速度切换的扭力比值";
|
|
|
- case "DDLSD8":
|
|
|
- return "扭力补偿值";
|
|
|
- case "DDLSD9":
|
|
|
- return "开启浮高滑牙检测";
|
|
|
- case "DDLSD10":
|
|
|
- return "触发速度切换的扭力";
|
|
|
- case "DDLSD11":
|
|
|
- return "触发速度切换的速度比值";
|
|
|
- case "DDLSD12":
|
|
|
- return "扭力偏差上限";
|
|
|
- case "DDLSD13":
|
|
|
- return "扭力偏差下限";
|
|
|
- case "DDLSD14":
|
|
|
- return "扭力免检圈数";
|
|
|
- case "DDLSD17":
|
|
|
- return "自由旋转方向";
|
|
|
- case "DDLSD18":
|
|
|
- return "STEP-00拧紧圈数";
|
|
|
- case "DDLSD19":
|
|
|
- return "STEP-00拧紧速度";
|
|
|
- case "DDLSD20":
|
|
|
- return "STEP-01拧紧圈数";
|
|
|
- case "DDLSD21":
|
|
|
- return "STEP-01拧紧速度";
|
|
|
- case "DDLSD22":
|
|
|
- return "STEP-02拧紧圈数";
|
|
|
- case "DDLSD23":
|
|
|
- return "STEP-02拧紧速度";
|
|
|
- case "DDLSD24":
|
|
|
- return "STEP-03拧紧圈数";
|
|
|
- case "DDLSD25":
|
|
|
- return "STEP-03拧紧速度";
|
|
|
- case "DDLSD26":
|
|
|
- return "STEP-04拧紧圈数";
|
|
|
- case "DDLSD27":
|
|
|
- return "STEP-04拧紧速度";
|
|
|
- case "DDLSD28":
|
|
|
- return "STEP-00拧松圈数";
|
|
|
- case "DDLSD29":
|
|
|
- return "STEP-00拧松速度";
|
|
|
- case "DDLSD30":
|
|
|
- return "STEP-01拧松圈数";
|
|
|
- case "DDLSD31":
|
|
|
- return "STEP-01拧松速度";
|
|
|
- case "DDLSD32":
|
|
|
- return "STEP-02拧松圈数";
|
|
|
case "humidity":
|
|
|
return "湿度";
|
|
|
case "temp":
|
|
@@ -480,10 +402,11 @@ const configeObj = (type) => {
|
|
|
//电动螺丝刀
|
|
|
case "DDLSD":
|
|
|
return [
|
|
|
- "Finaltorque",
|
|
|
- "Finalangle",
|
|
|
- "Finaltime",
|
|
|
- "Tighteningresult"
|
|
|
+ "Pset",
|
|
|
+ "torque",
|
|
|
+ "angle",
|
|
|
+ "duration",
|
|
|
+ "tighteningresult",
|
|
|
];
|
|
|
default:
|
|
|
return ["数据1", "数据2", "数据3"];
|