Browse Source

完工报废申请及记录修改接口

dev_web_online
陈薪名 2 years ago
parent
commit
6a69b073fa
  1. 19
      fe/PC/src/views/finishedProductManage/productReceipt/ProductReceiptScrapNote.vue
  2. 19
      fe/PC/src/views/finishedProductManage/productReceipt/ProductReceiptScrapRequest.vue
  3. 2
      fe/PC/src/views/inventoryManage/lineSideWarehouseScrapping/lineSideWarehouseScrappingNote.vue
  4. 2
      fe/PC/src/views/inventoryManage/lineSideWarehouseScrapping/lineSideWarehouseScrappingRequest.vue
  5. 2
      fe/PC/src/views/rawMaterialManage/scrap/ScrapNote.vue

19
fe/PC/src/views/finishedProductManage/productReceipt/ProductReceiptScrapNote.vue

@ -46,6 +46,7 @@
</div> </div>
</template> </template>
<script> <script>
import { materialRequestByType } from '@/api/wms-api'
import { tableMixins } from "@/mixins/TableMixins" import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins" import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins" import { drawerMixins } from "@/mixins/drawerMixins"
@ -75,6 +76,24 @@ export default {
mounted () { mounted () {
this.paging(); 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> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

19
fe/PC/src/views/finishedProductManage/productReceipt/ProductReceiptScrapRequest.vue

@ -60,6 +60,7 @@
</div> </div>
</template> </template>
<script> <script>
import { materialRequestByType } from '@/api/wms-api'
import { tableMixins } from "@/mixins/TableMixins" import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins" import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins" import { drawerMixins } from "@/mixins/drawerMixins"
@ -112,6 +113,24 @@ export default {
mounted () { mounted () {
this.paging(); 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> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

2
fe/PC/src/views/inventoryManage/lineSideWarehouseScrapping/lineSideWarehouseScrappingNote.vue

@ -98,7 +98,7 @@ export default {
paging() { paging() {
this.Loading.tableLoading = true; this.Loading.tableLoading = true;
this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount
// : :Scrap_Manual; 线:Scrap_WIP; // : :Scrap_Manual; 线:Scrap_WIP; :Scrap_Product
let params = { let params = {
type: 'Scrap_WIP' type: 'Scrap_WIP'
} }

2
fe/PC/src/views/inventoryManage/lineSideWarehouseScrapping/lineSideWarehouseScrappingRequest.vue

@ -97,7 +97,7 @@ export default {
paging() { paging() {
this.Loading.tableLoading = true; this.Loading.tableLoading = true;
this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount
// : :Scrap_Manual; 线:Scrap_WIP; // : :Scrap_Manual; 线:Scrap_WIP; :Scrap_Product
let params = { let params = {
type: 'Scrap_WIP' type: 'Scrap_WIP'
} }

2
fe/PC/src/views/rawMaterialManage/scrap/ScrapNote.vue

@ -82,7 +82,7 @@ export default {
paging() { paging() {
this.Loading.tableLoading = true; this.Loading.tableLoading = true;
this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount this.PageListParams.SkipCount = (this.oldSkipCount - 1) * this.PageListParams.MaxResultCount
// : :Scrap_Manual; 线:Scrap_WIP; // : :Scrap_Manual; 线:Scrap_WIP; :Scrap_Product
let params = { let params = {
type: 'Scrap_Manual' type: 'Scrap_Manual'
} }

Loading…
Cancel
Save