- 机床图号
- 组号
- 零件图号:
-
+
查询
@@ -850,8 +847,9 @@ export default {
getTableData() {
const machine_check = this.machineValue ? 1 : 0
const group_check = this.groupValue ? 1 : 0
+ const part_check = this.partNumber ? 1 : 0
this.loading = true
- basicPartsData(machine_check, this.machineValue, group_check, this.groupValue).then(response => {
+ basicPartsData(machine_check, this.machineValue, group_check, this.groupValue, part_check, this.partNumber).then(response => {
this.loading = false
const res = response.data
this.total = res.total
@@ -868,7 +866,7 @@ export default {
})
})
this.loadingWB = true
- purchasePartsData(this.groupValue).then(response => {
+ purchasePartsData(this.groupValue, part_check, this.partNumber).then(response => {
this.loadingWB = false
const data = response.data
this.totalWB = data.total
diff --git a/src/views/ManufacturingCenter/CreatePreparationBill/index.vue b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue
index 91080446..86c3d2a3 100644
--- a/src/views/ManufacturingCenter/CreatePreparationBill/index.vue
+++ b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue
@@ -148,7 +148,7 @@
+
+
diff --git a/src/views/MarketingCenter/BidBond/index.vue b/src/views/MarketingCenter/BidBond/index.vue
index a22238ad..bb52fbef 100644
--- a/src/views/MarketingCenter/BidBond/index.vue
+++ b/src/views/MarketingCenter/BidBond/index.vue
@@ -113,7 +113,7 @@
- {{ scope.row.应收回金额 }}
+ {{ Number(scope.row.应收回金额).toFixed(2) }}
未收回
@@ -167,7 +167,7 @@
-
+
@@ -609,7 +609,7 @@ export default {
保证金金额: [{ required: true, message: '请输入保证金金额', trigger: 'blur' }, { required: true, trigger: 'change', validator: validateValue }],
保证金类型: [{ required: true, message: '请输入保证金类型', trigger: 'change' }],
投标人: [{ required: true, message: '请输入投标人', trigger: 'change' }],
- // 投标日期: [{ required: true, message: '请选择收回日期', trigger: 'change' }],
+ 投标日期: [{ required: true, message: '请选择收回日期', trigger: 'change' }],
计划收回日期: [{ required: true, message: '请选择计划收回日期', trigger: 'change' }],
提前X天提醒我: [{ required: true, message: '提前X天提醒我', trigger: 'blur' }]
}
diff --git a/src/views/Outsourcing/OutFactoryMaintenance/index.vue b/src/views/Outsourcing/OutFactoryMaintenance/index.vue
index 9b2e1617..8c4d1556 100644
--- a/src/views/Outsourcing/OutFactoryMaintenance/index.vue
+++ b/src/views/Outsourcing/OutFactoryMaintenance/index.vue
@@ -4,7 +4,7 @@
查询
- 新增
+ 外协厂家
@@ -33,11 +33,6 @@
{{ scope.row.电话 }}
-
-
- {{ scope.row.银行 }}
-
-
{{ scope.row.备注 }}
@@ -94,20 +89,20 @@
-
-
+
+
-
+
-
-
+
+
diff --git a/src/views/Outsourcing/OutsourcingPartsQuery/index.vue b/src/views/Outsourcing/OutsourcingPartsQuery/index.vue
index be646140..2fdcd7c6 100644
--- a/src/views/Outsourcing/OutsourcingPartsQuery/index.vue
+++ b/src/views/Outsourcing/OutsourcingPartsQuery/index.vue
@@ -2,8 +2,8 @@
-
-
+
+
{
for (let i = 0; i < response.data.rows.length; i++) {
this.tableData1.push({
- 到货状态: response.data.rows[i].到货状态,
+ 到货状态: response.data.rows[i].到货状态 === '0' ? '未到' : '已到',
项目名称: response.data.rows[i].项目名称,
零件图号: response.data.rows[i].零件图号,
零件名称: response.data.rows[i].零件名称,
@@ -147,7 +147,7 @@ export default {
表单号: response.data.rows[i].表单号,
工艺计划流水号: response.data.rows[i].工艺计划流水号,
单件是否外协: response.data.rows[i].单件是否外协,
- 任务下达日期: response.data.rows[i].任务下达日期,
+ 任务下达日期: response.data.rows[i].任务下达日期 ? response.data.rows[i].任务下达日期.split(' ')[0] : '',
外协工序: ''
})
}
diff --git a/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue b/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue
index 9a715fa3..59ed0f2c 100644
--- a/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue
+++ b/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue
@@ -4,6 +4,17 @@
+
查询
@@ -45,18 +56,18 @@
@current-change="handleCurrentChange"/>
-
+
开票明细:
- 新增
+ 开票
-
+
{{ scope.row.发票号 }}
-
+
{{ scope.row.开票金额 }}
@@ -66,7 +77,7 @@
{{ scope.row.开票时间 }}
-
+
编辑
删除
@@ -85,10 +96,10 @@
@current-change="handleCurrentChange2"/>
-
+
付款明细:
- 新增
+ 付款
@@ -101,7 +112,7 @@
{{ scope.row.付款日期 }}
-
+
编辑
删除
@@ -209,6 +220,7 @@ export default {
id_edit1: '',
param1: 0,
title1: '',
+ startTime: '',
dialogFormVisible1: false,
form1: {
发票号: '',
@@ -242,9 +254,10 @@ export default {
this.loading = true
this.tableData = []
var check
- var check2 = 0
+ var check2
+ this.startTime ? check2 = 1 : (check2 = 0, this.startTime = '')
this.ManufacturerName ? check = 1 : check = 0
- searchtable(check, this.ManufacturerName, check2, '', '', this.pageCurrent, this.pageSize).then(response => {
+ searchtable(check, this.ManufacturerName, check2, this.startTime[0], this.startTime[1], this.pageCurrent, this.pageSize).then(response => {
this.loading = false
if (response.data.rows.length !== 0) {
this.tableData = response.data.rows
@@ -259,14 +272,16 @@ export default {
this.tableData2 = []
this.loading3 = true
this.tableData3 = []
- getInvoice(row.外协厂家流水号, this.pageCurrent2, this.pageSize2).then(response => {
+ var check2
+ this.startTime ? check2 = 1 : (check2 = 0, this.startTime = '')
+ getInvoice(row.外协厂家流水号, check2, this.startTime[0], this.startTime[1], this.pageCurrent2, this.pageSize2).then(response => {
this.loading2 = false
if (response.data.rows.length !== 0) {
this.tableData2 = response.data.rows
this.total2 = response.data.total
}
})
- getPayment(row.外协厂家流水号, this.pageCurrent2, this.pageSize2).then(response => {
+ getPayment(row.外协厂家流水号, check2, this.startTime[0], this.startTime[1], this.pageCurrent2, this.pageSize2).then(response => {
this.loading3 = false
if (response.data.rows.length !== 0) {
this.tableData3 = response.data.rows
diff --git a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
index 5482254d..afaf8490 100644
--- a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
+++ b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
@@ -35,11 +35,11 @@
-
- 查询
+
+ 查询
- 新增
-
+ 新增
+
{{ scope.row.表单号 }}
@@ -57,27 +57,16 @@
-
-
-
选入零件
导出任务单
- 提交
+ 提交
- 保存
+ 保存
@@ -103,7 +92,7 @@
-
+
@@ -284,29 +273,18 @@ export default {
])
},
created() {
- this.fetchData()
this.getList()
},
methods: {
// 初始化查询
fetchData() {
- this.ManufacturerName = []
- initOutHelp().then(response => {
- for (let i = 0; i < response.data.length; i++) {
- this.ManufacturerName.push({
- label: response.data[i].外协厂家名称,
- value: response.data[i].外协厂家流水号
- })
- }
- })
this.loading2 = true
this.List = []
this.List3 = []
this.Number = ''
this.manufacturers ? this.num1 = 1 : this.num1 = 0
- getTable(this.num1, this.manufacturers, this.isChecked, this.currentPage, this.pageSize).then(response => {
- this.total = parseInt(response.data.total)
- this.List = response.data.rows
+ getTable(this.num1, this.manufacturers, this.isChecked).then(response => {
+ this.List = response.data
})
this.loading2 = false
},
@@ -326,6 +304,15 @@ export default {
},
// 查询未选入零件
getList() {
+ this.ManufacturerName = []
+ initOutHelp().then(response => {
+ for (let i = 0; i < response.data.length; i++) {
+ this.ManufacturerName.push({
+ label: response.data[i].外协厂家名称,
+ value: response.data[i].外协厂家流水号
+ })
+ }
+ })
this.partNumber ? this.check = 1 : this.check = 0
this.loading1 = true
this.List1 = []
@@ -349,7 +336,19 @@ export default {
this.Number = row.外协加工任务单流水号
this.ManufactorNumber = row.外协厂家流水号
getParts(row.外协加工任务单流水号).then(response => {
- this.List3 = response.data
+ if (response.data.length !== 0) {
+ for (let i = 0; i < response.data.length; i++) {
+ this.List3.push({
+ 外协加工任务单明细流水号: response.data[i].外协加工任务单明细流水号,
+ 加工价格_成交: response.data[i].加工价格_成交.toFixed(2),
+ 机加工开始时间: response.data[i].机加工开始时间,
+ 零件图号: response.data[i].零件图号,
+ 零件名称: response.data[i].零件名称,
+ 批次数量: response.data[i].批次数量,
+ 外协工序: response.data[i].外协工序
+ })
+ }
+ }
this.loading = false
})
},
@@ -429,9 +428,11 @@ export default {
message: '信息添加成功',
type: 'success'
})
- this.dialogFormVisible = false
this.title = ''
+ this.manufacturers = this.form.表单号
+ console.log(this.manufacturers, 111111)
this.fetchData()
+ this.dialogFormVisible = false
} else {
this.$message.error('信息添加失败')
}
@@ -451,7 +452,7 @@ export default {
},
// 删除任务单
handleDelete(row) {
- this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
+ this.$confirm('该表单外协任务将释放', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@@ -499,6 +500,7 @@ export default {
this.List3 = []
getParts(this.Number).then(response => {
this.List3 = response.data
+ this.getList()
this.loading = false
})
})
@@ -574,7 +576,7 @@ export default {
},
// 移除
handleDelete1(row) {
- this.$confirm('此操作将移除该行, 是否继续?', '提示', {
+ this.$confirm('确定取消该条外协任务吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
diff --git a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue
index 3aa16475..857dbcd7 100644
--- a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue
+++ b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue
@@ -11,9 +11,20 @@
打回重新分配
-
+
-
+
{{ scope.row.机床图号 }}
@@ -28,7 +39,7 @@
{{ scope.row.零件图号 }}
-
+
{{ scope.row.零件名称 }}
@@ -38,7 +49,7 @@
{{ scope.row.批次数量 }}
-
+
{{ scope.row.材料 }}
@@ -83,7 +94,7 @@
查询
- 新增
+ 外购备料
选入
@@ -395,6 +406,8 @@ export default {
pageCurrent: 1,
pageSize: 10,
total: null,
+ partName: '',
+ order: '',
partDrawingNumber: '',
Buyer: '',
loading1: false,
@@ -482,10 +495,42 @@ export default {
},
created() {
this.searchRawMaterial()
+ this.getCurrentTime()
+ this.searchTable2()
// this.searchTable1()
// this.searchTable2()
},
methods: {
+ getCurrentTime() {
+ this.dateRange = [this.getTime1(70), this.getTime0(0)]
+ },
+ getTime0(num) {
+ var date0 = new Date()
+ var date = new Date(date0.getTime() + num * 24 * 60 * 60 * 1000)
+ var month = this.zeroFill(date.getMonth() + 1)
+ var day = this.zeroFill(date.getDate())
+ var hour = this.zeroFill(date.getHours())
+ var minute = this.zeroFill(date.getMinutes())
+ var second = this.zeroFill(date.getSeconds())
+ return date.getFullYear() + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second
+ },
+ getTime1(num) {
+ var date0 = new Date()
+ var date = new Date(date0.getTime() - num * 24 * 60 * 60 * 1000)
+ var month = this.zeroFill(date.getMonth() + 1)
+ var day = this.zeroFill(date.getDate())
+ var hour = this.zeroFill(date.getHours())
+ var minute = this.zeroFill(date.getMinutes())
+ var second = this.zeroFill(date.getSeconds())
+ return date.getFullYear() + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second
+ },
+ zeroFill(i) {
+ if (i >= 0 && i <= 9) {
+ return '0' + i
+ } else {
+ return i
+ }
+ },
// 获取原材料
searchRawMaterial() {
searchSupplier(0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '', 0, '').then(response => {
@@ -562,6 +607,23 @@ export default {
img.src = url
})
},
+ sortChange(column, prop, order) {
+ console.log(column + '-' + column.prop + '-' + column.order, 11111)
+ if (column.prop === '零件名称') {
+ this.partName = 1
+ } else if (column.prop === '机床图号') { this.partName = 2 } else if (column.prop === '材料') {
+ this.partName = 3
+ } else {
+ this.partName = ''
+ }
+ console.log(this.ordername, 9990999)
+ if (column.order === 'ascending') {
+ this.order = 1
+ } else if (column.order === 'descending') { this.order = 2 } else {
+ this.order = ''
+ }
+ this.searchTable1()
+ },
fetchData() {
initPartDrawing(0, this.partDrawingNumberValue).then(response => {
for (let i = 0; i < response.data.length; i++) {
@@ -576,7 +638,7 @@ export default {
this.loading1 = true
this.partDrawingNumber ? this.check1 = 1 : this.check1 = 0
// this.pageCurrent1, this.pageSize1,
- searchPurchasedMaterials(this.check1, this.partDrawingNumber).then(response => {
+ searchPurchasedMaterials(this.check1, this.partDrawingNumber, this.order, this.partName).then(response => {
this.tableData1 = response.data
this.total1 = response.data.total
this.loading1 = false
@@ -706,27 +768,15 @@ export default {
}))
},
exportExcel2(row) {
- this.searchTable3(row).then(val => {
- console.log(row, 11111)
- console.log(this.tableData4)
- if (this.tableData4.length !== 0) {
- import('@/vendor/Export2Excel').then(excel => {
- const tHeader = ['备料状态', '物料编码', '零件名称', '材料', '数量', '成品尺寸', '单位', '备注']
- const filterVal = ['备料状态', '物料零件编码', '零件名称', '材料', '总数量', '成品尺寸', '单位', '备注1']
- const list = this.tableData4
- const data = this.formatJson(filterVal, list)
- excel.export_json_to_excel({
- header: tHeader,
- data,
- filename: row.采购单名称 + '-' + row.计划完成日期,
- autoWidth: true,
- bookType: 'xlsx'
- })
- })
- } else {
- this.$message.warning('没有导出内容')
- }
- })
+ if (this.tableData4.length !== 0) {
+ var param = []
+ param[0] = ['采购计划流水号', row.采购计划流水号]
+ param[1] = ['供应商', row.供应商名称]
+ var Data = this.CreateData('2001', '报表_备料管理_采购计划明细_查询数据', param)
+ this.exportExcel_NPOI(Data)
+ } else {
+ this.$message.warning('暂无数据')
+ }
},
searchTable3(row) { // 查询采购计划明细
this.purchasingOrderNumber = row.采购计划流水号
diff --git a/src/views/WorkshopProcurement/NewArrivalList/index.vue b/src/views/WorkshopProcurement/NewArrivalList/index.vue
index 9c03e274..e2b3cfeb 100644
--- a/src/views/WorkshopProcurement/NewArrivalList/index.vue
+++ b/src/views/WorkshopProcurement/NewArrivalList/index.vue
@@ -4,35 +4,33 @@
- 供应商:
-
+
- 请款时间段:
- 查询
+ 查询
新增到货单
+ 导出
-
- 到货单
-
-
+
+
+
已结算
未结算
@@ -73,21 +71,8 @@
-
-
-
-
- 到货单明细
- 导出
+
-
+
{{ scope.row.单价.toFixed(2) }}
-
+
{{ (parseInt(scope.row.金额 * 100) / 100).toFixed(2) }}
@@ -144,7 +129,6 @@
- 关联备料材料
@@ -175,22 +159,22 @@
{{ scope.row.数量 }}
-
-
- {{ scope.row.成品尺寸 }}
-
-
-
-
- {{ scope.row.重量 }}
-
-
-
+
{{ scope.row.单位 }}
-
+
+
+ {{ scope.row.成品尺寸 }}
+
+
+
+
+ {{ scope.row.重量 }}
+
+
+
{{ (parseInt(scope.row.金额 * 100) / 100).toFixed(2) }}
@@ -212,24 +196,23 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+