Browse Source

Merge branch 'hella_online_20240803' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into hella_online_20240803

linshi20240813
zhousq 3 months ago
parent
commit
3130e15fd5
  1. 1
      src/utils/dict.ts
  2. 19
      src/views/qms/inspectionJob/index.vue
  3. 2
      src/views/qms/inspectionJob/inspectionJobMain.data.ts
  4. 1551
      src/views/qms/inspectionJobProduction/addForm.vue
  5. 194
      src/views/qms/inspectionJobProduction/detail.vue
  6. 438
      src/views/qms/inspectionJobProduction/index.vue
  7. 864
      src/views/qms/inspectionJobProduction/inspectionJobMain.data.ts
  8. 1551
      src/views/qms/inspectionJobPurchase/addForm.vue
  9. 194
      src/views/qms/inspectionJobPurchase/detail.vue
  10. 438
      src/views/qms/inspectionJobPurchase/index.vue
  11. 864
      src/views/qms/inspectionJobPurchase/inspectionJobMain.data.ts
  12. 30
      src/views/qms/inspectionQ3/inspectionQ3.data.ts
  13. 1
      src/views/qms/inspectionRecordFirst/addForm.vue
  14. 16
      src/views/wms/agvManage/agvLocationrelation/index.vue
  15. 8
      src/views/wms/basicDataManage/customerManage/customer/index.vue
  16. 16
      src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue
  17. 8
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  18. 8
      src/views/wms/basicDataManage/customerManage/customeritem/index.vue
  19. 8
      src/views/wms/basicDataManage/customerManage/project/index.vue
  20. 8
      src/views/wms/basicDataManage/customerManage/saleprice/index.vue
  21. 4
      src/views/wms/basicDataManage/documentSetting/businesstype/index.vue
  22. 8
      src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue
  23. 8
      src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue
  24. 8
      src/views/wms/basicDataManage/documentSetting/plansetting/index.vue
  25. 8
      src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue
  26. 8
      src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue
  27. 4
      src/views/wms/basicDataManage/documentSetting/switch/index.vue
  28. 8
      src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue
  29. 8
      src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue
  30. 8
      src/views/wms/basicDataManage/factoryModeling/dock/index.vue
  31. 8
      src/views/wms/basicDataManage/factoryModeling/location/index.vue
  32. 8
      src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue
  33. 8
      src/views/wms/basicDataManage/factoryModeling/process/index.vue
  34. 8
      src/views/wms/basicDataManage/factoryModeling/productionline/index.vue
  35. 8
      src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue
  36. 8
      src/views/wms/basicDataManage/factoryModeling/workshop/index.vue
  37. 8
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue
  38. 8
      src/views/wms/basicDataManage/itemManage/bom/index.vue
  39. 8
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  40. 8
      src/views/wms/basicDataManage/itemManage/itembasic/index.vue
  41. 8
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue
  42. 16
      src/views/wms/basicDataManage/itemManage/packageunit/index.vue
  43. 16
      src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/index.vue
  44. 8
      src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue
  45. 16
      src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue
  46. 28
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  47. 9
      src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
  48. 8
      src/views/wms/basicDataManage/labelManage/barcode/index.vue
  49. 16
      src/views/wms/basicDataManage/labelManage/callmaterials/index.vue
  50. 8
      src/views/wms/basicDataManage/labelManage/labeltype/index.vue
  51. 2
      src/views/wms/basicDataManage/labelManage/locationLabel/index.vue
  52. 8
      src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
  53. 8
      src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue
  54. 2
      src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue
  55. 8
      src/views/wms/basicDataManage/orderManage/carrier/index.vue
  56. 8
      src/views/wms/basicDataManage/orderManage/owner/index.vue
  57. 8
      src/views/wms/basicDataManage/orderManage/shift/index.vue
  58. 8
      src/views/wms/basicDataManage/orderManage/team/index.vue
  59. 8
      src/views/wms/basicDataManage/strategySetting/rule/index.vue
  60. 2
      src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue
  61. 2
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue
  62. 2
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue
  63. 2
      src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue
  64. 2
      src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue
  65. 2
      src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue
  66. 2
      src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue
  67. 2
      src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue
  68. 2
      src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue
  69. 2
      src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue
  70. 16
      src/views/wms/basicDataManage/subject/mstr/index.vue
  71. 16
      src/views/wms/basicDataManage/subject/qadCostcentre/index.vue
  72. 14
      src/views/wms/basicDataManage/subject/qadProject/index.vue
  73. 16
      src/views/wms/basicDataManage/subject/subjectAccount/index.vue
  74. 8
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  75. 8
      src/views/wms/basicDataManage/supplierManage/supplier/index.vue
  76. 8
      src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue
  77. 8
      src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue
  78. 8
      src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue
  79. 8
      src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue
  80. 16
      src/views/wms/buttMesManage/mesBarCode/index.vue
  81. 8
      src/views/wms/countManage/count/countJobMain/index.vue
  82. 22
      src/views/wms/countManage/count/countPlanMain/index.vue
  83. 2
      src/views/wms/countManage/count/countRecordMain/index.vue
  84. 28
      src/views/wms/countManage/count/countRequestMain/index.vue
  85. 20
      src/views/wms/countManage/countadjust/countadjustRequestMain/index.vue
  86. 20
      src/views/wms/deliversettlementManage/customerreceipt/customerreceiptRequestMain/index.vue
  87. 12
      src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue
  88. 20
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  89. 8
      src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue
  90. 20
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  91. 22
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/index.vue
  92. 8
      src/views/wms/deliversettlementManage/deliverplan/saleMain/index.vue
  93. 16
      src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue
  94. 22
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  95. 8
      src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue
  96. 20
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/index.vue
  97. 2
      src/views/wms/inventoryManage/balance/index.vue
  98. 8
      src/views/wms/inventoryManage/containerinit/containerBindRecord/index.vue
  99. 8
      src/views/wms/inventoryManage/containerinit/containerRepair/index.vue
  100. 8
      src/views/wms/inventoryManage/containerinit/containerUnbindRecord/index.vue

1
src/utils/dict.ts

@ -203,6 +203,7 @@ export enum DICT_TYPE {
CARRIER_TYPE = 'carrier_type', // 承运商类型
INSPECT_TYPE = 'inspect_type', // 检验类型
INSPECTION_TYPE = 'inspection_type', // 质量管理检验类型
INSPECTION_TYPE_NEW = 'inspection_type_new', // 质量管理检验类型
NEXT_ACTION = 'next_action', // 下一步检验动作
SAMPLE_METHOD = 'sample_method', // 抽检方式
WAREHOUSE_TYPE = 'warehouse_type', // 仓库类型

19
src/views/qms/inspectionJob/index.vue

@ -343,8 +343,8 @@ const handleAccept = async (id: number) => {
//
await InspectionJobMainApi.acceptInspectionJobMain(id)
message.success(t('common.acceptSuccess'))
//
await getList()
// (TB)
// await getList()
} catch {}
}
//
@ -414,6 +414,14 @@ const handleImport = () => {
//
const searchFormClick = (searchData) => {
let isHave = searchData?.filters?.some((item) => item.column == 'inspectionType')
if (!isHave) {
searchData.filters.push({
action: 'notIn',
column: 'inspectionType',
value: '1,4'
})
}
tableObject.params = {
isSearch: true,
filters: searchData.filters
@ -423,9 +431,10 @@ const searchFormClick = (searchData) => {
/** 初始化 **/
onMounted(async () => {
  tableObject.params = {
    available: true
  }
tableObject.params = {
available: true,
excludeInspectionType: '1,4'
}
getList()
// importTemplateData.templateUrl = await InspectionJobMainApi.importTemplate()
})

2
src/views/qms/inspectionJob/inspectionJobMain.data.ts

@ -272,7 +272,7 @@ export const InspectionJobMain = useCrudSchemas(
label: '检验类型',
field: 'inspectionType',
sort: 'custom',
dictType: DICT_TYPE.INSPECTION_TYPE,
dictType: DICT_TYPE.INSPECTION_TYPE_NEW,
dictClass: 'string',
isSearch: true,
form: {

1551
src/views/qms/inspectionJobProduction/addForm.vue

File diff suppressed because it is too large

194
src/views/qms/inspectionJobProduction/detail.vue

@ -0,0 +1,194 @@
<template>
<div>
<el-drawer v-model="isShowDrawer" title="详情" direction="rtl" size="80%" v-loading="detailLoading">
<template #header>
<div class="font-size-18px">
{{ titleValueRef }} <span class="ml-20px font-size-16px">{{ titleNameRef }}</span>
</div>
</template>
<ContentWrap v-if="!isBasic">
<Descriptions :data="data" labelClassName="label-class-name" label-align="left" direction="vertical" :column="8" :schema="allSchemas.detailSchema" :columns="2" width="200px" />
</ContentWrap>
<ContentWrap>
<el-tabs v-model="editableTabsValue" class="demo-tabs" type="border-card" tab-position="left" :stretch="false">
<el-tab-pane v-for="item in data.subList" :key="item.name" :label="item.processDescribe" :name="item.name">
<div class="small-title">检验工序</div>
<el-form :model="item" label-width="auto" ref="formProcessRef">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="编码" prop="processCode">
<el-input v-model="item.processCode" placeholder="根据系统生成" :disabled="true" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="描述" prop="processDescribe">
<el-input v-model="item.processDescribe" :disabled="true" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="顺序号" prop="sequenceCode">
<el-input v-model="item.sequenceCode" :disabled="true" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="small-title">检验特性</div>
<el-form :model="item" label-width="auto" ref="formFeaturesRef">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="编码">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.number" placeholder="根据系统生成" :disabled="true" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="描述" prop="inspectionJobCharacteristicsRespVO.description">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.description" :disabled="true" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检验方法" prop="inspectionJobCharacteristicsRespVO.inspectionMethodCode">
<div style="display: flex; width: 100%">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.inspectionMethodName" disabled placeholder="请选择检验方法" />
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="采样过程编码" prop="inspectionJobCharacteristicsRespVO.samplingProcessCode">
<div style="display: flex; width: 100%">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.samplingProcessName" disabled placeholder="请选择采样过程编码" />
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="样品份数" prop="inspectionJobCharacteristicsRespVO.sampleQty">
<div style="display: flex; width: 100%">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.sampleQty" disabled placeholder="请输入样品份数" />
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="每份样品量" prop="inspectionJobCharacteristicsRespVO.samplePieceSize">
<div style="display: flex; width: 100%">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.samplePieceSize" disabled placeholder="请输入每份样品量" />
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否允许修改特征值" prop="inspectionJobCharacteristicsRespVO.isCanUpdate">
<el-switch v-model="item.inspectionJobCharacteristicsRespVO.isCanUpdate" disabled />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="结果录入方式" prop="inspectionJobCharacteristicsRespVO.resultEntryMethod">
<el-select v-model="item.inspectionJobCharacteristicsRespVO.resultEntryMethod" placeholder="请选择结果录入方式" @change="resultEntryMethodChange($event,item)" disabled>
<el-option v-for="dict in getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY)" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="特征类型" prop="inspectionJobCharacteristicsRespVO.featureType">
<el-select v-model="item.inspectionJobCharacteristicsRespVO.featureType" placeholder="请选择特征类型" @change="changeFeatureType" disabled>
<el-option v-for="dict in getStrDictOptions( DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE )" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-tab-pane>
</el-tabs>
</ContentWrap>
</el-drawer>
</div>
</template>
<script lang="ts" setup>
import * as InspectionJobDetailPageApi from '@/api/qms/inspectionJob/inspectionJobDetail'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
defineOptions({ name: 'Detail' })
const editableTabsValue = ref('1')
const message = useMessage() //
const { t } = useI18n() //
const updateKey = ref(0)
const props = defineProps({
//
allSchemas: {
type: Object,
required: true,
default: null
},
//
detailAllSchemas: {
type: Object,
required: true,
default: null
},
//
buttondataTable: {
type: Array,
required: false,
default: ()=>{
return []
}
},
})
const isShowDrawer = ref(false)
const detailLoading = ref(false)
const data = ref({
code: '',
itemCode: '',
version: '',
testTypeCode: '',
programmeTemplateCode: '',
splitRule: '',
aql: '',
inspectionLevel: '',
effectiveDate: '',
expirationDate: '',
available: 'TRUE',
subList: []
})
/** 打开弹窗 */
const formRef = ref()
const titleNameRef = ref()
const titleValueRef = ref()
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => {
titleNameRef.value = titleName
titleValueRef.value = titleValue
isShowDrawer.value = true
if (row) {
detailLoading.value = true
try {
data.value = row
let list = []
list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id)
list.forEach((item, index) => {
editableTabsValue.value = index + 1
item.name = index + 1
})
data.value.subList = list
} finally {
detailLoading.value = false
}
}
}
defineExpose({ openDetail }) // open
</script>
<style lang="scss">
.el-drawer__body {
background: #f5f5f5 !important;
}
::v-deep(.label-class-name) {
color: #dedede;
}
</style>
<style scoped lang="scss"></style>

438
src/views/qms/inspectionJobProduction/index.vue

@ -0,0 +1,438 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search
:schema="InspectionJobMain.allSchemas.searchSchema"
@search="setSearchParams"
@reset="setSearchParams"
/>
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="InspectionJobMain.allSchemas"
/>
<!-- 列表 -->
<ContentWrap>
<Table v-clientTable
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase
:Butttondata="butttondata(row)"
@button-base-click="buttonTableClick($event, row)"
/>
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<AddForm
ref="formRef"
basicFormWidth="80"
:formAllSchemasFeatures="InspectionTemplateFeatures.allSchemas"
:formAllSchemasProcess="InspectionTemplateProcess.allSchemas"
:formAllSchemasMain="InspectionTemplateMain.allSchemas"
:tableAllSchemas="InspectionJobPackage.allSchemas"
:tableFormRules="InspectionJobPackageRules"
:rules="InspectionJobMainRules"
:formAllSchemas="InspectionJobMain.allSchemas"
@submitForm="submitForm"
/>
<!-- 详情 -->
<Detail
ref="detailRef"
:isBasic="false"
:allSchemas="InspectionJobMain.allSchemas"
:detailAllSchemas="InspectionJobDetail.allSchemas"
:detailAllSchemasRules="InspectionJobDetailRules"
:apiCreate="InspectionJobDetailApi.createInspectionJobDetail"
:apiUpdate="InspectionJobDetailApi.updateInspectionJobDetail"
:apiPage="InspectionJobDetailApi.getInspectionJobDetailPage"
:apiDelete="InspectionJobDetailApi.deleteInspectionJobDetail"
@searchTableSuccessDetail="searchTableSuccessDetail"
:isShowAddBtn="false"
:detailButtonIsShow="true"
/>
<!-- 包装信息 -->
<ListTable
ref="listTableRef"
titleName="包装信息"
:allSchemas="InspectionJobMain.allSchemas"
:detailAllSchemas="InspectionJobPackage.allSchemas"
:detailAllSchemasRules="InspectionJobPackageRules"
:list="list"
/>
<el-dialog
v-model="showQualityReport"
:title="t('质检明细')"
:append-to-body="false"
destroy-on-close
fullscreen
>
<iframe :height="reportHeight" width="100%" :src="qualityReport" frameborder="0"></iframe>
</el-dialog>
</template>
<script setup lang="ts">
import download from '@/utils/download'
import {
InspectionJobMain,
InspectionJobMainRules,
InspectionJobDetail,
InspectionJobDetailRules,
InspectionJobPackage,
InspectionJobPackageRules
} from './inspectionJobMain.data'
import {
InspectionTemplateMain,
InspectionTemplateProcess,
InspectionTemplateFeatures,
InspectionTemplateRules
} from '../inspectionTemplate/inspectionTemplate.data'
import * as InspectionJobPackageApi from '@/api/qms/inspectionJob/InspectionJobPackage/InspectionJobPackage'
import * as InspectionJobMainApi from '@/api/qms/inspectionJob/inspectionJobMain'
import * as InspectionJobDetailApi from '@/api/qms/inspectionJob/inspectionJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import ListTable from '@/components/ListTable/src/ListTable.vue'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import AddForm from './addForm.vue'
import Detail from './detail.vue'
import { getReportUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'inspectionJobMain' })
const message = useMessage() //
const { t } = useI18n() //
const route = useRoute() //
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(InspectionJobMain.allSchemas.tableColumns)
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(async () => {
if (type == 'tableForm') {
//
row[formField] = val[0][searchField]
// row['itemNumber'] = val[0]['number']
// row['itemName'] = val[0]['name']
// row['uom'] = val[0]['uom']
// row['isRadeIn'] = val[0]['isRadeIn']
// row['available'] = val[0]['available']
} else {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
}
})
}
//
const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
nextTick(async () => {
const setV = {}
// if(formField == 'itemCode'){
// await ItembasicApi.getItembasicPage({
// code: setV['itemCode']
// }).then(res => {
// setV['uom'] = res.list[0].uom
// setV[formField] = val[0][searchField]
// })
// }
formRef.setValues(setV)
})
}
//
const Echo = []
const { tableObject, tableMethods } = useTable({
getListApi: InspectionJobMainApi.getInspectionJobMainPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') {
//
openForm('create')
} else if (val == 'import') {
//
handleImport()
} else if (val == 'export') {
//
handleExport()
} else if (val == 'refresh') {
//
getList()
} else if (val == 'filtrate') {
//
} else {
//
console.log('其他按钮', item)
}
}
//
const isShowMainButton = (row, val) => {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
//
const isShowMainButton2 = (row, val) => {
if (val.indexOf(row.isStaging) > -1) {
return false
} else {
return true
}
}
// -
const butttondata = (row) => {
return [
defaultButtons.mainListJobAccBtn({
hide: isShowMainButton(row, ['1']),
hasPermi: 'qms:inspection-job-main:accept'
}), //
defaultButtons.mainListJobCloBtn({
hide: isShowMainButton(row, ['1']),
hasPermi: 'qms:inspection-job-main:close'
}), //
defaultButtons.mainListJobAbaBtn({
hide: isShowMainButton(row, ['2']),
hasPermi: 'qms:inspection-job-main:abandon'
}), //
defaultButtons.mainListJobExeBtn({
hide: isShowMainButton(row, ['2']),
hasPermi: 'qms:inspection-job-main:execute'
}), //
defaultButtons.mainListOrderPubBtn({
hide: isShowMainButton2(row, ['TRUE']),
hasPermi: 'qms:inspection-job-main:execute'
}), //
defaultButtons.mainListPackageBtn(null), //
defaultButtons.mainListPlanCheckQualityReportBtn({}) //
]
}
const listTableRef = ref()
const list = ref([])
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainJobExe') {
//
execute('execute', row)
} else if (val == 'mainPackage') {
//
list.value = await InspectionJobPackageApi.getInspectionJobPackageList(row.id)
// row.status = '1'
listTableRef.value.openPackage(row, '包装信息', InspectionJobPackage.allSchemas.tableColumns)
} else if (val == 'mainJobAba') {
//
handleAbandon(row.id)
} else if (val == 'mainJobClo') {
//
handleClose(row.id)
} else if (val == 'mainOrderPub') {
//
handleRelease(row.id)
} else if (val == 'mainPlanCheckQualityReport') {
//
checkQualityReport(row)
} else if (val == 'mainJobAcc') {
//
handleAccept(row.id)
}
}
//
//
const reportHeight = ref(window.innerHeight - 120)
const showQualityReport = ref(false)
const qualityReport = ref('')
const checkQualityReport = async (row) => {
showQualityReport.value = true
qualityReport.value = `${getReportUrl()}/purchasereceiptReport?asnNumber=${row.asnNumber}`
}
/** 添加/修改操作 */
// const formRef = ref()
// const openForm = async (type : string, row ?: number) => {
// tableData.value = [] //
// formRef.value.open(type, row)
// }
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicInspectionJobMain')
}
//
const formRef = ref()
const execute = async (type: string, row?: number) => {
formRef.value.open(type, row)
}
/** 关闭按钮操作 */
const handleClose = async (id: number) => {
try {
//
await message.confirm(t('common.confirmColse'))
//
await InspectionJobMainApi.closeInspectionJobMain(id)
message.success(t('common.closeSuccess'))
//
await getList()
} catch {}
}
/** 发布按钮操作 */
const handleRelease = async (id: number) => {
try {
//
await message.confirm('确认发布吗?')
//
await InspectionJobMainApi.releaseInspectionJobMain(id)
message.success('发布成功!')
//
await getList()
} catch {}
}
//
const handleAccept = async (id: number) => {
try {
//
await message.confirm(t('common.confirmAccept'))
//
await InspectionJobMainApi.acceptInspectionJobMain(id)
message.success(t('common.acceptSuccess'))
//
await getList()
} catch {}
}
//
const handleAbandon = async (id: number) => {
try {
//
await message.confirm(t('common.confirmGiveup'))
//
await InspectionJobMainApi.abandonInspectionJobMain(id)
message.success(t('common.giveupSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await InspectionJobMainApi.exportInspectionJobMain(tableObject.params)
download.excel(data, '检验任务.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
/**
* tableForm方法
*/
const tableFormKeys = {}
InspectionJobDetail.allSchemas.tableFormColumns.forEach((item) => {
tableFormKeys[item.field] = item.default ? item.default : ''
})
const tableData = ref([])
//
const submitForm = async (formType, data) => {
// return
try {
formRef.value.formLoading = true
if (formType === 'create') {
await InspectionJobMainApi.createInspectionJobMain(data)
message.success(t('common.createSuccess'))
} else if (formType === 'execute') {
await InspectionJobMainApi.executeInspectionJobMain(data)
message.success(t('common.updateSuccess'))
}
formRef.value.dialogVisible = false
formRef.value.formLoading = false
//
getList()
} finally {
formRef.value.formLoading = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const searchFormClick = (searchData) => {
searchData.filters.push({
action: "==",
column: "inspectionType",
value: "4"
})
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
tableObject.params = {
available: true,
inspectionType: '4'
}
getList()
// importTemplateData.templateUrl = await InspectionJobMainApi.importTemplate()
})
</script>

864
src/views/qms/inspectionJobProduction/inspectionJobMain.data.ts

@ -0,0 +1,864 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter2 } from '@/utils/formatTime'
import { validateHanset, validateEmail } from '@/utils/validator'
import { dateFormatter } from '@/utils/formatTime'
import { validateTwoNum, validateSixNum } from '@/utils/validator'
const { t } = useI18n() // 国际化
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const resultEntryMethodList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY)
const featureTypeList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE)
const isCanUpdateList = [
{
label: '是',
value: true
},
{
label: '否',
value: false
}
]
/**
* @returns {Array}
*/
export const InspectionJobMain = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '编码',
field: 'number',
sort: 'custom',
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 200,
fixed: 'left'
}
},
{
label: '申请单号',
field: 'requestNumber',
sort: 'custom',
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 200
}
},
{
label: '发货单号',
field: 'asnNumber',
sort: 'custom',
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 180
}
},
{
label: '供应商编码',
field: 'supplierCode',
sort: 'custom',
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 175
}
},
{
label: '供应商名称',
field: 'supplierName',
sort: 'custom',
isSearch: false,
table: {
width: 175
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物料编码',
field: 'itemCode',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
isSearch: false,
table: {
width: 175
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物料批次',
field: 'batch',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '参考订单号',
field: 'referenceOrderCode',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '参考订单行',
field: 'referenceOrderRow',
sort: 'custom',
isSearch: false,
form: {
component: 'InputNumber',
value: 0,
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '参考凭证号',
field: 'referenceCertificateCode',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '参考凭证行',
field: 'referenceCertificateRow',
sort: 'custom',
isSearch: false,
form: {
component: 'InputNumber',
value: 0,
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '检验方案编码',
field: 'inspectionSchemeCode',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 200
}
},
{
label: '批次',
field: 'inspectionBatch',
sort: 'custom',
isSearch: false,
isDetail: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '供应商批次',
field: 'supplierBatch',
sort: 'custom',
isSearch: false,
isDetail: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '检验批数量',
field: 'inspectionBatchAmount',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
// {
// label: '采样总数量',
// field: 'sampleTotalAmount',
// sort: 'custom',
// isSearch: false,
// form: {
// componentProps:{
// disabled:true
// }
// },
// table: {
// width: 150
// }
// },
{
label: '检验类型',
field: 'inspectionType',
sort: 'custom',
dictType: DICT_TYPE.INSPECTION_TYPE,
dictClass: 'string',
isSearch: false,
form: {
component: 'Select',
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '完成人',
field: 'completeUser',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isTable: false,
isDetail: false,
isSearch: true,
isTableForm: false,
isForm: false
},
// {
// label: '检验批来源',
// field: 'inspectionBatchSource',
// sort: 'custom',
// isSearch: false,
// dictType: DICT_TYPE.INSPECTION_BATCH_SOURCE,
// dictClass: 'string',
// form:{
// componentProps:{
// disabled:true
// }
// },
// table: {
// width: 150
// }
// },
{
label: '检验阶段',
field: 'inspectionStage',
sort: 'custom',
isSearch: false,
form: {
component: 'InputNumber',
value: 0,
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '检验严格性',
field: 'inspectionStringency',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.INSPECTION_SEVERITY,
dictClass: 'string',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '计划开始时间',
field: 'planStartTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x',
disabled: true
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 175
}
},
{
label: '计划结束时间',
field: 'planEndTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x',
disabled: true
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 175
}
},
{
label: '检验水平',
field: 'inspectionLevel',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.INSPECTION_LEVEL,
dictClass: 'string',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: 'AQL值',
field: 'aqlValue',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.BASIC_AQL,
dictClass: 'string',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
// {
// label: '使用决策',
// field: 'usageDecision',
// sort: 'custom',
// isSearch: false,
// dictType: DICT_TYPE.USAGE_DECISION,
// form:{
// componentProps:{
// }
// }
// },
// {
// label: '是否可用',
// field: 'available',
// dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string',
// isTable: true,
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// component: 'Switch',
// value: 'TRUE',
// componentProps: {
// inactiveValue: 'FALSE',
// activeValue: 'TRUE',
// disabled:true
// }
// }
// },
{
label: '承接人',
field: 'acceptUserName',
table: {
width: 130
},
isForm: false,
isTable: false,
isDetail: true
},
{
label: '承接时间',
field: 'acceptTime',
isForm: false,
table: {
width: 180
},
isTable: false,
isDetail: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
},
{
label: '收货时间',
field: 'deliveryTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 175
}
},
{
label: '完成人',
field: 'completeUserName',
table: {
width: 130
},
isForm: false,
isTable: true,
isDetail: true
},
{
label: '完成时间',
field: 'completeTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
},
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isForm: false,
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
{
label: '是否可用',
field: 'available',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
search: {
value: 'TRUE'
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
table: {
width: 110
}
},
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{
label: '操作',
field: 'action',
isForm: false,
isDetail: false,
table: {
width: 300,
fixed: 'right'
}
}
])
)
//表单校验
export const InspectionJobMainRules = reactive({
// usageDecision: [required],
})
/**
* @returns {Array}
*/
export const InspectionJobDetail = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '编码',
field: 'number',
sort: 'custom',
isSearch: true
},
{
label: '检验方案模板编码',
field: 'inspectionCode',
sort: 'custom',
isSearch: true
},
{
label: '描述',
field: 'processDescribe',
sort: 'custom',
isSearch: true
},
{
label: '顺序号',
field: 'sequenceCode',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
}
},
{
label: '检验特性编号',
field: 'inspectionCharCode',
sort: 'custom',
isSearch: true
},
{
label: '检验特性编码',
field: 'inspectionJobCharacteristicsRespVO.number',
sort: 'custom'
},
{
label: '检验特性描述',
field: 'inspectionJobCharacteristicsRespVO.description',
sort: 'custom'
},
{
label: '检验方法',
field: 'inspectionJobCharacteristicsRespVO.inspectionMethodCode',
sort: 'custom'
},
{
label: '采样过程编码',
field: 'inspectionJobCharacteristicsRespVO.samplingProcessCode',
sort: 'custom'
},
{
label: '动态修改规则编码',
field: 'inspectionJobCharacteristicsRespVO.dynamicUpdateCode',
sort: 'custom'
},
{
label: '是否允许修改特征值',
field: 'inspectionJobCharacteristicsRespVO.isCanUpdate',
sort: 'custom',
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return isCanUpdateList.find((account) => account.value == cellValue)?.label
}
},
{
label: '结果录入方式',
field: 'inspectionJobCharacteristicsRespVO.resultEntryMethod',
sort: 'custom',
// dictType: DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY,
// dictClass: 'string',
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return resultEntryMethodList.find((account) => account.value == cellValue)?.label
}
},
{
label: '特征类型',
field: 'inspectionJobCharacteristicsRespVO.featureType',
sort: 'custom',
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return featureTypeList.find((account) => account.value == cellValue)?.label
}
}
])
)
//表单校验
export const InspectionJobDetailRules = reactive({
taskCode: [required],
processCode: [required],
sequenceCode: [required],
available: [required]
})
/**
* @returns {Array}
*/
export const InspectionJobPackage = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '编码',
field: 'number',
sort: 'custom',
isSearch: true,
tableForm: {
disabled: true
},
table: {
width: 200
}
},
{
label: '包装号',
field: 'packageCode',
sort: 'custom',
isSearch: true,
tableForm: {
disabled: true
},
table: {
width: 200
}
},
{
label: '包装规格',
field: 'packageSpecificationCode',
sort: 'custom',
isSearch: true,
tableForm: {
disabled: true
},
table: {
width: 180
}
},
{
label: '数量',
field: 'amount',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
},
tableForm: {
disabled: true
},
table: {
width: 150
}
},
{
label: '计量单位',
field: 'measuringUnit',
sort: 'custom',
isSearch: true,
tableForm: {
disabled: true
},
table: {
width: 150
}
},
{
label: '采样数量',
field: 'sampleAmount',
sort: 'custom',
isSearch: true,
isTable: false,
table: {
width: 150
}
}
])
)
//表单校验
export const InspectionJobPackageRules = reactive({
sampleAmount: [required, { validator: validateSixNum, trigger: 'blur' }]
})

1551
src/views/qms/inspectionJobPurchase/addForm.vue

File diff suppressed because it is too large

194
src/views/qms/inspectionJobPurchase/detail.vue

@ -0,0 +1,194 @@
<template>
<div>
<el-drawer v-model="isShowDrawer" title="详情" direction="rtl" size="80%" v-loading="detailLoading">
<template #header>
<div class="font-size-18px">
{{ titleValueRef }} <span class="ml-20px font-size-16px">{{ titleNameRef }}</span>
</div>
</template>
<ContentWrap v-if="!isBasic">
<Descriptions :data="data" labelClassName="label-class-name" label-align="left" direction="vertical" :column="8" :schema="allSchemas.detailSchema" :columns="2" width="200px" />
</ContentWrap>
<ContentWrap>
<el-tabs v-model="editableTabsValue" class="demo-tabs" type="border-card" tab-position="left" :stretch="false">
<el-tab-pane v-for="item in data.subList" :key="item.name" :label="item.processDescribe" :name="item.name">
<div class="small-title">检验工序</div>
<el-form :model="item" label-width="auto" ref="formProcessRef">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="编码" prop="processCode">
<el-input v-model="item.processCode" placeholder="根据系统生成" :disabled="true" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="描述" prop="processDescribe">
<el-input v-model="item.processDescribe" :disabled="true" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="顺序号" prop="sequenceCode">
<el-input v-model="item.sequenceCode" :disabled="true" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div class="small-title">检验特性</div>
<el-form :model="item" label-width="auto" ref="formFeaturesRef">
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="编码">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.number" placeholder="根据系统生成" :disabled="true" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="描述" prop="inspectionJobCharacteristicsRespVO.description">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.description" :disabled="true" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="检验方法" prop="inspectionJobCharacteristicsRespVO.inspectionMethodCode">
<div style="display: flex; width: 100%">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.inspectionMethodName" disabled placeholder="请选择检验方法" />
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="采样过程编码" prop="inspectionJobCharacteristicsRespVO.samplingProcessCode">
<div style="display: flex; width: 100%">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.samplingProcessName" disabled placeholder="请选择采样过程编码" />
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="样品份数" prop="inspectionJobCharacteristicsRespVO.sampleQty">
<div style="display: flex; width: 100%">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.sampleQty" disabled placeholder="请输入样品份数" />
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="每份样品量" prop="inspectionJobCharacteristicsRespVO.samplePieceSize">
<div style="display: flex; width: 100%">
<el-input v-model="item.inspectionJobCharacteristicsRespVO.samplePieceSize" disabled placeholder="请输入每份样品量" />
</div>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="是否允许修改特征值" prop="inspectionJobCharacteristicsRespVO.isCanUpdate">
<el-switch v-model="item.inspectionJobCharacteristicsRespVO.isCanUpdate" disabled />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="结果录入方式" prop="inspectionJobCharacteristicsRespVO.resultEntryMethod">
<el-select v-model="item.inspectionJobCharacteristicsRespVO.resultEntryMethod" placeholder="请选择结果录入方式" @change="resultEntryMethodChange($event,item)" disabled>
<el-option v-for="dict in getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY)" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="特征类型" prop="inspectionJobCharacteristicsRespVO.featureType">
<el-select v-model="item.inspectionJobCharacteristicsRespVO.featureType" placeholder="请选择特征类型" @change="changeFeatureType" disabled>
<el-option v-for="dict in getStrDictOptions( DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE )" :key="dict.value" :label="dict.label" :value="dict.value" />
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-tab-pane>
</el-tabs>
</ContentWrap>
</el-drawer>
</div>
</template>
<script lang="ts" setup>
import * as InspectionJobDetailPageApi from '@/api/qms/inspectionJob/inspectionJobDetail'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
defineOptions({ name: 'Detail' })
const editableTabsValue = ref('1')
const message = useMessage() //
const { t } = useI18n() //
const updateKey = ref(0)
const props = defineProps({
//
allSchemas: {
type: Object,
required: true,
default: null
},
//
detailAllSchemas: {
type: Object,
required: true,
default: null
},
//
buttondataTable: {
type: Array,
required: false,
default: ()=>{
return []
}
},
})
const isShowDrawer = ref(false)
const detailLoading = ref(false)
const data = ref({
code: '',
itemCode: '',
version: '',
testTypeCode: '',
programmeTemplateCode: '',
splitRule: '',
aql: '',
inspectionLevel: '',
effectiveDate: '',
expirationDate: '',
available: 'TRUE',
subList: []
})
/** 打开弹窗 */
const formRef = ref()
const titleNameRef = ref()
const titleValueRef = ref()
const openDetail = async (row: any, titleName: any, titleValue: any, tableName: any) => {
titleNameRef.value = titleName
titleValueRef.value = titleValue
isShowDrawer.value = true
if (row) {
detailLoading.value = true
try {
data.value = row
let list = []
list = await InspectionJobDetailPageApi.getInspectionJobDetailList(row.id)
list.forEach((item, index) => {
editableTabsValue.value = index + 1
item.name = index + 1
})
data.value.subList = list
} finally {
detailLoading.value = false
}
}
}
defineExpose({ openDetail }) // open
</script>
<style lang="scss">
.el-drawer__body {
background: #f5f5f5 !important;
}
::v-deep(.label-class-name) {
color: #dedede;
}
</style>
<style scoped lang="scss"></style>

438
src/views/qms/inspectionJobPurchase/index.vue

@ -0,0 +1,438 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search
:schema="InspectionJobMain.allSchemas.searchSchema"
@search="setSearchParams"
@reset="setSearchParams"
/>
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="InspectionJobMain.allSchemas"
/>
<!-- 列表 -->
<ContentWrap>
<Table v-clientTable
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #number="{ row }">
<el-button type="primary" link @click="openDetail(row, '单据号', row.number)">
<span>{{ row.number }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase
:Butttondata="butttondata(row)"
@button-base-click="buttonTableClick($event, row)"
/>
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<AddForm
ref="formRef"
basicFormWidth="80"
:formAllSchemasFeatures="InspectionTemplateFeatures.allSchemas"
:formAllSchemasProcess="InspectionTemplateProcess.allSchemas"
:formAllSchemasMain="InspectionTemplateMain.allSchemas"
:tableAllSchemas="InspectionJobPackage.allSchemas"
:tableFormRules="InspectionJobPackageRules"
:rules="InspectionJobMainRules"
:formAllSchemas="InspectionJobMain.allSchemas"
@submitForm="submitForm"
/>
<!-- 详情 -->
<Detail
ref="detailRef"
:isBasic="false"
:allSchemas="InspectionJobMain.allSchemas"
:detailAllSchemas="InspectionJobDetail.allSchemas"
:detailAllSchemasRules="InspectionJobDetailRules"
:apiCreate="InspectionJobDetailApi.createInspectionJobDetail"
:apiUpdate="InspectionJobDetailApi.updateInspectionJobDetail"
:apiPage="InspectionJobDetailApi.getInspectionJobDetailPage"
:apiDelete="InspectionJobDetailApi.deleteInspectionJobDetail"
@searchTableSuccessDetail="searchTableSuccessDetail"
:isShowAddBtn="false"
:detailButtonIsShow="true"
/>
<!-- 包装信息 -->
<ListTable
ref="listTableRef"
titleName="包装信息"
:allSchemas="InspectionJobMain.allSchemas"
:detailAllSchemas="InspectionJobPackage.allSchemas"
:detailAllSchemasRules="InspectionJobPackageRules"
:list="list"
/>
<el-dialog
v-model="showQualityReport"
:title="t('质检明细')"
:append-to-body="false"
destroy-on-close
fullscreen
>
<iframe :height="reportHeight" width="100%" :src="qualityReport" frameborder="0"></iframe>
</el-dialog>
</template>
<script setup lang="ts">
import download from '@/utils/download'
import {
InspectionJobMain,
InspectionJobMainRules,
InspectionJobDetail,
InspectionJobDetailRules,
InspectionJobPackage,
InspectionJobPackageRules
} from './inspectionJobMain.data'
import {
InspectionTemplateMain,
InspectionTemplateProcess,
InspectionTemplateFeatures,
InspectionTemplateRules
} from '../inspectionTemplate/inspectionTemplate.data'
import * as InspectionJobPackageApi from '@/api/qms/inspectionJob/InspectionJobPackage/InspectionJobPackage'
import * as InspectionJobMainApi from '@/api/qms/inspectionJob/inspectionJobMain'
import * as InspectionJobDetailApi from '@/api/qms/inspectionJob/inspectionJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import ListTable from '@/components/ListTable/src/ListTable.vue'
import TableHead from '@/components/TableHead/src/TableHead.vue'
import AddForm from './addForm.vue'
import Detail from './detail.vue'
import { getReportUrl } from '@/utils/systemParam'
//
defineOptions({ name: 'inspectionJobMain' })
const message = useMessage() //
const { t } = useI18n() //
const route = useRoute() //
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(InspectionJobMain.allSchemas.tableColumns)
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(async () => {
if (type == 'tableForm') {
//
row[formField] = val[0][searchField]
// row['itemNumber'] = val[0]['number']
// row['itemName'] = val[0]['name']
// row['uom'] = val[0]['uom']
// row['isRadeIn'] = val[0]['isRadeIn']
// row['available'] = val[0]['available']
} else {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
}
})
}
//
const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
nextTick(async () => {
const setV = {}
// if(formField == 'itemCode'){
// await ItembasicApi.getItembasicPage({
// code: setV['itemCode']
// }).then(res => {
// setV['uom'] = res.list[0].uom
// setV[formField] = val[0][searchField]
// })
// }
formRef.setValues(setV)
})
}
//
const Echo = []
const { tableObject, tableMethods } = useTable({
getListApi: InspectionJobMainApi.getInspectionJobMainPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') {
//
openForm('create')
} else if (val == 'import') {
//
handleImport()
} else if (val == 'export') {
//
handleExport()
} else if (val == 'refresh') {
//
getList()
} else if (val == 'filtrate') {
//
} else {
//
console.log('其他按钮', item)
}
}
//
const isShowMainButton = (row, val) => {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
//
const isShowMainButton2 = (row, val) => {
if (val.indexOf(row.isStaging) > -1) {
return false
} else {
return true
}
}
// -
const butttondata = (row) => {
return [
defaultButtons.mainListJobAccBtn({
hide: isShowMainButton(row, ['1']),
hasPermi: 'qms:inspection-job-main:accept'
}), //
defaultButtons.mainListJobCloBtn({
hide: isShowMainButton(row, ['1']),
hasPermi: 'qms:inspection-job-main:close'
}), //
defaultButtons.mainListJobAbaBtn({
hide: isShowMainButton(row, ['2']),
hasPermi: 'qms:inspection-job-main:abandon'
}), //
defaultButtons.mainListJobExeBtn({
hide: isShowMainButton(row, ['2']),
hasPermi: 'qms:inspection-job-main:execute'
}), //
defaultButtons.mainListOrderPubBtn({
hide: isShowMainButton2(row, ['TRUE']),
hasPermi: 'qms:inspection-job-main:execute'
}), //
defaultButtons.mainListPackageBtn(null), //
defaultButtons.mainListPlanCheckQualityReportBtn({}) //
]
}
const listTableRef = ref()
const list = ref([])
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainJobExe') {
//
execute('execute', row)
} else if (val == 'mainPackage') {
//
list.value = await InspectionJobPackageApi.getInspectionJobPackageList(row.id)
// row.status = '1'
listTableRef.value.openPackage(row, '包装信息', InspectionJobPackage.allSchemas.tableColumns)
} else if (val == 'mainJobAba') {
//
handleAbandon(row.id)
} else if (val == 'mainJobClo') {
//
handleClose(row.id)
} else if (val == 'mainOrderPub') {
//
handleRelease(row.id)
} else if (val == 'mainPlanCheckQualityReport') {
//
checkQualityReport(row)
} else if (val == 'mainJobAcc') {
//
handleAccept(row.id)
}
}
//
//
const reportHeight = ref(window.innerHeight - 120)
const showQualityReport = ref(false)
const qualityReport = ref('')
const checkQualityReport = async (row) => {
showQualityReport.value = true
qualityReport.value = `${getReportUrl()}/purchasereceiptReport?asnNumber=${row.asnNumber}`
}
/** 添加/修改操作 */
// const formRef = ref()
// const openForm = async (type : string, row ?: number) => {
// tableData.value = [] //
// formRef.value.open(type, row)
// }
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicInspectionJobMain')
}
//
const formRef = ref()
const execute = async (type: string, row?: number) => {
formRef.value.open(type, row)
}
/** 关闭按钮操作 */
const handleClose = async (id: number) => {
try {
//
await message.confirm(t('common.confirmColse'))
//
await InspectionJobMainApi.closeInspectionJobMain(id)
message.success(t('common.closeSuccess'))
//
await getList()
} catch {}
}
/** 发布按钮操作 */
const handleRelease = async (id: number) => {
try {
//
await message.confirm('确认发布吗?')
//
await InspectionJobMainApi.releaseInspectionJobMain(id)
message.success('发布成功!')
//
await getList()
} catch {}
}
//
const handleAccept = async (id: number) => {
try {
//
await message.confirm(t('common.confirmAccept'))
//
await InspectionJobMainApi.acceptInspectionJobMain(id)
message.success(t('common.acceptSuccess'))
//
await getList()
} catch {}
}
//
const handleAbandon = async (id: number) => {
try {
//
await message.confirm(t('common.confirmGiveup'))
//
await InspectionJobMainApi.abandonInspectionJobMain(id)
message.success(t('common.giveupSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await InspectionJobMainApi.exportInspectionJobMain(tableObject.params)
download.excel(data, '检验任务.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
/**
* tableForm方法
*/
const tableFormKeys = {}
InspectionJobDetail.allSchemas.tableFormColumns.forEach((item) => {
tableFormKeys[item.field] = item.default ? item.default : ''
})
const tableData = ref([])
//
const submitForm = async (formType, data) => {
// return
try {
formRef.value.formLoading = true
if (formType === 'create') {
await InspectionJobMainApi.createInspectionJobMain(data)
message.success(t('common.createSuccess'))
} else if (formType === 'execute') {
await InspectionJobMainApi.executeInspectionJobMain(data)
message.success(t('common.updateSuccess'))
}
formRef.value.dialogVisible = false
formRef.value.formLoading = false
//
getList()
} finally {
formRef.value.formLoading = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const searchFormClick = (searchData) => {
searchData.filters.push({
action: "==",
column: "inspectionType",
value: "1"
})
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
tableObject.params = {
available: true,
inspectionType: '1'
}
getList()
// importTemplateData.templateUrl = await InspectionJobMainApi.importTemplate()
})
</script>

864
src/views/qms/inspectionJobPurchase/inspectionJobMain.data.ts

@ -0,0 +1,864 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter2 } from '@/utils/formatTime'
import { validateHanset, validateEmail } from '@/utils/validator'
import { dateFormatter } from '@/utils/formatTime'
import { validateTwoNum, validateSixNum } from '@/utils/validator'
const { t } = useI18n() // 国际化
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const resultEntryMethodList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY)
const featureTypeList = getStrDictOptions(DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE)
const isCanUpdateList = [
{
label: '是',
value: true
},
{
label: '否',
value: false
}
]
/**
* @returns {Array}
*/
export const InspectionJobMain = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '编码',
field: 'number',
sort: 'custom',
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 200,
fixed: 'left'
}
},
{
label: '申请单号',
field: 'requestNumber',
sort: 'custom',
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 200
}
},
{
label: '发货单号',
field: 'asnNumber',
sort: 'custom',
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 180
}
},
{
label: '供应商编码',
field: 'supplierCode',
sort: 'custom',
isSearch: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 175
}
},
{
label: '供应商名称',
field: 'supplierName',
sort: 'custom',
isSearch: false,
table: {
width: 175
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物料编码',
field: 'itemCode',
sort: 'custom',
isSearch: false,
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物料名称',
field: 'itemName',
sort: 'custom',
isSearch: false,
table: {
width: 175
},
form: {
componentProps: {
disabled: true
}
}
},
{
label: '物料批次',
field: 'batch',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '参考订单号',
field: 'referenceOrderCode',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '参考订单行',
field: 'referenceOrderRow',
sort: 'custom',
isSearch: false,
form: {
component: 'InputNumber',
value: 0,
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '参考凭证号',
field: 'referenceCertificateCode',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '参考凭证行',
field: 'referenceCertificateRow',
sort: 'custom',
isSearch: false,
form: {
component: 'InputNumber',
value: 0,
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '检验方案编码',
field: 'inspectionSchemeCode',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 200
}
},
{
label: '批次',
field: 'inspectionBatch',
sort: 'custom',
isSearch: false,
isDetail: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '供应商批次',
field: 'supplierBatch',
sort: 'custom',
isSearch: false,
isDetail: true,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '检验批数量',
field: 'inspectionBatchAmount',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
// {
// label: '采样总数量',
// field: 'sampleTotalAmount',
// sort: 'custom',
// isSearch: false,
// form: {
// componentProps:{
// disabled:true
// }
// },
// table: {
// width: 150
// }
// },
{
label: '检验类型',
field: 'inspectionType',
sort: 'custom',
dictType: DICT_TYPE.INSPECTION_TYPE,
dictClass: 'string',
isSearch: false,
form: {
component: 'Select',
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '完成人',
field: 'completeUser',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
isTable: false,
isDetail: false,
isSearch: true,
isTableForm: false,
isForm: false
},
// {
// label: '检验批来源',
// field: 'inspectionBatchSource',
// sort: 'custom',
// isSearch: false,
// dictType: DICT_TYPE.INSPECTION_BATCH_SOURCE,
// dictClass: 'string',
// form:{
// componentProps:{
// disabled:true
// }
// },
// table: {
// width: 150
// }
// },
{
label: '检验阶段',
field: 'inspectionStage',
sort: 'custom',
isSearch: false,
form: {
component: 'InputNumber',
value: 0,
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '检验严格性',
field: 'inspectionStringency',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.INSPECTION_SEVERITY,
dictClass: 'string',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: '计划开始时间',
field: 'planStartTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x',
disabled: true
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 175
}
},
{
label: '计划结束时间',
field: 'planEndTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x',
disabled: true
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 175
}
},
{
label: '检验水平',
field: 'inspectionLevel',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.INSPECTION_LEVEL,
dictClass: 'string',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
{
label: 'AQL值',
field: 'aqlValue',
sort: 'custom',
isSearch: false,
dictType: DICT_TYPE.BASIC_AQL,
dictClass: 'string',
form: {
componentProps: {
disabled: true
}
},
table: {
width: 150
}
},
// {
// label: '使用决策',
// field: 'usageDecision',
// sort: 'custom',
// isSearch: false,
// dictType: DICT_TYPE.USAGE_DECISION,
// form:{
// componentProps:{
// }
// }
// },
// {
// label: '是否可用',
// field: 'available',
// dictType: DICT_TYPE.TRUE_FALSE,
// dictClass: 'string',
// isTable: true,
// sort: 'custom',
// table: {
// width: 150
// },
// form: {
// component: 'Switch',
// value: 'TRUE',
// componentProps: {
// inactiveValue: 'FALSE',
// activeValue: 'TRUE',
// disabled:true
// }
// }
// },
{
label: '承接人',
field: 'acceptUserName',
table: {
width: 130
},
isForm: false,
isTable: false,
isDetail: true
},
{
label: '承接时间',
field: 'acceptTime',
isForm: false,
table: {
width: 180
},
isTable: false,
isDetail: true,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
},
{
label: '收货时间',
field: 'deliveryTime',
sort: 'custom',
formatter: dateFormatter,
isSearch: false,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
valueFormat: 'x'
}
},
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 175
}
},
{
label: '完成人',
field: 'completeUserName',
table: {
width: 130
},
isForm: false,
isTable: true,
isDetail: true
},
{
label: '完成时间',
field: 'completeTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
},
{
label: '状态',
field: 'status',
dictType: DICT_TYPE.JOB_STATUS,
dictClass: 'string',
isForm: false,
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
{
label: '是否可用',
field: 'available',
sort: 'custom',
isSearch: true,
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', // 默认都是字符串类型其他暂不考虑
search: {
value: 'TRUE'
},
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
table: {
width: 110
}
},
{
label: '创建时间',
field: 'createTime',
isForm: false,
table: {
width: 180
},
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
},
{
label: '创建者',
field: 'creator',
table: {
width: 130
},
isForm: false,
isTable: true
},
{
label: '最后更新时间',
field: 'updateTime',
sort: 'custom',
isDetail: true,
isForm: false,
isTable: false,
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
table: {
width: 180
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x'
}
}
},
{
label: '最后更新者',
field: 'updater',
isDetail: true,
isForm: false,
isTable: false,
table: {
width: 150
}
},
{
label: '操作',
field: 'action',
isForm: false,
isDetail: false,
table: {
width: 300,
fixed: 'right'
}
}
])
)
//表单校验
export const InspectionJobMainRules = reactive({
// usageDecision: [required],
})
/**
* @returns {Array}
*/
export const InspectionJobDetail = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '编码',
field: 'number',
sort: 'custom',
isSearch: true
},
{
label: '检验方案模板编码',
field: 'inspectionCode',
sort: 'custom',
isSearch: true
},
{
label: '描述',
field: 'processDescribe',
sort: 'custom',
isSearch: true
},
{
label: '顺序号',
field: 'sequenceCode',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
}
},
{
label: '检验特性编号',
field: 'inspectionCharCode',
sort: 'custom',
isSearch: true
},
{
label: '检验特性编码',
field: 'inspectionJobCharacteristicsRespVO.number',
sort: 'custom'
},
{
label: '检验特性描述',
field: 'inspectionJobCharacteristicsRespVO.description',
sort: 'custom'
},
{
label: '检验方法',
field: 'inspectionJobCharacteristicsRespVO.inspectionMethodCode',
sort: 'custom'
},
{
label: '采样过程编码',
field: 'inspectionJobCharacteristicsRespVO.samplingProcessCode',
sort: 'custom'
},
{
label: '动态修改规则编码',
field: 'inspectionJobCharacteristicsRespVO.dynamicUpdateCode',
sort: 'custom'
},
{
label: '是否允许修改特征值',
field: 'inspectionJobCharacteristicsRespVO.isCanUpdate',
sort: 'custom',
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return isCanUpdateList.find((account) => account.value == cellValue)?.label
}
},
{
label: '结果录入方式',
field: 'inspectionJobCharacteristicsRespVO.resultEntryMethod',
sort: 'custom',
// dictType: DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY,
// dictClass: 'string',
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return resultEntryMethodList.find((account) => account.value == cellValue)?.label
}
},
{
label: '特征类型',
field: 'inspectionJobCharacteristicsRespVO.featureType',
sort: 'custom',
formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
return featureTypeList.find((account) => account.value == cellValue)?.label
}
}
])
)
//表单校验
export const InspectionJobDetailRules = reactive({
taskCode: [required],
processCode: [required],
sequenceCode: [required],
available: [required]
})
/**
* @returns {Array}
*/
export const InspectionJobPackage = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '编码',
field: 'number',
sort: 'custom',
isSearch: true,
tableForm: {
disabled: true
},
table: {
width: 200
}
},
{
label: '包装号',
field: 'packageCode',
sort: 'custom',
isSearch: true,
tableForm: {
disabled: true
},
table: {
width: 200
}
},
{
label: '包装规格',
field: 'packageSpecificationCode',
sort: 'custom',
isSearch: true,
tableForm: {
disabled: true
},
table: {
width: 180
}
},
{
label: '数量',
field: 'amount',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
},
tableForm: {
disabled: true
},
table: {
width: 150
}
},
{
label: '计量单位',
field: 'measuringUnit',
sort: 'custom',
isSearch: true,
tableForm: {
disabled: true
},
table: {
width: 150
}
},
{
label: '采样数量',
field: 'sampleAmount',
sort: 'custom',
isSearch: true,
isTable: false,
table: {
width: 150
}
}
])
)
//表单校验
export const InspectionJobPackageRules = reactive({
sampleAmount: [required, { validator: validateSixNum, trigger: 'blur' }]
})

30
src/views/qms/inspectionQ3/inspectionQ3.data.ts

@ -20,8 +20,14 @@ export const Q3Rules = reactive({
qty: [required],
code: [required],
defectLocation: [required],
defectType: [required],
problemReason: [required],
defectType: [
{ required: true, message: '缺陷类型不能为空', trigger: 'blur' },
{ max: 64, message: '不得超过64个字符', trigger: 'blur' }
],
problemReason: [
{ required: true, message: '问题原因不能为空', trigger: 'blur' },
{ max: 64, message: '不得超过64个字符', trigger: 'blur' }
],
priority: [required],
amount: [required],
costCode: [required],
@ -210,7 +216,7 @@ export const Q3 = useCrudSchemas(
sort: 'custom',
dictType: DICT_TYPE.QMS_CODE,
dictClass: 'string',
isSearch: false,
isSearch: true,
isTable: true,
tableForm: {
type: 'Select'
@ -232,24 +238,26 @@ export const Q3 = useCrudSchemas(
label: '缺陷类型',
field: 'defectType',
sort: 'custom',
dictType: DICT_TYPE.DEFECT_TYPE,
dictClass: 'string',
isSearch: false,
isTable: false,
tableForm: {
type: 'Select'
table: {
width: '150'
},
form: {
component: 'Input'
}
},
{
label: '问题原因',
field: 'problemReason',
sort: 'custom',
dictType: DICT_TYPE.PROBLEM_REASON,
dictClass: 'string',
isSearch: false,
isTable: false,
tableForm: {
type: 'Select'
table: {
width: '150'
},
form: {
component: 'Input'
}
},
{

1
src/views/qms/inspectionRecordFirst/addForm.vue

@ -715,6 +715,7 @@ if (props.basicFormWidth) {
dialogWidth.value = props.isBusiness ? '60%' : '40%'
}
const rules = ref({
inspectionSchemeCode: [{ required: true, message: '请选择检验方案', trigger: 'blur' }],
inspectionTime: [{ required: true, message: '请选择检验时间', trigger: 'blur' }],
'inspectionJobCharacteristicsUpdateReqVO.description': [
{ required: true, message: '请填写描述', trigger: ['blur', 'change'] }

16
src/views/wms/agvManage/agvLocationrelation/index.vue

@ -128,7 +128,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -202,7 +208,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -220,7 +230,7 @@ const handleDelete = async (id: number) => {
await AgvLocationrelationApi.deleteAgvLocationrelation(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/customerManage/customer/index.vue

@ -195,7 +195,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -215,7 +219,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

16
src/views/wms/basicDataManage/customerManage/customerDeliveryForecast/index.vue

@ -124,7 +124,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -180,7 +186,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -198,7 +208,7 @@ const handleDelete = async (id: number) => {
await CustomerDeliveryForecastApi.deleteCustomerDeliveryForecast(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/customerManage/customerdock/index.vue

@ -198,7 +198,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -230,7 +234,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/customerManage/customeritem/index.vue

@ -204,7 +204,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
const onEnter = async (field,value)=>{
console.log(field,value)
@ -254,7 +258,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/customerManage/project/index.vue

@ -195,7 +195,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -224,7 +228,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/customerManage/saleprice/index.vue

@ -199,7 +199,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -228,7 +232,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

4
src/views/wms/basicDataManage/documentSetting/businesstype/index.vue

@ -287,7 +287,7 @@ const formsSuccess = async (formType, submitData) => {
.then(async () => {
message.success(t('common.updateSuccess'))
basicFormRef.value.dialogVisible = false
await getList()
buttonBaseClick('refresh',null)
})
.catch(() => {
data.itemTypes = data.itemTypes.split(',')
@ -352,7 +352,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/documentSetting/documentsetting/index.vue

@ -176,7 +176,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -196,7 +200,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/documentSetting/jobsetting/index.vue

@ -176,7 +176,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -196,7 +200,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/documentSetting/plansetting/index.vue

@ -177,7 +177,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -197,7 +201,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/documentSetting/recordsetting/index.vue

@ -177,7 +177,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -197,7 +201,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/documentSetting/requestsetting/index.vue

@ -177,7 +177,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -197,7 +201,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

4
src/views/wms/basicDataManage/documentSetting/switch/index.vue

@ -176,7 +176,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -225,7 +225,7 @@ const success = async (formType, data) => {
const res = await SwitchApi.updateSwitch(data)
if(true===res){
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}else{
message.error('修改失败')
}

8
src/views/wms/basicDataManage/documentSetting/transactiontype/index.vue

@ -178,7 +178,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -198,7 +202,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/factoryModeling/areabasic/index.vue

@ -201,7 +201,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -230,7 +234,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/factoryModeling/dock/index.vue

@ -230,7 +230,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 删除按钮操作 */
@ -244,7 +248,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/factoryModeling/location/index.vue

@ -219,7 +219,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -248,7 +252,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/factoryModeling/locationgroup/index.vue

@ -200,7 +200,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -229,7 +233,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/factoryModeling/process/index.vue

@ -207,7 +207,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -236,7 +240,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/factoryModeling/productionline/index.vue

@ -200,7 +200,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -229,7 +233,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/factoryModeling/warehouse/index.vue

@ -189,7 +189,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -209,7 +213,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/factoryModeling/workshop/index.vue

@ -191,7 +191,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -211,7 +215,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

@ -209,7 +209,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -238,7 +242,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/itemManage/bom/index.vue

@ -206,7 +206,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -241,7 +245,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

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

@ -323,7 +323,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -380,7 +380,11 @@ const submitForm = async (formType, data) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

8
src/views/wms/basicDataManage/itemManage/itembasic/index.vue

@ -248,7 +248,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
const detailRef = ref()
@ -268,7 +272,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}

8
src/views/wms/basicDataManage/itemManage/itempackage/index.vue

@ -235,7 +235,11 @@ const formsSuccess = async (formType, data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
const onEnter = async (field,value)=>{
console.log('onEnter',field,value)
@ -304,7 +308,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

16
src/views/wms/basicDataManage/itemManage/packageunit/index.vue

@ -128,7 +128,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -224,7 +230,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -242,7 +252,7 @@ const handleDelete = async (id: number) => {
await PackageunitApi.deletePackageunit(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

16
src/views/wms/basicDataManage/itemManage/productionitemcodeSpareitemcode/index.vue

@ -124,7 +124,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -198,7 +204,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -216,7 +226,7 @@ const handleDelete = async (id: number) => {
await ProductionitemcodeSpareitemcodeApi.deleteProductionitemcodeSpareitemcode(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue

@ -199,7 +199,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -228,7 +232,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

16
src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue

@ -147,7 +147,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -193,7 +199,11 @@ const submitForm = async (formType,data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -211,7 +221,7 @@ const handleDelete = async (id: number) => {
await RelegateRecordMainApi.deleteRelegateRecordMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

28
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -364,7 +364,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -417,7 +423,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -428,7 +434,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -439,7 +445,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -450,7 +456,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -461,7 +467,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -485,7 +491,7 @@ const buttonTableClick = async (val, row) => {
RelegateRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -630,7 +636,11 @@ const submitForm = async (formType, data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}
@ -674,7 +684,7 @@ const handleDelete = async (id: number) => {
await RelegateRequestMainApi.deleteRelegateRequestMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}

9
src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue

@ -192,8 +192,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
basicFormRef.value.formLoading = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -222,7 +225,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/labelManage/barcode/index.vue

@ -181,7 +181,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -201,7 +205,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

16
src/views/wms/basicDataManage/labelManage/callmaterials/index.vue

@ -183,7 +183,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else if (val=='selection_point'){//
handleSelectionPoint()
@ -249,7 +255,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -267,7 +277,7 @@ const handleDelete = async (id: number) => {
await CallmaterialsApi.deleteCallmaterials(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/labelManage/labeltype/index.vue

@ -183,7 +183,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -212,7 +216,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

2
src/views/wms/basicDataManage/labelManage/locationLabel/index.vue

@ -164,7 +164,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue

@ -233,7 +233,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -302,7 +302,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 导入 */

8
src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue

@ -234,7 +234,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -298,7 +298,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 导入 */

2
src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue

@ -216,7 +216,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/orderManage/carrier/index.vue

@ -196,7 +196,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -216,7 +220,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/orderManage/owner/index.vue

@ -197,7 +197,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -217,7 +221,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/orderManage/shift/index.vue

@ -203,7 +203,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -223,7 +227,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/orderManage/team/index.vue

@ -188,7 +188,11 @@ const formsSuccess = async (formType,data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
const getData = async() => {
getList();
@ -211,7 +215,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/strategySetting/rule/index.vue

@ -176,7 +176,11 @@ const formsSuccess = async (formType, data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -196,7 +200,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

2
src/views/wms/basicDataManage/strategySetting/strategy/arrivalInspectionStrategy/index.vue

@ -106,7 +106,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

2
src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/index.vue

@ -106,7 +106,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

2
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/index.vue

@ -108,7 +108,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

2
src/views/wms/basicDataManage/strategySetting/strategy/inspectStrategy/index.vue

@ -107,7 +107,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

2
src/views/wms/basicDataManage/strategySetting/strategy/purchaseReceiptStrategy/index.vue

@ -107,7 +107,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

2
src/views/wms/basicDataManage/strategySetting/strategy/storageCapacityStrategy/index.vue

@ -106,7 +106,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

2
src/views/wms/basicDataManage/strategySetting/strategy/supplieDeliveryStrategy/index.vue

@ -107,7 +107,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

2
src/views/wms/basicDataManage/strategySetting/strategy/upShelfStrategy/index.vue

@ -108,7 +108,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

2
src/views/wms/basicDataManage/strategySetting/strategy/utensilCapacityStrategy/index.vue

@ -106,7 +106,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

2
src/views/wms/basicDataManage/strategySetting/strategy/warehouseStorageStrategy/index.vue

@ -107,7 +107,7 @@ const handleDelete = async (id: number) => {
await RuleApi.deleteRule(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch { }
}
//

16
src/views/wms/basicDataManage/subject/mstr/index.vue

@ -124,7 +124,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -171,7 +177,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -189,7 +199,7 @@ const handleDelete = async (id: number) => {
await MstrApi.deleteMstr(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

16
src/views/wms/basicDataManage/subject/qadCostcentre/index.vue

@ -124,7 +124,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -180,7 +186,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -198,7 +208,7 @@ const handleDelete = async (id: number) => {
await QadCostcentreApi.deleteQadCostcentre(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

14
src/views/wms/basicDataManage/subject/qadProject/index.vue

@ -124,7 +124,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -180,7 +186,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */

16
src/views/wms/basicDataManage/subject/subjectAccount/index.vue

@ -133,7 +133,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -189,7 +195,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -207,7 +217,7 @@ const handleDelete = async (id: number) => {
await SubjectAccountApi.deleteSubjectAccount(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

@ -199,7 +199,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -228,7 +232,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/supplierManage/supplier/index.vue

@ -191,7 +191,11 @@ const formsSuccess = async (formType, data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
const detailRef = ref()
@ -210,7 +214,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/supplierManage/supplieritem/index.vue

@ -210,7 +210,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.formLoading = false
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
//
@ -243,7 +247,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/systemSetting/accountcalendar/index.vue

@ -177,7 +177,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -197,7 +201,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/systemSetting/currencyexchange/index.vue

@ -178,7 +178,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -198,7 +202,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/basicDataManage/systemSetting/systemcalendar/index.vue

@ -177,7 +177,11 @@ const formsSuccess = async (formType,data) => {
basicFormRef.value.formLoading = false
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -197,7 +201,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

16
src/views/wms/buttMesManage/mesBarCode/index.vue

@ -136,7 +136,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -182,7 +188,11 @@ const formsSuccess = async (formType,data) => {
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -200,7 +210,7 @@ const handleDelete = async (id: number) => {
await MesBarCodeApi.deleteMesBarCode(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/countManage/count/countJobMain/index.vue

@ -239,7 +239,7 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = true
try {
await CountJobMainApi.abandonCountJobMain(row.id)
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -249,7 +249,7 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = true
try {
await CountJobMainApi.acceptCountJobMain(row.id)
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -271,7 +271,7 @@ const handleClose = async (id: number) => {
tableObject.loading = true
await CountJobMainApi.closeCountJobMain(id)
message.success(t('common.closeSuccess'))
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -282,7 +282,7 @@ const handleDone = async (id: number) => {
await message.confirm('确认完成吗?')
tableObject.loading = true
await CountJobMainApi.doneCountJobMain(id)
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}

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

@ -306,7 +306,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('打开成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -320,7 +320,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -333,7 +333,7 @@ const buttonTableClick = async (val, row) => {
await CountPlanMainApi.submit(row.id)
message.success(t('提交审批成功'))
tableObject.loading = false
await getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainPlanTur') {
//
await message.confirm('确认要驳回吗?')
@ -342,7 +342,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -356,7 +356,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -370,7 +370,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('发布成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -384,7 +384,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -606,7 +606,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -689,7 +689,11 @@ const submitForm = async (formType, data) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

2
src/views/wms/countManage/count/countRecordMain/index.vue

@ -140,7 +140,7 @@ const buttonTableClick = async (val, row) => {
CountRecordMainApi.generateCountRecordMain(row.id).then(()=>{
message.success(t('生成成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)

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

@ -183,7 +183,7 @@ const searchTableSuccessCount = (formField, searchField, val, type,row,count) =>
CountRequestMainApi.reCount(row).then((res)=>{
message.success('重盘成功')
getLoading?.close()
getList()
buttonBaseClick('refresh',null)
}).catch((err) => {
getLoading?.close()
})
@ -198,7 +198,7 @@ const searchTableSuccessCount = (formField, searchField, val, type,row,count) =>
CountRequestMainApi.superviseCount(row).then((res)=>{
message.success('监盘成功')
getLoading?.close()
getList()
buttonBaseClick('refresh',null)
}).catch((err) => {
getLoading?.close()
})
@ -322,7 +322,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -336,7 +336,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('添加成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -350,7 +350,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('提交审批成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -364,7 +364,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -378,7 +378,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -392,7 +392,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('处理成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -429,7 +429,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('已生成盘点调整申请'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -443,7 +443,7 @@ const buttonTableClick = async (val, row) => {
.then(() => {
message.success(t('解冻成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
})
.catch((err) => {
tableObject.loading = false
@ -486,7 +486,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -545,7 +545,11 @@ const submitForm = async (formType, data) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

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

@ -206,7 +206,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.close(row.id).then(() => {
message.success(t('关闭成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -217,7 +217,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.reAdd(row.id).then(() => {
message.success(t('添加成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -228,7 +228,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.submit(row.id).then(() => {
message.success(t('提交审批成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -239,7 +239,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.refused(row.id).then(() => {
message.success(t('驳回成功'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -250,7 +250,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.agree(row.id).then(() => {
message.success(t('审批已通过'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -266,7 +266,7 @@ const buttonTableClick = async (val, row) => {
CountadjustRequestMainApi.handle(row.id).then(() => {
message.success(t('处理成功'))
getLoading?.close()
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
getLoading?.close()
console.log(err)
@ -306,7 +306,7 @@ const handleDelete = async (id: number) => {
await CountadjustRequestMainApi.deleteCountadjustRequestMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} finally {
tableObject.loading = false
}
@ -365,7 +365,11 @@ const submitForm = async (formType, data) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

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

@ -218,7 +218,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -229,7 +229,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -240,7 +240,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -251,7 +251,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -262,7 +262,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -273,7 +273,7 @@ const buttonTableClick = async (val, row) => {
CustomerreceiptRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -313,7 +313,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -374,7 +374,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

12
src/views/wms/deliversettlementManage/customerreturn/customerreturnJobMain/index.vue

@ -305,12 +305,12 @@ const buttonTableClick = async (val, row) => {
handleHandle(aaa)
} else if (val == 'mainJobAba') { //
await CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
// await message.confirm('')
// console.log('--')
// CustomerreturnJobMainApi.abandonCustomerreturnJobMain(row.masterId).then(() => {
// message.success(t('common.updateSuccess'))
// getList()
// buttonBaseClick('refresh',null)
// }).catch(err => {
// console.log(err)
// })
@ -319,18 +319,18 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-关闭')
CustomerreturnJobMainApi.closeCustomerreturnJobMain(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
console.log(err)
})
} else if (val == 'mainJobAcc') { //
await CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
// await message.confirm('')
// console.log('--')
// CustomerreturnJobMainApi.acceptCustomerreturnJobMain(row.masterId).then(() => {
// message.success(t('common.updateSuccess'))
// getList()
// buttonBaseClick('refresh',null)
// }).catch(err => {
// console.log(err)
// })
@ -352,7 +352,7 @@ const handleHandle = async (data) => {
await message.confirm(t('common.confirmHandle'))
await CustomerreturnJobMainApi.executeCustomerreturnJobMain(data)
message.success(t('common.handleSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

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

@ -358,7 +358,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.close(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -368,7 +368,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.reAdd(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -379,7 +379,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.submit(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -390,7 +390,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.refused(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -401,7 +401,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.agree(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -412,7 +412,7 @@ const buttonTableClick = async (val, row) => {
CustomerreturnRequestMainApi.handle(row.masterId).then(() => {
tableObject.loading = false
message.success(t('common.updateSuccess'))
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -625,7 +625,7 @@ const handleDelete = async (id: number) => {
await CustomerreturnRequestMainApi.deleteCustomerreturnRequestMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -742,7 +742,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

8
src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue

@ -313,13 +313,13 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { //
await DeliverJobMainApi.abandonDeliverJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await DeliverJobMainApi.closeDeliverJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await DeliverJobMainApi.acceptDeliverJobMain(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//
@ -337,7 +337,7 @@ const handleHandle = async (data) => {
await message.confirm(t('common.confirmHandle'))
await DeliverJobMainApi.executeDeliverJobMain(data)
message.success(t('common.handleSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

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

@ -313,7 +313,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -324,7 +324,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -335,7 +335,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -346,7 +346,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -357,7 +357,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -368,7 +368,7 @@ const buttonTableClick = async (val, row) => {
DeliverRequestMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -461,7 +461,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -561,7 +561,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

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

@ -318,7 +318,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.open(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -329,7 +329,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -340,7 +340,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -351,7 +351,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.reject(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -362,7 +362,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -373,7 +373,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.publish(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -384,7 +384,7 @@ const buttonTableClick = async (val, row) => {
DeliverPlanMainApi.resetting(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -420,7 +420,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -527,7 +527,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

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

@ -240,7 +240,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -296,7 +296,11 @@ const submitForm = async (formType, data) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

16
src/views/wms/deliversettlementManage/saleShipmentMainRecord/index.vue

@ -127,7 +127,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
filters: tableObject.params.filters
})
} else {
getList()
}
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
@ -165,7 +171,11 @@ const formsSuccess = async (formType,data) => {
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
}
/** 详情操作 */
@ -183,7 +193,7 @@ const handleDelete = async (id: number) => {
await SaleShipmentMainRecordApi.deleteSaleShipmentMainRecord(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

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

@ -258,7 +258,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -269,7 +269,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -280,7 +280,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -291,7 +291,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -302,7 +302,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -313,7 +313,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -324,7 +324,7 @@ const buttonTableClick = async (val, row) => {
SaleShipmentMainApi.abort(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -385,7 +385,11 @@ const submitForm = async (formType, submitData) => {
}
basicFormRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}
@ -430,7 +434,7 @@ const handleDelete = async (id: number) => {
await SaleShipmentMainApi.deleteSaleShipmentMain(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

8
src/views/wms/deliversettlementManage/stockup/stockupMainJob/index.vue

@ -202,13 +202,13 @@ const buttonTableClick = async (val, row) => {
handleHandle
} else if (val == 'mainJobAba') { //
await StockupJobMainApi.abandonStockupMainJob(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobClo') { //
await StockupJobMainApi.closeStockupMainJob(row.masterId)
getList()
buttonBaseClick('refresh',null)
} else if (val == 'mainJobAcc') { //
await StockupJobMainApi.acceptStockupMainJob(row.masterId)
getList()
buttonBaseClick('refresh',null)
}
}
//
@ -226,7 +226,7 @@ const handleHandle = async (data) => {
await message.confirm(t('common.confirmHandle'))
await StockupJobMainApi.executeStockupMainJob(data)
message.success(t('common.handleSuccess'))
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

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

@ -277,7 +277,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.close(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -288,7 +288,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.reAdd(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -299,7 +299,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.submit(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -310,7 +310,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.refused(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -321,7 +321,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.agree(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -332,7 +332,7 @@ const buttonTableClick = async (val, row) => {
StockupMainRequestApi.handle(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
getList()
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
@ -398,7 +398,7 @@ const handleDelete = async (id: number) => {
tableObject.loading = false
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -486,7 +486,11 @@ const submitForm = async (formType, submitData) => {
}
formRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
formRef.value.formLoading = false
}

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

@ -285,7 +285,7 @@ const handleDelete = async (id: number) => {
await BalanceApi.deleteBalance(id)
message.success(t('common.delSuccess'))
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}

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

@ -208,7 +208,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -241,7 +241,11 @@ const submitForm = async (formType, data) => {
}
basicFormRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}

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

@ -207,7 +207,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -240,7 +240,11 @@ const submitForm = async (formType, data) => {
}
basicFormRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}

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

@ -207,7 +207,7 @@ const handleDelete = async (id: number) => {
message.success(t('common.delSuccess'))
tableObject.loading = false
//
await getList()
buttonBaseClick('refresh',null)
} catch {}
}
@ -240,7 +240,11 @@ const submitForm = async (formType, data) => {
}
basicFormRef.value.dialogVisible = false
//
getList()
if (formType === 'create') {
getList()
}else{
buttonBaseClick('refresh',null)
}
} finally {
basicFormRef.value.formLoading = false
}

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save