This commit is contained in:
2022-10-14 09:34:25 +08:00
parent cb123d08ce
commit 465fbbf429
5 changed files with 24 additions and 38 deletions

View File

@@ -98,16 +98,12 @@
/** 生产区域下拉框查询 */ /** 生产区域下拉框查询 */
async _queryProductArea () { async _queryProductArea () {
let res = await queryProductArea() let res = await queryProductArea()
this.options = [...res.rows] this.options = [...res.data]
}, },
/** 初始化查询 */ /** 初始化查询 */
async _queryMaterialInfo () { async _queryMaterialInfo () {
let area = '' let res = await queryMaterialInfo1(this.val1, this.val2, this.index)
if (this.index !== '') { this.dataList = [...res.data]
area = this.options[this.index].value
}
let res = await queryMaterialInfo1(this.val1, this.val2, area)
this.dataList = [...res.rows]
}, },
/** 确认 */ /** 确认 */
async _emptyConfirm () { async _emptyConfirm () {
@@ -140,6 +136,6 @@
width 92rpx width 92rpx
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2) .slide_new table td:nth-child(2), .slide_new table th:nth-child(2)
position sticky position sticky
left 92rpx left 89rpx
z-index 102 z-index 102
</style> </style>

View File

@@ -115,19 +115,15 @@
/** 生产区域下拉框查询 */ /** 生产区域下拉框查询 */
async _queryProductArea () { async _queryProductArea () {
let res = await queryProductArea() let res = await queryProductArea()
this.options = [...res.rows] this.options = [...res.data]
}, },
/** 初始化查询 */ /** 初始化查询 */
async _queryMaterialInfo () { async _queryMaterialInfo () {
let area = '' let res = await queryMaterialInfo2(this.val1, this.index)
if (this.index !== '') { res.data.map(el => {
area = this.options[this.index].value
}
let res = await queryMaterialInfo2(this.val1, area)
res.rows.map(el => {
this.$set(el, 'checked', false) this.$set(el, 'checked', false)
}) })
this.dataList = [...res.rows] this.dataList = [...res.data]
}, },
/** 确认 */ /** 确认 */
async _casingConfirm () { async _casingConfirm () {
@@ -160,11 +156,11 @@
width 92rpx width 92rpx
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2) .slide_new table td:nth-child(2), .slide_new table th:nth-child(2)
position sticky position sticky
left 92rpx left 89rpx
width 92rpx width 92rpx
z-index 102 z-index 102
.slide_new table td:nth-child(3), .slide_new table th:nth-child(3) .slide_new table td:nth-child(3), .slide_new table th:nth-child(3)
position sticky position sticky
left 184rpx left 176rpx
z-index 103 z-index 103
</style> </style>

View File

@@ -117,19 +117,15 @@
/** 生产区域下拉框查询 */ /** 生产区域下拉框查询 */
async _queryProductArea () { async _queryProductArea () {
let res = await queryProductArea() let res = await queryProductArea()
this.options = [...res.rows] this.options = [...res.data]
}, },
/** 初始化查询 */ /** 初始化查询 */
async _queryMaterialInfo () { async _queryMaterialInfo () {
let area = '' let res = await queryMaterialInfo3(this.val1, this.val2, this.index)
if (this.index !== '') { res.data.map(el => {
area = this.options[this.index].value
}
let res = await queryMaterialInfo3(this.val1, this.val2, area)
res.rows.map(el => {
this.$set(el, 'checked', false) this.$set(el, 'checked', false)
}) })
this.dataList = [...res.rows] this.dataList = [...res.data]
}, },
/** 呼叫载具 */ /** 呼叫载具 */
async _needVehicle () { async _needVehicle () {
@@ -180,11 +176,11 @@
width 92rpx width 92rpx
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2) .slide_new table td:nth-child(2), .slide_new table th:nth-child(2)
position sticky position sticky
left 92rpx left 89rpx
width 92rpx width 92rpx
z-index 102 z-index 102
.slide_new table td:nth-child(3), .slide_new table th:nth-child(3) .slide_new table td:nth-child(3), .slide_new table th:nth-child(3)
position sticky position sticky
left 184rpx left 176rpx
z-index 103 z-index 103
</style> </style>

View File

@@ -105,19 +105,15 @@
/** 生产区域下拉框查询 */ /** 生产区域下拉框查询 */
async _queryProductArea () { async _queryProductArea () {
let res = await queryProductArea() let res = await queryProductArea()
this.options = [...res.rows] this.options = [...res.data]
}, },
/** 初始化查询 */ /** 初始化查询 */
async _queryMaterialInfo () { async _queryMaterialInfo () {
let area = '' let res = await queryMaterialInfo4(this.val1, this.index)
if (this.index !== '') { res.data.map(el => {
area = this.options[this.index].value
}
let res = await queryMaterialInfo4(this.val1, area)
res.rows.map(el => {
this.$set(el, 'checked', false) this.$set(el, 'checked', false)
}) })
this.dataList = [...res.rows] this.dataList = [...res.data]
}, },
/** 确认 */ /** 确认 */
async _outConfirm () { async _outConfirm () {
@@ -150,11 +146,11 @@
width 92rpx width 92rpx
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2) .slide_new table td:nth-child(2), .slide_new table th:nth-child(2)
position sticky position sticky
left 92rpx left 89rpx
width 92rpx width 92rpx
z-index 102 z-index 102
.slide_new table td:nth-child(3), .slide_new table th:nth-child(3) .slide_new table td:nth-child(3), .slide_new table th:nth-child(3)
position sticky position sticky
left 184rpx left 176rpx
z-index 103 z-index 103
</style> </style>

View File

@@ -124,4 +124,6 @@
border-radius 46rpx border-radius 46rpx
_font(36rpx,92rpx,#fff,,center) _font(36rpx,92rpx,#fff,,center)
background-color $red background-color $red
.content
height: 100%
</style> </style>