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
3e18992f
Commit
3e18992f
authored
Jun 12, 2022
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
贸易属性、运输方式不显示bug
parent
10dbfed5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
26 deletions
+32
-26
index.vue
src/views/ecw/region/index.vue
+9
-7
index.vue
src/views/ecw/warehouse/index.vue
+23
-19
No files found.
src/views/ecw/region/index.vue
View file @
3e18992f
...
@@ -127,6 +127,7 @@
...
@@ -127,6 +127,7 @@
// import { listDept, getDept, delDept, addDept, updateDept } from "@/api/system/dept";
// import { listDept, getDept, delDept, addDept, updateDept } from "@/api/system/dept";
import
Treeselect
from
"
@riophae/vue-treeselect
"
;
import
Treeselect
from
"
@riophae/vue-treeselect
"
;
import
"
@riophae/vue-treeselect/dist/vue-treeselect.css
"
;
import
"
@riophae/vue-treeselect/dist/vue-treeselect.css
"
;
import
{
listSimpleUsers
}
from
"
@/api/system/user
"
;
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
...
@@ -216,7 +217,7 @@ export default {
...
@@ -216,7 +217,7 @@ export default {
},
},
/** 转换部门数据结构 */
/** 转换部门数据结构 */
normalizer
(
node
)
{
normalizer
(
node
)
{
console
.
log
(
"
normalizer:
"
+
JSON
.
stringify
(
node
)
+
"
node.children:
"
+
JSON
.
stringify
(
node
.
children
));
//
console.log("normalizer:"+JSON.stringify(node)+" node.children:"+JSON.stringify(node.children));
if
(
node
.
children
&&
!
node
.
children
.
length
)
{
if
(
node
.
children
&&
!
node
.
children
.
length
)
{
delete
node
.
children
;
delete
node
.
children
;
}
}
...
@@ -243,7 +244,8 @@ export default {
...
@@ -243,7 +244,8 @@ export default {
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
"
启用
"
:
"
停用
"
;
let
text
=
row
.
status
===
CommonStatusEnum
.
ENABLE
?
"
启用
"
:
"
停用
"
;
this
.
$modal
.
confirm
(
'
确认要
'
+
text
+
'
编号为
'
+
row
.
id
+
'
的数据吗?
'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
'
确认要
'
+
text
+
'
编号为
'
+
row
.
id
+
'
的数据吗?
'
).
then
(
function
()
{
// return changeUserStatus(row.id, row.status);
// return changeUserStatus(row.id, row.status);
return
updateRegionStatus
({
id
:
row
.
id
,
status
:
!
row
.
status
?
CommonStatusEnum
.
DISABLE
:
CommonStatusEnum
.
ENABLE
});
console
.
log
(
"
row.status:
"
+
row
.
status
);
return
updateRegionStatus
({
id
:
row
.
id
,
status
:
row
.
status
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
$modal
.
msgSuccess
(
text
+
"
成功
"
);
this
.
$modal
.
msgSuccess
(
text
+
"
成功
"
);
...
@@ -289,9 +291,9 @@ export default {
...
@@ -289,9 +291,9 @@ export default {
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"
添加区域
"
;
this
.
title
=
"
添加区域
"
;
getRegionList
().
then
(
response
=>
{
getRegionList
().
then
(
response
=>
{
console
.
log
(
"
添加区域查询结果:
"
+
JSON
.
stringify
(
response
.
data
));
//
console.log("添加区域查询结果:"+JSON.stringify(response.data));
this
.
regionOptions
=
this
.
handleTree
(
response
.
data
,
"
id
"
);
this
.
regionOptions
=
this
.
handleTree
(
response
.
data
,
"
id
"
);
console
.
log
(
"
regionOptions:
"
+
JSON
.
stringify
(
this
.
regionOptions
));
//
console.log("regionOptions:"+JSON.stringify(this.regionOptions));
});
});
},
},
/** 展开/折叠操作 */
/** 展开/折叠操作 */
...
@@ -307,7 +309,7 @@ export default {
...
@@ -307,7 +309,7 @@ export default {
this
.
reset
();
this
.
reset
();
getRegion
(
row
.
id
).
then
(
response
=>
{
getRegion
(
row
.
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
console
.
log
(
"
getRegion(
"
+
row
.
id
+
"
):
"
+
JSON
.
stringify
(
this
.
form
));
//
console.log("getRegion("+row.id+"):"+JSON.stringify(this.form));
if
(
this
.
form
.
parentId
===
0
)
{
// 无父部门时,标记为 undefined,避免展示为 Unknown
if
(
this
.
form
.
parentId
===
0
)
{
// 无父部门时,标记为 undefined,避免展示为 Unknown
this
.
form
.
parentId
=
undefined
;
this
.
form
.
parentId
=
undefined
;
}
}
...
@@ -315,9 +317,9 @@ export default {
...
@@ -315,9 +317,9 @@ export default {
this
.
title
=
"
修改区域
"
;
this
.
title
=
"
修改区域
"
;
});
});
getRegionList
(
row
.
id
).
then
(
response
=>
{
getRegionList
(
row
.
id
).
then
(
response
=>
{
console
.
log
(
"
getRegionList(
"
+
row
.
id
+
"
):
"
+
JSON
.
stringify
(
response
.
data
));
//
console.log("getRegionList("+row.id+"):"+JSON.stringify(response.data));
this
.
regionOptions
=
this
.
handleTree
(
response
.
data
,
"
id
"
);
this
.
regionOptions
=
this
.
handleTree
(
response
.
data
,
"
id
"
);
console
.
log
(
"
getRegionList(
"
+
row
.
id
+
"
): regionOptions
"
+
JSON
.
stringify
(
this
.
regionOptions
));
//
console.log("getRegionList("+row.id+"): regionOptions"+JSON.stringify(this.regionOptions));
});
});
},
},
...
...
src/views/ecw/warehouse/index.vue
View file @
3e18992f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<!-- 搜索工作栏 -->
<!-- 搜索工作栏 -->
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
v-show=
"showSearch"
label-width=
"68px"
>
<el-form-item
label=
"服务网点"
prop=
"node"
>
<el-form-item
label=
"服务网点"
prop=
"node"
>
<el-select
v-model=
"queryParams.nodeId"
placeholder=
"所属网点"
:disabled=
"nodeId ? true : false"
clearable
>
<el-select
v-model=
"queryParams.nodeId"
placeholder=
"所属网点"
:disabled=
"nodeId ? true : false"
clearable
>
<el-option
v-for=
"node in nodeList"
:key=
"node.id"
:label=
"node.titleZh"
:value=
"node.id"
/>
<el-option
v-for=
"node in nodeList"
:key=
"node.id"
:label=
"node.titleZh"
:value=
"node.id"
/>
...
@@ -50,13 +50,13 @@
...
@@ -50,13 +50,13 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
width=
"100"
>
<el-table-column
prop=
"status"
label=
"状态"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-switch
v-model=
"scope.row.status"
:active-value=
"CommonStatusEnum.ENABLE"
:inactive-value=
"CommonStatusEnum.DISABLE"
@
change=
"handleStatusChange(scope.row)"
/>
<el-switch
v-model=
"scope.row.status"
:active-value=
"CommonStatusEnum.ENABLE"
:inactive-value=
"CommonStatusEnum.DISABLE"
@
change=
"handleStatusChange(scope.row)"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"toRouteList(scope.row, '2')"
:disabled=
"scope.row.tradeType=='2'"
<el-button
size=
"mini"
type=
"text"
@
click=
"toRouteList(scope.row, '2')"
:disabled=
"scope.row.tradeType=='2'"
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
<el-header>
<el-header>
<el-button
type=
"primary"
@
click=
"commitBind"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"commitBind"
>
提交
</el-button>
</el-header>
</el-header>
<el-table
ref=
"multipleTable"
v-if=
"refreshTable"
:data=
"deptList"
row-key=
"id"
:default-expand-all=
"isExpandAll"
<el-table
ref=
"multipleTable"
v-if=
"refreshTable"
:data=
"deptList"
row-key=
"id"
:default-expand-all=
"isExpandAll"
:tree-props=
"{children: 'children', hasChildren: 'hasChildren'}"
@
select=
"select"
@
select-all=
"selectAll"
@
selection-change=
"handleSelectionChange"
>
:tree-props=
"{children: 'children', hasChildren: 'hasChildren'}"
@
select=
"select"
@
select-all=
"selectAll"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
...
@@ -176,7 +176,7 @@
...
@@ -176,7 +176,7 @@
<el-form-item
label=
"排序"
prop=
"sort"
>
<el-form-item
label=
"排序"
prop=
"sort"
>
<el-input
v-model=
"form.sort"
type=
"number"
placeholder=
"请输入排序"
/>
<el-input
v-model=
"form.sort"
type=
"number"
placeholder=
"请输入排序"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"仓库编号"
prop=
"number"
>
<el-form-item
label=
"仓库编号"
prop=
"number"
>
<el-input
v-model=
"form.number"
placeholder=
"请输入仓库编号"
/>
<el-input
v-model=
"form.number"
placeholder=
"请输入仓库编号"
/>
</el-form-item>
</el-form-item>
...
@@ -206,9 +206,11 @@
...
@@ -206,9 +206,11 @@
<el-form-item
label=
"英文地址"
prop=
"addressEn"
>
<el-form-item
label=
"英文地址"
prop=
"addressEn"
>
<el-input
v-model=
"form.addressEn"
placeholder=
"请输入英文地址"
/>
<el-input
v-model=
"form.addressEn"
placeholder=
"请输入英文地址"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"贸易属性"
prop=
"tradeType"
>
<el-form-item
label=
"贸易属性"
prop=
"tradeType"
>
<el-select
v-model=
"form.tradeType"
placeholder=
"请选择"
:disabled=
"(nodeId || isUpdate) ? true : false"
>
<el-select
v-model=
"form.tradeType"
placeholder=
"请选择"
>
<!-- :disabled="(nodeId || isUpdate) ? true : false"-->
<el-option
v-for=
"dict in regionTypeDatas"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
<el-option
v-for=
"dict in regionTypeDatas"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -217,8 +219,8 @@
...
@@ -217,8 +219,8 @@
<el-checkbox-group
v-model=
"form.checkList"
>
<el-checkbox-group
v-model=
"form.checkList"
>
<el-checkbox
v-for=
"dict in transportDatas"
:label=
"dict.value"
:key=
"dict.value"
name=
"freight"
>
{{dict.label}}
</el-checkbox>
<el-checkbox
v-for=
"dict in transportDatas"
:label=
"dict.value"
:key=
"dict.value"
name=
"freight"
>
{{dict.label}}
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"img"
prop=
"img"
>
<el-form-item
label=
"img"
prop=
"img"
>
<el-col
:span=
"8"
>
<el-col
:span=
"8"
>
<el-input
v-model=
"form.img"
placeholder=
"请上传图片"
disabled
/>
<el-input
v-model=
"form.img"
placeholder=
"请上传图片"
disabled
/>
...
@@ -236,7 +238,7 @@
...
@@ -236,7 +238,7 @@
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"form.remark"
placeholder=
"请输入备注"
/>
<el-input
v-model=
"form.remark"
placeholder=
"请输入备注"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
...
@@ -247,11 +249,11 @@
...
@@ -247,11 +249,11 @@
</template>
</template>
<
script
>
<
script
>
import
{
createWarehouse
,
updateWarehouse
,
deleteWarehouse
,
getWarehouse
,
getWarehousePage
,
import
{
createWarehouse
,
updateWarehouse
,
deleteWarehouse
,
getWarehouse
,
getWarehousePage
,
exportWarehouseExcel
,
routerList
,
changeRouteStatus
,
deptBind
,
deptList
}
from
"
@/api/ecw/warehouse
"
;
exportWarehouseExcel
,
routerList
,
changeRouteStatus
,
deptBind
,
deptList
}
from
"
@/api/ecw/warehouse
"
;
import
{
getNodePage
}
from
"
@/api/ecw/node
"
;
import
{
getNodePage
}
from
"
@/api/ecw/node
"
;
import
{
getListTree
}
from
"
@/api/ecw/region
"
;
import
{
getListTree
}
from
"
@/api/ecw/region
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
import
{
uploadFile
}
from
"
@/api/infra/file
"
;
import
{
uploadFile
}
from
"
@/api/infra/file
"
;
import
{
listDept
}
from
"
@/api/system/dept
"
;
import
{
listDept
}
from
"
@/api/system/dept
"
;
...
@@ -426,6 +428,8 @@ export default {
...
@@ -426,6 +428,8 @@ export default {
this
.
getList
();
this
.
getList
();
this
.
getNodeList
();
this
.
getNodeList
();
this
.
getContinentsList
();
this
.
getContinentsList
();
console
.
log
(
"
regionTypeDatas:
"
+
JSON
.
stringify
(
this
.
regionTypeDatas
));
console
.
log
(
"
transportDatas:
"
+
JSON
.
stringify
(
this
.
transportDatas
));
},
},
methods
:
{
methods
:
{
/** 查询列表 */
/** 查询列表 */
...
@@ -570,7 +574,7 @@ export default {
...
@@ -570,7 +574,7 @@ export default {
this
.
showRouteList
=
true
;
this
.
showRouteList
=
true
;
this
.
routeLoadig
=
true
;
this
.
routeLoadig
=
true
;
this
.
getRouteList
();
this
.
getRouteList
();
},
},
getRouteList
()
{
getRouteList
()
{
...
@@ -620,7 +624,7 @@ export default {
...
@@ -620,7 +624,7 @@ export default {
for
(
let
index
in
this
.
cityList
)
{
for
(
let
index
in
this
.
cityList
)
{
let
city
=
this
.
cityList
[
index
];
let
city
=
this
.
cityList
[
index
];
if
(
city
.
id
==
cityId
)
{
if
(
city
.
id
==
cityId
)
{
return
;
return
;
}
}
}
}
...
@@ -698,7 +702,7 @@ export default {
...
@@ -698,7 +702,7 @@ export default {
this
.
form
.
tradeType
=
node
.
tradeType
;
this
.
form
.
tradeType
=
node
.
tradeType
;
this
.
form
.
checkList
=
node
.
freight
.
split
(
'
,
'
);
this
.
form
.
checkList
=
node
.
freight
.
split
(
'
,
'
);
this
.
changeContinents
(
this
.
form
.
zhou
);
this
.
changeContinents
(
this
.
form
.
zhou
);
this
.
changeCountry
(
this
.
form
.
guojia
);
this
.
changeCountry
(
this
.
form
.
guojia
);
this
.
changeProvince
(
this
.
form
.
sheng
);
this
.
changeProvince
(
this
.
form
.
sheng
);
...
@@ -720,8 +724,8 @@ export default {
...
@@ -720,8 +724,8 @@ export default {
this
.
changeCountry
(
response
.
data
.
guojia
);
this
.
changeCountry
(
response
.
data
.
guojia
);
this
.
changeProvince
(
response
.
data
.
sheng
);
this
.
changeProvince
(
response
.
data
.
sheng
);
this
.
isUpdate
=
true
;
this
.
isUpdate
=
true
;
this
.
open
=
true
;
this
.
open
=
true
;
...
@@ -814,7 +818,7 @@ export default {
...
@@ -814,7 +818,7 @@ export default {
// console.log(this.list);
// console.log(this.list);
this
.
deptOpen
=
false
;
this
.
deptOpen
=
false
;
})
})
},
},
handleSelectionChange
(
value
)
{
handleSelectionChange
(
value
)
{
...
@@ -890,7 +894,7 @@ export default {
...
@@ -890,7 +894,7 @@ export default {
})
})
}
}
}
}
}
}
};
};
</
script
>
</
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