|
@@ -11,9 +11,9 @@
|
|
</byTable>
|
|
</byTable>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <el-dialog title="手动入库" v-if="dialogVisible" v-model="dialogVisible" width="1300" v-loading="loadingDialog">
|
|
|
|
|
|
+ <el-dialog title="手动入库" v-if="dialogVisible" v-model="dialogVisible" width="90%" v-loading="loadingDialog">
|
|
<div style="width:100%;display:flex">
|
|
<div style="width:100%;display:flex">
|
|
- <div style="flex:1;overflow:auto;height:calc(100vh - 270px)">
|
|
|
|
|
|
+ <div style="width:55%;overflow:auto;height:calc(100vh - 220px)">
|
|
<byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="submit">
|
|
<byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="submit">
|
|
<template #workOrderId>
|
|
<template #workOrderId>
|
|
<div style="width: 100%">
|
|
<div style="width: 100%">
|
|
@@ -24,21 +24,10 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
- <template #detailsOne>
|
|
|
|
|
|
+ <!-- <template #detailsOne>
|
|
<div style="width: 100%">
|
|
<div style="width: 100%">
|
|
<el-table :data="summaryList" show-summary :summary-method="getSummaries">
|
|
<el-table :data="summaryList" show-summary :summary-method="getSummaries">
|
|
<el-table-column type="index" width="60" align="center" />
|
|
<el-table-column type="index" width="60" align="center" />
|
|
- <!-- <el-table-column label="是否扫码" width="80">
|
|
|
|
- <template #default="{ row, $index }">
|
|
|
|
- <div>
|
|
|
|
- <span style="padding: 4px" :class="[row.isScan == 1 ? 'active' : 'disActive']">
|
|
|
|
- {{
|
|
|
|
- proxy.dictValueLabel(row.isScan, scanData)
|
|
|
|
- }}
|
|
|
|
- </span>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column> -->
|
|
|
|
<el-table-column prop="productCode" label="产品编码" width="140" />
|
|
<el-table-column prop="productCode" label="产品编码" width="140" />
|
|
<el-table-column prop="productName" label="产品名称" min-width="160" />
|
|
<el-table-column prop="productName" label="产品名称" min-width="160" />
|
|
<el-table-column prop="productSpec" label="规格型号" width="120" />
|
|
<el-table-column prop="productSpec" label="规格型号" width="120" />
|
|
@@ -49,7 +38,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
- </template>
|
|
|
|
|
|
+ </template> -->
|
|
|
|
|
|
<template #details>
|
|
<template #details>
|
|
<div style="width: 100%">
|
|
<div style="width: 100%">
|
|
@@ -68,12 +57,12 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="productCode" label="产品编码" width="140" />
|
|
<el-table-column prop="productCode" label="产品编码" width="140" />
|
|
- <el-table-column prop="productName" label="产品名称" min-width="160" />
|
|
|
|
|
|
+ <el-table-column prop="productName" label="产品名称" min-width="150" />
|
|
<el-table-column prop="productSpec" label="规格型号" width="120" />
|
|
<el-table-column prop="productSpec" label="规格型号" width="120" />
|
|
- <el-table-column prop="productUnit" label="单位" width="80" :formatter="
|
|
|
|
|
|
+ <!-- <el-table-column prop="productUnit" label="单位" width="80" :formatter="
|
|
(row) => dictValueLabel(row.productUnit, productUnit)
|
|
(row) => dictValueLabel(row.productUnit, productUnit)
|
|
- " />
|
|
|
|
- <el-table-column label="入库数量" width="160" prop="quantity">
|
|
|
|
|
|
+ " /> -->
|
|
|
|
+ <el-table-column label="入库数量" width="110" prop="quantity">
|
|
<template #default="{ row, $index }">
|
|
<template #default="{ row, $index }">
|
|
<div style="width: 100%">
|
|
<div style="width: 100%">
|
|
<el-form-item :prop="'list.' + $index + '.quantity'" :rules="rules.quantity" :inline-message="true">
|
|
<el-form-item :prop="'list.' + $index + '.quantity'" :rules="rules.quantity" :inline-message="true">
|
|
@@ -93,16 +82,33 @@
|
|
</template>
|
|
</template>
|
|
</byForm>
|
|
</byForm>
|
|
</div>
|
|
</div>
|
|
- <div style="width:300px;margin-left:20px">
|
|
|
|
|
|
+ <div style="width:45%;margin-left:20px;height:calc(100vh - 220px)">
|
|
<el-card class="box-card" style="height:100%;position: relative;">
|
|
<el-card class="box-card" style="height:100%;position: relative;">
|
|
- <div class="box">
|
|
|
|
- <img src="@/assets/images/scanz.png" class="img" v-if="!isScan" />
|
|
|
|
- <img src="@/assets/images/scaning.gif" class="img" v-if="isScan" />
|
|
|
|
- <div class="titlea" @click.stop="handleClickScan">
|
|
|
|
- {{btnTitle}}
|
|
|
|
|
|
+ <div style="height:100%">
|
|
|
|
+ <div style="height:260px"></div>
|
|
|
|
+ <div class="box">
|
|
|
|
+ <img src="@/assets/images/scanz.png" class="img" v-if="!isScan" />
|
|
|
|
+ <img src="@/assets/images/scaning.gif" class="img" v-if="isScan" />
|
|
|
|
+ <div class="titlea" @click.stop="handleClickScan">
|
|
|
|
+ {{btnTitle}}
|
|
|
|
+ </div>
|
|
|
|
+ <el-input v-model="scanValue" type="password" :disabled="!isScan" ref="scanInput" @change="handleScanValueChange"
|
|
|
|
+ @blur="handleScanBlur" class="input" autocomplete="off" />
|
|
|
|
+ </div>
|
|
|
|
+ <div style="font-weight:700;font-size:14px;margin-bottom:10px">
|
|
|
|
+ 汇总明细:
|
|
|
|
+ </div>
|
|
|
|
+ <div style="width: 100%;height:calc(100% - 240px);overflow:auto">
|
|
|
|
+
|
|
|
|
+ <el-table :data="summaryList">
|
|
|
|
+ <el-table-column type="index" width="40" align="center" />
|
|
|
|
+ <el-table-column prop="productCode" label="产品编码" width="140" />
|
|
|
|
+ <el-table-column prop="productName" label="产品名称" />
|
|
|
|
+ <el-table-column prop="productSpec" label="规格型号" width="120" />
|
|
|
|
+ <el-table-column label="入库数量" width="80" prop="quantity">
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
</div>
|
|
</div>
|
|
- <el-input v-model="scanValue" type="password" :disabled="!isScan" ref="scanInput" @change="handleScanValueChange" @blur="handleScanBlur"
|
|
|
|
- class="input" autocomplete="off" />
|
|
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
</div>
|
|
</div>
|
|
@@ -294,11 +300,11 @@ const formConfig = computed(() => {
|
|
slotName: "workOrderId",
|
|
slotName: "workOrderId",
|
|
label: "绑定工单",
|
|
label: "绑定工单",
|
|
},
|
|
},
|
|
- {
|
|
|
|
- type: "slot",
|
|
|
|
- slotName: "detailsOne",
|
|
|
|
- label: "汇总明细",
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // type: "slot",
|
|
|
|
+ // slotName: "detailsOne",
|
|
|
|
+ // label: "汇总明细",
|
|
|
|
+ // },
|
|
{
|
|
{
|
|
type: "slot",
|
|
type: "slot",
|
|
slotName: "details",
|
|
slotName: "details",
|
|
@@ -556,8 +562,11 @@ const getSummaries = (param) => {
|
|
}
|
|
}
|
|
.box {
|
|
.box {
|
|
position: absolute;
|
|
position: absolute;
|
|
- top: 50%;
|
|
|
|
- transform: translate(0, -50%);
|
|
|
|
|
|
+ // top: 50%;
|
|
|
|
+ // transform: translate(0, -50%);
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translate(-50%, 0);
|
|
.img {
|
|
.img {
|
|
width: 260px;
|
|
width: 260px;
|
|
height: 260px;
|
|
height: 260px;
|
|
@@ -594,4 +603,7 @@ const getSummaries = (param) => {
|
|
color: #fff;
|
|
color: #fff;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
+:deep(.el-card__body) {
|
|
|
|
+ height: 100% !important;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|