回退 编辑页

pull/2/head
qiuhongwu 9 months ago
parent 35f26f57ac
commit ec7b886642

@ -17,8 +17,7 @@
}
.hl-card {
position: relative;
padding-bottom: 100px;
margin: 0px;
border-radius: 10px !important;
.el-card__header {
background-color: #f7f8fa;
@ -35,23 +34,6 @@
font-size: 20px !important;
}
}
.hl-card-scrollable-content {
width: 100%;
box-sizing: border-box;
max-height: calc(100vh - 300px); overflow-y: auto;
}
.hl-footer {
width: 96%;
background-color: #fff;
position: absolute !important;
left: 50%;
height: 100px;
line-height: 100px;
transform: translateX(-51%);
bottom: 0px;
z-index: 1000;
}
}
.borderxx {
border: none !important;
@ -66,7 +48,7 @@
.hl-table thead {
color: #1d2129;
}
.hl-table_header {
.hl-table_header{
color: red;
}
.hl-table thead th.el-table__cell {
@ -106,7 +88,7 @@
border: none !important;
.el-card__header {
padding-bottom: 16px ;
padding: 16px 0px;
background-color: inherit;
.hl-card-info-icona {
@ -124,13 +106,14 @@
.el-card__body {
padding: 15px 0px;
.el-row {
margin: 10px;
}
}
}
.hl-incard {
margin-bottom: 10px;
margin-bottom: 20px;
padding: 0 20px;
}
@ -138,6 +121,9 @@
margin: 10px 0px 10px 0px !important;
}
.hl-footer {
margin: 30px 0;
}
.abstatus {
position: absolute;
right: 80px;
@ -159,6 +145,7 @@
}
}
/* ---el-table滚动条公共样式--- */
.el-scrollbar {
//

@ -4,7 +4,6 @@
<template #header>
<span v-text="dialogTitle"></span>
</template>
<div class="hl-card-scrollable-content" >
<el-form
ref="formRef"
:model="formData"
@ -134,7 +133,7 @@
v-loading="subFormLoading"
label-width="0"
>
<el-table :data="formData.matItemDOList" class="hl-table">
<el-table :data="formData.matItemDOList" class="hl-table" >
<el-table-column prop="cid" label="序号" min-width="80" align="center" fixed />
<el-table-column prop="matId" min-width="140" align="center">
<template #header> <span class="hl-table_header">*</span> 物料编码 </template>
@ -276,7 +275,7 @@
<el-input v-model="scope.row.projectNo" />
</template>
</el-table-column>
<el-table-column prop="description" label="备注" align="center" min-width="180">
<el-table-column prop="description" label="备注" align="center" min-width="180" >
<template #default="scope">
<el-input v-model="scope.row.description" />
</template>
@ -421,7 +420,6 @@
</el-row>
</el-card>
</el-form>
</div>
<div class="text-center hl-footer">
<el-button @click="() => router.go(-1)" size="large"> </el-button>
<el-button
@ -519,9 +517,10 @@ const subFormRules = reactive({
storageOkQty: [{ required: true, message: '入库数量不能为空', trigger: 'blur' }]
})
const handleStatus = async (num) => {
//
await formRef.value.validate()
if (formData.value.matItemDOList.length === 0) {
if(formData.value.matItemDOList.length === 0){
message.alertWarning('请添加物料信息!')
return
}
@ -577,9 +576,10 @@ const handleStatus = async (num) => {
isShowBtnOther.value = false
isShowBtnDelete.value = false
}
query.type = 'update'
query.type= 'update'
query.id = formData.value.id
reload()
}
const userList = ref<UserApi.UserVO[]>([]) //
@ -642,7 +642,7 @@ var commonResult = ''
/** 提交表单 */
const emit = defineEmits(['success']) // success
const saveFormData = async () => {
const saveFormData = async () =>{
//
formLoading.value = true
try {
@ -671,6 +671,7 @@ const saveFormData = async () => {
}
formData.value = await StorageApi.getStorage(storageid.value)
message.success(t(commonResult))
} finally {
formLoading.value = false
}
@ -678,7 +679,7 @@ const saveFormData = async () => {
const submitForm = async () => {
//
await formRef.value.validate()
if (formData.value.matItemDOList.length === 0) {
if(formData.value.matItemDOList.length === 0){
message.alertWarning('请添加物料信息!')
return
}
@ -692,11 +693,11 @@ const submitForm = async () => {
await saveFormData()
//
query.type = 'update'
query.type= 'update'
query.id = storageid.value
formData.value.id = storageid.value
//
reload()
reload();
}
var matCount = 1
@ -865,6 +866,7 @@ onMounted(async () => {
isShowBtnDelete.value = false
}
//
const queryParamsRg = reactive({
pageNo: 1,
@ -928,14 +930,10 @@ onMounted(async () => {
//
userList.value = await UserApi.getSimpleUserList()
})
</script>
<style setup lang="scss">
<style>
a {
color: #409eff;
text-decoration: none;
}
</style>

@ -4,7 +4,6 @@
<template #header>
<span v-text="dialogTitle"></span>
</template>
<div class="hl-card-scrollable-content">
<el-form
ref="formRef"
:model="formData"
@ -168,12 +167,7 @@
</el-form-item>
</template>
</el-table-column>
<el-table-column
prop="matCode"
label="物料编码"
min-width="120"
align="center"
/>
<el-table-column prop="matCode" label="物料编码" min-width="120" align="center" />
<el-table-column prop="matType" label="物料类型" min-width="120" align="center">
<template #default="scope">
<dict-tag
@ -183,12 +177,7 @@
/>
</template>
</el-table-column>
<el-table-column
prop="matSpec"
label="规格/型号"
min-width="120"
align="center"
/>
<el-table-column prop="matSpec" label="规格/型号" min-width="120" align="center" />
<el-table-column prop="matUnit" label="系统单位" min-width="120" align="center">
<template #default="scope">
@ -243,12 +232,7 @@
</el-form-item>
</template>
</el-table-column>
<el-table-column
prop="matRest"
label="库存数量"
min-width="120"
align="center"
/>
<el-table-column prop="matRest" label="库存数量" min-width="120" align="center" />
<el-table-column prop="storageOkQty" min-width="120" align="center">
<template #header> <span class="hl-table_header">*</span>出库数量</template>
<template #default="scope">
@ -408,7 +392,6 @@
</el-row>
</el-card>
</el-form>
</div>
<div class="text-center hl-footer">
<el-button @click="() => router.go(-1)" size="large"> </el-button>
<el-button
@ -506,9 +489,10 @@ const subFormRules = reactive({
storageOkQty: [{ required: true, message: '出库数量不能为空', trigger: 'blur' }]
})
const handleStatus = async (num) => {
//
await formRef.value.validate()
if (formData.value.matItemDOList.length === 0) {
if(formData.value.matItemDOList.length === 0){
message.alertWarning('请添加物料信息!')
return
}
@ -563,7 +547,7 @@ const handleStatus = async (num) => {
isShowBtnDelete.value = false
}
query.id = storageid.value
query.type = 'update'
query.type= 'update'
reload()
}
const userList = ref<UserApi.UserVO[]>([]) //
@ -627,7 +611,7 @@ var commonResult = ''
/** 提交表单 */
const emit = defineEmits(['success']) // success
const saveFormData = async () => {
const saveFormData = async () =>{
//
const matCurrentData = await StorageMatApi.getStorageMatList()
var hasRestNum = true
@ -676,6 +660,9 @@ const saveFormData = async () => {
}
formData.value = await StorageApi.getStorage(storageid.value)
message.success(t(commonResult))
} finally {
formLoading.value = false
}
@ -683,7 +670,7 @@ const saveFormData = async () => {
const submitForm = async () => {
//
await formRef.value.validate()
if (formData.value.matItemDOList.length === 0) {
if(formData.value.matItemDOList.length === 0){
message.alertWarning('请添加物料信息!')
return
}
@ -697,7 +684,7 @@ const submitForm = async () => {
await saveFormData()
//
query.id = storageid.value
query.type = 'update'
query.type= 'update'
reload()
}
@ -725,6 +712,7 @@ const onAddItem = () => {
}
matCount = matCount + 1
formData.value.matItemDOList.push(newData)
} else {
message.alertWarning('请选择出库仓库')
@ -760,14 +748,11 @@ const handleWh = async (wid) => {
let matParams = {
pageNo: 1,
pageSize: 99,
status: '1'
status: "1"
}
const dataMat = await MaterialApi.getMaterialPage(matParams)
matList.value = []
matList.value = dataMat.list.filter(
(item) =>
matLastRemoteData.find((fish) => fish.matId === item.id && fish.whId == wid) !== undefined
)
matList.value = dataMat.list.filter((item) => matLastRemoteData.find((fish) => fish.matId === item.id && fish.whId == wid) !== undefined)
formData.value.matItemDOList = []
// formData.value.matItemDOList.forEach(item => {
@ -807,12 +792,7 @@ const remoteMatCodeSearch = async (name) => {
const dataMat = await MaterialApi.getMaterialPage(matParams)
matList.value = []
matList.value = dataMat.list.filter(
(item) =>
matLastRemoteData.find(
(fish) => fish.matId === item.id && fish.whId == formData.value.whId
) !== undefined
)
matList.value = dataMat.list.filter((item) => matLastRemoteData.find((fish) => fish.matId === item.id && fish.whId == formData.value.whId) !== undefined)
matSelectLoading.value = false
}
@ -882,6 +862,8 @@ onMounted(async () => {
dialogTitle.value = t('action.' + query.type)
dialogTitle.value = query.type === 'review' ? '查看' : dialogTitle.value
//-------------------
const data = await WarehouseApi.getWarehouseSimpList()
warehouseList.value = data

Loading…
Cancel
Save