Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
zhaoxuebing 7 months ago
parent
commit
42b73d565b
  1. 22
      .env.wyf
  2. 15
      src/components/Search/src/Search.vue
  3. 10
      src/components/Table/src/Table.vue
  4. 10
      src/components/rowDrop/index.vue
  5. 3
      src/hooks/web/useCrudSchemas.ts
  6. 2
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts
  7. 12
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts
  8. 12
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

22
.env.wyf

@ -3,16 +3,16 @@ NODE_ENV=test
VITE_DEV=false VITE_DEV=false
# 请求路径 # # # # 请求路径
VITE_BASE_URL='http://192.168.0.108:12080' # VITE_BASE_URL='http://192.168.0.108:12080'
# 上传路径 # # 上传路径
VITE_UPLOAD_URL='http://192.168.0.108:12080/api/admin-api/infra/file/upload' # VITE_UPLOAD_URL='http://192.168.0.108:12080/admin-api/infra/file/upload'
# # 请求路径 # 请求路径
# VITE_BASE_URL='http://dev.ccwin-in.com:25300/api' VITE_BASE_URL='http://dev.ccwin-in.com:25300/api'
# # 上传路径 # 上传路径
# VITE_UPLOAD_URL='http://dev.ccwin-in.com:25300/api/admin-api/infra/file/upload' VITE_UPLOAD_URL='http://dev.ccwin-in.com:25300/api/admin-api/infra/file/upload'
# 接口前缀 # 接口前缀
VITE_API_BASEPATH= VITE_API_BASEPATH=
@ -40,3 +40,9 @@ VITE_INTERFACE_URL='http://192.168.0.108:12080/magic/web/index.html'
# 积木报表请求路径 # 积木报表请求路径
VITE_JMREPORT_BASE_URL='http://192.168.0.108:12080' VITE_JMREPORT_BASE_URL='http://192.168.0.108:12080'
# # 自定义接口路径
# VITE_INTERFACE_URL='http://dev.ccwin-in.com:25310/magic/web/index.html'
# # 积木报表请求路径
# VITE_JMREPORT_BASE_URL='http://dev.ccwin-in.com:25310'

15
src/components/Search/src/Search.vue

@ -66,8 +66,23 @@ const newSchema = computed(() => {
} }
]) ])
} }
updateSort(schema)
return schema return schema
}) })
const updateSort= (val)=>{
val.forEach(item=>{
if(!item.sortSearchDefault){
if(item.field=="action"){
item.sortSearchDefault = 9999 //
}else{
item.sortSearchDefault = 999 // 999
}
}
})
val.sort((column1,column2)=>{
return column1.sortSearchDefault - column2.sortSearchDefault
})
}
const { register, elFormRef, methods } = useForm({ const { register, elFormRef, methods } = useForm({
model: props.model || {} model: props.model || {}

10
src/components/Table/src/Table.vue

@ -250,18 +250,18 @@ export default defineComponent({
// //
const updateSort= (val)=>{ const updateSort= (val)=>{
val.forEach(item=>{ val.forEach(item=>{
if(!item.sortDefault){ if(!item.sortTableDefault){
if(item.fixed=='left'){ if(item.fixed=='left'){
item.sortDefault = 0 item.sortTableDefault = 0
}else if(item.fixed=='right'){ }else if(item.fixed=='right'){
item.sortDefault = 9999 item.sortTableDefault = 9999
}else{ }else{
item.sortDefault = 999 // 999 item.sortTableDefault = 999 // 999
} }
} }
}) })
val.sort((column1,column2)=>{ val.sort((column1,column2)=>{
return column1.sortDefault - column2.sortDefault return column1.sortTableDefault - column2.sortTableDefault
}) })
} }

10
src/components/rowDrop/index.vue

@ -202,18 +202,18 @@ const initSelectSta = () => {
} }
const updateSort= (val)=>{ const updateSort= (val)=>{
val.forEach(item=>{ val.forEach(item=>{
if(!item.sortDefault){ if(!item.sortTableDefault){
if(item.fixed=='left'){ if(item.fixed=='left'){
item.sortDefault = 0 item.sortTableDefault = 0
}else if(item.fixed=='right'){ }else if(item.fixed=='right'){
item.sortDefault = 9999 item.sortTableDefault = 9999
}else{ }else{
item.sortDefault = 999 // 999 item.sortTableDefault = 999 // 999
} }
} }
}) })
val.sort((column1,column2)=>{ val.sort((column1,column2)=>{
return column1.sortDefault - column2.sortDefault return column1.sortTableDefault - column2.sortTableDefault
}) })
} }
// //

3
src/hooks/web/useCrudSchemas.ts

@ -140,7 +140,8 @@ const filterSearchSchema = (crudSchema: CrudSchema[], allSchemas: AllSchemas): F
component, component,
...schemaItem.search, ...schemaItem.search,
field: schemaItem.field, field: schemaItem.field,
label: schemaItem.search?.label || schemaItem.label label: schemaItem.search?.label || schemaItem.label,
sortSearchDefault: schemaItem.sortSearchDefault || 999,
}, },
{ componentProps: comonentProps } { componentProps: comonentProps }
) )

2
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -68,6 +68,7 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
isTable: true, isTable: true,
isForm:false, isForm:false,
isSearch: true, isSearch: true,
sortSearchDefault:1000,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -401,6 +402,7 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
isSearch: true,
table: { table: {
width: 150 width: 150
}, },

12
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

@ -365,7 +365,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',
sort: 'custom', sort: 'custom',
sortDefault:1000, sortTableDefault:1000,
table: { table: {
width: 150 width: 150
}, },
@ -374,7 +374,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
isTable: true, isTable: true,
sortDefault:1001, sortTableDefault:1001,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -387,7 +387,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '采购审批人', label: '采购审批人',
field: 'procurementCreator', field: 'procurementCreator',
sortDefault:1002, sortTableDefault:1002,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -397,7 +397,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '采购审批时间', label: '采购审批时间',
field: 'procurementCreateTime', field: 'procurementCreateTime',
sortDefault:1003, sortTableDefault:1003,
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
@ -412,7 +412,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '财务审批用户名', label: '财务审批用户名',
field: 'financialCreator', field: 'financialCreator',
sortDefault:1004, sortTableDefault:1004,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -422,7 +422,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '财务审批时间', label: '财务审批时间',
field: 'financialCreateTime', field: 'financialCreateTime',
sortDefault:1005, sortTableDefault:1005,
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {

12
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -414,7 +414,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
sortDefault:1001, sortTableDefault:1001,
isForm: false, isForm: false,
}, },
{ {
@ -422,7 +422,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
field: 'createTime', field: 'createTime',
isTable: true, isTable: true,
formatter: dateFormatter, formatter: dateFormatter,
sortDefault:1000, sortTableDefault:1000,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
@ -468,7 +468,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
label: '采购审批人', label: '采购审批人',
field: 'procurementCreator', field: 'procurementCreator',
sort: 'custom', sort: 'custom',
sortDefault:1003, sortTableDefault:1003,
table: { table: {
width: 150 width: 150
}, },
@ -478,7 +478,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
label: '采购审批时间', label: '采购审批时间',
field: 'procurementCreateTime', field: 'procurementCreateTime',
isTable: true, isTable: true,
sortDefault:1004, sortTableDefault:1004,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -502,7 +502,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
label: '财务审批时间', label: '财务审批时间',
field: 'financialCreateTime', field: 'financialCreateTime',
isTable: true, isTable: true,
sortDefault:1005, sortTableDefault:1005,
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
@ -518,7 +518,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
field: 'supplierCreator', field: 'supplierCreator',
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
sortDefault:1006, sortTableDefault:1006,
table: { table: {
width: 180 width: 180
}, },

Loading…
Cancel
Save