Browse Source

工具更新 2022-07-15 sxm

master
[li_she] 4 years ago
parent
commit
bb3df420d5
  1. 27
      src/views/modules/knifemold/tool-oi-record.vue
  2. 30
      src/views/modules/purchaseorder/purchaseRequisition.vue
  3. 274
      src/views/modules/warehouse/location.vue
  4. 2
      static/config/index-prod.js

27
src/views/modules/knifemold/tool-oi-record.vue

@ -30,10 +30,10 @@
<el-input style="width: 140px" v-model="queryTool.transNo"></el-input> <el-input style="width: 140px" v-model="queryTool.transNo"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'工具编码'"> <el-form-item :label="'工具编码'">
<el-input style="width: 100px" v-model="queryTool.toolId" ></el-input>
<el-input style="width: 100px" v-model="queryTool.toolId"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'工具实例编码'"> <el-form-item :label="'工具实例编码'">
<el-input style="width: 100px" v-model="queryTool.toolInstanceId" ></el-input>
<el-input style="width: 100px" v-model="queryTool.toolInstanceId"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'工具名称'"> <el-form-item :label="'工具名称'">
<el-input style="width: 100px" v-model="queryTool.toolDescription"></el-input> <el-input style="width: 100px" v-model="queryTool.toolDescription"></el-input>
@ -164,8 +164,8 @@
toolDescription: '', toolDescription: '',
startDate: '', startDate: '',
endDate: '', endDate: '',
transNo:'',
transType:''
transNo: '',
transType: ''
}, },
pageIndex: 1, pageIndex: 1,
pageSize: 100, pageSize: 100,
@ -332,6 +332,23 @@
fixed: '', fixed: '',
columnWidth: 80, columnWidth: 80,
}, },
{
userId: this.$store.state.user.name,
serialNumber: 'toolOIRecordRemark',
tableId: "toolOIRecord",
tableName: "toolOIRecord",
columnProp: "remark",
headerAlign: "center",
align: "left",
columnLabel: "备注",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 160,
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
serialNumber: 'toolOIRecordUserId', serialNumber: 'toolOIRecordUserId',
@ -596,7 +613,7 @@
// --------- end ---------- // --------- end ----------
}, },
created() { created() {
this.getTableUserColumn()
// this.getTableUserColumn()
this.getFunctionButtonList() this.getFunctionButtonList()
} }
} }

30
src/views/modules/purchaseorder/purchaseRequisition.vue

@ -718,6 +718,36 @@
status: true, status: true,
fixed: false fixed: false
}, },
{
userId: this.$store.state.user.name,
tableId: this.$route.meta.menuId + 'PR02',
tableName: "reviewDetails",
columnProp: "userName",
headerAlign: "center",
align: "center",
columnLabel: "步骤审批人",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
tableId: this.$route.meta.menuId + 'PR02',
tableName: "reviewDetails",
columnProp: "actAuthorizeDate",
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,
tableId: this.$route.meta.menuId + 'PR02', tableId: this.$route.meta.menuId + 'PR02',

274
src/views/modules/warehouse/location.vue

@ -1,16 +1,46 @@
<template> <template>
<div class="mod-config"> <div class="mod-config">
<el-row>
<el-col :span="24">
<div> <div>
<span @click="favoriteFunction()"> <span @click="favoriteFunction()">
<icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg" ></icon-svg>
<icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg"></icon-svg>
</span> </span>
</div> </div>
<el-button @click="getDataList()" type="primary">{{buttons.search}}</el-button>
<el-button @click="initModel()" type="primary">{{buttons.add}}</el-button>
<el-button @click="saveColumnList()" type="primary" v-show="showDefault">{{buttons.defaultTable}}
</el-button>
<el-button @click="userSetting" type="primary">{{ buttons.settingTable}}</el-button>
<download-excel
:fields="fields()"
:data="exportData"
type="xls"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:defaultValue="exportDefaultValue"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{buttons.download}}
</download-excel>
<el-button v-if="isAuth(':prd:delete')" type="danger" @click="deleteHandle()"
:disabled="dataListSelections.length <= 0">{{ buttons.deleteList}}
</el-button>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form :inline="true" label-position="top"> <el-form :inline="true" label-position="top">
<el-form-item :label="inputLabel.headerInput.label1"> <el-form-item :label="inputLabel.headerInput.label1">
<el-input style="width: 100px;" v-model="queryHeaderData.locationId" ></el-input>
<el-input style="width: 100px;" v-model="queryHeaderData.locationId"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="inputLabel.headerInput.label2"> <el-form-item :label="inputLabel.headerInput.label2">
<el-input style="width: 100px;" v-model="queryHeaderData.locationName" ></el-input>
<el-input style="width: 100px;" v-model="queryHeaderData.locationName"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="inputLabel.headerInput.label3"> <el-form-item :label="inputLabel.headerInput.label3">
<el-select v-model="queryHeaderData.warehouseId" placeholder="请选择" style="width: 115px;"> <el-select v-model="queryHeaderData.warehouseId" placeholder="请选择" style="width: 115px;">
@ -34,39 +64,11 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item style="margin-top: 20px;">
<el-button @click="getDataList()" type="primary">{{buttons.search}}</el-button>
</el-form-item>
<el-form-item style="margin-top: 20px;">
<el-button @click="initModel()" type="primary">{{buttons.add}}</el-button>
<el-button @click="saveColumnList()" type="primary" v-show="showDefault">{{buttons.defaultTable}}
</el-button>
<el-button @click="userSetting" type="primary">{{ buttons.settingTable}}</el-button>
<download-excel
:fields="fields()"
:data="exportData"
type="xls"
:name="exportName"
:header="exportHeader"
:footer="exportFooter"
:defaultValue="exportDefaultValue"
:fetch="createExportData"
:before-generate="startDownload"
:before-finish="finishDownload"
worksheet="导出信息"
class="el-button el-button--primary el-button--medium">
{{buttons.download}}
</download-excel>
<el-button v-if="isAuth(':prd:delete')" type="danger" @click="deleteHandle()"
:disabled="dataListSelections.length <= 0">{{ buttons.deleteList}}
</el-button>
</el-form-item>
</el-form>
<el-form>
</el-form> </el-form>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-table <el-table
id="commmon" id="commmon"
:height="height" :height="height"
@ -103,7 +105,6 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination <el-pagination
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"
@current-change="currentChangeHandle" @current-change="currentChangeHandle"
@ -113,14 +114,16 @@
:total="totalPage" :total="totalPage"
layout="total, sizes, prev, pager, next, jumper"> layout="total, sizes, prev, pager, next, jumper">
</el-pagination> </el-pagination>
</el-col>
</el-row>
<column v-if="visible" ref="column" @refreshData="getTableUserColumn"></column> <column v-if="visible" ref="column" @refreshData="getTableUserColumn"></column>
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputLabel.headerInput.label5" :visible.sync="setUp.reviewFlag" width="325px">
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag
:title="inputLabel.headerInput.label5" :visible.sync="setUp.reviewFlag" width="325px">
<el-form :inline="true" label-position="top"> <el-form :inline="true" label-position="top">
<el-form-item :label="inputLabel.headerInput.label1"> <el-form-item :label="inputLabel.headerInput.label1">
<el-input style="width: 130px;" :readonly = "setUp.readonlyFlag?'readonly':false" oninput="this.value = this.value.toUpperCase()" v-model="saveHeaderData.locationId"></el-input>
<el-input style="width: 130px;" :readonly="setUp.readonlyFlag?'readonly':false"
oninput="this.value = this.value.toUpperCase()" v-model="saveHeaderData.locationId"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="inputLabel.headerInput.label2"> <el-form-item :label="inputLabel.headerInput.label2">
<el-input style="width: 130px;" v-model="saveHeaderData.locationName"></el-input> <el-input style="width: 130px;" v-model="saveHeaderData.locationName"></el-input>
@ -149,8 +152,9 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="setUp.reviewFlag = false">取消</el-button>
<el-button type="primary" :disabled="setUp.saveButton" @click="saveHeaderFunction()">确定</el-button> <el-button type="primary" :disabled="setUp.saveButton" @click="saveHeaderFunction()">确定</el-button>
<el-button type="primary" @click="setUp.reviewFlag = false">取消</el-button>
</span> </span>
</el-dialog> </el-dialog>
@ -159,7 +163,7 @@
<script> <script>
import column from "../common/column";
import column from "../common/column";
import { import {
searchSysLanguagePackList, searchSysLanguagePackList,
searchSysLanguageParam, searchSysLanguageParam,
@ -183,44 +187,45 @@ import column from "../common/column";
saveUserFavorite, saveUserFavorite,
removeUserFavorite, removeUserFavorite,
} from '@/api/userFavorite.js' } from '@/api/userFavorite.js'
import {
import {
getWarehouseList, getWarehouseList,
getLocationList, getLocationList,
saveLocation, saveLocation,
delLocation, delLocation,
} from '@/api/warehouse/location.js'
} from '@/api/warehouse/location.js'
export default { export default {
components: { components: {
column column
}, },
data() { data() {
return { return {
saveHeaderData :{
locationId : '',
locationName : '',
warehouseId : '',
active : '',
},
queryHeaderData : {
site : this.$store.state.user.site,
locationId : '',
locationName : '',
warehouseId : '',
active : '',
saveHeaderData: {
locationId: '',
locationName: '',
warehouseId: '',
active: '',
},
queryHeaderData: {
site: this.$store.state.user.site,
locationId: '',
locationName: '',
warehouseId: '',
active: '',
}, },
setUp: { setUp: {
reviewFlag: false, reviewFlag: false,
saveButton: false, saveButton: false,
reviewFlag1 : false,
readonlyFlag : false,
reviewFlag1: false,
readonlyFlag: false,
}, },
inputLabel :{
headerInput : {
label1 : '库位编码',
label2 : '库位名称',
label3 : '仓库名称',
label4 : '状态',
label5 : '库位信息',
inputLabel: {
headerInput: {
label1: '库位编码',
label2: '库位名称',
label3: '仓库名称',
label4: '状态',
label5: '库位信息',
}, },
}, },
selectList: { selectList: {
@ -233,10 +238,10 @@ import {
}], }],
select2: [], select2: [],
}, },
site : this.$store.state.user.site,
userName : this.$store.state.user.name,
site: this.$store.state.user.site,
userName: this.$store.state.user.name,
// table // table
height:450,
height: 450,
// //
favorite: false, favorite: false,
addLanguage: false, addLanguage: false,
@ -538,8 +543,8 @@ import {
} }
}, },
mounted() { mounted() {
this.$nextTick(()=>{
this.height = window.innerHeight - 200;
this.$nextTick(() => {
this.height = window.innerHeight - 220;
}) })
}, },
activated() { activated() {
@ -548,15 +553,15 @@ import {
this.getLanguageList() this.getLanguageList()
}, },
methods: { methods: {
getSelectList(){
getSelectList() {
let jsonData = { let jsonData = {
site : this.site,
active : 'Y'
site: this.site,
active: 'Y'
} }
this.selectList.select2 = [] this.selectList.select2 = []
getWarehouseList(jsonData).then(({data}) =>{
getWarehouseList(jsonData).then(({data}) => {
let list = data.rows let list = data.rows
if(list.length > 0){
if (list.length > 0) {
for (let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
let selectData = { let selectData = {
value: list[i].wareHouseId, value: list[i].wareHouseId,
@ -567,21 +572,21 @@ import {
} }
}) })
}, },
delHeaderData(row){
delHeaderData(row) {
this.$confirm(`确定删除该记录?`, '操作提示', { this.$confirm(`确定删除该记录?`, '操作提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let jsonData ={
site : row.site,
locationId : row.locationId,
let jsonData = {
site: row.site,
locationId: row.locationId,
} }
delLocation(jsonData).then(({data}) =>{
if(data.code == 0){
delLocation(jsonData).then(({data}) => {
if (data.code == 0) {
this.$message.success(data.msg) this.$message.success(data.msg)
this.getDataList() this.getDataList()
}else {
} else {
this.$alert(data.msg, '操作提示', { this.$alert(data.msg, '操作提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
callback: action => { callback: action => {
@ -592,40 +597,25 @@ import {
}) })
}) })
}, },
saveHeaderFunction(){
saveHeaderFunction() {
this.setUp.saveButton = true this.setUp.saveButton = true
if(this.saveHeaderData.locationId == ''){
this.$alert("请输入库位编码!", '操作提示', {
confirmButtonText: '确定',
callback: action => {
if (!this.saveHeaderData.locationId) {
this.$message.warning('请输入库位编码!')
this.setUp.saveButton = false this.setUp.saveButton = false
}
});
return return
}else if(this.saveHeaderData.locationName == ''){
this.$alert("请输入库位名称!", '操作提示', {
confirmButtonText: '确定',
callback: action => {
this.setUp.saveButton = false
} }
});
return
}else if(this.saveHeaderData.warehouseId == ''){
this.$alert("请选择库房名称!", '操作提示', {
confirmButtonText: '确定',
callback: action => {
if (!this.saveHeaderData.warehouseId) {
this.$message.warning('请选择仓库名称!')
this.setUp.saveButton = false this.setUp.saveButton = false
}
});
return return
} }
saveLocation(this.saveHeaderData).then(({data}) =>{
saveLocation(this.saveHeaderData).then(({data}) => {
this.setUp.saveButton = false this.setUp.saveButton = false
if(data.code == 0){
if (data.code == 0) {
this.$message.success(data.msg) this.$message.success(data.msg)
this.getDataList() this.getDataList()
this.setUp.reviewFlag = false this.setUp.reviewFlag = false
}else {
} else {
this.$alert(data.msg, '操作提示', { this.$alert(data.msg, '操作提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
callback: action => { callback: action => {
@ -635,8 +625,8 @@ import {
} }
}) })
}, },
initModel(row){
console.log("1 =" +row)
initModel(row) {
console.log("1 =" + row)
this.setUp.reviewFlag = true this.setUp.reviewFlag = true
this.setUp.saveButton = false this.setUp.saveButton = false
this.setUp.readonlyFlag = false this.setUp.readonlyFlag = false
@ -646,8 +636,8 @@ import {
this.saveHeaderData.locationName = '' this.saveHeaderData.locationName = ''
this.saveHeaderData.warehouseId = '' this.saveHeaderData.warehouseId = ''
this.saveHeaderData.active = 'Y' this.saveHeaderData.active = 'Y'
if(row){
console.log("2 =" +row)
if (row) {
console.log("2 =" + row)
this.setUp.readonlyFlag = true this.setUp.readonlyFlag = true
this.saveHeaderData.id = 1 this.saveHeaderData.id = 1
this.saveHeaderData.locationId = row.locationId this.saveHeaderData.locationId = row.locationId
@ -658,8 +648,8 @@ import {
} }
}, },
// //
printReport(){
alert( this.$store.state.user.site)
printReport() {
alert(this.$store.state.user.site)
// //
// const LODOP = getLodop() // const LODOP = getLodop()
// if (LODOP) { // if (LODOP) {
@ -682,41 +672,41 @@ import {
// } // }
}, },
// //
favoriteIsOk(){
let userFavorite ={
userId:this.$store.state.user.id,
languageCode:this.$i18n.locale
}
userFavoriteList(userFavorite).then(({data}) =>{
let size = data.list.filter(item => item.userId==userFavorite.menuId).length;
if (size>0){
favoriteIsOk() {
let userFavorite = {
userId: this.$store.state.user.id,
languageCode: this.$i18n.locale
}
userFavoriteList(userFavorite).then(({data}) => {
let size = data.list.filter(item => item.userId == userFavorite.menuId).length;
if (size > 0) {
this.favorite = true this.favorite = true
}else {
} else {
this.favorite = false this.favorite = false
} }
}) })
}, },
// OR // OR
favoriteFunction(){
let userFavorite ={
favoriteFunction() {
let userFavorite = {
userId: this.$store.state.user.id, userId: this.$store.state.user.id,
functionId: this.$route.meta.menuId, functionId: this.$route.meta.menuId,
} }
if (this.favorite){
if (this.favorite) {
// //
this.$confirm(`确定取消收藏`, '提示', { this.$confirm(`确定取消收藏`, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
removeUserFavorite(userFavorite).then(({data})=>{
removeUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg) this.$message.success(data.msg)
this.favorite = false this.favorite = false
}) })
}) })
}else {
} else {
// //
saveUserFavorite(userFavorite).then(({data})=>{
saveUserFavorite(userFavorite).then(({data}) => {
this.$message.success(data.msg) this.$message.success(data.msg)
this.favorite = true this.favorite = true
}) })
@ -732,7 +722,7 @@ import {
// button // button
getFunctionButtonList() { getFunctionButtonList() {
searchFunctionButtonList(this.queryButton).then(({data}) => { searchFunctionButtonList(this.queryButton).then(({data}) => {
if (JSON.stringify(data.data) != '{}' ) {
if (JSON.stringify(data.data) != '{}') {
this.buttons = data.data this.buttons = data.data
} else { } else {
// saveButtonList(this.buttonList).then(({data}) => { // saveButtonList(this.buttonList).then(({data}) => {
@ -782,7 +772,7 @@ import {
await removerDefault(this.queryTable) await removerDefault(this.queryTable)
// table // table
let sumColumnList = this.columnList.concat(this.columnList1); let sumColumnList = this.columnList.concat(this.columnList1);
sumColumnList = sumColumnList.map(item=> {
sumColumnList = sumColumnList.map(item => {
return item = { return item = {
tableId: item.tableId, tableId: item.tableId,
tableName: item.tableName, tableName: item.tableName,
@ -805,7 +795,7 @@ import {
await saveTableDefaultList(sumColumnList) await saveTableDefaultList(sumColumnList)
// button label title // button label title
let buttons = this.buttonList.map( item => {
let buttons = this.buttonList.map(item => {
return item = { return item = {
functionId: this.$route.meta.menuId, functionId: this.$route.meta.menuId,
languageValue: item.languageValue, languageValue: item.languageValue,
@ -884,23 +874,23 @@ import {
}) })
}, },
// //
fields(){
fields() {
let json = "{" let json = "{"
this.columnList.forEach((item,index) =>{
if (index == this.columnList.length-1 ){
json +="\""+item.columnLabel+"\"" +":"+"\""+item.columnProp+"\""
}else {
json += "\""+item.columnLabel+"\"" +":"+"\""+item.columnProp+"\""+ ","
this.columnList.forEach((item, index) => {
if (index == this.columnList.length - 1) {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
} else {
json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
} }
}) })
json +="}"
json += "}"
let s = eval("(" + json + ")") let s = eval("(" + json + ")")
return s return s
}, },
createExportData() { createExportData() {
// ,, // ,,
// TODO: // TODO:
if(this.dataListSelections.length>0){
if (this.dataListSelections.length > 0) {
return this.dataListSelections; return this.dataListSelections;
} }
return this.dataList; return this.dataList;
@ -921,10 +911,11 @@ import {
} }
} }
</script> </script>
<style scoped >
.wrapper {
<style scoped>
.wrapper {
height: calc(100% - 40px); height: calc(100% - 40px);
}
}
.sl-input { .sl-input {
background-color: transparent; background-color: transparent;
border: 0 !important; border: 0 !important;
@ -940,7 +931,8 @@ import {
outline: none; outline: none;
} }
.sl-svg{
.sl-svg {
overflow: hidden; overflow: hidden;
float: right; float: right;
} }

2
static/config/index-prod.js

@ -5,7 +5,7 @@
window.SITE_CONFIG = {}; window.SITE_CONFIG = {};
// api接口请求地址 // api接口请求地址
window.SITE_CONFIG['baseUrl'] = 'http://192.168.1.83:9091';
window.SITE_CONFIG['baseUrl'] = 'http://192.168.1.2:9096';
// cdn地址 = 域名 + 版本号 // cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './'; // 域名 window.SITE_CONFIG['domain'] = './'; // 域名

Loading…
Cancel
Save