+
+ 选入物料
+
+
-
+
查询
@@ -195,7 +193,10 @@
-
+
+ 选入物料
+
+
查询
-
- 选入物料
+ 创建离线合同
+
+ 生成离线合同
-
+
税率:
-
- 生成离线合同
-
- 创建离线合同
+
-
-
-
-
-
- {{ scope.row.离线合同备注 }}
-
-
-
-
+
+
+
+
+
+
+
+
+
+
- 编辑中
- 已采购
- 全部到货
+ 编辑中
+ 已采购
+ 全部到货
@@ -260,7 +259,7 @@
{{ scope.row.离线合同名称 }}
-
+
{{ scope.row.供应商名称 }}
@@ -290,19 +289,19 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
{{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
@@ -318,7 +317,7 @@
{{ scope.row.物料型号 ? scope.row.物料型号 : scope.row.零件图号 }}
-
+
{{ scope.row.数量 }}
@@ -340,9 +339,9 @@
{{ (scope.row.单价 / (1 + taxRate)).toFixed(2) }}
-
+
-
+
{{ (scope.row.未税单价 * (1 + taxRate)).toFixed(2) }}
@@ -356,9 +355,9 @@
{{ hasTax==='含税' ? scope.row.含税总额 = (Number(scope.row.数量) * Number(scope.row.单价)).toFixed(2) : scope.row.含税总额 = (scope.row.未税总额 * (1+taxRate)).toFixed(2) }}
-
+
-
+
{{ scope.row.备注 || '—' }}
@@ -570,13 +569,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
@@ -83,7 +85,7 @@
-
+
{{ Number(scope.row.优惠后单价).toFixed(2) }}
@@ -124,7 +126,8 @@ export default {
pageCurrent1: 1,
pageSize1: 10,
total1: 0,
- tableData1: []
+ tableData1: [],
+ projectTotalPrice: ''
}
},
computed: {
@@ -177,6 +180,7 @@ export default {
})
},
searchTable1() {
+ this.projectTotalPrice = ''
if (this.projectValue) {
let check2, check3
this.machineValue ? check2 = 1 : check2 = 0
@@ -184,6 +188,9 @@ export default {
console.log(1, this.projectValue, check2, this.machineValue, check3, this.groupValue)
searchProjectTotal(1, this.projectValue, check2, this.machineValue, check3, this.groupValue).then(response => {
this.tableData1 = response.data
+ for (let i = 0; i <= response.data.length; i++) {
+ this.projectTotalPrice = Number(this.projectTotalPrice) + Number(response.data[i].优惠后单价) * Number(response.data[i].数量)
+ }
})
} else {
this.$message.error('请选择项目')
diff --git a/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue b/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue
index 2c9ca0e4..9c9ebbba 100644
--- a/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue
+++ b/src/views/PurchasingCenter/PurchaseContractRequestFund/index.vue
@@ -23,9 +23,10 @@
end-placeholder="结束日期"/>
查询
请款
+ 导出
-
+
{{ scope.row.供应商名称 }}
@@ -36,7 +37,7 @@
{{ scope.row.姓名 }}
-
+
{{ scope.row.请款金额 }}
@@ -84,7 +85,9 @@
-
+
+
+
@@ -104,82 +107,87 @@
-
-
-
- {{ scope.row.采购合同编号 ? scope.row.采购合同编号 : scope.row.离线合同编号 }}
-
-
-
-
- {{ scope.row.合同总额 ? parseFloat(scope.row.合同总额).toFixed(2) : 0 }}
-
-
-
-
- {{ parseFloat(scope.row.到货金额).toFixed(2) }}
-
-
-
-
- {{ parseFloat(scope.row.已付金额).toFixed(2) }}
-
-
-
-
- {{ parseFloat(scope.row.请款金额).toFixed(2) }}
-
-
-
+
+
+
+
+ {{ scope.row.采购合同编号 ? scope.row.采购合同编号 : scope.row.离线合同编号 }}
+
+
+
+
+ {{ scope.row.合同总额 ? parseFloat(scope.row.合同总额).toFixed(2) : 0 }}
+ {{ scope.row.离线合同总额 ? parseFloat(scope.row.离线合同总额).toFixed(2) : 0 }}
+
+
+
+
+ {{ parseFloat(scope.row.到货金额).toFixed(2) }}
+
+
+
+
+ {{ parseFloat(scope.row.已付金额).toFixed(2) }}
+
+
+
+
+ {{ parseFloat(scope.row.请款金额).toFixed(2) }}
+
+
+
+
-
-
-
- {{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
-
-
-
-
- {{ scope.row.物料规格 ? scope.row.物料规格 : scope.row.规格 }}
-
-
-
-
- {{ scope.row.物料型号 ? scope.row.物料型号 : scope.row.零件图号 }}
-
-
-
-
- {{ scope.row.数量 }}
-
-
-
-
- {{ scope.row.合同类型 === 1 ? scope.row.已到货数量 : scope.row.到货数量 }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.合同类型 === 1 ? scope.row.交货期.split(' ')[0] === '1900-01-01' ? '-' : scope.row.交货期.split(' ')[0] : scope.row.交货期要求 }}
-
-
-
-
- {{ scope.row.备注 }}
-
-
-
+
+
+
+
+ {{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
+
+
+
+
+ {{ scope.row.物料规格 ? scope.row.物料规格 : scope.row.规格 }}
+
+
+
+
+ {{ scope.row.物料型号 ? scope.row.物料型号 : scope.row.零件图号 }}
+
+
+
+
+ {{ scope.row.数量 }}
+
+
+
+
+ {{ scope.row.合同类型 === 1 ? scope.row.已到货数量 : scope.row.到货数量 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.合同类型 === 1 ? scope.row.交货期.split(' ')[0] === '1900-01-01' ? '-' : scope.row.交货期.split(' ')[0] : scope.row.交货期要求 }}
+
+
+
+
+ {{ scope.row.备注 }}
+
+
+
+
@@ -329,6 +337,20 @@ export default {
// this.searchTable1()
},
methods: {
+ exportExcel() { // 合同请款导出
+ let check1, check2
+ this.dateRange ? check1 = 1 : (check1 = 0, this.dateRange = '')
+ this.supplierValue ? check2 = 1 : check2 = 0
+ var param = []
+ param[0] = ['时间段_check', check1]
+ param[1] = ['开始时间', this.dateRange[0]]
+ param[2] = ['结束时间', this.dateRange[1]]
+ param[3] = ['供应商流水号_check', check2]
+ param[4] = ['供应商流水号', this.supplierValue]
+ console.log(param, 'param')
+ var Data = this.CreateData('2001', '报表_合同请款', param)
+ this.exportExcel_NPOI(Data)
+ },
timeToStamp(param) { // 转时间戳
return timeToStamp(param)
},
diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
index 51eb795f..5a01127b 100644
--- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
+++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
@@ -92,7 +92,7 @@
-
+
-
+
{{ scope.row.物料规格 }}
-
+
{{ scope.row.物料型号 }}
@@ -313,7 +313,7 @@
已分配
-
+
-
+
{{ scope.row.零件数量 }}
-
+
{{ scope.row.机床图号 }}
@@ -385,7 +385,7 @@
{{ scope.row.物料类别 }}
-
+
{{ scope.row.物料品种 }}
@@ -493,7 +493,7 @@
已分配
-
+
-
+
{{ scope.row.零件图号 }}
diff --git a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue
index c37c583c..bbe038b6 100644
--- a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue
+++ b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue
@@ -44,7 +44,6 @@
-
{{ scope.row.组件名称 }}
@@ -637,14 +636,14 @@ export default {
this.contractSum1 = 0
this.costAccount = 0
this.riseFallPoint = 0
- this.tableData4 = []
- for (let i = 0; i < this.groupNum2.length; i++) {
- if (this.groupNum2[i].单价 === '') {
- this.groupNum2[i].单价 = 0.00
+ // this.tableData4 = []
+ for (let i = 0; i < this.tableData4.length; i++) {
+ if (this.tableData4[i].单价 === '') {
+ this.tableData4[i].单价 = 0.00
}
- this.groupNum2[i].金额 = parseFloat(this.groupNum2[i].单价) * parseFloat(this.groupNum2[i].零件数量)
- this.contractSum1 += parseFloat(this.groupNum2[i].金额)
- this.tableData4.push(this.groupNum2[i])
+ this.tableData4[i].金额 = parseFloat(this.tableData4[i].单价) * parseFloat(this.tableData4[i].零件数量)
+ this.contractSum1 += parseFloat(this.tableData4[i].金额)
+ // this.tableData4.push(this.groupNum2[i])
}
this.contractSum = (this.contractSum1).toFixed(2)
this.contractSum2 = (parseInt(this.contractSum * (1 - parseFloat(this.taxRate)) * 100) / 100).toFixed(2)
@@ -660,8 +659,8 @@ export default {
this.contractSum1 = 0
this.costAccount = 0
this.riseFallPoint = 0
- for (let i = 0; i < this.groupNum5.length; i++) {
- this.contractSum1 += parseFloat((parseInt(this.groupNum5[i].数量) * parseFloat(this.groupNum5[i].单价)).toFixed(2))
+ for (let i = 0; i < this.tableData5.length; i++) {
+ this.contractSum1 += parseFloat((parseInt(this.tableData5[i].数量) * parseFloat(this.tableData5[i].单价)).toFixed(2))
}
this.contractSum = (this.contractSum1).toFixed(2)
this.contractSum2 = parseInt(this.contractSum * (1 - parseFloat(this.taxRate)) * 100) / 100
@@ -766,49 +765,52 @@ export default {
this.$message.error('请选择供应商!')
} else {
if (this.contractNumType === 0) {
- this.group1 = ''
- this.group2 = ''
- this.group3 = ''
- this.group5 = []
- this.group7 = ''
- this.group8 = ''
- this.group9 = []
- this.group10 = ''
- this.group11 = ''
- this.group12 = ''
- for (let i = 0; i < this.tableData4.length; i++) {
- for (let j = 0; j < this.multipleSelection.length; j++) {
- if (this.tableData4[i].请购单明细流水号 === this.multipleSelection[j].请购单明细流水号) {
- console.log(333333)
- this.group1 += this.tableData4[i].物料流水号 + ','
- this.group2 += this.tableData4[i].零件数量 + ','
- this.group3 += this.tableData4[i].单价 + ','
- this.group7 += this.taxRate + ','
- this.group8 += this.currencyValue + ','
- this.group9.push(Number(this.tableData4[i].请购单明细流水号))
- this.group11 += this.tableData4[i].单件定额工时 + ','
- this.group12 += this.tableData4[i].准结定额工时 + ','
- } else {
- if (this.group5.indexOf(Number(this.tableData4[i].请购单明细流水号)) === -1 && this.Selection.indexOf(Number(this.tableData4[i].请购单明细流水号)) === -1) {
- this.group5.push(Number(this.tableData4[i].请购单明细流水号))
+ if (this.multipleSelection.length > 0) {
+ this.group1 = ''
+ this.group2 = ''
+ this.group3 = ''
+ this.group5 = []
+ this.group7 = ''
+ this.group8 = ''
+ this.group9 = []
+ this.group10 = ''
+ this.group11 = ''
+ this.group12 = ''
+ for (let i = 0; i < this.tableData4.length; i++) {
+ for (let j = 0; j < this.multipleSelection.length; j++) {
+ if (this.tableData4[i].请购单明细流水号 === this.multipleSelection[j].请购单明细流水号) {
+ this.group1 += this.tableData4[i].物料流水号 + ','
+ this.group2 += this.tableData4[i].零件数量 + ','
+ this.group3 += this.tableData4[i].单价 + ','
+ this.group7 += this.taxRate + ','
+ this.group8 += this.currencyValue + ','
+ this.group9.push(Number(this.tableData4[i].请购单明细流水号))
+ this.group11 += this.tableData4[i].单件定额工时 + ','
+ this.group12 += this.tableData4[i].准结定额工时 + ','
+ } else {
+ if (this.group5.indexOf(Number(this.tableData4[i].请购单明细流水号)) === -1 && this.Selection.indexOf(Number(this.tableData4[i].请购单明细流水号)) === -1) {
+ this.group5.push(Number(this.tableData4[i].请购单明细流水号))
+ }
}
}
}
- }
- for (let i = 0; i < this.contractNum.length; i++) {
- if (this.contractNum[i].value === this.contractNumValue) {
- this.RequisitionNumber = this.contractNum[i].label
+ for (let i = 0; i < this.contractNum.length; i++) {
+ if (this.contractNum[i].value === this.contractNumValue) {
+ this.RequisitionNumber = this.contractNum[i].label
+ }
}
+ this.group1 = this.group1.substr(0, this.group1.length - 1)
+ this.group2 = this.group2.substr(0, this.group2.length - 1)
+ this.group3 = this.group3.substr(0, this.group3.length - 1)
+ doneContract(this.contractNumValue, this.RequisitionNumber, this.contractName, this.planArrivalTime, this.stipulateArrivalTime, this.supplierValue, this.textArea, this.contractValue, this.freight, this.group1, this.group2, this.group3, this.group7, this.group8, this.group9, this.id, this.group11, this.group12, this.AdvanceCharge, this.group5).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('生成合同成功')
+ this.reload()
+ } else { this.$message.error('生成合同失败') }
+ })
+ } else {
+ this.$message.warning('请勾选要生成合同的物料')
}
- this.group1 = this.group1.substr(0, this.group1.length - 1)
- this.group2 = this.group2.substr(0, this.group2.length - 1)
- this.group3 = this.group3.substr(0, this.group3.length - 1)
- doneContract(this.contractNumValue, this.RequisitionNumber, this.contractName, this.planArrivalTime, this.stipulateArrivalTime, this.supplierValue, this.textArea, this.contractValue, this.freight, this.group1, this.group2, this.group3, this.group7, this.group8, this.group9, this.id, this.group11, this.group12, this.AdvanceCharge, this.group5).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('生成合同成功')
- this.reload()
- } else { this.$message.error('生成合同失败') }
- })
} else {
if (this.contractValue === 4) {
for (let i = 0; i < this.contractNum.length; i++) {
diff --git a/src/views/WorkshopProcurement/NewArrivalList/index.vue b/src/views/WorkshopProcurement/NewArrivalList/index.vue
index d7219c0d..c5cc71c5 100644
--- a/src/views/WorkshopProcurement/NewArrivalList/index.vue
+++ b/src/views/WorkshopProcurement/NewArrivalList/index.vue
@@ -338,7 +338,7 @@
-
+
@@ -431,7 +431,20 @@
零件图号
查询
-
+
@@ -463,14 +476,14 @@
{{ scope.row.到货数量 }}
-
+
-
+
-
+
-
+
@@ -490,7 +503,7 @@
@@ -511,6 +524,7 @@ export default {
expands: [],
totalWight: 0.00,
totalWight1: 0.00,
+ totalWight2: 0.00,
pickerOptions: {
shortcuts: [{
text: '上季度',
@@ -560,6 +574,7 @@ export default {
}
],
arrest: [],
+ arrest1: [],
check: 0,
Name: '',
单价: '',
@@ -717,6 +732,30 @@ export default {
未到货数量: row.未到货数量
})
}
+ if (this.arrest.length > 0) {
+ this.arrest.map(v => {
+ if (v.采购计划明细流水号 === row.采购计划明细流水号) {
+ v.到货重量 = row.到货重量
+ v.未到货数量 = row.未到货数量
+ }
+ })
+ this.totalWight = 0.00
+ for (let i = 0; i < this.arrest.length; i++) {
+ this.totalWight += this.arrest[i].到货重量
+ }
+ }
+ if (this.arrest1.length > 0) {
+ this.arrest1.map(v => {
+ if (v.采购计划明细流水号 === row.采购计划明细流水号) {
+ v.到货重量 = row.到货重量
+ v.未到货数量 = row.未到货数量
+ }
+ })
+ this.totalWight2 = 0.00
+ for (let i = 0; i < this.arrest1.length; i++) {
+ this.totalWight2 += this.arrest1[i].到货重量
+ }
+ }
},
fetchdata() {
searchSupplier(0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '').then(response => {
@@ -883,6 +922,19 @@ export default {
})
return sums
},
+ getSummaries3(param) {
+ const { columns } = param
+ const sums = []
+ columns.forEach((column, index) => {
+ if (index === 7) {
+ sums[index] = '总重量:'
+ return
+ } else if (index === 8) {
+ sums[index] = this.totalWight2 + ' KG'
+ }
+ })
+ return sums
+ },
// 查询到货单
searchTable4() {
this.tableData5 = []
@@ -1154,15 +1206,23 @@ export default {
for (let i = 0; i < val.length; i++) {
this.totalWight += val[i].到货重量
}
- console.log(this.totalWight, 111)
this.arrest = val
},
+ handleSelectionChange1(val) {
+ this.totalWight2 = 0.00
+ for (let i = 0; i < val.length; i++) {
+ this.totalWight2 += val[i].到货重量
+ }
+ this.arrest1 = val
+ },
// 选入
addMateriel() {
if (!this.ArrivalOrderMXNumber) {
this.$message.warning('请选择到货材料')
- } else if (this.arrest.length === 0) {
+ } else if (this.arrest1.length === 0) {
this.$message.warning('请勾选需要关联的材料')
+ } else if (this.未绑定数量 < this.totalWight2) {
+ this.$message.warning('所选物料总重量超出未绑定重量')
} else {
this.工艺计划流水号组 = []
this.采购计划明细流水号组 = []
@@ -1170,7 +1230,7 @@ export default {
this.本次到货数量组 = []
this.到货重量组 = []
this.到货金额组 = []
- this.arrest.map(v => {
+ this.arrest1.map(v => {
this.工艺计划流水号组.push(v.工艺计划流水号)
this.采购计划明细流水号组.push(v.采购计划明细流水号)
this.离线采购计划明细流水号组.push(v.离线采购计划明细流水号)
diff --git a/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue b/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue
index fb2c3ddf..7d782e06 100644
--- a/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue
+++ b/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue
@@ -169,7 +169,7 @@
-
合计:元
+
合计:元
提交请款审批
@@ -341,6 +341,7 @@ export default {
handleSelectionChange(val) {
this.contractGroup = []
this.sumGroup = []
+ this.SUM = 0
for (let i = 0; i < val.length; i++) {
this.SUM += parseFloat(val[i].开票金额)
this.contractGroup.push(val[i].发票流水号)