编码盘点入库
This commit is contained in:
parent
3478b57bd8
commit
2cba276c88
|
|
@ -157,7 +157,7 @@
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="title"
|
:title="title"
|
||||||
:visible.sync="codeOpen"
|
:visible.sync="codeOpen"
|
||||||
width="1450px"
|
width="90%"
|
||||||
append-to-body
|
append-to-body
|
||||||
:show-close="false"
|
:show-close="false"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
|
|
@ -205,7 +205,7 @@
|
||||||
:min="1"
|
:min="1"
|
||||||
:max="99"
|
:max="99"
|
||||||
:controls="false"
|
:controls="false"
|
||||||
style="width: 220px;"
|
style="width: 13vw;"
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -257,7 +257,7 @@
|
||||||
clearable
|
clearable
|
||||||
:min="0"
|
:min="0"
|
||||||
:controls="false"
|
:controls="false"
|
||||||
style="width: 220px"
|
style="width: 13vw;"
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -283,23 +283,23 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="10">
|
||||||
<el-form-item label="检修时间" label-width="130px" prop="thisCheckFixTime">
|
<el-form-item label="检验时间" label-width="130px" prop="thisCheckFixTime">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="codeForm.thisCheckFixTime"
|
v-model="codeForm.thisCheckFixTime"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请输入检修时间"
|
placeholder="请输入检验时间"
|
||||||
style="width: 400px"
|
style="width: 400px"
|
||||||
@keyup.enter.native="handleQuery">
|
@keyup.enter.native="handleQuery">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
<el-form-item label="下次检修时间" label-width="130px" prop="nextCheckFixTime">
|
<el-form-item label="下次检验时间" label-width="130px" prop="nextCheckFixTime">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="codeForm.nextCheckFixTime"
|
v-model="codeForm.nextCheckFixTime"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请输入检修时间"
|
placeholder="请输入检验时间"
|
||||||
style="width: 220px"
|
style="width: 13vw;"
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -307,8 +307,13 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
|
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
|
<el-form-item label="检验人" label-width="130px" prop="checkMan">
|
||||||
|
<el-input v-model="codeForm.checkMan" placeholder="请输入检验人" clearable style="width: 220px;" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="10">
|
||||||
<el-form-item label="备注" label-width="130px" prop="remarks">
|
<el-form-item label="备注" label-width="130px" prop="remarks">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="codeForm.remarks"
|
v-model="codeForm.remarks"
|
||||||
|
|
@ -317,12 +322,12 @@
|
||||||
maxlength="200"
|
maxlength="200"
|
||||||
rows="4"
|
rows="4"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
style="width: 220px"
|
style="width: 400px"
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="7">
|
||||||
<el-form-item style="margin-left: 200px;">
|
<el-form-item style="margin-left: 200px;">
|
||||||
<el-button type="primary" icon="el-icon-edit" size="mini" @click="fillCodeForm">点击填充</el-button>
|
<el-button type="primary" icon="el-icon-edit" size="mini" @click="fillCodeForm">点击填充</el-button>
|
||||||
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> -->
|
<!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> -->
|
||||||
|
|
@ -385,24 +390,24 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="检修日期" align="center" prop="thisCheckFixTime" :show-overflow-tooltip="true">
|
<el-table-column label="检验日期" align="center" prop="thisCheckFixTime" :show-overflow-tooltip="true">
|
||||||
<template v-slot:default="{ row }">
|
<template v-slot:default="{ row }">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="row.thisCheckFixTime"
|
v-model="row.thisCheckFixTime"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请输入检修时间"
|
placeholder="请输入检验时间"
|
||||||
style="width: 160px"
|
style="width: 170px"
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="下次检修日期" align="center" prop="nextCheckFixTime" :show-overflow-tooltip="true">
|
<el-table-column label="下次检验日期" align="center" prop="nextCheckFixTime" :show-overflow-tooltip="true">
|
||||||
<template v-slot:default="{ row }">
|
<template v-slot:default="{ row }">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="row.nextCheckFixTime"
|
v-model="row.nextCheckFixTime"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请输入下次检修时间"
|
placeholder="请输入下次检验时间"
|
||||||
style="width: 160px"
|
style="width: 170px"
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
></el-date-picker>
|
></el-date-picker>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -556,6 +561,7 @@ export default {
|
||||||
// 表单参数:编号表单 / 数量表单
|
// 表单参数:编号表单 / 数量表单
|
||||||
numberForm: {},
|
numberForm: {},
|
||||||
codeForm: {
|
codeForm: {
|
||||||
|
checkMan: undefined,
|
||||||
putInType: undefined,
|
putInType: undefined,
|
||||||
remarks: undefined,
|
remarks: undefined,
|
||||||
typeId: undefined,
|
typeId: undefined,
|
||||||
|
|
@ -652,6 +658,7 @@ export default {
|
||||||
// 编码表单重置
|
// 编码表单重置
|
||||||
resetCodeForm() {
|
resetCodeForm() {
|
||||||
this.codeForm = {
|
this.codeForm = {
|
||||||
|
checkMan: undefined,
|
||||||
putInType: undefined,
|
putInType: undefined,
|
||||||
remarks: undefined,
|
remarks: undefined,
|
||||||
typeId: undefined,
|
typeId: undefined,
|
||||||
|
|
@ -691,10 +698,10 @@ export default {
|
||||||
const outFacCode = ''
|
const outFacCode = ''
|
||||||
// 生产厂家
|
// 生产厂家
|
||||||
const maVender = this.supplierList.find(item => item.supplierId == this.codeForm.codeFactory)?.supplier || ''
|
const maVender = this.supplierList.find(item => item.supplierId == this.codeForm.codeFactory)?.supplier || ''
|
||||||
// 检修日期: codeForm.thisCheckFixTime, 时间格式为 yyyy-MM-dd
|
// 检验日期: codeForm.thisCheckFixTime, 时间格式为 yyyy-MM-dd
|
||||||
let thisCheckFixTime = new Date(this.codeForm.thisCheckFixTime).toLocaleDateString('zh-CN', {year: 'numeric', month: '2-digit', day: '2-digit'}).replace(/\//g, '-')
|
let thisCheckFixTime = new Date(this.codeForm.thisCheckFixTime).toLocaleDateString('zh-CN', {year: 'numeric', month: '2-digit', day: '2-digit'}).replace(/\//g, '-')
|
||||||
if (thisCheckFixTime == 'Invalid Date') thisCheckFixTime = ''
|
if (thisCheckFixTime == 'Invalid Date') thisCheckFixTime = ''
|
||||||
// 下次检修日期: codeForm.nextCheckFixTime
|
// 下次检验日期: codeForm.nextCheckFixTime
|
||||||
let nextCheckFixTime = new Date(this.codeForm.nextCheckFixTime).toLocaleDateString('zh-CN', {year: 'numeric', month: '2-digit', day: '2-digit'}).replace(/\//g, '-')
|
let nextCheckFixTime = new Date(this.codeForm.nextCheckFixTime).toLocaleDateString('zh-CN', {year: 'numeric', month: '2-digit', day: '2-digit'}).replace(/\//g, '-')
|
||||||
if (nextCheckFixTime == 'Invalid Date') nextCheckFixTime = ''
|
if (nextCheckFixTime == 'Invalid Date') nextCheckFixTime = ''
|
||||||
// 单价: codeForm.buyPrice
|
// 单价: codeForm.buyPrice
|
||||||
|
|
@ -775,7 +782,8 @@ export default {
|
||||||
typeId: this.codeForm.typeId,
|
typeId: this.codeForm.typeId,
|
||||||
num: this.codeForm.num,
|
num: this.codeForm.num,
|
||||||
remarks: this.codeForm.remarks || '',
|
remarks: this.codeForm.remarks || '',
|
||||||
machIneDtoList: this.codeTableList
|
machIneDtoList: this.codeTableList,
|
||||||
|
checkMan: this.codeForm.checkMan || '',
|
||||||
}
|
}
|
||||||
console.log('🚀 ~ submitForm: ~ SavePutInfoDto', SavePutInfoDto)
|
console.log('🚀 ~ submitForm: ~ SavePutInfoDto', SavePutInfoDto)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue