Browse Source

Merge remote-tracking branch 'remotes/origin/intex_online20250427' into intex

intex
刘忱 9 hours ago
parent
commit
ceeac4dba4
  1. 42
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

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

@ -280,7 +280,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
if (formField === 'projectCode') {
setV['projectCode'] = val[0]['projectCode']
}
if (formField === 'fromWarehouseCode' &&formRef.formModel.fromWarehouseCode != val[0]['code']) {
if (formField === 'fromLocationCode') {
setV['fromWarehouseCode'] = val[0]['warehouseCode']
tableData.value = []
}
if (formField === 'costcentreDescription') {
@ -567,26 +568,25 @@ const handleHandle = async (id: number) => {
const formRef = ref()
const openForm = async (type: string, row?: any) => {
if (type == 'create') {
const params = {
by: 'ASC',
filters: [
{ column: 'available', action: '==', value: 'TRUE' },
],
pageNo: 1,
pageSize: 500,
sort: ''
}
params.isSearch = true
WarehouseApi.getWarehouseByBusinessTypeSenior(params).then((res) => {
if (res.list?.length > 0) {
nextTick(() => {
formRef.value.formRef.setValues({
fromWarehouseCode: res.list[0].code
})
})
}
})
// const params = {
// by: 'ASC',
// filters: [
// { column: 'available', action: '==', value: 'TRUE' },
// ],
// pageNo: 1,
// pageSize: 500,
// sort: ''
// }
// params.isSearch = true
// WarehouseApi.getWarehouseByBusinessTypeSenior(params).then((res) => {
// if (res.list?.length > 0) {
// nextTick(() => {
// formRef.value.formRef.setValues({
// fromWarehouseCode: res.list[0].code
// })
// })
// }
// })
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q1Number' || item.field == 'q2Number' || item.field == 'q3Number') {
item.componentProps.enterSearch = true

Loading…
Cancel
Save