Browse Source

Merge remote-tracking branch 'origin/master'

master
qiezi 1 year ago
parent
commit
66291f2c81
  1. 36
      src/assets/scss/_base.scss
  2. 5
      src/assets/scss/global.scss
  3. 12
      src/views/main-navbar.vue
  4. 16
      src/views/modules/processManagement/processBindingInfo.vue
  5. 197
      src/views/modules/project/projectInfo/com_project_info_part.vue
  6. 2
      src/views/modules/tooling/components/com_tool_info_add_update.vue
  7. 12
      src/views/modules/tooling/manuf_tool.vue

36
src/assets/scss/_base.scss

@ -71,6 +71,7 @@ img {
.site-sidebar--fold { .site-sidebar--fold {
.site-navbar__header, .site-navbar__header,
.site-navbar__brand, .site-navbar__brand,
.site-navbar__brand2,
.site-sidebar, .site-sidebar,
.site-sidebar__inner, .site-sidebar__inner,
.el-menu.site-sidebar__menu { .el-menu.site-sidebar__menu {
@ -88,6 +89,14 @@ img {
display: inline-block; display: inline-block;
} }
} }
.site-navbar__brand2 {
&-lg {
display: none;
}
&-mini {
display: inline-block;
}
}
.site-sidebar, .site-sidebar,
.site-sidebar__inner { .site-sidebar__inner {
overflow: initial; overflow: initial;
@ -103,6 +112,7 @@ img {
// animation // animation
.site-navbar__header, .site-navbar__header,
.site-navbar__brand, .site-navbar__brand,
.site-navbar__brand2,
.site-navbar__body, .site-navbar__body,
.site-sidebar, .site-sidebar,
.site-sidebar__inner, .site-sidebar__inner,
@ -174,7 +184,31 @@ img {
text-transform: uppercase; text-transform: uppercase;
white-space: nowrap; white-space: nowrap;
color: #fff; color: #fff;
&-lg,
&-mini {
margin: 0 5px;
color: #fff;
&:focus,
&:hover {
color: #fff;
text-decoration: none;
}
}
&-mini {
display: none;
}
}
&__brand2 {
display: table-cell;
vertical-align: middle;
width: 230px;
height: 50px;
margin: 0;
line-height: 50px;
font-size: 20px;
text-align: center;
white-space: nowrap;
color: #fff;
&-lg, &-lg,
&-mini { &-mini {
margin: 0 5px; margin: 0 5px;

5
src/assets/scss/global.scss

@ -153,6 +153,11 @@
line-height: 35px; line-height: 35px;
font-size: 18px; font-size: 18px;
} }
.site-navbar__brand2 {
height: 35px;
line-height: 35px;
font-size: 18px;
}
.site-navbar { .site-navbar {
height: 35px; height: 35px;
} }

12
src/views/main-navbar.vue

@ -2,7 +2,7 @@
<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">
<!-- @click="$router.push({ name: 'home' })"--> <!-- @click="$router.push({ name: 'home' })"-->
<h1 class="site-navbar__brand">
<h1 class="site-navbar__brand2">
<el-menu <el-menu
class="site-navbar__menu" class="site-navbar__menu"
mode="horizontal"> mode="horizontal">
@ -10,7 +10,7 @@
<icon-svg name="zhedie"></icon-svg> <icon-svg name="zhedie"></icon-svg>
</el-menu-item> </el-menu-item>
</el-menu> </el-menu>
<a class="site-navbar__brand-lg" href="javascript:;">{{'CCL Design'}}</a>
<a class="site-navbar__brand2-lg" href="javascript:;">{{'CCL Design'}}</a>
<a class="site-navbar__brand-mini" href="javascript:;">{{ pageLanguage.abbreviation }}</a> <a class="site-navbar__brand-mini" href="javascript:;">{{ pageLanguage.abbreviation }}</a>
</h1> </h1>
@ -491,6 +491,14 @@ export default {
font-size: 18px; font-size: 18px;
} }
.site-navbar__brand2-lg{
margin: 0 5px;
color: #fff;
margin-left: -25px;
font-size: 18px;
}
.el-menu--horizontal > .el-menu-item { .el-menu--horizontal > .el-menu-item {
color: #3b4249; color: #3b4249;
} }

16
src/views/modules/processManagement/processBindingInfo.vue

@ -252,8 +252,8 @@
<el-table-column prop="plmTable" header-align="center" align="center" :required="true" label="审阅" width="150"> <el-table-column prop="plmTable" header-align="center" align="center" :required="true" label="审阅" width="150">
<template slot-scope="{row}"> <template slot-scope="{row}">
<el-select :ref="`${row.xh-1}` + `a`" v-model="tableData[row.xh-1].review" placeholder="请选择" clearable style="width: 130px"> <el-select :ref="`${row.xh-1}` + `a`" v-model="tableData[row.xh-1].review" placeholder="请选择" clearable style="width: 130px">
<el-option label="0" value="0"></el-option>
<el-option label="8" value="8"></el-option>
<el-option label="强制" value="Y"></el-option>
<el-option label="可选" value="N"></el-option>
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
@ -1468,25 +1468,25 @@
this.modalFlag = true this.modalFlag = true
}, },
checkDataBySubDetail (){
checkDataBySubDetail () {
for (let i = 0; i < this.tableData.length; i++) { for (let i = 0; i < this.tableData.length; i++) {
if(this.tableData[i].plmTable === '' || this.tableData[i].plmTable == null){
if (this.tableData[i].plmTable === '' || this.tableData[i].plmTable == null) {
this.$message.warning('序号' + (i+1) +'未选择PLM数据表,数据表为必填项!') this.$message.warning('序号' + (i+1) +'未选择PLM数据表,数据表为必填项!')
return return
} }
if(this.tableData[i].plmField === '' || this.tableData[i].plmField == null){
if (this.tableData[i].plmField === '' || this.tableData[i].plmField == null) {
this.$message.warning('序号' + (i+1) +'未选择PLM字段名,字段名为必填项!') this.$message.warning('序号' + (i+1) +'未选择PLM字段名,字段名为必填项!')
return return
} }
if(this.tableData[i].oaField === '' || this.tableData[i].oaField == null){
if (this.tableData[i].oaField === '' || this.tableData[i].oaField == null) {
this.$message.warning('序号' + (i+1) +'未填写OA字段名,字段名为必填项!') this.$message.warning('序号' + (i+1) +'未填写OA字段名,字段名为必填项!')
return return
} }
if(this.tableData[i].fieldType === '' || this.tableData[i].fieldType == null){
if (this.tableData[i].fieldType === '' || this.tableData[i].fieldType == null) {
this.$message.warning('序号' + (i+1) +'未选择PLM字段类型,字段类型为必填项!') this.$message.warning('序号' + (i+1) +'未选择PLM字段类型,字段类型为必填项!')
return return
} }
if(this.tableData[i].fieldType === 'A' && (this.tableData[i].review == null || this.tableData[i].review === '')){
if (this.tableData[i].fieldType === 'A' && (this.tableData[i].review == null || this.tableData[i].review === '')) {
this.$message.warning('序号' + (i+1) +'未选择审阅!') this.$message.warning('序号' + (i+1) +'未选择审阅!')
return return
} }

197
src/views/modules/project/projectInfo/com_project_info_part.vue

@ -21,7 +21,6 @@
</download-excel> </download-excel>
</el-form> </el-form>
</el-form> </el-form>
<el-table <el-table
:data="dataList" :data="dataList"
height="240" height="240"
@ -582,23 +581,23 @@
</el-dialog> </el-dialog>
<!-- 项目物料-> 快速新增 --> <!-- 项目物料-> 快速新增 -->
<el-dialog title="物料导入" @close="refreshDetailList" :close-on-click-modal="false" v-drag :visible.sync="partModelFlag" width="900px">
<el-dialog title="物料导入" :close-on-click-modal="false" v-drag :visible.sync="partModelFlag" width="900px">
<div style="font-size: 12px"> <div style="font-size: 12px">
<el-form :inline="true" label-position="top" :model="partData">
<el-form :inline="true" label-position="top" :model="searchData">
<el-form-item :label="'物料编码'"> <el-form-item :label="'物料编码'">
<el-input v-model="partData.partNo" clearable style="width: 120px"></el-input>
<el-input v-model="searchData.partNo" clearable style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'物料名称'"> <el-form-item :label="'物料名称'">
<el-input v-model="partData.partDesc" clearable style="width: 120px"></el-input>
<el-input v-model="searchData.partDesc" clearable style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="'物料状态'"> <el-form-item :label="'物料状态'">
<el-select v-model="searchData.searchType" @change="searchTypeChange" style="width: 120px">
<el-select v-model="searchData.searchType" style="width: 120px">
<el-option label="Project Part" value="Y"></el-option> <el-option label="Project Part" value="Y"></el-option>
<el-option label="Inventory Part" value="N"></el-option> <el-option label="Inventory Part" value="N"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label=" "> <el-form-item label=" ">
<el-button type="primary" @click="getPartList">查询</el-button>
<el-button type="primary" @click="searchTypeChange">查询</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
@ -649,8 +648,19 @@
label=" BU Desc"> label=" BU Desc">
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页-->
<el-pagination
style="margin-top: 5px"
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[20, 50, 100, 200, 500]"
:page-size="pageSize"
:total="totalPage"
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
</el-header> </el-header>
<el-main style="width: 880px;height: 27px;margin-top: 50px;padding: 0 0 0 0;text-align:center">
<el-main style="width: 880px;height: 27px;margin-top: 70px;padding: 0 0 0 0;text-align:center">
<div> <div>
<el-button type="primary" @click="addPart">添加>></el-button> <el-button type="primary" @click="addPart">添加>></el-button>
<el-button type="primary" @click="deletePart">删除<<</el-button> <el-button type="primary" @click="deletePart">删除<<</el-button>
@ -805,6 +815,16 @@ import {
this.modalData.partCostGroupId = this.modalData.partCostGroupId.toUpperCase() this.modalData.partCostGroupId = this.modalData.partCostGroupId.toUpperCase()
this.modalData.planningMethod = this.modalData.planningMethod.toUpperCase() this.modalData.planningMethod = this.modalData.planningMethod.toUpperCase()
} }
},
'searchData.searchType'(newVal,oldVal){
this.searchData.partNo = ''
this.searchData.partDesc = ''
this.searchTypeChange();
},
partModelFlag(newVal,oldVal){
if (newVal === false){
this.refreshDetailList();
}
} }
}, },
data() { data() {
@ -815,8 +835,16 @@ import {
username: this.$store.state.user.name, username: this.$store.state.user.name,
projectId: '', projectId: '',
customerId: '', customerId: '',
searchType: 'Y'
searchType: 'Y',
partNo: '',
partDesc: '',
partNos: '',
page: 1,
limit: 10
}, },
pageIndex: 1,
pageSize: 20,
totalPage: 0,
visible: false, visible: false,
dataListLoading: false, dataListLoading: false,
currentRow: '', currentRow: '',
@ -1443,6 +1471,19 @@ import {
}, },
methods: { methods: {
//
sizeChangeHandle (val) {
this.pageSize = val
this.pageIndex = 1
this.searchTypeChange()
},
//
currentChangeHandle (val) {
this.pageIndex = val
this.searchTypeChange()
},
// bu // bu
getBuBySite () { getBuBySite () {
let tempData = { let tempData = {
@ -1588,17 +1629,23 @@ import {
// //
init(inData) { init(inData) {
// //
this.searchData = JSON.parse(JSON.stringify(inData))
this.searchData.searchType = 'Y'
this.searchData = {
...JSON.parse(JSON.stringify(inData)),
searchType: 'Y',
page: 1,
limit: 10,
partNo: '',
partDesc: '',
partNos: '',
}
// //
this.searchTable() this.searchTable()
}, },
searchTable(){ searchTable(){
getProjectInfoPartList(this.searchData).then(({data}) => { getProjectInfoPartList(this.searchData).then(({data}) => {
// //
if (data && data.code == 0) {
if (data && data.code === 0) {
this.dataList = data.rows this.dataList = data.rows
} else { } else {
this.dataList = [] this.dataList = []
@ -1607,7 +1654,7 @@ import {
}, },
addModal () { addModal () {
if (this.searchData.projectId == "" || this.searchData.projectId == null) {
if (this.searchData.projectId === "" || this.searchData.projectId == null) {
this.$alert('请选择项目!', '错误', { this.$alert('请选择项目!', '错误', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
@ -1986,10 +2033,6 @@ import {
this.$message.warning('请选择计量单位!') this.$message.warning('请选择计量单位!')
return return
} }
// if (this.modalData.codeNo === '' || this.modalData.codeNo == null) {
// this.$message.warning('')
// return
// }
if (this.modalData.buNo === '' || this.modalData.buNo == null) { if (this.modalData.buNo === '' || this.modalData.buNo == null) {
this.$message.warning('请选择BU!') this.$message.warning('请选择BU!')
return return
@ -2044,29 +2087,32 @@ import {
this.partList1 = [] this.partList1 = []
this.partList2 = [] this.partList2 = []
this.searchData.searchType = 'Y' this.searchData.searchType = 'Y'
this.searchData.partNo = ''
this.searchData.partDesc = ''
this.searchData.partNos = ''
this.handleGetProjectPartList();
},
handleGetProjectPartList(){
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
getProjectPartList(this.searchData).then(({data}) => { getProjectPartList(this.searchData).then(({data}) => {
this.partListAll = data.row1
this.partList1 = this.partListAll
this.partData = {
site: this.$store.state.user.site,
partNo: '',
partDesc: ''
}
if (data && data.code === 0){
this.partList1 = data.page.list
this.pageIndex = data.page.currPage
this.pageSize = data.page.pageSize
this.totalPage = data.page.totalCount
this.partModelFlag = true this.partModelFlag = true
}
}) })
}, },
// //
searchTypeChange () { searchTypeChange () {
getProjectPartList(this.searchData).then(({data}) => {
this.partListAll = data.row1
this.partList1 = this.partListAll
this.partData = {
site: this.$store.state.user.site,
partNo: '',
partDesc: ''
}
})
// 使 map partNo
let partNos = this.partList2.map(part => part.partNo)
// 使 join partNo
this.searchData.partNos = partNos.join(",")
this.handleGetProjectPartList();
}, },
// //
@ -2078,43 +2124,34 @@ import {
* 选择项目物料 * 选择项目物料
*/ */
getPartList () { getPartList () {
let tempList = []
if (this.partData.partNo !== '' && this.partData.partDesc === '') {
this.partList1.forEach(item => {
if (item.partNo.includes(this.partData.partNo)) {
tempList.push(item)
}
})
this.partList1 = tempList
} else if (this.partData.partDesc !== '' && this.partData.partNo === '') {
this.partList1.forEach(item => {
if (item.partDesc.includes(this.partData.partDesc)) {
tempList.push(item)
}
})
this.partList1 = tempList
} else if (this.partData.partNo !== '' && this.partData.partDesc !== '') {
this.partList1.forEach(item => {
if (item.partNo.includes(this.partData.partNo) && item.partDesc.includes(this.partData.partDesc)) {
tempList.push(item)
}
})
this.partList1 = tempList
} else {
this.partList1 = this.partListAll.filter(x => {
return this.partList2.every(y => y.partNo !== x.partNo)
})
}
// getPartListBy(this.partData).then(({data}) => {
// if (data && data.code === 0) {
// this.partList1 = data.rows
// } else {
// this.$alert(data.msg, '', {
// confirmButtonText: ''
// let tempList = []
// if (this.partData.partNo !== '' && this.partData.partDesc === '') {
// this.partList1.forEach(item => {
// if (item.partNo.includes(this.partData.partNo)) {
// tempList.push(item)
// }
// })
// this.partList1 = tempList
// } else if (this.partData.partDesc !== '' && this.partData.partNo === '') {
// this.partList1.forEach(item => {
// if (item.partDesc.includes(this.partData.partDesc)) {
// tempList.push(item)
// }
// }) // })
// this.partList1 = tempList
// } else if (this.partData.partNo !== '' && this.partData.partDesc !== '') {
// this.partList1.forEach(item => {
// if (item.partNo.includes(this.partData.partNo) && item.partDesc.includes(this.partData.partDesc)) {
// tempList.push(item)
// } // }
// }) // })
// this.partList1 = tempList
// } else {
// this.partList1 = this.partListAll.filter(x => {
// return this.partList2.every(y => y.partNo !== x.partNo)
// })
// }
}, },
// //
@ -2141,13 +2178,14 @@ import {
this.partSelections1.forEach(item => { this.partSelections1.forEach(item => {
item.customerPartNo = '' item.customerPartNo = ''
this.partList2.push(item) this.partList2.push(item)
let index = this.partList1.findIndex(x => {
if (x.partNo === item.partNo) {
return true;
}
})
this.partList1.splice(index, 1)
// let index = this.partList1.findIndex(x => {
// if (x.partNo === item.partNo) {
// return true;
// }
// })
// this.partList1.splice(index, 1)
}) })
this.searchTypeChange()
// for (let i = 0; i < this.partSelections1.length; i++) { // for (let i = 0; i < this.partSelections1.length; i++) {
// this.partSelections1[i].customerPartNo = '' // this.partSelections1[i].customerPartNo = ''
@ -2187,13 +2225,14 @@ import {
} }
this.partSelections2.forEach(item => { this.partSelections2.forEach(item => {
this.partList1.push(item) this.partList1.push(item)
let index = this.partList2.findIndex(x => {
if (x.partNo === item.partNo) {
return true;
}
})
this.partList2.splice(index, 1)
// let index = this.partList2.findIndex(x => {
// if (x.partNo === item.partNo) {
// return true;
// }
// })
// this.partList2.splice(index, 1)
}) })
this.searchTypeChange()
// for (let i = 0; i < this.partSelections2.length; i++) { // for (let i = 0; i < this.partSelections2.length; i++) {

2
src/views/modules/tooling/components/com_tool_info_add_update.vue

@ -165,6 +165,7 @@ export default {
propertyNo: '', propertyNo: '',
ifsRowId: 0, ifsRowId: 0,
ifsRowVersion: '', ifsRowVersion: '',
addFlag: true,
}, },
dataListLoading: false, dataListLoading: false,
labels: { labels: {
@ -348,6 +349,7 @@ export default {
this.pageData = JSON.parse(JSON.stringify(toolInfo)); this.pageData = JSON.parse(JSON.stringify(toolInfo));
this.pageData.username = this.$store.state.user.name; this.pageData.username = this.$store.state.user.name;
} }
this.pageData.addFlag = addFlag;
this.addFlag = addFlag; this.addFlag = addFlag;
}, },

12
src/views/modules/tooling/manuf_tool.vue

@ -542,7 +542,7 @@ export default {
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 40
columnWidth: 90
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -803,7 +803,6 @@ export default {
// columnList: { // columnList: {
// deep: true, // deep: true,
// handler: function (newV, oldV) { // handler: function (newV, oldV) {
// debugger
// //
// } // }
// } // }
@ -1095,8 +1094,17 @@ export default {
/*调整等待派工单的等待时间*/ /*调整等待派工单的等待时间*/
changeCurrentToolInfo(tempData) { changeCurrentToolInfo(tempData) {
//
if(tempData.addFlag){
//
this.searchData.site = tempData.site;
this.searchData.toolId = tempData.toolId;
//
this.refreshTooInfoData();
}else {
// //
this.currentRow = JSON.parse(JSON.stringify(tempData)); this.currentRow = JSON.parse(JSON.stringify(tempData));
}
}, },
/*调整等待派工单的等待时间*/ /*调整等待派工单的等待时间*/

Loading…
Cancel
Save