|
|
@ -3,9 +3,15 @@ import { dateFormatter } from '@/utils/formatTime' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain' |
|
|
|
import { PurchasereceiptRecordMain } from '../../purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data' |
|
|
|
import { |
|
|
|
PurchasereceiptRecordDetail, |
|
|
|
PurchasereceiptRecordMain |
|
|
|
} from '../../purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data' |
|
|
|
import * as BalanceApi from '@/api/wms/balance' |
|
|
|
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data' |
|
|
|
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
|
const queryParams = { |
|
|
@ -18,6 +24,11 @@ const queryParams = { |
|
|
|
|
|
|
|
// 获取当前操作人的部门
|
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
|
import { |
|
|
|
PurchaseDetail |
|
|
|
} from "@/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data"; |
|
|
|
import * as PurchaseDetailApi from "@/api/wms/purchaseDetail"; |
|
|
|
import {getPurchasereceiptRecordDetailPage} from "@/api/wms/purchasereceiptRecordDetail"; |
|
|
|
const userStore = useUserStore() |
|
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
|
|
|
@ -465,6 +476,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -476,7 +492,27 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择订单行', |
|
|
|
searchField: 'poLine', |
|
|
|
searchTitle: '采购收货记录信息', |
|
|
|
searchAllSchemas: PurchasereceiptRecordDetail.allSchemas, |
|
|
|
searchPage: PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage, |
|
|
|
searchCondition: [{ |
|
|
|
key: 'number', |
|
|
|
value: 'purchaseReceiptRecordNumber', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品代码', |
|
|
@ -486,19 +522,13 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
isInpuFocusShow: true, |
|
|
|
earchListPlaceholder: '请选择包装号', |
|
|
|
searchField: 'packingNumber', |
|
|
|
searchTitle: '库存余额信息', |
|
|
|
searchAllSchemas: Balance.allSchemas, |
|
|
|
searchPage: BalanceApi.getBalancePageReturn, |
|
|
|
searchCondition:[{ |
|
|
|
key: 'workshopCode', |
|
|
|
value: 'workshopCode', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品名称', |
|
|
@ -509,6 +539,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -520,6 +555,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -531,6 +571,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// {
|
|
|
@ -553,6 +598,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -564,6 +614,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -575,6 +630,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -586,6 +646,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -597,6 +662,9 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
@ -618,71 +686,13 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
type: 'Select', |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '标包数量', |
|
|
|
field: 'stdPackQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '标包单位', |
|
|
|
field: 'stdPackUnit', |
|
|
|
dictType: DICT_TYPE.PACK_UNIT, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
type: 'Select', |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '供应商计量数量', |
|
|
|
field: 'supplierQty', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商计量单位', |
|
|
|
field: 'supplierUom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
type: 'Select', |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '库存状态', |
|
|
|
field: 'inventoryStatus', |
|
|
@ -697,17 +707,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
tableForm:{ |
|
|
|
disabled:true, |
|
|
|
type: 'Select', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从库位代码', |
|
|
|
field: 'fromLocationCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -719,51 +723,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从库位组代码', |
|
|
|
field: 'fromLocationGroupCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库位组代码', |
|
|
|
field: 'toLocationGroupCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '从库区代码', |
|
|
|
field: 'fromAreaCodes', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到库区代码', |
|
|
|
field: 'toAreaCodes', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -775,6 +739,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -786,6 +755,11 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -802,6 +776,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
@ -828,6 +803,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
@ -854,6 +830,7 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
disabled: true, |
|
|
|
type: 'datetime', |
|
|
|
format: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
@ -866,86 +843,6 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '转换率', |
|
|
|
field: 'convertRate', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '目检结果', |
|
|
|
field: 'visualInspectResult', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '目检照片', |
|
|
|
field: 'visualInspectPhotos', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '不合格原因', |
|
|
|
field: 'reason', |
|
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled: false, |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '单价', |
|
|
|
field: 'singlePrice', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '金额', |
|
|
|
field: 'amount', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'InputNumber', |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '任务明细ID', |
|
|
|
field: 'jobDetailId', |
|
|
@ -957,7 +854,12 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
isForm:false |
|
|
|
isForm:false, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
@ -969,7 +871,12 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
@ -985,19 +892,6 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
isTableForm:false, |
|
|
|
isForm:false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '代码', |
|
|
|
field: 'code', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
isForm:false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '接口类型', |
|
|
|
field: 'interfaceType', |
|
|
@ -1013,7 +907,12 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
disabled:true |
|
|
|
}, |
|
|
|
isForm:false, |
|
|
|
isTableForm:false |
|
|
|
isTableForm:false, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '备注', |
|
|
@ -1024,7 +923,12 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
tableForm:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps:{ |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
@ -1063,6 +967,17 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
isForm:false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
|
field: 'action', |
|
|
|
isDetail: false, |
|
|
|
isForm: false , |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
isTableForm:false, |
|
|
|
} |
|
|
|
])) |
|
|
|
|
|
|
|