+
+
+
@@ -655,6 +668,7 @@ export default {
this.total = response.data.total
})
searchHoursePart(this.PageCurrentx, this.PageSizex, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
+ console.log(response.data.rows)
this.tableDataHouse = response.data.rows
this.listLoadingx = false
this.totalx = response.data.total
@@ -750,14 +764,18 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- dropList(this.pickingListNumberx).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('删除成功')
- this.searchListinfor()
- } else {
- this.$message.error('数据占用')
- }
- })
+ if (this.tableDataPicking.length === 0) {
+ dropList(this.pickingListNumberx).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('删除成功')
+ this.searchListinfor()
+ } else {
+ this.$message.error('数据占用')
+ }
+ })
+ } else {
+ this.$message.error('数据占用')
+ }
}).catch(() => {
this.$message({
type: 'info',
@@ -889,7 +907,8 @@ export default {
},
// 增加车间采购领料单明细
addWorkshopDetailinfor(row) {
- this.form3 = []
+ console.log(row)
+ this.form3 = {}
this.outType = 3
this.partProjectNumber = row.项目流水号
this.partMachineNumber = row.机床流水号
@@ -914,10 +933,19 @@ export default {
} else if (this.form3.OutNumber === '' || this.form3.OutNumber > this.enableOut) {
this.$message.error('请正确输入领用数量')
} else {
+ console.log(this.materialLocate)
addListDetail(this.pickingListNumberx, this.partProjectNumber, this.partMachineNumber, this.partGroupNumber, this.form3.OutNumber, this.partType, this.form3.outNote, this.craftplannumber, this.receive, this.purchaseDetailNum, this.askPurchaseNumber, this.locatenumber, this.outType, this.materialLocate, this.materialName, this.materialType, this.materialNumber, this.partPiant, this.material).then(response => {
if (response.data[0].result === '1') {
this.$message.success('增加成功')
this.searchPartinfo()
+ searchListDetail(this.pickingListNumberx).then(response => {
+ const data = response.data
+ for (let i = 0; i < data.length; i++) {
+ data[i].是否出库 === '1' ? data[i].是否禁用 = true : data[i].是否禁用 = false
+ }
+ this.tableDataPicking = data
+ })
+ this.dialogFormVisibleWork = false
} else {
this.$message.error('增加失败')
}
@@ -925,7 +953,6 @@ export default {
}
}
})
- this.dialogFormVisibleWork = false
this.searchListinfor()
this.searchListDetailt()
},
diff --git a/src/views/PurchasingCenter/ReceiveCheck/index.vue b/src/views/PurchasingCenter/ReceiveCheck/index.vue
index f5e1e74b..61565138 100644
--- a/src/views/PurchasingCenter/ReceiveCheck/index.vue
+++ b/src/views/PurchasingCenter/ReceiveCheck/index.vue
@@ -2,21 +2,38 @@
项目名称:
-
+
+ 机床图号:
+
+
+
+ 组号:
+
+
+
查询
+
+
+ {{ scope.row.机床图号 }}
+
+
+
+
+ {{ scope.row.组号 || '—' }}
+
+
{{ scope.row.物料名称 }}
@@ -44,7 +71,7 @@
- {{ scope.row.小计 }}
+ {{ scope.row.小计.toFixed(2) }}
@@ -68,27 +95,21 @@