|
@@ -77,7 +77,7 @@ const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
|
import { updateWorkShop } from "@/api/workShop";
|
|
|
|
|
|
import { updateProductionLine } from "@/api/productionLine";
|
|
|
-import { updateStation } from "@/api/station";
|
|
|
+import {bindStation, updateStation} from "@/api/station";
|
|
|
// 公共弹窗相关
|
|
|
const ctableRef = ref(null);
|
|
|
const workShopRef = ref(null);
|
|
@@ -272,8 +272,8 @@ const onSelectedLineFinish = (selectedValue) => {
|
|
|
const onSelectedStationFinish = (selectedValue) => {
|
|
|
formData.value.code = selectedValue.code;
|
|
|
formData.value.parentCode = factory.value.code;
|
|
|
- formData.value.id = selectedValue.id;
|
|
|
- updateStation(formData.value).then((data: any) => {
|
|
|
+ formData.value.ids = selectedValue.id;
|
|
|
+ bindStation(formData.value).then((data: any) => {
|
|
|
ElMessage({
|
|
|
message: data.msg,
|
|
|
type: "success",
|