Browse Source

重庆刀模 2023年3月9日 sxm

master
[li_she] 3 years ago
parent
commit
8bdd3455dc
  1. 4
      config/index.js
  2. 13
      package-lock.json
  3. 1
      package.json
  4. 3
      src/api/toolMan/tool-info.js
  5. 1
      src/assets/scss/global.scss
  6. 4
      src/main.js
  7. 2
      src/views/main-navbar.vue
  8. 33
      src/views/modules/bulletinBoard/toolDetailBoard.vue
  9. 2
      src/views/modules/sys/menu.vue
  10. 8
      src/views/modules/toolMan/location.vue
  11. 42
      src/views/modules/toolMan/quarantineLibrary.vue
  12. 626
      src/views/modules/toolMan/tool-info.vue
  13. 8
      src/views/modules/toolMan/toolResume.vue

4
config/index.js

@ -23,8 +23,8 @@ module.exports = {
}, },
// Various Dev Server settings // Various Dev Server settings
host: '192.168.1.110', // can be overwritten by process.env.HOST
port: 8002, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
host: 'localhost', // can be overwritten by process.env.HOST
port: 8003, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true, autoOpenBrowser: true,
errorOverlay: true, errorOverlay: true,
notifyOnErrors: true, notifyOnErrors: true,

13
package-lock.json

@ -9557,14 +9557,6 @@
} }
} }
}, },
"kr-print-designer": {
"version": "1.1.8",
"resolved": "https://registry.npmjs.org/kr-print-designer/-/kr-print-designer-1.1.8.tgz",
"integrity": "sha512-uQGv/XyjdpSNT3WZeCp1TswCvSywz3iU0Si7El+TGSRyyIBjKuawUe3MKzQWK0N2bWQdpZCnctTWw/C3buu4CQ==",
"requires": {
"nanoid": "^1.0.1"
}
},
"last-call-webpack-plugin": { "last-call-webpack-plugin": {
"version": "2.1.2", "version": "2.1.2",
"resolved": "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-2.1.2.tgz", "resolved": "https://registry.npmjs.org/last-call-webpack-plugin/-/last-call-webpack-plugin-2.1.2.tgz",
@ -10554,11 +10546,6 @@
"resolved": "https://registry.npmjs.org/nan/-/nan-2.13.2.tgz", "resolved": "https://registry.npmjs.org/nan/-/nan-2.13.2.tgz",
"integrity": "sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw==" "integrity": "sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw=="
}, },
"nanoid": {
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-1.3.4.tgz",
"integrity": "sha512-4ug4BsuHxiVHoRUe1ud6rUFT3WUMmjXt1W0quL0CviZQANdan7D8kqN5/maw53hmAApY/jfzMRkC57BNNs60ZQ=="
},
"nanomatch": { "nanomatch": {
"version": "1.2.13", "version": "1.2.13",
"resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz",

1
package.json

@ -25,7 +25,6 @@
"gulp-load-plugins": "2.0.5", "gulp-load-plugins": "2.0.5",
"gulp-replace": "1.0.0", "gulp-replace": "1.0.0",
"gulp-shell": "0.8.0", "gulp-shell": "0.8.0",
"kr-print-designer": "^1.1.8",
"lodash": "4.17.5", "lodash": "4.17.5",
"node-sass": "4.13.1", "node-sass": "4.13.1",
"npm": "^6.9.0", "npm": "^6.9.0",

3
src/api/toolMan/tool-info.js

@ -25,5 +25,8 @@ export const flagAdd = data => createAPI(`toolInfo/flagAdd`,'POST',data)
// 获取工具使用记录 // 获取工具使用记录
export const updateSoToolInspectionApplyList = data => createAPI(`evaluated/updateSoToolInspectionApplyList`,'POST',data) export const updateSoToolInspectionApplyList = data => createAPI(`evaluated/updateSoToolInspectionApplyList`,'POST',data)
// 工具实例出入记录
export const getToolTransInfoList = data => createAPI(`toolInfo/getToolTransInfoList`,'POST',data)

1
src/assets/scss/global.scss

@ -114,3 +114,4 @@
/* el-form-item 间距 end*/ /* el-form-item 间距 end*/

4
src/main.js

@ -14,10 +14,6 @@ import JsonExcel from 'vue-json-excel'
import i18n from '@/i18n/i18n' import i18n from '@/i18n/i18n'
import './directives' import './directives'
import decimalUtil from '@/utils/decimalUtil' import decimalUtil from '@/utils/decimalUtil'
import KrPrintDesigner from "kr-print-designer";
import "kr-print-designer/lib/kr-print-designer.css";
Vue.use(KrPrintDesigner);
Vue.component('downloadExcel', JsonExcel) Vue.component('downloadExcel', JsonExcel)

2
src/views/main-navbar.vue

@ -1,7 +1,7 @@
<template> <template>
<nav class="site-navbar" :class="'site-navbar--' + navbarLayoutType"> <nav class="site-navbar" :class="'site-navbar--' + navbarLayoutType">
<div class="site-navbar__header"> <div class="site-navbar__header">
<h1 class="site-navbar__brand" @click="$router.push({ name: 'home' })">
<h1 class="site-navbar__brand">
<el-menu <el-menu
class="site-navbar__menu" class="site-navbar__menu"
mode="horizontal"> mode="horizontal">

33
src/views/modules/bulletinBoard/toolDetailBoard.vue

@ -24,9 +24,20 @@
<el-form-item :label="inputLabel.headerInput.label6"> <el-form-item :label="inputLabel.headerInput.label6">
<el-input style="width: 100px;" v-model="queryData.endDays" onkeyup="value=value.replace(/[^\d]/g,'')"></el-input> <el-input style="width: 100px;" v-model="queryData.endDays" onkeyup="value=value.replace(/[^\d]/g,'')"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'状态'">
<el-select style="width: 100px;" v-model="queryData.status">
<el-option value="" label="全部"></el-option>
<el-option value="已启用" label="已启用"></el-option>
<el-option value="在库" label="在库"></el-option>
<el-option value="出库" label="出库"></el-option>
<el-option value="退库" label="退库"></el-option>
<el-option value="维修中" label="维修中"></el-option>
<el-option value="已报废" label="已报废"></el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()" type="primary">{{buttons.search}}</el-button> <el-button @click="getDataList()" type="primary">{{buttons.search}}</el-button>
<el-button @click="saveColumnList()" type="primary" v-show="showDefault">{{buttons.defaultTable}}
<el-button @click="saveColumnList()" type="primary" v-show="false">{{buttons.defaultTable}}
</el-button> </el-button>
<el-button @click="userSetting" type="primary">{{ buttons.settingTable}}</el-button> <el-button @click="userSetting" type="primary">{{ buttons.settingTable}}</el-button>
<download-excel <download-excel
@ -117,7 +128,7 @@ import {
label3 : '开始使用次数', label3 : '开始使用次数',
label4 : '结束使用次数', label4 : '结束使用次数',
label5 : '呆滞天数', label5 : '呆滞天数',
label6 : '————',
label6 : '—',
}, },
}, },
queryData : { queryData : {
@ -128,6 +139,7 @@ import {
endActualuseQty : '', endActualuseQty : '',
startDays : '', startDays : '',
endDays : '', endDays : '',
status: ''
}, },
site : this.$store.state.user.site, site : this.$store.state.user.site,
userName : this.$store.state.user.name, userName : this.$store.state.user.name,
@ -267,6 +279,23 @@ import {
status: true, status: true,
fixed: false fixed: false
}, },
{
userId: this.$store.state.user.name,
functionId: 2701,
serialNumber: 'toolDetail2701SupplierName',
tableId: "toolDetail2701",
tableName: "common",
columnProp: "status",
headerAlign: "center",
align: "center",
columnLabel: "状态",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 2701, functionId: 2701,

2
src/views/modules/sys/menu.vue

@ -2,7 +2,7 @@
<div class="mod-menu"> <div class="mod-menu">
<el-form :inline="true" :model="dataForm"> <el-form :inline="true" :model="dataForm">
<el-form-item> <el-form-item>
<el-button v-if="isAuth('sys:menu:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('sys:menu:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>

8
src/views/modules/toolMan/location.vue

@ -781,13 +781,13 @@ import {
LODOP.SET_PRINT_STYLE("LineHeight",-2); LODOP.SET_PRINT_STYLE("LineHeight",-2);
LODOP.ADD_PRINT_BARCODE(3,3,300,120,"QRCode",row.locationId); LODOP.ADD_PRINT_BARCODE(3,3,300,120,"QRCode",row.locationId);
LODOP.SET_PRINT_STYLEA(0,"FontSize",12); LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
LODOP.ADD_PRINT_TEXT(10,205,400,150,row.locationId );
LODOP.SET_PRINT_STYLEA(0,"FontSize",40);
LODOP.ADD_PRINT_TEXT(39,122,331,43,row.locationId );
LODOP.SET_PRINT_STYLEA(0,"FontSize",25);
} }
LODOP.PRINT_DESIGN();
// LODOP.PRINT_DESIGN();
//LODOP.PREVIEW(); //LODOP.PREVIEW();
// LODOP.PRINT();
LODOP.PRINT();
console.log("操作成功!") console.log("操作成功!")
} }
} }

42
src/views/modules/toolMan/quarantineLibrary.vue

@ -328,6 +328,40 @@ import {
status: true, status: true,
fixed: false, fixed: false,
}, },
{
userId: this.$store.state.user.name,
functionId: 2101,
serialNumber: 'library2101OactualuseQty',
tableId: "library2101",
tableName: "libraryTable",
columnProp: "actualuseQty",
headerAlign: "center",
align: "center",
columnLabel: "使用次数",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false,
},
{
userId: this.$store.state.user.name,
functionId: 2101,
serialNumber: 'library2101OrepairQty',
tableId: "library2101",
tableName: "libraryTable",
columnProp: "repairQty",
headerAlign: "center",
align: "center",
columnLabel: "维修次数",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false,
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 2101, functionId: 2101,
@ -860,7 +894,7 @@ import {
saveTableDefaultList(this.columnList).then(({data}) => { saveTableDefaultList(this.columnList).then(({data}) => {
if (data.code == 0) { if (data.code == 0) {
this.$message.success(data.msg) this.$message.success(data.msg)
this.showDefault = false
//this.showDefault = false
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
} }
@ -868,7 +902,7 @@ import {
saveTableDefaultList(this.columnList1).then(({data}) => { saveTableDefaultList(this.columnList1).then(({data}) => {
if (data.code == 0) { if (data.code == 0) {
this.$message.success(data.msg) this.$message.success(data.msg)
this.showDefault = false
// this.showDefault = false
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
} }
@ -883,10 +917,10 @@ import {
getColumnList() { getColumnList() {
getTableDefaultListLanguage(this.queryTable).then(({data}) => { getTableDefaultListLanguage(this.queryTable).then(({data}) => {
if (!data.rows.length == 0) { if (!data.rows.length == 0) {
this.showDefault = false
// this.showDefault = false
this.columnList = data.rows this.columnList = data.rows
} else { } else {
this.showDefault = true
// this.showDefault = true
} }
}) })
}, },

626
src/views/modules/toolMan/tool-info.vue
File diff suppressed because it is too large
View File

8
src/views/modules/toolMan/toolResume.vue

@ -17,7 +17,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button @click="getDataList()" type="primary">{{buttons.search}}</el-button> <el-button @click="getDataList()" type="primary">{{buttons.search}}</el-button>
<el-button @click="saveColumnList()" type="primary" v-show="showDefault">{{buttons.defaultTable}}
<el-button @click="saveColumnList()" type="primary" v-show="showDefault">{{buttons.defaultTable}}
</el-button> </el-button>
<el-button @click="userSetting" type="primary">{{ buttons.settingTable}}</el-button> <el-button @click="userSetting" type="primary">{{ buttons.settingTable}}</el-button>
<download-excel <download-excel
@ -374,7 +374,7 @@ import {
columnProp: "actualuseQty", columnProp: "actualuseQty",
headerAlign: "center", headerAlign: "center",
align: "center", align: "center",
columnLabel: "已使用数",
columnLabel: "已使用数",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -392,7 +392,7 @@ import {
columnProp: "estuseQty", columnProp: "estuseQty",
headerAlign: "center", headerAlign: "center",
align: "right", align: "right",
columnLabel: "预计使用数",
columnLabel: "预计使用数",
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -784,7 +784,7 @@ import {
}) })
}, },
activated() { activated() {
this.getDataList()
//this.getDataList()
this.getLanguageList() this.getLanguageList()
}, },
methods: { methods: {

Loading…
Cancel
Save