fix(form): 移除工序选择验证并更新样式配置
This commit is contained in:
parent
ba7f7b1de1
commit
58650bccee
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
// 已修改但未暂存的文件:亮橙色,加粗
|
// 已修改但未暂存的文件:鲜红色,非常明显
|
||||||
"gitDecoration.modifiedResourceForeground": "#FFA500",
|
"gitDecoration.modifiedResourceForeground": "#FF0000",
|
||||||
// 已暂存的文件:亮绿色
|
// 已暂存的文件:亮绿色
|
||||||
"gitDecoration.stageModifiedResourceForeground": "#7FFF00",
|
"gitDecoration.stageModifiedResourceForeground": "#7FFF00",
|
||||||
// 新增但未追踪的文件:亮青色
|
// 新增但未追踪的文件:亮青色
|
||||||
|
|||||||
@ -44,7 +44,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<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>
|
<el-button @click="handleClose">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -73,7 +73,13 @@ export default {
|
|||||||
procList: []
|
procList: []
|
||||||
},
|
},
|
||||||
dataRule: {
|
dataRule: {
|
||||||
|
techProc: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: '请选择工序生成工艺流程',
|
||||||
|
trigger: 'change',
|
||||||
|
},
|
||||||
|
],
|
||||||
enabledStatus: [
|
enabledStatus: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
@ -93,10 +99,6 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
// 判断是否有选中的工序
|
|
||||||
hasSelectedProcs() {
|
|
||||||
return this.selectedProcs && this.selectedProcs.length > 0;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getProcList();
|
this.getProcList();
|
||||||
|
|||||||
@ -3,11 +3,11 @@
|
|||||||
<div class="JNPF-common-layout-center">
|
<div class="JNPF-common-layout-center">
|
||||||
<el-row class="JNPF-common-search-box" :gutter="14">
|
<el-row class="JNPF-common-search-box" :gutter="14">
|
||||||
<el-form @submit.native.prevent>
|
<el-form @submit.native.prevent>
|
||||||
<el-col :span="6">
|
<!-- <el-col :span="6">
|
||||||
<el-form-item label="工艺流程">
|
<el-form-item label="工艺流程">
|
||||||
<el-input v-model="query.techProc" placeholder="请输入" clearable></el-input>
|
<el-input v-model="query.techProc" placeholder="请输入" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="状态">
|
<el-form-item label="状态">
|
||||||
<JnpfSelect v-model="query.enabledStatus" placeholder="请选择" clearable :options="enabledStatusOptions"
|
<JnpfSelect v-model="query.enabledStatus" placeholder="请选择" clearable :options="enabledStatusOptions"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user