diff --git a/src/components/SearchHigh/src/SearchHigh.vue b/src/components/SearchHigh/src/SearchHigh.vue
index 02dc5690c..728fbd500 100644
--- a/src/components/SearchHigh/src/SearchHigh.vue
+++ b/src/components/SearchHigh/src/SearchHigh.vue
@@ -150,10 +150,10 @@ const moreListOptions = ref({
// 判断输入框类型
const getInputType = (val) => {
-
+
const type = searchOption_high.value.find(item => (item.field == val))
let data = 'input'
- if (type?.dictType || type?.field == 'creator') {
+ if (type?.dictType || type?.field == 'creator'||type?.field == 'updater' ||type?.field == 'worker') {
data = 'select'
} else if (type?.form?.component == 'InputNumber') {
data = 'inputNumber'
@@ -170,7 +170,7 @@ const moreListOptions = ref({
const getFilterable = (val) => {
const type = searchOption_high.value.find(item => (item.field == val))
// 下拉列表过长,去掉筛选功能
- if (type?.field == 'creator') {
+ if (type?.field == 'creator' || type?.field == 'updater' || type?.field == 'worker') {
return false
}else{
return true
@@ -182,7 +182,7 @@ const getFilterable = (val) => {
let precision = 6
if (type?.form?.component == 'InputNumber') {
precision = type?.form?.componentProps?.precision || type?.form?.componentProps?.precision == 0 ? type.form.componentProps.precision : 6
- }
+ }
return precision
}
// 根据数据内容约束条件选项 ==,!=,>,<,>=,<=,like,in,notIn,betweeen,isNull,isNotNull
@@ -204,7 +204,7 @@ const moreListDelete = (val,item,$event) => {
} else {
message.confirm(t('ts.您确定删除吗, 是否继续?')).then(() => {
moreListData.value.filters.splice(val, 1)
- })
+ })
}
}
@@ -243,7 +243,7 @@ const actionSelect = (val)=>{
val.value1 =[]
val.value = ''
})
-
+
}
// 查询 重置按钮事件
@@ -265,11 +265,11 @@ const buttonBaseClick = (val) => {
value:item.value,
}
}
-
+
data.push(obj)
})
if (props.masterId){
- data.push({
+ data.push({
column: 'masterId',
action: "==",
value: props.masterId,
@@ -298,7 +298,7 @@ const getDictOptions = ()=>{
// allDictOptions.value[item.field] = getStrDictOptions(item.dictType)
if (item.dictType) {
allDictOptions.value[item.field] = getStrDictOptions(item.dictType)
- } else if(item.field == 'creator'){
+ } else if(item.field == 'creator'||item.field == 'updater' ||item.field == 'worker'){
allDictOptions.value[item.field] = userListAll.value
}
})
@@ -387,4 +387,4 @@ defineExpose({
}
}
// }
-
\ No newline at end of file
+
diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue
index 1da966ea4..57dd2ceae 100644
--- a/src/components/TableForm/src/TableForm.vue
+++ b/src/components/TableForm/src/TableForm.vue
@@ -1,11 +1,13 @@
- 10,
isShowButton: isShowButton || isShowReduceButtonSelection,
isFullscreen:isFullscreen
- }"
+ }" -->
+ ) {
app.directive('clientTableForm', (el, binding) => {
nextTick(() => {
let {isShowPagination,isShowButton,isFullscreen} = binding.value
- console.log('clientTableForm')
let footerHeight = 0
let headerHeight = 0
- el.offsetParent.children.forEach(element => {
+ el.offsetParent?.children?.forEach(element => {
if(element.className=='el-dialog__footer'){
footerHeight = element.clientHeight
}
@@ -55,20 +54,16 @@ export function clientTable(app: App) {
headerHeight = element.clientHeight
}
});
- console.dir(el)
let top = el.getBoundingClientRect().top
- let tableFormTop = top - el.offsetParent.offsetTop
- console.log(top)
- console.log(el.offsetParent.offsetTop)
- console.log(el.offsetParent.clientHeight)
- let height = el.offsetParent.clientHeight - tableFormTop - footerHeight - 30
+ let tableFormTop = top - (el.offsetParent?.offsetTop||0)
+
+ let height = el.offsetParent?.clientHeight - tableFormTop - footerHeight - 30
if(isShowPagination){
height = height- 34
}
if(isShowButton){
height = height- 50
}
- console.log(height)
el.style.height = height + 'px'
})
})
diff --git a/src/views/qms/samplingProcess/index.vue b/src/views/qms/samplingProcess/index.vue
index f63c249cd..fa87e3649 100644
--- a/src/views/qms/samplingProcess/index.vue
+++ b/src/views/qms/samplingProcess/index.vue
@@ -359,7 +359,7 @@ const updateFormFields = (sampleType, formRef) => {
SamplingProcessRules.sampleQty[0].required = sampleQtyRequired
SamplingProcessRules.sampleProgCode[0].required = sampleProgCodeRequired
- formRef.value.setValues({
+ formRef?.value?.setValues({
sampleQty: '',
sampleProgCode: ''
})
@@ -367,7 +367,7 @@ const updateFormFields = (sampleType, formRef) => {
const openForm = async (type, row) => {
basicFormRef.value.open(type, row)
- updateFormFields(row.sampleType, basicFormRef)
+ updateFormFields(row?.sampleType, basicFormRef)
}
const onChange = async (field, value, formRef) => {
diff --git a/src/views/wms/basicDataManage/orderManage/shift/index.vue b/src/views/wms/basicDataManage/orderManage/shift/index.vue
index 8e18c295d..22878a2e9 100644
--- a/src/views/wms/basicDataManage/orderManage/shift/index.vue
+++ b/src/views/wms/basicDataManage/orderManage/shift/index.vue
@@ -65,6 +65,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
+import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'Shift' })
@@ -239,8 +240,9 @@ const handleExport = async () => {
await message.exportConfirm()
// 发起导出
exportLoading.value = true
+ const excelTitle = ref(route.meta.title)
const data = await ShiftApi.exportShift(tableObject.params)
- download.excel(data, '班次.xlsx')
+ download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@@ -255,7 +257,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '班次导入模版.xlsx'
+ templateTitle: `【${route.meta.title}】导入模版.xlsx`
})
// 导入成功之后
const importSuccess = () => {
diff --git a/src/views/wms/inventoryManage/balance/balance.data.ts b/src/views/wms/inventoryManage/balance/balance.data.ts
index 31e8df4fe..8e295897d 100644
--- a/src/views/wms/inventoryManage/balance/balance.data.ts
+++ b/src/views/wms/inventoryManage/balance/balance.data.ts
@@ -446,7 +446,7 @@ export const Balance = useCrudSchemas(
}
},
isForm: false,
- isTable: false
+ isTable: true
},
{
label: '最后更新者',
@@ -456,7 +456,7 @@ export const Balance = useCrudSchemas(
width: 150
},
isForm: false,
- isTable: false
+ isTable: true
},
// TODO: 临时添加 方便操作
{
diff --git a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
index 12f41d622..49c7d0fdb 100644
--- a/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
+++ b/src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/inventoryinitRequestMain.data.ts
@@ -397,6 +397,7 @@ export const InventoryinitRequestDetail = useCrudSchemas(reactive(
table: {
width: 180
},
+ hiddenInMain:true,
isTableForm: false,
form: {
componentProps: {
diff --git a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
index 1e99700f7..56d170f54 100644
--- a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
+++ b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
@@ -177,6 +177,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
newRow['itemCode'] = item['itemCode']
newRow['uom'] = item['uom']
newRow['singlePrice'] = itemCode ? itemCode['price'] : ''
+ newRow['amount'] = newRow['qty'] * newRow['singlePrice']
tableData.value.push(newRow)
})
// row['singlePrice'] = res.price
diff --git a/src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/index.vue b/src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/index.vue
index 8611480fe..1d8e63db0 100644
--- a/src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/index.vue
+++ b/src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/index.vue
@@ -252,7 +252,7 @@ const { getList, setSearchParams } = tableMethods
// 列表头部按钮
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:unplannedreceipt-request-main:create'}), // 新增
- defaultButtons.defaultImportBtn({hasPermi:'wms:unplannedreceipt-request-main:import'}), // 导入
+ //defaultButtons.defaultImportBtn({hasPermi:'wms:unplannedreceipt-request-main:import'}), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:unplannedreceipt-request-main:export'}), // 导出
defaultButtons.defaultFreshBtn(null), // 刷新
defaultButtons.defaultFilterBtn(null), // 筛选
diff --git a/src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/sparepartReturnRequestMain.data.ts b/src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/sparepartReturnRequestMain.data.ts
index 00bfdf790..761dbda4f 100644
--- a/src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/sparepartReturnRequestMain.data.ts
+++ b/src/views/wms/inventoryjobManage/sparepartReturn/sparepartReturnRequestMain/sparepartReturnRequestMain.data.ts
@@ -65,7 +65,7 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive
field: 'status',
dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string',
- isSearch: true,
+ isSearch: false,
isForm: false,
isTable: true,
sort: 'custom',
@@ -397,7 +397,7 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive
field: 'toAreaTypes',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
- isSearch: true,
+ isSearch: false,
isTable: true,
sort: 'custom',
table: {
@@ -412,7 +412,7 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive
table: {
width: 150
},
- isSearch: true,
+ isSearch: false,
isForm: false,
},
{
@@ -714,12 +714,67 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive([
}
},
{
- label: '备注',
+ label: '订单号',
field: 'remarkMain',
sort: 'custom',
table: {
diff --git a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
index c86f9d785..14dd3b34a 100644
--- a/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
+++ b/src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue
@@ -505,6 +505,11 @@ const openForm =async (type: string, row?: number) => {
if (type == 'update') {
// 修改 tableform 属性
ProductionreturnRequestMain.allSchemas.formSchema.map(itemColumns => {
+ //生产线代码
+ if(itemColumns.field == 'productionLineCode') {
+ itemColumns.componentProps.isSearchList = false
+ itemColumns.componentProps.disabled = true
+ }
if(itemColumns.field == 'workshopCode') {
itemColumns.componentProps.isSearchList = false
itemColumns.componentProps.disabled = true
@@ -513,6 +518,11 @@ const openForm =async (type: string, row?: number) => {
} else {
// 修改 tableform 属性
ProductionreturnRequestMain.allSchemas.formSchema.map(itemColumns => {
+ //生产线代码
+ if(itemColumns.field == 'productionLineCode') {
+ itemColumns.componentProps.isSearchList = true
+ itemColumns.componentProps.disabled = false
+ }
if(itemColumns.field == 'workshopCode') {
itemColumns.componentProps.isSearchList = true
itemColumns.componentProps.disabled = false
diff --git a/src/views/wms/productionManage/processproduction/processproductionRecord/index.vue b/src/views/wms/productionManage/processproduction/processproductionRecord/index.vue
index fced86acb..b10e3b131 100644
--- a/src/views/wms/productionManage/processproduction/processproductionRecord/index.vue
+++ b/src/views/wms/productionManage/processproduction/processproductionRecord/index.vue
@@ -82,6 +82,7 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
+import { formatDate } from '@/utils/formatTime'
defineOptions({ name: 'ProcessproductionRequestMain' })
@@ -236,8 +237,9 @@ const handleExport = async () => {
await message.exportConfirm()
// 发起导出
exportLoading.value = true
+ const excelTitle = ref(route.meta.title)
const data = await ProcessproductionRecordMainApi.exportProcessproductionRecordMain(tableObject.params)
- download.excel(data, route.meta.title+'.xlsx')
+ download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@@ -252,7 +254,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '工序报产申请主导入模版.xlsx'
+ templateTitle: `【${route.meta.title}】导入模版.xlsx`
})
// 导入成功之后
const importSuccess = () => {
diff --git a/src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts b/src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts
index 35d0113d7..feb84a75c 100644
--- a/src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts
+++ b/src/views/wms/productionManage/productredress/productredressJobMain/productredressJobMain.data.ts
@@ -44,6 +44,15 @@ export const ProductredressJobMain = useCrudSchemas(reactive([
}
}
},
+ {
+ label: '生产线代码',
+ field: 'productionLineCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable:true,
+ },
{
label: '申请时间',
field: 'requestTime',
diff --git a/src/views/wms/productionManage/productredress/productredressRecordMain/productredressRecordMain.data.ts b/src/views/wms/productionManage/productredress/productredressRecordMain/productredressRecordMain.data.ts
index d0518f979..cf13590fe 100644
--- a/src/views/wms/productionManage/productredress/productredressRecordMain/productredressRecordMain.data.ts
+++ b/src/views/wms/productionManage/productredress/productredressRecordMain/productredressRecordMain.data.ts
@@ -55,6 +55,15 @@ export const ProductredressRecordMain = useCrudSchemas(reactive([
width: 150
}
},
+ {
+ label: '生产线代码',
+ field: 'productionLineCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isTable:true,
+ },
// {
// label: '生产计划单号',
// field: 'productionPlanNumber',
diff --git a/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts b/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
index 200e490ac..02030f9a1 100644
--- a/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
+++ b/src/views/wms/productionManage/productredress/productredressRequestMain/productredressRequestMain.data.ts
@@ -105,7 +105,7 @@ export const ProductredressRequestMain = useCrudSchemas(reactive([
table: {
width: 150
},
- isTable:false,
+ isTable:true,
tableForm: {
enterSearch: true,
isInpuFocusShow: true,
diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue
index ab11f0b25..44b1f1c94 100644
--- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestOrderMTypeMain/index.vue
@@ -696,8 +696,9 @@ const handleExport = async () => {
await message.exportConfirm()
// 发起导出
exportLoading.value = true
+ const excelTitle = ref(route.meta.title)
const data = await PurchasereceiptRequestMainApi.exportPurchasereceiptRequestMain(tableObject.params)
- download.excel(data, 'M类型采购收货.xlsx')
+ download.excel(data, `【${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
} catch {
} finally {
exportLoading.value = false
@@ -777,7 +778,7 @@ const handleImport = () => {
// 导入附件弹窗所需的参数
const importTemplateData = reactive({
templateUrl: '',
- templateTitle: '采购收货申请主导入模版.xlsx'
+ templateTitle: `【${route.meta.title}】导入模版.xlsx`
})
// 导入成功之后
diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
index cfe08ae92..514d82d2f 100644
--- a/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
+++ b/src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/purchasePlanMain.data.ts
@@ -527,6 +527,26 @@ export const PurchasePlanDetail = useCrudSchemas(reactive([
}
}
},
+ {
+ label: '送达日期',
+ field: 'deliveryDate',
+ table: {
+ width: 180
+ },
+ formatter: dateFormatter2,
+ sortTableDefault:2,
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'date',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x',
+ }
+ },
+ detail: {
+ dateFormat: 'YYYY-MM-DD'
+ },
+ },
{
label: '采购订单号',
field: 'poNumber',