e1d1004e by 任超

feat:文件夹修改

1 parent e4ae665c
/*
* @Description: 统计率
* @Autor: renchao
* @LastEditTime: 2023-03-01 15:37:49
*/
/* 引入请求文件 */
import request from '@/utils/request'
/* 引入配置文件 */
import SERVER from './config'
class business {
/*
成功率统计
startDate:开始日期
endDate:结束日期
*/
async getSuucessRate(startDate,endDate,qxdm) {
/**
* @description: 成功率统计
* @param {*} startDate
* @param {*} endDate
* @param {*} qxdm
* @author: renchao
*/
async getSuucessRate (startDate, endDate, qxdm) {
return request({
url: SERVER.SERVERAPI + '/rest/statistics/Business/sf',
method: 'get',
params: {
startDate:startDate,
endDate:endDate,
qxdm:qxdm
startDate: startDate,
endDate: endDate,
qxdm: qxdm
}
})
}
......
/*
* @Description: 这个是所有api的前缀配置文件
* @Autor: renchao
* @LastEditTime: 2023-03-01 15:35:44
*/
export default {
// SERVERAPI: '/service-bdcsjsb-th', //浩浩
// SERVERAPI: '/service-bdcsjsb-zz',
......
/*
* @Description: 数据上报模块api文件
* @Autor: renchao
* @LastEditTime: 2023-03-01 16:33:08
*/
/* 引入axios请求文件 */
import request from '@/utils/request'
/* 引入配置 */
import SERVER from './config'
const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/DataReport/'
// 区县上报分页
/**
* @description: 区县上报根据业务id获取xml
* @param {*} bizMsgid
* @author: renchao
*/
export function getXml (bizMsgid) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getXml',
url: urlHeader + 'getXml',
method: 'get',
params: {
businessId: bizMsgid
......@@ -12,58 +24,89 @@ export function getXml (bizMsgid) {
})
}
// 区县上报分页
/**
* @description: 区县上报分页
* @param {*} data
* @author: renchao
*/
export function getAreaReportPage (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getAreaReportPage',
url: urlHeader + 'getAreaReportPage',
method: 'post',
data
})
}
// 接入数据上报分页
/**
* @description: 接入数据上报分页
* @author: renchao
*/
export function getReceiveDataReportPage (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getReceiveDataReportPage',
url: urlHeader + 'getReceiveDataReportPage',
method: 'post',
data
})
}
// 数据上报分页
/**
* @description: 数据上报分页
* @author: renchao
*/
export function getDataReportPage (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getDataReportPage',
url: urlHeader + 'getDataReportPage',
method: 'post',
data
})
}
// 查询数据上报详情tabs选项卡
/**
* @description: 查询数据上报详情tabs选项卡
* @author: renchao
*/
export function getTabsDetail (params) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getTabsDetail',
url: urlHeader + 'getTabsDetail',
method: 'get',
params
})
}
// 查询数据上报详情
/**
* @description: 查询数据上报详情
* @author: renchao
*/
export function getReportDetail (params) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getReportDetail',
url: urlHeader + 'getReportDetail',
method: 'get',
params
})
}
// 结果
/**
* @description: 获取数据上报结果
* @param {*} bsmReport
* @author: renchao
*/
export function getReceiveDataReportResult (bsmReport) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/DataReport/getReceiveDataReportResult',
url: urlHeader + 'getReceiveDataReportResult',
method: 'get',
params: {
bsmReport: bsmReport
}
})
}
/**
* @description: 重新上报
* @param {*} bsmReport
* @author: renchao
*/
export function restartGenerateXml (bsmReport) {
return request({
url: urlHeader + 'restartGenerateXml?bsmReport=' + bsmReport,
method: 'post'
})
}
\ No newline at end of file
......
/*
* @Description: 登薄日志
* @Autor: renchao
* @LastEditTime: 2023-03-01 17:09:38
*/
/* 引入请求文件 */
import request from '@/utils/request'
/* 引入配置文件 */
import SERVER from './config'
const urlHeader = SERVER.SERVERAPI + '/rest/sjsb/RecordLog/'
// 登簿日志分页
/**
* @description: 登簿日志分页
* @author: renchao
*/
export function getRecordLogPage (data) {
return request({
url: SERVER.SERVERAPI + '/rest/sjsb/RecordLog/getRecordLogPage',
url: urlHeader + 'getRecordLogPage',
method: 'post',
data
})
}
/**
* @description: 获取详情明细
* @param {*} dbBsm
* @author: renchao
*/
export function getDetail (dbBsm) {
return request({
url: urlHeader + 'getDetail',
method: 'get',
params: {
dbBsm: dbBsm
}
})
}
......
......@@ -119,8 +119,7 @@
import { mapGetters } from "vuex";
import JsonEditor from "@/components/JsonEditor.vue";
import Xyjg from "./Result";
import { getTabsDetail, getXml, getReportDetail } from "@/api/dataReport.js";
import { MessageBox } from "element-ui";
import { getTabsDetail, getXml, getReportDetail, restartGenerateXml } from "@/api/dataReport.js";
export default {
components: { JsonEditor, Xyjg },
props: {
......@@ -241,11 +240,11 @@ export default {
this.editItem = "";
this.headerList = [];
},
submitForm () {
// this.$store.dispatch(
// "business/setRules",
// this.$store.state.business.subRules
// );
/**
* @description: 提交
* @author: renchao
*/
submitForm: _.debounce(function () {
this.$refs["editItem"].handleUpdateForm()
.then((res) => {
if (res == 200) {
......@@ -261,9 +260,22 @@ export default {
type: "error"
})
})
},
// 重新上报
handleResubmit () { }
}, 500),
/**
* @description: 重新上报
* @author: renchao
*/
handleResubmit: _.debounce(function () {
restartGenerateXml(this.dataReport.bsmSjsb || this.dataReport.bsmReport).then((res) => {
if (res.code == 200) {
this.resultInfo = res.message
this.$message({
message: '生成成功',
type: 'success'
})
}
})
}, 500)
}
}
</script>
......
......@@ -118,6 +118,7 @@
},
data () {
return {
pickerOptionsStart: {
disabledDate: (time) => {
let endDateVal = this.form.receiveEndTime;
......
......@@ -4,38 +4,16 @@
<h2>{{ productName }}</h2>
<div class="user_style">
<h3>欢迎登录</h3>
<el-form
:model="user"
:rules="rules"
ref="user"
id="loginform"
class="demo-ruleForm"
>
<el-form :model="user" :rules="rules" ref="user" id="loginform" class="demo-ruleForm">
<el-form-item prop="account">
<el-input
class="username"
v-model="user.account"
placeholder="请输入用户名"
></el-input>
<el-input class="username" v-model="user.account" placeholder="请输入用户名"></el-input>
</el-form-item>
<el-form-item prop="password">
<el-input
type="password"
class="password"
v-model="user.password"
placeholder="请输入密码"
></el-input>
<el-input type="password" class="password" @keyup.native="login('user')" v-model="user.password"
placeholder="请输入密码"></el-input>
</el-form-item>
<!-- <el-form-item>
<el-checkbox
label="记住用户名"
@change="checkUserName"
></el-checkbox>
</el-form-item> -->
<el-form-item class="login-btn">
<el-button type="primary" style="width: 100%" @click="login('user')"
>登录</el-button
>
<el-button type="primary" style="width: 100%" @click="login('user')">登录</el-button>
</el-form-item>
</el-form>
</div>
......@@ -48,7 +26,7 @@ import { loginIn } from "@/api/login.js";
import { api, getAction } from "@/api/manageApi";
export default {
name: "Login",
data() {
data () {
return {
user: {
account: "",
......@@ -62,7 +40,7 @@ export default {
},
};
},
created() {
created () {
const params = {};
const queryOptions = {
conditionGroup: {
......@@ -87,7 +65,7 @@ export default {
}
});
},
mounted() {
mounted () {
// this.checkUserName();
},
methods: {
......@@ -106,7 +84,7 @@ export default {
this.user.account = localStorage.getItem("accountId");
}
},
login(user) {
login (user) {
var self = this;
this.$refs[user].validate((valid) => {
if (valid) {
......@@ -135,6 +113,7 @@ export default {
.username,
.password {
position: relative;
&:before {
content: "";
display: block;
......@@ -145,18 +124,22 @@ export default {
top: 7px;
background-size: 100% 100%;
}
/deep/ .el-input__inner {
text-indent: 24px;
border: 1px solid rgba(11, 161, 248, 0.4);
background-color: rgba(6, 135, 205, 0.3) !important;
}
}
.username::before {
background-image: url(../../image/username.png);
}
.password::before {
background-image: url(../../image/password.png);
}
.bg {
width: 100%;
height: 100%;
......@@ -180,6 +163,7 @@ export default {
background-size: 100% 100%;
box-sizing: border-box;
padding: 56px;
h2 {
width: 100%;
font-size: 36px;
......@@ -190,14 +174,12 @@ export default {
position: absolute;
right: 0;
top: -70px;
background-image: linear-gradient(
180deg,
rgba(99, 163, 255, 1) 0,
rgba(99, 163, 255, 1) 0,
rgba(182, 220, 255, 1) 49.731445%,
rgba(114, 190, 255, 1) 100%,
rgba(114, 190, 255, 1) 100%
);
background-image: linear-gradient(180deg,
rgba(99, 163, 255, 1) 0,
rgba(99, 163, 255, 1) 0,
rgba(182, 220, 255, 1) 49.731445%,
rgba(114, 190, 255, 1) 100%,
rgba(114, 190, 255, 1) 100%);
overflow-wrap: break-word;
color: rgba(255, 255, 255, 1);
font-size: 36px;
......@@ -206,6 +188,7 @@ export default {
-webkit-text-fill-color: transparent;
}
}
.login {
.user_style {
h3 {
......@@ -217,6 +200,7 @@ export default {
font-weight: 400;
}
}
.btn {
width: 100%;
height: 6vh;
......@@ -225,6 +209,7 @@ export default {
font-size: 1.4vw;
color: #ffffff;
}
.btn:hover {
cursor: pointer;
background-color: #2d8cf0;
......@@ -235,18 +220,22 @@ export default {
.el-form-item {
margin-bottom: 24px !important;
}
.login-btn {
margin-top: 40px !important;
}
.el-button {
font-size: 18px;
background: #0d8cc0 !important;
color: #ffffff !important;
cursor: pointer !important;
}
.el-input__inner {
width: 100% !important;
}
.el-checkbox__label {
color: #fff;
}
......
......@@ -51,7 +51,7 @@ import data from "./data";
// 引入table混入方法
import tableMixin from "@/mixins/tableMixin.js";
// 导出excel表格
import downLbTable from '@/components/downLbTable'
import downLbTable from '@/components/DownLbTable'
// 获取时间
import { getCurrentDate, setExport2Excel } from "@/utils/tools";
export default {
......
......@@ -51,7 +51,7 @@ import data from "./data";
// 引入table混入方法
import tableMixin from "@/mixins/tableMixin.js";
// 导出excel表格
import downLbTable from '@/components/downLbTable'
import downLbTable from '@/components/DownLbTable'
// 获取时间
import { getCurrentDate, setExport2Excel } from "@/utils/tools";
export default {
......
......@@ -49,7 +49,7 @@ import data from "./data";
// 引入table混入方法
import tableMixin from "@/mixins/tableMixin.js";
// 导出excel表格
import downLbTable from '@/components/downLbTable'
import downLbTable from '@/components/DownLbTable'
// 获取时间
import { getCurrentDate, setExport2Excel } from "@/utils/tools";
export default {
......
......@@ -15,22 +15,22 @@
<el-row class="dialog-from_header item-content-input">
<el-col :span="8">
<span>行政编码:</span>
<el-input v-model="titleForm.xzbm" maxlength="10"></el-input>
<el-input v-model="accessLog.AREACODE" maxlength="10"></el-input>
</el-col>
<el-col :span="8">
<span>行政名称:</span>
<el-input v-model="titleForm.mc" maxlength="20"></el-input>
<el-input v-model="accessLog.AREANAME" maxlength="20"></el-input>
</el-col>
<el-col :span="8">
<span>日期:</span>
<el-date-picker v-model="titleForm.date" type="date">
<el-date-picker v-model="accessLog.CREATEDATE" type="date">
</el-date-picker>
</el-col>
</el-row>
<el-row class="dialog-from_header item-content-input">
<el-col :span="24">
<span class="bz">备注:</span>
<el-input placeholder="请输入内容" maxlength="1000" v-model="titleForm.bz">
<el-input placeholder="请输入内容" maxlength="1000" v-model="accessLog.REMARK">
</el-input>
</el-col>
</el-row>
......@@ -110,7 +110,7 @@
<div>
<el-row class="dialog-from_header item-content-input">
<el-col :span="4">
<span>总数量1</span>
<span>总数量:</span>
<el-input v-model="titleForm.totalNum" oninput="if(value.length > 6) value=value.slice(0, 6)"
type="number"></el-input>
</el-col>
......@@ -214,6 +214,7 @@
<script>
import { sbdata, sendThis } from './data/sbdata'
import { dbdata, sendThis1 } from './data/dbdata'
import { getDetail } from "@/api/recordLog.js"
import JsonEditor from "@/components/JsonEditor.vue";
import Xyjg from "./Result";
export default {
......@@ -230,11 +231,15 @@ export default {
dialogVisible: false,
titleName: 'sjmx',
titleName2: 'drdbxd',
// 头部信息
accessLog: {
AREACODE: '',
AREANAME: '',
CREATEDATE: '',
REMARK: ''
},
titleForm: {
xzbm: '',
mc: '',
date: '',
bz: '',
totalNum: '',
firstReg: '',
transferReg: '',
......@@ -271,8 +276,12 @@ export default {
this.dialogVisible = false;
},
isShow (item) {
this.titleName = 'sjmx';
this.dialogVisible = true;
this.titleName = 'sjmx'
this.dialogVisible = true
console.log(item, 'itemitemitem')
getDetail(item.dbBsm).then(res => {
console.log(res, 'eeeeeeeeeeeeeeeee');
})
},
// 当日登薄详单
handleDBAdd () {
......
......@@ -147,6 +147,9 @@ export default {
this.$refs.editLog.isShow(row);
this.$store.dispatch('business/setReportLogEdit')
}
},
destroyed () {
this.$store.dispatch('business/setEdit')
}
}
</script>
......