This commit is contained in:
JIAL 2024-06-20 14:10:06 +08:00
parent f17502cf53
commit 07412a67e7
8 changed files with 173 additions and 100 deletions

View File

@ -1,13 +1,5 @@
#for tests only !
<<<<<<< HEAD
#Wed Jun 19 10:12:57 CST 2024
=======
<<<<<<< HEAD
#Wed Jun 19 09:11:03 CST 2024
=======
#Mon Jun 17 15:48:27 CST 2024
>>>>>>> 1efe171bc013909adaa8e3300a0b9ce6c2e24d85
>>>>>>> d63db1c95090eda2578290808925b20b3608a764
#Thu Jun 20 12:02:54 CST 2024
jco.destination.pool_capacity=10
jco.client.lang=ZH
jco.client.ashost=172.19.0.125
@ -15,13 +7,5 @@ jco.client.saprouter=
jco.client.user=RFC
jco.client.sysnr=00
jco.destination.peak_limit=10
<<<<<<< HEAD
jco.client.passwd=dbTq!8PGYoMxt}M?DFv(:oQQUwH:qM9KKr$k^CHW9U;kE9uK
=======
<<<<<<< HEAD
jco.client.passwd=g}=[!8cY+]^Y:h6_:E9``X=J#eA[=IM/|(0EB`M)]I1i?/qD
=======
jco.client.passwd=654321
>>>>>>> 1efe171bc013909adaa8e3300a0b9ce6c2e24d85
>>>>>>> d63db1c95090eda2578290808925b20b3608a764
jco.client.client=800

View File

@ -32,6 +32,6 @@ public class SHA1 {
}
public static void main(String[] args) {
System.out.println(shaEncode("uy4MbH"+"8879"));
System.out.println(shaEncode("uy4MbH"+"990101"));
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

@ -53,6 +53,11 @@ export const constantRoutes = [
component: () => import('@/views/ssoLogin'),
hidden: true
},
{
path: '/ssoMobileLogin',
component: () => import('@/views/ssoMobileLogin'),
hidden: true
},
{
path: '/register',
component: () => import('@/views/register'),
@ -147,6 +152,18 @@ export const constantRoutes = [
}
]
},
{
path: '/mobile/index',
component: Layout,
hidden: true,
children: [
{
path: '',
component: () => import('@/views/mobile/index'),
name: 'mobileIndex'
}
]
},
]
// 动态路由,基于用户权限动态去加载

View File

@ -2,14 +2,14 @@
<div class="app-container">
<!-- Section 1 -->
<div class="app-card">
<h2 class="app-title">报价</h2>
<p class="app-title">报价</p>
<el-row :gutter="10">
<el-col :span="8" class="app-icon-container">
<el-card shadow="always" class="app-icon-card" >
<div class="app-icon" @click="handleClick('quoteMobile')">
<img src="https://via.placeholder.com/50" alt="App1">
<img src="@/assets/logo/xunJiaLogo.png" alt="报价单">
</div>
<div class="app-name">价单</div>
<div class="app-name">价单</div>
</el-card>
</el-col>
<!-- <el-col :span="8" class="app-icon-container">-->
@ -106,17 +106,17 @@ export default {
}
.app-card {
background-color: #e0f7fa;
background-color: #F5F5F5;
border-radius: 15px;
padding: 20px;
padding: 10px 20px 20px 20px;
margin-bottom: 20px;
}
.app-title {
margin-bottom: 15px;
margin-bottom: 10px;
font-size: 18px;
color: #333;
text-align: center;
text-align: left;
}
.app-icon-container {

View File

@ -3,14 +3,23 @@
<div class="search-container">
<el-input
v-model="queryParams.quotCustomerName"
style="margin-bottom: 10px"
placeholder="请输入客户名称"
class="search-input"
clearable>
</el-input>
<el-input
v-model="queryParams.quotProject"
placeholder="请输入项目名称"
style="margin-bottom: 10px"
class="search-input"
clearable>
</el-input>
<div style="display: flex">
<el-select
v-model="queryParams.quotApprovalStatus"
placeholder="请选择审批状态"
class="search-input"
style="width: 50%; margin-right: 10px"
clearable
>
<el-option
@ -20,15 +29,11 @@
:value="dict.value"
/>
</el-select>
<el-input
v-model="queryParams.quotProject"
placeholder="请输入项目名称"
class="search-input"
clearable>
<el-button slot="append" icon="el-icon-search" @click="handleSearch">搜索</el-button>
<el-button slot="append" icon="el-icon-plus" @click="handleAdd">新增</el-button>
</el-input>
<div style="width: 50%">
<el-button size="mini" icon="el-icon-search" @click="handleSearch">搜索</el-button>
<el-button size="mini" icon="el-icon-plus" @click="handleAdd">新增</el-button>
</div>
</div>
</div>
<div v-if="quoteList.length === 0">内容为空</div>
<div v-for="(quote, index) in quoteList" :key="index">
@ -36,9 +41,7 @@
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>{{quote.quotCode}}</span>
<el-button style="float: right; padding: 3px; " type="text" @click="handleEdit(quote, 'edit')">编辑</el-button>
<el-button style="float: right; padding: 3px; margin-right: 50px " type="text" @click="handleEdit(quote, 'view')">查看</el-button>
<el-button style="float: right; padding: 3px; " type="text" @click="handleEdit(quote)">编辑</el-button>
</div>
<div class="text item">
<div v-if="false">订单号Id:{{quote.quotId}}</div>
@ -55,6 +58,7 @@
</el-card>
</div>
</div>
<div style="margin-bottom: 40px">
<pagination
v-show="total>0"
:total="total"
@ -62,6 +66,8 @@
:limit.sync="queryParams.pageSize"
@pagination="handleSearch"
/>
</div>
</div>
</template>
@ -99,13 +105,15 @@ export default {
this.handleSearch();
},
mounted() {
this.$store.dispatch('app/toggleSideBarHide', true);
document.querySelector('.navbar').style.display = "none";
document.querySelector('.tags-view-container').style.display = "none";
},
methods: {
handleSearch() {
try {
listQuot(this.queryParams).then(response => {
this.quoteList = response.rows;
this.queryParams.pageNum++;
this.total = response.total;
});
} catch (error) {
@ -115,10 +123,9 @@ export default {
handleAdd() {
this.$router.push('/quoteMobile/add');
},
handleEdit(quote, name) {
const info = { quotId: quote.quotId, operate: name };
console.log(info);
this.$router.push({ path: '/quoteMobile/edit/edit', query: info });
handleEdit(quote) {
const info = {quotId : quote.quotId}
this.$router.push({ path: '/quoteMobile/edit/edit', query: info});
console.log(quote)
},

View File

@ -12,7 +12,7 @@
<el-form-item label="客户" prop="quotCustomerName">
<el-input readonly v-model="formData.quotCustomerName" placeholder="请输入客户" >
<template slot="append">
<span @click="openCustomer">选择</span>
<span v-if="!isVIf" @click="openCustomer">选择</span>
</template>
</el-input>
</el-form-item>
@ -20,11 +20,7 @@
<el-input :readonly="isReadOnly" v-model="formData.quotAddress" placeholder="请输入地址" clearable>
</el-input>
</el-form-item>
<el-form-item label="审核人" prop="quotCheckUserNickname">
<el-input readonly v-model="formData.quotCheckUserNickname" placeholder="审核人" clearable
></el-input>
</el-form-item>
<el-form-item label="提交状态" prop="quotApprovalStatus">
<el-form-item v-if="isVIf" label="提交状态" prop="quotApprovalStatus">
<el-input readonly
:value="formData.quotApprovalStatus === undefined ? '' :(formData.quotApprovalStatus === '0' ? '待提交' :
(formData.quotApprovalStatus === '1' ? '协助中' :
@ -33,7 +29,7 @@
></el-input>
</el-form-item>
<el-form-item label="项目名称" prop="quotProject">
<el-input v-model="formData.quotProject" placeholder="请输入项目名称" clearable >
<el-input :readonly="isReadOnly" v-model="formData.quotProject" placeholder="请输入项目名称" clearable >
</el-input>
</el-form-item>
<el-form-item label="OA审批备注" prop="quotOAApprovalStatusRemark">
@ -41,16 +37,16 @@
</el-input>
</el-form-item>
<el-form-item label="报价要求" prop="quotQuotationRequire">
<el-input v-model="formData.quotQuotationRequire" placeholder="请输入报价要求" clearable
<el-input :readonly="isReadOnly" v-model="formData.quotQuotationRequire" placeholder="请输入报价要求" clearable
></el-input>
</el-form-item>
<el-form-item label="联系电话" prop="quotPhone">
<el-input v-model="formData.quotPhone" placeholder="请输入联系电话" clearable >
<el-input :readonly="isReadOnly" v-model="formData.quotPhone" placeholder="请输入联系电话" clearable >
</el-input>
</el-form-item>
<el-divider content-position="left" class="customer_divider_text">清单附件(先保存再上传且必须是EXCEL文件)</el-divider>
<el-divider content-position="left" >清单附件(先保存再上传且必须是EXCEL文件)</el-divider>
<div v-hasPermi="['quot:quot:quotXjFile']">
<el-upload class="upload-demo"
ref="quotXjFileUpload"
@ -62,7 +58,7 @@
:on-success="handleAvatarSuccess"
:show-file-list="false"
:limit="1"
v-if="this.formData.quotApprovalStatus == '0' && !isReadOnly">
v-if="this.formData.quotApprovalStatus == '0' ">
<el-button size="small" type="primary" @click="uploadFile('quotXjFile')">上传文件</el-button>
</el-upload>
</div>
@ -73,14 +69,14 @@
<el-button :key="Math.random()" size="small" type="text">
<a @click="downloadFile(scope.row.fileUrl)">下载</a>
</el-button>
<el-button :key="Math.random()" size="small" type="text" v-if="formData.quotApprovalStatus == '0' && !isReadOnly">
<el-button :key="Math.random()" size="small" type="text" v-if="formData.quotApprovalStatus == '0' ">
<a @click="deleteFile(scope.row.fileId,'quotXjFile')">删除</a>
</el-button>
</template>
</el-table-column>
</el-table>
<el-divider content-position="left" class="customer_divider_text">技术附件(先保存再上传,如包含清单附件则不受理)</el-divider>
<el-divider content-position="left">技术附件(先保存再上传,如包含清单附件则不受理)</el-divider>
<div v-hasPermi="['quot:quot:quotJsgfFile']">
<el-upload class="upload-demo"
ref="quotJsgfFileUpload"
@ -92,7 +88,7 @@
:on-success="handleAvatarSuccess"
:show-file-list="false"
:limit="1"
v-if="this.formData.quotApprovalStatus == '0' && !isReadOnly">
v-if="this.formData.quotApprovalStatus == '0' ">
<el-button size="small" type="primary" @click="uploadFile('quotJsgfFile')">上传文件</el-button>
</el-upload>
</div>
@ -103,29 +99,14 @@
<el-button :key="Math.random()" size="small" type="text">
<a @click="downloadFile(scope.row.fileUrl)">下载</a>
</el-button>
<el-button :key="Math.random()" size="small" type="text" v-if="formData.quotApprovalStatus == '0' && !isReadOnly">
<el-button :key="Math.random()" size="small" type="text" v-if="formData.quotApprovalStatus == '0'">
<a @click="deleteFile(scope.row.fileId,'quotJsgfFile')">删除</a>
</el-button>
</template>
</el-table-column>
</el-table>
<el-divider content-position="left" class="customer_divider_text">反馈附件</el-divider>
<div v-hasPermi="['quot:quot:quotFkFile']" >
<el-upload class="upload-demo"
ref="quotFkFileUpload"
name="quotFile"
:action="uploadUrl"
:headers="headers"
:data="{ relation_id: this.formData.quotId,file_type: 'quotFkFile' }"
:before-upload="beforeAvatarUploadQuotFkFile"
:on-success="handleAvatarSuccess"
:show-file-list="false"
:limit="1"
v-if="this.formData.quotApprovalStatus == '1'">
<el-button size="small" type="primary" @click="uploadFile('quotFkFile')">上传文件</el-button>
</el-upload>
</div>
<el-divider content-position="left">反馈附件</el-divider>
<el-table class="down" v-loading="quotFkFileLoading" :data="quotFkFileList" border stripe style="width: 100%;margin-top: 10px;" height="200px">
<el-table-column prop="fileName" label="文件名称"></el-table-column>
<el-table-column width="150px" label="操作">
@ -139,8 +120,8 @@
</el-table>
<el-form-item style="margin-top: 15px">
<el-button v-if="!isReadOnly" @click="saveForm">保存</el-button>
<el-button v-if="!isReadOnly" style="margin: 0px 15px 0px 20px" type="primary" @click="commitForm">提交</el-button>
<el-button v-if="!isVIf" @click="saveForm">保存</el-button>
<el-button v-if="!isVIf" style="margin: 0px 15px 0px 20px" type="primary" @click="commitForm">提交</el-button>
<el-button @click="closeForm">取消</el-button>
</el-form-item>
</el-form>
@ -175,6 +156,7 @@ export default {
data() {
return {
isReadOnly: false,
isVIf: false,
// -
quotXjFileLoading: false,
quotXjFileList: [],
@ -199,6 +181,7 @@ export default {
formData: {
quotId: null,
quotCode: '',
quotApprovalStatus: undefined,
quotCustomerName: '',
quotAddress: '',
quotCheckUserNickname: '',
@ -235,21 +218,21 @@ export default {
computed: {},
watch: {},
created() {
const queryParams = this.$route.query;
console.log(queryParams);
const quotId = queryParams.quotId;
const operate = queryParams.operate;
if (quotId !== undefined && quotId !== null) {
const row = {'quotId':quotId}
const param = this.$route.query;
if (param.quotId !== undefined && param.quotId !== null) {
const row = {'quotId':param.quotId}
this.handleUpdate(row);
}
if (operate === 'view') {
this.isReadOnly = true;
}
console.log(quotId);
},
mounted() {
this.$store.dispatch('app/toggleSideBarHide', true);
document.querySelector('.navbar').style.display = "none";
document.querySelector('.tags-view-container').style.display = "none";
},
mounted() {},
methods: {
//
openCustomer(){
@ -293,11 +276,20 @@ export default {
this.showQt = true;
this.getQuotJsqrFileList('quotJsqrQtFkFile');
}
}
this.getQuotXjFileList();
this.getQuotJsgfFileList();
this.getQuotHjFileList();
this.getQuotFkFileList();
console.log("状态是" + this.formData.quotApprovalStatus)
if (this.formData.quotApprovalStatus === '0') {
this.isReadOnly = false;
this.isVIf = false
} else {
this.isReadOnly = true;
this.isVIf = true
}
},
/** 保存按钮 */

View File

@ -0,0 +1,73 @@
<template>
<div></div>
</template>
<script>
export default {
name: "NoPwdLogin",
data() {
return {
loginRules: {
},
loading: false,
//
captchaOnOff: true,
//
register: false,
redirect: undefined,
userNoPswInfo:{
loginid:"",
token:""
}
};
},
watch: {
$route: {
handler: function(route) {
console.log("路由:"+route)
this.redirect = route.query && route.query.redirect;
},
immediate: true
}
},
created() {
//
this.getLoginByNameAndTokenJ();
},
methods: {
/**
* 三方平台单点登陆
* 只传递token
*/
getLoginByNameAndTokenJ() {
// 使oa
var loginid = this.$route.query.loginid;
var token = this.$route.query.token;
//
if (loginid == '' || loginid == undefined || loginid == null || token == '' || token == undefined || token == null) {
this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
} else {
this.loading = true;//
console.log("开启过渡动画")
this.userNoPswInfo = {
loginid: loginid,
token: token
};
this.$store.dispatch("NoPwdLogin", this.userNoPswInfo).then(() => {
this.$router.push({ path: this.redirect || "/mobile/index" }).catch(()=>{});
}).catch(() => {
this.loading = false;
this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
});
}
}
}
};
</script>
<style rel="stylesheet/scss" lang="scss">
</style>