Merge remote-tracking branch 'origin/master'
| | |
| | | /** 类型 */ |
| | | @Excel(name = "类型") |
| | | private String type; |
| | | @Excel(name = "参数集编码") |
| | | private String parameterSetCode; |
| | | @Excel(name = "参数集名称") |
| | | private String parameterSetName; |
| | | @Excel(name = "工序编号") |
| | | private String processesCode; |
| | | @Excel(name = "工序名称") |
| | | private String processesName; |
| | | |
| | | |
| | | public void setId(Long id) |
| | | { |
| | |
| | | { |
| | | return type; |
| | | } |
| | | public void setParameterSetCode(String parameterSetCode) |
| | | { |
| | | this.parameterSetCode = parameterSetCode; |
| | | } |
| | | |
| | | public String getParameterSetCode() |
| | | { |
| | | return parameterSetCode; |
| | | } |
| | | public void setParameterSetName(String parameterSetName) |
| | | { |
| | | this.parameterSetName = parameterSetName; |
| | | } |
| | | |
| | | public String getParameterSetName() |
| | | { |
| | | return parameterSetName; |
| | | } |
| | | public void setProcessesCode(String processesCode) |
| | | { |
| | | this.processesCode = processesCode; |
| | | } |
| | | |
| | | public String getProcessesCode() |
| | | { |
| | | return processesCode; |
| | | } |
| | | public void setProcessesName(String processesName) |
| | | { |
| | | this.processesName = processesName; |
| | | } |
| | | |
| | | public String getProcessesName() |
| | | { |
| | | return processesName; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | |
| | | .append("paramName", getParamName()) |
| | | .append("unit", getUnit()) |
| | | .append("type", getType()) |
| | | .append("parameterSetCode", getParameterSetCode()) |
| | | .append("parameterSetName", getParameterSetName()) |
| | | .append("processesCode", getProcessesCode()) |
| | | .append("processesName", getProcessesName()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | |
| | | /** 工序编码 */ |
| | | @Excel(name = "工序编码") |
| | | private String processes; |
| | | private String processesCode; |
| | | @Excel(name = "工序名称") |
| | | private String processesName; |
| | | |
| | | /** 设备状态 */ |
| | | @Excel(name = "设备状态") |
| | |
| | | { |
| | | return lineCode; |
| | | } |
| | | public void setProcesses(String processes) |
| | | public void setProcessesCode(String processesCode) |
| | | { |
| | | this.processes = processes; |
| | | this.processesCode = processesCode; |
| | | } |
| | | |
| | | public String getProcesses() |
| | | public String getProcessesCode() |
| | | { |
| | | return processes; |
| | | return processesCode; |
| | | } |
| | | public void setProcessesName(String processesName) {this.processesName = processesName; } |
| | | |
| | | public String getProcessesName() |
| | | { |
| | | return processesName; |
| | | } |
| | | public void setStatus(String status) |
| | | { |
| | |
| | | .append("equipmentTypeName", getEquipmentTypeName()) |
| | | .append("workshopCode", getWorkshopCode()) |
| | | .append("lineCode", getLineCode()) |
| | | .append("processes", getProcesses()) |
| | | .append("processesCode", getProcessesCode()) |
| | | .append("processesName", getProcessesName()) |
| | | .append("status", getStatus()) |
| | | .append("remark", getRemark()) |
| | | .append("createUser", getCreateUser()) |
| | |
| | | <result property="paramName" column="param_name" /> |
| | | <result property="unit" column="unit" /> |
| | | <result property="type" column="type" /> |
| | | <result property="parameterSetCode" column="parameter_set_code" /> |
| | | <result property="parameterSetName" column="parameter_set_name" /> |
| | | <result property="processesCode" column="processes_code" /> |
| | | <result property="processesName" column="processes_name" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="selectDaParamCollectionVo"> |
| | | select id, work_order_no, sfc_code, product_code, production_line, location_code, equipment_no, param_code, param_value, param_upper, param_lower, param_standard, collection_time, spare_field_1, spare_field_2, create_user, create_time, update_user, update_time, state, param_name, unit, type from da_param_collection |
| | | select id, work_order_no, sfc_code,processes_name,processes_code, parameter_set_code ,parameter_set_name, product_code, production_line, location_code, equipment_no, param_code, param_value, param_upper, param_lower, param_standard, collection_time, spare_field_1, spare_field_2, create_user, create_time, update_user, update_time, state, param_name, unit, type from da_param_collection |
| | | </sql> |
| | | |
| | | <select id="selectDaParamCollectionList" parameterType="DaParamCollection" resultMap="DaParamCollectionResult"> |
| | |
| | | <if test="workOrderNo != null and workOrderNo != ''"> and work_order_no = #{workOrderNo}</if> |
| | | <if test="sfcCode != null and sfcCode != ''"> and sfc_code = #{sfcCode}</if> |
| | | <if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if> |
| | | <if test="parameterSetCode != null and parameterSetCode != ''"> and parameter_set_code = #{parameterSetCode}</if> |
| | | <if test="parameterSetName != null and parameterSetName != ''"> and parameter_set_name = #{parameterSetName}</if> |
| | | <if test="processesCode != null and processesCode != ''"> and processes_code = #{processesCode}</if> |
| | | <if test="processesName != null and processesName != ''"> and processes_name = #{processesName}</if> |
| | | <if test="productionLine != null and productionLine != ''"> and production_line = #{productionLine}</if> |
| | | <if test="locationCode != null and locationCode != ''"> and location_code = #{locationCode}</if> |
| | | <if test="equipmentNo != null and equipmentNo != ''"> and equipment_no = #{equipmentNo}</if> |
| | |
| | | <if test="productCode != null and productCode != ''">product_code,</if> |
| | | <if test="productionLine != null and productionLine != ''">production_line,</if> |
| | | <if test="locationCode != null and locationCode != ''">location_code,</if> |
| | | <if test="parameterSetCode != null and parameterSetCode != ''">parameter_set_code,</if> |
| | | <if test="parameterSetName != null and parameterSetName != ''">parameter_set_name,</if> |
| | | <if test="processesCode != null and processesCode != ''">processes_code,</if> |
| | | <if test="processesName != null and processesName != ''">processes_name,</if> |
| | | <if test="equipmentNo != null">equipment_no,</if> |
| | | <if test="paramCode != null and paramCode != ''">param_code,</if> |
| | | <if test="paramValue != null and paramValue != ''">param_value,</if> |
| | |
| | | <if test="productCode != null and productCode != ''">#{productCode},</if> |
| | | <if test="productionLine != null and productionLine != ''">#{productionLine},</if> |
| | | <if test="locationCode != null and locationCode != ''">#{locationCode},</if> |
| | | <if test="parameterSetCode != null and parameterSetCode != ''">#{parameter_set_code},</if> |
| | | <if test="parameterSetName != null and parameterSetName != ''">#{parameter_set_name},</if> |
| | | <if test="processesCode != null and processesCode != ''">#{processes_code},</if> |
| | | <if test="processesName != null and processesName != ''">#{processes_name},</if> |
| | | <if test="equipmentNo != null">#{equipmentNo},</if> |
| | | <if test="paramCode != null and paramCode != ''">#{paramCode},</if> |
| | | <if test="paramValue != null and paramValue != ''">#{paramValue},</if> |
| | |
| | | <if test="productCode != null and productCode != ''">product_code = #{productCode},</if> |
| | | <if test="productionLine != null and productionLine != ''">production_line = #{productionLine},</if> |
| | | <if test="locationCode != null and locationCode != ''">location_code = #{locationCode},</if> |
| | | <if test="parameterSetCode != null and parameterSetCode != ''">parameter_set_code = #{parameterSetCode},</if> |
| | | <if test="parameterSetName != null and parameterSetName != ''">parameter_set_name = #{parameterSetName},</if> |
| | | <if test="processesCode != null and processesCode != ''">processes_code = #{processesCode},</if> |
| | | <if test="processesName != null and processesName != ''">processes_name = #{processesName},</if> |
| | | <if test="equipmentNo != null">equipment_no = #{equipmentNo},</if> |
| | | <if test="paramCode != null and paramCode != ''">param_code = #{paramCode},</if> |
| | | <if test="paramValue != null and paramValue != ''">param_value = #{paramValue},</if> |
| | |
| | | <result property="equipmentTypeName" column="equipment_type_name" /> |
| | | <result property="workshopCode" column="workshop_code" /> |
| | | <result property="lineCode" column="line_code" /> |
| | | <result property="processes" column="processes" /> |
| | | <result property="processesCode" column="processes_code" /> |
| | | <result property="processesName" column="processes_name" /> |
| | | <result property="status" column="status" /> |
| | | <result property="remark" column="remark" /> |
| | | <result property="createUser" column="create_user" /> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectEmEquipmentArchivesVo"> |
| | | select id, equipment_code, equipment_name, equipment_brand, equipment_spec, equipment_type_id, equipment_type_code, equipment_type_name, workshop_code, line_code, processes, status, remark, create_user, create_time, update_user, update_time, spare_field_1, spare_field_2, spare_field_3, spare_field_4 from em_equipment_archives |
| | | select id, equipment_code, equipment_name, equipment_brand, equipment_spec, equipment_type_id, equipment_type_code, equipment_type_name, workshop_code, line_code, processes_code, processes_name , status, remark, create_user, create_time, update_user, update_time, spare_field_1, spare_field_2, spare_field_3, spare_field_4 from em_equipment_archives |
| | | </sql> |
| | | |
| | | <select id="selectEmEquipmentArchivesList" parameterType="EmEquipmentArchives" resultMap="EmEquipmentArchivesResult"> |
| | |
| | | <if test="equipmentTypeName != null and equipmentTypeName != ''"> and equipment_type_name like concat('%', #{equipmentTypeName}, '%')</if> |
| | | <if test="workshopCode != null and workshopCode != ''"> and workshop_code = #{workshopCode}</if> |
| | | <if test="lineCode != null and lineCode != ''"> and line_code = #{lineCode}</if> |
| | | <if test="processes != null and processes != ''"> and processes = #{processes}</if> |
| | | <if test="processesName != null and processesName != ''"> and processes_name like concat('%', #{processesName}, '%')</if> |
| | | <if test="processesCode != null and processesCode != ''"> and processes_code = #{processesCode}</if> |
| | | <if test="status != null and status != ''"> and status = #{status}</if> |
| | | <if test="createUser != null and createUser != ''"> and create_user = #{createUser}</if> |
| | | <if test="updateUser != null and updateUser != ''"> and update_user = #{updateUser}</if> |
| | |
| | | <if test="equipmentTypeName != null">equipment_type_name,</if> |
| | | <if test="workshopCode != null">workshop_code,</if> |
| | | <if test="lineCode != null">line_code,</if> |
| | | <if test="processes != null">processes,</if> |
| | | <if test="processesName != null and processesName != ''">processes_name,</if> |
| | | <if test="processesCode != null">processes_code,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="createUser != null">create_user,</if> |
| | |
| | | <if test="equipmentTypeName != null">#{equipmentTypeName},</if> |
| | | <if test="workshopCode != null">#{workshopCode},</if> |
| | | <if test="lineCode != null">#{lineCode},</if> |
| | | <if test="processes != null">#{processes},</if> |
| | | <if test="processesCode != null">#{processesCode},</if> |
| | | <if test="processesName != null and processesName != ''">#{processesName},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="createUser != null">#{createUser},</if> |
| | |
| | | <if test="equipmentTypeName != null">equipment_type_name = #{equipmentTypeName},</if> |
| | | <if test="workshopCode != null">workshop_code = #{workshopCode},</if> |
| | | <if test="lineCode != null">line_code = #{lineCode},</if> |
| | | <if test="processes != null">processes = #{processes},</if> |
| | | <if test="processesCode != null">processes_code = #{processesCode},</if> |
| | | <if test="processesName != null and processesName != ''">processes_name = #{processesName},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="createUser != null">create_user = #{createUser},</if> |
| | |
| | | store, |
| | | render: h => h(App) |
| | | }) |
| | | //ip验证 |
| | | Vue.directive('ipAddressValidator', { |
| | | bind(el, binding, vnode) { |
| | | el.addEventListener('input', () => { |
| | | const value = el.value; |
| | | // IPv4 address validation |
| | | if (/^((\d{1,2}|1\d{2}|2[0-4]\d|25[0-5])(\.((\d{1,2}|1\d{2}|2[0-4]\d|25[0-5]))){3})$/.test(value)) { |
| | | console.log("Valid IPv4 Address"); |
| | | } else if (!/(^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$)|(^(?:(?:[\x00-\x7F]|[\u0391-\uFFEF])+)(?:\.[a-zA-Z0-9]+)*$)/i.test(value)) { |
| | | console.log("Invalid IPv4 or IPv6 Address"); |
| | | } else { |
| | | console.log("Valid IPv6 Address"); |
| | | } |
| | | }); |
| | | }, |
| | | }); |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-card class="box-card"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="产品编码" prop="productCode"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px"> |
| | | <el-form-item label="总成序列号" prop="sfcCode"> |
| | | <el-input |
| | | v-model="queryParams.productCode" |
| | | placeholder="请输入产品编码" |
| | | v-model="queryParams.sfcCode" |
| | | placeholder="请输入总成序列号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="产品名称" prop="productName"> |
| | | <el-form-item label="工单编号" prop="workOrderNo"> |
| | | <el-input |
| | | v-model="queryParams.productName" |
| | | placeholder="请输入产品名称" |
| | | v-model="queryParams.workOrderNo" |
| | | placeholder="请输入工单编号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="工序编号" prop="processesCode"> |
| | | <el-input |
| | | v-model="queryParams.processesCode" |
| | | placeholder="请输入工序编号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button type="warning" icon="el-icon-copy-document" size="mini" @click="advancedQuery">高级查询</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form :model="queryParams" ref="queryParams" size="small" :inline="true" v-show="advancedShowSearch" label-width="100px"> |
| | | <el-form-item label="参数集编码" prop="parameterSetCode"> |
| | | <el-input |
| | | v-model="queryParams.parameterSetCode" |
| | | placeholder="请输入参数集编码" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="参数编码" prop="paramCode"> |
| | | <el-input |
| | | v-model="queryParams.paramCode" |
| | | placeholder="请输入参数编码" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="参数类型" prop="type"> |
| | | <el-input |
| | | v-model="queryParams.type" |
| | | placeholder="请输入参数类型" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="采集时间" prop="collectionTime"> |
| | | <el-date-picker clearable |
| | | v-model="queryParams.collectionTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择采集时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | </el-form> |
| | | </el-card> |
| | |
| | | |
| | | <el-table v-loading="loading" border :data="paramCollectionList" @selection-change="handleSelectionChange" v-if="paramCollectionList.length > 0"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="主键id" align="center" prop="id" /> |
| | | <el-table-column label="工单编号" align="center" prop="workOrderNo"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.workOrderNo"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="总成序列号" align="center" width="100" prop="sfcCode"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.sfcCode"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="产品编号" align="center" prop="productCode"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.productCode"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="产线编号" align="center" prop="productionLine"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.productionLine"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="工位编号" align="center" prop="locationCode"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.locationCode"/>--> |
| | | <!-- </template>--> |
| | | <el-table-column label="工序编号" align="center" prop="processesCode"> |
| | | </el-table-column> |
| | | <el-table-column label="设备编号" align="center" prop="equipmentNo"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.equipmentNo"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="参数编码" align="center" prop="paramCode"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.paramCode"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="参数值" align="center" prop="paramValue"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.paramValue"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="参数上限" align="center" prop="paramUpper"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.paramUpper"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="参数下限" align="center" prop="paramLower"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.paramLower"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="标准值" align="center" prop="paramStandard"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.paramStandard"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="采集时间" align="center" prop="collectionTime" width="180"> |
| | | <template slot-scope="scope"> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="状态" align="center" prop="state"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.state"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="参数名称" align="center" prop="paramName"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.paramName"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="单位" align="center" prop="unit"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.unit"/>--> |
| | | <!-- </template>--> |
| | | </el-table-column> |
| | | <el-table-column label="类型" align="center" prop="type"> |
| | | <!-- <template slot-scope="scope">--> |
| | | <!-- <dict-tag :options="dict.type.${column.dictType}" :value="scope.row.type"/>--> |
| | | <!-- </template>--> |
| | | <el-table-column label="参数类型" align="center" prop="type"> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" > |
| | | <el-table-column fixed="right" label="操作" width="200" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | type="success" |
| | | style="width: 72px" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['main:paramCollection:edit']" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | type="danger" |
| | | style="width: 72px" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['main:paramCollection:remove']" |
| | |
| | | /> |
| | | |
| | | <!-- 添加或修改设备产品过程参数采集对话框 --> |
| | | <el-dialog v-dialogpop-up :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-dialog v-dialogpop-up :title="title" :visible.sync="open" width="600px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
| | | <el-form-item label="工单编号" prop="workOrderNo"> |
| | | <el-input v-model="form.workOrderNo" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.workOrderNo" placeholder="请输入工单编号" /> |
| | | </el-form-item> |
| | | <el-form-item label="总成序列号" prop="sfcCode"> |
| | | <el-input v-model="form.sfcCode" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.sfcCode" placeholder="请输入总成序列号" /> |
| | | </el-form-item> |
| | | <el-form-item label="产品编号" prop="productCode"> |
| | | <el-input v-model="form.productCode" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.productCode" placeholder="请输入产品编号" /> |
| | | </el-form-item> |
| | | <el-form-item label="产线编号" prop="productionLine"> |
| | | <el-input v-model="form.productionLine" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.productionLine" placeholder="请输入产线编号" /> |
| | | </el-form-item> |
| | | <el-form-item label="工位编号" prop="locationCode"> |
| | | <el-input v-model="form.locationCode" type="textarea" placeholder="请输入内容" /> |
| | | <el-form-item label="工序编号" prop="processesCode"> |
| | | <el-input v-model="form.processesCode" placeholder="请输入工序编号" /> |
| | | </el-form-item> |
| | | <el-form-item label="设备编号" prop="equipmentNo"> |
| | | <el-input v-model="form.equipmentNo" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.equipmentNo" placeholder="请输入设备编号" /> |
| | | </el-form-item> |
| | | <el-form-item label="参数编码" prop="paramCode"> |
| | | <el-input v-model="form.paramCode" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.paramCode" placeholder="请输入参数编码" /> |
| | | </el-form-item> |
| | | <el-form-item label="参数值" prop="paramValue"> |
| | | <el-input v-model="form.paramValue" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.paramValue" placeholder="请输入参数值" /> |
| | | </el-form-item> |
| | | <el-form-item label="参数上限" prop="paramUpper"> |
| | | <el-input v-model="form.paramUpper" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.paramUpper" placeholder="请输入参数上限" /> |
| | | </el-form-item> |
| | | <el-form-item label="参数下限" prop="paramLower"> |
| | | <el-input v-model="form.paramLower" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.paramLower" placeholder="请输入参数下限" /> |
| | | </el-form-item> |
| | | <el-form-item label="标准值" prop="paramStandard"> |
| | | <el-input v-model="form.paramStandard" type="textarea" placeholder="请输入内容" /> |
| | | <el-input v-model="form.paramStandard" placeholder="请输入标准值" /> |
| | | </el-form-item> |
| | | <el-form-item label="采集时间" prop="collectionTime"> |
| | | <el-date-picker clearable |
| | |
| | | placeholder="请选择采集时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="预留字段1" prop="spareField1">--> |
| | | <!-- <el-input v-model="form.spareField1" type="textarea" placeholder="请输入内容" />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="预留字段2" prop="spareField2">--> |
| | | <!-- <el-input v-model="form.spareField2" type="textarea" placeholder="请输入内容" />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="创建用户" prop="createUser">--> |
| | | <!-- <el-input v-model="form.createUser" type="textarea" placeholder="请输入内容" />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="更改用户" prop="updateUser">--> |
| | | <!-- <el-input v-model="form.updateUser" type="textarea" placeholder="请输入内容" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="状态" prop="state"> |
| | | <el-input v-model="form.state" placeholder="请输入状态" /> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="单位" prop="unit"> |
| | | <el-input v-model="form.unit" placeholder="请输入单位" /> |
| | | </el-form-item> |
| | | <el-form-item label="类型" prop="type"> |
| | | <el-form-item label="参数类型" prop="type"> |
| | | <el-select v-model="form.type" placeholder="请选择类型"> |
| | | <!-- <el-option--> |
| | | <!-- v-for="dict in dict.type.${dictType}"--> |
| | | <!-- :key="dict.value"--> |
| | | <!-- :label="dict.label"--> |
| | | <!-- :value="dict.value"--> |
| | | <!-- ></el-option>--> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | total: 0, |
| | | // 设备产品过程参数采集表格数据 |
| | | paramCollectionList: [], |
| | | advancedShowSearch: false, |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | |
| | | this.getList(); |
| | | }, |
| | | methods: { |
| | | advancedQuery(){ |
| | | this.advancedShowSearch = (this.advancedShowSearch) ? this.advancedShowSearch = false : this.advancedShowSearch = true; |
| | | }, |
| | | /** 查询设备产品过程参数采集列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="status"> |
| | | <el-select v-model="queryParams.status" placeholder="请选择状态" clearable> |
| | | <el-option |
| | | v-for="dict in dict.type.sys_normal_disable" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item style="float: right"> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="设备编码" align="center" prop="equipmentCode"/> |
| | | <el-table-column label="设备名称" align="center" prop="equipmentName"/> |
| | | <el-table-column label="状态" align="center" prop="status" width="80"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.sys_normal_disable" :value="scope.row.status"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="工序编号" align="center" prop="processesCode"/> |
| | | <el-table-column label="品牌" align="center" prop="equipmentBrand"/> |
| | | <el-table-column label="规格型号" align="center" prop="equipmentSpec"/> |
| | | <el-table-column label="车间编码" align="center" prop="workshopCode"/> |
| | |
| | | <el-form-item label="设备名称" prop="equipmentName"> |
| | | <el-input v-model="form.equipmentName" placeholder="请输入设备名称" /> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="status"> |
| | | <el-radio-group v-model="form.status"> |
| | | <el-radio |
| | | v-for="dict in dict.type.sys_normal_disable" |
| | | :key="dict.value" |
| | | :label="dict.value" |
| | | >{{dict.label}}</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="工序编号" prop="processesCode"> |
| | | <el-select style="width: 100%" @change="handleSelectChangeprocessesCode(form.processesCode)" v-model="form.processesCode" placeholder="请选择工序编号"> |
| | | <el-option |
| | | v-for="item in processesCodeoptions" |
| | | :key="item.index" |
| | | :label="item.processesCode" |
| | | :value="item.processesCode"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="品牌" prop="equipmentBrand"> |
| | | <el-input v-model="form.equipmentBrand" placeholder="请输入品牌" /> |
| | | </el-form-item> |
| | |
| | | import {listLineInfo} from "@/api/main/bs/lineInfo/lineInfo"; |
| | | import ItemSelect from "@/components/itemSelect/single.vue"; |
| | | import {listProductionOrde} from "@/api/main/om/productionOrde/productionOrde"; |
| | | import {listProcesses} from "@/api/main/bs/processes/processes"; |
| | | |
| | | export default { |
| | | name: "EquipmentArchives", |
| | | dicts: ['sys_normal_disable'], |
| | | components: { |
| | | ItemSelect , |
| | | }, |
| | |
| | | return { |
| | | // 遮罩层 |
| | | lineOptions: [], |
| | | processesCodeoptions:[], |
| | | options: [], |
| | | loading: true, |
| | | titleName: "", |
| | |
| | | equipmentTypeName: null, |
| | | workshopCode: null, |
| | | lineCode: null, |
| | | processes: null, |
| | | processesCode: null, |
| | | status: null, |
| | | createUser: null, |
| | | updateUser: null, |
| | |
| | | spareField2: null, |
| | | spareField3: null, |
| | | spareField4: null |
| | | }, |
| | | processesCodeQueryParams:{ |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | processesCodes: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | |
| | | created() { |
| | | this.getList(); |
| | | this.initWorkshop(); |
| | | this.initProcesses(); |
| | | |
| | | }, |
| | | methods: { |
| | |
| | | this.lineOptions = response.rows; |
| | | }); |
| | | }, |
| | | handleSelectChangeprocessesCode(selectedOption) { |
| | | this.processesCodeQueryParams.processesCodes = selectedOption; |
| | | listProcesses(this.queryParams).then(response => { |
| | | this.form.processesName = response.rows[0].processesName; |
| | | }); |
| | | }, |
| | | initProcesses(){ |
| | | listProcesses(this.queryParams).then(response => { |
| | | this.processesCodeoptions = response.rows; |
| | | }); |
| | | }, |
| | | getList() { |
| | | // this.$modal.msgSuccess("修改成功"); |
| | | console.log(this.queryParams) |
| | | this.loading = true; |
| | | listEquipmentArchives(this.queryParams).then(response => { |
| | |
| | | equipmentTypeName: null, |
| | | workshopCode: null, |
| | | lineCode: null, |
| | | processes: null, |
| | | status: null, |
| | | processesCode: null, |
| | | status: "0", |
| | | remark: null, |
| | | createUser: null, |
| | | createTime: null, |