Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
e0ac790f
Commit
e0ac790f
authored
May 29, 2025
by
linjinhong
Committed by
qinjianhui
May 29, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改物流方式编辑问题
parent
797aadc2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
36 deletions
+59
-36
src/api/logistics.ts
+4
-2
src/components/CustomizeForm.tsx
+7
-2
src/views/logistics/logisticsMethod.vue
+6
-5
src/views/logistics/logisticsPartition.vue
+12
-11
src/views/logistics/logisticsQuotation.vue
+30
-16
No files found.
src/api/logistics.ts
View file @
e0ac790f
...
@@ -136,9 +136,11 @@ export function updateLogisticsQuotation(params: any) {
...
@@ -136,9 +136,11 @@ export function updateLogisticsQuotation(params: any) {
}
}
//删除
//删除
export
function
deleteLogisticsQuotation
(
params
:
any
)
{
export
function
deleteLogisticsQuotation
(
params
:
any
)
{
return
axios
.
pos
t
<
never
,
BaseRespData
<
never
>>
(
return
axios
.
ge
t
<
never
,
BaseRespData
<
never
>>
(
'/logistics/logisticsQuotation/delete'
,
'/logistics/logisticsQuotation/delete'
,
params
,
{
params
,
},
)
)
}
}
//导入
//导入
...
...
src/components/CustomizeForm.tsx
View file @
e0ac790f
...
@@ -84,6 +84,7 @@ export default defineComponent({
...
@@ -84,6 +84,7 @@ export default defineComponent({
watch
(
watch
(
()
=>
props
.
config
,
()
=>
props
.
config
,
(
val
)
=>
{
(
val
)
=>
{
console
.
log
(
'tableConfig'
,
val
)
tableConfig
.
value
=
val
tableConfig
.
value
=
val
},
},
{
immediate
:
true
,
deep
:
true
},
{
immediate
:
true
,
deep
:
true
},
...
@@ -143,9 +144,9 @@ export default defineComponent({
...
@@ -143,9 +144,9 @@ export default defineComponent({
.
filter
((
item
)
=>
!
item
.
fixed
)
.
filter
((
item
)
=>
!
item
.
fixed
)
.
concat
(
tableConfig
.
value
.
filter
((
item
)
=>
item
.
fixed
))
.
concat
(
tableConfig
.
value
.
filter
((
item
)
=>
item
.
fixed
))
}
else
{
}
else
{
tableConfig
.
value
=
props
.
config
tableConfig
.
value
=
[...
props
.
config
]
console
.
log
(
tableConfig
.
value
)
}
}
console
.
log
(
'tableConfig'
,
tableConfig
.
value
)
}
}
return
{
return
{
...
@@ -211,6 +212,10 @@ export default defineComponent({
...
@@ -211,6 +212,10 @@ export default defineComponent({
'onUpdate:modelValue'
:
(
value
:
unknown
)
=>
{
'onUpdate:modelValue'
:
(
value
:
unknown
)
=>
{
this
.
formData
[
item
.
prop
]
=
value
this
.
formData
[
item
.
prop
]
=
value
},
},
disabled
:
typeof
item
.
attrs
?.
disabled
===
'function'
?
item
.
attrs
.
disabled
()
:
item
.
attrs
?.
disabled
,
...
this
.
getComponentAttrs
(
item
),
...
this
.
getComponentAttrs
(
item
),
})
}
})
}
{
item
.
btn
&&
item
.
btn
()
}
{
item
.
btn
&&
item
.
btn
()
}
...
...
src/views/logistics/logisticsMethod.vue
View file @
e0ac790f
...
@@ -498,11 +498,12 @@ async function deleteWay(item) {
...
@@ -498,11 +498,12 @@ async function deleteWay(item) {
async
function
editWay
(
item
:
LogisticsMethod
)
{
async
function
editWay
(
item
:
LogisticsMethod
)
{
try
{
try
{
editForm
.
value
=
{
...
item
}
editForm
.
value
=
{
...
item
}
editForm
.
value
.
ruleId
=
item
.
ruleList
[
0
].
ruleId
editForm
.
value
.
ruleId
=
item
.
ruleList
?.[
0
]?.
ruleId
||
''
editForm
.
value
.
platformList
=
item
.
platformList
.
map
((
el
)
=>
{
editForm
.
value
.
platformList
=
el
.
showPlatform
=
el
.
platform
.
split
(
','
)
item
.
platformList
?.
map
((
el
)
=>
{
return
el
el
.
showPlatform
=
el
.
platform
.
split
(
','
)
})
return
el
})
||
[]
console
.
log
(
493
,
editForm
.
value
)
console
.
log
(
493
,
editForm
.
value
)
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
...
...
src/views/logistics/logisticsPartition.vue
View file @
e0ac790f
...
@@ -37,21 +37,13 @@
...
@@ -37,21 +37,13 @@
v-model=
"tableData"
v-model=
"tableData"
:config=
"tableConfig"
:config=
"tableConfig"
:merge-cells=
"mergeCells"
:merge-cells=
"mergeCells"
:tableEditConfig=
"{
enabled: true,
}"
border=
"full"
border=
"full"
@
getCheckboxRecords=
"handleCheckboxRecords"
@
getCheckboxRecords=
"handleCheckboxRecords"
></CustomizeTable>
></CustomizeTable>
</div>
</div>
<!-- <ElPagination
v-model:current-page="currentPage"
v-model:page-size="pageSize"
:page-sizes="[100, 200, 300, 400, 500]"
background
layout="total, sizes, prev, pager, next, jumper"
:total="total"
style="margin: 10px auto 0; text-align: right"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
></ElPagination> -->
</div>
</div>
</div>
</div>
...
@@ -99,6 +91,7 @@ import usePageList from '@/utils/hooks/usePageList'
...
@@ -99,6 +91,7 @@ import usePageList from '@/utils/hooks/usePageList'
import
{
useValue
}
from
'./hooks/useValue'
import
{
useValue
}
from
'./hooks/useValue'
import
{
showConfirm
}
from
'@/utils/ui'
import
{
showConfirm
}
from
'@/utils/ui'
import
{
Edit
}
from
'@element-plus/icons-vue'
import
{
Edit
}
from
'@element-plus/icons-vue'
import
{
ElInput
}
from
'element-plus'
const
[
searchForm
]
=
useValue
({})
const
[
searchForm
]
=
useValue
({})
const
[
editForm
,
resetEditForm
]
=
useValue
({
logisticsList
:
[]
})
const
[
editForm
,
resetEditForm
]
=
useValue
({
logisticsList
:
[]
})
...
@@ -383,7 +376,15 @@ async function getList(data?) {
...
@@ -383,7 +376,15 @@ async function getList(data?) {
newConfig
.
push
({
newConfig
.
push
({
prop
:
key
,
prop
:
key
,
label
:
key
,
label
:
key
,
render
:
{
render
:
{
edit
:
({
row
})
=>
{
return
(
<
div
>
{
/* <ElInput v-model={row[key]?.codePrefix} /> */
}
<
/div
>
)
},
default
:
({
row
})
=>
{
default
:
({
row
})
=>
{
return
(
return
(
<
span
<
span
...
...
src/views/logistics/logisticsQuotation.vue
View file @
e0ac790f
...
@@ -162,7 +162,7 @@ const searchConfig = ref([
...
@@ -162,7 +162,7 @@ const searchConfig = ref([
},
},
])
])
const
formConfig
=
ref
(
[
const
formConfig
=
computed
(()
=>
[
{
{
prop
:
'logistics'
,
prop
:
'logistics'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -186,7 +186,7 @@ const formConfig = ref([
...
@@ -186,7 +186,7 @@ const formConfig = ref([
label
:
'Rate(oz/LB)'
,
label
:
'Rate(oz/LB)'
,
attrs
:
{
attrs
:
{
placeholder
:
'请输入Rate(oz/LB)'
,
placeholder
:
'请输入Rate(oz/LB)'
,
disabled
:
editForm
.
value
?.[
'id'
]
?
true
:
false
,
hasSuffix
:
false
,
hasSuffix
:
false
,
hasAppend
:
true
,
hasAppend
:
true
,
appendRender
:
()
=>
{
appendRender
:
()
=>
{
...
@@ -210,73 +210,82 @@ const formConfig = ref([
...
@@ -210,73 +210,82 @@ const formConfig = ref([
},
},
{
{
prop
:
'zone1'
,
prop
:
'zone1'
,
type
:
'
i
nput'
,
type
:
'
amountI
nput'
,
label
:
'ZONE 1'
,
label
:
'ZONE 1'
,
attrs
:
{
attrs
:
{
hasSuffix
:
false
,
placeholder
:
'请输入ZONE 1'
,
placeholder
:
'请输入ZONE 1'
,
},
},
},
},
{
{
prop
:
'zone2'
,
prop
:
'zone2'
,
type
:
'
i
nput'
,
type
:
'
amountI
nput'
,
label
:
'ZONE 2'
,
label
:
'ZONE 2'
,
attrs
:
{
attrs
:
{
hasSuffix
:
false
,
placeholder
:
'请输入ZONE 2'
,
placeholder
:
'请输入ZONE 2'
,
},
},
},
},
{
{
prop
:
'zone3'
,
prop
:
'zone3'
,
type
:
'
i
nput'
,
type
:
'
amountI
nput'
,
label
:
'ZONE 3'
,
label
:
'ZONE 3'
,
attrs
:
{
attrs
:
{
hasSuffix
:
false
,
placeholder
:
'请输入ZONE 3'
,
placeholder
:
'请输入ZONE 3'
,
},
},
},
},
{
{
prop
:
'zone4'
,
prop
:
'zone4'
,
type
:
'
i
nput'
,
type
:
'
amountI
nput'
,
label
:
'ZONE 4'
,
label
:
'ZONE 4'
,
attrs
:
{
attrs
:
{
hasSuffix
:
false
,
placeholder
:
'请输入ZONE 4'
,
placeholder
:
'请输入ZONE 4'
,
},
},
},
},
{
{
prop
:
'zone5'
,
prop
:
'zone5'
,
type
:
'
i
nput'
,
type
:
'
amountI
nput'
,
label
:
'ZONE 5'
,
label
:
'ZONE 5'
,
attrs
:
{
attrs
:
{
hasSuffix
:
false
,
placeholder
:
'请输入ZONE 5'
,
placeholder
:
'请输入ZONE 5'
,
},
},
},
},
{
{
prop
:
'zone6'
,
prop
:
'zone6'
,
type
:
'
i
nput'
,
type
:
'
amountI
nput'
,
label
:
'ZONE 6'
,
label
:
'ZONE 6'
,
attrs
:
{
attrs
:
{
hasSuffix
:
false
,
placeholder
:
'请输入ZONE 6'
,
placeholder
:
'请输入ZONE 6'
,
},
},
},
},
{
{
prop
:
'zone7'
,
prop
:
'zone7'
,
type
:
'
i
nput'
,
type
:
'
amountI
nput'
,
label
:
'ZONE 7'
,
label
:
'ZONE 7'
,
attrs
:
{
attrs
:
{
hasSuffix
:
false
,
placeholder
:
'请输入ZONE 7'
,
placeholder
:
'请输入ZONE 7'
,
},
},
},
},
{
{
prop
:
'zone8'
,
prop
:
'zone8'
,
type
:
'
i
nput'
,
type
:
'
amountI
nput'
,
label
:
'ZONE 8'
,
label
:
'ZONE 8'
,
attrs
:
{
attrs
:
{
hasSuffix
:
false
,
placeholder
:
'请输入ZONE 8'
,
placeholder
:
'请输入ZONE 8'
,
},
},
},
},
{
{
prop
:
'zone9'
,
prop
:
'zone9'
,
type
:
'
i
nput'
,
type
:
'
amountI
nput'
,
label
:
'ZONE 9'
,
label
:
'ZONE 9'
,
attrs
:
{
attrs
:
{
hasSuffix
:
false
,
placeholder
:
'请输入ZONE 9'
,
placeholder
:
'请输入ZONE 9'
,
},
},
},
},
...
@@ -439,8 +448,7 @@ async function editWay(item: LogisticsMethod) {
...
@@ -439,8 +448,7 @@ async function editWay(item: LogisticsMethod) {
try
{
try
{
editForm
.
value
=
{
...
item
}
editForm
.
value
=
{
...
item
}
console
.
log
(
432
,
editForm
.
value
)
console
.
log
(
432
,
editForm
.
value
)
// formConfig.value[0].attrs!.disabled = true
editFormRef
.
value
?.
refashConfig
()
// formConfig.value[1].attrs!.disabled = true
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
)
console
.
log
(
e
)
...
@@ -516,7 +524,7 @@ async function deleteFn() {
...
@@ -516,7 +524,7 @@ async function deleteFn() {
return
return
}
}
try
{
try
{
const
ids
=
selection
.
value
.
map
((
item
)
=>
item
.
id
).
join
(
','
)
const
ids
=
{
ids
:
selection
.
value
.
map
((
item
)
=>
item
.
id
).
join
(
','
)
}
await
deleteLogisticsQuotation
(
ids
)
await
deleteLogisticsQuotation
(
ids
)
ElMessage
({
ElMessage
({
message
:
'删除成功'
,
message
:
'删除成功'
,
...
@@ -525,6 +533,10 @@ async function deleteFn() {
...
@@ -525,6 +533,10 @@ async function deleteFn() {
search
()
search
()
}
catch
(
e
)
{
}
catch
(
e
)
{
search
()
search
()
ElMessage
({
message
:
'删除失败'
,
type
:
'error'
,
})
// showError(e)
// showError(e)
}
}
}
}
...
@@ -607,9 +619,11 @@ async function updateExcel(file) {
...
@@ -607,9 +619,11 @@ async function updateExcel(file) {
}
}
watch
(
watch
(
()
=>
loading
.
value
,
()
=>
editForm
.
value
,
(
val
)
=>
{
(
val
)
=>
{
console
.
log
(
442
,
val
)
console
.
log
(
'editForm'
,
val
)
const
bool
=
editForm
.
value
?.[
'id'
]
?
true
:
false
console
.
log
(
'bool'
,
bool
)
},
},
{
deep
:
true
,
immediate
:
true
},
{
deep
:
true
,
immediate
:
true
},
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment