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
18b56e6a
authored
Jul 10, 2025
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化寄售库存管理界面,调整条件判断和代码格式,提升可读性
parent
8105f669
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
src/views/consignmentManagement/consignmentInventory.vue
src/views/consignmentManagement/consignmentInventory.vue
View file @
18b56e6a
...
...
@@ -95,7 +95,7 @@
<el-table-column
prop=
"in_transit_stock"
label=
"在途库存"
width=
"100"
align=
"center"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"consignment_safe_stock"
label=
"安全库存"
width=
"100"
align=
"center"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"cn_ladder_price"
label=
"含税销售价(¥)"
width=
"120"
align=
"center"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.cn_ladder_price && scope.row.cn_ladder_price.length
>
0"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.cn_ladder_price && scope.row.cn_ladder_price.length
>
0"
>
<el-popover
effect=
"light"
trigger=
"hover"
placement=
"bottom"
>
<p
class=
"row"
v-for=
"item in scope.row.cn_ladder_price"
>
<span>
{{
item
.
purchases
}}
+
</span>
...
...
@@ -106,7 +106,7 @@
</
template
>
</el-table-column>
<el-table-column
prop=
"hk_ladder_price"
label=
"美金销售价($)"
width=
"120"
align=
"center"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.cn_ladder_price && scope.row.cn_ladder_price.length
>
0"
>
<
template
slot-scope=
"scope"
v-if=
"scope.row.cn_ladder_price && scope.row.cn_ladder_price.length
>
0"
>
<el-popover
effect=
"light"
trigger=
"hover"
placement=
"bottom"
>
<p
class=
"row"
v-for=
"item in scope.row.hk_ladder_price"
>
<span>
{{
item
.
purchases
}}
+
</span>
...
...
@@ -162,8 +162,8 @@
<el-table-column
prop=
"source_val"
label=
"来源"
width=
"150"
align=
"center"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"goods_status"
label=
"状态"
width=
"100"
align=
"center"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.goods_status
==
1"
class=
"f-green"
>
上架
</span>
<span
v-else-if=
"scope.row.goods_status
==
3"
>
下架
</span>
<span
v-if=
"scope.row.goods_status
==
1"
class=
"f-green"
>
上架
</span>
<span
v-else-if=
"scope.row.goods_status
==
3"
>
下架
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"cp_time"
label=
"上架有效期"
width=
"150"
align=
"center"
:show-overflow-tooltip=
"true"
></el-table-column>
...
...
@@ -233,8 +233,8 @@
<el-table-column
prop=
"brand_name"
label=
"品牌"
min-width=
"20%"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"goods_status"
label=
"状态"
width=
"80"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.goods_status
==
1"
class=
"f-green"
>
上架
</span>
<span
v-else-if=
"scope.row.goods_status
==
3"
>
下架
</span>
<span
v-if=
"scope.row.goods_status
==
1"
class=
"f-green"
>
上架
</span>
<span
v-else-if=
"scope.row.goods_status
==
3"
>
下架
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"cp_time_temp"
label=
"上架有效期"
width=
"160"
:show-overflow-tooltip=
"true"
></el-table-column>
...
...
@@ -301,7 +301,7 @@
<el-table-column
prop=
"create_time"
label=
"时间"
min-width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"message"
label=
"操作说明"
min-width=
"150"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
修改了价格,点击查看
<a
style=
"color: #409EFF"
href=
"javascript:;"
@
click=
"handleDetailClick(scope.row.message.pre_data,scope.row.message.current_data)"
>
修改详情
</a></span>
<span>
修改了价格,点击查看
<a
style=
"color: #409EFF"
href=
"javascript:;"
@
click=
"handleDetailClick(scope.row.message.pre_data,
scope.row.message.current_data)"
>
修改详情
</a></span>
</
template
>
</el-table-column>
<el-table-column
prop=
"operator"
label=
"操作人"
min-width=
"150"
align=
"center"
></el-table-column>
...
...
@@ -366,20 +366,20 @@
<el-button
type=
"primary"
@
click=
"addConsignmentRecallFromStock"
>
确 定
</el-button>
</span>
</el-dialog>
<Menu/>
<Menu
/>
</div>
</template>
<
script
>
import
Vue
from
'vue'
;
import
Menu
from
"@/components/menu.vue"
;
import
{
Autocomplete
,
Button
,
DatePicker
,
Dialog
,
Dropdown
,
DropdownItem
,
DropdownMenu
,
Form
,
FormItem
,
Input
,
Link
,
Message
,
Option
,
Pagination
,
Popover
,
Select
,
Table
,
TableColumn
,
Tag
,
Tooltip
,
Upload
}
from
'element-ui'
import
Util
from
"@/tool"
;
import
{
NODE_ENVS
}
from
"@/ajax"
;
import
Vue
from
'vue'
;
import
Menu
from
"@/components/menu.vue"
;
import
{
Autocomplete
,
Button
,
DatePicker
,
Dialog
,
Dropdown
,
DropdownItem
,
DropdownMenu
,
Form
,
FormItem
,
Input
,
Link
,
Message
,
Option
,
Pagination
,
Popover
,
Select
,
Table
,
TableColumn
,
Tag
,
Tooltip
,
Upload
}
from
'element-ui'
import
Util
from
"@/tool"
;
import
{
NODE_ENVS
}
from
"@/ajax"
;
Vue
.
prototype
.
$message
=
Message
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
).
use
(
Tooltip
).
use
(
Autocomplete
).
use
(
Tag
).
use
(
Link
)
Vue
.
use
(
DatePicker
).
use
(
Upload
).
use
(
Dropdown
).
use
(
DropdownMenu
).
use
(
DropdownItem
).
use
(
TableColumn
).
use
(
Table
).
use
(
Pagination
).
use
(
Popover
)
export
default
{
Vue
.
prototype
.
$message
=
Message
Vue
.
use
(
Button
).
use
(
Form
).
use
(
Select
).
use
(
Option
).
use
(
Input
).
use
(
FormItem
).
use
(
Dialog
).
use
(
Tooltip
).
use
(
Autocomplete
).
use
(
Tag
).
use
(
Link
)
Vue
.
use
(
DatePicker
).
use
(
Upload
).
use
(
Dropdown
).
use
(
DropdownMenu
).
use
(
DropdownItem
).
use
(
TableColumn
).
use
(
Table
).
use
(
Pagination
).
use
(
Popover
)
export
default
{
name
:
"consignmentInventory"
,
data
()
{
return
{
...
...
@@ -1121,8 +1121,8 @@ export default {
components
:
{
Menu
}
};
};
</
script
>
<
style
scoped
>
@import
"../../assets/css/store/list.min.css"
;
@import
"../../assets/css/store/list.min.css"
;
</
style
>
\ No newline at end of file
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