前端更改

This commit is contained in:
zhouzy062 2024-03-27 14:10:36 +08:00
parent 7e870bacc7
commit db5a6079c0
8 changed files with 30 additions and 25 deletions

View File

@ -104,7 +104,7 @@ export default {
}).then(() => { }).then(() => {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
location.href = '/login'; location.href = '/login';
// location.href = '/gl/'; // location.href = '/gl/login';
}) })
}).catch(() => {}); }).catch(() => {});
} }

View File

@ -33,7 +33,7 @@ router.beforeEach((to, from, next) => {
store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
Message.error(err) Message.error(err)
next({ path: '/login' }) next({ path: '/login' })
// next({ path: '/gl/' }) // next({ path: '/gl/login' })
}) })
}) })
} else { } else {

View File

@ -197,6 +197,7 @@ Router.prototype.replace = function push(location) {
} }
export default new Router({ export default new Router({
// base:'/gl/',
mode: 'history', // 去掉url中的# mode: 'history', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes routes: constantRoutes

View File

@ -88,7 +88,7 @@ service.interceptors.response.use(res => {
isRelogin.show = false; isRelogin.show = false;
store.dispatch('LogOut').then(() => { store.dispatch('LogOut').then(() => {
location.href = '/login'; location.href = '/login';
// location.href = '/gl/'; // location.href = '/gl/login';
}) })
}).catch(() => { }).catch(() => {
isRelogin.show = false; isRelogin.show = false;

View File

@ -20,8 +20,8 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="工程名称" prop="projectId"> <el-form-item label="工程名称" prop="lotId">
<el-select v-model="queryParams.projectId" filterable placeholder="请选择工程名称" clearable> <el-select v-model="queryParams.lotId" filterable placeholder="请选择工程名称" clearable>
<el-option <el-option
v-for="item in projectList" v-for="item in projectList"
:key="item.projectId" :key="item.projectId"
@ -30,18 +30,18 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="联系人姓名" prop="cName"> <el-form-item label="联系人姓名" prop="backMan">
<el-input maxlength="50" <el-input maxlength="50"
v-model="queryParams.cName" v-model="queryParams.backMan"
placeholder="请输入联系人姓名" placeholder="请输入联系人姓名"
clearable clearable
style="width: 240px" style="width: 240px"
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="联系人电话" prop="cPhone"> <el-form-item label="联系人电话" prop="backPhone">
<el-input <el-input
v-model="queryParams.cPhone" v-model="queryParams.backPhone"
placeholder="请输入联系人电话" placeholder="请输入联系人电话"
clearable maxlength="11" clearable maxlength="11"
style="width: 240px" style="width: 240px"
@ -49,7 +49,7 @@
/> />
</el-form-item> </el-form-item>
<el-form-item label="完成情况" prop="status"> <el-form-item label="完成情况" prop="status">
<el-select v-model="queryParams.status" filterable placeholder="请选择工程名称" clearable> <el-select v-model="queryParams.status" filterable placeholder="请选择完成情况" clearable>
<el-option <el-option
v-for="item in statusList" v-for="item in statusList"
:key="item.id" :key="item.id"

View File

@ -105,7 +105,7 @@
<el-table-column label="规格型号" prop="guigeCn" :show-overflow-tooltip="true" /> <el-table-column label="规格型号" prop="guigeCn" :show-overflow-tooltip="true" />
<el-table-column label="计量单位" prop="unitCn"/> <el-table-column label="计量单位" prop="unitCn"/>
<el-table-column label="库存数量" prop="num"/> <el-table-column label="库存数量" prop="num"/>
<el-table-column label="预领数量" align="center" prop="createTime"> <el-table-column label="预领数量" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
v-model.number="scope.row.preNum" v-model.number="scope.row.preNum"
@ -117,7 +117,7 @@
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="备注" align="center" prop="createTime"> <el-table-column label="备注" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input maxlength="100" <el-input maxlength="100"
v-model="scope.row.remark" v-model="scope.row.remark"

View File

@ -79,12 +79,11 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
type="primary" @click="handleView(scope.row)"
@click="handle(scope.row)" >查看</el-button>
></el-button>
<el-button <el-button
size="mini" size="mini"
type="warning" type="primary"
@click="handleOut(scope.row)" @click="handleOut(scope.row)"
>出库</el-button> >出库</el-button>
</template> </template>
@ -352,6 +351,11 @@
}) })
}); });
}, },
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -361,6 +365,9 @@
this.loading = false; this.loading = false;
} }
); );
},
handleView(){
}, },
// //
cancel() { cancel() {
@ -379,11 +386,7 @@
}; };
this.resetForm("nform"); this.resetForm("nform");
}, },
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
handleDialogQuery() { handleDialogQuery() {
this.dialogQuery.pageNum = 1; this.dialogQuery.pageNum = 1;
this.getDialogList(); this.getDialogList();

View File

@ -40,9 +40,9 @@ module.exports = {
// target: `http://192.168.0.14:21624`,//线上环境/ // target: `http://192.168.0.14:21624`,//线上环境/
// target: `http://1.12.248.179:23028`,//线上环境-南网 // target: `http://1.12.248.179:23028`,//线上环境-南网
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网 // target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`, target: `https://z.csgmall.com.cn`,
target: `http://10.40.92.8:8080`,//超 // target: `http://10.40.92.8:8080`,//超
// target: `http://10.40.92.253:8080`,//韩 // target: `http://10.40.92.253:8080`,//韩
// target: `http://10.40.92.209:8080`,//川/ // target: `http://10.40.92.209:8080`,//川/
@ -51,8 +51,9 @@ module.exports = {
//更改 utils/globalUrl.js 内qrUrl地址 //更改 utils/globalUrl.js 内qrUrl地址
//2.打开view文件夹根目录dashboard.vue 更换大屏项目发布的跳转地址打开大屏项目config/index.js更改请求地址大屏打包node<16.0.0; //2.打开view文件夹根目录dashboard.vue 更换大屏项目发布的跳转地址打开大屏项目config/index.js更改请求地址大屏打包node<16.0.0;
//3.只有南网项目产线gl发布打包时候需要注意 //3.只有南网项目产线gl发布打包时候需要注意
// 将 assetsDir:'static' 改为 assetsDir:'gl/static',还有env.development和env.production中的VUE_APP_BASE_API改为'/gl/dev-api';登录跳转地址从/login换成/gl/; // 将 publicPath:'static' 改为 '/gl/',还有env.development和env.production中的VUE_APP_BASE_API改为'/gl/dev-api';
//4. 重庆环境的时候需要将新增领料申请跳转地址改为claimAndRefund/receive/receiveApplyAddByCq // 登录跳转地址从/login换成/gl/login;
//4. 重庆环境的时候需要将领料管理线上菜单修改
//******** 注意事项 ********* */ //******** 注意事项 ********* */
changeOrigin: true, changeOrigin: true,