Browse Source

修改标签功能

master
常熟吴彦祖 1 month ago
parent
commit
c452777771
  1. 282
      src/views/modules/warehouse/location.vue
  2. 65
      src/views/modules/warehouse/warehouse.vue

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

@ -2,11 +2,11 @@
<div class="mod-config"> <div class="mod-config">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<div>
<span @click="favoriteFunction()">
<icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg"></icon-svg>
</span>
</div>
<!-- <div>-->
<!-- <span @click="favoriteFunction()">-->
<!-- <icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg"></icon-svg>-->
<!-- </span>-->
<!-- </div>-->
<el-button @click="getDataList()" type="primary">查询</el-button> <el-button @click="getDataList()" type="primary">查询</el-button>
<el-button @click="initModel()" type="primary">新增</el-button> <el-button @click="initModel()" type="primary">新增</el-button>
<!-- <el-button @click="saveColumnList()" type="primary" v-show="showDefault">设置默认配置</el-button>--> <!-- <el-button @click="saveColumnList()" type="primary" v-show="showDefault">设置默认配置</el-button>-->
@ -108,7 +108,7 @@
@size-change="sizeChangeHandle" @size-change="sizeChangeHandle"
@current-change="currentChangeHandle" @current-change="currentChangeHandle"
:current-page="queryHeaderData.page" :current-page="queryHeaderData.page"
:page-sizes="[5, 10, 20]"
:page-sizes="[20, 50, 100]"
:page-size="queryHeaderData.size" :page-size="queryHeaderData.size"
:total="queryHeaderData.totalCount" :total="queryHeaderData.totalCount"
layout="total, sizes, prev, pager, next, jumper"> layout="total, sizes, prev, pager, next, jumper">
@ -148,27 +148,31 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="inputLabel.headerInput.label8">
<el-input style="width: 130px;" :readonly="setUp.readonlyFlag?'readonly':false" v-model="saveHeaderData.hold"></el-input>
</el-form-item>
<el-form-item :label="inputLabel.headerInput.label9">
<el-input style="width: 130px;" :readonly="setUp.readonlyFlag?'readonly':false" v-model="saveHeaderData.row"></el-input>
</el-form-item>
<el-form-item :label="inputLabel.headerInput.label10">
<el-input style="width: 130px;" :readonly="setUp.readonlyFlag?'readonly':false" v-model="saveHeaderData.storey"></el-input>
</el-form-item>
<el-form-item :label="inputLabel.headerInput.label11">
<el-input style="width: 130px;" :readonly="setUp.readonlyFlag?'readonly':false" v-model="saveHeaderData.box"></el-input>
</el-form-item>
<el-form-item :label="inputLabel.headerInput.label6">
<span style="cursor: pointer" slot="label" @click="queryLocationGruop"><a>位置组编码</a></span>
<el-input style="width: 130px;" readonly v-model="saveHeaderData.locationGroupId"></el-input>
</el-form-item>
<el-form-item :label="inputLabel.headerInput.label7">
<el-input style="width: 130px;" readonly v-model="saveHeaderData.locationGroupDesc"></el-input>
</el-form-item>
<!-- <el-form-item :label="inputLabel.headerInput.label8">-->
<!-- <el-input style="width: 130px;" :readonly="setUp.readonlyFlag?'readonly':false" v-model="saveHeaderData.hold"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="inputLabel.headerInput.label9">-->
<!-- <el-input style="width: 130px;" :readonly="setUp.readonlyFlag?'readonly':false" v-model="saveHeaderData.row"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="inputLabel.headerInput.label10">-->
<!-- <el-input style="width: 130px;" :readonly="setUp.readonlyFlag?'readonly':false" v-model="saveHeaderData.storey"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="inputLabel.headerInput.label11">-->
<!-- <el-input style="width: 130px;" :readonly="setUp.readonlyFlag?'readonly':false" v-model="saveHeaderData.box"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="inputLabel.headerInput.label6">-->
<!-- <span style="cursor: pointer" slot="label" @click="queryLocationGruop"><a>位置组编码</a></span>-->
<!-- <el-input style="width: 130px;" readonly v-model="saveHeaderData.locationGroupId"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item :label="inputLabel.headerInput.label7">-->
<!-- <el-input style="width: 130px;" readonly v-model="saveHeaderData.locationGroupDesc"></el-input>-->
<!-- </el-form-item>-->
<el-form-item :label="inputLabel.headerInput.label12"> <el-form-item :label="inputLabel.headerInput.label12">
<el-input style="width: 130px;" v-model="saveHeaderData.locationType"></el-input>
<!-- <el-input style="width: 130px;" v-model="saveHeaderData.locationType"></el-input>-->
<el-select v-model="saveHeaderData.locationType" style="width: 130px;">
<el-option label="PICKING" value="PICKING"></el-option>
<el-option label="QA" value="QA"></el-option>
</el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
@ -292,7 +296,7 @@
warehouseId: '', warehouseId: '',
active: '', active: '',
page:1, page:1,
size:5,
size:50,
totalCount:0 totalCount:0
}, },
setUp: { setUp: {
@ -477,22 +481,22 @@
status: true, status: true,
fixed: '', fixed: '',
}, },
{
userId: this.$store.state.user.name,
serialNumber: 'location2601StrlocationGroupDesc',
tableId: this.$route.meta.menuId + 'LOTI01',
tableName: "locationTable",
columnProp: "locationGroupDesc",
headerAlign: "center",
align: "center",
columnLabel: "位置组描述",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
// {
// userId: this.$store.state.user.name,
// serialNumber: 'location2601StrlocationGroupDesc',
// tableId: this.$route.meta.menuId + 'LOTI01',
// tableName: "locationTable",
// columnProp: "locationGroupDesc",
// headerAlign: "center",
// align: "center",
// columnLabel: "",
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
serialNumber: 'location2601StrlocationGroupDesc', serialNumber: 'location2601StrlocationGroupDesc',
@ -509,70 +513,70 @@
status: true, status: true,
fixed: '', fixed: '',
}, },
{
userId: this.$store.state.user.name,
serialNumber: 'location2601StrActive',
tableId: this.$route.meta.menuId + 'LOTI01',
tableName: "locationTable",
columnProp: "hold",
headerAlign: "center",
align: "center",
columnLabel: "货舱",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
serialNumber: 'location2601StrActive',
tableId: this.$route.meta.menuId + 'LOTI01',
tableName: "locationTable",
columnProp: "row",
headerAlign: "center",
align: "center",
columnLabel: "行",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
serialNumber: 'location2601StrActive',
tableId: this.$route.meta.menuId + 'LOTI01',
tableName: "locationTable",
columnProp: "storey",
headerAlign: "center",
align: "center",
columnLabel: "层",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{
userId: this.$store.state.user.name,
serialNumber: 'location2601StrActive',
tableId: this.$route.meta.menuId + 'LOTI01',
tableName: "locationTable",
columnProp: "box",
headerAlign: "center",
align: "center",
columnLabel: "箱",
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
// {
// userId: this.$store.state.user.name,
// serialNumber: 'location2601StrActive',
// tableId: this.$route.meta.menuId + 'LOTI01',
// tableName: "locationTable",
// columnProp: "hold",
// headerAlign: "center",
// align: "center",
// columnLabel: "",
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
// {
// userId: this.$store.state.user.name,
// serialNumber: 'location2601StrActive',
// tableId: this.$route.meta.menuId + 'LOTI01',
// tableName: "locationTable",
// columnProp: "row",
// headerAlign: "center",
// align: "center",
// columnLabel: "",
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
// {
// userId: this.$store.state.user.name,
// serialNumber: 'location2601StrActive',
// tableId: this.$route.meta.menuId + 'LOTI01',
// tableName: "locationTable",
// columnProp: "storey",
// headerAlign: "center",
// align: "center",
// columnLabel: "",
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
// {
// userId: this.$store.state.user.name,
// serialNumber: 'location2601StrActive',
// tableId: this.$route.meta.menuId + 'LOTI01',
// tableName: "locationTable",
// columnProp: "box",
// headerAlign: "center",
// align: "center",
// columnLabel: "",
// columnHidden: false,
// columnImage: false,
// columnSortable: false,
// sortLv: 0,
// status: true,
// fixed: '',
// },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
serialNumber: 'location2601StrActive', serialNumber: 'location2601StrActive',
@ -845,31 +849,31 @@
this.setUp.saveButton = false this.setUp.saveButton = false
return return
} }
if (!this.saveHeaderData.hold) {
this.$message.warning('请输入货舱!!')
this.setUp.saveButton = false
return
}
if (!this.saveHeaderData.row) {
this.$message.warning('请输入行!')
this.setUp.saveButton = false
return
}
if (!this.saveHeaderData.storey) {
this.$message.warning('请输入层!')
this.setUp.saveButton = false
return
}
if (!this.saveHeaderData.box) {
this.$message.warning('请输入箱!')
this.setUp.saveButton = false
return
}
if (!this.saveHeaderData.locationGroupId) {
this.$message.warning('请选择位置组编码!')
this.setUp.saveButton = false
return
}
// if (!this.saveHeaderData.hold) {
// this.$message.warning('!!')
// this.setUp.saveButton = false
// return
// }
// if (!this.saveHeaderData.row) {
// this.$message.warning('!')
// this.setUp.saveButton = false
// return
// }
// if (!this.saveHeaderData.storey) {
// this.$message.warning('!')
// this.setUp.saveButton = false
// return
// }
// if (!this.saveHeaderData.box) {
// this.$message.warning('!')
// this.setUp.saveButton = false
// return
// }
// if (!this.saveHeaderData.locationGroupId) {
// this.$message.warning('!')
// this.setUp.saveButton = false
// 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) {
@ -898,13 +902,13 @@
this.saveHeaderData.warehouseId = '' this.saveHeaderData.warehouseId = ''
this.saveHeaderData.active = 'Y' this.saveHeaderData.active = 'Y'
this.saveHeaderData.hide = 'N' this.saveHeaderData.hide = 'N'
this.saveHeaderData.locationGroupId = ''
this.saveHeaderData.locationGroupDesc = ''
this.saveHeaderData.locationGroupId = 'CS1'
this.saveHeaderData.locationGroupDesc = '第一个位置组'
this.saveHeaderData.hold = '' this.saveHeaderData.hold = ''
this.saveHeaderData.row = '' this.saveHeaderData.row = ''
this.saveHeaderData.storey = '' this.saveHeaderData.storey = ''
this.saveHeaderData.box = '' this.saveHeaderData.box = ''
this.saveHeaderData.locationType = ''
this.saveHeaderData.locationType = 'PICKING'
if (row) { if (row) {
console.log("2 =" + row) console.log("2 =" + row)
this.setUp.readonlyFlag = true this.setUp.readonlyFlag = true
@ -1204,10 +1208,10 @@
} }
}, },
created() { created() {
this.getTableUserColumn()
this.getSysLanguageParamList()
this.getFunctionButtonList()
this.favoriteIsOk()
// this.getTableUserColumn()
// this.getSysLanguageParamList()
// this.getFunctionButtonList()
// this.favoriteIsOk()
} }
} }
</script> </script>

65
src/views/modules/warehouse/warehouse.vue

@ -1,10 +1,10 @@
<template> <template>
<div class="mod-config"> <div class="mod-config">
<div>
<span @click="favoriteFunction()">
<icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg" ></icon-svg>
</span>
</div>
<!-- <div>-->
<!-- <span @click="favoriteFunction()">-->
<!-- <icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg" ></icon-svg>-->
<!-- </span>-->
<!-- </div>-->
<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.wareHouseId" ></el-input> <el-input style="width: 100px;" v-model="queryHeaderData.wareHouseId" ></el-input>
@ -102,12 +102,7 @@
<el-form :inline="true" label-position="top"> <el-form :inline="true" label-position="top">
<el-form-item :label="inputLabel.headerInput.label3"> <el-form-item :label="inputLabel.headerInput.label3">
<el-select v-model="saveHeaderData.wareHouseTypeDb" placeholder="请选择" style="width: 130px;"> <el-select v-model="saveHeaderData.wareHouseTypeDb" placeholder="请选择" style="width: 130px;">
<el-option
v-for="item in selectList.select2"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
<el-option label="normal" value="T"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="inputLabel.headerInput.label4"> <el-form-item :label="inputLabel.headerInput.label4">
@ -122,8 +117,8 @@
</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 @click="setUp.reviewFlag = false">取消</el-button>
</span> </span>
</el-dialog> </el-dialog>
@ -657,8 +652,8 @@ import {
this.saveHeaderData.site = this.site this.saveHeaderData.site = this.site
this.saveHeaderData.wareHouseId = '' this.saveHeaderData.wareHouseId = ''
this.saveHeaderData.wareHouseName = '' this.saveHeaderData.wareHouseName = ''
this.saveHeaderData.wareHouseType = ''
this.saveHeaderData.wareHouseTypeDb = ''
this.saveHeaderData.wareHouseType = 'normal'
this.saveHeaderData.wareHouseTypeDb = 'T'
this.saveHeaderData.active = 'Y' this.saveHeaderData.active = 'Y'
this.saveHeaderData.useLocation = 'Y' this.saveHeaderData.useLocation = 'Y'
this.saveHeaderData.validStock = 'Y' this.saveHeaderData.validStock = 'Y'
@ -740,39 +735,7 @@ import {
} }
}, },
//
saveLanguageList(val) {
saveSysLanguageOne(val).then(({data}) => {
if (data.code == 0) {
this.$message.success(data.msg)
} else {
this.$message.error(data.msg)
}
})
},
//
addLanguageFun() {
if (this.querySysLanguagePack.languageCode) {
this.addLanguage = true
this.languageColumnList = []
let query = {
functionId: this.$route.meta.menuId,
tableId: "common1002",
languageCode: this.$i18n.locale
}
getTableDefaultListLanguage(query).then(({data}) => {
if (data.rows.length > 0) {
this.languageColumnList = data.rows
}
})
this.languageColumnList = this.columnList
searchLanguageListByLanguageCode(this.querySysLanguagePack).then(({data}) => {
this.languageDataList = data.rows
})
} else {
this.$message("请选中一种语言")
}
},
// //
getLanguageList() { getLanguageList() {
searchSysLanguage(this.queryLanguage).then(({data}) => { searchSysLanguage(this.queryLanguage).then(({data}) => {
@ -967,10 +930,10 @@ import {
} }
}, },
created() { created() {
this.getTableUserColumn()
this.getSysLanguageParamList()
this.getFunctionButtonList()
this.favoriteIsOk()
// this.getTableUserColumn()
// this.getSysLanguageParamList()
// this.getFunctionButtonList()
// this.favoriteIsOk()
} }
} }
</script> </script>

Loading…
Cancel
Save