Browse Source

采购申请索赔

master
zhangli 1 year ago
parent
commit
49ff777511
  1. 6
      src/components/BasicForm/src/BasicForm.vue
  2. 2
      src/components/Detail/src/Detail.vue
  3. 6
      src/components/ImportForm/src/ImportForm.vue
  4. 7
      src/components/Search/src/Search.vue
  5. 92
      src/utils/disposition/tableColumns.ts

6
src/components/BasicForm/src/BasicForm.vue

@ -338,20 +338,14 @@ const handleTableSelect = (row, column, event) => {
// //
const handleDeleteTable = (row, index) => { const handleDeleteTable = (row, index) => {
console.log(row);
console.log(index);
emit('handleDeleteTable', row) emit('handleDeleteTable', row)
} }
// //
const handleAddTable = () => { const handleAddTable = () => {
console.log(2);
emit('handleAddTable') emit('handleAddTable')
} }
// //
const inpuFocus = (headerItem) => { const inpuFocus = (headerItem) => {
console.log(11);
opensearchTable() opensearchTable()
} }
</script> </script>

2
src/components/Detail/src/Detail.vue

@ -175,7 +175,6 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
detailLoading.value = true detailLoading.value = true
try { try {
detailData.value = row detailData.value = row
console.log(detailData.value);
getRemarkList() getRemarkList()
getChangeRecordList() getChangeRecordList()
@ -205,7 +204,6 @@ const remarksSubmitScuess = async (remark) => {
const getChangeRecordList = async () => { const getChangeRecordList = async () => {
// remarksData.data.tableId = '1679654720693248010' // remarksData.data.tableId = '1679654720693248010'
changeRecordData.changeRecordList = await DetailApi.getChangeRecordPage(remarksData.data) changeRecordData.changeRecordList = await DetailApi.getChangeRecordPage(remarksData.data)
console.log(changeRecordData.changeRecordList);
} }
</script> </script>

6
src/components/ImportForm/src/ImportForm.vue

@ -132,7 +132,6 @@ const updatePart = ref(props.updatePart)//是否部门保存
const importUrl = const importUrl =
import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + props.url import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + props.url
console.log(135, importUrl)
/** 打开弹窗 */ /** 打开弹窗 */
const open = () => { const open = () => {
dialogVisible.value = true dialogVisible.value = true
@ -231,11 +230,6 @@ const handleExceed = (): void => {
/** 下载模板操作 */ /** 下载模板操作 */
const importTemplate = () => { const importTemplate = () => {
const res = importTemplateData.value.templateUrl const res = importTemplateData.value.templateUrl
console.log(266,importTemplateData.value.templateUrl)
console.log(1);
console.log(res);
console.log(1);
download.excel(res, importTemplateData.value.templateTitle) download.excel(res, importTemplateData.value.templateTitle)
} }
</script> </script>

7
src/components/Search/src/Search.vue

@ -102,13 +102,6 @@ const setVisible = () => {
} }
const Search = ref() const Search = ref()
onMounted(() => { onMounted(() => {
// nextTick(() => {
// console.log(4)
// console.log(Search.value.offsetHeight)
// wsCache.set('SearchoffsetHeight', Search.value.offsetHeight)
// console.log(wsCache.get('SearchoffsetHeight'))
// console.log(4)
// })
}) })
</script> </script>

92
src/utils/disposition/tableColumns.ts

@ -1,5 +1,20 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index.ts'
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
pageSize:10,
pageNo:1,
code:'PurchaseClaimRequest'
}
const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
const requestsetting = data[0]
/** /**
* @returns {Array} * @returns {Array}
*/ */
@ -10556,16 +10571,30 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '单据号', label: '单据号',
field: 'number' field: 'number',
isForm:false,
}, },
{ {
label: '业务类型', label: '业务类型',
field: 'businessType' field: 'businessType',
form:{
value:'PurchaseClaim',
componentProps:{
disabled:true,
}
}
}, },
{ {
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',
formatter: dateFormatter, formatter: dateFormatter,
form: {
value: new Date(),
component: 'DatePicker',
componentProps: {
type: 'datetime',
}
},
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
} }
@ -10574,13 +10603,25 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '截止时间', label: '截止时间',
field: 'dueTime', field: 'dueTime',
formatter: dateFormatter, formatter: dateFormatter,
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
}
},
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
} }
}, },
{ {
label: '部门', label: '部门',
field: 'departmentCode' field: 'departmentCode',
form: {
value:userDept.name,
componentProps:{
disabled:true,
}
},
}, },
{ {
label: '状态', label: '状态',
@ -10588,7 +10629,13 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.REQUEST_STATUS, dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
form: {
value:'NEW',
componentProps:{
disabled:true,
}
},
}, },
{ {
label: '备注', label: '备注',
@ -10597,12 +10644,14 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
isForm:false
}, },
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
isForm:false,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
} }
@ -10610,12 +10659,14 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '最后更新者', label: '最后更新者',
field: 'updater', field: 'updater',
isForm:false
}, },
{ {
label: '最后更新时间', label: '最后更新时间',
field: 'updateTime', field: 'updateTime',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
isForm:false,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
} }
@ -10626,7 +10677,11 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true isTable: true,
form:{
component:'Switch',
value:true,
}
}, },
{ {
label: '自动通过', label: '自动通过',
@ -10649,13 +10704,36 @@ export const PurchaseclaimRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'directCreateRecord', field: 'directCreateRecord',
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: false,
isTable: true isTable: true
} }
])) ]))
// 表单校验 // 表单校验
export const PurchaseclaimRequestMainRules = reactive({ export const PurchaseclaimRequestMainRules = reactive({
asnNumber: [
{ required: true, message: '请输入发货单号', trigger: 'blur' }
],
ppNumber: [
{ required: true, message: '请输入要货计划单号', trigger: 'blur' }
],
supplierCode: [
{ required: true, message: '请输入供应商代码', trigger: 'change' }
],
businessType: [
{ required: true, message: '请输入业务类型', trigger: 'change' }
],
requestTime: [
{ required: true, message: '请选择申请时间', trigger: 'change' }
],
dueTime: [
{ required: true, message: '请选择截止时间', trigger: 'change' }
],
departmentCode: [
{ required: true, message: '请选择部门', trigger: 'change' }
],
status: [
{ required: true, message: '请选择状态', trigger: 'change' }
],
}) })
/** /**

Loading…
Cancel
Save