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
7049e848
authored
Apr 27, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
2cf1da52
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
app/Http/Controllers/Api/SupplierReceiptApiController.php
resources/views/script/AddSupplierReceiptScript.blade.php
resources/views/web.blade.php
app/Http/Controllers/Api/SupplierReceiptApiController.php
View file @
7049e848
...
...
@@ -97,10 +97,15 @@ class SupplierReceiptApiController extends Controller
//修改供应商为审核状态
$supplierId
=
$model
->
where
(
'receipt_id'
,
$receiptId
)
->
value
(
'supplier_id'
);
$supplierModel
=
new
SupplierChannelModel
();
$supplierStatus
=
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
value
(
'status'
);
//不等于-1的时候是第一次新增供应商,单独银行信息,不需要修改状态
if
(
$supplierStatus
!=
SupplierChannelModel
::
STATUS_PENDING
)
{
$supplierModel
=
new
SupplierChannelModel
();
$supplierModel
->
where
(
'supplier_id'
,
$supplierId
)
->
update
([
'update_time'
=>
time
(),
'status'
=>
1
,
]);
}
$this
->
response
(
0
,
'操作成功'
);
}
$this
->
response
(
-
1
,
'操作失败'
);
...
...
resources/views/script/AddSupplierReceiptScript.blade.php
View file @
7049e848
...
...
@@ -6,7 +6,8 @@
const
admin
=
layui
.
admin
;
//提交数据
form
.
on
(
'submit(addSupplierReceipt)'
,
function
(
data
)
{
layer
.
confirm
(
'确定要保存银行信息吗?一旦保存,该供应商就会再次进入审核阶段'
,
function
(
index
)
{
// layer.confirm('确定要保存银行信息吗?一旦保存,该供应商就会再次进入审核阶段', function (index) {
layer
.
confirm
(
'确定要保存银行信息吗?'
,
function
(
index
)
{
let
res
=
ajax
(
'/api/supplier_receipt/AddSupplierReceipt'
,
data
.
field
);
if
(
!
res
)
{
layer
.
msg
(
'网络错误,请重试'
,
{
icon
:
6
});
...
...
resources/views/web.blade.php
View file @
7049e848
...
...
@@ -67,7 +67,13 @@
// })
// // d.layId表示当前tab的url
// //判断列表是否需要刷新
// if (d.layId.search('SupplierList') !== -1) {
if
(
d
.
layId
.
search
(
'SupplierList'
)
!==
-
1
)
{
// alert(123);
// $(function () {
// $('.admin-iframe').contents().find('#getSupplierListButton').click()
// })
}
// }
// let needFreshList = admin.getTempData("needFreshList");
// if (needFreshList) {
// // admin.putTempData("needFreshList",0)
...
...
@@ -85,6 +91,7 @@
// console.log(data)
// }
// }
// console.log($('.admin-iframe').contents().find('#getSupplierListButton').click());
});
});
</script>
...
...
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