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_BASE_URL='http://192.168.0.108:12080'
# 上传路径
VITE_UPLOAD_URL='http://192.168.0.108:12080/api/admin-api/infra/file/upload'
# # # # 请求路径
# VITE_BASE_URL='http://192.168.0.108:12080'
# # 上传路径
# 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=
@ -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_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
})
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({
model: props.model || {}

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

@ -250,18 +250,18 @@ export default defineComponent({
//
const updateSort= (val)=>{
val.forEach(item=>{
if(!item.sortDefault){
if(!item.sortTableDefault){
if(item.fixed=='left'){
item.sortDefault = 0
item.sortTableDefault = 0
}else if(item.fixed=='right'){
item.sortDefault = 9999
item.sortTableDefault = 9999
}else{
item.sortDefault = 999 // 999
item.sortTableDefault = 999 // 999
}
}
})
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)=>{
val.forEach(item=>{
if(!item.sortDefault){
if(!item.sortTableDefault){
if(item.fixed=='left'){
item.sortDefault = 0
item.sortTableDefault = 0
}else if(item.fixed=='right'){
item.sortDefault = 9999
item.sortTableDefault = 9999
}else{
item.sortDefault = 999 // 999
item.sortTableDefault = 999 // 999
}
}
})
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,
...schemaItem.search,
field: schemaItem.field,
label: schemaItem.search?.label || schemaItem.label
label: schemaItem.search?.label || schemaItem.label,
sortSearchDefault: schemaItem.sortSearchDefault || 999,
},
{ componentProps: comonentProps }
)

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

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

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

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

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

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

Loading…
Cancel
Save