Browse Source

修改标题

master
guoxing 2 years ago
parent
commit
7b15ab6e6a
  1. 2
      supervise-business-ui/vue.config.js
  2. 2
      supervise-crm-ui/vue.config.js
  3. 2
      supervise-customer-ui/vue.config.js
  4. 2
      supervise-message-ui/src/settings.js
  5. 2
      supervise-message-ui/vue.config.js
  6. 2
      supervise-organizational-ui/vue.config.js
  7. 2
      supervise-report-ui/vue.config.js
  8. 2
      supervise-risk-ui/src/settings.js
  9. 2
      supervise-risk-ui/vue.config.js
  10. 6
      supervise-uniapp/common/config.js
  11. 74
      supervise-uniapp/pages/home/AddFragment.vue
  12. 279
      supervise-uniapp/pages/home/FindFragment.vue
  13. 284
      supervise-uniapp/pages/home/UserFragment.vue
  14. 2
      supervise-work-ui/vue.config.js
  15. 2
      yxt-portal-ui/src/views/Home/Home.vue
  16. 2
      yxt-portal-ui/vue.config.js

2
supervise-business-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '贷后监管体系' // page title const name = defaultSettings.title || '汇融银行供应链贷后监管平台' // page title
// 如果端口设置为80, // 如果端口设置为80,
// 使用管理员权限执行命令行。 // 使用管理员权限执行命令行。

2
supervise-crm-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '汇融银行贷后监管平台' // page title const name = defaultSettings.title || '汇融银行供应链贷后监管平台' // page title
// 如果端口设置为80, // 如果端口设置为80,
// 使用管理员权限执行命令行。 // 使用管理员权限执行命令行。

2
supervise-customer-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '贷后监管体系' // page title const name = defaultSettings.title || '汇融银行供应链贷后监管平台' // page title
// 如果端口设置为80, // 如果端口设置为80,
// 使用管理员权限执行命令行。 // 使用管理员权限执行命令行。

2
supervise-message-ui/src/settings.js

@ -1,6 +1,6 @@
module.exports = { module.exports = {
title: '贷后监管体系', title: '汇融银行供应链贷后监管平台',
/** /**
* @type {boolean} true | false * @type {boolean} true | false

2
supervise-message-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '贷后监管体系' // page title const name = defaultSettings.title || '汇融银行供应链贷后监管平台' // page title
// 如果端口设置为80, // 如果端口设置为80,
// 使用管理员权限执行命令行。 // 使用管理员权限执行命令行。

2
supervise-organizational-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '贷后监管体系' // page title const name = defaultSettings.title || '汇融银行供应链贷后监管平台' // page title
// 如果端口设置为80, // 如果端口设置为80,
// 使用管理员权限执行命令行。 // 使用管理员权限执行命令行。

2
supervise-report-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '贷后监管体系' // page title const name = defaultSettings.title || '汇融银行供应链贷后监管平台' // page title
// 如果端口设置为80, // 如果端口设置为80,
// 使用管理员权限执行命令行。 // 使用管理员权限执行命令行。

2
supervise-risk-ui/src/settings.js

@ -1,6 +1,6 @@
module.exports = { module.exports = {
title: '贷后监管体系', title: '汇融银行供应链贷后监管平台',
/** /**
* @type {boolean} true | false * @type {boolean} true | false

2
supervise-risk-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '贷后监管体系' // page title const name = defaultSettings.title || '汇融银行供应链贷后监管平台' // page title
// 如果端口设置为80, // 如果端口设置为80,
// 使用管理员权限执行命令行。 // 使用管理员权限执行命令行。

6
supervise-uniapp/common/config.js

@ -7,7 +7,7 @@
*/ */
module.exports = { module.exports = {
baseUrl: 'http://jianguan.yyundong.com/api', baseUrl: 'http://jianguan.yyundong.com/api',
tokenName : "Authorization", // 请求头中token的名字,与服务器端对应 tokenName: "Authorization", // 请求头中token的名字,与服务器端对应
loginTimeoutCode : "5001", // 登录超时或失效的情况下,服务器端返回的错误码 loginTimeoutCode: "5001", // 登录超时或失效的情况下,服务器端返回的错误码
loginTimeoutPage : "/pages/login/index", // 登录超时或失效的情况下,跳转到的登录页面 loginTimeoutPage: "/pages/login/index", // 登录超时或失效的情况下,跳转到的登录页面
} }

74
supervise-uniapp/pages/home/AddFragment.vue

@ -7,9 +7,9 @@
<uni-datetime-picker type="date" :clear-icon="false" v-model="queryParams.date" @change="dateChange" /> <uni-datetime-picker type="date" :clear-icon="false" v-model="queryParams.date" @change="dateChange" />
</view> </view>
<view class="top_select"> <view class="top_select" style="display: flex;">
<text class="top_select_text">选择类型</text> <text class="top_select_text">选择类型</text>
<uni-data-select v-model="queryParams.type" :localdata="range" @change="typeChange"></uni-data-select> <uni-data-select style="flex-grow: 1;" v-model="queryParams.type" :localdata="range" @change="typeChange"></uni-data-select>
</view> </view>
<view class="top_select_btn"> <view class="top_select_btn">
@ -214,48 +214,58 @@
['1-7', 33370, 16888] ['1-7', 33370, 16888]
] ]
let _title = []
let _categories = [] let _categories = []
let _categories = [] let _data1 = []
let _categories = [] let _data2 = []
for (var i = 0; i < source.length; i++) { for (var i = 0; i < source.length; i++) {
// //
if (i == 0) { if (i == 0) {
let title = source[0] let title = source[0]
for (var i = 0; i < title.length; i++) { for (var j = 1; j < title.length; j++) {
Things[i] _title.push(title[j])
} }
} else { } else {
// //
let date = source[i] let data = source[i]
for (var i = 0; i < date.length; i++) { _categories.push(data[0])
_categories.push({
name: date[0]
})
}
// //
_data1.push(data[1])
_data2.push(data[2])
} }
} }
//
setTimeout(() => { let res = {
// categories: _categories,
let res = { series: [{
categories: ["2016", "2017", "2018", "2019", "2020", "2021"], name: _title[0],
series: [{ data: _data1
name: "分销商进货额", },
data: [35, 36, 31, 33, 13, 34] {
}, name: _title[1],
{ data: _data2
name: "实际发货额", }
data: [18, 27, 21, 24, 6, 28] ]
} };
] this.chartData = JSON.parse(JSON.stringify(res));
};
this.chartData = JSON.parse(JSON.stringify(res)); // setTimeout(() => {
}, 100); // //
// let res = {
// categories: ["2016", "2017", "2018", "2019", "2020", "2021"],
// series: [{
// name: "",
// data: [35, 36, 31, 33, 13, 34]
// },
// {
// name: "",
// data: [18, 27, 21, 24, 6, 28]
// }
// ]
// };
// this.chartData = JSON.parse(JSON.stringify(res));
// }, 100);
}, },
} }
} }

279
supervise-uniapp/pages/home/FindFragment.vue

@ -1,27 +1,288 @@
<template> <template>
<view style="background: #F1F2F5;"> <view class="content">
<view>
<view class="top_select">
<text class="top_select_text">选择日期</text>
<uni-datetime-picker type="date" :clear-icon="false" v-model="queryParams.date" @change="dateChange" />
</view>
<view class="top_select" style="display: flex;">
<text class="top_select_text">选择类型</text>
<uni-data-select style="flex-grow: 1;" v-model="queryParams.type" :localdata="range"
@change="typeChange"></uni-data-select>
</view>
<view class="top_select_btn">
<button class="mini-btn" type="primary" size="mini" @click="doQuery()">查询</button>
<button class="mini-btn" type="primary" size="mini" @click="doReset()">重置 </button>
</view>
</view>
<view style="margin-top: 20px;margin-left: 20px;">
<text>当日数据</text>
<text style="margin-left: 10px;">{{newDate}}</text>
</view>
<view style="margin-top: 15px;margin-left: 10px;margin-right: 10px; width: 100%;
height: 300px;">
<qiun-data-charts type="pie" :opts="opts" :chartData="chartData" />
</view>
<view style="margin-top: 25px;margin-left: 15px;margin-right: 15px;">
<uni-table ref="table" :border="true" stripe type="" emptyText="暂无更多数据">
<uni-tr>
<uni-th width="60" align="center">序号</uni-th>
<uni-th align="center">供应商名称</uni-th>
<uni-th width="120" align="center">全部到货日期</uni-th>
<uni-th width="120" align="center">是否延期</uni-th>
</uni-tr>
<uni-tr v-for="(item, index) in tableData" :key="index">
<uni-td align="center">{{item.num}}</uni-td>
<uni-td align="center">{{ item.supplierName }}</uni-td>
<uni-td align="center">{{ item.allArrivedDate }}</uni-td>
<uni-td align="center">{{ item.isDelay }}</uni-td>
</uni-tr>
</uni-table>
</view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
newDate: this.getDate(),
// 1.,2.3.
range: [{
"value": 1,
"text": "全部",
},
{
"value": 2,
"text": "常规商品",
}, {
"value": 3,
"text": "烟草",
}
],
tableData: [{
"isDelay": "是",
"supplierName": "中粮可口可乐饮料(河北)有限公司",
"num": 1,
"supplierSid": "28",
"allArrivedDate": "1993-10-16"
},
{
"isDelay": "否",
"supplierName": "中顺洁柔纸业股份有限公司",
"num": 2,
"supplierSid": "18",
"allArrivedDate": "1993-08-12"
},
{
"isDelay": "是",
"supplierName": "今麦郎食品股份有限公司石家庄分公司",
"num": 3,
"supplierSid": "08",
"allArrivedDate": "2003-12-16"
},
{
"isDelay": "是",
"supplierName": "农夫山泉股份有限公司",
"num": 4,
"supplierSid": "48",
"allArrivedDate": "2013-10-16"
},
{
"isDelay": "否",
"supplierName": "北京百事可乐饮料有限公司",
"num": 5,
"supplierSid": "12",
"allArrivedDate": "2008-03-11"
},
{
"isDelay": "是",
"supplierName": "今麦郎食品股份有限公司石家庄分公司",
"num": 6,
"supplierSid": "03",
"allArrivedDate": "1996-11-20"
},
{
"isDelay": "是",
"supplierName": "农夫山泉股份有限公司",
"num": 7,
"supplierSid": "68",
"allArrivedDate": "2022-10-23"
},
{
"isDelay": "否",
"supplierName": "北京百事可乐饮料有限公司",
"num": 8,
"supplierSid": "88",
"allArrivedDate": "2014-06-02"
}
],
chartData: {},
// config-ucharts.js ['pie'] opts opts
opts: {
color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
"#ea7ccc"
],
padding: [5, 5, 5, 5],
enableScroll: false,
extra: {
pie: {
activeOpacity: 0.5,
activeRadius: 10,
offsetAngle: 0,
labelWidth: 15,
border: true,
borderWidth: 3,
borderColor: "#FFFFFF",
linearType: "custom"
}
}
},
queryParams: {
customerSid: "",
date: "",
type: "",
} }
};
}, },
onLoad() { onReady() {
this.getServerData();
},
onShow() {
}, },
methods: { methods: {
getDate() {
var tempDate = new Date() //
tempDate.setDate(tempDate.getDate() - 1) // NN
var endDate = tempDate.getFullYear() + '-' + (tempDate.getMonth() + 1) + '-' + tempDate.getDate()
console.log(endDate)
return endDate
},
dateChange(e) {
console.log('----dateChange事件:', e);
},
typeChange(e) {
console.log('e:', e);
this.queryParams.type = e
},
doQuery() {
this.newDate = this.queryParams.date
this.getServerData();
},
doReset() {
this.queryParams = {
customerSid: "",
date: "",
type: "",
}
this.newDate = this.getDate()
this.getServerData();
},
getServerData() {
// var _this = this
// this.$api.getSalesReport(_this.queryParams).then((resp) => {
// // if (resp.success) {
// console.log('1111', resp.data)
// // const data = resp.data
// // _this.dataList = data.financialData
// // _this.listSalesChannelData = data.listSalesChannelData
// // _this.drawLine(data.financialAnalysisChartData)
// // this.tableLoading = false
// // } else {
// // // resp.code
// // _this.dataList = []
// // _this.listSalesChannelData = []
// }
// }).catch(e => {
// console.log('eeeee', e)
// _this.tableLoading = false
// })
let source = [{
"value": 2313123,
"name": "订单总额"
},
{
"value": 4359354,
"name": "实际到货价值"
},
{
"value": 2313123,
"name": "在途货价值"
},
{
"value": 56516849,
"name": "超出价值"
}
]
// let res = {
// series: [{
// data: source,
// }]
// };
// this.chartData = JSON.parse(JSON.stringify(res));
setTimeout(() => {
//
let res = {
series: [{
data: source
}]
};
this.chartData = JSON.parse(JSON.stringify(res));
}, 500);
},
} }
} }
</script> </script>
<style lang="scss"> <style scoped>
.charts-box {
width: 100%;
height: 300px;
}
.content {
background: #fff;
padding-top: 10px;
}
.top_select {
display: flex;
margin-left: 20px;
margin-right: 20px;
flex-direction: row;
margin-top: 10px;
align-items: center;
}
.top_select_text {
margin-right: 10px;
}
.top_select_btn {
display: flex;
margin-left: 20px;
margin-right: 20px;
flex-direction: row;
margin-top: 15px;
align-items: center;
}
</style> </style>

284
supervise-uniapp/pages/home/UserFragment.vue

@ -1,7 +1,77 @@
<template> <template>
<view class="content"> <view class="content">
<view>
<view class="top_select">
<text class="top_select_text">选择日期</text>
<uni-datetime-picker type="date" :clear-icon="false" v-model="queryParams.date" @change="dateChange" />
</view>
<view class="top_select" style="display: flex;">
<text class="top_select_text">选择类型</text>
<uni-data-select style="flex-grow: 1;" v-model="queryParams.type" :localdata="range"
@change="typeChange"></uni-data-select>
</view>
<view class="top_select_btn">
<button class="mini-btn" type="primary" size="mini" @click="doQuery()">查询</button>
<button class="mini-btn" type="primary" size="mini" @click="doReset()">重置 </button>
</view>
</view>
<view style="margin-top: 20px;margin-left: 20px;">
<text>当日数据</text>
<text style="margin-left: 10px;">{{newDate}}</text>
</view>
<view style="margin-top: 15px;margin-left: 10px;margin-right: 10px;">
<qiun-data-charts type="mix" :opts="opts" :chartData="chartData" />
</view>
<view style="margin-top: 25px;margin-left: 15px;margin-right: 15px;">
<uni-table ref="table" :border="true" stripe type="" emptyText="暂无更多数据">
<uni-tr>
<uni-th align="center">现金流量-经营活动产生的现金流量()</uni-th>
<uni-th align="center">总额</uni-th>
</uni-tr>
<uni-tr v-for="(item, index) in tableData" :key="index">
<uni-td align="center">{{ item.name }}</uni-td>
<uni-td align="center">{{ item.price }}</uni-td>
</uni-tr>
</uni-table>
</view>
<view style="margin-top: 25px;margin-left: 15px;margin-right: 15px;">
<uni-table ref="table" :border="true" stripe type="" emptyText="暂无更多数据">
<uni-tr>
<uni-th width="200" align="center">销售渠道类别</uni-th>
<uni-th align="center">总额</uni-th>
<uni-th align="center">应收帐款</uni-th>
<uni-th align="center">扣除应收</uni-th>
</uni-tr>
<uni-tr v-for="(item, index) in tableData2" :key="index">
<uni-td align="center">{{ item.name }}</uni-td>
<uni-td align="center">{{ item.totalAmount }}</uni-td>
<uni-td align="center">{{ item.accountsReceivable }}</uni-td>
<uni-td align="center">{{ item.deductionAccountsReceivable }}</uni-td>
</uni-tr>
</uni-table>
</view>
</view> </view>
</template> </template>
@ -9,13 +79,217 @@
export default { export default {
data() { data() {
return { return {
} newDate: this.getDate(),
// 1.,2.3.
range: [{
"value": 1,
"text": "全部",
},
{
"value": 2,
"text": "常规商品",
}, {
"value": 3,
"text": "烟草",
}
],
tableData: [{
name: "销售商品收到的现金(元)",
price: "2000000",
},
{
name: "收到其他与经营活动有关的现金(元)",
price: "28700",
},
{
name: "本项合计",
price: "123456",
},
],
tableData2: [{
name: "销售商品收到的现金(元)",
totalAmount: "2000000",
accountsReceivable: "31914",
deductionAccountsReceivable: "35793"
},
{
name: "连锁内加盟",
totalAmount: "2000000",
accountsReceivable: "31914",
deductionAccountsReceivable: "35793"
},
{
name: "配送中心",
totalAmount: "2000000",
accountsReceivable: "31914",
deductionAccountsReceivable: "35793",
}, {
name: "连锁外加盟",
totalAmount: "2000000",
accountsReceivable: "31914",
deductionAccountsReceivable: "35793",
}
],
chartData: {},
opts: {
color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
"#ea7ccc"
],
padding: [15, 15, 0, 15],
enableScroll: false,
legend: {},
xAxis: {
disableGrid: true,
title: "单位:年"
},
yAxis: {
disabled: false,
disableGrid: false,
splitNumber: 5,
gridType: "dash",
dashLength: 4,
gridColor: "#CCCCCC",
padding: 10,
showTitle: true,
data: [{
position: "left",
title: "折线"
},
{
position: "right",
min: 0,
max: 200,
title: "柱状图",
textAlign: "left"
}
]
},
extra: {
mix: {
column: {
width: 20
}
}
}
},
queryParams: {
customerSid: "",
date: "",
type: "",
}
};
},
onReady() {
this.getServerData();
}, },
methods: { methods: {
} getDate() {
var tempDate = new Date() //
tempDate.setDate(tempDate.getDate() - 1) // NN
var endDate = tempDate.getFullYear() + '-' + (tempDate.getMonth() + 1) + '-' + tempDate.getDate()
console.log(endDate)
return endDate
},
dateChange(e) {
console.log('----dateChange事件:', e);
},
typeChange(e) {
console.log('e:', e);
this.queryParams.type = e
},
doQuery() {
this.newDate = this.queryParams.date
this.getServerData();
},
doReset() {
this.queryParams = {
customerSid: "",
date: "",
type: "",
}
this.newDate = this.getDate()
this.getServerData();
},
getServerData() {
// var _this = this
// this.$api.getSalesReport(_this.queryParams).then((resp) => {
// // if (resp.success) {
// console.log('1111', resp.data)
// // const data = resp.data
// // _this.dataList = data.financialData
// // _this.listSalesChannelData = data.listSalesChannelData
// // _this.drawLine(data.financialAnalysisChartData)
// // this.tableLoading = false
// // } else {
// // // resp.code
// // _this.dataList = []
// // _this.listSalesChannelData = []
// }
// }).catch(e => {
// console.log('eeeee', e)
// _this.tableLoading = false
// })
setTimeout(() => {
//
let res = {
categories: ["2018", "2019", "2020", "2021", "2022", "2023"],
series: [{
name: "柱1",
index: 1,
type: "column",
data: [40, {
"value": 30,
"color": "#f04864"
}, 55, 110, 24, 58]
},
{
name: "柱2",
index: 1,
type: "column",
data: [50, 20, 75, 60, 34, 38]
},
{
name: "折线",
type: "line",
color: "#2fc25b",
data: [120, 140, 105, 170, 95, 160]
}
]
};
this.chartData = JSON.parse(JSON.stringify(res));
}, 500);
},
}
} }
</script> </script>
<style lang="scss"> <style scoped>
.content {
background: #fff;
padding-top: 10px;
}
.top_select {
display: flex;
margin-left: 20px;
margin-right: 20px;
flex-direction: row;
margin-top: 10px;
align-items: center;
}
.top_select_text {
margin-right: 10px;
}
.top_select_btn {
display: flex;
margin-left: 20px;
margin-right: 20px;
flex-direction: row;
margin-top: 15px;
align-items: center;
}
</style> </style>

2
supervise-work-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '贷后监管体系' // page title const name = defaultSettings.title || '汇融银行供应链贷后监管平台' // page title
// 如果端口设置为80, // 如果端口设置为80,
// 使用管理员权限执行命令行。 // 使用管理员权限执行命令行。

2
yxt-portal-ui/src/views/Home/Home.vue

@ -417,7 +417,7 @@ export default {
} else if (index === 6) { } else if (index === 6) {
window.open('http://jianguan.yyundong.com/message/#/' + '?token=' + getStorage(), '_blank') window.open('http://jianguan.yyundong.com/message/#/' + '?token=' + getStorage(), '_blank')
} else if (index === 7) { } else if (index === 7) {
window.open('http://jianguan.yyundong.com/organizational/#/' + '?token=' + getStorage(), '_blank') window.open('http://192.168.3.8:9531/#/index' + '?token=' + getStorage(), '_blank')
} else if (index === 8) { } else if (index === 8) {
window.open('http://jianguan.yyundong.com/crm/#/' + '?token=' + getStorage(), '_blank') window.open('http://jianguan.yyundong.com/crm/#/' + '?token=' + getStorage(), '_blank')
} }

2
yxt-portal-ui/vue.config.js

@ -6,7 +6,7 @@ function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir)
} }
const name = defaultSettings.title || '贷后监管体系' // page title const name = defaultSettings.title || '汇融银行供应链贷后监管平台' // page title
// 如果端口设置为80, // 如果端口设置为80,
// 使用管理员权限执行命令行。 // 使用管理员权限执行命令行。

Loading…
Cancel
Save