|
@@ -74,22 +74,23 @@
|
|
<el-col :span="6" ><el-text tag="p" >{{form.applyOrg}}</el-text></el-col>
|
|
<el-col :span="6" ><el-text tag="p" >{{form.applyOrg}}</el-text></el-col>
|
|
<el-col :span="2" ><el-text tag="p">发件单位: </el-text></el-col>
|
|
<el-col :span="2" ><el-text tag="p">发件单位: </el-text></el-col>
|
|
<el-col :span="6" ><el-text tag="p" >{{form.sendOrg}} </el-text></el-col>
|
|
<el-col :span="6" ><el-text tag="p" >{{form.sendOrg}} </el-text></el-col>
|
|
- <el-col :span="2" ><el-text tag="p">计划编号:</el-text></el-col>
|
|
|
|
|
|
+ <el-col :span="2" ><el-text tag="p">工单编号:</el-text></el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
- <el-text tag="p" v-if="dialogType === 1 || form.state > 0">{{form.orderCode}}</el-text>
|
|
|
|
|
|
+ <el-text tag="p" v-if="dialogType === 1 || form.state > 0">{{form.workOrderCode}}</el-text>
|
|
<el-select
|
|
<el-select
|
|
v-else
|
|
v-else
|
|
size="small"
|
|
size="small"
|
|
- v-model="form.orderCode"
|
|
|
|
- placeholder="请选择计划单号"
|
|
|
|
|
|
+ v-model="form.workOrderCode"
|
|
|
|
+ placeholder="请选择工单单号"
|
|
clearable
|
|
clearable
|
|
|
|
+ filterable
|
|
@change="changeOrder"
|
|
@change="changeOrder"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="option in orderList"
|
|
v-for="option in orderList"
|
|
- :key="option.orderCode"
|
|
|
|
- :label="option.orderCode"
|
|
|
|
- :value="option.orderCode"
|
|
|
|
|
|
+ :key="option.workOrderCode"
|
|
|
|
+ :label="option.workOrderCode"
|
|
|
|
+ :value="option.workOrderCode"
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -114,6 +115,11 @@
|
|
<el-input v-else v-model="row.num" type="number"/>
|
|
<el-input v-else v-model="row.num" type="number"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="实际接收" align="receiveNum" v-if="form.state === '6' || form.state === '8'">
|
|
|
|
+ <template v-slot="{row}">
|
|
|
|
+ <el-text>{{row.receiveNum}}</el-text>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="备注" align="remark">
|
|
<el-table-column label="备注" align="remark">
|
|
<template v-slot="{row}">
|
|
<template v-slot="{row}">
|
|
<el-text v-if="dialogType === 1 || form.state > 0">{{row.remark}}</el-text>
|
|
<el-text v-if="dialogType === 1 || form.state > 0">{{row.remark}}</el-text>
|
|
@@ -303,7 +309,7 @@ import { ref, getCurrentInstance } from "vue";
|
|
import { html2CanvasPrint } from "@/utils/common";
|
|
import { html2CanvasPrint } from "@/utils/common";
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
import { useCrud } from "@/hooks/userCrud";
|
|
import dictDataUtil from "@/common/configs/dictDataUtil";
|
|
import dictDataUtil from "@/common/configs/dictDataUtil";
|
|
-import {queryApplyInfoDetails,queryOrderList,saveApplyInfoDetails,auditApplyInfoDetails} from "@/api/order"
|
|
|
|
|
|
+import {queryApplyInfoDetails,queryWorkOrderList,saveApplyInfoDetails,auditApplyInfoDetails} from "@/api/order"
|
|
import {getUserList} from "@/api/system/user"
|
|
import {getUserList} from "@/api/system/user"
|
|
import { useCommonStoreHook } from "@/store";
|
|
import { useCommonStoreHook } from "@/store";
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
const { isShowTable, tableType } = toRefs(useCommonStoreHook());
|
|
@@ -327,7 +333,7 @@ const minusItem =(row)=>{
|
|
tableDataList.value = tableDataList.value.filter(item=>item.id !== row.id)
|
|
tableDataList.value = tableDataList.value.filter(item=>item.id !== row.id)
|
|
}
|
|
}
|
|
const changeOrder =(val)=>{
|
|
const changeOrder =(val)=>{
|
|
- queryApplyInfoDetails({orderCode: val}).then((data)=>{
|
|
|
|
|
|
+ queryApplyInfoDetails({workOrderCode: val}).then((data)=>{
|
|
tableDataList.value = data.data
|
|
tableDataList.value = data.data
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -497,6 +503,13 @@ option.value = Object.assign(option.value, {
|
|
overHidden: true,
|
|
overHidden: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ label: "工单单号",
|
|
|
|
+ prop: "workOrderCode",
|
|
|
|
+ search: true,
|
|
|
|
+ width: 150,
|
|
|
|
+ overHidden: true,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
label: "计划单号",
|
|
label: "计划单号",
|
|
prop: "orderCode",
|
|
prop: "orderCode",
|
|
search: true,
|
|
search: true,
|
|
@@ -561,7 +574,7 @@ option.value = Object.assign(option.value, {
|
|
});
|
|
});
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
- queryOrderList({}).then((data)=>{
|
|
|
|
|
|
+ queryWorkOrderList({}).then((data)=>{
|
|
if(!data.data){
|
|
if(!data.data){
|
|
ElMessage.warning("请维护物料BOM")
|
|
ElMessage.warning("请维护物料BOM")
|
|
}
|
|
}
|