diff --git a/src/api/Inventory/PartOut.js b/src/api/Inventory/PartOut.js
index 1ef3d858..b68ee094 100644
--- a/src/api/Inventory/PartOut.js
+++ b/src/api/Inventory/PartOut.js
@@ -72,3 +72,15 @@ export function WorkShopPart(data1, data2, data3, data4, data5) {
}
})
}
+// 车间采购件零件出库
+export function ErrorOut(data1, data2, data3, data4, data5, data6, data7, data8) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '2',
+ name: '零件出库_零件出库_异常出库',
+ param: '项目流水号=' + data1 + '&机床流水号=' + data2 + '&组件流水号=' + data3 + '&采购合同明细流水号=' + data4 + '&工艺计划流水号=' + data5 + '&货位流水号=' + data6 + '&异常数量=' + data7 + '&异常原因=' + data8
+ }
+ })
+}
diff --git a/src/views/Inventory/InventoryCheck/index.vue b/src/views/Inventory/InventoryCheck/index.vue
index eaf9f20e..a504846f 100644
--- a/src/views/Inventory/InventoryCheck/index.vue
+++ b/src/views/Inventory/InventoryCheck/index.vue
@@ -40,6 +40,7 @@
@@ -68,9 +69,13 @@
{{ scope.row.零件名称 }}
-
+
- {{ scope.row.可出库数量 }}
+
+
+ 取消
+
+ {{ scope.row.可出库数量 }}
@@ -78,9 +83,15 @@
{{ scope.row.零件类型名称 }}
-
-
- 选择
+
+
+ 确定
+ 设置
@@ -100,6 +111,7 @@
v-loading="listLoading1"
:data="BasicPartIn"
border
+ size="mini"
style="width: 100%;"
height="200">
基本件
@@ -197,6 +210,7 @@
v-loading="listLoading3"
:data="tableDataGeneral"
:row-style="tableRowClassName2"
+ size="mini"
border
style="width: 100%;"
height="200">
@@ -237,7 +251,7 @@
- 选择
+ 选择
@@ -257,6 +271,7 @@
v-loading="listLoading4"
:data="PurchasePartIn"
border
+ size="mini"
style="width: 100%;"
height="200">
@@ -310,11 +326,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
外购件
@@ -351,6 +382,7 @@
v-loading="listLoading6"
:data="tableDataPurchase"
border
+ size="mini"
style="width: 100%;"
height="200">
@@ -437,6 +471,7 @@
v-loading="listLoading8"
:data="PurchasePartOut"
border
+ size="mini"
style="width: 100%;"
height="200">
外购件
@@ -501,6 +536,7 @@
v-loading="listLoading9"
:data="tableDataStandard"
:row-style="tableRowClassName1"
+ size="mini"
border
style="width: 100%;"
height="200">
@@ -579,6 +615,7 @@
v-loading="listLoading10"
:data="StandardPartIn"
border
+ size="mini"
style="width: 100%;"
height="200">
@@ -672,6 +710,7 @@
v-loading="listLoadingx1"
:data="HouseDataBasic"
border
+ size="mini"
style="width: 100%;"
height="200">
@@ -763,6 +803,7 @@
v-loading="listLoading11"
:data="HouseDataBasicOut"
border
+ size="mini"
style="width: 100%;"
height="200">
{
this.tableDataBasic = response.data.rows
this.listLoading = false
+ this.tableDataBasic.map(v => {
+ this.$set(v, 'changeSafeValue', false)
+ v.可出库数量 = v.可出库数量
+ return v
+ })
this.total = response.data.total
})
},
@@ -1426,6 +1475,23 @@ export default {
this.total6 = response.data.total
})
},
+ cancelEdit(row) { // 取消设置
+ row.安全库存量 = row.原安全库存量
+ row.changeSafeValue = false
+ this.$message('取消修改')
+ },
+ confirmEdit(row) { // 确认设置
+ Number(row.安全库存量) ? row.安全库存量 = Number(row.安全库存量) : row.安全库存量 = 0
+ setSafeValue(row.物料流水号, parseInt(row.安全库存量)).then(response => {
+ if (response.data[0].result === '1') {
+ row.changeSafeValue = false
+ this.$message.success('设置成功')
+ this.searchTable1()
+ } else {
+ this.$message.error('设置失败')
+ }
+ })
+ },
// 查询外购件记录
HousePurchaseRecord(row) {
this.ContractDetailValue = row.采购合同明细流水号
diff --git a/src/views/Inventory/PartOut/index.vue b/src/views/Inventory/PartOut/index.vue
index 512471e7..d7ca65e7 100644
--- a/src/views/Inventory/PartOut/index.vue
+++ b/src/views/Inventory/PartOut/index.vue
@@ -97,25 +97,28 @@
-
+
+
+
+
-
+
-
+