Browse Source

修改首页及菜单,日常打印增加不可连续点击确认按钮

branch_ccpg_220107
songnan.zhang 3 years ago
parent
commit
4e2f28d7f2
  1. 18
      vue/src/router/index.js
  2. 19
      vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue

18
vue/src/router/index.js

@ -86,8 +86,8 @@ export const constantRoutes = [
children: [ children: [
{ {
path: 'dashboard', path: 'dashboard',
//component: () => import('@/views/pg-fis/basedate/m100Online/normalPritIndex.vue'),//fis component: () => import('@/views/pg-fis/basedate/m100Online/normalPritIndex.vue'),//fis
component: () => import('@/views/ux/backGroundWork'), //component: () => import('@/views/ux/backGroundWork'),
name: 'Dashboard', name: 'Dashboard',
meta: { meta: {
title: '系统首页', title: '系统首页',
@ -170,14 +170,14 @@ export const asyncRoutes = [
/** when your routing map is too long, you can split it into small modules **/ /** when your routing map is too long, you can split it into small modules **/
managerRouter,//系统首页 managerRouter,//系统首页
personRouter,//系统管理 personRouter,//系统管理
basedataRouter,//基础数据维护 //basedataRouter,//基础数据维护
vwFisDataRouter,//结算与开票数据导入 //vwFisDataRouter,//结算与开票数据导入
billdataRouter,//销售结算与开票报表 //billdataRouter,//销售结算与开票报表
//businessdataRouter, //businessdataRouter,
wheeldataRouter,//大众看板和备件 //wheeldataRouter,//大众看板和备件
// pgfisPrint,//排序单打印 pgfisPrint,//排序单打印
// pgfis,//派格fis pgfis,//派格fis
JobTimeDataRouter,//后台作业监控 //JobTimeDataRouter,//后台作业监控
// 404 page must be placed at the end !!! // 404 page must be placed at the end !!!
{ path: '*', redirect: '/404', hidden: true } { path: '*', redirect: '/404', hidden: true }

19
vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue

@ -330,6 +330,7 @@
<el-button <el-button
v-loading="formLoading" v-loading="formLoading"
type="primary" type="primary"
:disabled="isDisable"
@click="save" @click="save"
v-debounce="debounceClick" v-debounce="debounceClick"
>确认</el-button >确认</el-button
@ -421,6 +422,7 @@ export default {
}; };
return { return {
crmType: "M100Online", crmType: "M100Online",
isDisable: false,
drawerMBPrint: false, drawerMBPrint: false,
drawerMBDelete: false, drawerMBDelete: false,
drawerZHBPrint: false, drawerZHBPrint: false,
@ -1085,7 +1087,7 @@ export default {
// //
this.hostSNQuery.isZhuHuBan = "1"; this.hostSNQuery.isZhuHuBan = "1";
console.log("柱护板hostsn2参数" + JSON.stringify(this.hostSNQuery)); console.log("柱护板hostsn2参数" + JSON.stringify(this.hostSNQuery));
this.$axios this.$axios
.gets( .gets(
"/api/newjit/bill-m100/get-print-start-hostsn2", "/api/newjit/bill-m100/get-print-start-hostsn2",
@ -1279,7 +1281,10 @@ export default {
this.hostCheckQuery.beginHostSN = parseInt(this.form.beginHostSN); this.hostCheckQuery.beginHostSN = parseInt(this.form.beginHostSN);
this.hostCheckQuery.endHostSN = parseInt(this.form.endHostSN); this.hostCheckQuery.endHostSN = parseInt(this.form.endHostSN);
this.hostCheckQuery.productLine = this.listQuery.productLine; this.hostCheckQuery.productLine = this.listQuery.productLine;
console.log("检查柱护板-hostCheckQuery"+JSON.stringify(this.hostCheckQuery)); console.log(
"检查柱护板-hostCheckQuery" +
JSON.stringify(this.hostCheckQuery)
);
this.$axios this.$axios
.posts( .posts(
"/api/newjit/bill-m100/check-mb-hostsn-break-num", "/api/newjit/bill-m100/check-mb-hostsn-break-num",
@ -1287,6 +1292,10 @@ export default {
) )
.then((response) => { .then((response) => {
console.log("检查门板-大众顺序号是否断号"); console.log("检查门板-大众顺序号是否断号");
this.isDisable = true;
setTimeout(() => {
this.isDisable = false;
}, 1000);
if (response.item.length > 0) { if (response.item.length > 0) {
// //
this.$confirm( this.$confirm(
@ -1397,7 +1406,7 @@ export default {
}); });
} else if (this.listQuery.productType === 2) { } else if (this.listQuery.productType === 2) {
// //
this.hostCheckQuery.beginHostSN = parseInt(this.form.beginHostSN); this.hostCheckQuery.beginHostSN = parseInt(this.form.beginHostSN);
this.hostCheckQuery.endHostSN = parseInt(this.form.endHostSN); this.hostCheckQuery.endHostSN = parseInt(this.form.endHostSN);
this.hostCheckQuery.productLine = this.listQuery.productLine; this.hostCheckQuery.productLine = this.listQuery.productLine;
@ -1408,6 +1417,10 @@ export default {
) )
.then((response) => { .then((response) => {
console.log("检查门板-大众顺序号是否断号"); console.log("检查门板-大众顺序号是否断号");
this.isDisable = true;
setTimeout(() => {
this.isDisable = false;
}, 1000);
if (response.item.length > 0) { if (response.item.length > 0) {
// //
this.$confirm( this.$confirm(

Loading…
Cancel
Save