diff --git a/src/views/inventory/addCountOrder.vue b/src/views/inventory/addCountOrder.vue
index 5a7bdb4..13d1c74 100644
--- a/src/views/inventory/addCountOrder.vue
+++ b/src/views/inventory/addCountOrder.vue
@@ -156,9 +156,9 @@
-
-
@@ -232,7 +232,6 @@
{{ (scope.row.inCount - scope.row.outCount) }}
-
{
if (valid) {
- saveCountOrder(this.formData).then((res) => {
+ if (this.codeArray.length === 0) {
+ this.$message.error("请选择盘点产品");
+ return;
+ }
+
+ let invProductList = [];
+ this.codeArray.forEach(product => {
+ invProductList.push(product);
+ });
+
+ let orderData = {
+ invCountOrder: {
+ createTime: this.formData.billDate,
+ invStorageCode: this.formData.locStorageCode,
+ invWarehouseCode: this.formData.invWarehouseCode,
+ invSpaceCode: this.formData.invSpaceCode
+ },
+ invProductList: invProductList
+ };
+
+ saveCountOrder(orderData).then((res) => {
if (res.code === 20000) {
this.$message.success("保存成功");
this.closeDialog();
} else {
this.$message.error(res.data.message);
}
- })
+ });
}
})
},
@@ -400,7 +418,7 @@ export default {
productName: product.cpmctymc,
spce: product.ggxh,
batchNo: product.batchNo,
- produceDate: product.productionDate,
+ productDate: product.productionDate,
expireDate: product.expireDate,
zczbhhzbapzbh: null,
ylqxzcrbarmc: null,
diff --git a/src/views/inventory/invCountOrderNew.vue b/src/views/inventory/invCountOrderNew.vue
index 02889e5..dcbd3d6 100644
--- a/src/views/inventory/invCountOrderNew.vue
+++ b/src/views/inventory/invCountOrderNew.vue
@@ -73,6 +73,14 @@
+ 盘点
+
+