|
@ -307,7 +307,7 @@ const buttonTableClick = async (val, row) => { |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('打开成功')) |
|
|
message.success(t('打开成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
buttonBaseClick('refresh',null) |
|
|
buttonBaseClick('refresh', null) |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -321,7 +321,7 @@ const buttonTableClick = async (val, row) => { |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('关闭成功')) |
|
|
message.success(t('关闭成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
buttonBaseClick('refresh',null) |
|
|
buttonBaseClick('refresh', null) |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -334,7 +334,7 @@ const buttonTableClick = async (val, row) => { |
|
|
await CountPlanMainApi.submit(row.id) |
|
|
await CountPlanMainApi.submit(row.id) |
|
|
message.success(t('提交审批成功')) |
|
|
message.success(t('提交审批成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
buttonBaseClick('refresh',null) |
|
|
buttonBaseClick('refresh', null) |
|
|
} else if (val == 'mainPlanTur') { |
|
|
} else if (val == 'mainPlanTur') { |
|
|
// 驳回 |
|
|
// 驳回 |
|
|
await message.confirm('确认要驳回吗?') |
|
|
await message.confirm('确认要驳回吗?') |
|
@ -343,7 +343,7 @@ const buttonTableClick = async (val, row) => { |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('驳回成功')) |
|
|
message.success(t('驳回成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
buttonBaseClick('refresh',null) |
|
|
buttonBaseClick('refresh', null) |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -357,7 +357,7 @@ const buttonTableClick = async (val, row) => { |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('审批已通过')) |
|
|
message.success(t('审批已通过')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
buttonBaseClick('refresh',null) |
|
|
buttonBaseClick('refresh', null) |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -371,7 +371,7 @@ const buttonTableClick = async (val, row) => { |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('发布成功')) |
|
|
message.success(t('发布成功')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
buttonBaseClick('refresh',null) |
|
|
buttonBaseClick('refresh', null) |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -385,7 +385,7 @@ const buttonTableClick = async (val, row) => { |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
message.success(t('common.updateSuccess')) |
|
|
message.success(t('common.updateSuccess')) |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
buttonBaseClick('refresh',null) |
|
|
buttonBaseClick('refresh', null) |
|
|
}) |
|
|
}) |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
@ -401,6 +401,22 @@ const buttonTableClick = async (val, row) => { |
|
|
} |
|
|
} |
|
|
const onChange = (field, value) => { |
|
|
const onChange = (field, value) => { |
|
|
console.log(field, value) |
|
|
console.log(field, value) |
|
|
|
|
|
if (field == 'isOpenCount') { |
|
|
|
|
|
if (value == 'FALSE') { |
|
|
|
|
|
CountPlanMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'countSplitType') { |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
formRef.value.formRef.formModel.countSplitType = 'masterId' |
|
|
|
|
|
} else { |
|
|
|
|
|
CountPlanMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'countSplitType') { |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const formRef = ref() |
|
|
const formRef = ref() |
|
@ -435,6 +451,13 @@ const openForm = async (type: string, row?: any) => { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
if (type == 'create') { |
|
|
|
|
|
CountPlanMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'countSplitType') { |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
|
|
|
|
|
|
// Promise.all([getOwnerAllList(), |
|
|
// Promise.all([getOwnerAllList(), |
|
@ -458,7 +481,7 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
// getAreaAllList() |
|
|
// getAreaAllList() |
|
|
// getLocationgroupAllList() |
|
|
// getLocationgroupAllList() |
|
|
// getLocationAllList() |
|
|
// getLocationAllList() |
|
|
detailRef.value.openDetail(row, titleName, titleValue,"planCountMain") |
|
|
detailRef.value.openDetail(row, titleName, titleValue, 'planCountMain') |
|
|
} |
|
|
} |
|
|
// 详情打开的编辑的时候设置盘点范围值列表 |
|
|
// 详情打开的编辑的时候设置盘点范围值列表 |
|
|
const detailOpenForm = (type, row) => { |
|
|
const detailOpenForm = (type, row) => { |
|
@ -607,7 +630,7 @@ const handleDelete = async (id: number) => { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
message.success(t('common.delSuccess')) |
|
|
message.success(t('common.delSuccess')) |
|
|
// 刷新列表 |
|
|
// 刷新列表 |
|
|
buttonBaseClick('refresh',null) |
|
|
buttonBaseClick('refresh', null) |
|
|
} finally { |
|
|
} finally { |
|
|
tableObject.loading = false |
|
|
tableObject.loading = false |
|
|
} |
|
|
} |
|
@ -693,8 +716,8 @@ const submitForm = async (formType, data) => { |
|
|
// 刷新当前列表 |
|
|
// 刷新当前列表 |
|
|
if (formType === 'create') { |
|
|
if (formType === 'create') { |
|
|
getList() |
|
|
getList() |
|
|
}else{ |
|
|
} else { |
|
|
buttonBaseClick('refresh',null) |
|
|
buttonBaseClick('refresh', null) |
|
|
} |
|
|
} |
|
|
} finally { |
|
|
} finally { |
|
|
formRef.value.formLoading = false |
|
|
formRef.value.formLoading = false |
|
|