diff --git a/src/api/WorkshopProcurement/NewArrivalList.js b/src/api/WorkshopProcurement/NewArrivalList.js
index cfca577d..3c169558 100644
--- a/src/api/WorkshopProcurement/NewArrivalList.js
+++ b/src/api/WorkshopProcurement/NewArrivalList.js
@@ -38,26 +38,26 @@ export function searchLxPurchaseOrder(pageCurrent, pageSize, check1, num, check2
})
}
// 查询采购计划明细
-export function searchMateriel(num) {
+export function searchMateriel(num, check, num1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '备料管理_采购计划明细_查询数据_未选入',
- param: `供应商=${num}`
+ param: `供应商=${num}&零件图号_check=${check}&零件图号=${num1}`
}
})
}
// 查询离线采购计划明细
-export function searchLxMateriel(num) {
+export function searchLxMateriel(num, check, num1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '备料管理_离线采购计划明细_查询数据_未选入',
- param: `供应商流水号=${num}`
+ param: `供应商流水号=${num}&零件图号_check=${check}&零件图号=${num1}`
}
})
}
diff --git a/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js b/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js
index 2fc72e8a..ad0fb557 100644
--- a/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js
+++ b/src/api/WorkshopProcurement/OutsourcingMaterialsInvoice.js
@@ -132,15 +132,14 @@ export function searchSupplier(check1, value1, check2, value2, check3, value3, c
})
}
// 查询到货单
-export function searchArriveOrder(num, num1, num2, num3, num5, pageCurrent, pageSize) {
+export function searchArriveOrder(num, num1, num2, num3, num5) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '备料管理_到货单查询',
- param: `供应商_check=${num}&供应商=${num1}&开始日期_check=${num2}&开始日期=${num3}&结束日期=${num5}`,
- Pagination: pageCurrent + '&' + pageSize
+ param: `供应商_check=${num}&供应商=${num1}&开始日期_check=${num2}&开始日期=${num3}&结束日期=${num5}`
}
})
}
diff --git a/src/views/ManufacturingCenter/ParseQuery/index.vue b/src/views/ManufacturingCenter/ParseQuery/index.vue
index 2fd1fcee..0b3206a5 100644
--- a/src/views/ManufacturingCenter/ParseQuery/index.vue
+++ b/src/views/ManufacturingCenter/ParseQuery/index.vue
@@ -1330,6 +1330,7 @@
已发货
+ 未发货
diff --git a/src/views/WorkshopProcurement/AccountingPrice/index.vue b/src/views/WorkshopProcurement/AccountingPrice/index.vue
index 7997c862..6337f64a 100644
--- a/src/views/WorkshopProcurement/AccountingPrice/index.vue
+++ b/src/views/WorkshopProcurement/AccountingPrice/index.vue
@@ -3,7 +3,7 @@
合同号:
-
+
{{ item.name }}
- 查询
diff --git a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue
index 5c5ca59f..2ad09f14 100644
--- a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue
+++ b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue
@@ -141,9 +141,9 @@
style="margin-top:10px"
@click="calculateContractSum">计算合同总额
合同总额(未税):
-
- 合同总额(含税):
+ 合同总额(含税):
+
@@ -548,7 +548,7 @@ export default {
this.tableData4.push(this.groupNum2[i])
}
this.contractSum = (this.contractSum1).toFixed(2)
- this.contractSum2 = parseInt(this.contractSum * (1 + parseFloat(this.taxRate)) * 100) / 100
+ this.contractSum2 = parseInt(this.contractSum * (1 - parseFloat(this.taxRate)) * 100) / 100
this.costAccount = this.contractSum
if (parseInt(this.costAccount) === 0) {
this.$message.error('成本核算不可为0')
@@ -566,7 +566,7 @@ export default {
}
console.log(this.contractSum1, this.groupNum5, 898989)
this.contractSum = (this.contractSum1).toFixed(2)
- this.contractSum2 = parseInt(this.contractSum * (1 + parseFloat(this.taxRate)) * 100) / 100
+ this.contractSum2 = parseInt(this.contractSum * (1 - parseFloat(this.taxRate)) * 100) / 100
this.costAccount = this.contractSum
if (parseInt(this.costAccount) === 0) {
this.$message.error('成本核算不可为0')
diff --git a/src/views/WorkshopProcurement/FundApproval2/index.vue b/src/views/WorkshopProcurement/FundApproval2/index.vue
index 9009e6b2..493825db 100644
--- a/src/views/WorkshopProcurement/FundApproval2/index.vue
+++ b/src/views/WorkshopProcurement/FundApproval2/index.vue
@@ -58,64 +58,64 @@
@current-change="handleCurrentChange"/>
-
- 离线合同
-
-
-
- {{ scope.row.供应商名称 }}
-
-
-
-
- {{ scope.row.请款时间 }}
-
-
-
-
- {{ scope.row.姓名 }}
-
-
-
-
- {{ scope.row.请款金额 }}
-
-
-
-
-
-
-
-
-
- {{ scope.row.离线合同编号 }}
-
-
-
-
- {{ scope.row.请款金额 }}
-
-
-
- 查看详情
-
- 通过
- 不通过
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
备料合同
diff --git a/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue b/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue
index ec70794f..78b9a42c 100644
--- a/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue
+++ b/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue
@@ -254,7 +254,7 @@
供应商:
-
+
diff --git a/src/views/WorkshopProcurement/NewArrivalList/index.vue b/src/views/WorkshopProcurement/NewArrivalList/index.vue
index cac9a7b6..082bf8b2 100644
--- a/src/views/WorkshopProcurement/NewArrivalList/index.vue
+++ b/src/views/WorkshopProcurement/NewArrivalList/index.vue
@@ -249,7 +249,15 @@
-
+
+ 供应商
+
+
+
+ 到货单编号
+
+
+
计划类型
-
- 供应商
-
+
+ 零件图号
+
-
- 到货单编号
-
+
+ 查询
-
+
-
-
+
+
{{ scope.row.采购单号 }}
@@ -336,12 +343,12 @@
-
+
-
+
@@ -417,7 +424,7 @@
-
+
计划类型
-
-
+ 零件图号
+
+ 查询
+
+
{{ scope.row.采购单号 }}
@@ -460,12 +470,12 @@
-
+
-
+
@@ -535,6 +545,7 @@ export default {
ALLMoney: '',
材料名称: '',
未绑定数量: '',
+ 零件图号: '',
tableData2: [],
total2: 0,
pageCurrent2: 1,
@@ -595,12 +606,17 @@ export default {
单位: [{ required: true, message: '请填写单位' }],
单价: [{ required: true, message: '请填写单价' }]
},
+ 到货单编号: '',
+ 供应商名称: '',
本次到货数量组: [],
到货重量组: [],
工艺计划流水号组: [],
采购计划明细流水号组: [],
离线采购计划明细流水号组: [],
- 到货金额组: []
+ 到货金额组: [],
+ getRowKeys(row) {
+ return row.采购计划明细流水号
+ }
}
},
computed: {
@@ -618,6 +634,23 @@ export default {
this.searchTable4()
},
methods: {
+ saveData(row) {
+ var a = 0
+ this.tableData30.map(v => {
+ if (v.采购计划明细流水号 === row.采购计划明细流水号) {
+ v.到货重量 = row.到货重量
+ v.未到货数量 = row.未到货数量
+ a = 1
+ }
+ })
+ if (a === 0) {
+ this.tableData30.push({
+ 采购计划明细流水号: row.采购计划明细流水号,
+ 到货重量: row.到货重量,
+ 未到货数量: row.未到货数量
+ })
+ }
+ },
fetchdata() {
searchSupplier(0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '').then(response => {
for (let i = 0; i < response.data.length; i++) {
@@ -629,12 +662,22 @@ export default {
})
},
searchTable20() {
+ let check
+ this.零件图号 ? check = 1 : check = 0
if (this.planType === 0) {
- searchMateriel(this.供应商).then(response => {
+ searchMateriel(this.供应商, check, this.零件图号).then(response => {
this.tableData20 = response.data
+ for (let i = 0; i < this.tableData20.length; i++) {
+ for (let j = 0; j < this.tableData30.length; j++) {
+ if (this.tableData20[i].采购计划明细流水号 === this.tableData30[j].采购计划明细流水号) {
+ this.tableData20[i].未到货数量 = this.tableData30[j].未到货数量
+ this.tableData20[i].到货重量 = this.tableData30[j].到货重量
+ }
+ }
+ }
})
} else {
- searchLxMateriel(this.供应商).then(response => {
+ searchLxMateriel(this.供应商, check, this.零件图号).then(response => {
this.tableData20 = response.data
})
}
@@ -924,7 +967,9 @@ export default {
this.form10.数量 = ''
this.form10.单价 = ''
this.form10.金额 = ''
+ this.tableData30 = []
this.searchTable20()
+ this.$refs['form10'].resetFields()
searchTable5(this.ArrivalOrderNumber).then(response => {
this.tableData5 = response.data
})
@@ -1046,6 +1091,7 @@ export default {
addMateriel(this.ArrivalOrderMXNumber, this.工艺计划流水号组, this.采购计划明细流水号组, this.本次到货数量组, this.离线采购计划明细流水号组, this.到货重量组, this.到货金额组, this.userId).then(response => {
if (response.data[0].result === '1') {
this.$message.success('关联成功')
+ this.tableData30 = []
this.searchTable20()
searchTable6(this.ArrivalOrderMXNumber).then(response => {
this.tableData6 = response.data
diff --git a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue
index 90fcdcf8..1145927f 100644
--- a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue
+++ b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue
@@ -132,9 +132,9 @@
-
+
-
+
-
-
- 时间段:
-
-
- 查询
-
-
-
+
+
-
+
- {{ scope.row.供应商名称 }}
+ {{ scope.row.到货单编号 }}
@@ -229,23 +207,7 @@
{{ scope.row.到货金额 }}
-
-
- {{ scope.row.备注 }}
-
-
-
-
-
-
-
- 时间段:
-
-
- 查询
-
-
+
-
+
- {{ scope.row.供应商名称 }}
+ {{ scope.row.到货单编号 }}
@@ -290,23 +235,7 @@
{{ scope.row.到货金额 }}
-
-
- {{ scope.row.备注 }}
-
-
-
-
-
@@ -337,9 +266,6 @@ export default {
pageCurrent1: 1,
pageSize1: 30,
total1: 0,
- pageCurrent4: 1,
- pageSize4: 10,
- total4: 0,
tableData1: [],
tableData01: [],
tableData4: [],
@@ -436,20 +362,10 @@ export default {
console.log(this.Name)
this.Name ? this.check = 1 : this.check = 0
this.dateRange ? this.check1 = 1 : (this.check1 = 0, this.dateRange = '')
- searchArriveOrder(this.check, this.Name, this.check1, this.dateRange[0], this.dateRange[1], this.pageCurrent4, this.pageSize4).then(response => {
- this.tableData4 = response.data.rows
- this.total4 = response.data.total
+ searchArriveOrder(this.check, this.Name, this.check1, this.dateRange[0], this.dateRange[1]).then(response => {
+ this.tableData4 = response.data
})
},
- handleSizeChange4(val) { // 采购单列表分页
- this.pageSize4 = val
- this.pageCurrent4 = 1
- this.searchTable4()
- },
- handleCurrentChange4(val) { // 采购单列表分页
- this.pageCurrent4 = val
- this.searchTable4()
- },
searchTable02(row) { // 查看详情(发票包含的合同)
this.发票流水号 = row.发票流水号
searchInvoiceDetail(this.发票流水号).then(response => {
@@ -461,6 +377,7 @@ export default {
this.$refs['form1'].resetFields()
}
this.title1 = '新增备料发票'
+ this.tableData4 = []
this.dialogVisible1 = true
console.log(this.supplierNames)
this.form1.supplierNameValue = ''