Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
83dfe960
authored
Sep 26, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
取消发货
parent
6f937fdc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
14 deletions
src/views/OrderTrack/goods.vue
src/views/OrderTrack/invoice.vue
src/views/OrderTrack/purAdd.vue
src/views/OrderTrack/goods.vue
View file @
83dfe960
...
@@ -124,7 +124,6 @@
...
@@ -124,7 +124,6 @@
source_type
:
this
.
formInline
.
source_type
,
source_type
:
this
.
formInline
.
source_type
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
tableData
=
res
.
data
.
list
||
[];
this
.
tableData
=
res
.
data
.
list
||
[];
this
.
total
=
Number
(
res
.
data
.
total
)
||
0
;
this
.
total
=
Number
(
res
.
data
.
total
)
||
0
;
}
else
{
}
else
{
...
...
src/views/OrderTrack/invoice.vue
View file @
83dfe960
This diff is collapsed.
Click to expand it.
src/views/OrderTrack/purAdd.vue
View file @
83dfe960
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
</div>
</div>
</el-form>
</el-form>
<div
class=
"data-box th-all"
>
<div
class=
"data-box th-all"
>
<el-table
:data=
"purOrderDetail.purchase_item_list"
border
max-height=
"600"
:row-class-name=
"tableRowClassName"
@
selection-change=
"handleSelectionChange"
@
select=
"onRowClick
"
>
<el-table
:data=
"purOrderDetail.purchase_item_list"
border
max-height=
"600"
@
selection-change=
"handleSelectionChange
"
>
<el-table-column
fixed
type=
"selection"
width=
"37"
></el-table-column>
<el-table-column
fixed
type=
"selection"
width=
"37"
></el-table-column>
<el-table-column
prop=
"goods_name"
label=
"型号"
min-width=
"15%"
></el-table-column>
<el-table-column
prop=
"goods_name"
label=
"型号"
min-width=
"15%"
></el-table-column>
<el-table-column
prop=
"brand_name"
label=
"品牌"
min-width=
"15%"
></el-table-column>
<el-table-column
prop=
"brand_name"
label=
"品牌"
min-width=
"15%"
></el-table-column>
...
@@ -78,7 +78,6 @@ export default {
...
@@ -78,7 +78,6 @@ export default {
purOrderDetail
:
{},
//基本信息,发货信息
purOrderDetail
:
{},
//基本信息,发货信息
purchase_uid
:
''
,
purchase_uid
:
''
,
multipleSelection
:
[],
//选中的数据
multipleSelection
:
[],
//选中的数据
currentRowIndex
:
[],
//选中数据的索引
rules
:
{
rules
:
{
shipping_id
:
[{
shipping_id
:
[{
required
:
true
,
required
:
true
,
...
@@ -141,15 +140,6 @@ export default {
...
@@ -141,15 +140,6 @@ export default {
handleSelectionChange
(
val
)
{
handleSelectionChange
(
val
)
{
this
.
multipleSelection
=
val
;
this
.
multipleSelection
=
val
;
},
},
tableRowClassName
({
row
,
rowIndex
})
{
row
.
row_index
=
rowIndex
},
onRowClick
(
row
)
{
this
.
currentRowIndex
=
[]
for
(
var
i
=
0
;
i
<
row
.
length
;
i
++
)
{
this
.
currentRowIndex
.
push
(
row
[
i
].
row_index
)
}
},
submit
(
formName
)
{
submit
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
@@ -161,10 +151,18 @@ export default {
...
@@ -161,10 +151,18 @@ export default {
return
false
;
return
false
;
}
}
this
.
formParam
.
itemlist
=
JSON
.
stringify
(
this
.
itemlist
);
let
filterArr
=
[];
for
(
let
i
=
0
;
i
<
this
.
multipleSelection
.
length
;
i
++
)
{
if
(
this
.
multipleSelection
[
i
].
purchase_item_id
==
this
.
itemlist
[
i
].
purchase_item_id
)
{
filterArr
.
push
(
this
.
itemlist
[
i
])
}
}
this
.
formParam
.
itemlist
=
filterArr
;
this
.
$http
(
'POST'
,
"/api/purchase/addSupDelivery"
,
this
.
formParam
).
then
(
res
=>
{
this
.
$http
(
'POST'
,
"/api/purchase/addSupDelivery"
,
this
.
formParam
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
$router
.
push
({
path
:
"/orderTrackGoods"
,
})
}
else
{
}
else
{
this
.
$message
({
this
.
$message
({
message
:
res
.
msg
,
message
:
res
.
msg
,
...
...
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