Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
srm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
aship
srm
Commits
3c596c25
Commit
3c596c25
authored
Aug 27, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aship/aship#5 防伪码功能-调整
parent
3b0221dc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
query.html
...n/resources/static/app/srm/purchaseOrder/query/query.html
+1
-1
query.js
...ain/resources/static/app/srm/purchaseOrder/query/query.js
+7
-1
No files found.
src/main/resources/static/app/srm/purchaseOrder/query/query.html
View file @
3c596c25
...
@@ -157,7 +157,7 @@
...
@@ -157,7 +157,7 @@
</div>
</div>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
<button
class=
"btn btn-primary"
type=
"button"
ng-click=
"genBarcodeClick()"
>
确认
</button>
<button
class=
"btn btn-primary"
type=
"button"
ng-click=
"genBarcodeClick()"
ng-disabled=
"genBarcodeClickLoading"
>
确认
</button>
<button
class=
"btn btn-primary"
type=
"button"
data-dismiss=
"modal"
>
取消
</button>
<button
class=
"btn btn-primary"
type=
"button"
data-dismiss=
"modal"
>
取消
</button>
</div>
</div>
</div>
</div>
...
...
src/main/resources/static/app/srm/purchaseOrder/query/query.js
View file @
3c596c25
...
@@ -26,6 +26,7 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
...
@@ -26,6 +26,7 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
$scope
.
factories
=
[];
$scope
.
factories
=
[];
$scope
.
suppliers
=
[];
$scope
.
suppliers
=
[];
$scope
.
genBarcodeClickLoading
=
false
;
//functions
//functions
$scope
.
query
=
function
()
{
$scope
.
query
=
function
()
{
...
@@ -311,6 +312,7 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
...
@@ -311,6 +312,7 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
};
};
$scope
.
genBarcodeClick
=
function
()
{
$scope
.
genBarcodeClick
=
function
()
{
$scope
.
genBarcodeClickLoading
=
true
;
// check
// check
var
canApplyFlag
=
true
;
var
canApplyFlag
=
true
;
angular
.
forEach
(
$scope
.
barcodeGridOptions
.
data
,
function
(
item
)
{
angular
.
forEach
(
$scope
.
barcodeGridOptions
.
data
,
function
(
item
)
{
...
@@ -345,16 +347,20 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
...
@@ -345,16 +347,20 @@ angular.module('IOne').controller('PurchaseOrderQueryController', function ($sco
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
code
==
'0'
)
{
if
(
response
.
data
.
code
==
'0'
)
{
UtilService
.
showInfo
(
"申请防伪码成功"
);
UtilService
.
showInfo
(
"申请防伪码成功"
);
$scope
.
genBarcodeClickLoading
=
false
;
$
(
'#get-barcode-dlg'
).
modal
(
'hide'
);
$
(
'#get-barcode-dlg'
).
modal
(
'hide'
);
}
else
{
}
else
{
UtilService
.
showError
(
"申请防伪码失败:<br>"
+
response
.
data
.
message
);
UtilService
.
showError
(
"申请防伪码失败:<br>"
+
response
.
data
.
message
);
$scope
.
genBarcodeClickLoading
=
false
;
}
}
}
else
{
}
else
{
UtilService
.
showError
(
"申请防伪码失败:<br>"
+
response
);
UtilService
.
showError
(
"申请防伪码失败:<br>"
+
response
);
$scope
.
genBarcodeClickLoading
=
false
;
}
}
},
function
(
response
)
{
},
function
(
response
)
{
UtilService
.
showError
(
"申请防伪码失败:<br>"
+
response
.
data
);
UtilService
.
showError
(
"申请防伪码失败:<br>"
+
response
.
data
);
$
(
'#get-barcode-dlg'
).
modal
(
'hide'
);
$scope
.
genBarcodeClickLoading
=
false
;
// $('#get-barcode-dlg').modal('hide');
}
}
);
);
};
};
...
...
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