Browse Source

盘点执行周期显示,验证问题。,搜索按钮样式问题

master_hella_20240701
zhang_li 5 months ago
parent
commit
082db12762
  1. 3
      src/components/Form/src/Form.vue
  2. 6
      src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts
  3. 28
      src/views/wms/countManage/count/countPlanMain/index.vue

3
src/components/Form/src/Form.vue

@ -458,7 +458,8 @@ export default defineComponent({
<style lang="scss" scoped>
.myInput {
width: calc(100% - 46px);
width: 0;
flex: 1
}
.#{$elNamespace}-form.#{$namespace}-form .#{$elNamespace}-row {
margin-right: 0 !important;

6
src/views/wms/countManage/count/countPlanMain/countPlanMain.data.ts

@ -49,10 +49,14 @@ export const CountPlanMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '执行周期',
field: 'crontab',
sort: 'custom',
isForm:false,
table: {
width: 150
},
form:{
componentProps:{
disabled:true
}
}
},
{
label: '维度',

28
src/views/wms/countManage/count/countPlanMain/index.vue

@ -569,17 +569,29 @@ const selectChange = (field, val) => {
if (field == 'type') {
//
if (val == 'CYCLE') {
CountPlanMain.allSchemas.formSchema.splice(1,0,{
component: "Input",
componentProps: {},
field:"crontab",
label:"执行周期",
value:""
})
// CountPlanMain.allSchemas.formSchema.splice(1,0,{
// component: "Input",
// componentProps: {},
// field:"crontab",
// label:"",
// value:""
// })
console.log(CountPlanMain.allSchemas.formSchema)
CountPlanMain.allSchemas.formSchema.forEach(item=>{
if(item.field == 'crontab'){
item.componentProps.disabled = false
}
})
CountPlanMainRules.crontab[0].required = true
}else{
CountPlanMain.allSchemas.formSchema.splice(1,1)
CountPlanMainRules.crontab[0].required = false
CountPlanMain.allSchemas.formSchema.forEach(item=>{
if(item.field == 'crontab'){
item.componentProps.disabled = true
}
})
// CountPlanMain.allSchemas.formSchema.splice(1,1)
}
if (val == 'DYNAMIC') {

Loading…
Cancel
Save