|
|
|
@ -199,7 +199,7 @@ |
|
|
|
<el-table-column prop="theOutboundQuantity" label="本次出库数量"> |
|
|
|
<el-table-column prop="theOutboundQuantity" label="本次出库数量"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div v-if="outDialogType != 'details'"> |
|
|
|
<div v-if="outDialogType != 'details'"> |
|
|
|
<el-input-number |
|
|
|
<el-input-number |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
v-model="scope.row.theOutboundQuantity" |
|
|
|
v-model="scope.row.theOutboundQuantity" |
|
|
|
:min="0" |
|
|
|
:min="0" |
|
|
|
@ -208,13 +208,12 @@ |
|
|
|
:disabled="outDialogType == 'details'" |
|
|
|
:disabled="outDialogType == 'details'" |
|
|
|
v-if=" |
|
|
|
v-if=" |
|
|
|
sizeForm.optionType === 'YH' || |
|
|
|
sizeForm.optionType === 'YH' || |
|
|
|
(sizeForm.options==1&&inBatchForm.optionType === 'YH') |
|
|
|
(sizeForm.options == 1 && inBatchForm.optionType === 'YH') |
|
|
|
" |
|
|
|
" |
|
|
|
></el-input-number> |
|
|
|
></el-input-number> |
|
|
|
<span v-else>{{scope.row.outboundQuantity}}</span> |
|
|
|
<span v-else>{{ scope.row.outboundQuantity }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span v-else>{{scope.row.outboundQuantity}}</span> |
|
|
|
<span v-else>{{ scope.row.outboundQuantity }}</span> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
<el-table-column |
|
|
|
@ -224,13 +223,13 @@ |
|
|
|
v-if="outDialogType != 'details'" |
|
|
|
v-if="outDialogType != 'details'" |
|
|
|
> |
|
|
|
> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
size="mini" |
|
|
|
size="mini" |
|
|
|
@click="handleDelete(scope.$index, scope.row)" |
|
|
|
@click="handleDelete(scope.$index, scope.row)" |
|
|
|
> |
|
|
|
> |
|
|
|
删除 |
|
|
|
删除 |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
@ -380,7 +379,6 @@ |
|
|
|
<el-radio-group |
|
|
|
<el-radio-group |
|
|
|
v-model="inBatchForm.optionType" |
|
|
|
v-model="inBatchForm.optionType" |
|
|
|
:disabled="outDialogType == 'details'" |
|
|
|
:disabled="outDialogType == 'details'" |
|
|
|
|
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<el-radio label="YH">易耗品</el-radio> |
|
|
|
<el-radio label="YH">易耗品</el-radio> |
|
|
|
<el-radio label="NY">耐用品</el-radio> |
|
|
|
<el-radio label="NY">耐用品</el-radio> |
|
|
|
@ -433,6 +431,8 @@ import { |
|
|
|
import consumableDialog from "./consumableDialog.vue"; |
|
|
|
import consumableDialog from "./consumableDialog.vue"; |
|
|
|
import batchSelectionDialog from "./batchSelectionDialog.vue"; |
|
|
|
import batchSelectionDialog from "./batchSelectionDialog.vue"; |
|
|
|
import { getStatistics } from "@/api/firstOrder/inbound"; |
|
|
|
import { getStatistics } from "@/api/firstOrder/inbound"; |
|
|
|
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
|
consumableDialog, |
|
|
|
consumableDialog, |
|
|
|
@ -487,12 +487,7 @@ export default { |
|
|
|
materialType: "1", //物资类型 |
|
|
|
materialType: "1", //物资类型 |
|
|
|
status: "", //1暂存 2提交 |
|
|
|
status: "", //1暂存 2提交 |
|
|
|
// materialld: '',//物资Id |
|
|
|
// materialld: '',//物资Id |
|
|
|
userInfoVO: { |
|
|
|
userInfoVO: {}, |
|
|
|
userId: "用户ID", |
|
|
|
|
|
|
|
name: "用户名称", |
|
|
|
|
|
|
|
mainErDepartment: "1", |
|
|
|
|
|
|
|
mainErDepartmentName: "主管部门名称", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// inTableData: [], |
|
|
|
// inTableData: [], |
|
|
|
inBatchDialogVisible: false, //选择采购单的数据 |
|
|
|
inBatchDialogVisible: false, //选择采购单的数据 |
|
|
|
@ -508,6 +503,7 @@ export default { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
|
|
|
|
...mapGetters(["userInfo"]), |
|
|
|
outDate() { |
|
|
|
outDate() { |
|
|
|
const now = new Date(); |
|
|
|
const now = new Date(); |
|
|
|
const year = now.getFullYear(); |
|
|
|
const year = now.getFullYear(); |
|
|
|
@ -524,6 +520,7 @@ export default { |
|
|
|
this.inInit(); |
|
|
|
this.inInit(); |
|
|
|
} |
|
|
|
} |
|
|
|
this.getDetailedItems(); |
|
|
|
this.getDetailedItems(); |
|
|
|
|
|
|
|
this.sizeForm.userInfoVO = this.userInfo; |
|
|
|
// this.getMaterialList() |
|
|
|
// this.getMaterialList() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
@ -572,15 +569,18 @@ export default { |
|
|
|
// |
|
|
|
// |
|
|
|
if ( |
|
|
|
if ( |
|
|
|
(this.sizeForm.options == 1 && |
|
|
|
(this.sizeForm.options == 1 && |
|
|
|
this.inBatchForm.optionType == "NY")||(this.sizeForm.options == 2 && |
|
|
|
this.inBatchForm.optionType == "NY") || |
|
|
|
this.sizeForm.optionType == "NY") |
|
|
|
(this.sizeForm.options == 2 && this.sizeForm.optionType == "NY") |
|
|
|
) { |
|
|
|
) { |
|
|
|
const detailList = this.sizeForm.inTableData.filter( |
|
|
|
const detailList = this.sizeForm.inTableData.filter( |
|
|
|
(item) => |
|
|
|
(item) => |
|
|
|
item.materialCode === stat.materialCode && |
|
|
|
item.materialCode === stat.materialCode && |
|
|
|
item.materialName === stat.materialName |
|
|
|
item.materialName === stat.materialName |
|
|
|
); |
|
|
|
); |
|
|
|
detail.theOutboundQuantity = detailList.reduce((acc, cur) => acc + cur.num, 0); |
|
|
|
detail.theOutboundQuantity = detailList.reduce( |
|
|
|
|
|
|
|
(acc, cur) => acc + cur.num, |
|
|
|
|
|
|
|
0 |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
@ -947,8 +947,11 @@ export default { |
|
|
|
this.sizeForm.outDate = ldOneOutStorage.outDate; |
|
|
|
this.sizeForm.outDate = ldOneOutStorage.outDate; |
|
|
|
this.sizeForm.options = Number(ldOneOutStorage.options); |
|
|
|
this.sizeForm.options = Number(ldOneOutStorage.options); |
|
|
|
this.sizeForm.optionType = ldOneOutStorage.optionType; |
|
|
|
this.sizeForm.optionType = ldOneOutStorage.optionType; |
|
|
|
this.batchSelectionVisible = false |
|
|
|
this.batchSelectionVisible = false; |
|
|
|
console.log( res.data.result.ldOneOutStorageDetails, "this.sizeForm.options"); |
|
|
|
console.log( |
|
|
|
|
|
|
|
res.data.result.ldOneOutStorageDetails, |
|
|
|
|
|
|
|
"this.sizeForm.options" |
|
|
|
|
|
|
|
); |
|
|
|
this.$set( |
|
|
|
this.$set( |
|
|
|
this.sizeForm, |
|
|
|
this.sizeForm, |
|
|
|
"inTableData", |
|
|
|
"inTableData", |
|
|
|
@ -1019,7 +1022,7 @@ export default { |
|
|
|
padding-right: 10px; |
|
|
|
padding-right: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
::v-deep.el-table th.el-table__cell { |
|
|
|
::v-deep.el-table th.el-table__cell { |
|
|
|
background: #F5F7FA; |
|
|
|
background: #f5f7fa; |
|
|
|
font-weight: 500; |
|
|
|
font-weight: 500; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|
|