采 购 入 库 单
@@ -385,13 +379,13 @@
-
-
-
-
-
-
+
+
+
+
+
+
| 存货编码 |
@@ -405,7 +399,7 @@
| {{ index + 1 }} |
{{ list.名称 }} |
- {{ list.规格 }} |
+ {{ list.规格 + list.型号 }} |
{{ list.零件图号 }} |
{{ list.数量 }} |
{{ list.本币单价 }} |
@@ -423,8 +417,8 @@
- 制单人:{{ '李鑫' }}
- 审核人:{{ '李鑫' }}
+ 制单人:
+ 审核人:
@@ -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('修改失败')
@@ -879,11 +884,10 @@ export default {
searchDetail(row) {
this.DetailNumber = row.采购入库单流水号
searchInboundCardDetail(this.DetailNumber).then(response => {
- const data = response.data
- for (let i = 0; i < data[i].length; i++) {
- data[i].数量 = parseInt(data[i].数量)
+ for (let i = 0; i < response.data.length; i++) {
+ response.data[i].数量 = parseInt(response.data[i].数量)
}
- this.tableData4 = data
+ this.tableData4 = response.data
})
},
// 删除领料单
@@ -1007,6 +1011,7 @@ export default {
this.inbondCard[13] = row.备注
this.DetailNumber = row.采购入库单流水号
searchInboundCardDetail(this.DetailNumber).then(response => {
+ console.log(this.tableData4)
this.tableData4 = response.data
return this.tableData4
}).then(data => {
@@ -1035,6 +1040,18 @@ export default {