|
|
@ -60,6 +60,7 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
import { materialRequestByType } from '@/api/wms-api' |
|
|
|
import { tableMixins } from "@/mixins/TableMixins" |
|
|
|
import { LoadingMixins } from "@/mixins/LoadingMixins" |
|
|
|
import { drawerMixins } from "@/mixins/drawerMixins" |
|
|
@ -112,6 +113,24 @@ export default { |
|
|
|
mounted () { |
|
|
|
this.paging(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//渲染数据 |
|
|
|
paging() { |
|
|
|
this.Loading.tableLoading = true; |
|
|
|
this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount |
|
|
|
// 报废请求类型: 人工报废:Scrap_Manual; 线边报废:Scrap_WIP; 完工报废:Scrap_Product |
|
|
|
let params = { |
|
|
|
type: 'Scrap_Product' |
|
|
|
} |
|
|
|
materialRequestByType(this.PageListParams, this.URL + '/by-type', params).then(res => { |
|
|
|
this.tableData = res.items |
|
|
|
this.totalCount = res.totalCount |
|
|
|
this.pagingCallback() |
|
|
|
}).catch(err => { |
|
|
|
this.Loading.tableLoading = false |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
<style lang="scss" scoped> |
|
|
|