diff --git a/src/views/EquipmentEntryApply/equipmentInput/add.vue b/src/views/EquipmentEntryApply/equipmentInput/add.vue index 2224f8ee..28942a14 100644 --- a/src/views/EquipmentEntryApply/equipmentInput/add.vue +++ b/src/views/EquipmentEntryApply/equipmentInput/add.vue @@ -44,6 +44,8 @@ style="width: 100%" v-model="form.process" placeholder="请选择工序" + clearable + filterable :options="processList" @change="processChange" > @@ -55,6 +57,8 @@ style="width: 100%" v-model="form.category" :options="categoryList" + clearable + filterable placeholder="请选择装备类目" @change="categoryChange" > @@ -124,6 +128,11 @@ value-format="yyyy-MM-dd" type="date" style="width: 100%" + :picker-options="{ + disabledDate(time) { + return time.getTime() < Date.now() + }, + }" > @@ -266,7 +275,7 @@ - + 单点 + .replace(/^(\d+)\.(.*)\./, '$1.$2'); // 只允许一个点 }, // 处理图片上传变化 handleImageChange(files) { @@ -629,10 +641,10 @@ export default { // 判断特征项是否填写 propertyVoList 每个propertyValue 都要有值 if (this.propertyVoList && this.propertyVoList.length > 0) { const unfilledIndex = this.propertyVoList.findIndex( - (item) => !item.propertyValue || item.propertyValue === '', + (item) => (!item.propertyValue || item.propertyValue === '') && item.mustHave != '0', ) if (unfilledIndex !== -1) { - this.$message.warning(`请填写第 ${unfilledIndex + 1} 个特征项`) + this.$message.warning(`第 ${unfilledIndex + 1} 个特征项为必填项,请填写完整`) return } } @@ -770,4 +782,7 @@ export default { justify-content: flex-end; gap: 10px; // 按钮间距 } +::v-deep .el-input-number.is-without-controls .el-input__inner { + text-align: left; +} diff --git a/src/views/EquipmentEntryApply/equipmentInput/index.vue b/src/views/EquipmentEntryApply/equipmentInput/index.vue index f4b45333..8cf0192a 100644 --- a/src/views/EquipmentEntryApply/equipmentInput/index.vue +++ b/src/views/EquipmentEntryApply/equipmentInput/index.vue @@ -150,7 +150,6 @@ align="center" width="55" type="index" - fixed :index="(index) => (queryParams.pageNum - 1) * queryParams.pageSize + index + 1" >