diff --git a/src/api/Assembly/SparePartsOutStockRecord.js b/src/api/Assembly/SparePartsOutStockRecord.js
index 09a480be..535fd937 100644
--- a/src/api/Assembly/SparePartsOutStockRecord.js
+++ b/src/api/Assembly/SparePartsOutStockRecord.js
@@ -24,14 +24,14 @@ export function searchgroup(num) {
})
}
// 车间生产管理工艺_备料管理_备料出库记录_视图_查询数据
-export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, pageCurrent, pageSize) {
+export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, pageCurrent, pageSize, ordername, order) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_备料管理_备料出库记录_视图_查询数据',
- param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件图号_check=' + check3 + '&零件图号=' + value3 + '&开始时间_check=' + check4 + '&开始时间=' + value4 + '&结束时间_check=' + check5 + '&结束时间=' + value5,
+ param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件图号_check=' + check3 + '&零件图号=' + value3 + '&开始时间_check=' + check4 + '&开始时间=' + value4 + '&结束时间_check=' + check5 + '&结束时间=' + value5 + '&排序名称=' + ordername + '&排序方式=' + order,
Pagination: pageCurrent + '&' + pageSize
}
})
diff --git a/src/api/ManufacturingCenter/CreatePreparationBill.js b/src/api/ManufacturingCenter/CreatePreparationBill.js
index 68838bd2..836545fd 100644
--- a/src/api/ManufacturingCenter/CreatePreparationBill.js
+++ b/src/api/ManufacturingCenter/CreatePreparationBill.js
@@ -1,14 +1,14 @@
import request from '@/utils/request'
// 查询零件
-export function searchtable(num1, num2, num3, num4, pageCurrent, pageSize) {
+export function searchtable(num1, num2, num3, num4, pageCurrent, pageSize, ordername, order) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '车间生产管理工艺_零件工艺计划_编制工艺_备料零件查询',
- param: '零件图号_check=' + num1 + '&零件图号=' + num2 + '&备料打印_check=' + num3 + '&备料打印=' + num4 + '&备料到货=0',
+ param: '零件图号_check=' + num1 + '&零件图号=' + num2 + '&备料打印_check=' + num3 + '&备料打印=' + num4 + '&备料到货=0' + '&排序名称=' + ordername + '&排序方式=' + order,
Pagination: pageCurrent + '&' + pageSize
}
})
diff --git a/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js b/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js
index 470c27a3..428d589e 100644
--- a/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js
+++ b/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js
@@ -7,8 +7,8 @@ export function getData(check, equipmentName, pageCurrent, pageSize) {
data: {
type: '1',
name: '设备管理_设备加工能力_查询数据_设备维护NEW',
- param: '设备名称_check=' + check + '=int&设备名称=' + equipmentName,
- pagination: pageCurrent + '&' + pageSize
+ param: '设备名称_check=' + check + '=int&设备名称=' + equipmentName
+ // pagination: pageCurrent + '&' + pageSize
}
})
}
diff --git a/src/api/MarketingCenter/CreateProject.js b/src/api/MarketingCenter/CreateProject.js
index d8ddfc41..56b739f1 100644
--- a/src/api/MarketingCenter/CreateProject.js
+++ b/src/api/MarketingCenter/CreateProject.js
@@ -17,8 +17,7 @@ export function searchTable1(pageCurrent, pageSize, num1, num3, num5, num6, num7
data: {
type: '1',
name: '合同信息管理_合同信息_制造部_查询_新',
- param: '合同ID=' + num1 + '=int&项目流水号_check=' + num3 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date&机床型号_check=' + num9 + '=int&机床型号=' + num10 + '=string&合同编号_check=' + num11 + '=int&合同编号=' + num12 + '=string',
- Pagination: pageCurrent + '&' + pageSize
+ param: '合同ID=' + num1 + '=int&项目流水号_check=' + num3 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date&机床型号_check=' + num9 + '=int&机床型号=' + num10 + '=string&合同编号_check=' + num11 + '=int&合同编号=' + num12 + '=string'
}
})
}
diff --git a/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js b/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js
index ef771d11..86973603 100644
--- a/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js
+++ b/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js
@@ -64,15 +64,15 @@ export function searchPurchasedMaterials(check1, name) {
})
}
// 查询采购单
-export function searchPurchaseOrder(pageCurrent, pageSize, check1, num, check2, name, check3, name2) {
+export function searchPurchaseOrder(check1, num, check2, name, check3, name2, checktime, starttime, endtime) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '备料管理_采购计划_查询数据',
- param: `采购单号_check=${check1}&采购单号=${num}&供应商名称_check=${check2}&供应商名称=${name}&供应商流水号_check=${check3}&供应商流水号=${name2}`,
- Pagination: pageCurrent + '&' + pageSize
+ param: `采购单号_check=${check1}&采购单号=${num}&供应商名称_check=${check2}&供应商名称=${name}&供应商流水号_check=${check3}&供应商流水号=${name2}&时间_check=${checktime}&开始时间=${starttime}&结束时间=${endtime}`
+ // Pagination: pageCurrent + '&' + pageSize
}
})
}
diff --git a/src/utils/request.js b/src/utils/request.js
index 924cfa7a..aae52c5b 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -7,6 +7,7 @@ export const name3 = `OP2000`
export const name4 = `OP9999`
// 创建axios实例
+
export const readFile = `http://123.56.95.229:8010/webpage/file/` // invoice
export const readImg = `http://123.56.95.229:8010/webpage/img/` // delivery/MS/performancebond
export const upload = `http://123.56.95.229:8010/submit/uploadFile.ashx` // ContractInformationManagement
@@ -19,6 +20,7 @@ export const uploadPerson = `http://123.56.95.229:8010/submit/uploadPerson.ashx`
export const uploadOP = `http://123.56.95.229:8010/submit/uploadOP.ashx`
export const url = `http://123.56.95.229:8010/submit/MESCommonBase.ashx` // 采购件入库、离线件入库
export const ExcelDownLoad = 'http://123.56.95.229:8010/submit/downloadFile.ashx' // 导出excel
+export const ExcelWaiGou = 'http://123.56.95.229:8010/submit/excel.ashx' // 导出excel
// 技术中心程序发布时要更改下面所有的IP到0段
export const ServerIP = `http://123.56.95.229:8010/webpage/file/`
export const uploadFileMachine = `http://123.56.95.229:8010/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231
diff --git a/src/views/Assembly/SparePartsOutStockRecord/index.vue b/src/views/Assembly/SparePartsOutStockRecord/index.vue
index 19e20790..63e5c46a 100644
--- a/src/views/Assembly/SparePartsOutStockRecord/index.vue
+++ b/src/views/Assembly/SparePartsOutStockRecord/index.vue
@@ -40,33 +40,33 @@
type="date"
placeholder="选择日期"/>
- 查询
+ 查询
-
-
-
- {{ scope.row.项目名称 }}
-
-
+
+
+
+
+
+
{{ scope.row.机床图号 }}
-
+
{{ scope.row.零件图号 }}
-
+
{{ scope.row.零件名称 }}
-
+
{{ scope.row.出库时间 | formatTime }}
@@ -105,7 +105,7 @@ export default {
tableData1: [],
loading: false,
total: null, // 总条数
- pageSize: 20, // 每页显示条数
+ pageSize: 40, // 每页显示条数
pageCurrent: 1 // 后台获取页
}
},
@@ -116,6 +116,25 @@ export default {
this.initProject()
},
methods: {
+ sortChange(column) {
+ console.log(column + '-' + column.prop + '-' + column.order, 11111)
+ if (column.prop === '零件名称') {
+ this.ordername = 1
+ } else if (column.prop === '零件图号') {
+ this.ordername = 2
+ } else if (column.prop === '出库时间') {
+ this.ordername = 3
+ } else {
+ this.ordername = ''
+ }
+ console.log(this.ordername, 9990999)
+ if (column.order === 'ascending') {
+ this.order = 1
+ } else if (column.order === 'descending') { this.order = 2 } else {
+ this.order = ''
+ }
+ this.selecttable()
+ },
initProject() {
initProject().then(response => {
for (let i = 0; i < response.data.length; i++) {
@@ -146,7 +165,7 @@ export default {
if (this.PartDrawingNumber !== '' && this.PartDrawingNumber !== null) { this.check3 = 1 } else { this.check3 = 0 }
if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 }
if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 }
- selecttable(this.check1, this.machineNumberValue, this.check2, this.groupNumberValue, this.check3, this.PartDrawingNumber, this.startTime_check, this.startTime, this.endTime_check, this.endTime, this.pageCurrent, this.pageSize).then(response => {
+ selecttable(this.check1, this.machineNumberValue, this.check2, this.groupNumberValue, this.check3, this.PartDrawingNumber, this.startTime_check, this.startTime, this.endTime_check, this.endTime, this.pageCurrent, this.pageSize, this.ordername, this.order).then(response => {
this.tableData1 = response.data.rows
this.loading = false
this.total = response.data.total
diff --git a/src/views/ManufacturingCenter/CreatePreparationBill/index.vue b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue
index a6e55c52..ba2627e9 100644
--- a/src/views/ManufacturingCenter/CreatePreparationBill/index.vue
+++ b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue
@@ -19,13 +19,26 @@
打印自家备料单
- 导出
+ 导出
-
+
+
未分配
-
+
{{ scope.row.零件名称 }}
-
+
+
{{ scope.row.零件图号 }}
@@ -133,13 +147,30 @@ export default {
tableData: [], // 表格数据
total: null, // 总条数
pageSize: 30, // 每页显示条数
- pageCurrent: 1 // 后台获取页
+ pageCurrent: 1, // 后台获取页
+ ordername: '',
+ order: ''
}
},
created() {
this.searchTable()
},
methods: {
+ sortChange(column, prop, order) {
+ console.log(column + '-' + column.prop + '-' + column.order, 11111)
+ if (column.prop === '零件名称') {
+ this.ordername = 1
+ } else if (column.prop === '零件图号') { this.ordername = 2 } else {
+ this.ordername = ''
+ }
+ console.log(this.ordername, 9990999)
+ if (column.order === 'ascending') {
+ this.order = 1
+ } else if (column.order === 'descending') { this.order = 2 } else {
+ this.order = ''
+ }
+ this.searchTable()
+ },
exportTable() {
if (this.tableData2.length === 0) {
this.$message.warning('暂无数据')
@@ -164,8 +195,7 @@ export default {
} else {
this.partNamecheck = false
}
- searchtable(this.partNamecheck, this.partName, !this.all, 0, this.pageCurrent, this.pageSize).then(response => {
- console.log(response)
+ searchtable(this.partNamecheck, this.partName, !this.all, 0, this.pageCurrent, this.pageSize, this.ordername, this.order).then(response => {
if (response.data.total === 0) {
this.loading = false
} else {
diff --git a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue
index f55d2415..f42b1569 100644
--- a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue
+++ b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue
@@ -69,7 +69,7 @@
- {{ scope.row.操作时间 }}
+ {{ scope.row.操作时间.substr(0,10) }}
diff --git a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue
index 98f8ef2d..ebb621c9 100644
--- a/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue
+++ b/src/views/ManufacturingCenter/WorkshopEquipmentManagement/index.vue
@@ -3,14 +3,27 @@
设备名称:
- 查询
+ 查询
- 新增
+ 新增
+
+ 有效时间:
+
+
+ 设定
+
+
+ 生成设备加工能力
-
+
{{ scope.row.设备名称 }}
@@ -68,32 +81,32 @@
-
-
-
-
-
- 有效时间:
-
-
- 设定
-
-
- 生成设备加工能力
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -240,8 +253,8 @@ export default {
this.check = 0
}
getData(this.check, this.equipmentName, this.pageCurrent, this.pageSize).then(response => {
- this.List = response.data.rows
- this.total = response.data.total
+ this.List = response.data
+ // this.total = response.data.total
})
},
initialization() {
@@ -399,4 +412,14 @@ export default {
.el-card{
margin-bottom: 1px;
}
+ /*.el-button--success {*/
+ /* background: #ecf5ff;*/
+ /* border-color: #2d72d5;*/
+ /* color: #2d72d5;*/
+ /*}*/
+ /*.el-button--primary {*/
+ /* background: #fdf6ec;*/
+ /* border-color: #ff9759;*/
+ /* color: #ff9759;*/
+ /*}*/
diff --git a/src/views/MarketingCenter/CreateProject/index.vue b/src/views/MarketingCenter/CreateProject/index.vue
index 892d0b23..c0fbeb02 100644
--- a/src/views/MarketingCenter/CreateProject/index.vue
+++ b/src/views/MarketingCenter/CreateProject/index.vue
@@ -9,7 +9,16 @@
:label="item.label"
:value="item.value"/>
-
+
+
+
@@ -30,9 +39,9 @@
- 查询
+ 查询
- 新增
+ 新增
@@ -45,7 +54,7 @@
:row-key="getRowKeys"
:expand-row-keys="expands"
style="width: 100%"
- height="500"
+ height="700"
border
stripe
size="mini"
@@ -95,16 +104,16 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -131,12 +140,12 @@
size="mini"
type="text"
icon="el-icon-edit"
- @click="editMachine(scope.row);flag = 2">编辑
+ @click="editMachine(scope.row);flag = 2"/>
删除
+ @click="deleteMachine(scope.row)"/>
@@ -221,6 +230,7 @@ export default {
machine: '',
startTime: '',
endTime: '',
+ date: null,
PageCurrent: 1,
PageSize: 10,
total: null,
@@ -266,7 +276,7 @@ export default {
},
created() {
this.init()
- this.fetchTableData1()
+ // this.fetchTableData1()
},
methods: {
init() {
@@ -282,13 +292,37 @@ export default {
this.fetchTableData1()
},
fetchTableData1() {
+ if (this.date !== null) {
+ this.startTime = this.datetoYYMMDD(this.date[0])
+ this.endTime = this.datetoYYMMDD(this.date[1])
+ } else {
+ this.startTime = ''
+ this.endTime = ''
+ }
if (this.contractNumber === '' || this.contractNumber === null) { this.contractNumber_check = 0 } else { this.contractNumber_check = 1 }
if (this.entryNameValue === '' || this.entryNameValue === null) { this.entryNameValue_check = 0 } else { this.entryNameValue_check = 1 }
if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 }
if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 }
if (this.machine === '' || this.machine === null) { this.machine_check = 0 } else { this.machine_check = 1 }
this.listLoading = true
- this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.entryNameValue_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime, this.machine_check, this.machine, this.contractNumber_check, this.contractNumber], ['tableData1', 'total', 'listLoading'])
+ searchTable1(this.PageCurrent, this.PageSize, this.entryNameValue, this.entryNameValue_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime, this.machine_check, this.machine, this.contractNumber_check, this.contractNumber).then(response => {
+ this.tableData1 = response.data
+ this.listLoading = false
+ })
+ // this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.entryNameValue_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime, this.machine_check, this.machine, this.contractNumber_check, this.contractNumber], ['tableData1', 'total', 'listLoading'])
+ },
+ // 标准时间转年月日
+ datetoYYMMDD(date) {
+ var y = date.getFullYear()
+ var m = date.getMonth() + 1
+ m = m < 10 ? ('0' + m) : m
+ var d = date.getDate()
+ d = d < 10 ? ('0' + d) : d
+ // var h = date.getHours()
+ // var minute = date.getMinutes()
+ // minute = minute < 10 ? ('0' + minute) : minute
+ // return y + '-' + m + '-' + d + ' ' + h + ':' + minute
+ return y + '-' + m + '-' + d
},
selectMachine(row) {
this.projectNum = row.项目流水号
@@ -421,7 +455,21 @@ export default {
diff --git a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
index 2e4839f4..ada8a541 100644
--- a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
+++ b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
@@ -4,7 +4,7 @@
零件号:
查询
- 打回车间
+ 打回车间
计算价格-->
选入零件
- 导出单据
+ 导出任务单
- 成交
+ 提交
保存
-
+
{{ 零件图号[scope.$index] }}
@@ -205,13 +205,13 @@
- 移除
+ 移出
-
+
@@ -315,7 +315,7 @@
-
+
@@ -682,9 +682,9 @@ export default {
submit(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
- if (this.title === '增加外协表单') {
+ if (this.title === '新增外协任务单') {
this.submitAdd()
- } else if (this.title === '编辑外协表单') {
+ } else if (this.title === '编辑外协任务单') {
this.submitEdit()
}
}
@@ -694,7 +694,7 @@ export default {
if (this.$refs['form'] !== undefined) {
this.$refs['form'].resetFields()
}
- this.title = '增加外协表单'
+ this.title = '新增外协任务单'
var time = new Date()
var month = time.getMonth() + 1
var day = time.getDate()
@@ -1145,7 +1145,7 @@ export default {
if (this.$refs['form'] !== undefined) {
this.$refs['form'].resetFields()
}
- this.title = '编辑外协表单'
+ this.title = '编辑外协任务单'
this.dialogFormVisible = true
this.form.表单号 = row.表单号
this.form.运费 = row.运费
diff --git a/src/views/Outsourcing/PreorderAssociation/index.vue b/src/views/Outsourcing/PreorderAssociation/index.vue
index 2eb8064b..50180b33 100644
--- a/src/views/Outsourcing/PreorderAssociation/index.vue
+++ b/src/views/Outsourcing/PreorderAssociation/index.vue
@@ -20,13 +20,8 @@
:value="item.value"/>
- 查询
+ 查询
-
{{ scope.row.零件图号 }}
@@ -42,11 +37,6 @@
{{ scope.row.材料 }}
-
-
-
-
-
{{ scope.row.批次数量 }}
@@ -68,7 +58,7 @@
- 保存
+ 保存
@@ -84,12 +74,6 @@
-
-
-
-
-
-
{{ scope.row.工艺名称 }}
@@ -125,6 +109,7 @@ export default {
count: 0, // 计数器 (表二是否有外协工序)
InOut: 1, // 工序间是否外协变量 1自家 2外协
index: 0, // 当前点击行(改变颜色不刷新用)
+ index2: 0, // 当前点击行(改变颜色不刷新用)
num1: '',
checkBox: [],
loading1: false,
@@ -217,6 +202,7 @@ export default {
this.loading2 = true
this.checkBox = []
this.tableData2 = []
+ this.index2 = row.index
searchTable2(row.工艺计划流水号).then(response => {
this.num1 = row.工艺计划流水号
if (response.data.length === 0) {
@@ -265,63 +251,14 @@ export default {
this.InOut = 2
edit(row.工序流水号, this.InOut).then(response => {
edit2(row.工序流水号, row.工艺计划流水号, 1).then(response => {
- this.$message.success('工序外协状态更改成功')
this.tableData2[this.index].工序间是否外协 = 2
- // this.loading2 = true
- // this.checkBox = []
- // this.tableData2 = []
- // searchTable2(this.num1).then(response => {
- // if (response.data.length === 0) {
- // this.loading0 = false
- // } else {
- // for (let i = 0; i < response.data.length; i++) {
- // if (response.data[i].工序间是否外协 === 1) {
- // this.checkBox.push(false)
- // } else {
- // this.checkBox.push(true)
- // }
- // }
- // for (let i = 0; i < response.data.length; i++) {
- // response.data[i].机加工开始时间 = response.data[i].机加工开始时间.split(' ')[0]
- // response.data[i].机加工结束时间 = response.data[i].机加工结束时间.split(' ')[0]
- // response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
- // }
- // this.tableData2 = response.data
- // }
- // }).then(() => {
- // this.loading2 = false
- // })
+ this.tableData1[this.index2].工序间是否外协 = 2
})
})
} else {
this.InOut = 1
edit(row.工序流水号, this.InOut).then(response => {
- this.$message.success('工序外协状态更改成功')
this.tableData2[this.index].工序间是否外协 = 1
- // this.loading2 = true
- // this.checkBox = []
- // this.tableData2 = []
- // searchTable2(this.num1).then(response => {
- // if (response.data.length === 0) {
- // this.loading0 = false
- // } else {
- // for (let i = 0; i < response.data.length; i++) {
- // if (response.data[i].工序间是否外协 === 1) {
- // this.checkBox.push(false)
- // } else {
- // this.checkBox.push(true)
- // }
- // }
- // for (let i = 0; i < response.data.length; i++) {
- // response.data[i].机加工开始时间 = response.data[i].机加工开始时间.split(' ')[0]
- // response.data[i].机加工结束时间 = response.data[i].机加工结束时间.split(' ')[0]
- // response.data[i].计划日期 = response.data[i].计划日期.split(' ')[0]
- // }
- // this.tableData2 = response.data
- // }
- // }).then(() => {
- // this.loading2 = false
- // })
})
}
},
diff --git a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue
index cbb498da..0aaae272 100644
--- a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue
+++ b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue
@@ -57,7 +57,7 @@
-
+
+ 日期
+
+ 查询
新增
选入
- 保存
+ 保存
-
+
编辑中
已保存
@@ -86,16 +100,17 @@
已结算
-
+
{{ scope.row.采购单号 }}
-
+
{{ scope.row.采购单名称 }}
+
{{ scope.row.供应商名称 }}
@@ -111,8 +126,13 @@
{{ scope.row.计划完成日期.split(' ')[0] }}
-
+
+
+
+ 导出
+
+
打印
@@ -131,6 +151,17 @@
+
+
+
+
+
+
+
+
+
+
+
-
+
未到货
已到货
@@ -312,6 +343,35 @@ export default {
name: '', // 采购计划
data() {
return {
+ dateRange: '',
+ checktime: '',
+ pickerOptions: {
+ shortcuts: [{
+ text: '上季度',
+ onClick(picker) {
+ const end = new Date()
+ const start = new Date()
+ start.setTime(end.getTime() - 3600 * 1000 * 24 * 30 * 3)
+ picker.$emit('pick', [start, end])
+ }
+ }, {
+ text: '过去半年',
+ onClick(picker) {
+ const end = new Date()
+ const start = new Date()
+ start.setTime(end.getTime() - 3600 * 1000 * 24 * 366 / 2)
+ picker.$emit('pick', [start, end])
+ }
+ }, {
+ text: '过去一年',
+ onClick(picker) {
+ const end = new Date()
+ const start = new Date()
+ start.setTime(end.getTime() - 3600 * 1000 * 24 * 365)
+ picker.$emit('pick', [start, end])
+ }
+ }]
+ },
RawMaterialGroup: [],
RawMaterialName: '',
tableData: [],
@@ -392,6 +452,7 @@ export default {
Remarks: [], // 备注组
tableData4: [], // 合同模板
采购计划状态: '',
+ 采购计划状态2: '',
paramRow: '' // 参数row
}
},
@@ -406,7 +467,7 @@ export default {
created() {
this.searchRawMaterial()
this.searchTable1()
- this.searchTable2()
+ // this.searchTable2()
},
methods: {
// 获取原材料
@@ -525,9 +586,10 @@ export default {
searchTable2() { // 查询采购单列表
this.purchasingOrder ? this.check3 = 1 : this.check3 = 0
this.supplierName0 ? this.check4 = 1 : this.check4 = 0
- searchPurchaseOrder(this.pageCurrent2, this.pageSize2, this.check3, this.purchasingOrder, 0, 0, this.check4, this.supplierName0).then(response => {
- this.tableData2 = response.data.rows
- this.total2 = response.data.total
+ this.dateRange ? this.checktime = 1 : (this.checktime = 0, this.dateRange = '')
+ searchPurchaseOrder(this.check3, this.purchasingOrder, 0, 0, this.check4, this.supplierName0, this.checktime, this.dateRange[0], this.dateRange[1]).then(response => {
+ this.tableData2 = response.data
+ // this.total2 = response.data.total
})
},
handleSizeChange2(val) { // 采购单列表分页
@@ -614,6 +676,34 @@ export default {
})
})
},
+ formatJson(filterVal, jsonData) {
+ return jsonData.map(v => filterVal.map(j => {
+ return v[j]
+ }))
+ },
+ exportExcel2(row) {
+ this.searchTable3(row).then(val => {
+ console.log(val)
+ 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: '详情',
+ autoWidth: true,
+ bookType: 'xlsx'
+ })
+ })
+ } else {
+ this.$message.warning('没有导出内容')
+ }
+ })
+ },
searchTable3(row) { // 查询采购计划明细
this.purchasingOrderNumber = row.采购计划流水号
this.采购单名称 = row.采购单名称
@@ -627,8 +717,8 @@ export default {
})
searchMateriel1(this.purchasingOrderNumber).then(response => {
this.tableData3 = response.data
- console.log(response.data)
})
+ return Promise.resolve(/* 这里是需要返回的数据*/)
},
addMateriel() { // 将材料选入请购单
if (!this.purchasingOrderNumber) {
diff --git a/src/views/WorkshopProcurement/NewArrivalList/index.vue b/src/views/WorkshopProcurement/NewArrivalList/index.vue
index ee6a0ea8..a8dbc081 100644
--- a/src/views/WorkshopProcurement/NewArrivalList/index.vue
+++ b/src/views/WorkshopProcurement/NewArrivalList/index.vue
@@ -83,6 +83,7 @@
到货单明细
+ 导出
- 时间段:
+ 时间段:
+
{
+ this.dateRange ? this.check4 = 1 : (this.check4 = 0, this.dateRange = '')
+ // this.startTime && this.endTime ? this.check4 = 1 : this.check4 = 0
+ searchInvoice(this.pageCurrent1, this.pageSize1, this.check1, this.invoiceNum, this.check2, this.supplierName0, this.check3, this.gongyingshangValue, this.check4, this.dateRange[0], this.dateRange[1]).then(response => {
for (let j = 0; j < response.data.rows.length; j++) {
response.data.rows[j].开票金额 = parseInt(response.data.rows[j].开票金额 * 100) / 100
if (response.data.rows[j].开票时间 !== null) {
diff --git a/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue b/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue
index 59bc807a..0790b283 100644
--- a/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue
+++ b/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue
@@ -1,35 +1,59 @@
- 请款时间段:
-
- 供应商:
-
-
-
+ 请款时间段:
+ 查询
-
-
- 请款
-
+ type="daterange"
+ align="center"
+ style="width: 300px;margin: 3px 0"
+ value-format="yyyy-MM-dd"
+ format="yyyy-MM-dd"
+ range-separator="~"
+ start-placeholder="开始日期"
+ end-placeholder="结束日期"/>
+ 供应商:
+
+
+ 查询
+
+
+ 请款
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+ highlight-current-row
+ @row-click="searchTable02">
+
{{ scope.row.供应商名称 }}
-
+
{{ scope.row.请款时间 | formatTime }}
-
+
{{ scope.row.姓名 }}
-
+
{{ parseFloat(scope.row.请款金额).toFixed(2) }}
-
-
-
- 未审批
- 已通过
- 不通过
-
-
-
-
- {{ scope.row.未通过审批原因 === '通过' ? '—' : scope.row.未通过审批原因 }}
-
-
-
-
- 未操作
- 已同意
- 不同意
-
-
-
-
- {{ scope.row.未付款原因 === '通过' ? '—' : scope.row.未付款原因 }}
-
-
+
+
+ 未审批
+ 已通过
+ 不通过
+
-
+
+
+ {{ scope.row.未通过审批原因 === '通过' ? '—' : scope.row.未通过审批原因 }}
+
+
+
+
+ 未操作
+ 已同意
+ 不同意
+
+
+
+
+ {{ scope.row.未付款原因 === '通过' ? '—' : scope.row.未付款原因 }}
+
+
+
@@ -133,7 +133,28 @@
@current-change="handleCurrentChange1"/>
-
+
+
+
+
+
供应商:
@@ -171,7 +192,6 @@
-