fix(form): 移除工序选择验证并更新样式配置

This commit is contained in:
zxy 2026-04-14 16:44:40 +08:00
parent ba7f7b1de1
commit 58650bccee
3 changed files with 12 additions and 10 deletions

View File

@ -1,6 +1,6 @@
{
//
"gitDecoration.modifiedResourceForeground": "#FFA500",
//
"gitDecoration.modifiedResourceForeground": "#FF0000",
// 绿
"gitDecoration.stageModifiedResourceForeground": "#7FFF00",
//

View File

@ -44,7 +44,7 @@
</template>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading" :disabled="!hasSelectedProcs"> </el-button>
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading"> </el-button>
<el-button @click="handleClose"> </el-button>
</div>
</el-dialog>
@ -73,7 +73,13 @@ export default {
procList: []
},
dataRule: {
techProc: [
{
required: true,
message: '请选择工序生成工艺流程',
trigger: 'change',
},
],
enabledStatus: [
{
required: true,
@ -93,10 +99,6 @@ export default {
},
computed: {
...mapGetters(['userInfo']),
//
hasSelectedProcs() {
return this.selectedProcs && this.selectedProcs.length > 0;
},
},
created() {
this.getProcList();

View File

@ -3,11 +3,11 @@
<div class="JNPF-common-layout-center">
<el-row class="JNPF-common-search-box" :gutter="14">
<el-form @submit.native.prevent>
<el-col :span="6">
<!-- <el-col :span="6">
<el-form-item label="工艺流程">
<el-input v-model="query.techProc" placeholder="请输入" clearable></el-input>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="6">
<el-form-item label="状态">
<JnpfSelect v-model="query.enabledStatus" placeholder="请选择" clearable :options="enabledStatusOptions"