181 lines
4.6 KiB
Plaintext
181 lines
4.6 KiB
Plaintext
<template>
|
|
<!-- 智能选择组件 -->
|
|
<div></div>
|
|
</template>
|
|
|
|
<script>
|
|
import selectMaterial from "@/views/mes/plan/order/prod/order-prod-select-material";
|
|
import selectBom from "@/views/mes/plan/order/prod/order-prod-select-bom.vue";
|
|
import selectRoute from "@/views/mes/plan/order/prod/order-prod-select-route";
|
|
import rvOrderProd from "@/views/mes/plan/RvorderProd/select-rvOrderProd";
|
|
import selectWarehouse from "@/views/mes/BasicData/bom/select-warehouse";
|
|
import selectSupplier from '@/views/mes/BasicData/supplier/select-supplier.vue';
|
|
import selectCustomer from '@/views/mes/warehouse/arriveBill/select-customer.vue';
|
|
import selectSalesman from '@/views/mes/warehouse/arriveBill/select-salesman.vue';
|
|
|
|
export default {
|
|
name: "fixure",
|
|
props: {
|
|
isQueryMode: {
|
|
type: Boolean,
|
|
default: true,
|
|
},
|
|
},
|
|
components: {
|
|
selectMaterial,
|
|
selectWarehouse,
|
|
selectSupplier,
|
|
selectCustomer,
|
|
selectSalesman,
|
|
},
|
|
data() {
|
|
return {
|
|
index: null,
|
|
};
|
|
},
|
|
async mounted() {},
|
|
methods: {
|
|
selectWidget(index) {
|
|
this.index = index;
|
|
if (index == 0) {
|
|
this.selectMaterial();
|
|
}
|
|
if (index == 1) {
|
|
this.selectBom();
|
|
}
|
|
if (index == 2) {
|
|
this.selectRoute();
|
|
}
|
|
if (index == 3) {
|
|
this.selectWarehouse();
|
|
}
|
|
if (index == 4) {
|
|
this.selectSupplier();
|
|
}
|
|
if (index == 5) {
|
|
this.selectCustomer();
|
|
}
|
|
if (index == 6) {
|
|
this.selectSalesman();
|
|
}
|
|
},
|
|
//0选择物料
|
|
selectMaterial() {
|
|
this.$layer.iframe({
|
|
shadeClose: false,
|
|
content: {
|
|
content: selectMaterial, //传递的组件对象
|
|
parent: this, //当前的vue对象
|
|
},
|
|
area: ["1050px", "620px"],
|
|
title: "选择产品信息(双击即可选中数据)",
|
|
});
|
|
},
|
|
getSelectMaterial(row) {
|
|
console.log('1605,')
|
|
this.$emit("getSelect", row, this.index);
|
|
},
|
|
//1选择BOM
|
|
selectBom() {
|
|
this.$layer.iframe({
|
|
shadeClose: false,
|
|
content: {
|
|
content: selectBom, //传递的组件对象
|
|
parent: this, //当前的vue对象
|
|
shadeClose: false,
|
|
},
|
|
area: ["700px", "600px"],
|
|
title: "选择BOM信息(双击即可选中数据)",
|
|
});
|
|
},
|
|
getSelectBom(row) {
|
|
this.$emit("getSelect", row, this.index);
|
|
},
|
|
//2选择工艺路线
|
|
selectRoute() {
|
|
this.$layer.iframe({
|
|
shadeClose: false,
|
|
content: {
|
|
content: selectRoute, //传递的组件对象
|
|
parent: this, //当前的vue对象
|
|
shadeClose: false,
|
|
},
|
|
area: ["850px", "600px"],
|
|
title: "选择工艺路线(双击即可选中数据)",
|
|
});
|
|
},
|
|
getSelectRoute(row) {
|
|
this.$emit("getSelect", row, this.index);
|
|
},
|
|
//3仓库
|
|
selectWarehouse(){
|
|
this.$layer.iframe({
|
|
shadeClose: false,
|
|
content: {
|
|
content: selectWarehouse, //传递的组件对象
|
|
parent: this, //当前的vue对象
|
|
shadeClose: false,
|
|
},
|
|
area: ["850px", "600px"],
|
|
title: "选择仓库(双击即可选中数据)",
|
|
});
|
|
},
|
|
getSelectWarehouse(row) {
|
|
this.$emit("getSelect", row, this.index);
|
|
},
|
|
//4供应商
|
|
selectSupplier(){
|
|
this.$layer.iframe({
|
|
shadeClose: false,
|
|
content: {
|
|
content: selectSupplier, //传递的组件对象
|
|
parent: this, //当前的vue对象
|
|
shadeClose: false,
|
|
},
|
|
area: ["850px", "600px"],
|
|
title: "选择供应商(双击即可选中数据)",
|
|
});
|
|
},
|
|
getSupplier(row) {
|
|
this.$emit("getSelect", row, this.index);
|
|
},
|
|
//5客户
|
|
selectCustomer(){
|
|
this.$layer.iframe({
|
|
shadeClose: false,
|
|
content: {
|
|
content: selectCustomer, //传递的组件对象
|
|
parent: this, //当前的vue对象
|
|
shadeClose: false,
|
|
},
|
|
area: ["850px", "600px"],
|
|
title: "选择客户(双击即可选中数据)",
|
|
});
|
|
},
|
|
getCustomer(row) {
|
|
this.$emit("getSelect", row, this.index);
|
|
},
|
|
//5业务员
|
|
selectSalesman(){
|
|
this.$layer.iframe({
|
|
shadeClose: false,
|
|
content: {
|
|
content: selectSalesman, //传递的组件对象
|
|
parent: this, //当前的vue对象
|
|
shadeClose: false,
|
|
},
|
|
area: ["850px", "600px"],
|
|
title: "选择业务员(双击即可选中数据)",
|
|
});
|
|
},
|
|
getSalesman(row) {
|
|
this.$emit("getSelect", row, this.index);
|
|
},
|
|
|
|
|
|
},
|
|
};
|
|
</script>
|
|
|
|
|