|
|
@@ -120,6 +120,18 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="生产要求" prop="productionRequirements">
|
|
|
+ <el-input
|
|
|
+ v-model="formData.productionRequirements"
|
|
|
+ clearable
|
|
|
+ type="textarea"
|
|
|
+ placeholder=""
|
|
|
+ :rows="1"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div class="inbound_details">
|
|
|
@@ -1480,8 +1492,8 @@
|
|
|
// this.formData.extInfo.deliveryPhone = this.$store.state.user.info.phone;
|
|
|
// this.formData.createUserId = this.$store.state.user.info.userId;
|
|
|
// this.formData.extInfo.deptName = this.$store.state.user.info.deptName;
|
|
|
-
|
|
|
- // 入库登记人
|
|
|
+
|
|
|
+ // 入库登记人
|
|
|
// const startUser = this.processInstance?.startUser || {};
|
|
|
const userInfo = this.$store.state.user.info || {};
|
|
|
|
|
|
@@ -1492,9 +1504,8 @@
|
|
|
this.formData.createUserId = this.form.createUserId || userInfo.userId || '';
|
|
|
this.formData.createUserName = this.form.createUserName || userInfo.name || '';
|
|
|
this.formData.extInfo.deptName = this.form.deptName || userInfo.deptName || '';
|
|
|
- this.formData.approvalUserName = this.form.approvalUserName || '';
|
|
|
- this.formData.approvalUserId = this.form.approvalUserId || '';
|
|
|
-
|
|
|
+ this.formData.approvalUserName = this.form.approvalUserName ||userInfo.name;
|
|
|
+ this.formData.approvalUserId = this.form.approvalUserId || userInfo.userId;
|
|
|
// this.formData.extInfo.supplierName = this.form.supplierName;
|
|
|
// this.formData.extInfo.supplierId = this.form.supplierId;
|
|
|
console.log('saleProductList-------------------', this.saleProductList);
|
|
|
@@ -1845,11 +1856,7 @@
|
|
|
}
|
|
|
let packingUnit = item.packingUnit;
|
|
|
let singleWeight = item.singleWeight || 0; // 单重重量
|
|
|
- console.log(
|
|
|
- this.isMoreProduct,
|
|
|
- this.detailList,
|
|
|
- 'this.isMoreProduct'
|
|
|
- );
|
|
|
+
|
|
|
return {
|
|
|
index: this.productList.length + index,
|
|
|
isSave: true,
|
|
|
@@ -1860,7 +1867,7 @@
|
|
|
specification: item.specification, // 规格
|
|
|
brandNum: item.brandNum, // 牌号
|
|
|
batchNo:
|
|
|
- this.bizType == 1
|
|
|
+ this.bizType == 1 || this.bizType == 3
|
|
|
? this.detailList[0]?.batchNo || batchNo
|
|
|
: batchNo, // 批次号
|
|
|
supplierListOptions: supplierList[item.id], // 供应商列表
|
|
|
@@ -1890,8 +1897,8 @@
|
|
|
measureUnit: item.measuringUnit, // 计量单位
|
|
|
measureType: item.measureType, // 计量方式
|
|
|
netWeight: item.netWeight > -1 ? item.netWeight : 0, // 净重
|
|
|
- weight: weight, // 重量
|
|
|
- singleWeight: singleWeight,
|
|
|
+ weight: weight || 0, // 重量
|
|
|
+ singleWeight: singleWeight || 0,
|
|
|
weightUnit: item.weightUnit, // 重量单位
|
|
|
totalMoney: item.totalPrice, // 总价
|
|
|
unitPrice: item.unitPrice, // 单价
|
|
|
@@ -2057,13 +2064,13 @@
|
|
|
packingCodeList[index]?.onlyCode, // 包装编码
|
|
|
packingQuantity: 1, // 包装数量
|
|
|
packingUnit: item.packingUnit, // 单位
|
|
|
- measureQuantity: item.quantity, // 计量数量
|
|
|
- measureUnit: item.measuringUnit, // 计量单位
|
|
|
+ measureQuantity: item.quantity || item.measureQuantity, // 计量数量
|
|
|
+ measureUnit: item.measuringUnit || item.measureUnit, // 计量单位
|
|
|
supplierCode: item.supplierCode,
|
|
|
supplierId: item.supplierId,
|
|
|
supplierName: item.supplierName,
|
|
|
- weight: item.packingWeight, // 重量
|
|
|
- singleWeight: item.singleWeight,
|
|
|
+ weight: item.packingWeight || 0, // 重量
|
|
|
+ singleWeight: item.singleWeight || 0,
|
|
|
pricingWay: item.pricingWay,
|
|
|
weightUnit: item.weightUnit || this.productList[0].weightUnit, // 重量单位
|
|
|
packingSpecificationOption: this.isMoreProduct
|
|
|
@@ -2532,11 +2539,17 @@
|
|
|
},
|
|
|
0
|
|
|
);
|
|
|
- this.$set(this.productList[productIndex], 'weight', totalWeight);
|
|
|
+
|
|
|
+ if (totalWeight != 'NaN') {
|
|
|
+ this.$set(this.productList[productIndex], 'weight', totalWeight);
|
|
|
+ } else {
|
|
|
+ this.$set(this.productList[productIndex], 'weight', 0);
|
|
|
+ }
|
|
|
+
|
|
|
this.$set(
|
|
|
this.productList[productIndex],
|
|
|
'singleWeight',
|
|
|
- totalWeight / this.productList[productIndex].measureQuantity
|
|
|
+ totalWeight / this.productList[productIndex].measureQuantity || 0
|
|
|
);
|
|
|
// 修改拆分物料
|
|
|
// this.materialList.map((item, index) => {
|