|
@@ -0,0 +1,209 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <headerTitle title="基本信息" style="margin-top: 15px"></headerTitle>
|
|
|
|
|
+
|
|
|
|
|
+ <el-form
|
|
|
|
|
+ ref="form"
|
|
|
|
|
+ :model="form"
|
|
|
|
|
+ :rules="rules"
|
|
|
|
|
+ label-width="100px"
|
|
|
|
|
+ class="create-form"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-row :gutter="15">
|
|
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 8, md: 12 } : { span: 8 }">
|
|
|
|
|
+ <el-form-item label="处置方式:" prop="disposalType">
|
|
|
|
|
+ <DictSelection
|
|
|
|
|
+ dictName="设备处置方式"
|
|
|
|
|
+ v-model="form.disposalType"
|
|
|
|
|
+ disabled
|
|
|
|
|
+ @change="disposalTypeChange"
|
|
|
|
|
+ ></DictSelection>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 8, md: 12 } : { span: 8 }">
|
|
|
|
|
+ <el-form-item label="编码:" prop="code">
|
|
|
|
|
+ <el-input v-model="form.code" disabled />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col v-bind="styleResponsive ? { lg: 8, md: 12 } : { span: 8 }">
|
|
|
|
|
+ <el-form-item label="名称:" prop="name">
|
|
|
|
|
+ <el-input v-model="form.name" disabled />
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+
|
|
|
|
|
+ </el-row
|
|
|
|
|
+ ></el-form>
|
|
|
|
|
+ <headerTitle title="处置对象" style="margin-top: 15px"></headerTitle>
|
|
|
|
|
+ <ele-pro-table
|
|
|
|
|
+ ref="table"
|
|
|
|
|
+ :columns="columns"
|
|
|
|
|
+ :datasource="form.detailList"
|
|
|
|
|
+ row-key="id"
|
|
|
|
|
+ height="30vh"
|
|
|
|
|
+ :needPage="false"
|
|
|
|
|
+ >
|
|
|
|
|
+ </ele-pro-table>
|
|
|
|
|
+ <headerTitle title="处置业务" style="margin-top: 15px"> </headerTitle>
|
|
|
|
|
+ <el-form label-width="150px" class="create-form">
|
|
|
|
|
+ <el-row :gutter="15">
|
|
|
|
|
+ <el-col
|
|
|
|
|
+ v-bind="styleResponsive ? { lg: 24, md: 24 } : { span: 24 }"
|
|
|
|
|
+ v-for="item in form.disposalTypeList"
|
|
|
|
|
+ :key="item.id"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-form-item :label="item.name + ':'">
|
|
|
|
|
+ <div style="width: 95%; display: inline-block">
|
|
|
|
|
+ <formContent :type="item.type" v-model="item.value" disabled />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col> </el-row
|
|
|
|
|
+ ></el-form>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 选择产品 -->
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+ import formContent from '@/views/bpm/handleTask/components/equipmentDisposal/formContent.vue';
|
|
|
|
|
+ import { ehsGetById } from '@/api/bpm/components/equipmentDisposal';
|
|
|
|
|
+
|
|
|
|
|
+ const defForm = {
|
|
|
|
|
+ name: '',
|
|
|
|
|
+ id: '', //
|
|
|
|
|
+ disposalType: '',
|
|
|
|
|
+ managementCategory: '',
|
|
|
|
|
+ processId: '',
|
|
|
|
|
+ code: '',
|
|
|
|
|
+ disposalTypeList: [],
|
|
|
|
|
+ deviceList: []
|
|
|
|
|
+ };
|
|
|
|
|
+ export default {
|
|
|
|
|
+ components: {
|
|
|
|
|
+ formContent
|
|
|
|
|
+ },
|
|
|
|
|
+ props: {
|
|
|
|
|
+ businessId: {
|
|
|
|
|
+ default: ''
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ taskDefinitionKey: {
|
|
|
|
|
+ default: ''
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ visible: false,
|
|
|
|
|
+ loading: false,
|
|
|
|
|
+ infoDisposalVisible: false,
|
|
|
|
|
+ title: '物品处置',
|
|
|
|
|
+ type: 'detail',
|
|
|
|
|
+ form: { ...defForm },
|
|
|
|
|
+ rules: {
|
|
|
|
|
+ name: [{ required: true, message: '请选择', trigger: 'change' }],
|
|
|
|
|
+ type: [{ required: true, message: '请选择', trigger: 'change' }],
|
|
|
|
|
+ disposalType: [
|
|
|
|
|
+ { required: true, message: '请选择', trigger: 'change' }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ columns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ columnKey: 'index',
|
|
|
|
|
+ label: '序号',
|
|
|
|
|
+ type: 'index',
|
|
|
|
|
+ width: 55,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ fixed: 'left'
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'categoryCode',
|
|
|
|
|
+ label: '编码',
|
|
|
|
|
+ width: 100,
|
|
|
|
|
+ fixed: 'left',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'categoryName',
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ fixed: 'left',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ label: '名称',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'measureQuantity',
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ fixed: 'left',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ label: '计量数量',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'measureUnit',
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ fixed: 'left',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ label: '计量单位',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'categoryModel',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ label: '型号',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'specification',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ slot: 'specification',
|
|
|
|
|
+ label: '规格',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'warehouseName',
|
|
|
|
|
+ label: '出库仓库',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ minWidth: 110,
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ computed: {},
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.open();
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ async open() {
|
|
|
|
|
+ const data = await ehsGetById(this.businessId);
|
|
|
|
|
+ this.form = data;
|
|
|
|
|
+
|
|
|
|
|
+ this.form.disposalType = this.form.disposalType + '';
|
|
|
|
|
+ this.form.managementCategory = this.form.managementCategory + '';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+</script>
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
+ .basic-details-title {
|
|
|
|
|
+ margin: 10px 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ .title {
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ line-height: 45px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .add-product {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ // justify-content: flex-end;
|
|
|
|
|
+ font-size: 30px;
|
|
|
|
|
+ color: #1890ff;
|
|
|
|
|
+ margin: 10px 0;
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ }
|
|
|
|
|
+</style>
|