入库管理页面修改
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label="形态类型" prop="inType"><!--形态类型-->
|
||||
<el-form-item label="形态类型" prop="productType"><!--形态类型-->
|
||||
<el-select v-model="form.productType" placeholder="请选择形态类型" >
|
||||
<el-option
|
||||
v-for="dict in dict.type.product_type"
|
||||
@@ -79,7 +79,7 @@
|
||||
<el-table-column label="规格型号" align="left" prop="spec" />
|
||||
<el-table-column label="生产图号" align="left" prop="cargoNo" />
|
||||
<el-table-column label="单位" align="left" prop="unit" />
|
||||
<el-table-column label="单价" align="left" prop="price" />
|
||||
<!-- <el-table-column label="单价" align="left" prop="price" /> -->
|
||||
<el-table-column label="来源" align="left" prop="spare1" >
|
||||
<template slot-scope="scope">
|
||||
<el-select v-model="scope.row.spare1" placeholder="请选择来源" >
|
||||
@@ -342,6 +342,7 @@ export default {
|
||||
netWeight:0,
|
||||
grossWeight:0,
|
||||
file: undefined,
|
||||
productTpe:undefined,
|
||||
},
|
||||
// 表单校验
|
||||
rules: {
|
||||
@@ -567,6 +568,7 @@ export default {
|
||||
supplierName: undefined,
|
||||
remark: undefined,
|
||||
totalQuantity: 0,
|
||||
productTpe: undefined
|
||||
// totalAmount: 0,
|
||||
};
|
||||
// 清空物料列表
|
||||
@@ -588,58 +590,6 @@ export default {
|
||||
this.$modal.msgError('请添加物料');
|
||||
return;
|
||||
}
|
||||
//校验lotNo productGuid quantity 不能为空
|
||||
for (let i = 0; i < this.productList.length; i++) {
|
||||
const item = this.productList[i];
|
||||
if (!item.spare1) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的型号未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.spare2) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的净重未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.spare3) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的颜色未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.spare4) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的序列号未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.spare5) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的电压未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.spare6) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的功率未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.spare7) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的相位未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.spare8) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的毛重未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.quantity) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的数量未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.lotNo) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的批次号未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.unit) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的机型未填写`);
|
||||
return;
|
||||
}
|
||||
if (!item.spare9) {
|
||||
this.$modal.msgError(`物料编码 ${item.productId} 的分销未填写`);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// 构建请求数据
|
||||
const data = {
|
||||
@@ -648,6 +598,7 @@ export default {
|
||||
remark: this.form.remark,
|
||||
inType:this.form.inType,
|
||||
erpBill:this.form.erpBill,
|
||||
productType:this.form.productType,
|
||||
productVoList: this.productList.map(item => ({
|
||||
productId: item.productId,
|
||||
quantity: item.quantity,
|
||||
|
||||
Reference in New Issue
Block a user