Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
d56eda19
authored
Feb 17, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
33a56d4f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
541 additions
and
0 deletions
storage/framework/views/2dc72a0f8c078eed38f385b7598d05290df481c2.php
storage/framework/views/5238497145456f693cc29f1fe0a7ff8fb43fd269.php
storage/framework/views/587faa134dc1f8953abf61cb2995b8264ba36a12.php
storage/framework/views/63397d1ebe145992083a1105367395dcd7ab2c7d.php
storage/framework/views/946347aaed783d5b9340dc21b99527c1d0f3bda0.php
storage/framework/views/a70b8ea500ee707d25c78fc7e41c2f0c5a7d59b1.php
storage/framework/views/a9a100dc5f593689af95c3dfac73c68461fa3a6d.php
storage/framework/views/aca7f49a5e12a56a465ae1b4ec0dd99f254e54b0.php
storage/framework/views/d4d13e9bcdea7366e4952031431aae4b22f055c1.php
storage/framework/views/2dc72a0f8c078eed38f385b7598d05290df481c2.php
0 → 100644
View file @
d56eda19
<div
class=
"layui-header"
>
<div
class=
"layui-logo"
>
<img
src=
"/images/warehouse.png"
/>
<cite>
<?php
echo
e
(
config
(
'website.webTitle'
));
?>
</cite>
</div>
<ul
class=
"layui-nav layui-layout-left"
>
<li
class=
"layui-nav-item"
lay-unselect
>
<a
ew-event=
"flexible"
title=
"侧边伸缩"
><i
class=
"layui-icon layui-icon-shrink-right"
></i></a>
</li>
<li
class=
"layui-nav-item"
lay-unselect
>
<a
ew-event=
"refresh"
title=
"刷新"
><i
class=
"layui-icon layui-icon-refresh-3"
></i></a>
</li>
</ul>
<ul
class=
"layui-nav layui-layout-right"
>
<?php
/* <li class="layui-nav-item" lay-unselect>*/
?>
<?php
/* <a id="Warehouse">当前仓库: A仓库</a>*/
?>
<?php
/* <dl class="layui-nav-child">*/
?>
<?php
/* <dd lay-unselect>*/
?>
<?php
/* <a data-id="A" class="SwitchWarehouse">A仓库</a>*/
?>
<?php
/* <a data-id="B" class="SwitchWarehouse">B仓库</a>*/
?>
<?php
/* </dd>*/
?>
<?php
/* </dl>*/
?>
<?php
/* </li>*/
?>
<li
class=
"layui-nav-item layui-hide-xs"
lay-unselect
>
<a
ew-event=
"fullScreen"
title=
"全屏"
><i
class=
"layui-icon layui-icon-screen-full"
></i></a>
</li>
<?php
/* <li class="layui-nav-item layui-hide-xs" lay-unselect>*/
?>
<?php
/* <a ew-event="lockScreen" title="锁屏"><i class="layui-icon layui-icon-password"></i></a>*/
?>
<?php
/* </li>*/
?>
<li
class=
"layui-nav-item"
lay-unselect
>
<a>
<img
src=
"
<?php
echo
e
(
isset
(
$header
)
?
$header
:
'/images/missing_face.png'
);
?>
"
class=
"layui-nav-img"
>
<cite>
<?php
echo
e
(
isset
(
$username
)
?
$username
:
''
);
?>
</cite>
</a>
<dl
class=
"layui-nav-child"
>
<dd
lay-unselect
>
<a
href=
"
<?php
echo
e
(
Config
::
get
(
'website.login'
)[
'logout'
]
.
'?redirect='
.
URL
::
current
()
.
'&from=login'
);
?>
"
style=
"margin-right:10px;"
onclick=
"clearTips()"
><i
class=
"fa fa-sign-out"
></i><span
class=
"nav-label"
>
切换账号
</span></a>
<a
href=
"
<?php
echo
e
(
Config
::
get
(
'website.login'
)[
'logout'
]
.
'?redirect='
.
URL
::
current
()
.
'&from=login'
);
?>
"
onclick=
"clearTips()"
><i
class=
"fa fa-sign-out"
></i><span
class=
"nav-label"
>
退出
</span></a>
</dd>
</dl>
</li>
<li
class=
"layui-nav-item"
lay-unselect
>
<a
ew-event=
""
title=
""
><i
class=
"layui-icon layui-icon-more-vertical"
></i></a>
</li>
</ul>
</div>
<script>
function
clearTips
(){
layui
.
use
([
'admin'
,
'index'
],
function
()
{
let
admin
=
layui
.
admin
;
admin
.
putTempData
(
'has_pop_up_all_channel_user_supplier_tips'
,
0
);
});
}
</script>
\ No newline at end of file
storage/framework/views/5238497145456f693cc29f1fe0a7ff8fb43fd269.php
0 → 100644
View file @
d56eda19
<?php
echo
$__env
->
make
(
'web.supplier.SupplierListFilter'
,
array_except
(
get_defined_vars
(),
array
(
'__data'
,
'__path'
)))
->
render
();
?>
<div
class=
"layui-btn-group demoTable"
style=
"margin-bottom: 15px;margin-top: 15px"
>
<?php
if
(
checkPerm
(
'AddSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"add_supplier"
>
新增
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'DisableSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"disable_supplier"
>
禁用
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'AuditSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"audit_supplier"
>
审核
</button>
<?php
endif
;
?>
<?php
/* <?php if(checkPerm('AllocatePurchaseUser')): ?>*/
?>
<?php
/* <button type="button" class="layui-btn layui-btn-sm" id="allocate_purchase_user">分配渠道员</button>*/
?>
<?php
/* <?php endif; ?>*/
?>
<?php
if
(
checkPerm
(
'BatchAllocatePurchaseUser'
))
:
?>
<?php
/* <button type="button" class="layui-btn layui-btn-sm" id="batch_allocate_purchase_user">批量分配渠道员</button>*/
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"batch_allocate_purchase_user"
>
分配渠道员
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'AllocateChannelUser'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"allocate_channel_user"
>
分配采购员
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'ChangeSupplierIsType'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
title=
"该操作可以将竞调供应商转为正式供应商"
id=
"change_supplier_is_type"
>
转正供应商
</button>
<?php
endif
;
?>
<?php
/* <button type="button" class="layui-btn layui-btn-sm" title="点击确定审核后会进入审核中状态"*/
?>
<?php
/* id="batch_apply_in_review_supplier">*/
?>
<?php
/* 申请审核*/
?>
<?php
/* </button>*/
?>
<?php
if
(
checkPerm
(
'BlockSupplier'
))
:
?>
<?php
/* <button type="button" class="layui-btn layui-btn-sm" id="block_supplier">*/
?>
<?php
/* 拉黑*/
?>
<?php
/* </button>*/
?>
<?php
endif
;
?>
<?php
if
(
request
()
->
user
->
userId
==
1000
||
request
()
->
user
->
userId
==
2082
)
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
title=
"该操作可以将供应商同步到供应商"
id=
"sync_supplier_to_erp"
>
金蝶同步
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
title=
"该操作可以将供应商同步到一体化"
id=
"sync_supplier_to_united"
>
一体化同步
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'ApplySupplierShare'
))
:
?>
<?php
/* <?php if(checkPerm('BlockSupplier')): ?>*/
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"apply_supplier_share"
>
共用申请
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'AuditSupplierShare'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"audit_supplier_share_apply"
>
共用审核
<?php
if
(
!
empty
(
$shareApplyCount
))
:
?>
(
<?php
echo
e
(
$shareApplyCount
);
?>
)
<span
style=
"margin-left: 0"
class=
"layui-badge-dot layui-bg-orange"
></span>
<?php
endif
;
?>
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'BatchAddTag'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"batch_add_tags"
>
新增供应商标签
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'BatchAllocateYunxinChannelUser'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"batch_allocate_yunxin_channel_user"
>
设置SKU采购
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'ExportSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"export_supplier"
>
导出采购员全离职供应商
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'QuerySupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"query_supplier"
>
查询供应商
</button>
<?php
endif
;
?>
<?php
if
(
checkPerm
(
'TransferSupplier'
))
:
?>
<button
type=
"button"
class=
"layui-btn layui-btn-sm"
id=
"transfer_supplier"
>
供应商交接
</button>
<?php
endif
;
?>
</div>
<button
type=
"button"
id=
"refreshWindow"
style=
"display: none"
>
刷新页面
</button>
<table
class=
"layui-table"
id=
"list"
lay-filter=
"list"
></table>
<script>
</script>
<script
type=
"text/html"
id=
"operate"
>
<
div
style
=
"text-align: left;"
>
<?php
if
(
$canAudit
)
:
?>
<
a
href
=
"/supplier/AddSupplier?supplier_id={{ d.supplier_id}}"
class
=
"btn btn-xs btn-outline btn-success"
target
=
"_blank"
>
修改
<
/a
>
<?php
else
:
?>
<
a
href
=
"/supplier/AddSupplier?supplier_id={{ d.supplier_id}}"
class
=
"btn btn-xs btn-outline btn-success"
target
=
"_blank"
>
查看
<
/a
>
<?php
endif
;
?>
<
/div
>
</script>
storage/framework/views/587faa134dc1f8953abf61cb2995b8264ba36a12.php
0 → 100644
View file @
d56eda19
This diff is collapsed.
Click to expand it.
storage/framework/views/63397d1ebe145992083a1105367395dcd7ab2c7d.php
0 → 100644
View file @
d56eda19
<div
class=
"layui-side"
>
<div
class=
"layui-side-scroll"
>
<ul
class=
"layui-nav layui-nav-tree arrow2"
lay-filter=
"admin-side-nav"
lay-shrink=
"all"
>
<?php
if
(
!
empty
(
$menus
))
:
?>
<?php
foreach
(
$menus
as
$k
=>
$v
)
:
?>
<li
class=
"layui-nav-item"
>
<?php
if
(
!
empty
(
$v
[
'title'
]))
:
?>
<?php
if
(
!
empty
(
$v
[
'target'
]))
:
?>
<a
<?php
if
(
!
empty
(
$v
[
'href'
]))
:
?>
href=
"
<?php
echo
e
(
$v
[
'href'
]);
?>
"
target=
"_blank"
<?php
endif
;
?>
>
<i
class=
"layui-icon
<?php
echo
e
(
isset
(
$v
[
'class'
])
?
$v
[
'class'
]
:
''
);
?>
"
></i>
 
<cite>
<?php
echo
e
(
isset
(
$v
[
'title'
])
?
$v
[
'title'
]
:
''
);
?>
</cite>
</a>
<?php
else
:
?>
<a
<?php
if
(
!
empty
(
$v
[
'href'
]))
:
?>
lay-href=
"
<?php
echo
e
(
iframeUrl
(
$v
[
'href'
]));
?>
"
<?php
endif
;
?>
>
<i
class=
"layui-icon
<?php
echo
e
(
isset
(
$v
[
'class'
])
?
$v
[
'class'
]
:
''
);
?>
"
></i>
 
<cite>
<?php
echo
e
(
isset
(
$v
[
'title'
])
?
$v
[
'title'
]
:
''
);
?>
</cite>
</a>
<?php
endif
;
?>
<?php
endif
;
?>
<?php
echo
$__env
->
make
(
"layouts.menu"
,
array_except
(
get_defined_vars
(),
array
(
'__data'
,
'__path'
)))
->
render
();
?>
</li>
<?php
endforeach
;
?>
<?php
endif
;
?>
</ul>
</div>
</div>
\ No newline at end of file
storage/framework/views/946347aaed783d5b9340dc21b99527c1d0f3bda0.php
0 → 100644
View file @
d56eda19
<?php
if
(
!
empty
(
$v
[
'childs'
]))
:
?>
<dl
class=
"layui-nav-child"
>
<?php
foreach
(
$v
[
'childs'
]
as
$k
=>
$v
)
:
?>
<dd>
<a
class=
"layui-icon
<?php
echo
e
(
isset
(
$v
[
'class'
])
?
$v
[
'class'
]
:
''
);
?>
"
<?php
if
(
!
empty
(
$v
[
'href'
]))
:
?>
lay-href=
"
<?php
echo
e
(
iframeUrl
(
$v
[
'href'
]));
?>
"
<?php
endif
;
?>
>
<?php
echo
e
(
$v
[
'title'
]);
?>
</a>
<?php
echo
$__env
->
make
(
"layouts.menu"
,
array_except
(
get_defined_vars
(),
array
(
'__data'
,
'__path'
)))
->
render
();
?>
</dd>
<?php
endforeach
;
?>
</dl>
<?php
endif
;
?>
\ No newline at end of file
storage/framework/views/a70b8ea500ee707d25c78fc7e41c2f0c5a7d59b1.php
0 → 100644
View file @
d56eda19
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1"
>
<title>
<?php
echo
e
(
config
(
'website.webTitle'
));
?>
|
<?php
echo
e
(
isset
(
$title
)
?
$title
:
''
);
?>
</title>
<script
src=
"/js/jquery-2.2.1.js"
></script>
<?php
/* <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>*/
?>
<link
rel=
"stylesheet"
href=
"/plugins/assets/libs/layui/css/layui.css"
/>
<link
rel=
"stylesheet"
href=
"/plugins/assets/module/admin.css?v=317"
/>
<script
type=
"text/javascript"
src=
"https://frq.ichunt.net/js/web/backpopx.js"
></script>
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<style>
.layui-layout-admin
.layui-body
{
buttom
:
1px
;
}
input
:focus
,
textarea
:focus
{
outline
:
1px
solid
#AFECAB
;
}
</style>
<body
class=
"layui-layout-body"
>
<div
class=
"layui-layout layui-layout-admin"
>
<!-- 头部 -->
<?php
echo
$__env
->
make
(
'layouts.header'
,
array_except
(
get_defined_vars
(),
array
(
'__data'
,
'__path'
)))
->
render
();
?>
<!-- 侧边栏 -->
<?php
echo
$__env
->
make
(
'layouts.navigation'
,
array_except
(
get_defined_vars
(),
array
(
'__data'
,
'__path'
)))
->
render
();
?>
<!-- 主体部分 -->
<div
class=
"layui-body"
>
</div>
</div>
<!-- 加载动画 -->
<!-- js部分 -->
<script
type=
"text/javascript"
src=
"/plugins/assets/libs/layui/layui.js"
></script>
<script
type=
"text/javascript"
src=
"/plugins/assets/js/common.js?v=317"
></script>
<script
type=
"text/javascript"
src=
"/plugins/assets/js/alpine.js"
></script>
<script>
layui
.
use
([
'index'
,
'layer'
,
'admin'
],
function
()
{
var
$
=
layui
.
jquery
;
var
layer
=
layui
.
layer
;
var
index
=
layui
.
index
;
var
admin
=
layui
.
admin
;
if
(
layui
.
admin
.
setter
.
pageTabs
&&
layui
.
admin
.
setter
.
tabAutoRefresh
==
true
)
{
$
(
'.layui-layout-admin>.layui-body>.layui-tab'
).
attr
(
'lay-autoRefresh'
,
'true'
);
}
let
jumpUrl
=
getQueryVariable
(
'jump_url'
);
if
(
jumpUrl
)
{
index
.
loadHome
({
menuPath
:
jumpUrl
+
location
.
search
+
'&view=iframe'
,
menuName
:
'
<
i
class
=
"layui-icon layui-icon-home"
><
/i>
'
});
}
else
{
// 默认加载主页
index
.
loadHome
({
menuPath
:
'/index/Index?view=iframe'
,
menuName
:
'
<
i
class
=
"layui-icon layui-icon-home"
><
/i>
'
});
}
admin
.
on
(
'tab'
,
function
(
d
)
{
//判断列表是否需要刷新
if
(
d
.
layId
.
search
(
'SupplierList'
)
!==
-
1
)
{
setTimeout
(
function
()
{
$
(
'.admin-iframe'
).
contents
().
find
(
'#refreshWindow'
).
click
()
},
10
);
}
//判断详情是否需要刷新
if
(
d
.
layId
.
search
(
'SupplierDetail'
)
!==
-
1
)
{
let
vars
=
d
.
layId
.
split
(
"&"
);
let
supplierFlag
=
vars
[
1
];
let
data
=
admin
.
getTempData
(
"needFreshDetail_"
+
supplierFlag
);
if
(
data
)
{
admin
.
refresh
();
admin
.
putTempData
(
"needFreshDetail_"
+
supplierFlag
,
null
);
}
}
if
(
d
.
layId
.
search
(
'SupplierApplyList'
)
!==
-
1
)
{
setTimeout
(
function
()
{
$
(
'.admin-iframe'
).
contents
().
find
(
'#refreshWindow'
).
click
()
},
10
);
}
});
});
</script>
</body>
</html>
storage/framework/views/a9a100dc5f593689af95c3dfac73c68461fa3a6d.php
0 → 100644
View file @
d56eda19
<div
class=
"layui-row"
>
<div
class=
"layui-col-md3"
>
<h2><b>
供应商新增统计
</b></h2>
</div>
<div
class=
"layui-col-md9"
style=
"text-align: right"
>
</div>
</div>
<div
style=
"width: 100%"
>
<div
id=
"main"
style=
"width: 100%;height:400px;"
></div>
</div>
<script
src=
"/plugins/echarts/echarts.min.js"
></script>
<script>
let
myChart
=
echarts
.
init
(
document
.
getElementById
(
'main'
));
// 指定图表的配置项和数据
let
option
=
{
tooltip
:
{
trigger
:
'axis'
},
legend
:
{
data
:
[
'所有新增供应商'
,
'我的新增供应商'
]
},
toolbox
:
{
show
:
true
,
feature
:
{
dataZoom
:
{
yAxisIndex
:
'none'
},
dataView
:
{
readOnly
:
false
},
magicType
:
{
type
:
[
'line'
,
'bar'
]},
restore
:
{},
saveAsImage
:
{}
}
},
xAxis
:
{
type
:
'category'
,
boundaryGap
:
false
,
data
:
<?php
echo
json_encode
(
$dates
);
?>
},
yAxis
:
{
type
:
'value'
,
axisLabel
:
{
formatter
:
'{value}'
}
},
series
:
[
{
name
:
'所有新增供应商'
,
type
:
'line'
,
data
:
<?php
echo
e
(
json_encode
(
$all_increase_statistics
));
?>
,
markPoint
:
{
data
:
[
{
type
:
'max'
,
name
:
'最大值'
},
{
type
:
'min'
,
name
:
'最小值'
}
]
},
markLine
:
{
data
:
[
{
type
:
'average'
,
name
:
'平均值'
}
]
}
},
{
name
:
'我的新增供应商'
,
type
:
'line'
,
data
:
<?php
echo
e
(
json_encode
(
$user_increase_statistics
));
?>
,
markPoint
:
{
data
:
[
{
name
:
'周最低'
,
value
:
-
2
,
xAxis
:
1
,
yAxis
:
-
1.5
}
]
},
markLine
:
{
data
:
[
{
type
:
'average'
,
name
:
'平均值'
},
[{
symbol
:
'none'
,
x
:
'90%'
,
yAxis
:
'max'
},
{
symbol
:
'circle'
,
label
:
{
position
:
'start'
,
formatter
:
'最大值'
},
type
:
'max'
,
name
:
'最高点'
}]
]
}
}
]
};
// 使用刚指定的配置项和数据显示图表。
myChart
.
setOption
(
option
);
layui
.
use
([
'admin'
,
'index'
],
function
()
{
let
index
=
layui
.
index
;
let
admin
=
layui
.
admin
;
});
</script>
storage/framework/views/aca7f49a5e12a56a465ae1b4ec0dd99f254e54b0.php
0 → 100644
View file @
d56eda19
<script>
layui
.
use
([
'table'
,
'form'
,
'element'
,
'layer'
],
function
()
{
var
table
=
layui
.
table
;
var
form
=
layui
.
form
;
table
.
render
({
elem
:
'#list'
,
url
:
'/api/supplier/GetSupplierList'
,
method
:
'post'
,
cellMinWidth
:
80
//全局定义常规单元格的最小宽度
,
where
:
{
status
:
1
}
,
size
:
'sm'
,
limit
:
8
,
loading
:
true
,
first
:
true
//不显示首页
,
last
:
false
//不显示尾页
,
cols
:
[[
{
field
:
'supplier_code'
,
title
:
'供应商编码'
,
align
:
'center'
},
{
field
:
'supplier_name'
,
title
:
'供应商名称'
,
align
:
'center'
},
{
field
:
'supplier_group'
,
title
:
'供应商性质'
,
align
:
'center'
},
{
field
:
'stockup_type'
,
title
:
'合作类型'
,
align
:
'center'
},
{
field
:
'channel_username'
,
title
:
'渠道开发员'
,
align
:
'center'
},
{
field
:
'create_name'
,
title
:
'创建人'
,
align
:
'center'
},
{
field
:
'create_time'
,
title
:
'创建时间'
,
align
:
'center'
},
{
field
:
'status_name'
,
title
:
'状态'
,
align
:
'center'
},
{
field
:
'operate'
,
title
:
'操作'
,
templet
:
'#operate'
,
align
:
'center'
},
]]
,
id
:
'SupplierList'
,
page
:
false
});
form
.
on
(
'submit(load)'
,
function
(
data
)
{
form
.
render
();
//执行重载
table
.
reload
(
'SupplierList'
,
{
page
:
{
curr
:
1
}
,
where
:
data
.
field
});
return
false
;
});
table
.
on
(
'tool(list)'
,
function
(
obj
)
{
let
data
=
obj
.
data
;
let
layEvent
=
obj
.
event
;
let
datas
=
{
group_id
:
data
.
group_id
,
id
:
data
.
id
};
if
(
layEvent
===
'edit'
)
{
window
.
location
=
'/supplier'
}
else
if
(
layEvent
===
'Del'
)
{
datas
.
status
=
3
;
up_status
(
datas
,
'删除'
);
}
});
function
up_status
(
data
,
info
)
{
layer
.
confirm
(
'确定'
+
info
+
'组成员吗'
,
{
title
:
info
+
'组成员'
,
btn
:
[
'确定'
,
'取消'
]
},
function
()
{
layer
.
closeAll
(
'dialog'
);
// 确定时关闭弹框
let
res
=
ajax
(
'/api/save_group_user'
,
data
);
if
(
!
res
)
{
return
layer
.
msg
(
'禁用失败'
,
{
icon
:
6
});
}
else
{
layer
.
msg
(
res
.
errmsg
,
{
icon
:
6
});
$
(
'.load'
).
click
();
}
},
function
()
{
layer
.
close
();
});
}
//我的供应商----------------------------------------------------
table
.
render
({
elem
:
'#own'
,
url
:
'/api/supplier/GetSupplierList'
,
method
:
'post'
,
cellMinWidth
:
80
//全局定义常规单元格的最小宽度
,
where
:
{
source_type
:
'own'
}
,
limit
:
8
,
loading
:
true
,
first
:
true
//不显示首页
,
last
:
false
//不显示尾页
,
cols
:
[[
{
field
:
'supplier_code'
,
title
:
'供应商编码'
,
align
:
'center'
,
width
:
120
},
{
field
:
'supplier_name'
,
title
:
'供应商名称'
,
align
:
'center'
},
{
field
:
'supplier_group'
,
title
:
'供应商性质'
,
align
:
'center'
,
width
:
120
},
{
field
:
'stockup_type'
,
title
:
'合作类型'
,
align
:
'center'
,
width
:
100
},
{
field
:
'channel_username'
,
title
:
'采购员'
,
align
:
'center'
,
width
:
130
},
{
field
:
'create_time'
,
title
:
'创建时间'
,
align
:
'center'
,
width
:
170
},
{
field
:
'purchase_username'
,
title
:
'渠道开发员'
,
align
:
'center'
,
width
:
130
},
{
field
:
'audit_time'
,
title
:
'审批时间'
,
align
:
'center'
,
width
:
170
},
{
field
:
'status_name'
,
title
:
'状态'
,
align
:
'center'
,
width
:
80
,
templet
:
function
(
data
)
{
if
(
data
.
status_name
===
"驳回"
)
{
return
"
<
span
style
=
'color: red'
title
=
'" + data.reject_reason + "'
>
" + data.status_name + "
<
/sspan>"
;
}
return
data
.
status_name
;
}
},
{
field
:
'operate'
,
title
:
'操作'
,
templet
:
'#operate_own'
,
align
:
'center'
,
width
:
180
},
]]
,
id
:
'SupplierList'
,
page
:
false
});
form
.
on
(
'submit(load)'
,
function
(
data
)
{
form
.
render
();
//执行重载
table
.
reload
(
'SupplierList'
,
{
page
:
{
curr
:
1
}
,
where
:
data
.
field
});
return
false
;
});
table
.
on
(
'tool(own)'
,
function
(
obj
)
{
let
data
=
obj
.
data
;
let
layEvent
=
obj
.
event
;
if
(
layEvent
===
'draft'
)
{
let
map
=
{
supplier_id
:
data
.
supplier_id
,
status
:
-
1
};
updateStatus
(
map
,
'转为草稿'
);
}
});
});
</script>
\ No newline at end of file
storage/framework/views/d4d13e9bcdea7366e4952031431aae4b22f055c1.php
0 → 100644
View file @
d56eda19
This diff is collapsed.
Click to expand it.
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