diff --git a/src/api/wms/productreceiptRecordMain/index.ts b/src/api/wms/productreceiptRecordMain/index.ts
index e3dd420d9..d7637d4d0 100644
--- a/src/api/wms/productreceiptRecordMain/index.ts
+++ b/src/api/wms/productreceiptRecordMain/index.ts
@@ -126,3 +126,8 @@ export const createPutawayRequest = async (number:string) => {
export const createInspectRequest = async (number:string) => {
return await request.post({ url: `/wms/productreceipt-record-main/createInspectRequest?number=`+number })
}
+
+//制品收货记录子执行回收操作
+export const handleRecoveryProductreceiptRecord = async (data: ProductreceiptRecordMainVO) => {
+ return await request.put({ url: `/wms/productreceipt-record-main/handleRecovery`, data })
+}
diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue
index d2136a0be..34796ede1 100644
--- a/src/components/BasicForm/src/BasicForm.vue
+++ b/src/components/BasicForm/src/BasicForm.vue
@@ -85,7 +85,7 @@
label: '汇总',
prop: 'CollectionTable'
}]" v-model="tabSheet" @change="tabChange"/>
-
+
-
+
{
if(type=='create'){
InventorymoveRequestMain.allSchemas.formSchema.forEach(item =>{
+ if(item.field == 'fromWarehouseCode'){
+ item.componentProps.isSearchList = true
+ item.componentProps.disabled = false
+ }
if(item.field == 'dueTime') {
- item.value = dayjs().add(1, 'hour')
+ item.value = dayjs().add(1, 'hour').valueOf()
+ }
+ })
+ }else{
+ InventorymoveRequestMain.allSchemas.formSchema.forEach(item =>{
+ if(item.field == 'fromWarehouseCode'){
+ item.componentProps.isSearchList = false
+ item.componentProps.disabled = true
}
})
}
diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
index 542698de4..ca527db82 100644
--- a/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
+++ b/src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue
@@ -198,6 +198,7 @@ const butttondata = (row,$index) => {
// defaultButtons.mainInspectRequestBtn({hasPermi:'wms:productreceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请
defaultButtons.mainInspectRequestBtn({hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请
defaultButtons.mainListPointBtn(null), // 标签打印
+ defaultButtons.mainListRecoveryBtn(null), // 制品回收
]
}
@@ -207,8 +208,11 @@ const buttonTableClick = async (val, row) => {
handleCreateInspectRequest(row.number)
} else if (val == 'point') { // 标签打印
labelPrint(row)
+ } else if (val == 'recovery') { //制品回收
+ labelRecovery(row)
}
}
+
const BASE_URL = getJmreportBaseUrl()
// 标签打印
const searchTableRef = ref()
@@ -241,6 +245,18 @@ const labelPrint = async (row) => {
})
searchTableRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true)
}
+//制品回收按钮事件
+const labelRecovery = async (row) => {
+ try {
+ await message.confirm(t('ts.确认撤销报工吗?'))
+ tableObject.loading = true
+ let resType = await ProductreceiptRecordMainApi.handleRecoveryProductreceiptRecord(row)
+ message.success(t('ts.确认撤销报工成功'))
+ } catch {
+ } finally {
+ tableObject.loading = false
+ }
+}
// 批量打印--预生产收货
const searchTableSuccessLabel = async (formField, searchField, val, formRef, type, row) => {
console.log('批量打印',val)
diff --git a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
index f5706b3e0..ae2cdc531 100644
--- a/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
+++ b/src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
@@ -1,23 +1,31 @@
-
+
-
-
+
+
-
-
+
{{ row.number }}
-
-
+
+
@@ -43,7 +54,7 @@
-
-
+
+
@@ -86,58 +103,74 @@
:detailValidate="detailValidate"
/>
-
-
+
+
-
-
+
+
-
+
-
+