Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
ypt_mgw_local
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
苏星豪
ypt_mgw_local
Commits
b2ebeaa3
提交
b2ebeaa3
authored
8月 08, 2024
作者:
李思鑫
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add 经销商出入口查询表 显示营销区域
上级
580d7dc9
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
18 行增加
和
2 行删除
+18
-2
views.py
inventory/views.py
+13
-1
agent_stk_query.html
templates/inventory/agent_stk_query.html
+5
-1
没有找到文件。
inventory/views.py
浏览文件 @
b2ebeaa3
...
...
@@ -7741,7 +7741,8 @@ def agent_stk_query(request):
x,
h,
P,
b.remark
b.remark,
b.company_id
FROM
(
SELECT
...
...
@@ -7785,6 +7786,7 @@ def agent_stk_query(request):
cur
.
execute
(
s
)
data
=
[]
for
r
in
cur
.
fetchall
():
#南海球杆
if
cid
==
194378
:
data
.
append
([
"<a href='inventory/agent/details/"
+
str
(
r
[
0
])
+
"/'>"
+
r
[
1
]
+
"</a>"
,
# 日期
...
...
@@ -7798,11 +7800,21 @@ def agent_stk_query(request):
r
[
11
],
# 备注
])
else
:
company_id
=
r
[
12
]
cur
.
execute
(
f
"""
select
coalesce((select name from company_salesdivision where id = c.division_id and is_delete=false),''),
coalesce((select name from company_subsaldivision where id = c.sub_division_id and is_delete=false),'')
from logistics.company_company c where id= {company_id}
"""
)
row
=
cur
.
fetchone
()
data
.
append
([
"<a href='inventory/agent/details/"
+
str
(
r
[
0
])
+
"/'>"
+
r
[
1
]
+
"</a>"
,
# 日期
r
[
2
],
# 单据类别
r
[
3
],
# 单据编号
r
[
4
],
# 产品名称
row
[
0
],
# 战区
row
[
1
],
#分区
r
[
5
],
# 操作方
r
[
6
],
# 客户名称
r
[
7
],
# 操作人
...
...
templates/inventory/agent_stk_query.html
浏览文件 @
b2ebeaa3
...
...
@@ -125,7 +125,9 @@
<th
style=
'width:10%'
>
{% trans "日期时间" %}
</th>
<th
style=
'width:10%'
>
{% trans "单据类别" %}
</th>
<th
style=
'width:6%'
>
{% trans "单据编号" %}
</th>
<th
style=
'width:20%'
>
{% trans "产品名称" %}
</th>
<th
style=
'width:10%'
>
{% trans "产品名称" %}
</th>
<th>
{% trans "所属战区" %}
</th>
<th>
{% trans "所属分区" %}
</th>
<th>
{% trans "操作商" %}
</th>
<th>
{% trans "客户名称" %}
</th>
<th
style=
'width:6%'
>
{% trans "操作人" %}
</th>
...
...
@@ -141,6 +143,8 @@
<th><input
type=
"text"
placeholder=
"{% trans "
单据类别"
%}"
></th>
<th><input
type=
"text"
placeholder=
"{% trans "
单据编号"
%}"
></th>
<th><input
type=
"text"
placeholder=
"{% trans "
产品名称"
%}"
></th>
<th><input
type=
"text"
placeholder=
"{% trans "
所属战区"
%}"
></th>
<th><input
type=
"text"
placeholder=
"{% trans "
所属分区"
%}"
></th>
<th><input
type=
"text"
placeholder=
"{% trans "
操作商"
%}"
></th>
<th><input
type=
"text"
placeholder=
"{% trans "
客户名称"
%}"
></th>
<th><input
type=
"text"
placeholder=
"{% trans "
操作人"
%}"
></th>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论