diff --git a/src/views/modules/part/routingManagement.vue b/src/views/modules/part/routingManagement.vue
index 1a1f1b2..62a2fb1 100644
--- a/src/views/modules/part/routingManagement.vue
+++ b/src/views/modules/part/routingManagement.vue
@@ -350,6 +350,7 @@
-
+
关闭
@@ -864,6 +865,7 @@
-
-
- 新增
- 料号导入
- Excel导入
-
+ 新增
+ 料号导入
+ Excel导入
+
{{ '导出' }}
-
+
-->
+
+
+
+
@@ -509,7 +519,6 @@
:height="300"
:data="itemModalList"
border
- v-loading="dataListLoading"
style="width: 100%;">
-
+
@@ -840,13 +849,17 @@ import {
partDesc: '',
partNos: '',
page: 1,
- limit: 10
+ limit: 10,
+ page2: 1,
+ limit2: 10
},
pageIndex: 1,
pageSize: 20,
totalPage: 0,
+ pageIndex2: 1,
+ pageSize2: 20,
+ totalPage2: 0,
visible: false,
- dataListLoading: false,
currentRow: '',
columnList:[
{
@@ -938,7 +951,7 @@ import {
columnProp: "statusDesc",
headerAlign: "center",
align: "center",
- columnLabel: "物料状态",
+ columnLabel: "物料来源",
columnHidden: false,
columnImage: false,
status: true,
@@ -1484,6 +1497,19 @@ import {
this.searchTypeChange()
},
+ // 子明细每页数
+ sizeChangeHandle2 (val) {
+ this.pageSize2 = val
+ this.pageIndex2 = 1
+ this.searchTable()
+ },
+
+ // 子明细当前页
+ currentChangeHandle2 (val) {
+ this.pageIndex2 = val
+ this.searchTable()
+ },
+
// 获取用户的bu
getBuBySite () {
let tempData = {
@@ -1637,20 +1663,28 @@ import {
partNo: '',
partDesc: '',
partNos: '',
+ page2: 1,
+ limit2: 10
}
//刷新表格
this.searchTable()
},
- searchTable(){
+ searchTable () {
+ this.searchData.limit2 = this.pageSize2
+ this.searchData.page2 = this.pageIndex2
getProjectInfoPartList(this.searchData).then(({data}) => {
//区分请求成功和失败的状况
if (data && data.code === 0) {
- this.dataList = data.rows
+ // this.dataList = data.rows
+ this.dataList = data.page.list
+ this.pageIndex2 = data.page.currPage
+ this.pageSize2 = data.page.pageSize
+ this.totalPage2 = data.page.totalCount
} else {
this.dataList = []
}
- });
+ })
},
addModal () {
@@ -2092,6 +2126,7 @@ import {
this.searchData.partNos = ''
this.handleGetProjectPartList();
},
+
handleGetProjectPartList(){
this.searchData.limit = this.pageSize
this.searchData.page = this.pageIndex
@@ -2112,7 +2147,7 @@ import {
let partNos = this.partList2.map(part => part.partNo)
// 使用 join 将 partNo 连接成一个字符串
this.searchData.partNos = partNos.join(",")
- this.handleGetProjectPartList();
+ this.handleGetProjectPartList()
},
// 关闭后刷新列表
@@ -2415,7 +2450,6 @@ import {
message: '刷新成功',
type: 'success',
duration: 1500,
-
onClose: () => {
}
})
@@ -2426,16 +2460,16 @@ import {
}
})
},
+
//导出excel
createExportData() {
- return this.dataList;
+ return this.dataList
},
- startDownload() {
- // this.exportData = this.dataList
- },
- finishDownload() {
- },
+ startDownload() {},
+
+ finishDownload() {},
+
fields() {
let json = "{"
this.columnList.forEach((item, index) => {
@@ -2447,9 +2481,9 @@ import {
})
json += "}"
let s = eval("(" + json + ")")
-
return s
},
+
closeDataFromDialog(){
this.dataForm={
id:0,
diff --git a/src/views/modules/project/projectInfo/projectInfo.vue b/src/views/modules/project/projectInfo/projectInfo.vue
index 497d174..20e95da 100644
--- a/src/views/modules/project/projectInfo/projectInfo.vue
+++ b/src/views/modules/project/projectInfo/projectInfo.vue
@@ -67,12 +67,11 @@
:label="item.columnLabel">
{{scope.row[item.columnProp]}}
-
+
-
+
-
+
+
@@ -2015,8 +2015,10 @@
}
-