回收桶设备修改

master
mhsnet 4 months ago
parent 315420d56a
commit d866bc76c4

@ -98,7 +98,27 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="所属设备" prop="deviceCode"> <jnpf-form-tip-item label="所属设备" prop="deviceCode">
<JnpfPopupSelect <PopupSelectDeviceCode
v-model="dataForm.deviceCode"
@change="changeData('deviceCode', -1)"
:rowIndex="null"
:formData="dataForm"
:templateJson="interfaceRes.deviceCode"
placeholder="请选择"
propsValue="deviceCode"
popupWidth="800px"
popupTitle="选择数据"
popupType="dialog"
relationField="deviceName"
field="deviceCode"
interfaceId="564713894723988869"
:pageSize="20"
:columnOptions="deviceCodecolumnOptions"
clearable
:style="{ width: '100%' }"
>
</PopupSelectDeviceCode>
<!-- <JnpfPopupSelect
v-model="dataForm.deviceCode" v-model="dataForm.deviceCode"
@change="changeData('deviceCode', -1)" @change="changeData('deviceCode', -1)"
:rowIndex="null" :rowIndex="null"
@ -117,7 +137,7 @@
clearable clearable
:style="{ width: '100%' }" :style="{ width: '100%' }"
> >
</JnpfPopupSelect> </JnpfPopupSelect> -->
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -703,8 +723,8 @@ export default {
], ],
doorNumProps: { label: "fullName", value: "id" }, doorNumProps: { label: "fullName", value: "id" },
deviceCodecolumnOptions: [ deviceCodecolumnOptions: [
{ label: "设备编码", value: "device_code" }, { label: "设备编码", value: "deviceCode" },
{ label: "设备名称", value: "device_name" } { label: "设备名称", value: "deviceName" }
], ],
isShowOptions: [ isShowOptions: [
{ fullName: "关闭", id: "0" }, { fullName: "关闭", id: "0" },
@ -1056,35 +1076,35 @@ export default {
// //
dataFormSubmit(type) { dataFormSubmit(type) {
if (this.dataForm.price == null && !this.useUnifiedConfig) { if (this.dataForm.price == null && !this.useUnifiedConfig) {
this.$message.error('请选择配置或输入回收单价'); this.$message.error("请选择配置或输入回收单价");
return; return;
} }
if (this.useUnifiedConfig) { if (this.useUnifiedConfig) {
this.dataForm.price = null; this.dataForm.price = null;
} }
if (this.dataForm.fullSet == null && !this.usefullSetConfig) { if (this.dataForm.fullSet == null && !this.usefullSetConfig) {
this.$message.error('请选择配置或选择满溢报警'); this.$message.error("请选择配置或选择满溢报警");
return; return;
} }
if (this.usefullSetConfig) { if (this.usefullSetConfig) {
this.dataForm.fullSet = "-1"; this.dataForm.fullSet = "-1";
} }
if (this.dataForm.smogSet == null && !this.useSmogSetConfig) { if (this.dataForm.smogSet == null && !this.useSmogSetConfig) {
this.$message.error('请选择配置或选择烟雾报警'); this.$message.error("请选择配置或选择烟雾报警");
return; return;
} }
if (this.useSmogSetConfig) { if (this.useSmogSetConfig) {
this.dataForm.smogSet = "-1"; this.dataForm.smogSet = "-1";
} }
if (this.dataForm.warningWeight == null && !this.warningWeightConfig) { if (this.dataForm.warningWeight == null && !this.warningWeightConfig) {
this.$message.error('请选择配置或输入重量上限'); this.$message.error("请选择配置或输入重量上限");
return; return;
} }
if (this.warningWeightConfig) { if (this.warningWeightConfig) {
this.dataForm.warningWeight = null; this.dataForm.warningWeight = null;
} }
if (this.dataForm.closeDelay == null && !this.closeDelayConfig) { if (this.dataForm.closeDelay == null && !this.closeDelayConfig) {
this.$message.error('请选择配置或输入关门延时'); this.$message.error("请选择配置或输入关门延时");
return; return;
} }
if (this.closeDelayConfig) { if (this.closeDelayConfig) {

@ -262,15 +262,16 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="投口状态" width="200" algin="center"> <el-table-column label="投口状态" width="280" algin="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(item, index) in scope.row.buckets"> <div v-for="(item, index) in scope.row.buckets">
<el-row> <el-row>
<el-col :span="14"> <el-col :span="24">
<div>{{ item.showName }} {{ item.currentWeight }} KG</div> <div>桶名称{{ item.showName }} 当前{{ item.currentWeight }} KG 预警{{ item.warningWeightWeight }} KG</div>
</el-col> </el-col>
<el-col :span="10"> <!-- <el-col :span="10">
<div> <div>
{{ item.progress }}
<el-progress <el-progress
:percentage="item.progress" :percentage="item.progress"
:color="[ :color="[
@ -280,7 +281,7 @@
]" ]"
></el-progress> ></el-progress>
</div> </div>
</el-col> </el-col> -->
</el-row> </el-row>
</div> </div>
</template> </template>
@ -747,7 +748,7 @@ export default {
smogStatus.title = "投递柜内有桶烟雾报警"; smogStatus.title = "投递柜内有桶烟雾报警";
} }
o1.progress = Math.ceil( o1.progress = Math.ceil(
(o1.currentWeight / o1.warningWeight) * 100 (parseInt(o1.currentWeight) / parseInt(o1.warningWeight)) * 100
); );
return o1; return o1;
}); });

Loading…
Cancel
Save