代码提交
This commit is contained in:
parent
da8e74d35d
commit
aad7616a31
|
@ -167,6 +167,12 @@
|
|||
window.parent.loadFin()
|
||||
}
|
||||
// loadding()
|
||||
|
||||
// 根据仓位号搜索位置
|
||||
function wareHouse(val){
|
||||
console.log('仓位号位置' + val);
|
||||
unityInstanceA.SendMessage("Manager","Unity_LocateWarehouseNo",val+'')
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
|
26
src/App.vue
26
src/App.vue
|
@ -15,8 +15,8 @@
|
|||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" >
|
||||
</el-option>
|
||||
</el-select>
|
||||
<el-input placeholder="请输入" v-model="input3">
|
||||
<i slot="suffix" class="el-input__icon el-icon-search"></i>
|
||||
<el-input placeholder="请输入" v-model="input3" @keyup.native="searchHouse()">
|
||||
<i slot="suffix" class="el-input__icon el-icon-search" @click="searchHouse()" ></i>
|
||||
</el-input>
|
||||
|
||||
<ul>
|
||||
|
@ -133,6 +133,17 @@ export default {
|
|||
// this.load()
|
||||
},
|
||||
methods: {
|
||||
// 根据仓位号查找unity场景位置
|
||||
searchHouse(){
|
||||
console.log(1111);
|
||||
if (this.value == "仓位号") {
|
||||
this.$refs.dome.contentWindow.wareHouse(this.input3)
|
||||
} else if (this.value == "物料编码") {
|
||||
// this.$refs.dome.contentWindow.shelvesList(input3)
|
||||
} else if (this.value == "物料批次") {
|
||||
// this.$refs.dome.contentWindow.shelvesList(input3)
|
||||
}
|
||||
},
|
||||
load(){
|
||||
this.loadShow = false
|
||||
},
|
||||
|
@ -198,13 +209,7 @@ export default {
|
|||
watch: {
|
||||
value: {
|
||||
handler(newVal, oldVal) {
|
||||
if (newVal == "仓位号") {
|
||||
// this.$refs.dome.contentWindow.shelvesList(input3)
|
||||
} else if (newVal == "物料编码") {
|
||||
// this.$refs.dome.contentWindow.shelvesList(input3)
|
||||
} else if (newVal == "物料批次") {
|
||||
// this.$refs.dome.contentWindow.shelvesList(input3)
|
||||
}
|
||||
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -240,6 +245,9 @@ export default {
|
|||
margin: 0 5px;
|
||||
box-shadow: 0 0 10px #5d8cad;
|
||||
border-radius: 4px;
|
||||
.el-input__suffix{
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<style lang="less" >
|
||||
|
|
Loading…
Reference in New Issue