|
|
@@ -17,7 +17,7 @@
|
|
|
<!-- <Icon slot="prefix" type="iconfont iconfont icon-clear" @click.stop="clearAll"/>-->
|
|
|
<!-- </div>-->
|
|
|
<DkModal
|
|
|
- width="1100"
|
|
|
+ :width="modalWidth"
|
|
|
ref="modal_search"
|
|
|
v-model="showModal"
|
|
|
:loading="loading"
|
|
|
@@ -39,8 +39,10 @@
|
|
|
<!-- </DkFormItem>-->
|
|
|
<!-- </DkForm>-->
|
|
|
|
|
|
- <SearchCond id="search-cond-div" width="1000px" v-if="searchContent && searchContent.length > 0" ref="searchCond"
|
|
|
- v-model="searchCond" :setFlag="false" :searchContent="searchContent" :col-count="4"></SearchCond>
|
|
|
+ <SearchCond id="search-cond-div" :width="modalWidth - 100" v-if="searchContent && searchContent.length > 0"
|
|
|
+ ref="searchCond"
|
|
|
+ v-model="searchCond" :setFlag="false" :searchContent="searchContent"
|
|
|
+ :col-count="colCount"></SearchCond>
|
|
|
|
|
|
<div v-if="multiple">
|
|
|
<DkTabs ref="tabs" :options="tabsOptions" @on-click="tabsClick" @on-clear="clearSelected"></DkTabs>
|
|
|
@@ -182,7 +184,7 @@ export default {
|
|
|
// 表格高度
|
|
|
tableHeight: {
|
|
|
type: Number,
|
|
|
- default: 360
|
|
|
+ default: 340
|
|
|
},
|
|
|
// 清空标识
|
|
|
clearable: {
|
|
|
@@ -207,7 +209,9 @@ export default {
|
|
|
const vm = window.vm
|
|
|
let self = this
|
|
|
return {
|
|
|
- loading:false,
|
|
|
+ colCount: 4,
|
|
|
+ modalWidth: 980,
|
|
|
+ loading: false,
|
|
|
tabIndex: 0,
|
|
|
tabsOptions: [
|
|
|
{label: '选择列表', name: 'name1', index: 0},
|
|
|
@@ -279,13 +283,21 @@ export default {
|
|
|
this.selectedValue = n;
|
|
|
},
|
|
|
value(n, o) {
|
|
|
- if (!this.inputReadOnlyData) {
|
|
|
- // todo 如果赋值就会产生把id付给selectvalue的情况
|
|
|
- // this.selectedValue = n
|
|
|
- } else {
|
|
|
- if (n == null) {
|
|
|
+ // if (!this.inputReadOnlyData) {
|
|
|
+ // // todo 如果赋值就会产生把id付给selectvalue的情况
|
|
|
+ // // this.selectedValue = n
|
|
|
+ // } else {
|
|
|
+ // if (n == null) {
|
|
|
+ // this.selectedValue = null;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ if (n == null) {
|
|
|
+ if (this.multiple) {
|
|
|
+ this.selectedValue = [];
|
|
|
+ } else {
|
|
|
this.selectedValue = null;
|
|
|
}
|
|
|
+ this.$emit('ok', null)
|
|
|
}
|
|
|
if (!n) {
|
|
|
this.batchKeysPage = []
|
|
|
@@ -357,11 +369,12 @@ export default {
|
|
|
* @date : 2022/5/31 15:04
|
|
|
*/
|
|
|
clearSelected() {
|
|
|
- this.selectedKeys = []
|
|
|
- this.selectedTable = []
|
|
|
- this.batchKeysPage = []
|
|
|
- this.batchRowsPage = []
|
|
|
- this.$refs['table-select'].clearBatchKeys();
|
|
|
+ // this.selectedKeys = []
|
|
|
+ // this.selectedTable = []
|
|
|
+ // this.batchKeysPage = []
|
|
|
+ // this.batchRowsPage = []
|
|
|
+ // this.$refs['table-select'].clearBatchKeys();
|
|
|
+ this.clearAll();
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
@@ -595,17 +608,19 @@ export default {
|
|
|
if (tRow && tRow.length > 0) {
|
|
|
// 删除掉去掉的勾选
|
|
|
this.$refs['table-select'].setUnCheckedRow(tRow[0]);
|
|
|
- } else {
|
|
|
- // 删除掉去掉的勾选
|
|
|
- if (this.batchKeysPage) {
|
|
|
- this.batchKeysPage.splice(this.batchKeysPage.indexOf(key), 1)
|
|
|
- let filterRows = this.$refs['table-select'].batchRows.filter(it => it[this.selectKey] == key)
|
|
|
- if (filterRows && filterRows.length > 0) {
|
|
|
- this.$refs['table-select'].batchRows.splice(this.$refs['table-select'].batchRows.indexOf(filterRows[0]), 1)
|
|
|
- }
|
|
|
- this.$refs['table-select'].batchKeys = this.batchKeysPage;
|
|
|
- }
|
|
|
}
|
|
|
+ // else {
|
|
|
+ // // 删除掉去掉的勾选
|
|
|
+ // if (this.batchKeysPage) {
|
|
|
+ // this.batchKeysPage.splice(this.batchKeysPage.indexOf(key), 1)
|
|
|
+ // let filterRows = this.$refs['table-select'].batchRows.filter(it => it[this.selectKey] == key)
|
|
|
+ // if (filterRows && filterRows.length > 0) {
|
|
|
+ // this.$refs['table-select'].batchRows.splice(this.$refs['table-select'].batchRows.indexOf(filterRows[0]), 1)
|
|
|
+ // }
|
|
|
+ // this.$refs['table-select'].batchKeys = this.batchKeysPage?.copy();
|
|
|
+ // console.log('3342',tRow,this.tableData, this.batchRowsPage,JSON.stringify(this.batchKeysPage) )
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
|
@@ -626,7 +641,7 @@ export default {
|
|
|
}
|
|
|
this.model = this.multiple ? this.batchKeysPage : row[this.selectKey]
|
|
|
this.$emit('input-change', this.multiple ? this.batchKeysPage : this.batchKeysPage[0])
|
|
|
- this.$emit('modelOk',this.multiple ? this.batchKeysPage : this.batchKeysPage[0])
|
|
|
+ this.$emit('modelOk', this.multiple ? this.batchKeysPage : this.batchKeysPage[0])
|
|
|
this.$emit('ok', this.batchRowsPage)
|
|
|
this.$emit('on-ok', this.multiple ? this.batchRowsPage : this.batchRowsPage[0])
|
|
|
this.showModal = false;
|
|
|
@@ -639,10 +654,22 @@ export default {
|
|
|
handleSelectChange(batchRows, row, checked) {
|
|
|
if (row) {
|
|
|
this.batchKeysPage = [...this.$refs['table-select'].batchKeys]
|
|
|
- if( this.batchKeysPage){
|
|
|
- // 根据id获取row
|
|
|
- this.batchRowsPage = this.$refs['table-select'].dataFinal?.filter(it=>this.batchKeysPage.includes(it[this.selectKey]) )
|
|
|
- }else{
|
|
|
+ if (this.batchKeysPage) {
|
|
|
+ let dataFinal = this.$refs['table-select'].dataFinal
|
|
|
+ let filters = []
|
|
|
+ this.batchKeysPage.forEach(it => {
|
|
|
+ filters = this.batchRowsPage.filter(item => item[this.selectKey] === it);
|
|
|
+ if (!filters || filters.length === 0) {
|
|
|
+ // 获取列
|
|
|
+ filters = dataFinal?.filter(item => item[this.selectKey] === it);
|
|
|
+ if(filters && filters.length > 0){
|
|
|
+ this.batchRowsPage.push({...filters[0]})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // // 根据id获取row
|
|
|
+ // this.batchRowsPage = this.$refs['table-select'].dataFinal?.filter(it => this.batchKeysPage.includes(it[this.selectKey]))
|
|
|
+ } else {
|
|
|
this.batchRowsPage = []
|
|
|
}
|
|
|
this.$refs['table-select'].batchRows = [...this.batchRowsPage]
|
|
|
@@ -686,7 +713,7 @@ export default {
|
|
|
if (this.$refs.searchCond) {
|
|
|
this.$refs.searchCond.clearCondition();
|
|
|
}
|
|
|
- this.searchData() // 重新查询
|
|
|
+ // this.searchData() // 重新查询
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 校验是否可以做查询
|
|
|
@@ -720,7 +747,7 @@ export default {
|
|
|
}
|
|
|
this.loading = true;
|
|
|
let param = {...this.$refs['table-select'].pageInfo}
|
|
|
- param.currentPage = this.pageInfo.currentPage?this.pageInfo.currentPage:1
|
|
|
+ param.currentPage = this.pageInfo.currentPage ? this.pageInfo.currentPage : 1
|
|
|
param.pageSize = this.pageInfo.pageSize
|
|
|
param.userId = this.$store.state.user.id
|
|
|
param.ftyId = this.$store.state.user.ftyId
|
|
|
@@ -785,11 +812,10 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.showModal = true
|
|
|
- this.$nextTick(()=>{
|
|
|
+ this.$nextTick(() => {
|
|
|
// 文本不可输入时(大多数放大镜组件使用)
|
|
|
if (this.inputReadOnlyData) {
|
|
|
if (this.multiple) {
|
|
|
- console.log('tt',this.value)
|
|
|
this.batchKeysPage = []
|
|
|
this.$refs['table-select'].batchKeys = []
|
|
|
if (this.value && Array.isArray(this.value)) {
|
|
|
@@ -832,8 +858,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ // 如果多选,页签回到第一个
|
|
|
+ if(this.multiple){
|
|
|
+ this.tabIndex = 0;
|
|
|
+ }
|
|
|
// 查询数据
|
|
|
- this.getDataTable();
|
|
|
+ // this.getDataTable();
|
|
|
})
|
|
|
},
|
|
|
/**
|
|
|
@@ -877,7 +907,8 @@ export default {
|
|
|
* @date : 2022/3/7 15:44
|
|
|
*/
|
|
|
checkBatch() {
|
|
|
- if (this.$refs['table-select'].batchKeys.length <= 0) {
|
|
|
+ if (!this.batchKeysPage || this.batchKeysPage.length === 0) {
|
|
|
+ // if (this.$refs['table-select'].batchKeys.length <= 0) {
|
|
|
this.$Message.error('请先选择数据')
|
|
|
return false
|
|
|
}
|
|
|
@@ -892,27 +923,31 @@ export default {
|
|
|
if (this.checkBatch()) {
|
|
|
this.showModal = false
|
|
|
// 重新去keys,考虑到可能会有无效的数据
|
|
|
- this.batchKeysPage = [...this.$refs['table-select'].batchKeys]
|
|
|
- this.batchRowsPage = [...this.$refs['table-select'].batchRows]
|
|
|
- // 判断放大镜获取的数据是否在下拉里有,如果没有就增加
|
|
|
- this.batchRowsPage.forEach(it => {
|
|
|
- if (this.multiple) {
|
|
|
- let filter = this.options.filter(opt => opt[this.selectKey] == it[this.selectKey])
|
|
|
- if (!filter || filter.length === 0) {
|
|
|
- this.options.push(it);
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
+ // this.batchKeysPage = [...this.$refs['table-select'].batchKeys]
|
|
|
+ // this.batchRowsPage = [...this.$refs['table-select'].batchRows]
|
|
|
+ // // 判断放大镜获取的数据是否在下拉里有,如果没有就增加
|
|
|
+ // this.batchRowsPage.forEach(it => {
|
|
|
+ // if (this.multiple) {
|
|
|
+ // let filter = this.options.filter(opt => opt[this.selectKey] == it[this.selectKey])
|
|
|
+ // if (!filter || filter.length === 0) {
|
|
|
+ // this.options.push(it);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
// 不显示下拉时
|
|
|
|
|
|
if (!this.selectFlag) {
|
|
|
let display = []
|
|
|
- for (let i = 0; i < this.$refs['table-select'].batchRows.length; i++) {
|
|
|
- display.push(this.$refs['table-select'].batchRows[i][this.selectLabel])
|
|
|
+ // for (let i = 0; i < this.$refs['table-select'].batchRows.length; i++) {
|
|
|
+ // display.push(this.$refs['table-select'].batchRows[i][this.selectLabel])
|
|
|
+ // }
|
|
|
+ for (let i = 0; i < this.batchRowsPage.length; i++) {
|
|
|
+ display.push(this.batchRowsPage[i][this.selectLabel])
|
|
|
}
|
|
|
this.selectedValue = display.join(',')
|
|
|
}
|
|
|
- this.model = this.multiple ? this.$refs['table-select'].batchKeys : this.$refs['table-select'].batchKeys[0]
|
|
|
+ // this.model = this.multiple ? this.$refs['table-select'].batchKeys : this.$refs['table-select'].batchKeys[0]
|
|
|
+ this.model = this.multiple ? this.batchKeysPage : this.batchKeysPage[0]
|
|
|
//光标切回select组件
|
|
|
if (this.selectFlag) {
|
|
|
this.$refs['select'].focus()
|
|
|
@@ -923,18 +958,35 @@ export default {
|
|
|
this.batchKeysPage = this.batchKeysPage.filter(it => it != null); // 过滤掉null数据
|
|
|
this.$emit('input-change', this.multiple ? this.batchKeysPage : this.batchKeysPage[0])
|
|
|
this.$emit('ok', this.batchRowsPage)
|
|
|
- this.$emit('modelOk',this.multiple ? this.batchKeysPage : this.batchKeysPage[0])
|
|
|
- this.$emit('on-ok', this.multiple ? this.$refs['table-select'].batchRows : this.$refs['table-select'].batchRows[0])
|
|
|
+ this.$emit('modelOk', this.multiple ? this.batchKeysPage : this.batchKeysPage[0])
|
|
|
+ // this.$emit('on-ok', this.multiple ? this.$refs['table-select'].batchRows : this.$refs['table-select'].batchRows[0])
|
|
|
+ this.$emit('on-ok', this.multiple ? this.batchRowsPage : this.batchRowsPage[0])
|
|
|
// 清空查询条件
|
|
|
this.$refs['searchCond'].clearCondition();
|
|
|
+ // 清空表格
|
|
|
+ this.clearTable();
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
|
+ * @desc : 清空表格数据
|
|
|
+ * @author : 周兴
|
|
|
+ * @date : 2023/5/8 13:43
|
|
|
+ */
|
|
|
+ clearTable() {
|
|
|
+ this.tableData = []
|
|
|
+ // // 清空列表
|
|
|
+ // this.$refs['table-select'].clearTable();
|
|
|
+ },
|
|
|
+ /**
|
|
|
* @desc : 关闭点击事件
|
|
|
* @author : 沈博
|
|
|
* @date : 2022/3/7 15:43
|
|
|
*/
|
|
|
cancel() {
|
|
|
+ // 清空查询条件
|
|
|
+ this.$refs['searchCond'].clearCondition();
|
|
|
+ // 清空表格
|
|
|
+ this.clearTable();
|
|
|
this.showModal = false
|
|
|
},
|
|
|
/**
|
|
|
@@ -990,7 +1042,7 @@ export default {
|
|
|
e.returnValue = false
|
|
|
if (self.$refs.modal_search.$refs[forIt.name]) {
|
|
|
self.$refs.modal_search.$refs[forIt.name].$el.click()
|
|
|
- }else if (self.$refs[forIt.name]) {
|
|
|
+ } else if (self.$refs[forIt.name]) {
|
|
|
self.$refs[forIt.name].$el.click()
|
|
|
}
|
|
|
}
|
|
|
@@ -1043,6 +1095,8 @@ export default {
|
|
|
{itemCode: 'userCode'},
|
|
|
{itemCode: 'userName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'userId'
|
|
|
self.selectLabel = 'userName'
|
|
|
self.columns = [
|
|
|
@@ -1059,6 +1113,8 @@ export default {
|
|
|
{itemCode: 'userCode'},
|
|
|
{itemCode: 'userName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'userId'
|
|
|
self.selectLabel = 'userName'
|
|
|
self.columns = [
|
|
|
@@ -1075,12 +1131,14 @@ export default {
|
|
|
{itemCode: 'orgCode'},
|
|
|
{itemCode: 'orgName'},
|
|
|
]
|
|
|
+ self.modalWidth = 600
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'orgId'
|
|
|
self.selectLabel = 'orgName'
|
|
|
self.columns = [
|
|
|
{field: 'orgName'},
|
|
|
{field: 'orgCode'},
|
|
|
- {field: 'levelName', title:self.$t('orgLevelName'), width: 'auto'},
|
|
|
+ {field: 'levelName', title: self.$t('orgLevelName'), width: 'auto'},
|
|
|
]
|
|
|
}
|
|
|
//产品信息(条码变更)
|
|
|
@@ -1109,7 +1167,7 @@ export default {
|
|
|
{field: 'moldingBatch', width: 'auto'},
|
|
|
{field: 'moldingUser', width: 'auto'},
|
|
|
{field: 'productUniqueCode', width: 'auto'},
|
|
|
- {field: 'mouldUniqueCode', width: 'auto'},
|
|
|
+ {field: 'mouldUniqueCode', title: self.$t('moldingModelCode'), width: 'auto'},
|
|
|
{field: 'mouldKind', width: 'auto'},
|
|
|
{field: 'moldedNum', width: 'auto'},
|
|
|
{field: 'manageUserName', width: 'auto'},
|
|
|
@@ -1126,6 +1184,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'pdtBarcode'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'itemId'
|
|
|
self.selectLabel = 'pdtBarcode'
|
|
|
self.columns = [
|
|
|
@@ -1143,6 +1203,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'pdtBarcode'},
|
|
|
]
|
|
|
+ self.modalWidth = 600
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'itemId'
|
|
|
self.selectLabel = 'pdtBarcode'
|
|
|
self.columns = [
|
|
|
@@ -1161,6 +1223,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'pdtBarcode'},
|
|
|
]
|
|
|
+ self.modalWidth = 600
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'itemId'
|
|
|
self.selectLabel = 'pdtBarcode'
|
|
|
self.columns = [
|
|
|
@@ -1176,6 +1240,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'nodeName'},
|
|
|
]
|
|
|
+ self.modalWidth = 800
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'nodeId'
|
|
|
self.selectLabel = 'nodeName'
|
|
|
self.columns = [
|
|
|
@@ -1195,6 +1261,8 @@ export default {
|
|
|
{itemCode: 'tagTypeName'},
|
|
|
{itemCode: 'tagName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'tagId'
|
|
|
self.selectLabel = 'tagName'
|
|
|
self.columns = [
|
|
|
@@ -1210,6 +1278,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'roleName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'roleId'
|
|
|
self.selectLabel = 'roleName'
|
|
|
self.columns = [
|
|
|
@@ -1225,6 +1295,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'jobName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'jobId'
|
|
|
self.selectLabel = 'jobName'
|
|
|
self.columns = [
|
|
|
@@ -1240,6 +1312,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'postName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'postId'
|
|
|
self.selectLabel = 'postName'
|
|
|
self.columns = [
|
|
|
@@ -1255,6 +1329,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'channelName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'channelId'
|
|
|
self.selectLabel = 'channelName'
|
|
|
self.columns = [
|
|
|
@@ -1268,15 +1344,17 @@ export default {
|
|
|
self.methodsName = 'getModelProduct'
|
|
|
self.methodsNameDetail = 'getModelProductByPage'
|
|
|
self.searchContent = [
|
|
|
- {itemCode: 'appProductCodeB', valueFormat: {code: 'modelCode'}},
|
|
|
- {itemCode: 'appProductName', valueFormat: {code: 'modelName'}},
|
|
|
+ {itemCode: 'modelCode'},
|
|
|
+ {itemCode: 'modelName'},
|
|
|
]
|
|
|
self.selectKey = 'modelId'
|
|
|
self.selectLabel = 'modelName'
|
|
|
+ self.modalWidth = 600
|
|
|
+ self.colCount = 2
|
|
|
self.columns = [
|
|
|
- {field: 'modelCode', title: self.$t('appProductCodeB'), width: '300'},
|
|
|
- {field: 'modelName', title: self.$t('appProductName'), width: '300'},
|
|
|
- {field: 'categoryName', width: '300'},
|
|
|
+ {field: 'modelCode', width: '300'},
|
|
|
+ {field: 'modelName', width: '300', title: self.$t('productModelName')},
|
|
|
+ {field: 'categoryName', width: '300', title: self.$t('modelCategory')},
|
|
|
]
|
|
|
}
|
|
|
//模具
|
|
|
@@ -1287,6 +1365,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'uniqueCode'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'uniqueId'
|
|
|
self.selectLabel = 'uniqueCode'
|
|
|
self.columns = [
|
|
|
@@ -1304,6 +1384,8 @@ export default {
|
|
|
]
|
|
|
self.selectKey = 'modelId'
|
|
|
self.selectLabel = 'modelName'
|
|
|
+ self.modalWidth = 800
|
|
|
+ self.colCount = 2
|
|
|
self.columns = [
|
|
|
{field: 'modelCategoryName', width: '200'},
|
|
|
{field: 'modelCode', width: '200'},
|
|
|
@@ -1323,6 +1405,8 @@ export default {
|
|
|
{itemCode: 'moldlineCode'},
|
|
|
{itemCode: 'moldlineName'},
|
|
|
]
|
|
|
+ self.modalWidth = 700
|
|
|
+ self.colCount = 3
|
|
|
self.selectKey = 'groupId'
|
|
|
self.selectLabel = 'groupName'
|
|
|
self.columns = [
|
|
|
@@ -1342,6 +1426,8 @@ export default {
|
|
|
{itemCode: 'moldlineCode'},
|
|
|
{itemCode: 'moldlineName'},
|
|
|
]
|
|
|
+ self.modalWidth = 800
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'moldlineId'
|
|
|
self.selectLabel = 'moldLineUniqueCode'
|
|
|
self.columns = [
|
|
|
@@ -1362,6 +1448,8 @@ export default {
|
|
|
{itemCode: 'moldlineCode'},
|
|
|
{itemCode: 'moldlineName'},
|
|
|
]
|
|
|
+ self.modalWidth = 800
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'moldlineId'
|
|
|
self.selectLabel = 'moldLineUniqueCode'
|
|
|
self.columns = [
|
|
|
@@ -1382,6 +1470,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'userCode'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'userId'
|
|
|
self.selectLabel = 'userCode'
|
|
|
self.columns = [
|
|
|
@@ -1397,6 +1487,8 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'modelKind'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'categoryId'
|
|
|
self.selectLabel = 'categoryCode'
|
|
|
self.columns = [
|
|
|
@@ -1413,6 +1505,8 @@ export default {
|
|
|
{itemCode: 'kilnCode'},
|
|
|
{itemCode: 'kilnName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'kilnId'
|
|
|
self.selectLabel = 'kilnName'
|
|
|
self.columns = [
|
|
|
@@ -1429,6 +1523,8 @@ export default {
|
|
|
{itemCode: 'userCode'},
|
|
|
{itemCode: 'userName'},
|
|
|
]
|
|
|
+ self.modalWidth = 700
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'userId'
|
|
|
self.selectLabel = 'userName'
|
|
|
self.columns = [
|
|
|
@@ -1448,6 +1544,8 @@ export default {
|
|
|
{itemCode: 'stationCode'},
|
|
|
{itemCode: 'stationName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'stationId'
|
|
|
self.selectLabel = 'stationName'
|
|
|
self.columns = [
|
|
|
@@ -1464,6 +1562,8 @@ export default {
|
|
|
{itemCode: 'flowCode'},
|
|
|
{itemCode: 'flowName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'flowId'
|
|
|
self.selectLabel = 'flowCode'
|
|
|
self.columns = [
|
|
|
@@ -1480,6 +1580,8 @@ export default {
|
|
|
{itemCode: 'categoryCode'},
|
|
|
{itemCode: 'categoryName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'categoryId'
|
|
|
self.selectLabel = 'categoryCode'
|
|
|
self.columns = [
|
|
|
@@ -1497,6 +1599,8 @@ export default {
|
|
|
{itemCode: 'categoryCode'},
|
|
|
{itemCode: 'categoryName'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'categoryId'
|
|
|
self.selectLabel = 'categoryCode'
|
|
|
self.columns = [
|
|
|
@@ -1513,12 +1617,14 @@ export default {
|
|
|
{itemCode: 'thmeterCode'},
|
|
|
{itemCode: 'thmeterName'},
|
|
|
]
|
|
|
+ self.modalWidth = 600
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'thmeterId'
|
|
|
self.selectLabel = 'thmeterCode'
|
|
|
self.columns = [
|
|
|
{field: 'thmeterCode', width: '150'},
|
|
|
{field: 'thmeterName', width: '150'},
|
|
|
- {field: 'manageUserName',title: self.$t('blameStaffId'), width: '150'},
|
|
|
+ {field: 'manageUserName', title: self.$t('blameStaffId'), width: '150'},
|
|
|
{field: 'modelKindName', width: '150'},
|
|
|
]
|
|
|
}
|
|
|
@@ -1533,12 +1639,14 @@ export default {
|
|
|
itemName: 'blameJobName',
|
|
|
},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'jobId'
|
|
|
self.selectLabel = 'jobName'
|
|
|
self.columns = [
|
|
|
- {field: 'jobName', title:this.$t('blameJobName'), width: 'auto'},
|
|
|
- {field: 'workKindName', title:this.$t('workKind'), width: 'auto'},
|
|
|
- {field: 'workUnit', width: 'auto'},
|
|
|
+ {field: 'jobName', title: this.$t('blameJobName'), width: 'auto'},
|
|
|
+ {field: 'workKindName', title: this.$t('workKind'), width: 'auto'},
|
|
|
+ {field: 'workUnit', width: 'auto'},
|
|
|
]
|
|
|
}
|
|
|
// 获取员工用于报工记录查询
|
|
|
@@ -1549,10 +1657,12 @@ export default {
|
|
|
self.searchContent = [
|
|
|
{itemCode: 'staffCode'},
|
|
|
]
|
|
|
+ self.modalWidth = 500
|
|
|
+ self.colCount = 2
|
|
|
self.selectKey = 'staffId'
|
|
|
self.selectLabel = 'staffName'
|
|
|
self.columns = [
|
|
|
- {field: 'jobName',width: '200'},
|
|
|
+ {field: 'jobName', width: '200'},
|
|
|
{field: 'staffCode', width: '200'},
|
|
|
{field: 'staffName', width: '200'},
|
|
|
]
|