Browse Source

供应商发票申请--数据量过大卡顿问题

master_hella_20240701
wangyufei 5 months ago
parent
commit
de403a1bb8
  1. 34
      src/components/TableForm/src/TableForm.vue
  2. 5
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  3. 5
      src/views/wms/countManage/count/countPlanMain/index.vue
  4. 5
      src/views/wms/countManage/count/countRequestMain/index.vue
  5. 5
      src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
  6. 5
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  7. 5
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  8. 5
      src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue
  9. 5
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  10. 5
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  11. 5
      src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
  12. 5
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  13. 5
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
  14. 22
      src/views/wms/inventoryManage/balance/index.vue
  15. 5
      src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue
  16. 5
      src/views/wms/inventoryManage/containerinit/containerRepair/index.vue
  17. 5
      src/views/wms/inventoryManage/containerinit/containerUnbindRecord/index.vue
  18. 5
      src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue
  19. 5
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue
  20. 5
      src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue
  21. 5
      src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue
  22. 5
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  23. 5
      src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue
  24. 5
      src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue
  25. 5
      src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue
  26. 5
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  27. 5
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue
  28. 4
      src/views/wms/issueManage/issue/issueJobMain/index.vue
  29. 5
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  30. 5
      src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue
  31. 5
      src/views/wms/issueManage/pick/pickRequestMain/index.vue
  32. 5
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  33. 5
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  34. 5
      src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue
  35. 5
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  36. 5
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  37. 5
      src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/index.vue
  38. 5
      src/views/wms/productionManage/processproduction/processproductionRequest/index.vue
  39. 5
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
  40. 5
      src/views/wms/productionManage/productionplan/productionMain/index.vue
  41. 5
      src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue
  42. 5
      src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue
  43. 5
      src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue
  44. 5
      src/views/wms/productionManage/productionplan/workMain/index.vue
  45. 5
      src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue
  46. 5
      src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue
  47. 5
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  48. 5
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  49. 5
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  50. 5
      src/views/wms/productionManage/productredress/productredressRequestMain/index.vue
  51. 5
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue
  52. 5
      src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue
  53. 5
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  54. 5
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  55. 6
      src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue
  56. 6
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue
  57. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue
  58. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  59. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue
  60. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  61. 6
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue
  62. 6
      src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue
  63. 6
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

34
src/components/TableForm/src/TableForm.vue

@ -4,7 +4,7 @@
<el-table class="multipleTableComponents"
ref="TableBaseComponents_Ref"
v-loading="tableLoading"
:data="tableData"
:data="showTableData()"
:max-height="maxHeight"
row-key="id"
:border="border"
@ -13,7 +13,7 @@
@row-click="handleTableSelect"
>
<!-- 删除按钮多选 -->
<el-table-column fixed="left" type="selection" width="50" v-if="isShowReduceButtonSelection" />
<el-table-column fixed="left" type="selection" width="50" v-if="isShowReduceButtonSelection" :reserve-selection="true" />
<!-- 删除按钮 -->
<el-table-column
fixed="left"
@ -26,10 +26,11 @@
<!-- 多选 -->
<el-table-column
fixed="left"
v-if="selectionTable"
:reserve-selection="true"
type="selection"
:width="50"
v-if="selectionTable"
/>
<!-- 序号 -->
<el-table-column
@ -314,6 +315,15 @@
<ButtonBase :Butttondata="[defaultButtons.mainListDeleteBtn(),]" @button-base-click="handleDeleteTable (row, $index)" />
</el-table-column>
</el-table>
<!-- :page-sizes="[ 10,20, 30, 50, 100]" sizes-->
<el-pagination v-show="tableData.length>5" style="margin-top:10px"
v-model:current-page="currentPage"
v-model:page-size="pageSize"
:small="true"
:background="false"
layout="total, prev, pager, next, jumper"
:total="tableData.length"
/>
<div class="button flex" v-if="isShowButton||isShowReduceButtonSelection">
<div class="p-12px" v-if="isShowButton" @click="handleAddTable">
<Icon icon="ep:circle-plus" color="#409eff" size="26" style="cursor: pointer;" />
@ -453,6 +463,11 @@ const tableSelectionChange = (val) => {
}
const handleSelectionDelete = ()=>{
emit('tableSelectionDelete', deleteTableData.value)
nextTick(()=>{
deleteTableData.value.forEach(row=>{
TableBaseComponents_Ref.value!.toggleRowSelection(row,false)
})
})
}
//
const tableSortChange = (column, prop, order) => {
@ -497,6 +512,9 @@ const validateForm = () => {
//
const handleDeleteTable = (row, index) => {
emit('handleDeleteTable', row, index)
nextTick(()=>{
TableBaseComponents_Ref.value!.toggleRowSelection(row,false)
})
}
//
const handleAddTable = () => {
@ -521,6 +539,16 @@ const buttonOperationClick = (row, label, index)=> {
emit("buttonOperationClick", row, label, index);
}
const currentPage =ref(1)
const pageSize = ref(10)
const showTableData = ()=>{
console.log('props.tableData',props.tableData)
if(props.tableData.length>100){
return props.tableData.slice((currentPage.value-1)*pageSize.value,currentPage.value*pageSize.value)
}else{
return props.tableData
}
}
// setup
defineExpose({
TableBaseComponents_Ref,

5
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -350,7 +350,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/countManage/count/countPlanMain/index.vue

@ -629,7 +629,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter((item) => !selection.includes(item))

5
src/views/wms/countManage/count/countRequestMain/index.vue

@ -507,7 +507,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue

@ -336,7 +336,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue

@ -348,7 +348,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -692,7 +692,10 @@ const searchTableSuccess1 = (formField, searchField, val, formRef, type, row) =>
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/deliversettlementManage/customersettle/customersettleRequestMain/index.vue

@ -359,7 +359,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -493,7 +493,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue

@ -450,7 +450,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue

@ -275,7 +275,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -375,7 +375,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue

@ -425,7 +425,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

22
src/views/wms/inventoryManage/balance/index.vue

@ -200,17 +200,17 @@ const handleSelectionPoint = async ()=>{
}
// -
const butttondata = [
// {
// label: '',
// name: 'bqxx',
// hide: false,
// type: 'primary',
// icon: '',
// color: '',
// link: true,
// float:'right',
// hasPermi: ''
// },
{
label: '标签信息',
name: 'bqxx',
hide: false,
type: 'primary',
icon: '',
color: '',
link: true,
float:'right',
hasPermi: ''
},
defaultButtons.mainListPointBtn(null), //
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //

5
src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue

@ -260,7 +260,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryManage/containerinit/containerRepair/index.vue

@ -259,7 +259,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryManage/containerinit/containerUnbindRecord/index.vue

@ -259,7 +259,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue

@ -428,7 +428,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue

@ -380,7 +380,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/containermanage/scrapContainerMainRequest/index.vue

@ -406,7 +406,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/inventoryinitial/inventoryinitRequestMain/index.vue

@ -408,7 +408,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -390,7 +390,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/sparepartsrequisition/sparepartsrequisitionRequestMain/index.vue

@ -371,7 +371,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/transferissue/transferissueRequestMain/index.vue

@ -398,7 +398,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/transferreceipt/transferreceiptRequestMain/index.vue

@ -379,7 +379,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -391,7 +391,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/index.vue

@ -600,7 +600,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

4
src/views/wms/issueManage/issue/issueJobMain/index.vue

@ -170,9 +170,9 @@ const butttondata = (row,$index) => {
return []
}
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // --
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
]
}

5
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -377,7 +377,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/issueManage/onlinesettlement/onlinesettlementRequestMain/index.vue

@ -289,7 +289,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/issueManage/pick/pickRequestMain/index.vue

@ -294,7 +294,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -432,7 +432,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -618,7 +618,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/issueManage/repleinsh/repleinshRequestMain/index.vue

@ -352,7 +352,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -417,7 +417,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -655,7 +655,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/offlinesettlement/offlinesettlementRequestMain/index.vue

@ -302,7 +302,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/processproduction/processproductionRequest/index.vue

@ -418,7 +418,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue

@ -538,7 +538,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productionplan/productionMain/index.vue

@ -450,7 +450,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productionplan/productionMainAssemble/index.vue

@ -438,7 +438,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productionplan/productionMainAssembleSparePart/index.vue

@ -438,7 +438,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productionplan/productionMainPredictSparePart/index.vue

@ -438,7 +438,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productionplan/workMain/index.vue

@ -262,7 +262,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productputaway/productputawayRequestMain/index.vue

@ -363,7 +363,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productputawayAssemble/productputawayAssembleRequestMain/index.vue

@ -355,7 +355,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -555,7 +555,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -557,7 +557,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -547,7 +547,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productredress/productredressRequestMain/index.vue

@ -396,7 +396,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -637,7 +637,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/index.vue

@ -344,7 +344,10 @@
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -699,7 +699,10 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -798,7 +798,10 @@ const searchTableSuccess1 = (formField, searchField, val, formRef, type, row) =>
}
//
const handleDeleteTable = (item, index, formRef) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
if (tableData.value.length == 0) {
isShowButton.value = true
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {

6
src/views/wms/purchasereceiptManage/putaway/putawayRequestMain/index.vue

@ -427,8 +427,12 @@ const handleAddTable = () => {
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
}
//
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

6
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptRequestMain/index.vue

@ -564,8 +564,12 @@ const handleAddTable = () => {
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
}
//
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

6
src/views/wms/purchasereceiptManage/supplierdeliver/demandforecastingMain/index.vue

@ -356,8 +356,12 @@ const handleAddTable = () => {
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
}
//
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

5
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -511,7 +511,10 @@ console.log('PurchaseMain.allSchemas.searchSchema',PurchaseMain.allSchemas.searc
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {

5
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -581,7 +581,10 @@ const handleSelectionPublish = async ()=>{
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

3
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -946,7 +946,8 @@ const handleAddTable = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.findIndex(item)
tableData.value.splice(itemIndex, 1)
}
//

6
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue

@ -68,8 +68,12 @@ const handleAddTable = () => {
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
}
//
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

6
src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/index.vue

@ -441,8 +441,12 @@
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys)))
}
//
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

6
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -254,6 +254,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
const newRow = {...row}
newRow[formField] = item[searchField]
if (formField == 'poLine') {
newRow['id'] = item['id']
newRow['poNumber'] = item['poNumber']
newRow['poLine'] = item['poLine']
newRow['tax'] =item['tax']
@ -851,7 +852,10 @@ const handleImport = () => {
}
//
const handleDeleteTable = (item, index) => {
tableData.value.splice(index, 1)
let itemIndex = tableData.value.indexOf(item)
if(itemIndex>-1){
tableData.value.splice(itemIndex, 1)
}
}
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))

Loading…
Cancel
Save