Compare commits

...

4 Commits

7 changed files with 26 additions and 9 deletions

View File

@ -61,4 +61,7 @@ public class CustomerInfoRespVO {
@ExcelProperty("备注") @ExcelProperty("备注")
private String remark; private String remark;
@Schema(description = "租户id")
private Long tenantId;
} }

View File

@ -30,6 +30,7 @@ public interface EquipInfoMapper extends BaseMapperX<EquipInfoDO> {
.likeIfPresent(EquipInfoDO::getEquipName, reqVO.getEquipName()) .likeIfPresent(EquipInfoDO::getEquipName, reqVO.getEquipName())
.likeIfPresent(EquipInfoDO::getEquipNo, reqVO.getEquipNo()) .likeIfPresent(EquipInfoDO::getEquipNo, reqVO.getEquipNo())
.eqIfPresent(EquipInfoDO::getStatus, reqVO.getStatus()) .eqIfPresent(EquipInfoDO::getStatus, reqVO.getStatus())
.eqIfPresent(EquipInfoDO::getRunStatus, reqVO.getRunStatus())
.groupBy(EquipInfoDO::getCustomerId, EquipInfoDO::getModelId) .groupBy(EquipInfoDO::getCustomerId, EquipInfoDO::getModelId)
); );
} }

View File

@ -156,6 +156,15 @@ export default {
name: "CustomerInfoForm", name: "CustomerInfoForm",
components: {}, components: {},
data() { data() {
//
var validatePhoneNumber = (rule, value, callback) => {
const reg = /^1[3|4|5|6|7|8|9][0-9]{9}$/
if (!reg.test(value)) {
callback(new Error('请输入有效的手机号码'))
} else {
callback()
}
};
return { return {
areaTree: [], areaTree: [],
areaTreeData: [], areaTreeData: [],
@ -188,6 +197,10 @@ export default {
industryType: [ industryType: [
{ required: true, message: "请选择所属行业", trigger: "change" }, { required: true, message: "请选择所属行业", trigger: "change" },
], ],
contactPhone: [
{ required: true, message: '请输入手机号码', trigger: 'blur' },
{ validator: validatePhoneNumber, trigger: 'blur' }
],
}, },
tenantLists: [], tenantLists: [],

View File

@ -25,7 +25,7 @@
<el-input v-model="formData.remark" :rows="4" type="textarea" placeholder="请输入内容"/> <el-input v-model="formData.remark" :rows="4" type="textarea" placeholder="请输入内容"/>
</el-form-item> </el-form-item>
<el-form-item label="型号图片:" prop="modelPicPath"> <el-form-item label="型号图片:" prop="modelPicPath">
<ImageUpload v-model="formData.modelPicPath"/> <ImageUpload v-model="formData.modelPicPath" :limit="1"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">

View File

@ -212,12 +212,12 @@ export default {
this.formData.equipId, this.formData.equipId,
this.equipCascader this.equipCascader
); );
this.title = "修改机床组件信息"; this.dialogTitle = "修改机床组件信息";
} finally { } finally {
this.formLoading = false; this.formLoading = false;
} }
} }
this.title = "新增机床组件信息"; this.dialogTitle = "新增机床组件信息";
}, },
/** 提交按钮 */ /** 提交按钮 */
async submitForm() { async submitForm() {

View File

@ -146,7 +146,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="二维码图片"> <el-form-item label="二维码图片">
<ImageUpload v-model="formData.qrcodePicPath" /> <ImageUpload v-model="formData.qrcodePicPath" :limit="1"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div <div

View File

@ -58,7 +58,7 @@
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="机床状态" label="机床状态"
prop="status" prop="runStatus"
> >
<el-select <el-select
v-model="queryParams.status" v-model="queryParams.status"
@ -67,7 +67,7 @@
size="small" size="small"
> >
<el-option <el-option
v-for="dict in this.getDictDatas(DICT_TYPE.EQUIP_STATUS)" v-for="dict in this.getDictDatas(DICT_TYPE.EQUIP_RUN_STATUS)"
:key="dict.value" :key="dict.value"
:label="dict.label" :label="dict.label"
:value="dict.value" :value="dict.value"
@ -178,12 +178,12 @@
<el-table-column <el-table-column
label="机床状态" label="机床状态"
align="center" align="center"
prop="status" prop="runStatus"
> >
<template v-slot="scope"> <template v-slot="scope">
<dict-tag <dict-tag
:type="DICT_TYPE.EQUIP_STATUS" :type="DICT_TYPE.EQUIP_RUN_STATUS"
:value="scope.row.status" :value="scope.row.runStatus"
/> />
</template> </template>
</el-table-column> </el-table-column>