|
@@ -13,7 +13,7 @@
|
|
|
<div
|
|
|
class="mianliao"
|
|
|
:style="
|
|
|
- params.technologyType == 4 ? 'border:2px solid #0077ff' : ''
|
|
|
+ params.technologyType == 5 ? 'border:2px solid #0077ff' : ''
|
|
|
"
|
|
|
style="width: 50%"
|
|
|
@click="mianliaoTbleLineCk({ name: '面料' }, 5)"
|
|
@@ -55,7 +55,7 @@
|
|
|
<div
|
|
|
class="moshui"
|
|
|
style="width: 40%"
|
|
|
- @click="mianliaoTbleLineCk({ name: '墨水' }, 3)"
|
|
|
+ @click="moshuiCk"
|
|
|
:style="
|
|
|
params.technologyType == 3 ? 'border:2px solid #0077ff' : ''
|
|
|
"
|
|
@@ -330,7 +330,7 @@
|
|
|
<!-- 分页 -->
|
|
|
<div class="table-page">
|
|
|
<Page
|
|
|
- :current="params.pageIndex"
|
|
|
+ :current="params.pageNum"
|
|
|
:total="params.total"
|
|
|
:show-total="true"
|
|
|
:page-size="20"
|
|
@@ -522,7 +522,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
params: {
|
|
|
- pageIndex: 1,
|
|
|
+ pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
total: 0,
|
|
|
inventoryResults: '1',
|
|
@@ -548,18 +548,20 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
rowClassName2(row, index) {
|
|
|
-
|
|
|
- if (index == this.params.technologyType) {
|
|
|
- return 'table-info-row'
|
|
|
- }
|
|
|
- if(index == 3 && this.params.technologyType == 4){
|
|
|
- return 'table-info-row'
|
|
|
+ if(this.params.technologyType == 4){
|
|
|
+ if(index == 3) return 'table-info-row'
|
|
|
+ }else{
|
|
|
+ if (index == this.params.technologyType && this.params.technologyType != 3) {
|
|
|
+ return 'table-info-row'
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
getAll(){
|
|
|
this.params.technologyType = null
|
|
|
this.params.purpose = null
|
|
|
- this.params.pageIndex = 1
|
|
|
+ this.params.pageNum = 1
|
|
|
this.technologyTypeName = null
|
|
|
this.getList()
|
|
|
},
|
|
@@ -567,15 +569,22 @@ export default {
|
|
|
this.technologyTypeName = row.materialPurpose
|
|
|
this.params.purpose = row.materialPurpose
|
|
|
this.params.technologyType = null
|
|
|
- this.params.pageIndex = 1
|
|
|
+ this.params.pageNum = 1
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ moshuiCk(){
|
|
|
+ this.params.purpose = null
|
|
|
+ this.params.technologyType = 3
|
|
|
+ this.params.pageNum = 1
|
|
|
this.getList()
|
|
|
},
|
|
|
mianliaoTbleLineCk(row, index) {
|
|
|
-
|
|
|
+ this.technologyTypeName = null
|
|
|
this.params.purpose = null
|
|
|
- this.params.technologyType = index
|
|
|
- if(this.params.technologyType == 3){
|
|
|
+ if(index == 3){
|
|
|
this.params.technologyType = 4
|
|
|
+ }else{
|
|
|
+ this.params.technologyType = index
|
|
|
}
|
|
|
this.getList()
|
|
|
},
|
|
@@ -587,16 +596,20 @@ export default {
|
|
|
if (res.data.code == 200) {
|
|
|
for (let i = 0; i < res.data.data.records.length; i++) {
|
|
|
const element = res.data.data.records[i]
|
|
|
+ element.yilouSum = 0
|
|
|
+ element.yilouCount = 0
|
|
|
+ element.silouSum = 0
|
|
|
+ element.silouCount = 0
|
|
|
for (let j = 0; j < element.houseInfo.length; j++) {
|
|
|
const jelement = element.houseInfo[j]
|
|
|
console.log(jelement,123123123)
|
|
|
if ((jelement.houseName == '一楼面料仓库')) {
|
|
|
- element.yilouSum = jelement.sum
|
|
|
- element.yilouCount = jelement.count
|
|
|
+ element.yilouSum = jelement.sum || 0
|
|
|
+ element.yilouCount = jelement.count|| 0
|
|
|
}
|
|
|
if ((jelement.houseName == '四楼面料仓')) {
|
|
|
- element.silouSum = jelement.sum
|
|
|
- element.silouCount = jelement.count
|
|
|
+ element.silouSum = jelement.sum|| 0
|
|
|
+ element.silouCount = jelement.count|| 0
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -804,12 +817,12 @@ export default {
|
|
|
break
|
|
|
}
|
|
|
},
|
|
|
- changePage(pageIndex) {
|
|
|
- this.params.pageIndex = pageIndex
|
|
|
+ changePage(pageNum) {
|
|
|
+ this.params.pageNum = pageNum
|
|
|
this.getList()
|
|
|
},
|
|
|
search() {
|
|
|
- this.params.pageIndex = 1
|
|
|
+ this.params.pageNum = 1
|
|
|
// this.params.key = this.key
|
|
|
// this.params.materialCategoryCode = this.materialCategoryCode
|
|
|
this.getList()
|