diff --git a/src/router/axios.js b/src/router/axios.js
index f829520..fb4bdf3 100644
--- a/src/router/axios.js
+++ b/src/router/axios.js
@@ -23,7 +23,7 @@ import crypto from '@/util/crypto';
let isErrorShown = false;
//默认超时时间
-axios.defaults.timeout = 10000;
+axios.defaults.timeout = 90000;
//返回其他状态码
axios.defaults.validateStatus = function (status) {
return status >= 200 && status <= 500;
diff --git a/src/views/firstOrder/components/batchSelectionDialog.vue b/src/views/firstOrder/components/batchSelectionDialog.vue
index c7d9c41..fb013e1 100644
--- a/src/views/firstOrder/components/batchSelectionDialog.vue
+++ b/src/views/firstOrder/components/batchSelectionDialog.vue
@@ -94,7 +94,6 @@ export default {
console.log('666666', selection, parentRow)
const maxAllowed = parentRow.applicationQuantity - parentRow.outboundQuantity;
if(selection.length>(parentRow.applicationQuantity-parentRow.outboundQuantity)){
- this.$message.error('勾选数量不能大于申请数量')
const validSelection = selection.slice(0, maxAllowed);
const removedItems = selection.slice(maxAllowed);
const selectionWithParent = validSelection.map(item => ({
@@ -102,6 +101,8 @@ export default {
parentMaterialId: parentRow.materialId,
parentDepartmentName: parentRow.departmentName,
applicationQuantity: parentRow.applicationQuantity,
+ department:parentRow.department,
+ departmentName:parentRow.departmentName,
ldDemandEndId: parentRow.ldDemandEndId,
outboundQuantity: parentRow.outboundQuantity,
}));
@@ -125,6 +126,8 @@ export default {
applicationQuantity: parentRow.applicationQuantity,
ldDemandEndId: parentRow.ldDemandEndId,
outboundQuantity:parentRow.outboundQuantity,
+ department:parentRow.department,
+ departmentName:parentRow.departmentName,
}));
// 先移除当前父行下已勾选的旧数据
diff --git a/src/views/firstOrder/components/outDialog.vue b/src/views/firstOrder/components/outDialog.vue
index 66e2bd5..8483b9c 100644
--- a/src/views/firstOrder/components/outDialog.vue
+++ b/src/views/firstOrder/components/outDialog.vue
@@ -580,7 +580,6 @@ export default {
item.materialCode === stat.materialCode &&
item.materialName === stat.materialName
);
- console.log(898989, detailList);
detail.theOutboundQuantity = detailList.reduce(
(acc, cur) => acc + cur.num,
0
@@ -911,6 +910,15 @@ export default {
}
}
}
+ if(this.sizeForm.options==2 ){
+ console.log(898989,'易耗是否选择部门!')
+ const invalidRow = this.sizeForm.inTableData.find(row => !row.department);
+ if (invalidRow) {
+ this.$message.error("存在未选择部门的物资,请补充完整");
+ return;
+ }
+
+ }
// status == 1 暂存 ,2提交
this.sizeForm.status = index;
this.sizeForm.ldOneOutStorageDetailVOList = this.sizeForm.inTableData;
diff --git a/src/views/firstOrder/inbound.vue b/src/views/firstOrder/inbound.vue
index 2e9ae2e..171d422 100644
--- a/src/views/firstOrder/inbound.vue
+++ b/src/views/firstOrder/inbound.vue
@@ -156,12 +156,12 @@ export default {
label: "入库日期",
prop: "inDate",
search: true,
- type: "datetime",
+ type: "date",
searchRange: true,
startPlaceholder: "开始时间",
endPlaceholder: "结束时间",
- format: "yyyy-MM-dd HH:mm:ss",
- valueFormat: "yyyy-MM-dd HH:mm:ss",
+ format: "yyyy-MM-dd HH:mm",
+ valueFormat: "yyyy-MM-dd HH:mm",
width: 160,
align: "center",
// searchParam: 'startTime',
@@ -354,8 +354,8 @@ export default {
pageNum: page.currentPage,
};
if (queryParams.inDate && Array.isArray(queryParams.inDate)) {
- queryParams.startTime = queryParams.inDate[0];
- queryParams.endTime = queryParams.inDate[1];
+ queryParams.startTime = queryParams.inDate[0]+":00";
+ queryParams.endTime = queryParams.inDate[1]+":59";
delete queryParams.inDate;
}
getList(page.currentPage, page.pageSize, queryParams).then((res) => {
diff --git a/src/views/firstOrder/outbound.vue b/src/views/firstOrder/outbound.vue
index 09938b3..a9d7317 100644
--- a/src/views/firstOrder/outbound.vue
+++ b/src/views/firstOrder/outbound.vue
@@ -45,7 +45,16 @@
@click.stop="handleEdit(scope.row)"
>编辑
+ 删除
+