Commit 4fcb3dd1 authored by “lixuyan”'s avatar “lixuyan”

Merge branch 'dev' of http://94.191.100.41/tfmom/tf-mom-web into dev

parents 7fa1e0a7 4df8e3a6
...@@ -184,9 +184,10 @@ export default { ...@@ -184,9 +184,10 @@ export default {
.el-submenu__title::after { .el-submenu__title::after {
border-bottom: 4px solid white; border-bottom: 4px solid white;
} }
.el-submenu__title:hover{
.menu-m-icon { .menu-m-icon {
filter: brightness(100); filter: brightness(100);
}
} }
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<el-scrollbar v-show="isCollapse && !$route.query.showMenu" wrap-class="scrollbar-wrapper"> <el-scrollbar v-show="isCollapse && !$route.query.showMenu" wrap-class="scrollbar-wrapper">
<el-menu <el-menu
:default-active="activeMenu" :default-active="activeMenu"
:collapse="true" :collapse="false"
background-color="inherit" background-color="inherit"
:text-color="variables.menuText" :text-color="variables.menuText"
:unique-opened="false" :unique-opened="false"
......
...@@ -63,7 +63,8 @@ ...@@ -63,7 +63,8 @@
.menu-m-icon, .menu-m-icon,
.svg-icon { .svg-icon {
margin-right: 16px; margin-right: 8px;
margin-left: 4px;
} }
.el-menu { .el-menu {
...@@ -265,7 +266,7 @@ ...@@ -265,7 +266,7 @@
.el-menu-item { .el-menu-item {
// padding: 0px !important; // padding: 0px !important;
color: #212121 !important; color: #212121 !important;
height: 42px !important; height: 30px !important;
//margin: 16px 0 !important; //margin: 16px 0 !important;
} }
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
</template> </template>
<script> <script>
import { post } from '@/utils/http'
export default { export default {
name: 'WarehouseConfirm', name: 'WarehouseConfirm',
components: {}, components: {},
...@@ -38,13 +37,11 @@ export default { ...@@ -38,13 +37,11 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
created() { created() {
// this.searchInStorageRequestItem()
}, },
mounted() { mounted() {
this.$bus.$on('refreshBatchSignDetails', () => { this.$bus.$on('refreshBatchSignDetails', () => {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.applyTable && this.$refs.applyTable.$refs.asCom.getData() this.$refs.applyTable && this.$refs.applyTable.$refs.asCom.getData()
// this.searchInStorageRequestItem()
}) })
}) })
}, },
...@@ -52,165 +49,6 @@ export default { ...@@ -52,165 +49,6 @@ export default {
methods: { methods: {
selectionChange(val) { selectionChange(val) {
this.selectionRows = val this.selectionRows = val
},
searchInStorageRequestItem() {
console.log(this, 'this')
// const searchData = obtainedParams.searchFormData ? obtainedParams.searchFormData.items : []
// const extraItems = obtainedParams.extraBaseParams || []
const param = {
'rootCondition': {
'pageFrom': 1,
'pageSize': 999,
'searchItems': {
'children': [
{
'items': [
{
'fieldName': 'parentId',
'operator': 'ISNULL'
}
// ...extraItems,
// ...searchData
],
'operator': 'AND'
}
],
'items': []
},
'parentFilter': true,
'openProps': [{
'name': 'inventoryReq',
'openProps': [
{
'name': 'materialType'
}
]
},
{
'name': 'extMaterial',
'openProps': [
{
'name': 'extUnit'
}
]
},
{
'name': 'extDxSipplier'
},
{
'name': 'storageZone'
},
{
'name': 'purchaseUnit'
},
{
'name': 'inventoryJobResponses',
'openProps': [
{
'name': 'extWorkUnit'
},
{ 'name': 'inventory'
}
]
}
],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
]
},
'childCondition': {
'pageFrom': 1,
'pageSize': 9999,
'searchItems': {
'children': [],
'items': []
},
'openProps': [{
'name': 'inventoryReq',
'openProps': [
{
'name': 'materialType'
}
]
},
{
'name': 'extMaterial',
'openProps': [
{
'name': 'extUnit'
}
]
},
{
'name': 'extDxSipplier'
},
{
'name': 'storageZone'
},
{
'name': 'purchaseUnit'
},
{
'name': 'inventoryJobResponses',
'openProps': [
{
'name': 'extWorkUnit'
}
]
}
],
'sortItem': [
{
'fieldName': 'modifyTime',
'sortOrder': 'desc'
}
]
}
}
// this.resultData = []
const requestURL = 'InStorageRequestItem/search/wfcInventoryItem?taskDefinitionKey=' + this.selectData.taskKey
post(requestURL, param).then(res => {
const data = res.items.content
this.treeTableNoArrange(data)
// this.pagination.total = data.length
}).catch((err) => {
console.log(err)
})
},
treeTableNoArrange(tableData) {
this.resultData = tableData.map((item, i) => {
const resData = { ...item.pbo }
resData.parentIndex = i + 1
if (resData.children) {
resData.children.forEach((child, j) => {
child.parentIndex = resData.parentIndex + '.' + (j + 1)
child.state = ''
})
}
if (resData.inventoryJobResponses && resData.inventoryJobResponses.length) {
resData.inventoryJobResponses.forEach(el => {
if (el.subTypeName === 'JobResponseInTest') {
resData.testNo = el.testNo
resData.qualityPeriod = el.qualityPeriod
resData.longPeriod = el.longPeriod
}
if (el.subTypeName === 'JobResponseInEntry') {
resData.targetJobResponseId = el.id
resData.extWorkUnitCode = el.extWorkUnit ? el.extWorkUnit.extcode : ''
}
})
}
return {
...resData,
processInstanceId: item.processTask.processInstanceId,
processTaskId: item.processTask.id
}
})
// this.tableData = tableData
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment