From e5a577820977b845823233dd96f8785b19303d17 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com>
Date: Mon, 18 Dec 2023 10:18:14 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E8=A7=A3=E7=94=B3=E8=AF=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/wms/bomDismantle/index.ts | 5 +
src/api/wms/dismantleRequestDetailb/index.ts | 4 +-
.../wms/productdismantleRequestMain/index.ts | 37 +-
.../productdismantleRequestMain/index.vue | 232 ++++++---
.../productdismantleRequestMain.data.ts | 463 ++++++++++++++----
5 files changed, 578 insertions(+), 163 deletions(-)
diff --git a/src/api/wms/bomDismantle/index.ts b/src/api/wms/bomDismantle/index.ts
index d014b113f..8d05e085c 100644
--- a/src/api/wms/bomDismantle/index.ts
+++ b/src/api/wms/bomDismantle/index.ts
@@ -9,3 +9,8 @@ export const getBomDismantlePage = async (params) => {
export const getBomDismantleRecordPage = async (params) => {
return await request.get({ url: `/wms/productrepair-record-main/bomPage`, params })
}
+
+// 查询制品拆解申请子列表
+export const getDetailbBomDismantlePage = async (params) => {
+ return await request.get({ url: `/wms/dismantle-request-detailb/bomPage`, params })
+}
\ No newline at end of file
diff --git a/src/api/wms/dismantleRequestDetailb/index.ts b/src/api/wms/dismantleRequestDetailb/index.ts
index 081c63317..4603fb305 100644
--- a/src/api/wms/dismantleRequestDetailb/index.ts
+++ b/src/api/wms/dismantleRequestDetailb/index.ts
@@ -41,8 +41,8 @@ export const createDismantleRequestDetailb = async (data: DismantleRequestDetail
}
// 修改制品拆解申请子
-export const updateDismantleRequestDetailb = async (data: DismantleRequestDetailbVO) => {
- return await request.put({ url: `/wms/dismantle-request-detailb/update`, data })
+export const updateDismantleRequestDetailb = async (id, data) => {
+ return await request.post({ url: `/wms/dismantle-request-detailb/update?id=`+id, data })
}
// 删除制品拆解申请子
diff --git a/src/api/wms/productdismantleRequestMain/index.ts b/src/api/wms/productdismantleRequestMain/index.ts
index 542bf5100..1319d18ea 100644
--- a/src/api/wms/productdismantleRequestMain/index.ts
+++ b/src/api/wms/productdismantleRequestMain/index.ts
@@ -57,10 +57,45 @@ export const deleteProductdismantleRequestMain = async (id: number) => {
// 导出制品拆解申请主 Excel
export const exportProductdismantleRequestMain = async (params) => {
- return await request.download({ url: `/wms/productdismantle-request-main/export-excel`, params })
+ if (params.isSearch) {
+ const data = {...params}
+ return await request.downloadPost({ url: `/wms/productdismantle-request-main/export-excel-senior`, data })
+ } else {
+ return await request.download({ url: `/wms/productdismantle-request-main/export-excel`, params })
+ }
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/productdismantle-request-main/get-import-template' })
+}
+
+// 关闭
+export const close = (id) => {
+ return request.put({ url: '/wms/productdismantle-request-main/close?id=' + id })
+}
+
+// 重新添加
+export const reAdd = (id) => {
+ return request.put({ url: '/wms/productdismantle-request-main/reAdd?id=' + id })
+}
+
+// 提交审批
+export const submit = (id) => {
+ return request.put({ url: '/wms/productdismantle-request-main/submit?id=' + id })
+}
+
+// 驳回
+export const refused = (id) => {
+ return request.put({ url: '/wms/productdismantle-request-main/refused?id=' + id })
+}
+
+// 审批通过
+export const agree = (id) => {
+ return request.put({ url: '/wms/productdismantle-request-main/agree?id=' + id })
+}
+
+// 处理
+export const handle = (id) => {
+ return request.put({ url: '/wms/productdismantle-request-main/handle?id=' + id })
}
\ No newline at end of file
diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
index 9c81e8e02..084a4104f 100644
--- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
+++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
@@ -54,6 +54,7 @@
@handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
+ @buttonOperationClick="buttonOperationClick"
/>
@@ -67,21 +68,42 @@
:apiUpdate="ProductdismantleRequestDetailApi.updateProductdismantleRequestDetaila"
:apiPage="ProductdismantleRequestDetailApi.getProductdismantleRequestDetailaPage"
:apiDelete="ProductdismantleRequestDetailApi.deleteProductdismantleRequestDetaila"
- :Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
+ :buttondataTable="buttondataTable"
+ @tableFormButton="tableFormButton"
/>
-
-
+
+
+
diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
index 69e2c962e..9543e8681 100644
--- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
+++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts
@@ -421,24 +421,15 @@ export const ProductdismantleRequestMainRules = reactive({
// fromAreaCodes: [
// { required: true, message: '请选择从库区代码范围', trigger: 'change' }
// ],
- departmentCode: [
- { required: true, message: '请输入部门', trigger: 'blur' }
+ workshopCode: [
+ { required: true, message: '请选择车间', trigger: 'change' }
],
- autoCommit: [
- { required: true, message: '请选择是否自动提交', trigger: 'change' }
+ team: [
+ { required: true, message: '请选择班组', trigger: 'change' }
],
- autoAgree: [
- { required: true, message: '请选择是否自动通过', trigger: 'change' }
+ shift: [
+ { required: true, message: '请选择班次', trigger: 'change' }
],
- autoExecute: [
- { required: true, message: '请选择是否自动执行', trigger: 'change' }
- ],
- directCreateRecord: [
- { required: true, message: '请选择是否跳过任务直接生成记录', trigger: 'change' }
- ],
- // businessType: [
- // { required: true, message: '请输入业务类型', trigger: 'blur' }
- // ],
})
/**
@@ -599,6 +590,42 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive([
+ {
+ label: '行标记',
+ field: 'rowId',
+ isTableForm: false,
+ isForm: false,
+ tableForm:{
+ disabled: true
+ },
+ table: {
+ show: false
+ }
+ },
+ {
+ label: '物品代码',
+ field: 'itemCode',
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '数量',
+ field: 'qty',
+ tableForm: {
+ type: 'InputNumber',
+ min: 0,
+ precision: 6
+ }
+ },
+ {
+ label: '计量单位',
+ field: 'uom',
+ dictType: DICT_TYPE.UOM,
+ dictClass: 'string',
+ tableForm:{
+ type: 'Select',
+ disabled: true
+ }
+ },
+ {
+ label: '库存状态',
+ field: 'inventoryStatus',
+ dictType: DICT_TYPE.INVENTORY_STATUS,
+ dictClass: 'string',
+ isTable: true,
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '包装号',
+ field: 'packingNumber',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '批次',
+ field: 'batch',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '从库位代码',
+ field: 'fromLocationCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '单据号',
+ field: 'number',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+
+ {
+ label: '物品名称',
+ field: 'itemName',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '物品描述1',
+ field: 'itemDesc1',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '物品描述2',
+ field: 'itemDesc2',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '项目代码',
+ field: 'projectCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '备注',
+ field: 'remark',
+ sort: 'custom',
+ table: {
+ width: 150,
+ show: false
+ },
+ isTableForm: false,
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180,
+ show: false
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x',
+ }
+ },
+ isTableForm: false,
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '创建者',
+ field: 'creator',
+ sort: 'custom',
+ table: {
+ width: 150,
+ show: false
+ },
+ isTableForm: false,
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '最后更新时间',
+ field: 'updateTime',
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ sort: 'custom',
+ table: {
+ width: 180,
+ show: false
+ },
+ form: {
+ component: 'DatePicker',
+ componentProps: {
+ type: 'datetime',
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x',
+ }
+ },
+ tableForm:{
+ disabled: true
+ }
+ },
+ {
+ label: '最后更新者',
+ field: 'updater',
+ sort: 'custom',
+ table: {
+ width: 150,
+ show: false
+ },
+ tableForm:{
+ disabled: true
+ }
+ }
+]))
\ No newline at end of file