|
|
|
|
@ -296,7 +296,15 @@
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="供应商" prop="supplierId">
|
|
|
|
|
<el-input v-model="form.supplierId" placeholder="请输入供应商" />
|
|
|
|
|
<!-- <el-input v-model="form.supplierId" placeholder="请输入供应商" />-->
|
|
|
|
|
<el-select v-model="form.supplierId" placeholder="请选择供应商" style="width: 100%;">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in supplierInfoList"
|
|
|
|
|
:key="item.supplierId"
|
|
|
|
|
:label="item.supplierName"
|
|
|
|
|
:value="item.supplierId"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
@ -680,6 +688,7 @@ import {
|
|
|
|
|
Tools, Notification, TurnOff, Warning, Money, Switch, View,
|
|
|
|
|
ShoppingCart, CircleCheck, Position, MagicStick, Plus, Edit, Delete
|
|
|
|
|
} from '@element-plus/icons-vue';
|
|
|
|
|
import { getDmsBaseDeviceSupplierList } from '@/api/dms/dmsBaseDeviceSupplier';
|
|
|
|
|
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
|
|
|
|
|
@ -919,6 +928,12 @@ const getDeviceTypes = async () => {
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let supplierInfoList =ref([]);
|
|
|
|
|
const getSupplierInfoListSelect = async () => {
|
|
|
|
|
const res = await getDmsBaseDeviceSupplierList(null);
|
|
|
|
|
supplierInfoList.value = res.data;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 获取车间列表
|
|
|
|
|
// const getWorkshopListSelect = async () => {
|
|
|
|
|
// try {
|
|
|
|
|
@ -1523,9 +1538,12 @@ let timer = null;
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
getList();
|
|
|
|
|
getDeviceTypes();
|
|
|
|
|
|
|
|
|
|
// getWorkshopListSelect();
|
|
|
|
|
getDmsDeviceModeListSelect();
|
|
|
|
|
updateCurrentTime();
|
|
|
|
|
|
|
|
|
|
getSupplierInfoListSelect();
|
|
|
|
|
timer = setInterval(updateCurrentTime, 1000);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@ -1555,6 +1573,7 @@ watch(selectedMachine, (newMachine) => {
|
|
|
|
|
loadLifecycleTypes();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|