ysy %!s(int64=2) %!d(string=hai) anos
pai
achega
c26b32e148

+ 4 - 4
src/api/factoryModel/index.js

@@ -1,9 +1,9 @@
 import request from '@/utils/request';
 // 获取车间下的所有产线
-export async function listFactoryLineByParentId (params) {
-  const res = await request.get(
-    `/main/factoryarea/listFactoryLineByParentId/${params}`,
-    {}
+export async function listFactoryLine (params) {
+  const res = await request.post(
+    `/main/factoryarea/listFactoryLine`,
+    params
   );
   if (res.data.code == 0) {
     return res.data.data;

+ 5 - 4
src/views/factoryModel/station/components/edit.vue

@@ -142,7 +142,7 @@
 import {
   listWorkshopByParentId,
   saveOrUpdate_gw,
-  listFactoryLineByParentId,
+  listFactoryLine,
   getById
 } from '@/api/factoryModel';
 import { getUserPage } from '@/api/system/organization';
@@ -240,11 +240,12 @@ export default {
           message: '请输入',
           trigger: 'change'
         },
-        'extInfo.taskNames': {
+        'taskNames': {
           required: true,
-          message: '请输入',
+          message: '请选择',
           trigger: 'change'
         },
+  
         productionLineId: {
           required: true,
           message: '请输入',
@@ -455,7 +456,7 @@ export default {
     // 获取产线
     getlistFactoryLineByParentId() {
     
-      listFactoryLineByParentId(this.form.extInfo.workshopId).then((res) => {
+      listFactoryLine([this.form.extInfo.workshopId]).then((res) => {
         console.log(res);
         this.options.productionLineId = res;
       });