新增物料,新增即入即出字段
This commit is contained in:
parent
4f0b5cca6a
commit
3e04b66e05
@ -110,4 +110,8 @@ public class StorageRespVO {
|
|||||||
@Schema(description = "上游单号id")
|
@Schema(description = "上游单号id")
|
||||||
private Long headerId;
|
private Long headerId;
|
||||||
|
|
||||||
}
|
@Schema(description = "即入即出标志")
|
||||||
|
@ExcelProperty("即入即出标志 1 是:0不是")
|
||||||
|
private Boolean inOutFlag;
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@ -85,4 +85,6 @@ public class StorageSaveReqVO {
|
|||||||
private Long pnId;
|
private Long pnId;
|
||||||
private List<StorageMatSaveReqVO> matItemDOList;
|
private List<StorageMatSaveReqVO> matItemDOList;
|
||||||
|
|
||||||
|
private Boolean inOutFlag;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import java.time.LocalDateTime;
|
|||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.chanko.yunxi.mes.framework.mybatis.core.dataobject.BaseDO;
|
import com.chanko.yunxi.mes.framework.mybatis.core.dataobject.BaseDO;
|
||||||
|
import org.apache.ibatis.type.JdbcType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 入/出库 DO
|
* 入/出库 DO
|
||||||
@ -115,6 +116,10 @@ public class StorageDO extends BaseDO {
|
|||||||
private Integer pickmode;
|
private Integer pickmode;
|
||||||
private Integer pickcar;
|
private Integer pickcar;
|
||||||
private Integer projectNo;
|
private Integer projectNo;
|
||||||
|
|
||||||
|
@TableField(jdbcType = JdbcType.BOOLEAN)
|
||||||
|
private Boolean inOutFlag;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String materialCode;
|
private String materialCode;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
@ -143,4 +148,4 @@ public class StorageDO extends BaseDO {
|
|||||||
private Long headerId;
|
private Long headerId;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String type;
|
private String type;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,11 +92,16 @@ v-model="formData.whId" placeholder="下拉选择" clearable class="!w-400px" @c
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="8">
|
||||||
|
<el-form-item label="即入即出" prop="inOutFlag">
|
||||||
|
<el-switch v-model="formData.inOutFlag" :disabled="ctrView || ctrSave" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="16">
|
||||||
<el-form-item label="备注" prop="description">
|
<el-form-item label="备注" prop="description">
|
||||||
<el-input
|
<el-input
|
||||||
type="textarea" v-model="formData.description" show-word-limit maxlength="200"
|
type="textarea" v-model="formData.description" show-word-limit maxlength="200"
|
||||||
:disabled="ctrView || ctrSave" />
|
:disabled="ctrView || ctrSave"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -111,10 +116,9 @@ type="textarea" v-model="formData.description" show-word-limit maxlength="200"
|
|||||||
<el-col>
|
<el-col>
|
||||||
<el-card class="hl-incard">
|
<el-card class="hl-incard">
|
||||||
<el-col>
|
<el-col>
|
||||||
<el-button
|
<el-button class="hl-addbutton" type="primary" size="large" @click="openMatForm"
|
||||||
class="hl-addbutton" type="primary" size="large" @click="openMatForm"
|
|
||||||
:disabled="ctrView || ctrSave">新增</el-button>
|
:disabled="ctrView || ctrSave">新增</el-button>
|
||||||
</el-col>
|
<el-button @click="openPnForm" type="success" v-if="btnSave" size="large">新增物料</el-button></el-col>
|
||||||
<el-form
|
<el-form
|
||||||
ref="matSubFormRef" :model="formData.matItemDOList" :rules="subFormRules"
|
ref="matSubFormRef" :model="formData.matItemDOList" :rules="subFormRules"
|
||||||
v-loading="subFormLoading" label-width="0">
|
v-loading="subFormLoading" label-width="0">
|
||||||
@ -309,14 +313,10 @@ link type="primary" size="small" :disabled="ctrView || ctrDelete"
|
|||||||
<template #header>
|
<template #header>
|
||||||
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
|
<div class="hl-card-info-icona"></div><span class="hl-card-info-text">系统信息</span>
|
||||||
<el-button @click="() => router.go(-1)" size="large" style="margin-left: 5rem">取 消</el-button>
|
<el-button @click="() => router.go(-1)" size="large" style="margin-left: 5rem">取 消</el-button>
|
||||||
<el-button @click="isPrint()" type="primary" size="large" :loading="printLoading" >打印</el-button>
|
<el-button @click="isPrint()" type="primary" size="large" :loading="printLoading" >打 印</el-button>
|
||||||
|
<el-button @click="submitForm" type="success" v-if="btnSave" size="large">保 存</el-button>
|
||||||
<el-button @click="submitForm" type="success" v-if="btnSave" size="large">保
|
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">提 交</el-button>
|
||||||
存</el-button>
|
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel&&formData.status != 2" size="large">作 废</el-button>
|
||||||
<el-button @click="handleStatus(2)" type="primary" v-if="btnSave" size="large">提
|
|
||||||
交</el-button>
|
|
||||||
<el-button @click="handleStatus(3)" type="danger" v-if="btnCancel&&formData.status != 2" size="large">作
|
|
||||||
废</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<el-row justify="center">
|
<el-row justify="center">
|
||||||
@ -367,6 +367,8 @@ link type="primary" size="small" :disabled="ctrView || ctrDelete"
|
|||||||
<!-- 表单弹窗:物料列表 -->
|
<!-- 表单弹窗:物料列表 -->
|
||||||
<projects ref="proOpenFormRef" @success="getProject" />
|
<projects ref="proOpenFormRef" @success="getProject" />
|
||||||
<purchaseorderDialog ref="projectPurchaseorderDialog" @success="handleSelectedProjectPurchaseorder" />
|
<purchaseorderDialog ref="projectPurchaseorderDialog" @success="handleSelectedProjectPurchaseorder" />
|
||||||
|
<!-- 表单弹窗:新增物料 -->
|
||||||
|
<MaterialForm ref="materialOpenFormRef" @success="getList" />
|
||||||
<el-dialog v-model="printDialogVisible" width="80%" title="入库单打印" :close-on-click-modal="false">
|
<el-dialog v-model="printDialogVisible" width="80%" title="入库单打印" :close-on-click-modal="false">
|
||||||
<div id="printArea" class="print-content">
|
<div id="printArea" class="print-content">
|
||||||
<div class="print-header">
|
<div class="print-header">
|
||||||
@ -486,6 +488,7 @@ import materials1 from './materialsin1.vue'
|
|||||||
import projects from './subproject.vue'
|
import projects from './subproject.vue'
|
||||||
import {Search} from "@element-plus/icons-vue";
|
import {Search} from "@element-plus/icons-vue";
|
||||||
import purchaseorderDialog from '@/views/heli/outsourcestock/purchaseorderDialog.vue'
|
import purchaseorderDialog from '@/views/heli/outsourcestock/purchaseorderDialog.vue'
|
||||||
|
import MaterialForm from '@/views/heli/material/MaterialForm.vue'
|
||||||
import * as StorageinApi from "@/api/heli/storagein";
|
import * as StorageinApi from "@/api/heli/storagein";
|
||||||
import * as storageInventoryApi from "@/api/heli/storageinventory";
|
import * as storageInventoryApi from "@/api/heli/storageinventory";
|
||||||
|
|
||||||
@ -518,6 +521,7 @@ const formData = ref({
|
|||||||
matItemDOList: [],
|
matItemDOList: [],
|
||||||
attachments: [],
|
attachments: [],
|
||||||
headerId:undefined,
|
headerId:undefined,
|
||||||
|
inOutFlag: true,
|
||||||
})
|
})
|
||||||
const formRules = reactive({
|
const formRules = reactive({
|
||||||
// name: [{ required: true, message: '模具类型不能为空', trigger: 'blur' }],
|
// name: [{ required: true, message: '模具类型不能为空', trigger: 'blur' }],
|
||||||
@ -544,8 +548,9 @@ const queryParams = reactive({
|
|||||||
whId: undefined,
|
whId: undefined,
|
||||||
})
|
})
|
||||||
const matOpenFormRef = ref()
|
const matOpenFormRef = ref()
|
||||||
const proOpenFormRef = ref()
|
|
||||||
const matOpenFormRef1 = ref()
|
const matOpenFormRef1 = ref()
|
||||||
|
const proOpenFormRef = ref()
|
||||||
|
const materialOpenFormRef = ref()
|
||||||
|
|
||||||
const openMatForm = () => {
|
const openMatForm = () => {
|
||||||
// if (formData.value.whId == undefined || formData.value.whId == '') {
|
// if (formData.value.whId == undefined || formData.value.whId == '') {
|
||||||
@ -560,6 +565,10 @@ const openMatForm = () => {
|
|||||||
matOpenFormRef.value.open(formData.value.whId,'in')
|
matOpenFormRef.value.open(formData.value.whId,'in')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const openPnForm = () => {
|
||||||
|
materialOpenFormRef.value.open("create")
|
||||||
|
}
|
||||||
// const isPrint = async () => {
|
// const isPrint = async () => {
|
||||||
// var newVar = await StorageApi.isPrint(query.id);
|
// var newVar = await StorageApi.isPrint(query.id);
|
||||||
// console.log(newVar)
|
// console.log(newVar)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user