diff --git a/src/api/Inventory/InboundCard.js b/src/api/Inventory/InboundCard.js
index 616a0857..04c53795 100644
--- a/src/api/Inventory/InboundCard.js
+++ b/src/api/Inventory/InboundCard.js
@@ -33,14 +33,14 @@ export function searchInventory() {
})
}
// 入库记录查询
-export function searchInbound(data1, data2, data3) {
+export function searchInbound(...data) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_入库记录_采购部查询',
- param: '采购合同流水号=' + data1 + '&到货时间=' + data2 + '&仓库流水号=' + data3
+ param: `采购合同流水号_check=${data[0]}&采购合同流水号=${data[1]}&到货时间_check=${data[2]}&到货开始时间=${data[3]}&到货结束时间=${data[4]}&仓库流水号_check=${data[5]}&仓库流水号=${data[6]}`
}
})
}
diff --git a/src/views/Inventory/InboundCard/index.vue b/src/views/Inventory/InboundCard/index.vue
index b812aef5..fbff44e5 100644
--- a/src/views/Inventory/InboundCard/index.vue
+++ b/src/views/Inventory/InboundCard/index.vue
@@ -11,14 +11,21 @@
:label="item.label"
:value="item.value"/>
- 入库日期
+ 到货时间
+ placeholder="选择开始日期"/> ~
+
仓库:
-
+
+
+ {{ scope.row.到货时间 ? scope.row.到货时间.split(' ')[0] : '—' }}
+
+
+
{{ scope.row.物料名称 }}
-
+
{{ scope.row.物料规格 }}
-
+
{{ scope.row.物料型号 }}
-
+
{{ scope.row.零件图号 }}
-
+
{{ scope.row.实际到货数量 }}
-
+
{{ scope.row.单价 }}
-
+
{{ scope.row.单价 * scope.row.实际到货数量 }}
@@ -164,35 +176,25 @@
+
- 入库单编号
+ 入库单编号:
查询
创建
选入
+
-
-
-
+
+
{{ scope.row.入库单号 }}
- {{ scope.row.入库日期 }}
+ {{ scope.row.入库日期 ? scope.row.入库日期.split(' ')[0] : '—' }}
@@ -200,7 +202,7 @@
{{ scope.row.仓库名称 }}
-
+
{{ scope.row.采购合同编号 }}
@@ -212,7 +214,7 @@
- {{ scope.row.到货日期 }}
+ {{ scope.row.到货日期 ? scope.row.到货日期.split(' ')[0] : '—' }}
@@ -220,7 +222,7 @@
{{ scope.row.业务号 }}
-
+
{{ scope.row.供应商名称 }}
@@ -230,17 +232,17 @@
{{ scope.row.姓名 }}
-
+
{{ scope.row.业务类型 }}
-
+
{{ scope.row.采购类型 }}
-
+
{{ scope.row.入库类别 }}
@@ -268,16 +270,7 @@
@size-change="handleSizeChange2"
@current-change="handleCurrentChange2"/>
-
+
-
+
{{ scope.row.数量 }}
-
+
{{ scope.row.本币单价 }}
-
+
{{ scope.row.sum = scope.row.本币单价 * scope.row.数量 }}
-
+
- 删除
+ 删除
+
@@ -433,6 +427,7 @@
打印
+
@@ -526,6 +521,7 @@
确定
+
@@ -636,6 +632,8 @@ export default {
ShopContractValue: '', // 车间采购合同流水号
Inventory: [],
InventoryValue: '',
+ InboundStartDate: '',
+ InboundEndDate: '',
InboundDate: '',
listLoading: '',
tableData: [],
@@ -701,6 +699,7 @@ export default {
created() {
this.searchContractData()
this.searchInventoryData()
+ this.searchInboundCard1()
},
methods: {
searchContractData() { // 查询合同
@@ -743,7 +742,11 @@ export default {
searchPartinfo() {
this.tableData = []
this.listLoading = true
- searchInbound(this.ContractValue, this.InboundDate, this.InventoryValue).then(response => {
+ let check1, check2, check3
+ this.ContractValue ? check1 = 1 : check1 = 0
+ this.InboundStartDate && this.InboundEndDate ? check2 = 1 : (check2 = 0, this.InboundStartDate = null, this.InboundEndDate = null)
+ this.InventoryValue ? check3 = 1 : check3 = 0
+ searchInbound(check1, this.ContractValue, check2, this.InboundStartDate, this.InboundEndDate, check3, this.InventoryValue).then(response => {
for (let i = 0; i < response.data.length; i++) {
if (response.data[i].组件零件流水号 === 0) {
response.data[i].物料名称 = response.data[i].零件名称
@@ -786,6 +789,7 @@ export default {
addInboundCard(this.form.inboundDay, this.form.house, this.form.contract, this.form.arrive, this.form.affairPeople, this.form.affair, this.form.arriveDay, this.form.affirType, this.form.purchaseType, this.form.inboundType, this.form.note).then(response => {
if (response.data[0].result === '1') {
this.$message.success('增加成功')
+ this.searchInboundCard1()
this.dialogVisible1 = false
} else {
this.$message.error('增加失败')
@@ -867,6 +871,7 @@ export default {
editInboundCard(this.DetailNumber, this.form.inboundDay, this.form.house, this.form.contract, this.form.arrive, this.form.affairPeople, this.form.affair, this.form.arriveDay, this.form.affirType, this.form.purchaseType, this.form.inboundType, this.form.note).then(response => {
if (response.data[0].result === '1') {
this.$message.success('修改成功')
+ this.searchInboundCard1()
this.dialogVisible2 = false
} else {
this.$message.error('修改失败')
@@ -1035,6 +1040,18 @@ export default {