Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
wly-APP
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
刘川
wly-APP
Commits
19dbf056
Commit
19dbf056
authored
Jun 28, 2022
by
chuan.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提报线索基础数据联调
parent
571f36a3
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
591 additions
and
158 deletions
+591
-158
manifest.json
manifest.json
+119
-119
pages.json
pages.json
+17
-0
breakwords-clue.vue
pages/breakwords-clue/breakwords-clue.vue
+173
-31
select-clue-terminal.nvue
pages/select-clue-terminal/select-clue-terminal.nvue
+240
-0
breakwords.js
servers/breakwords.js
+31
-0
common.js
servers/common.js
+10
-0
http.interceptor.js
servers/http.interceptor.js
+1
-1
user.js
servers/user.js
+0
-7
No files found.
manifest.json
View file @
19dbf056
{
{
"name"
:
"五粮液APP"
,
"name"
:
"五粮液APP"
,
"appid"
:
"__UNI__343534B"
,
"appid"
:
"__UNI__343534B"
,
"description"
:
"订货系统"
,
"description"
:
"订货系统"
,
"versionName"
:
"1.0.0"
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
"app-plus"
:
{
"app-plus"
:
{
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueCompiler"
:
"uni-app"
,
"nvueCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
"delay"
:
0
},
},
"nvue"
:
{
"nvue"
:
{
"flex-direction"
:
"row"
"flex-direction"
:
"row"
},
},
"modules"
:
{},
"modules"
:
{},
/*
模块配置
*/
/*
模块配置
*/
"distribute"
:
{
"distribute"
:
{
/*
应用发布信息
*/
/*
应用发布信息
*/
"android"
:
{
"android"
:
{
/*
android打包配置
*/
/*
android打包配置
*/
"permissions"
:
[
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
],
],
"abiFilters"
:
[
"armeabi-v7a"
]
"abiFilters"
:
[
"armeabi-v7a"
]
},
},
"ios"
:
{},
"ios"
:
{},
/*
ios打包配置
*/
/*
ios打包配置
*/
"sdkConfigs"
:
{
"sdkConfigs"
:
{
"ad"
:
{}
"ad"
:
{}
},
},
"icons"
:
{
"icons"
:
{
"android"
:
{
"android"
:
{
"hdpi"
:
"unpackage/res/icons/72x72.png"
,
"hdpi"
:
"unpackage/res/icons/72x72.png"
,
"xhdpi"
:
"unpackage/res/icons/96x96.png"
,
"xhdpi"
:
"unpackage/res/icons/96x96.png"
,
"xxhdpi"
:
"unpackage/res/icons/144x144.png"
,
"xxhdpi"
:
"unpackage/res/icons/144x144.png"
,
"xxxhdpi"
:
"unpackage/res/icons/192x192.png"
"xxxhdpi"
:
"unpackage/res/icons/192x192.png"
},
},
"ios"
:
{
"ios"
:
{
"appstore"
:
"unpackage/res/icons/1024x1024.png"
,
"appstore"
:
"unpackage/res/icons/1024x1024.png"
,
"ipad"
:
{
"ipad"
:
{
"app"
:
"unpackage/res/icons/76x76.png"
,
"app"
:
"unpackage/res/icons/76x76.png"
,
"app@2x"
:
"unpackage/res/icons/152x152.png"
,
"app@2x"
:
"unpackage/res/icons/152x152.png"
,
"notification"
:
"unpackage/res/icons/20x20.png"
,
"notification"
:
"unpackage/res/icons/20x20.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"proapp@2x"
:
"unpackage/res/icons/167x167.png"
,
"proapp@2x"
:
"unpackage/res/icons/167x167.png"
,
"settings"
:
"unpackage/res/icons/29x29.png"
,
"settings"
:
"unpackage/res/icons/29x29.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"spotlight"
:
"unpackage/res/icons/40x40.png"
,
"spotlight"
:
"unpackage/res/icons/40x40.png"
,
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
},
},
"iphone"
:
{
"iphone"
:
{
"app@2x"
:
"unpackage/res/icons/120x120.png"
,
"app@2x"
:
"unpackage/res/icons/120x120.png"
,
"app@3x"
:
"unpackage/res/icons/180x180.png"
,
"app@3x"
:
"unpackage/res/icons/180x180.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"notification@3x"
:
"unpackage/res/icons/60x60.png"
,
"notification@3x"
:
"unpackage/res/icons/60x60.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"settings@3x"
:
"unpackage/res/icons/87x87.png"
,
"settings@3x"
:
"unpackage/res/icons/87x87.png"
,
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
,
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
,
"spotlight@3x"
:
"unpackage/res/icons/120x120.png"
"spotlight@3x"
:
"unpackage/res/icons/120x120.png"
}
}
}
}
}
}
}
}
},
},
/*
SDK配置
*/
/*
SDK配置
*/
"quickapp"
:
{},
"quickapp"
:
{},
/*
快应用特有相关
*/
/*
快应用特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
/*
小程序特有相关
*/
/*
小程序特有相关
*/
"appid"
:
""
,
"appid"
:
""
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
"urlCheck"
:
false
},
},
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"h5"
:
{
"h5"
:
{
"devServer"
:
{
"devServer"
:
{
"https"
:
false
,
"https"
:
false
,
"port"
:
"8080"
,
"port"
:
"8080"
,
"disableHostCheck"
:
true
,
"disableHostCheck"
:
true
,
"proxy"
:
{
"proxy"
:
{
"/sap"
:
{
"/sap"
:
{
"target"
:
"http://10.0.135.139/wlySap"
,
//
"target"
:
"http://10.0.135.139/wlySap"
,
//
"target"
:
"http://10.0.134.45:8000"
,
"target"
:
"http://10.0.134.45:8000"
,
"changeOrigin"
:
true
"changeOrigin"
:
true
},
},
"/crm-app"
:
{
"/crm-app"
:
{
"target"
:
"http://10.0.135.139"
,
"target"
:
"http://10.0.135.139"
,
//
"target"
:
"http://10.2.4.2"
,
//
"target"
:
"http://10.2.4.2"
,
"changeOrigin"
:
true
"changeOrigin"
:
true
},
},
"/wmdpwebservices"
:
{
"/wmdpwebservices"
:
{
"target"
:
"http://10.0.134.182:9002"
,
"target"
:
"https://10.0.134.182:9002"
,
"changeOrigin"
:
true
"changeOrigin"
:
true
}
}
}
}
}
}
}
}
}
}
pages.json
View file @
19dbf056
...
@@ -783,6 +783,23 @@
...
@@ -783,6 +783,23 @@
}
}
//
"enablePullDownRefresh"
:
true
//
"enablePullDownRefresh"
:
true
}
}
},
{
"path"
:
"pages/select-clue-terminal/select-clue-terminal"
,
"style"
:
{
"app-plus"
:
{
"titleNView"
:
{
"titleAlign"
:
"left"
,
"titleColor"
:
"#333"
,
"titleSize"
:
"17px"
,
"backgroundColor"
:
"#fff"
,
"titleText"
:
"终端名称选择"
,
"autoBackButton"
:
true
},
"bounce"
:
"none"
},
"enablePullDownRefresh"
:
true
}
}
}
],
],
"globalStyle"
:
{
"globalStyle"
:
{
...
...
pages/breakwords-clue/breakwords-clue.vue
View file @
19dbf056
...
@@ -11,8 +11,10 @@
...
@@ -11,8 +11,10 @@
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<view
class=
"uni-list-cell-db"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange"
:value=
"index"
:range=
"array"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange($event,'SubmitMethod')"
<text
class=
"uni-input"
>
{{
array
[
index
]
}}
</text>
range-key=
'name'
mode=
"selector"
:value=
"condition.submitMethodName"
:range=
"selectDataOptions.SubmitMethod"
>
<text
class=
"uni-input"
>
{{
condition
.
submitMethodName
}}
</text>
</picker>
</picker>
</view>
</view>
</view>
</view>
...
@@ -24,24 +26,37 @@
...
@@ -24,24 +26,37 @@
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<view
class=
"uni-list-cell-db"
>
<input
class=
"middle-date-des"
type=
"text"
v-model=
"condition.
code
"
<input
class=
"middle-date-des"
type=
"text"
v-model=
"condition.
pwdInfo
"
placeholder=
"请输入匿名提报口令,后期查询使用"
/>
placeholder=
"请输入匿名提报口令,后期查询使用"
/>
</view>
</view>
</view>
</view>
<
image
class=
"icon-arrow icon-search"
src=
"@/static/image/search_b@3x.png"
mode=
""
></image
>
<
!--
<image
class=
"icon-arrow icon-search"
src=
"@/static/image/search_b@3x.png"
mode=
""
></image>
--
>
</view>
</view>
</view>
</view>
<view
class=
"text-block"
>
<view
class=
"text-block"
>
<text
class=
"middle-date"
>
违约类型
</text>
<text
class=
"middle-date"
>
违约类型
</text>
<text
class=
"middle-date-des"
>
影响秩序
</text>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange($event,'ViolationType')"
range-key=
'name'
mode=
"selector"
:value=
"condition.viloationTypeName"
:range=
"selectDataOptions.ViolationType"
>
<text
class=
"uni-input"
>
{{
condition
.
viloationTypeName
}}
</text>
</picker>
</view>
</view>
<image
class=
"icon-arrow"
src=
"@/static/image/arrow_r@3x.png"
mode=
""
></image>
</view>
</view>
</view>
<view
class=
"text-block"
>
<view
class=
"text-block"
>
<text
class=
"middle-date"
>
细分类型
</text>
<text
class=
"middle-date"
>
细分类型
</text>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<view
class=
"uni-list-cell-db"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange"
:value=
"index"
:range=
"array"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange($event,'ChildType')"
<text
class=
"uni-input"
>
{{
array
[
index
]
}}
</text>
range-key=
'name'
mode=
"selector"
:value=
"condition.childTypeName"
:range=
"selectDataOptions.ChildType"
>
<text
class=
"uni-input"
>
{{
condition
.
childTypeName
}}
</text>
</picker>
</picker>
</view>
</view>
</view>
</view>
...
@@ -53,8 +68,10 @@
...
@@ -53,8 +68,10 @@
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<view
class=
"uni-list-cell-db"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange"
:value=
"index"
:range=
"array"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange($event,'ChannelType')"
<text
class=
"uni-input"
>
{{
array
[
index
]
}}
</text>
range-key=
'name'
mode=
"selector"
:value=
"condition.happenChannelIdName"
:range=
"selectDataOptions.ChannelType"
>
<text
class=
"uni-input"
>
{{
condition
.
happenChannelIdName
}}
</text>
</picker>
</picker>
</view>
</view>
</view>
</view>
...
@@ -66,8 +83,10 @@
...
@@ -66,8 +83,10 @@
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<view
class=
"uni-list-cell-db"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange"
:value=
"index"
:range=
"array"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange($event,'SupplyType')"
<text
class=
"uni-input"
>
{{
array
[
index
]
}}
</text>
range-key=
'name'
mode=
"selector"
:value=
"condition.supplyTypeName"
:range=
"selectDataOptions.SupplyType"
>
<text
class=
"uni-input"
>
{{
condition
.
supplyTypeName
}}
</text>
</picker>
</picker>
</view>
</view>
</view>
</view>
...
@@ -79,8 +98,10 @@
...
@@ -79,8 +98,10 @@
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<view
class=
"uni-list-cell-db"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange"
:value=
"index"
:range=
"array"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange($event,'provincecode')"
<text
class=
"uni-input"
>
{{
array
[
index
]
}}
</text>
range-key=
'description'
mode=
"selector"
:value=
"condition.provinceName"
:range=
"selectDataOptions.provincecode"
>
<text
class=
"uni-input"
>
{{
condition
.
provinceName
}}
</text>
</picker>
</picker>
</view>
</view>
</view>
</view>
...
@@ -92,8 +113,10 @@
...
@@ -92,8 +113,10 @@
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<view
class=
"uni-list-cell-db"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange"
:value=
"index"
:range=
"array"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange($event,'citycode')"
<text
class=
"uni-input"
>
{{
array
[
index
]
}}
</text>
range-key=
'description'
mode=
"selector"
:value=
"condition.cityName"
:range=
"selectDataOptions.citycode"
>
<text
class=
"uni-input"
>
{{
condition
.
cityName
}}
</text>
</picker>
</picker>
</view>
</view>
</view>
</view>
...
@@ -105,34 +128,37 @@
...
@@ -105,34 +128,37 @@
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<view
class=
"uni-list-cell-db"
>
<picker
class=
"picker-block"
@
change=
"bindPickerChange"
:value=
"index"
:range=
"array"
>
<input
class=
"middle-date-des"
type=
"text"
v-model=
"condition.terminalName"
<text
class=
"uni-input"
>
{{
array
[
index
]
}}
</text>
placeholder=
"请填写"
/>
</picker>
</view>
</view>
</view>
</view>
<image
class=
"icon-arrow"
src=
"@/static/image/arrow_r@3x.png"
mode=
""
></image>
<image
class=
"icon-arrow icon-search"
@
click=
"selectClueTerminal"
src=
"@/static/image/search_b@3x.png"
mode=
""
></image>
</view>
</view>
</view>
</view>
<view
class=
"text-block"
>
<view
class=
"text-block"
>
<text
class=
"middle-date"
>
终端地址
</text>
<text
class=
"middle-date"
>
终端地址
</text>
<input
class=
"middle-date-des"
type=
"text"
v-model=
"condition.terminalAddress"
placeholder=
""
/>
</view>
<view
class=
"text-block"
>
<text
class=
"middle-date"
>
稽查时间
</text>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"middle-date-des uni-list picker-year"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell"
>
<view
class=
"uni-list-cell-db"
>
<view
class=
"uni-list-cell-db"
>
<input
class=
"middle-date-des"
type=
"text"
v-model=
"condition.code"
placeholder=
""
/>
<picker
class=
"picker-block"
@
change=
"bindPickerChange($event,'date')"
mode=
"date"
:value=
"condition.submitTime"
fields=
'day'
>
<text
class=
"uni-input"
>
{{
condition
.
submitTime
}}
</text>
</picker>
</view>
</view>
</view>
</view>
<image
class=
"icon-arrow
icon-search"
src=
"@/static/image/search_b
@3x.png"
mode=
""
></image>
<image
class=
"icon-arrow
"
src=
"@/static/image/arrow_r
@3x.png"
mode=
""
></image>
</view>
</view>
</view>
</view>
<view
class=
"text-block"
>
<text
class=
"middle-date"
>
稽查时间
</text>
<text
class=
"middle-date-des"
>
2022-05-18
</text>
</view>
<view
class=
"text-block text-block-last"
>
<view
class=
"text-block text-block-last"
>
<text
class=
"middle-date"
>
稽查说明
</text>
<text
class=
"middle-date"
>
稽查说明
</text>
</view>
</view>
<view
class=
"remark"
>
<view
class=
"remark"
>
<textarea
class=
"remark-text"
v-model=
"condition.
remark
"
/>
<textarea
class=
"remark-text"
v-model=
"condition.
auditNotes
"
/>
</view>
</view>
</view>
</view>
...
@@ -264,6 +290,16 @@
...
@@ -264,6 +290,16 @@
mapState
mapState
}
from
'vuex'
}
from
'vuex'
import
{
apiGetDictionary
,
apiClueSubmit
}
from
'@/servers/breakwords.js'
import
{
apiGetProvinceCode
}
from
'@/servers/common.js'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -271,10 +307,38 @@
...
@@ -271,10 +307,38 @@
array
:
[
'2021'
,
'2020'
,
'2019'
,
'2018'
],
array
:
[
'2021'
,
'2020'
,
'2019'
,
'2018'
],
index
:
0
,
index
:
0
,
condition
:
{
condition
:
{
code
:
''
,
submitMethod
:
''
,
remark
:
''
,
submitMethodName
:
''
,
pwdInfo
:
''
,
viloationType
:
''
,
viloationTypeName
:
''
,
childType
:
''
,
childTypeName
:
''
,
happenChannelId
:
''
,
happenChannelIdName
:
''
,
SupplyType
:
''
,
supplyTypeName
:
''
,
provinceCode
:
''
,
provinceName
:
''
,
cityCode
:
''
,
cityName
:
''
,
// terminalName: '',
terminalAddress
:
''
,
submitTime
:
''
,
auditNotes
:
''
,
},
pickerIndexs
:
{
submitMethodIndex
:
0
},
},
fileList
:
[],
fileList
:
[],
selectDataOptions
:
{
'SubmitMethod'
:
[],
'ViolationType'
:
[],
'ChildType'
:
[],
'ChannelType'
:
[],
'provincecode'
:
[],
'citycode'
:
[],
}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -294,10 +358,85 @@
...
@@ -294,10 +358,85 @@
}
}
},
},
},
},
created
()
{
// 提交方式
this
.
getDictionary
(
'SubmitMethod'
)
// 违规类型
this
.
getDictionary
(
'ViolationType'
)
// 细分类型
this
.
getDictionary
(
'ChildType'
)
// 事发渠道
this
.
getDictionary
(
'ChannelType'
)
// 取证地
this
.
getDictionary
(
'SupplyType'
)
// 事发渠道
this
.
getDictionary
(
'ChannelType'
)
this
.
getProvinceCode
(
'provincecode'
)
},
mounted
()
{
console
.
log
(
'监听到事件来自 update'
);
let
_this
=
this
uni
.
$on
(
'selectClueTerminal'
,
function
(
data
)
{
console
.
log
(
'监听到事件来自 selectClueTerminal ,携带参数 msg 为:'
,
data
);
_this
.
condition
.
ZZFLD000098
=
data
.
selectedPaintDesign
.
zzfld000098
})
},
methods
:
{
methods
:
{
bindPickerChange
(
e
)
{
async
getDictionary
(
key
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
)
const
params
=
{
this
.
index
=
e
.
detail
.
value
dictionaryKey
:
key
}
const
res
=
await
apiGetDictionary
(
params
)
this
.
selectDataOptions
[
key
]
=
res
.
data
},
// 获取省市
async
getProvinceCode
(
type
,
code
)
{
const
params
=
`?field=
${
type
}
&type=
${
code
}
`
const
res
=
await
apiGetProvinceCode
(
params
)
this
.
selectDataOptions
[
type
]
=
res
.
data
},
bindPickerChange
(
e
,
type
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
,
type
)
const
index
=
e
.
detail
.
value
switch
(
type
)
{
case
'SubmitMethod'
:
this
.
condition
.
submitMethod
=
this
.
selectDataOptions
[
type
][
index
].
code
this
.
condition
.
submitMethodName
=
this
.
selectDataOptions
[
type
][
index
].
name
break
;
case
'ViolationType'
:
this
.
condition
.
viloationType
=
this
.
selectDataOptions
[
type
][
index
].
code
this
.
condition
.
viloationTypeName
=
this
.
selectDataOptions
[
type
][
index
].
name
break
;
case
'ChildType'
:
this
.
condition
.
childType
=
this
.
selectDataOptions
[
type
][
index
].
code
this
.
condition
.
childTypeName
=
this
.
selectDataOptions
[
type
][
index
].
name
break
;
case
'ChannelType'
:
this
.
condition
.
happenChannelId
=
this
.
selectDataOptions
[
type
][
index
].
code
this
.
condition
.
happenChannelIdName
=
this
.
selectDataOptions
[
type
][
index
].
name
break
;
case
'SupplyType'
:
this
.
condition
.
supplyType
=
this
.
selectDataOptions
[
type
][
index
].
code
this
.
condition
.
supplyTypeName
=
this
.
selectDataOptions
[
type
][
index
].
name
break
;
case
'provincecode'
:
this
.
condition
.
provinceCode
=
this
.
selectDataOptions
[
type
][
index
].
id
this
.
condition
.
provinceName
=
this
.
selectDataOptions
[
type
][
index
].
description
this
.
getProvinceCode
(
'citycode'
,
this
.
condition
.
provinceCode
)
break
;
case
'citycode'
:
this
.
condition
.
cityCode
=
this
.
selectDataOptions
[
type
][
index
].
id
this
.
condition
.
cityName
=
this
.
selectDataOptions
[
type
][
index
].
description
break
;
case
'date'
:
this
.
condition
.
submitTime
=
index
break
;
}
},
selectClueTerminal
()
{
uni
.
navigateTo
({
url
:
`/pages/select-clue-terminal/select-clue-terminal`
});
},
},
submit
()
{
submit
()
{
this
.
$emit
(
'submit'
)
this
.
$emit
(
'submit'
)
...
@@ -411,15 +550,18 @@
...
@@ -411,15 +550,18 @@
.uni-list-cell
{
.uni-list-cell
{
flex
:
1
;
flex
:
1
;
height
:
100%
;
padding-right
:
52rpx
;
padding-right
:
52rpx
;
}
}
.uni-list-cell-db
{
.uni-list-cell-db
{
flex
:
1
;
flex
:
1
;
height
:
100%
;
}
}
.picker-block
{
.picker-block
{
flex
:
1
;
flex
:
1
;
height
:
100%
;
}
}
.uni-input
{
.uni-input
{
...
...
pages/select-clue-terminal/select-clue-terminal.nvue
0 → 100644
View file @
19dbf056
<template>
<view class="order view">
<view class="status_bar" :style="navHeight"></view>
<view class="listview">
<list class="cell-list" v-if="lists.length > 0" :show-scrollbar='false' loadmoreoffset='100'
@loadmore="scrolltolower">
<cell @click="handleChecked(item)" v-for="item in lists" :key='item.zcode'>
<view class="cell-list-block">
<view class="cell-list-block__content">
<view class="list-block-item">
<text class="list-block-item__title1">{{item.zzfld000098}}</text>
</view>
</view>
</view>
</cell>
<cell>
<view class="loading-more" v-if='lists.length>14'>
<text class="loading-more-text">{{loadingText}}</text>
</view>
</cell>
</list>
<no-data class="no-data" v-else @retry="loadMore"></no-data>
</view>
</view>
</template>
<script>
import {
mapState
} from 'vuex'
import {
apiGetPengmaInfo
} from '@/servers/groupOrder.js'
import noData from '@/components/nodata.nvue';
export default {
components: {
noData
},
data() {
return {
loadingText: '加载中...',
condition: {},
loadParams: {
total: 0,
totalPage: 1,
isDone: false,
isRefresh: false
},
lists: [],
selectedPaintDesign: {},
toPageParams: {
page: '',
head: ""
}
}
},
computed: {
navHeight() {
return {
'height': `${this.sysinfo.safeArea.top + 44}px`
}
},
...mapState(['sysinfo', 'userInfo'])
},
onLoad(option) {
console.log('select-saleplan', option)
if (option && option.from) {
const {
from,
head
} = option
this.toPageParams.page = from
this.toPageParams.head = JSON.parse(head)
}
},
onPullDownRefresh() {
console.log('refresh');
this.getPengmaInfo()
setTimeout(function() {
uni.stopPullDownRefresh();
}, 600);
},
created() {
this.getPengmaInfo()
},
methods: {
async getPengmaInfo(isRefresh) {
uni.showLoading({
title: '加载中'
});
setTimeout(function() {
uni.hideLoading();
}, 2000);
const res = await apiGetPengmaInfo()
uni.hideLoading();
this.lists = res.info
this.loadingText = '-- 到底了 --'
},
scrolltolower() {
},
handleChecked(item) {
this.selectedPaintDesign = item
uni.$emit('selectedPaintDesign', {
selectedPaintDesign: item
})
uni.navigateBack()
},
loadMore() {
// this.getPengmaInfo()
}
}
}
</script>
<style lang="scss" scoped>
.view {
flex-direction: column;
}
/* #ifndef APP-PLUS */
page {
width: 100%;
min-height: 100%;
display: flex;
background: #fff;
}
.status_bar {
height: var(--status-bar-height);
background: #fff;
}
/* #endif */
.order {
flex: 1;
background: #f0f4f5;
}
.listview {
flex: 1;
flex-direction: column;
padding: 16rpx;
border-radius: 8px;
}
.cell-list {
flex: 1;
flex-direction: column;
background: #fff;
padding: 0 50rpx 40rpx 50rpx;
}
.icon-address {
width: 88rpx;
height: 88rpx;
line-height: 88rpx;
text-align: center;
background: #fff4f4;
font-size: 28rpx;
color: #ff1d32;
font-weight: 500;
border-radius: 50%;
margin-right: 32rpx;
}
.cell-list-block__content {
display: flex;
flex: 1;
flex-direction: column;
}
.list-block-item {
display: flex;
align-items: center;
}
.list-block-item__title1 {
color: #333;
font-weight: 400;
font-size: 28rpx;
}
.list-block-item__label {
color: #999999;
font-size: 24rpx;
margin-right: 16rpx;
}
.list-block-item__value {
color: #333333;
font-size: 12px;
}
.cell-list-block__desc {
color: #333;
font-size: 12px;
}
.icon-arrow {
width: 18rpx;
height: 22rpx;
margin-right: 28rpx;
}
.list-block-item__desc {
font-size: 24rpx;
color: #333;
}
.cell-list-block {
display: flex;
flex: 1;
height: 100rpx;
background: #fff;
align-items: center;
border-bottom: 1px solid #f4f5f6;
}
.loading-more {
flex: 1;
align-items: center;
justify-content: center;
padding-top: 14px;
padding-bottom: 14px;
text-align: center;
}
.loading-more-text {
font-size: 12px;
color: #999;
}
</style>
servers/breakwords.js
0 → 100644
View file @
19dbf056
import
apiHelper
from
'./api.helper.js'
/**
* 数据字典单值查询接口
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export
async
function
apiGetDictionary
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/wmdpwebservices/dictionary/getDictionary'
,
params
)
return
res
}
/**
* 查询所有终端信息
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export
async
function
apiGetTerminal
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/wmdpwebservices/clue/all/terminal'
,
params
)
return
res
}
/**
* 线索提交
* @param name 账户名
* @returns {Promise<AxiosResponse<T>>}
*/
export
async
function
apiClueSubmit
(
params
)
{
const
res
=
await
apiHelper
.
post
(
'/wmdpwebservices/clue/submit'
,
params
)
return
res
}
servers/common.js
View file @
19dbf056
...
@@ -80,6 +80,16 @@ export async function apiGetHomeStatistics(params) {
...
@@ -80,6 +80,16 @@ export async function apiGetHomeStatistics(params) {
return
res
return
res
}
}
/**
* 获取省市
* @param captcha 验证码
* @returns {Promise<AxiosResponse<T>>}
*/
export
async
function
apiGetProvinceCode
(
params
)
{
const
res
=
await
apiHelper
.
post
(
`sap/bc/ztpm/common/searchhelp
${
params
}
`
,
{})
return
res
}
export
default
{
export
default
{
apiProductSelect
,
apiProductSelect
,
apiSalesPlanSelect
,
apiSalesPlanSelect
,
...
...
servers/http.interceptor.js
View file @
19dbf056
...
@@ -57,7 +57,7 @@ const install = (Vue, vm) => {
...
@@ -57,7 +57,7 @@ const install = (Vue, vm) => {
// 如果把originalData设置为了true,这里得到将会是服务器返回的所有的原始数据
// 如果把originalData设置为了true,这里得到将会是服务器返回的所有的原始数据
// 判断可能变成了res.statueCode,或者res.data.code之类的,请打印查看结果
// 判断可能变成了res.statueCode,或者res.data.code之类的,请打印查看结果
console
.
log
(
'http.interceptor---response-----'
,
res
)
console
.
log
(
'http.interceptor---response-----'
,
res
)
if
(
res
.
MSGTYPE
===
'S'
||
res
.
msgtype
===
'S'
||
res
.
status
===
1
)
{
if
(
res
.
MSGTYPE
===
'S'
||
res
.
msgtype
===
'S'
||
res
.
status
===
1
||
res
.
result
===
'S'
)
{
// 如果把originalData设置为了true,这里return回什么,this.$u.post的then回调中就会得到什么
// 如果把originalData设置为了true,这里return回什么,this.$u.post的then回调中就会得到什么
return
res
;
return
res
;
}
else
{
}
else
{
...
...
servers/user.js
View file @
19dbf056
...
@@ -12,13 +12,6 @@ export async function apiLogin(params) {
...
@@ -12,13 +12,6 @@ export async function apiLogin(params) {
return
res
return
res
}
}
// export async function apiLogin(params) {
// const res = await apiHelper.post('/wmdpwebservices/dictionary/getDictionary', {
// dictionaryKey: ''
// })
// return res
// }
export
default
{
export
default
{
apiLogin
apiLogin
}
}
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