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
66816545
Commit
66816545
authored
Aug 15, 2019
by
顾俭
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '#3'
parents
cc2c1215
e7694d10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
query.html
src/main/resources/static/app/srm/barcode/query/query.html
+2
-2
query.js
src/main/resources/static/app/srm/barcode/query/query.js
+2
-2
No files found.
src/main/resources/static/app/srm/barcode/query/query.html
View file @
66816545
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<div
class=
"col-md-4"
>
<div
class=
"col-md-4"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label>
营运中心
</label>
<label>
营运中心
</label>
<select
class=
"form-control select2"
ng-model=
"queryCondition.factory.
id"
required
style=
"width: 100%;
"
>
<select
class=
"form-control select2"
ng-model=
"queryCondition.factory.
factoryUid"
required
style=
"width: 100%;"
ng-change=
"barcodeChange()
"
>
<option
ng-repeat=
"
factory in factories"
value=
"{{factory.
id}}"
>
{{factory.name}}
</option>
<option
ng-repeat=
"
factory in factories"
value=
"{{factory.factoryU
id}}"
>
{{factory.name}}
</option>
</select>
</select>
</div>
</div>
</div>
</div>
...
...
src/main/resources/static/app/srm/barcode/query/query.js
View file @
66816545
angular
.
module
(
'IOne'
).
controller
(
'BarcodeQueryController'
,
function
(
$scope
,
Constants
,
$interval
,
$uibModal
,
UtilService
,
angular
.
module
(
'IOne'
).
controller
(
'BarcodeQueryController'
,
function
(
$scope
,
Constants
,
$interval
,
$uibModal
,
UtilService
,
BaseFactoryFileService
,
AuthService
,
BarcodeService
)
{
BaseFactoryFileService
,
AuthService
,
BarcodeService
)
{
$scope
.
queryCondition
=
{
$scope
.
queryCondition
=
{
factory
:
{
id
:
null
},
factory
:
{
factoryU
id
:
null
},
barcode
:
null
barcode
:
null
};
};
...
@@ -81,7 +81,7 @@ angular.module('IOne').controller('BarcodeQueryController', function ($scope, Co
...
@@ -81,7 +81,7 @@ angular.module('IOne').controller('BarcodeQueryController', function ($scope, Co
BaseFactoryFileService
.
getByAccount
().
then
(
function
(
response
)
{
BaseFactoryFileService
.
getByAccount
().
then
(
function
(
response
)
{
$scope
.
factories
=
response
;
$scope
.
factories
=
response
;
if
(
$scope
.
factories
.
length
>
0
)
{
if
(
$scope
.
factories
.
length
>
0
)
{
$scope
.
queryCondition
.
factory
.
id
=
$scope
.
factories
[
0
].
id
;
$scope
.
queryCondition
.
factory
.
factoryUid
=
$scope
.
factories
[
0
].
factoryU
id
;
}
}
});
});
};
};
...
...
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