diff --git a/src/views/firstOrder/components/approvalProcessDialog.vue b/src/views/firstOrder/components/approvalProcessDialog.vue
index ccddb62..002be0f 100644
--- a/src/views/firstOrder/components/approvalProcessDialog.vue
+++ b/src/views/firstOrder/components/approvalProcessDialog.vue
@@ -92,7 +92,7 @@ export default {
margin: 0 auto 0
}
-:deep(.el-dialog__body) {
- height: 300px;
-}
+// :deep(.el-dialog__body) {
+// height: 300px;
+// }
diff --git a/src/views/firstOrder/components/inDialog.vue b/src/views/firstOrder/components/inDialog.vue
index f4b79c0..b4fe825 100644
--- a/src/views/firstOrder/components/inDialog.vue
+++ b/src/views/firstOrder/components/inDialog.vue
@@ -91,16 +91,24 @@
-
- {{ scope.row.theInboundQuantity || 0 }}
+ {{ scope.row.theInboundQuantity === undefined ? 0 : scope.row.theInboundQuantity }}
+
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+
+
-
+
@@ -134,7 +142,7 @@
-
{{ scope.row.theInboundQuantity || 0 }}
@@ -142,7 +150,9 @@
+ @change="syncUnitPrice(scope.row)"
+ v-if='inDialogType != "details" && scope.row.type !== "YH"'>
+ -
{{ scope.row.unitPrice || 0 }}
@@ -174,12 +184,20 @@
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+
@@ -189,6 +207,10 @@
+
+ -
+ {{ scope.row.unitPrice || 0 }}
+ s
@@ -220,11 +242,10 @@
-
-
- {{ scope.row.unitPrice || 0 }}
+ -
+ {{ scope.row.unitPrice || 0 }}
@@ -233,7 +254,8 @@
- {{ scope.row.unitPrice }}
+ -
+ {{ scope.row.unitPrice || 0 }}
@@ -245,7 +267,8 @@
- {{ scope.row.unitPrice || 0 }}
+ -
+ {{ scope.row.unitPrice || 0 }}
@@ -435,6 +458,7 @@ export default {
// const randomNum = Math.floor(Math.random() * 100000000) + 1;
// this.sizeForm.orderNo = String(randomNum).padStart(8, '0');//入库单号
this.sizeForm.inDate = new Date()//入库时间
+ this.sizeForm.inTableData.theInboundQuantity = 0
},
//取消操作
handleCloseDetail() {
@@ -450,7 +474,7 @@ export default {
status: '',//
materialId: '',
materialName: '',
- theInboundQuantity: 1,
+ theInboundQuantity: 0,
unitPrice: 0,
})
} else {
@@ -465,7 +489,7 @@ export default {
status: '',//
materialId: '',
materialName: '',
- theInboundQuantity: 1,
+ theInboundQuantity: 0,
unitPrice: 0,
};
this.sizeForm.singleData.push(newRow);
@@ -564,8 +588,8 @@ export default {
this.$message.error("物资名称不能为空");
return;
}
- if (!row.theInboundQuantity || row.theInboundQuantity <= 0) {
- this.$message.error("本次入库数量必须大于0");
+ if (!row.theInboundQuantity || row.theInboundQuantity < 0) {
+ this.$message.error("本次入库数量不能为空");
return;
}
if (row.unitPrice === undefined || row.unitPrice < 0) {
@@ -594,8 +618,8 @@ export default {
this.$message.error("物资名称不能为空");
return;
}
- if (!row.theInboundQuantity || row.theInboundQuantity <= 0) {
- this.$message.error("本次入库数量必须大于0");
+ if (!row.theInboundQuantity || row.theInboundQuantity < 0) {
+ this.$message.error("本次入库数量不能为空");
return;
}
if (row.unitPrice === undefined || row.unitPrice <= 0) {
@@ -636,7 +660,7 @@ export default {
} else {
this.$message.error(res.data.message || "提交失败");
}
- } catch (error) {
+ } catch (error) {
this.$message.error(error.message || "服务器错误");
}
@@ -653,7 +677,7 @@ export default {
// type类别选择变更
handleTypeChange(row) {
if (row.type === 'YH') {
- // 检查单价是否大于600
+ // row.unitPrice = null;
if (Number(row.unitPrice) > 600) {
this.$confirm('单价大于600元,确定要选择为易耗品吗?', '提示', {
confirmButtonText: '确定',
@@ -681,4 +705,9 @@ export default {
font-weight: 600;
padding: 18px 0;
}
+
+::v-deep .el-table td,
+::v-deep .el-table th {
+ text-align: center !important;
+}
diff --git a/src/views/firstOrder/components/outDialog.vue b/src/views/firstOrder/components/outDialog.vue
index 20a873f..4e014b8 100644
--- a/src/views/firstOrder/components/outDialog.vue
+++ b/src/views/firstOrder/components/outDialog.vue
@@ -39,6 +39,15 @@
+
+
+
+ 易耗品
+ 耐用品
+ 全部
+
+
+
@@ -69,6 +78,11 @@
{{ scope.row.type === "NY" ? "耐用品" : (scope.row.type === "YH" ? "易耗品" : "") }}
+
+
+ {{ scope.row.type === "NY" ? "出库单" : (scope.row.type === "YH" ? "发放单" : "") }}
+
+
@@ -91,17 +105,11 @@
-
-
出库账目表格:
@@ -117,6 +125,11 @@
{{ scope.row.type === "NY" ? "耐用品" : (scope.row.type === "YH" ? "易耗品" : "") }}
+
+
+ {{ scope.row.type === "NY" ? "出库单" : (scope.row.type === "YH" ? "发放单" : "") }}
+
+
@@ -130,14 +143,10 @@
- {{ scope.row.outboundQuantity || 0 }}
-
+ {{ scope.row.outboundQuantity || 0 }}
+
-