fix:coding737
This commit is contained in:
parent
e3acce3f09
commit
400dfb27dd
|
|
@ -31,21 +31,21 @@
|
||||||
<span>{{ typeOptions_[scope.row.type] }}</span>
|
<span>{{ typeOptions_[scope.row.type] }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="是否用于安全" show-overflow-tooltip>
|
<el-table-column label="是否用于安全" show-overflow-tooltip v-if="project_code!=='bxerp'">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-icon v-if="scope.row.is_for_safe" color="green">
|
<el-icon v-if="scope.row.is_for_safe" color="green">
|
||||||
<CircleCheckFilled />
|
<CircleCheckFilled />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="是否用于环保" show-overflow-tooltip>
|
<el-table-column label="是否用于环保" show-overflow-tooltip v-if="project_code!=='bxerp'">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-icon v-if="scope.row.is_for_enp" color="green">
|
<el-icon v-if="scope.row.is_for_enp" color="green">
|
||||||
<CircleCheckFilled />
|
<CircleCheckFilled />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="是否为车辆" show-overflow-tooltip>
|
<el-table-column label="是否为车辆" show-overflow-tooltip v-if="project_code!=='bxerp'">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-icon v-if="scope.row.is_car" color="green">
|
<el-icon v-if="scope.row.is_car" color="green">
|
||||||
<CircleCheckFilled />
|
<CircleCheckFilled />
|
||||||
|
|
@ -116,8 +116,13 @@ export default {
|
||||||
{ id: 40, name: "监测设备" },
|
{ id: 40, name: "监测设备" },
|
||||||
{ id: 50, name: "监控设备" },
|
{ id: 50, name: "监控设备" },
|
||||||
],
|
],
|
||||||
|
project_code:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
|
||||||
|
console.log(this.project_code);
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//添加
|
//添加
|
||||||
add() {
|
add() {
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row v-if="project_code!=='bxerp'">
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
<el-form-item label="是否用于安全">
|
<el-form-item label="是否用于安全">
|
||||||
<el-switch v-model="form.is_for_safe" />
|
<el-switch v-model="form.is_for_safe" />
|
||||||
|
|
@ -109,9 +109,10 @@ export default {
|
||||||
],
|
],
|
||||||
visible: false,
|
visible: false,
|
||||||
isSaveing: false,
|
isSaveing: false,
|
||||||
|
project_code: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;},
|
||||||
methods: {
|
methods: {
|
||||||
//显示
|
//显示
|
||||||
open(mode = "add") {
|
open(mode = "add") {
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
<scTable ref="drawer_table" :apiObj="apiObj2" row-key="id" stripe :params="query2" id="myTable"
|
<scTable ref="drawer_table2" :apiObj="apiObj2" row-key="id" stripe :params="query2" id="myTable"
|
||||||
style="display: none;">
|
style="display: none;">
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
<el-table-column label="设备名称" prop="equipment_name" show-overflow-tooltip>
|
<el-table-column label="设备名称" prop="equipment_name" show-overflow-tooltip>
|
||||||
|
|
@ -350,6 +350,7 @@ export default {
|
||||||
that.$API.em.einspect.delete.req(row.id).then((res) => {
|
that.$API.em.einspect.delete.req(row.id).then((res) => {
|
||||||
that.$message.success("删除成功");
|
that.$message.success("删除成功");
|
||||||
that.$refs.drawer_table.refresh();
|
that.$refs.drawer_table.refresh();
|
||||||
|
that.$refs.drawer_table2.refresh();
|
||||||
that.$refs.table.refresh();
|
that.$refs.table.refresh();
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
return err;
|
return err;
|
||||||
|
|
@ -379,6 +380,7 @@ export default {
|
||||||
that.isSaveing = false;
|
that.isSaveing = false;
|
||||||
that.$message.success("操作成功");
|
that.$message.success("操作成功");
|
||||||
that.$refs.drawer_table.refresh();
|
that.$refs.drawer_table.refresh();
|
||||||
|
that.$refs.drawer_table2.refresh();
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
that.isSaveing = false;
|
that.isSaveing = false;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,7 @@
|
||||||
<el-switch v-model="form.is_autotask" />
|
<el-switch v-model="form.is_autotask" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24" v-if="project_code=='bxerp'">
|
||||||
<el-form-item label="切分数量">
|
<el-form-item label="切分数量">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-model="form.div_number"
|
v-model="form.div_number"
|
||||||
|
|
@ -156,7 +156,7 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24" v-if="project_code!=='bxerp'">
|
||||||
<el-form-item label="批次校验">
|
<el-form-item label="批次校验">
|
||||||
<el-switch v-model="form.batch_bind" />
|
<el-switch v-model="form.batch_bind" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -211,6 +211,7 @@ export default {
|
||||||
options: [],
|
options: [],
|
||||||
titleMap: { add: "新增", edit: "编辑" },
|
titleMap: { add: "新增", edit: "编辑" },
|
||||||
setFiltersVisible: false,
|
setFiltersVisible: false,
|
||||||
|
project_code: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -218,6 +219,7 @@ export default {
|
||||||
this.getProcess();
|
this.getProcess();
|
||||||
this.getMaterialIn();
|
this.getMaterialIn();
|
||||||
this.getMaterialOut();
|
this.getMaterialOut();
|
||||||
|
this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
|
||||||
this.form.routepack = this.routepack;
|
this.form.routepack = this.routepack;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="工时" prop="hour_work">
|
<el-table-column label="工时" prop="hour_work">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="批次校验">
|
<el-table-column label="批次校验" v-if="project_code!=='bxerp'">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag v-if="scope.row.batch_bind" type="success">是</el-tag>
|
<el-tag v-if="scope.row.batch_bind" type="success">是</el-tag>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -69,9 +69,11 @@ export default {
|
||||||
},
|
},
|
||||||
form: {},
|
form: {},
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
project_code: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
|
||||||
this.tableData = [];
|
this.tableData = [];
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,9 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="工时" prop="hour_work">
|
<el-table-column label="工时" prop="hour_work">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="批次校验" prop="batch_bind">
|
<el-table-column label="切分数量" prop="div_number" v-if="project_code=='bxerp'">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="批次校验" prop="batch_bind" v-else>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
|
|
@ -208,10 +210,12 @@ export default {
|
||||||
name: [{ required: true, message: "请输入" }],
|
name: [{ required: true, message: "请输入" }],
|
||||||
},
|
},
|
||||||
routepack: "",
|
routepack: "",
|
||||||
|
project_code:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.isSaveing = false;
|
this.isSaveing = false;
|
||||||
|
this.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
|
||||||
this.getInit();
|
this.getInit();
|
||||||
this.getMaterials();
|
this.getMaterials();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue