Browse Source

BUG修改

master
parent
commit
9bfd77ae99
  1. 4
      src/api/eam/item/applicationRecordMain/index.ts
  2. 10
      src/components/Detail/src/approveDetail.vue
  3. 6
      src/views/eam/basic/locationArea/locationArea.data.ts
  4. 7
      src/views/eam/item/applicationRecord/index.vue

4
src/api/eam/item/applicationRecordMain/index.ts

@ -48,12 +48,12 @@ export const deleteApplicationRecordMain = async (id: number) => {
// 审批通过备件申领记录主 // 审批通过备件申领记录主
export const agreeApplicationRecordMain = async (id: number) => { export const agreeApplicationRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/item-apply-request-main/agree?id=` + id }) return await request.get({ url: `/eam/item-apply-request-main/agree?id=` + id })
} }
// 审批驳回备件申领记录主 // 审批驳回备件申领记录主
export const disAgreeApplicationRecordMain = async (id: number) => { export const disAgreeApplicationRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/item-apply-request-main/disAgree?id=` + id }) return await request.get({ url: `/eam/item-apply-request-main/disAgree?id=` + id })
} }
// 导出备件申领记录主 Excel // 导出备件申领记录主 Excel

10
src/components/Detail/src/approveDetail.vue

@ -373,12 +373,12 @@
} }
else if (val == 'agree') { else if (val == 'agree') {
// //
agree() agree(detailData.value.id)
} }
else if (val == 'disAgree') { else if (val == 'disAgree') {
// //
disAgree() disAgree(detailData.value.id)
} }
// else if (val == 'disagree') { // else if (val == 'disagree') {
// // // //
@ -399,9 +399,10 @@
await props.apiAgree(id) await props.apiAgree(id)
message.success(t('common.success')) message.success(t('common.success'))
// //
await getList() isShowDrawer.value = false
updateKey.value += 1 updateKey.value += 1
setBeiJian() setBeiJian()
emit('agree')
} catch { } } catch { }
} }
@ -415,9 +416,10 @@
await props.apiDisAgree(id) await props.apiDisAgree(id)
message.success(t('common.success')) message.success(t('common.success'))
// //
await getList() isShowDrawer.value = false
updateKey.value += 1 updateKey.value += 1
setBeiJian() setBeiJian()
emit('agree')
} catch { } } catch { }
} }

6
src/views/eam/basic/locationArea/locationArea.data.ts

@ -3,6 +3,10 @@ import { dateFormatter } from '@/utils/formatTime'
// 表单校验 // 表单校验
export const LocationAreaRules = reactive({ export const LocationAreaRules = reactive({
number: [
{ required: true, message: '请输入库区编号', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
name: [ name: [
{ required: true, message: '请输入库区名称', trigger: 'blur' }, { required: true, message: '请输入库区名称', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
@ -15,7 +19,7 @@ export const LocationArea = useCrudSchemas(reactive<CrudSchema[]>([
field: 'number', field: 'number',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isForm: false, isForm: true,
table: { table: {
width: 180, width: 180,
fixed: 'left' fixed: 'left'

7
src/views/eam/item/applicationRecord/index.vue

@ -50,7 +50,8 @@
:apiAgree="ApplicationRecordMainApi.agreeApplicationRecordMain" :apiAgree="ApplicationRecordMainApi.agreeApplicationRecordMain"
:apiDisAgree="ApplicationRecordMainApi.disAgreeApplicationRecordMain" :apiDisAgree="ApplicationRecordMainApi.disAgreeApplicationRecordMain"
:apiPage="ApplicationRecordDetailApi.getApplicationRecordDetailPage" :apiPage="ApplicationRecordDetailApi.getApplicationRecordDetailPage"
@searchTableSuccessDetail="searchTableSuccessDetail" /> @searchTableSuccessDetail="searchTableSuccessDetail"
@agree="getList"/>
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/purchase-main/import" :importTemplateData="importTemplateData" <ImportForm ref="importFormRef" url="/wms/purchase-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" :isShowOut="true" :updateIsDisable="true" :coverIsDisable="true" :mode="2" /> @success="importSuccess" :isShowOut="true" :updateIsDisable="true" :coverIsDisable="true" :mode="2" />
@ -180,7 +181,7 @@
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
openForm('update', row) openForm('update', row)
} else if (val == 'approve') { // } else if (val == 'approve') { //
handleApprove(row, '单据号', row.number) handleApprove(row, '单据号', row.number)
} else if (val == 'delete') { // } else if (val == 'delete') { //
handleDelete(row.id) handleDelete(row.id)
@ -202,6 +203,8 @@
const detailRef1 = ref() const detailRef1 = ref()
const handleApprove = (row : any, titleName : any, titleValue : any) => { const handleApprove = (row : any, titleName : any, titleValue : any) => {
detailRef1.value.openDetail(row, titleName, titleValue, 'basicApplicationRecordMain') detailRef1.value.openDetail(row, titleName, titleValue, 'basicApplicationRecordMain')
//
getList()
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

Loading…
Cancel
Save