Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
6fc9b90a
Commit
6fc9b90a
authored
May 09, 2022
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增区域管理
parent
1a8d1143
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
474 additions
and
6 deletions
+474
-6
bankAccount.js
src/api/ecw/bankAccount.js
+10
-0
currency.js
src/api/ecw/currency.js
+9
-0
region.js
src/api/ecw/region.js
+73
-0
unit.js
src/api/ecw/unit.js
+9
-0
index.vue
src/views/ecw/bankAccount/index.vue
+10
-2
index.vue
src/views/ecw/currency/index.vue
+13
-2
index.vue
src/views/ecw/region/index.vue
+337
-0
index.vue
src/views/ecw/unit/index.vue
+13
-2
No files found.
src/api/ecw/bankAccount.js
View file @
6fc9b90a
...
...
@@ -18,6 +18,16 @@ export function updateBankAccount(data) {
})
}
// 更新银行账户
export
function
updateBankAccountStatus
(
data
)
{
return
request
({
url
:
'
/ecw/bank-account/updateStatus
'
,
method
:
'
put
'
,
data
:
data
})
}
// 删除银行账户
export
function
deleteBankAccount
(
id
)
{
return
request
({
...
...
src/api/ecw/currency.js
View file @
6fc9b90a
...
...
@@ -18,6 +18,15 @@ export function updateCurrency(data) {
})
}
// 更新
export
function
updateCurrencyStatus
(
data
)
{
return
request
({
url
:
'
/ecw/currency/updateStatus
'
,
method
:
'
put
'
,
data
:
data
})
}
// 删除
export
function
deleteCurrency
(
id
)
{
return
request
({
...
...
src/api/ecw/region.js
0 → 100644
View file @
6fc9b90a
import
request
from
'
@/utils/request
'
// 创建区域设置
export
function
createRegion
(
data
)
{
return
request
({
url
:
'
/ecw/region/create
'
,
method
:
'
post
'
,
data
:
data
})
}
// 更新区域设置
export
function
updateRegion
(
data
)
{
return
request
({
url
:
'
/ecw/region/update
'
,
method
:
'
put
'
,
data
:
data
})
}
// 更新区域设置
export
function
updateRegionStatus
(
data
)
{
return
request
({
url
:
'
/ecw/region/updateStatus
'
,
method
:
'
put
'
,
data
:
data
})
}
// 删除区域设置
export
function
deleteRegion
(
id
)
{
return
request
({
url
:
'
/ecw/region/delete?id=
'
+
id
,
method
:
'
delete
'
})
}
// 获得区域设置
export
function
getRegion
(
id
)
{
return
request
({
url
:
'
/ecw/region/get?id=
'
+
id
,
method
:
'
get
'
})
}
// 获得区域设置分页
export
function
getRegionPage
(
query
)
{
return
request
({
url
:
'
/ecw/region/page
'
,
method
:
'
get
'
,
params
:
query
})
}
// 获得区域设置分页
export
function
getRegionList
(
query
)
{
return
request
({
url
:
'
/ecw/region/list
'
,
method
:
'
get
'
,
params
:
query
})
}
// 导出区域设置 Excel
export
function
exportRegionExcel
(
query
)
{
return
request
({
url
:
'
/ecw/region/export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
src/api/ecw/unit.js
View file @
6fc9b90a
...
...
@@ -18,6 +18,15 @@ export function updateUnit(data) {
})
}
// 更新计量单位
export
function
updateUnitStatus
(
data
)
{
return
request
({
url
:
'
/ecw/unit/updateStatus
'
,
method
:
'
put
'
,
data
:
data
})
}
// 删除计量单位
export
function
deleteUnit
(
id
)
{
return
request
({
...
...
src/views/ecw/bankAccount/index.vue
View file @
6fc9b90a
...
...
@@ -155,7 +155,15 @@
</template>
<
script
>
import
{
createBankAccount
,
updateBankAccount
,
deleteBankAccount
,
getBankAccount
,
getBankAccountPage
,
exportBankAccountExcel
}
from
"
@/api/ecw/bankAccount
"
;
import
{
createBankAccount
,
updateBankAccount
,
deleteBankAccount
,
getBankAccount
,
getBankAccountPage
,
exportBankAccountExcel
,
updateBankAccountStatus
}
from
"
@/api/ecw/bankAccount
"
;
import
{
DICT_TYPE
,
getDictDatas
}
from
"
@/utils/dict
"
;
import
{
CommonStatusEnum
}
from
"
@/utils/constants
"
;
import
{
changeUserStatus
}
from
"
@/api/system/user
"
;
...
...
@@ -279,7 +287,7 @@ export default {
handleStatusChange
(
row
)
{
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
"
启用
"
:
"
停用
"
;
this
.
$modal
.
confirm
(
'
确认要
'
+
text
+
'
编号为
'
+
row
.
id
+
'
的数据吗?
'
).
then
(
function
()
{
return
changeUserStatus
(
row
.
id
,
row
.
status
);
return
updateBankAccountStatus
({
id
:
row
.
id
,
status
:
!
row
.
status
?
CommonStatusEnum
.
DISABLE
:
CommonStatusEnum
.
ENABLE
}
);
}).
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
text
+
"
成功
"
);
}).
catch
(
function
()
{
...
...
src/views/ecw/currency/index.vue
View file @
6fc9b90a
...
...
@@ -121,10 +121,19 @@
</template>
<
script
>
import
{
createCurrency
,
updateCurrency
,
deleteCurrency
,
getCurrency
,
getCurrencyPage
,
exportCurrencyExcel
}
from
"
@/api/ecw/currency
"
;
import
{
createCurrency
,
updateCurrency
,
deleteCurrency
,
getCurrency
,
getCurrencyPage
,
exportCurrencyExcel
,
updateCurrencyStatus
}
from
"
@/api/ecw/currency
"
;
import
{
CommonStatusEnum
}
from
"
@/utils/constants
"
;
import
{
changeUserStatus
}
from
"
@/api/system/user
"
;
import
{
DICT_TYPE
,
getDictDatas
}
from
"
@/utils/dict
"
;
import
{
updateBankAccount
}
from
"
@/api/ecw/bankAccount
"
;
export
default
{
name
:
"
Currency
"
,
...
...
@@ -224,7 +233,9 @@ export default {
handleStatusChange
(
row
)
{
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
"
启用
"
:
"
停用
"
;
this
.
$modal
.
confirm
(
'
确认要
'
+
text
+
'
"
'
+
row
.
titleZh
+
'
"吗?
'
).
then
(
function
()
{
return
changeUserStatus
(
row
.
id
,
row
.
status
);
// return changeUserStatus(row.id, row.status);
return
updateCurrencyStatus
({
id
:
row
.
id
,
status
:
!
row
.
status
?
CommonStatusEnum
.
DISABLE
:
CommonStatusEnum
.
ENABLE
});
}).
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
text
+
"
成功
"
);
}).
catch
(
function
()
{
...
...
src/views/ecw/region/index.vue
0 → 100644
View file @
6fc9b90a
This diff is collapsed.
Click to expand it.
src/views/ecw/unit/index.vue
View file @
6fc9b90a
...
...
@@ -108,10 +108,19 @@
</template>
<
script
>
import
{
createUnit
,
updateUnit
,
deleteUnit
,
getUnit
,
getUnitPage
,
exportUnitExcel
}
from
"
@/api/ecw/unit
"
;
import
{
createUnit
,
updateUnit
,
deleteUnit
,
getUnit
,
getUnitPage
,
exportUnitExcel
,
updateUnitStatus
}
from
"
@/api/ecw/unit
"
;
import
{
DICT_TYPE
,
getDictDatas
}
from
"
@/utils/dict
"
;
import
{
CommonStatusEnum
}
from
"
@/utils/constants
"
;
import
{
changeUserStatus
}
from
"
@/api/system/user
"
;
import
{
updateBankAccount
}
from
"
@/api/ecw/bankAccount
"
;
export
default
{
name
:
"
Unit
"
,
...
...
@@ -203,7 +212,9 @@ export default {
handleStatusChange
(
row
)
{
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
"
启用
"
:
"
停用
"
;
this
.
$modal
.
confirm
(
'
确认要
'
+
text
+
'
"
'
+
row
.
titleZh
+
'
"吗?
'
).
then
(
function
()
{
return
changeUserStatus
(
row
.
id
,
row
.
status
);
// return changeUserStatus(row.id, row.status);
return
updateUnitStatus
({
id
:
row
.
id
,
status
:
!
row
.
status
?
CommonStatusEnum
.
DISABLE
:
CommonStatusEnum
.
ENABLE
});
}).
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
text
+
"
成功
"
);
}).
catch
(
function
()
{
...
...
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