Merge branch 'master' of http://192.168.1.110:5678/r/pms-upgrade into yaozc
| | |
| | | @ApiModelProperty(value = "用户昵称") |
| | | private String nickName; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "电话号码") |
| | | @ApiModelProperty(value = "生日") |
| | | private Timestamp birthday; |
| | | |
| | | @Email |
| | |
| | | @ApiModelProperty(value = "电话号码") |
| | | private String phone; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "住址") |
| | | private String address; |
| | | |
| | | @NotBlank |
| | | @ApiModelProperty(value = "钉钉号") |
| | | private String dingding; |
| | | |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="requirement" label="需求说明" width="140" /> |
| | | <el-table-column :show-overflow-tooltip="true" prop="contractPrice" label="合同总金额" width="100"> |
| | | <el-table-column v-if="userRolesLevelMin != roleLevelOrdinary" :show-overflow-tooltip="true" prop="contractPrice" label="合同总金额" width="100"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.contractPrice != null && scope.row.contractPrice != '' ? crud.toMoney(scope.row.contractPrice) : '' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column :show-overflow-tooltip="true" prop="totalTaskTime" label="任务总工时" width="100" /> |
| | | <el-table-column label="报价"> |
| | | <el-table-column v-if="userRolesLevelMin != roleLevelOrdinary" label="报价"> |
| | | <el-table-column :show-overflow-tooltip="true" prop="quotationPrice" label="单金" width="100"> |
| | | <template slot-scope="scope"> |
| | | {{ crud.toMoney(scope.row.quotationPrice) }} |
| | |
| | | import crudOperation from '@crud/CRUD.operation' |
| | | import udOperation from '@crud/UD.operation' |
| | | import pagination from '@crud/Pagination' |
| | | import { mapGetters } from 'vuex' |
| | | import moneyInput from '../../assembly/moneyInput/index.vue' |
| | | import constant from '../../../utils/constant' |
| | | |
| | |
| | | approveStatus: constant.APPROVE_STATUS, |
| | | // 项目区分 |
| | | projectDistinguish: constant.PROJECT_DISTINGUISH, |
| | | // 角色级别:普通用户 |
| | | roleLevelOrdinary: constant.ROLE_LEVEL_ORDINARY, |
| | | // 用户最大角色级别 |
| | | userRolesLevelMin: null, |
| | | // 随机数 |
| | | random: 0, |
| | | // 项目类型列表 |
| | |
| | | disabledFlagByApprove: false |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters([ |
| | | 'user' |
| | | ]) |
| | | }, |
| | | methods: { |
| | | // 钩子:在获取表格数据之前执行,false 则代表不获取数据 |
| | | [CRUD.HOOK.beforeRefresh]() { |
| | | // 用户角色级别数组 |
| | | const userRolesLevel = this.user.roles.map(({ level }) => level) |
| | | // 用户最大角色级别 |
| | | this.userRolesLevelMin = Math.min(...userRolesLevel) |
| | | // 获取项目类型 |
| | | this.getPackageTypeAll() |
| | | // 获取责任人 |
| | |
| | | phone: [ |
| | | { required: true, trigger: 'blur', validator: validPhone } |
| | | ], |
| | | birthday: [ |
| | | { required: true, message: '请选择生日', trigger: 'change' } |
| | | ], |
| | | 'sysRostering.id': [ |
| | | { required: true, message: '请选择排班', trigger: 'change' } |
| | | ], |
| | |
| | | { required: true, message: '请选择级别', trigger: 'change' } |
| | | ], |
| | | dingding: [ |
| | | { required: true, message: '请输入钉钉号', trigger: 'blur' }, |
| | | { min: 2, max: 20, message: '长度在 2 到 20 个字符', trigger: 'blur' } |
| | | ], |
| | | address: [ |
| | | { required: true, message: '请输入住址', trigger: 'blur' }, |
| | | { min: 2, max: 100, message: '长度在 2 到 100 个字符', trigger: 'blur' } |
| | | ] |
| | | }, |