Browse Source

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

hella_online_20240819
songguoqiang 3 months ago
parent
commit
7e7a73c6b3
  1. 29
      src/views/qms/inspectionRequest/index.vue
  2. 62
      src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue
  3. 82
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue
  4. 102
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  5. 104
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue
  6. 102
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue
  7. 4
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue
  8. 1
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMainNew.data.ts

29
src/views/qms/inspectionRequest/index.vue

@ -88,6 +88,17 @@
@ListTableSubmit="ListTableSubmit" @ListTableSubmit="ListTableSubmit"
/> />
</div> </div>
<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> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -105,6 +116,7 @@ import ListTable from '@/components/ListTable/src/ListTable.vue'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue' import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { getReportUrl } from '@/utils/systemParam'
// import { InspectionJobPackage} from '../inspectionJob/inspectionJobMain.data' // import { InspectionJobPackage} from '../inspectionJob/inspectionJobMain.data'
defineOptions({ name: 'inspectionMain' }) defineOptions({ name: 'inspectionMain' })
@ -226,7 +238,8 @@ const butttondata = (row) => {
defaultButtons.mainListEditBtn({ defaultButtons.mainListEditBtn({
hide: isShowMainButton(row, ['1']), hide: isShowMainButton(row, ['1']),
hasPermi: 'qms:inspection-request-main:edit' hasPermi: 'qms:inspection-request-main:edit'
}) // }),//
defaultButtons.mainListPlanCheckQualityReportBtn({}) //
] ]
} }
const listTableRef = ref() const listTableRef = ref()
@ -263,7 +276,10 @@ const buttonTableClick = async (val, row) => {
'包装信息', '包装信息',
InspectionRequestPackage.allSchemas.tableColumns InspectionRequestPackage.allSchemas.tableColumns
) )
} }else if (val == 'mainPlanCheckQualityReport') {
//
checkQualityReport(row)
}
} }
/** 关闭按钮操作 */ /** 关闭按钮操作 */
@ -350,6 +366,15 @@ const handleSubmit = async (id: number) => {
} }
} }
//
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 formRef = ref()
const openForm = async (type: string, row?: number) => { const openForm = async (type: string, row?: number) => {

62
src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue

@ -142,67 +142,70 @@ const importFileName = ref()
*/ */
if ( routeName.value == 'OktoholdJobMain') { if ( routeName.value == 'OktoholdJobMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', // fromInventoryStatus: 'OK',
toInventoryStatus:'HOLD', // toInventoryStatus:'HOLD',
businessType :'OkToHold' businessType :'OkToHold'
} }
fromInventoryStatus.value = 'OK' // fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "HOLD" // toInventoryStatus.value = "HOLD"
businessType.value = 'OkToHold' businessType.value = 'OkToHold'
importFileName.value = '合格转隔离任务' importFileName.value = '合格转隔离任务'
} else if ( routeName.value == 'NoktoholdJobMain') { } else if ( routeName.value == 'NoktoholdJobMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'NOK', // fromInventoryStatus: 'NOK',
toInventoryStatus:'HOLD', // toInventoryStatus:'HOLD',
businessType :'NokToHold' businessType :'NokToHold'
} }
fromInventoryStatus.value = 'NOK' // fromInventoryStatus.value = 'NOK'
toInventoryStatus.value = "HOLD" // toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold' businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离任务' importFileName.value = '不合格转隔离任务'
} else if ( routeName.value == 'HoldtookJobMain') { } else if ( routeName.value == 'HoldtookJobMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK', // toInventoryStatus:'OK',
businessType :'HoldToOk' businessType :'HoldToOk'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "OK" // toInventoryStatus.value = "OK"
businessType.value = 'HoldToOk' businessType.value = 'HoldToOk'
importFileName.value = '隔离转合格任务' importFileName.value = '隔离转合格任务'
} else if ( routeName.value == 'HoldtoscrapJobMain') { } else if ( routeName.value == 'HoldtoscrapJobMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP', // toInventoryStatus:'SCRAP',
businessType:'HoldToScrap' businessType:'HoldToScrap'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldToScrap' businessType.value = 'HoldToScrap'
importFileName.value = '隔离转报废任务' importFileName.value = '隔离转报废任务'
} else if ( routeName.value == 'OktoscrapJobMain') { } else if ( routeName.value == 'OktoscrapJobMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', // fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP', // toInventoryStatus:'SCRAP',
businessType :'OkToScrap' businessType :'OkToScrap'
} }
fromInventoryStatus.value = 'OK' // fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
businessType.value = 'OkToScrap' businessType.value = 'OkToScrap'
importFileName.value = '合格转报废任务' importFileName.value = '合格转报废任务'
} else if ( routeName.value == 'ScraptoholdJobMain') { } else if ( routeName.value == 'ScraptoholdJobMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'SCRAP', // fromInventoryStatus: 'SCRAP',
toInventoryStatus:'HOLD', // toInventoryStatus:'HOLD',
businessType :'ScrapToHold' businessType :'ScrapToHold'
} }
fromInventoryStatus.value = 'SCRAP' // fromInventoryStatus.value = 'SCRAP'
toInventoryStatus.value = "HOLD" // toInventoryStatus.value = "HOLD"
businessType.value = 'ScrapToHold' businessType.value = 'ScrapToHold'
importFileName.value = '报废转隔离任务' importFileName.value = '报废转隔离任务'
} else { } else {
console.log(146 , fromInventoryStatus.value) console.log(146 , fromInventoryStatus.value)
fromInventoryStatus.value = null tableObject.params = {
businessType :'Move'
}
// fromInventoryStatus.value = null
businessType.value = 'Move' businessType.value = 'Move'
importFileName.value = '库存移动任务' importFileName.value = '库存移动任务'
} }
@ -332,6 +335,15 @@ const handleExport = async () => {
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = { tableObject.params = {
isSearch: true, isSearch: true,
filters: searchData.filters filters: searchData.filters

82
src/views/wms/moveManage/inventorymove/inventorymoveRecordMain/index.vue

@ -103,61 +103,68 @@ const { tableObject, tableMethods } = useTable({
*/ */
if ( routeName.value == 'OktoholdRecordMain') { if ( routeName.value == 'OktoholdRecordMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', // fromInventoryStatus: 'OK',
toInventoryStatus: 'HOLD', // toInventoryStatus: 'HOLD',
businessType:'OkToHold' businessType:'OkToHold'
} }
fromInventoryStatus.value = 'OK' // fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "HOLD" // toInventoryStatus.value = "HOLD"
importFileName.value = '合格转隔离记录' businessType.value = 'OkToHold'
} else if ( routeName.value == 'NoktoholdRecordMain') { importFileName.value = '合格转隔离记录'
} else if ( routeName.value == 'NoktoholdRecordMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'NOK', // fromInventoryStatus: 'NOK',
toInventoryStatus:'HOLD', // toInventoryStatus:'HOLD',
businessType:'NoktoHold' businessType:'NoktoHold'
} }
fromInventoryStatus.value = 'NOK' // fromInventoryStatus.value = 'NOK'
toInventoryStatus.value = "HOLD" // toInventoryStatus.value = "HOLD"
importFileName.value = '不合格转隔离记录' businessType.value = 'NoktoHold'
importFileName.value = '不合格转隔离记录'
}else if ( routeName.value == 'HoldtookRecordMain') { }else if ( routeName.value == 'HoldtookRecordMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'HOLD',
toInventoryStatus:'OK', // toInventoryStatus:'OK',
businessType:'HoldtoOk' businessType:'HoldtoOk'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "OK" // toInventoryStatus.value = "OK"
importFileName.value = '隔离转合格记录' businessType.value = 'HoldtoOk'
importFileName.value = '隔离转合格记录'
} else if ( routeName.value == 'HoldtoscrapRecordMain') { } else if ( routeName.value == 'HoldtoscrapRecordMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP', // toInventoryStatus:'SCRAP',
businessType:'HoldtoScrap' businessType:'HoldtoScrap'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
importFileName.value = '隔离转报废记录' businessType.value = 'HoldtoScrap'
importFileName.value = '隔离转报废记录'
} else if ( routeName.value == 'OktoscrapRecordMain') { } else if ( routeName.value == 'OktoscrapRecordMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', // fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP', // toInventoryStatus:'SCRAP',
businessType:'OktoScrap' businessType:'OktoScrap'
} }
fromInventoryStatus.value = 'OK' // fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
importFileName.value = '合格转报废记录' businessType.value = 'OktoScrap'
importFileName.value = '合格转报废记录'
} else if ( routeName.value == 'ScraptoholdRecordMain') { } else if ( routeName.value == 'ScraptoholdRecordMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'SCRAP', // fromInventoryStatus: 'SCRAP',
toInventoryStatus:'HOLD', // toInventoryStatus:'HOLD',
businessType:'ScraptoHold' businessType:'ScraptoHold'
} }
fromInventoryStatus.value = 'SCRAP' // fromInventoryStatus.value = 'SCRAP'
toInventoryStatus.value = "HOLD" // toInventoryStatus.value = "HOLD"
importFileName.value = '报废转隔离记录' businessType.value = 'ScraptoHold'
importFileName.value = '报废转隔离记录'
} else { } else {
console.log(146, fromInventoryStatus.value) tableObject.params = {
fromInventoryStatus.value = null businessType :'Move'
}
businessType.value = 'Move' businessType.value = 'Move'
importFileName.value = '库存移动记录' importFileName.value = '库存移动记录'
@ -281,6 +288,15 @@ const importSuccess = () => {
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = { tableObject.params = {
isSearch: true, isSearch: true,
filters: searchData.filters filters: searchData.filters

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

@ -115,73 +115,78 @@ const { tableObject, tableMethods } = useTable({
/** /**
* OktoholdRequestMain 合格转隔离 * OktoholdRequestMain 合格转隔离
*/ */
if ( routeName.value == 'OktoholdRequestMain') { if ( routeName.value == 'OktoholdRequestMain') {
tableObject.params = { tableObject.params = {
toInventoryStatus:'HOLD' // fromInventoryStatus: 'OK',
// toInventoryStatus:'HOLD',
businessType :'OkToHold'
} }
toInventoryStatus.value = "HOLD" // fromInventoryStatus.value = 'OK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'OkToHold' businessType.value = 'OkToHold'
importFileName.value = '物料转隔离申请' importFileName.value = '物料转隔离申请'
} }
// else if ( routeName.value == 'NoktoholdRequestMain') { else if ( routeName.value == 'NoktoholdRequestMain') {
// tableObject.params = {
// fromInventoryStatus: 'NOK',
// toInventoryStatus:'HOLD'
// }
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
// businessType.value = 'NokToHold'
// importFileName.value = ''
// }
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'NOK',
toInventoryStatus:'OK' // toInventoryStatus:'HOLD',
businessType :'NokToHold'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'NOK'
toInventoryStatus.value = "OK" // toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离申请'
}
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'OK',
businessType :'HoldToOk'
}
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "OK"
businessType.value = 'HoldToOk' businessType.value = 'HoldToOk'
importFileName.value = '隔离转合格申请' importFileName.value = '隔离转合格申请'
} else if ( routeName.value == 'HoldtoscrapRequestMain') { } else if ( routeName.value == 'HoldtoscrapRequestMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP' // toInventoryStatus:'SCRAP',
businessType:'HoldToScrap'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldToScrap' businessType.value = 'HoldToScrap'
importFileName.value = '隔离转报废申请' importFileName.value = '隔离转报废申请'
} else if ( routeName.value == 'OktoscrapRequestMain') { } else if ( routeName.value == 'OktoscrapRequestMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', // fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP' // toInventoryStatus:'SCRAP',
businessType :'OkToScrap'
} }
fromInventoryStatus.value = 'OK' // fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
businessType.value = 'OkToScrap' businessType.value = 'OkToScrap'
importFileName.value = '合格转报废申请' importFileName.value = '合格转报废申请'
} }
// else if ( routeName.value == 'ScraptoholdRequestMain') { else if ( routeName.value == 'ScraptoholdRequestMain') {
// tableObject.params = {
// fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD'
// }
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
// businessType.value = 'ScrapToHold'
// importFileName.value = ''
// }
else if( routeName.value == 'InventorymoveRequestMain'){
fromInventoryStatus.value = null
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}else {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', // fromInventoryStatus: 'SCRAP',
toInventoryStatus:'SCRAP' // toInventoryStatus:'HOLD',
businessType :'ScrapToHold'
} }
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
businessType.value = 'ScrapToHold'
importFileName.value = '报废转隔离申请'
} else {
tableObject.params = {
businessType :'Move'
}
businessType.value = 'Move'
importFileName.value = '库存移动申请'
} }
console.log(99 , businessType.value) console.log(99 , businessType.value)
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{ InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{
if(item.field == 'fromWarehouseCode') { if(item.field == 'fromWarehouseCode') {
if (fromInventoryStatus.value) { if (fromInventoryStatus.value) {
@ -789,6 +794,15 @@ const importSuccess = () => {
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = { tableObject.params = {
isSearch: true, isSearch: true,
filters: searchData.filters filters: searchData.filters

104
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue

@ -116,73 +116,80 @@ const { tableObject, tableMethods } = useTable({
/** /**
* OktoholdRequestMain 合格转隔离 * OktoholdRequestMain 合格转隔离
*/ */
if ( routeName.value == 'OktoholdRequestMain') { if ( routeName.value == 'OktoholdRequestMain') {
tableObject.params = { tableObject.params = {
toInventoryStatus:'HOLD' // fromInventoryStatus: 'OK',
// toInventoryStatus:'HOLD',
businessType :'OkToHold'
} }
toInventoryStatus.value = "HOLD" // fromInventoryStatus.value = 'OK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'OkToHold' businessType.value = 'OkToHold'
importFileName.value = '物料转隔离申请' importFileName.value = '物料转隔离申请'
} }
// else if ( routeName.value == 'NoktoholdRequestMain') { else if ( routeName.value == 'NoktoholdRequestMain') {
// tableObject.params = {
// fromInventoryStatus: 'NOK',
// toInventoryStatus:'HOLD'
// }
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
// businessType.value = 'NokToHold'
// importFileName.value = ''
// }
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'NOK',
toInventoryStatus:'OK' // toInventoryStatus:'HOLD',
businessType :'NokToHold'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'NOK'
toInventoryStatus.value = "OK" // toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离申请'
}
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'OK',
businessType :'HoldToOk'
}
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "OK"
businessType.value = 'HoldToOk' businessType.value = 'HoldToOk'
importFileName.value = '隔离转合格申请' importFileName.value = '隔离转合格申请'
} else if ( routeName.value == 'HoldtoscrapRequestMain') { } else if ( routeName.value == 'HoldtoscrapRequestMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP' // toInventoryStatus:'SCRAP',
businessType:'HoldToScrap'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldToScrap' businessType.value = 'HoldToScrap'
importFileName.value = '隔离转报废申请' importFileName.value = '隔离转报废申请'
} else if ( routeName.value == 'OktoscrapRequestMain') { } else if ( routeName.value == 'OktoscrapRequestMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', // fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP' // toInventoryStatus:'SCRAP',
businessType :'OkToScrap'
} }
fromInventoryStatus.value = 'OK' // fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
businessType.value = 'OkToScrap' businessType.value = 'OkToScrap'
importFileName.value = '合格转报废申请' importFileName.value = '合格转报废申请'
} }
// else if ( routeName.value == 'ScraptoholdRequestMain') { else if ( routeName.value == 'ScraptoholdRequestMain') {
// tableObject.params = { tableObject.params = {
// fromInventoryStatus: 'SCRAP', // fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD' // toInventoryStatus:'HOLD',
// } businessType :'ScrapToHold'
// fromInventoryStatus.value = 'SCRAP' }
// toInventoryStatus.value = "HOLD" // fromInventoryStatus.value = 'SCRAP'
// businessType.value = 'ScrapToHold' // toInventoryStatus.value = "HOLD"
// importFileName.value = '' businessType.value = 'ScrapToHold'
// } importFileName.value = '报废转隔离申请'
else if( routeName.value == 'InventorymoveRequestMain'){ } else {
fromInventoryStatus.value = null
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}else {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', businessType :'Move'
toInventoryStatus:'SCRAP'
} }
businessType.value = 'Move'
importFileName.value = '库存移动申请'
} }
console.log(99 , businessType.value) console.log(99 , businessType.value)
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{ InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{
if(item.field == 'fromWarehouseCode') { if(item.field == 'fromWarehouseCode') {
if (fromInventoryStatus.value) { if (fromInventoryStatus.value) {
@ -803,6 +810,15 @@ const importSuccess = () => {
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = { tableObject.params = {
isSearch: true, isSearch: true,
filters: searchData.filters filters: searchData.filters

102
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue

@ -116,73 +116,78 @@ const { tableObject, tableMethods } = useTable({
/** /**
* OktoholdRequestMain 合格转隔离 * OktoholdRequestMain 合格转隔离
*/ */
if ( routeName.value == 'OktoholdRequestMain') { if ( routeName.value == 'OktoholdRequestMain') {
tableObject.params = { tableObject.params = {
toInventoryStatus:'HOLD' // fromInventoryStatus: 'OK',
// toInventoryStatus:'HOLD',
businessType :'OkToHold'
} }
toInventoryStatus.value = "HOLD" // fromInventoryStatus.value = 'OK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'OkToHold' businessType.value = 'OkToHold'
importFileName.value = '物料转隔离申请' importFileName.value = '物料转隔离申请'
} }
// else if ( routeName.value == 'NoktoholdRequestMain') { else if ( routeName.value == 'NoktoholdRequestMain') {
// tableObject.params = {
// fromInventoryStatus: 'NOK',
// toInventoryStatus:'HOLD'
// }
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
// businessType.value = 'NokToHold'
// importFileName.value = ''
// }
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'NOK',
toInventoryStatus:'OK' // toInventoryStatus:'HOLD',
businessType :'NokToHold'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'NOK'
toInventoryStatus.value = "OK" // toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离申请'
}
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'OK',
businessType :'HoldToOk'
}
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "OK"
businessType.value = 'HoldToOk' businessType.value = 'HoldToOk'
importFileName.value = '隔离转合格申请' importFileName.value = '隔离转合格申请'
} else if ( routeName.value == 'HoldtoscrapRequestMain') { } else if ( routeName.value == 'HoldtoscrapRequestMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'HOLD', // fromInventoryStatus: 'HOLD',
toInventoryStatus:'SCRAP' // toInventoryStatus:'SCRAP',
businessType:'HoldToScrap'
} }
fromInventoryStatus.value = 'HOLD' // fromInventoryStatus.value = 'HOLD'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldToScrap' businessType.value = 'HoldToScrap'
importFileName.value = '隔离转报废申请' importFileName.value = '隔离转报废申请'
} else if ( routeName.value == 'OktoscrapRequestMain') { } else if ( routeName.value == 'OktoscrapRequestMain') {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', // fromInventoryStatus: 'OK',
toInventoryStatus:'SCRAP' // toInventoryStatus:'SCRAP',
businessType :'OkToScrap'
} }
fromInventoryStatus.value = 'OK' // fromInventoryStatus.value = 'OK'
toInventoryStatus.value = "SCRAP" // toInventoryStatus.value = "SCRAP"
businessType.value = 'OkToScrap' businessType.value = 'OkToScrap'
importFileName.value = '合格转报废申请' importFileName.value = '合格转报废申请'
} }
// else if ( routeName.value == 'ScraptoholdRequestMain') { else if ( routeName.value == 'ScraptoholdRequestMain') {
// tableObject.params = {
// fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD'
// }
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
// businessType.value = 'ScrapToHold'
// importFileName.value = ''
// }
else if( routeName.value == 'InventorymoveRequestMain'){
fromInventoryStatus.value = null
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}else {
tableObject.params = { tableObject.params = {
fromInventoryStatus: 'OK', // fromInventoryStatus: 'SCRAP',
toInventoryStatus:'SCRAP' // toInventoryStatus:'HOLD',
businessType :'ScrapToHold'
} }
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
businessType.value = 'ScrapToHold'
importFileName.value = '报废转隔离申请'
} else {
tableObject.params = {
businessType :'Move'
}
businessType.value = 'Move'
importFileName.value = '库存移动申请'
} }
console.log(99 , businessType.value) console.log(99 , businessType.value)
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{ InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{
if(item.field == 'fromWarehouseCode') { if(item.field == 'fromWarehouseCode') {
if (fromInventoryStatus.value) { if (fromInventoryStatus.value) {
@ -803,6 +808,15 @@ const importSuccess = () => {
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
const cmd = {
'column':'businessType',
'action':'==',
'value':businessType.value
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = { tableObject.params = {
isSearch: true, isSearch: true,
filters: searchData.filters filters: searchData.filters

4
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

@ -810,12 +810,14 @@ const onChangeForm = async (field, cur, formRef)=>{
if(subList&&subList.length>0){ if(subList&&subList.length>0){
tableData.value = subList.map(item=>({ tableData.value = subList.map(item=>({
'batch':item['batch'], 'batch':item['batch'],
'status':item['inventoryStatus'], 'inventoryStatus':item['inventoryStatus'],
'inventoryBalance':item['qty'], 'inventoryBalance':item['qty'],
'qty':0, 'qty':0,
'reason_type':'', 'reason_type':'',
'reason':'' 'reason':''
})) }))
}else{
tableData.value = []
} }
} }
} }

1
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/purchasereturnRequestMainNew.data.ts

@ -254,6 +254,7 @@ export const PurchasereturnRequestMainNew = useCrudSchemas(
}, },
form: { form: {
component: 'Select', component: 'Select',
value:locationList[0]['value'],
componentProps: { componentProps: {
options: locationList options: locationList
} }

Loading…
Cancel
Save