Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄媛媛
ElectricitySheep
Commits
ec2421f0
Commit
ec2421f0
authored
Aug 18, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加供应商修改
parent
2ac26162
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
5 deletions
+59
-5
orderList.vue
src/components/orderMan/orderList.vue
+59
-5
No files found.
src/components/orderMan/orderList.vue
View file @
ec2421f0
...
@@ -158,19 +158,22 @@
...
@@ -158,19 +158,22 @@
</div>
</div>
<div
flex=
"dir:left box:mean"
style=
"width: 300px;"
>
<div
flex=
"dir:left box:mean"
style=
"width: 300px;"
>
<div
flex=
"cross:center main:center"
style=
"display: flex;flex-direction: column;align-items: flex-start;"
>
<div
flex=
"cross:center main:center"
style=
"display: flex;flex-direction: column;align-items: flex-start;"
>
<span
style=
""
>
小计:¥
{{
list
.
Final_Price
}}
<span
style=
"
cursor:pointer
"
>
小计:¥
{{
list
.
Final_Price
}}
<img
v-if=
"item.PaymentTime==''"
@
click=
"EditPrice(item,1,list)"
<img
v-if=
"item.PaymentTime==''"
@
click=
"EditPrice(item,1,list)"
src=
"../../assets/img/userman/edit1.png"
alt=
""
>
src=
"../../assets/img/userman/edit1.png"
alt=
""
>
</span>
</span>
<span
style=
""
>
商品成本:¥
{{
list
.
CostMoney
}}
<span
style=
"
cursor:pointer
"
>
商品成本:¥
{{
list
.
CostMoney
}}
<img
v-if=
"item.OrderStatus!==7"
@
click=
"costBtn(list,1)"
<img
v-if=
"item.OrderStatus!==7"
@
click=
"costBtn(list,1)"
src=
"../../assets/img/userman/edit1.png"
alt=
""
>
src=
"../../assets/img/userman/edit1.png"
alt=
""
>
</span>
</span>
<span
style=
""
>
运费成本:¥
{{
list
.
FreightCostMoney
>
0
?
list
.
FreightCostMoney
:
list
.
FreightMoney
}}
<span
style=
"
cursor:pointer
"
>
运费成本:¥
{{
list
.
FreightCostMoney
>
0
?
list
.
FreightCostMoney
:
list
.
FreightMoney
}}
<img
v-if=
"item.OrderStatus!==7"
@
click=
"costBtn(list,2)"
<img
v-if=
"item.OrderStatus!==7"
@
click=
"costBtn(list,2)"
src=
"../../assets/img/userman/edit1.png"
alt=
""
>
src=
"../../assets/img/userman/edit1.png"
alt=
""
>
</span>
</span>
<span
style=
""
>
供应商:
{{
list
.
SupplierName
!=
null
?
list
.
SupplierName
:
''
}}
</span>
<span
style=
"cursor:pointer"
>
供应商:
{{
list
.
SupplierName
!=
null
?
list
.
SupplierName
:
''
}}
<img
v-if=
"item.OrderStatus!==7"
@
click=
"UpdateSuplier(list)"
src=
"../../assets/img/userman/edit1.png"
alt=
""
>
</span>
</div>
</div>
<div
flex=
"cross:center main:center"
>
数量:x
{{
list
.
Number
}}
</div>
<div
flex=
"cross:center main:center"
>
数量:x
{{
list
.
Number
}}
</div>
</div>
</div>
...
@@ -483,6 +486,22 @@
...
@@ -483,6 +486,22 @@
<el-button
size=
"small"
type=
"primary"
@
click=
"costForm('costMsg')"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"costForm('costMsg')"
>
确 定
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
<!-- 商品 供应商修改 -->
<el-dialog
title=
"修改供应商"
:visible
.
sync=
"upSupliDilog"
width=
"400px"
>
<el-form
label-width=
"90px"
>
<el-form-item
label=
"供应商"
>
<el-select
filterable
v-model=
"SupplierId"
size=
"small"
placeholder=
"请选择"
>
<el-option
v-for=
"item in SuplierList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
>
</el-option>
</el-select>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"upSupliDilog = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"SaveSuplier"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -659,7 +678,10 @@
...
@@ -659,7 +678,10 @@
hszDig
:
false
,
hszDig
:
false
,
hszMsg
:
{},
hszMsg
:
{},
btnLoad
:
false
,
btnLoad
:
false
,
upSupliDilog
:
false
,
// 修改供应商弹窗
SuplierList
:[],
// 供应商下拉数据
SupplierId
:
0
,
//公用供应商id 给弹窗用
CommonId
:
0
,
//公用id 给弹窗用
}
}
},
},
created
()
{
created
()
{
...
@@ -1366,6 +1388,38 @@
...
@@ -1366,6 +1388,38 @@
}
}
});
});
},
},
//获取供应商下拉值
getSupplierList
()
{
this
.
apipost
(
"/api/Supplier/GetSupplierAllList"
,
{},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
SuplierList
=
res
.
data
.
data
;
}
});
},
//修改供应商
UpdateSuplier
(
item
){
this
.
upSupliDilog
=
true
;
this
.
SupplierId
=
item
.
SupplierId
;
this
.
CommonId
=
item
.
Id
;
this
.
getSupplierList
();
},
//保存供应商
SaveSuplier
(){
let
msg
=
{
Id
:
this
.
CommonId
,
SupplierId
:
this
.
SupplierId
}
this
.
apipost
(
"/api/Order/SetOrderSupplierId"
,
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
upSupliDilog
=
false
;
this
.
getList
();
}
});
}
},
},
};
};
...
...
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