|
|
|
@ -47,6 +47,7 @@ |
|
|
|
@current-change="getList" |
|
|
|
@current-change="getList" |
|
|
|
@handleUpdate="handleUpdate" |
|
|
|
@handleUpdate="handleUpdate" |
|
|
|
@handleCutOff="handleCutOff" |
|
|
|
@handleCutOff="handleCutOff" |
|
|
|
|
|
|
|
@handleCutIn="handleCutIn" |
|
|
|
> |
|
|
|
> |
|
|
|
</heavy-table> |
|
|
|
</heavy-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -80,7 +81,7 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { systemConfigurationList, updateStemConfiguration,handleCutOff } from "@/api/wcs/configuration"; |
|
|
|
import { systemConfigurationList, updateStemConfiguration,handleCutOff,handleCutIn } from "@/api/wcs/configuration"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "Configuration", |
|
|
|
name: "Configuration", |
|
|
|
@ -175,7 +176,17 @@ export default { |
|
|
|
name: "切离", |
|
|
|
name: "切离", |
|
|
|
event: "handleCutOff", |
|
|
|
event: "handleCutOff", |
|
|
|
hidden(value) { |
|
|
|
hidden(value) { |
|
|
|
if (value.equipmentName === "WCS") { |
|
|
|
if (value.equipmentName === "WCS" && value.equipmentStatus === 2) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
},{ |
|
|
|
|
|
|
|
name: "恢复", |
|
|
|
|
|
|
|
event: "handleCutIn", |
|
|
|
|
|
|
|
hidden(value) { |
|
|
|
|
|
|
|
if (value.equipmentName === "WCS" && value.equipmentStatus === 1) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
@ -284,6 +295,22 @@ export default { |
|
|
|
this.$modal.msgSuccess("切离失败,正在工作中或有异常"); |
|
|
|
this.$modal.msgSuccess("切离失败,正在工作中或有异常"); |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
/** 恢复按钮操作 */ |
|
|
|
|
|
|
|
handleCutIn(row) { |
|
|
|
|
|
|
|
let tempRow = JSON.parse(JSON.stringify(row)); |
|
|
|
|
|
|
|
let data = { |
|
|
|
|
|
|
|
id: tempRow.id, |
|
|
|
|
|
|
|
equipmentName: tempRow.equipmentName, |
|
|
|
|
|
|
|
equipmentStatus: tempRow.equipmentStatus, |
|
|
|
|
|
|
|
onlineStatus: tempRow.onlineStatus, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
handleCutIn(data).then(response => { |
|
|
|
|
|
|
|
this.$modal.msgSuccess("切离成功"); |
|
|
|
|
|
|
|
this.getList(); |
|
|
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
|
|
this.$modal.msgSuccess("切离失败,正在工作中或有异常"); |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
/** 提交按钮 */ |
|
|
|
/** 提交按钮 */ |
|
|
|
submitForm() { |
|
|
|
submitForm() { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
|