add:添加出库单主表源单编码
This commit is contained in:
@@ -48,6 +48,9 @@
|
||||
<el-form-item label="源单类型" prop="source_form_type">
|
||||
<el-input v-model="form.source_form_type" clearable style="width: 150px"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="源单编码" prop="source_form_code">
|
||||
<el-input v-model="form.source_form_code" clearable style="width: 150px"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="源单id" prop="source_form_id">
|
||||
<el-input v-model="form.source_form_id" clearable style="width: 150px"/>
|
||||
</el-form-item>
|
||||
@@ -152,6 +155,11 @@
|
||||
<el-input v-model="tableData[scope.$index].source_form_type" class="input-with-select"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_code" label="源单编码" width="190" align="center">
|
||||
<template scope="scope">
|
||||
<el-input v-model="tableData[scope.$index].source_form_code" class="input-with-select"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_type" label="源单id" width="190" align="center">
|
||||
<template scope="scope">
|
||||
<el-input v-model="tableData[scope.$index].source_form_id" class="input-with-select"/>
|
||||
@@ -213,6 +221,7 @@ const defaultForm = {
|
||||
product_area: '',
|
||||
source_form_type: '',
|
||||
source_form_id: '',
|
||||
source_form_code: '',
|
||||
source_form_date: '',
|
||||
create_name: '',
|
||||
create_time: '',
|
||||
@@ -353,6 +362,7 @@ export default {
|
||||
data.single_weight = row.single_weight
|
||||
data.source_form_type = ''
|
||||
data.source_form_id = ''
|
||||
data.source_form_code = ''
|
||||
data.unit_id = row.unit_id
|
||||
data.form_data = {}
|
||||
this.dtlCols.forEach(a => {
|
||||
@@ -370,6 +380,7 @@ export default {
|
||||
let rows = [];
|
||||
this.form.source_form_type = mst.form_type
|
||||
this.form.source_form_id = mst.id
|
||||
this.form.source_form_code = mst.code
|
||||
let mst_form_data = mst.form_data;
|
||||
if (data['item'] == null || data['item'].length == 0) {
|
||||
rows.push(mst)
|
||||
@@ -392,6 +403,7 @@ export default {
|
||||
data.source_form_type = row.form_type
|
||||
data.single_weight = row.single_weight
|
||||
data.source_form_id = row.id
|
||||
data.source_form_code = row.code
|
||||
data.unit_id = row.unit_id
|
||||
data.form_data = {}
|
||||
let fowFormData = row.form_data;
|
||||
|
||||
@@ -20,6 +20,14 @@
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="源单号">
|
||||
<el-input
|
||||
v-model="query.source_form_code"
|
||||
size="mini"
|
||||
clearable
|
||||
placeholder="源单号"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据类型">
|
||||
<el-select
|
||||
v-model="query.bill_type"
|
||||
@@ -141,7 +149,8 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_type" min-width="120" label="源单类型"/>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_id" label="源单编码" min-width="155"/>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_code" label="源单编码" min-width="155"/>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_id" label="源单id" min-width="155"/>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_date" label="源单时间" min-width="140"/>
|
||||
<el-table-column v-for="(item, index) in cols" :key="item.value" :label="item.lable">
|
||||
<template slot-scope="scope">{{ scope.row.form_data[item.value] }}</template>
|
||||
@@ -189,6 +198,7 @@ const defaultForm = {
|
||||
product_area: '',
|
||||
source_form_type: '',
|
||||
source_form_id: '',
|
||||
source_form_code: '',
|
||||
source_form_date: '',
|
||||
create_name: '',
|
||||
create_time: '',
|
||||
|
||||
@@ -46,6 +46,9 @@
|
||||
<el-form-item label="源单类型" prop="source_form_type">
|
||||
<el-input v-model="form.source_form_type" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="源单编码" prop="source_form_id">
|
||||
<el-input v-model="form.source_form_code" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="源单id" prop="source_form_id">
|
||||
<el-input v-model="form.source_form_id" clearable style="width: 150px" />
|
||||
</el-form-item>
|
||||
@@ -184,6 +187,11 @@
|
||||
<el-input v-model="tableData[scope.$index].source_form_type" class="input-with-select" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_code" label="源单编码" width="190" align="center">
|
||||
<template scope="scope">
|
||||
<el-input v-model="tableData[scope.$index].source_form_code" class="input-with-select" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_type" label="源单id" width="190" align="center">
|
||||
<template scope="scope">
|
||||
<el-input v-model="tableData[scope.$index].source_form_id" class="input-with-select" />
|
||||
@@ -393,10 +401,6 @@ export default {
|
||||
this.crud.notify('仓库不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return false
|
||||
}
|
||||
if (!itemDtl.pcsn) {
|
||||
this.crud.notify('物料批次不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return false
|
||||
}
|
||||
if (!itemDtl.qty) {
|
||||
this.crud.notify('物料出库数量不能为空', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
return false
|
||||
@@ -420,6 +424,8 @@ export default {
|
||||
data.source_form_type = ''
|
||||
data.source_form_id = ''
|
||||
data.source_form_code = ''
|
||||
data.product_area = this.form.product_area
|
||||
data.stor_code = this.form.stor_code
|
||||
data.unit_id = row.unit_id
|
||||
data.form_data = {}
|
||||
this.dtlCols.forEach(a => {
|
||||
@@ -462,6 +468,7 @@ export default {
|
||||
data.material_spec = row.material_spec
|
||||
data.single_weight = row.single_weight
|
||||
data.product_area = this.form.product_area
|
||||
data.stor_code = this.form.stor_code
|
||||
data.source_form_type = row.form_type
|
||||
data.source_form_id = row.id
|
||||
data.source_form_code = row.code
|
||||
|
||||
@@ -20,6 +20,14 @@
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="源单号">
|
||||
<el-input
|
||||
v-model="query.source_form_code"
|
||||
size="mini"
|
||||
clearable
|
||||
placeholder="单据号"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="单据类型">
|
||||
<el-select
|
||||
v-model="query.bill_type"
|
||||
@@ -141,7 +149,8 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column show-overflow-tooltip prop="source_form_type" min-width="120" label="源单类型" />
|
||||
<el-table-column show-overflow-tooltip prop="source_form_id" label="源单编码" min-width="155" />
|
||||
<el-table-column show-overflow-tooltip prop="source_form_code" label="源单编码" min-width="155" />
|
||||
<el-table-column show-overflow-tooltip prop="source_form_id" label="源单id" min-width="155" />
|
||||
<el-table-column show-overflow-tooltip prop="source_form_date" label="源单时间" min-width="140" />
|
||||
<el-table-column v-for="(item, index) in cols" :key="item.value" :label="item.lable" >
|
||||
<template slot-scope="scope">{{scope.row.form_data[item.value]}}</template>
|
||||
|
||||
Reference in New Issue
Block a user