ezhizao_zx 11 månader sedan
förälder
incheckning
9f4f29e8fd
2 ändrade filer med 10 tillägg och 2 borttagningar
  1. 7 0
      src/api/business/outsourcedOrder.js
  2. 3 2
      src/views/business/firstOutsource/form.vue

+ 7 - 0
src/api/business/outsourcedOrder.js

@@ -123,4 +123,11 @@ export function getLotByProductionPlanSub(data) {
 		method: 'post',
 		data: data
 	})
+}
+
+export function getFirstOrder(id) {
+	return request({
+		url: baseUrl + '/business/outsource/getFirst/' + id,
+		method: 'get'
+	})
 }

+ 3 - 2
src/views/business/firstOutsource/form.vue

@@ -142,7 +142,7 @@
                   @click="handleChoiceFurnaceNoInfo(scope.row)">
                   {{ scope.row.furnaceNoInfo != null ? scope.row.furnaceNoInfo.furnaceNumber : '选择炉号' }}
                 </el-button>
-                <span v-else>{{ scope.row.furnaceNumber }}</span>
+                <span v-else>{{ scope.row.furnaceNoInfo.furnaceNumber }}</span>
               </template>
             </el-table-column>
             <el-table-column label="外协工序" align="center" prop="processNames" width="320">
@@ -193,6 +193,7 @@
 <script setup>
 import {
   getOrder,
+  getFirstOrder,
   saveOrder,
   carrierForOutsource,
   submitOrder,
@@ -283,7 +284,7 @@ function open(row) {
 /** 查询表单信息  */
 function getForm() {
   loading.value = true;
-  getOrder(form.value.id).then((response) => {
+  getFirstOrder(form.value.id).then((response) => {
     form.value = response.data;
     //如果发出单明细里收回单,主表除了备注之外不能编辑
     form.value.details.forEach((item) => {