diff --git a/src/api/wms/packagemergeDetail/index.ts b/src/api/wms/packagemergeDetail/index.ts
index c2d89ad88..3322cfe52 100644
--- a/src/api/wms/packagemergeDetail/index.ts
+++ b/src/api/wms/packagemergeDetail/index.ts
@@ -32,7 +32,13 @@ export interface PackagemergeDetailVO {
// 查询合包记录子列表
export const getPackagemergeDetailPage = async (params) => {
- return await request.get({ url: '/wms/packagemerge-detail/page', params })
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/packagemerge-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/packagemerge-detail/page`, params })
+ }
}
// 查询合包记录子详情
diff --git a/src/api/wms/packageoverDetail/index.ts b/src/api/wms/packageoverDetail/index.ts
index fe3c007a1..52a9f97e9 100644
--- a/src/api/wms/packageoverDetail/index.ts
+++ b/src/api/wms/packageoverDetail/index.ts
@@ -32,7 +32,13 @@ export interface PackageoverDetailVO {
// 查询翻包记录子列表
export const getPackageoverDetailPage = async (params) => {
- return await request.get({ url: '/wms/packageover-detail/page', params })
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/packageover-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/packageover-detail/page`, params })
+ }
}
// 查询翻包记录子详情
diff --git a/src/api/wms/packagesplitDetail/index.ts b/src/api/wms/packagesplitDetail/index.ts
index 0a026f642..23f787622 100644
--- a/src/api/wms/packagesplitDetail/index.ts
+++ b/src/api/wms/packagesplitDetail/index.ts
@@ -32,7 +32,13 @@ export interface PackagesplitDetailVO {
// 查询拆包记录子列表
export const getPackagesplitDetailPage = async (params) => {
- return await request.get({ url: '/wms/packagesplit-detail/page', params })
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/packagesplit-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/packagesplit-detail/page`, params })
+ }
}
// 查询拆包记录子详情
diff --git a/src/api/wms/purchasereceiptRecordDetail/index.ts b/src/api/wms/purchasereceiptRecordDetail/index.ts
index 2b97df643..b326094dc 100644
--- a/src/api/wms/purchasereceiptRecordDetail/index.ts
+++ b/src/api/wms/purchasereceiptRecordDetail/index.ts
@@ -90,4 +90,14 @@ export const exportPurchasereceiptRecordDetail = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/purchasereceipt-record-detail/get-import-template' })
+}
+// 缺货明细
+export const getScarceGoodsDetailPage = async (params) => {
+ if (params.isSearch) {
+ delete params.isSearch
+ const data = {...params}
+ return await request.post({ url: '/wms/purchaseshortage-detail/senior', data })
+ } else {
+ return await request.get({ url: `/wms/purchaseshortage-detail/page`, params })
+ }
}
\ No newline at end of file
diff --git a/src/api/wms/purchasereceiptRequestDetail/index.ts b/src/api/wms/purchasereceiptRequestDetail/index.ts
index ab8f7d936..20f40f658 100644
--- a/src/api/wms/purchasereceiptRequestDetail/index.ts
+++ b/src/api/wms/purchasereceiptRequestDetail/index.ts
@@ -65,16 +65,7 @@ export const deletePurchasereceiptRequestDetail = async (id: number) => {
return await request.delete({ url: `/wms/purchasereceipt-request-detail/delete?id=` + id })
}
-// 缺货明细
-export const getScarceGoodsDetailPage = async (params) => {
- if (params.isSearch) {
- delete params.isSearch
- const data = {...params}
- return await request.post({ url: '/wms/purchaseshortage-detail/senior', data })
- } else {
- return await request.get({ url: `/wms/purchaseshortage-detail/page`, params })
- }
-}
+
// 导出采购收货申请子 Excel
export const exportPurchasereceiptRequestDetail = async (params) => {
diff --git a/src/api/wms/supplierdeliverRequestMain/index.ts b/src/api/wms/supplierdeliverRequestMain/index.ts
index 82ac6b9c5..740675754 100644
--- a/src/api/wms/supplierdeliverRequestMain/index.ts
+++ b/src/api/wms/supplierdeliverRequestMain/index.ts
@@ -88,7 +88,7 @@ export const genLabel = async (id) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/genLabel?id=` + id })
}
// 生成记录
-export const genRecordsSupplierdeliverRequestMain = async (id) => {
+export const genRecordsSupplierinvoiceRequestMain = async (id) => {
return await request.post({ url: `/wms/supplierdeliver-request-main/genRecords?id=` + id })
}
// 导出供应商发货申请主 Excel
diff --git a/src/api/wms/supplierinvoiceRequestDetail/index.ts b/src/api/wms/supplierinvoiceRequestDetail/index.ts
index 16de55f22..8633e63b6 100644
--- a/src/api/wms/supplierinvoiceRequestDetail/index.ts
+++ b/src/api/wms/supplierinvoiceRequestDetail/index.ts
@@ -34,6 +34,11 @@ export const getSupplierinvoiceRequestDetailPage = async (params) => {
}
}
+// 查询供应商发票申请主详情
+export const getPoNumber = async (params) => {
+ return await request.get({ url: `/wms/supplierinvoice-request-detail/getPoNumber`, params})
+}
+
// 查询供应商发票申请子详情
export const getSupplierinvoiceRequestDetail = async (id: number) => {
return await request.get({ url: `/wms/supplierinvoice-request-detail/get?id=` + id })
@@ -62,4 +67,4 @@ export const exportSupplierinvoiceRequestDetail = async (params) => {
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/supplierinvoice-request-detail/get-import-template' })
-}
\ No newline at end of file
+}
diff --git a/src/api/wms/supplierinvoiceRequestMain/index.ts b/src/api/wms/supplierinvoiceRequestMain/index.ts
index 48e23c953..62d9231b5 100644
--- a/src/api/wms/supplierinvoiceRequestMain/index.ts
+++ b/src/api/wms/supplierinvoiceRequestMain/index.ts
@@ -56,6 +56,30 @@ export const deleteSupplierinvoiceRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/supplierinvoice-request-main/delete?id=` + id })
}
+// 打开供应商发货申请主
+export const opeSupplierinvoiceRequestMain = async (id: number) => {
+ return await request.post({ url: `/wms/supplierinvoice-request-main/open?id=` + id })
+}
+// 关闭供应商发货申请主
+export const cloSupplierinvoiceRequestMain = async (id: number) => {
+ return await request.post({ url: `/wms/supplierinvoice-request-main/close?id=` + id })
+}
+// 提交审批供应商发货申请主
+export const subSupplierinvoiceRequestMain = async (id: number) => {
+ return await request.post({ url: `/wms/supplierinvoice-request-main/sub?id=` + id })
+}
+// 审批通过供应商发货申请主
+export const appSupplierinvoiceRequestMain = async (id: number) => {
+ return await request.post({ url: `/wms/supplierinvoice-request-main/app?id=` + id })
+}
+// 驳回供应商发货申请主
+export const rejSupplierinvoiceRequestMain = async (id: number) => {
+ return await request.post({ url: `/wms/supplierinvoice-request-main/rej?id=` + id })
+}
+// 生成记录
+export const genRecordsSupplierinvoiceRequestMain = async (id) => {
+ return await request.post({ url: `/wms/supplierinvoice-request-main/genRecords?id=` + id })
+}
// 导出供应商发票申请主 Excel
export const exportSupplierinvoiceRequestMain = async (params) => {
return await request.download({ url: `/wms/supplierinvoice-request-main/export-excel`, params })
diff --git a/src/components/HeaderSearch/index.vue b/src/components/HeaderSearch/index.vue
new file mode 100644
index 000000000..86d9cff8e
--- /dev/null
+++ b/src/components/HeaderSearch/index.vue
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
diff --git a/src/layout/components/ToolHeader.vue b/src/layout/components/ToolHeader.vue
index ec7882de8..1a8cbc7d6 100644
--- a/src/layout/components/ToolHeader.vue
+++ b/src/layout/components/ToolHeader.vue
@@ -10,6 +10,7 @@ import { LocaleDropdown } from '@/layout/components/LocaleDropdown'
import { useAppStore } from '@/store/modules/app'
import { useDesign } from '@/hooks/web/useDesign'
+// 头部工具
const { getPrefixCls, variables } = useDesign()
const prefixCls = getPrefixCls('tool-header')
diff --git a/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts b/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts
index a94a9d824..5b3c1f2b0 100644
--- a/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts
+++ b/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts
@@ -17,53 +17,53 @@ const { t } = useI18n() // 国际化
* @returns {Array} 生产线物料关系
*/
export const Productionlineitem = useCrudSchemas(reactive([
- {
- label: '完工收货库位',
- field: 'fgLocationCode',
- isSearch: true,
- sort: 'custom',
- table: {
- width: 150,
- fixed: 'left'
- },
- form: {
- // labelMessage: '信息提示说明!!!',
- componentProps: {
- isSearchList: true,
- searchListPlaceholder: '请选择库位代码',
- searchField: 'code',
- searchTitle: '库位信息',
- searchAllSchemas: Location.allSchemas,
- searchPage: LocationApi.getLocationPage,
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- isMainValue: false
- }]
- }
- }
- },
- {
- label: '原料库位',
- field: 'rawLocationCode',
- isSearch: true,
- sort: 'custom',
- table: {
- width: 150,
- fixed: 'left'
- },
- form: {
- // labelMessage: '信息提示说明!!!',
- componentProps: {
- isSearchList: true,
- searchListPlaceholder: '请选择库位代码',
- searchField: 'code',
- searchTitle: '库位信息',
- searchAllSchemas: Location.allSchemas,
- searchPage: LocationApi.getLocationPage
- }
- }
- },
+ // {
+ // label: '完工收货库位',
+ // field: 'fgLocationCode',
+ // isSearch: true,
+ // sort: 'custom',
+ // table: {
+ // width: 150,
+ // fixed: 'left'
+ // },
+ // form: {
+ // // labelMessage: '信息提示说明!!!',
+ // componentProps: {
+ // isSearchList: true,
+ // searchListPlaceholder: '请选择库位代码',
+ // searchField: 'code',
+ // searchTitle: '库位信息',
+ // searchAllSchemas: Location.allSchemas,
+ // searchPage: LocationApi.getLocationPage,
+ // searchCondition: [{
+ // key: 'available',
+ // value: 'TRUE',
+ // isMainValue: false
+ // }]
+ // }
+ // }
+ // },
+ // {
+ // label: '原料库位',
+ // field: 'rawLocationCode',
+ // isSearch: true,
+ // sort: 'custom',
+ // table: {
+ // width: 150,
+ // fixed: 'left'
+ // },
+ // form: {
+ // // labelMessage: '信息提示说明!!!',
+ // componentProps: {
+ // isSearchList: true,
+ // searchListPlaceholder: '请选择库位代码',
+ // searchField: 'code',
+ // searchTitle: '库位信息',
+ // searchAllSchemas: Location.allSchemas,
+ // searchPage: LocationApi.getLocationPage
+ // }
+ // }
+ // },
{
label: '产线代码' ,
field: 'productionLineCode',
@@ -237,9 +237,9 @@ export const Productionlineitem = useCrudSchemas(reactive([
//表单校验
export const ProductionlineitemRules = reactive({
- fgLocationCode: [
- { required: true, message: '请输入完工收货库位', trigger: 'change' }
- ],
+ // fgLocationCode: [
+ // { required: true, message: '请输入完工收货库位', trigger: 'change' }
+ // ],
productionLineCode: [
{ required: true, message: '请输入产线代码', trigger: 'change' }
],
diff --git a/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue b/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
index edadedaf9..a66eafd9b 100644
--- a/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
+++ b/src/views/wms/basicDataManage/itemManage/stdcostprice/index.vue
@@ -67,6 +67,7 @@ import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue'
+// 标准成本价格单
defineOptions({ name: 'Stdcostprice' })
const message = useMessage() // 消息弹窗
diff --git a/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts b/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts
index ad0fd4bea..8ab68e45e 100644
--- a/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts
+++ b/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts
@@ -1,11 +1,11 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
-import * as SupplieritemApi from '@/api/wms/supplieritem'
-import { Supplieritem } from '../../supplierManage/supplieritem/supplieritem.data'
+import * as ItembasicApi from '@/api/wms/itembasic'
+import { Itembasic } from '../../itemManage/itembasic/itembasic.data'
-import * as SupplierApi from '@/api/wms/supplier'
-import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
+// import * as SupplierApi from '@/api/wms/supplier'
+// import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
const { t } = useI18n() // 国际化
@@ -13,34 +13,34 @@ const { t } = useI18n() // 国际化
* @returns {Array} 基础标准成本价格单
*/
export const Stdcostprice = useCrudSchemas(reactive([
- {
- label: '供应商代码',
- field: 'supplierCode',
- isSearch: true,
- sort: 'custom',
- table: {
- width: 150,
- fixed: 'left'
- },
- form: {
- // labelMessage: '信息提示说明!!!',
- componentProps: {
- isSearchList: true, // 开启查询弹窗
- searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
- searchField: 'code', // 查询弹窗赋值字段
- searchTitle: '供应商信息', // 查询弹窗标题
- searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
- searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法
- searchCondition: [{
- key: 'available',
- value: 'TRUE',
- action: '==',
- isSearch: true,
- isMainValue: false
- }]
- }
- }
- },
+ // {
+ // label: '供应商代码',
+ // field: 'supplierCode',
+ // isSearch: true,
+ // sort: 'custom',
+ // table: {
+ // width: 150,
+ // fixed: 'left'
+ // },
+ // form: {
+ // // labelMessage: '信息提示说明!!!',
+ // componentProps: {
+ // isSearchList: true, // 开启查询弹窗
+ // searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
+ // searchField: 'code', // 查询弹窗赋值字段
+ // searchTitle: '供应商信息', // 查询弹窗标题
+ // searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
+ // searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法
+ // searchCondition: [{
+ // key: 'available',
+ // value: 'TRUE',
+ // action: '==',
+ // isSearch: true,
+ // isMainValue: false
+ // }]
+ // }
+ // }
+ // },
{
label: '物料代码',
field: 'itemCode',
@@ -54,15 +54,17 @@ export const Stdcostprice = useCrudSchemas(reactive([
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物品代码', // 输入框占位文本
- searchField: 'itemCode', // 查询弹窗赋值字段
- searchTitle: '供应商物品信息', // 查询弹窗标题
- searchAllSchemas: Supplieritem.allSchemas, // 查询弹窗所需类
- searchPage: SupplieritemApi.getSupplieritemPage, // 查询弹窗所需分页方法
- searchCondition: [{
- key:'supplierCode',
- value:'supplierCode',
- isMainValue: true
- },{
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '物品信息', // 查询弹窗标题
+ searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
+ searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
+ searchCondition: [
+ // {
+ // key:'supplierCode',
+ // value:'supplierCode',
+ // isMainValue: true
+ // },
+ {
key: 'available',
value: 'TRUE',
isMainValue: false
diff --git a/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue b/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
index e8501a0fe..63bd9f99d 100644
--- a/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
+++ b/src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
@@ -45,8 +45,8 @@
:rules="PackageRules"
:formAllSchemas="Package.allSchemas"
:searchTableParams="searchTableParams"
- :apiUpdate="PackageApi.updatePackage"
- :apiCreate="PackageApi.createPackage"
+ :apiUpdate="BarbasicApi.updateBarbasic"
+ :apiCreate="BarbasicApi.createBarbasic"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
@@ -62,9 +62,10 @@
import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { Package,PackageRules } from './manufacturePackage.data'
-import * as PackageApi from '@/api/wms/package'
+import * as BarbasicApi from '@/api/wms/barbasic'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
+// 制造件标签
defineOptions({ name: 'ManufacturePackage' })
const message = useMessage() // 消息弹窗
@@ -75,29 +76,21 @@ const routeName = ref()
routeName.value = route.name
const tableColumns = ref(Package.allSchemas.tableColumns)
-
/**
- * PurchasePackage regularParams = procure采购件标签记录页面
- * ManufacturePackage regularParams = manufacture 制造件标签记录页面
- * UtensilPackage regularParams = utensil 器具标签记录页面
- * SupplierPackage regularParams = procure 供应商发货标签记录(用采购标签)
+ * PurchasePackage type = PurchaseLabel 采购件标签记录页面
+ * ManufacturePackage type = MakeLabel 制造件标签记录页面
+ * UtensilPackage type = ContainerLabel 器具标签记录页面
+ * SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签)
*/
- const regularParams = ref(route.name == 'PurchasePackage'?'procure':route.name == 'ManufacturePackage'?'manufacture':route.name == 'UtensilPackage'?'utensil':route.name == 'SupplierPackage'?'procure':'')
+ const type = ref(route.name == 'PurchasePackage'?'PurchaseLabel':route.name == 'ManufacturePackage'?'MakeLabel':route.name == 'UtensilPackage'?'ContainerLabel':route.name == 'SupplierPackage'?'PurchaseLabel':'')
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
tableColumns.value = val
}
-
// 查询列表页面参数设置
const searchTableParams = ref([
-//{
-// formField: 'productItemCode',
-// searchTableTitle: '物料信息',
-// searchTableAllSchemas: Itembasic.allSchemas,
-// searchTablePage: ItembasicApi.getItembasicPage
-//}
])
// 查询页面返回
@@ -110,9 +103,9 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row
}
const { tableObject, tableMethods } = useTable({
- getListApi: PackageApi.getPackagePage // 分页接口
+ getListApi: BarbasicApi.getBarbasicPage // 分页接口
})
-tableObject.params.regularParams = regularParams.value
+tableObject.params.type = type.value
// 获得表格的各种操作
const { getList, setSearchParams } = tableMethods
@@ -182,7 +175,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'delete') { // 删除
handleDelete(row.id)
} else if (val == 'point') { // 标签打印
- handlePoint(row.id)
+ handlePoint(row.relateNumber)
}
}
@@ -204,7 +197,7 @@ const handleDelete = async (id: number) => {
// 删除的二次确认
await message.delConfirm()
// 发起删除
- await PackageApi.deletePackage(id)
+ await BarbasicApi.deleteBarbasic(id)
message.success(t('common.delSuccess'))
// 刷新列表
await getList()
@@ -219,8 +212,8 @@ const handleExport = async () => {
await message.exportConfirm()
// 发起导出
exportLoading.value = true
- const data = await PackageApi.exportPackage(setSearchParams)
- download.excel(data, '包装.xlsx')
+ const data = await BarbasicApi.exportBarbasic(tableObject.params)
+ download.excel(data, '制造件标签.xlsx')
} catch {
} finally {
exportLoading.value = false
@@ -228,10 +221,10 @@ const handleExport = async () => {
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
-const src = ref(BASE_URL + '/jmreport/view/894718245021065216?token=' + getAccessToken())
+const src = ref(BASE_URL + '/jmreport/view/899811206721347584?token=' + getAccessToken())
// 标签打印
-const handlePoint = async (id) => {
- window.open(src.value+'&id='+id)
+const handlePoint = async (number) => {
+ window.open(src.value+'&number='+number)
}
/** 导入 */
@@ -256,7 +249,7 @@ const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters,
- regularParams:regularParams.value
+ type:type.value
}
getList() // 刷新当前列表
}
diff --git a/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts b/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
index c7d72ffcd..c5f372059 100644
--- a/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
+++ b/src/views/wms/basicDataManage/labelManage/manufacturePackage/manufacturePackage.data.ts
@@ -7,107 +7,54 @@ export const PackageRules = reactive({
itemCode: [required],
itemName: [required],
})
-export const Package2 = useCrudSchemas(reactive([
- {
- label: '包装号',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- table: {
- width: 150,
- fixed: 'left'
- },
- },
-]))
+
export const Package = useCrudSchemas(reactive([
{
- label: '包装号',
+ label: '标签号',
field: 'number',
sort: 'custom',
isSearch: true,
table: {
- width: 150,
fixed: 'left'
- },
+ }
},
{
- label: '物料代码',
- field: 'itemCode',
+ label: '标签类型',
+ field: 'type',
sort: 'custom',
isSearch: true,
- table: {
- width: 150,
- },
- },
- {
- label: '物品名称',
- field: 'itemName',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '物品描述1',
- field: 'itemDesc1',
- sort: 'custom',
- table: {
- width: 150,
- },
+ dictType: DICT_TYPE.LABEL_TYPE,
+ dictClass: 'string'
},
{
- label: '物品描述2',
- field: 'itemDesc2',
+ label: '标签模板',
+ field: 'template',
sort: 'custom',
- table: {
- width: 150,
- },
},
{
- label: '批次',
- field: 'batch',
+ label: '标签状态',
+ field: 'status',
sort: 'custom',
isSearch: true,
- table: {
- width: 150,
- },
+ dictType: DICT_TYPE.LABEL_STATUS,
+ dictClass: 'string'
},
{
- label: '替代批次',
- field: 'altBatch',
+ label: '关联号',
+ field: 'relateNumber',
sort: 'custom',
- table: {
- width: 150,
- },
},
{
- label: '生产日期',
- field: 'produceDate',
+ label: '标签条码字符串',
+ field: 'barcodeString',
sort: 'custom',
- formatter: dateFormatter,
- search: {
- component: 'DatePicker',
- componentProps: {
- style: {width:'100%'},
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
- }
- },
table: {
- width: 180,
- },
+ width: 170,
+ }
},
{
- label: '有效期(日)',
- field: 'validityDays',
+ label: '打印次数',
+ field: 'printTimes',
sort: 'custom',
form: {
component: 'InputNumber',
@@ -116,297 +63,34 @@ export const Package = useCrudSchemas(reactive([
},
value: 0
},
- table: {
- width: 150,
- },
},
{
- label: '失效日期',
- field: 'expireDate',
+ label: '最后打印时间',
+ field: 'lastPrintTime',
sort: 'custom',
formatter: dateFormatter,
- search: {
- component: 'DatePicker',
- componentProps: {
- style: {width:'100%'},
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
- },
form: {
component: 'DatePicker',
componentProps: {
+ style: {width:'100%'},
type: 'datetime',
- valueFormat: 'x'
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x',
}
},
- table: {
- width: 180,
- },
},
{
- label: '计量单位',
- field: 'uom',
- sort: 'custom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- form: {
- component: 'SelectV2'
- },
- table: {
- width: 150,
- },
- },
- {
- label: '数量',
- field: 'qty',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '替代计量单位',
- field: 'altUom',
- sort: 'custom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- form: {
- component: 'SelectV2'
- },
- table: {
- width: 150,
- },
- },
- {
- label: '替代数量',
- field: 'altQty',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '转换率',
- field: 'convertRate',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '标包数量',
- field: 'stdPackQty',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '标包单位',
- field: 'stdPackUnit',
- sort: 'custom',
- dictType: DICT_TYPE.PACK_UNIT,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- form: {
- component: 'SelectV2'
- },
- table: {
- width: 150,
- },
+ label: '最后打印人ID',
+ field: 'lastPrintUserId',
+ sort: 'custom'
},
{
- label: '仓库代码',
- field: 'toWarehouseCode',
+ label: '最后打印人用户名',
+ field: 'lastPrintUserName',
sort: 'custom',
table: {
- width: 150,
- },
- },
- {
- label: '月台代码',
- field: 'toDockCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '库位代码',
- field: 'toLocationCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '供应商代码',
- field: 'supplierCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '供应商物品代码',
- field: 'supplierItemCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '采购订单号',
- field: 'poNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '采购订单行',
- field: 'poLine',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '采购计划单号',
- field: 'rpNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '发货单号',
- field: 'asnNumber',
- sort: 'custom',
- table: {
- width: 182,
- },
- },
- {
- label: '生产订单号',
- field: 'woNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '生产订单行',
- field: 'woLine',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '生产线代码',
- field: 'productionLineCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '班组代码',
- field: 'teamCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '班次代码',
- field: 'shiftCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '客户代码',
- field: 'customerCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '客户月台代码',
- field: 'customerDockCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '客户物品代码',
- field: 'customerItemCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '销售订单号',
- field: 'soNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '销售订单行',
- field: 'soLine',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '质量等级',
- field: 'eqLevel',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '货主代码',
- field: 'ownerCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '重量',
- field: 'weight',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '面积',
- field: 'area',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '体积',
- field: 'volume',
- sort: 'custom',
- table: {
- width: 150,
- },
+ width: 170,
+ }
},
{
label: '操作',
diff --git a/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue b/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue
index 63f4b5dc9..4046566df 100644
--- a/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue
+++ b/src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue
@@ -45,8 +45,8 @@
:rules="PackageRules"
:formAllSchemas="Package.allSchemas"
:searchTableParams="searchTableParams"
- :apiUpdate="PackageApi.updatePackage"
- :apiCreate="PackageApi.createPackage"
+ :apiUpdate="BarbasicApi.updateBarbasic"
+ :apiCreate="BarbasicApi.createBarbasic"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
@@ -62,9 +62,10 @@
import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { Package,PackageRules } from './purchasePackage.data'
-import * as PackageApi from '@/api/wms/package'
+import * as BarbasicApi from '@/api/wms/barbasic'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
+// 采购标签
defineOptions({ name: 'PurchasePackage' })
const message = useMessage() // 消息弹窗
@@ -77,12 +78,12 @@ const tableColumns = ref(Package.allSchemas.tableColumns)
/**
- * PurchasePackage regularParams = procure采购件标签记录页面
- * ManufacturePackage regularParams = manufacture 制造件标签记录页面
- * UtensilPackage regularParams = utensil 器具标签记录页面
- * SupplierPackage regularParams = procure 供应商发货标签记录(用采购标签)
+ * PurchasePackage type = PurchaseLabel 采购件标签记录页面
+ * ManufacturePackage type = MakeLabel 制造件标签记录页面
+ * UtensilPackage type = ContainerLabel 器具标签记录页面
+ * SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签)
*/
-const regularParams = ref(route.name == 'PurchasePackage'?'procure':route.name == 'ManufacturePackage'?'manufacture':route.name == 'UtensilPackage'?'utensil':route.name == 'SupplierPackage'?'procure':'')
+ const type = ref(route.name == 'PurchasePackage'?'PurchaseLabel':route.name == 'ManufacturePackage'?'MakeLabel':route.name == 'UtensilPackage'?'ContainerLabel':route.name == 'SupplierPackage'?'PurchaseLabel':'')
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -110,9 +111,9 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row
}
const { tableObject, tableMethods } = useTable({
- getListApi: PackageApi.getPackagePage // 分页接口
+ getListApi: BarbasicApi.getBarbasicPage // 分页接口
})
-tableObject.params.regularParams = regularParams.value
+tableObject.params.type = type.value
// 获得表格的各种操作
const { getList, setSearchParams } = tableMethods
@@ -204,7 +205,7 @@ const handleDelete = async (id: number) => {
// 删除的二次确认
await message.delConfirm()
// 发起删除
- await PackageApi.deletePackage(id)
+ await BarbasicApi.deleteBarbasic(id)
message.success(t('common.delSuccess'))
// 刷新列表
await getList()
@@ -219,8 +220,8 @@ const handleExport = async () => {
await message.exportConfirm()
// 发起导出
exportLoading.value = true
- const data = await PackageApi.exportPackage(tableObject.params)
- download.excel(data, '包装.xlsx')
+ const data = await BarbasicApi.exportBarbasic(tableObject.params)
+ download.excel(data, '采购件标签.xlsx')
} catch {
} finally {
exportLoading.value = false
@@ -228,10 +229,10 @@ const handleExport = async () => {
}
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
-const src = ref(BASE_URL + '/jmreport/view/894703223549108224?token=' + getAccessToken())
+const src = ref(BASE_URL + '/jmreport/view/899807302088564736?token=' + getAccessToken())
// 标签打印
const handlePoint = async (row) => {
- window.open(src.value+'&id='+row.id)
+ window.open(src.value+'&number='+row.relateNumber)
}
/** 导入 */
@@ -256,7 +257,7 @@ const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters,
- regularParams:regularParams.value
+ type:type.value
}
getList() // 刷新当前列表
}
diff --git a/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts b/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts
index c7d72ffcd..3698d03a8 100644
--- a/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts
+++ b/src/views/wms/basicDataManage/labelManage/purchasePackage/purchasePackage.data.ts
@@ -7,107 +7,53 @@ export const PackageRules = reactive({
itemCode: [required],
itemName: [required],
})
-export const Package2 = useCrudSchemas(reactive([
- {
- label: '包装号',
- field: 'number',
- sort: 'custom',
- isSearch: true,
- table: {
- width: 150,
- fixed: 'left'
- },
- },
-]))
export const Package = useCrudSchemas(reactive([
{
- label: '包装号',
+ label: '标签号',
field: 'number',
sort: 'custom',
isSearch: true,
table: {
- width: 150,
fixed: 'left'
- },
+ }
},
{
- label: '物料代码',
- field: 'itemCode',
+ label: '标签类型',
+ field: 'type',
sort: 'custom',
isSearch: true,
- table: {
- width: 150,
- },
+ dictType: DICT_TYPE.LABEL_TYPE,
+ dictClass: 'string'
},
{
- label: '物品名称',
- field: 'itemName',
+ label: '标签模板',
+ field: 'template',
sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '物品描述1',
- field: 'itemDesc1',
- sort: 'custom',
- table: {
- width: 150,
- },
},
{
- label: '物品描述2',
- field: 'itemDesc2',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '批次',
- field: 'batch',
+ label: '标签状态',
+ field: 'status',
sort: 'custom',
isSearch: true,
- table: {
- width: 150,
- },
+ dictType: DICT_TYPE.LABEL_STATUS,
+ dictClass: 'string'
},
{
- label: '替代批次',
- field: 'altBatch',
+ label: '关联号',
+ field: 'relateNumber',
sort: 'custom',
- table: {
- width: 150,
- },
},
{
- label: '生产日期',
- field: 'produceDate',
+ label: '标签条码字符串',
+ field: 'barcodeString',
sort: 'custom',
- formatter: dateFormatter,
- search: {
- component: 'DatePicker',
- componentProps: {
- style: {width:'100%'},
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
- }
- },
table: {
- width: 180,
- },
+ width: 170,
+ }
},
{
- label: '有效期(日)',
- field: 'validityDays',
+ label: '打印次数',
+ field: 'printTimes',
sort: 'custom',
form: {
component: 'InputNumber',
@@ -116,297 +62,34 @@ export const Package = useCrudSchemas(reactive([
},
value: 0
},
- table: {
- width: 150,
- },
},
{
- label: '失效日期',
- field: 'expireDate',
+ label: '最后打印时间',
+ field: 'lastPrintTime',
sort: 'custom',
formatter: dateFormatter,
- search: {
- component: 'DatePicker',
- componentProps: {
- style: {width:'100%'},
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
- },
form: {
component: 'DatePicker',
componentProps: {
+ style: {width:'100%'},
type: 'datetime',
- valueFormat: 'x'
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x',
}
},
- table: {
- width: 180,
- },
- },
- {
- label: '计量单位',
- field: 'uom',
- sort: 'custom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- form: {
- component: 'SelectV2'
- },
- table: {
- width: 150,
- },
- },
- {
- label: '数量',
- field: 'qty',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '替代计量单位',
- field: 'altUom',
- sort: 'custom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- form: {
- component: 'SelectV2'
- },
- table: {
- width: 150,
- },
- },
- {
- label: '替代数量',
- field: 'altQty',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '转换率',
- field: 'convertRate',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '标包数量',
- field: 'stdPackQty',
- sort: 'custom',
- table: {
- width: 150,
- },
},
{
- label: '标包单位',
- field: 'stdPackUnit',
- sort: 'custom',
- dictType: DICT_TYPE.PACK_UNIT,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- form: {
- component: 'SelectV2'
- },
- table: {
- width: 150,
- },
+ label: '最后打印人ID',
+ field: 'lastPrintUserId',
+ sort: 'custom'
},
{
- label: '仓库代码',
- field: 'toWarehouseCode',
+ label: '最后打印人用户名',
+ field: 'lastPrintUserName',
sort: 'custom',
table: {
- width: 150,
- },
- },
- {
- label: '月台代码',
- field: 'toDockCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '库位代码',
- field: 'toLocationCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '供应商代码',
- field: 'supplierCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '供应商物品代码',
- field: 'supplierItemCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '采购订单号',
- field: 'poNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '采购订单行',
- field: 'poLine',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '采购计划单号',
- field: 'rpNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '发货单号',
- field: 'asnNumber',
- sort: 'custom',
- table: {
- width: 182,
- },
- },
- {
- label: '生产订单号',
- field: 'woNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '生产订单行',
- field: 'woLine',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '生产线代码',
- field: 'productionLineCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '班组代码',
- field: 'teamCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '班次代码',
- field: 'shiftCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '客户代码',
- field: 'customerCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '客户月台代码',
- field: 'customerDockCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '客户物品代码',
- field: 'customerItemCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '销售订单号',
- field: 'soNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '销售订单行',
- field: 'soLine',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '质量等级',
- field: 'eqLevel',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '货主代码',
- field: 'ownerCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '重量',
- field: 'weight',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '面积',
- field: 'area',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '体积',
- field: 'volume',
- sort: 'custom',
- table: {
- width: 150,
- },
+ width: 170,
+ }
},
{
label: '操作',
@@ -417,4 +100,4 @@ export const Package = useCrudSchemas(reactive([
fixed: 'right'
}
}
-]))
+]))
\ No newline at end of file
diff --git a/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue b/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue
index b62e0bbf8..5bfb5b14e 100644
--- a/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue
+++ b/src/views/wms/basicDataManage/labelManage/utensilPackage/index.vue
@@ -45,8 +45,8 @@
:rules="PackageRules"
:formAllSchemas="Package.allSchemas"
:searchTableParams="searchTableParams"
- :apiUpdate="PackageApi.updatePackage"
- :apiCreate="PackageApi.createPackage"
+ :apiUpdate="BarbasicApi.updateBarbasic"
+ :apiCreate="BarbasicApi.createBarbasic"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
@@ -62,9 +62,10 @@
import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { Package,PackageRules } from './utensilPackage.data'
-import * as PackageApi from '@/api/wms/package'
+import * as BarbasicApi from '@/api/wms/barbasic'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
+// 器具标签
defineOptions({ name: 'UtensilPackage' })
const message = useMessage() // 消息弹窗
@@ -77,12 +78,12 @@ const tableColumns = ref(Package.allSchemas.tableColumns)
/**
- * PurchasePackage regularParams = procure采购件标签记录页面
- * ManufacturePackage regularParams = manufacture 制造件标签记录页面
- * UtensilPackage regularParams = utensil 器具标签记录页面
- * SupplierPackage regularParams = procure 供应商发货标签记录(用采购标签)
+ * PurchasePackage type = PurchaseLabel 采购件标签记录页面
+ * ManufacturePackage type = MakeLabel 制造件标签记录页面
+ * UtensilPackage type = ContainerLabel 器具标签记录页面
+ * SupplierPackage type = PurchaseLabel 供应商发货标签记录(用采购标签)
*/
- const regularParams = ref(route.name == 'PurchasePackage'?'procure':route.name == 'ManufacturePackage'?'manufacture':route.name == 'UtensilPackage'?'utensil':route.name == 'SupplierPackage'?'procure':'')
+ const type = ref(route.name == 'PurchasePackage'?'PurchaseLabel':route.name == 'ManufacturePackage'?'MakeLabel':route.name == 'UtensilPackage'?'ContainerLabel':route.name == 'SupplierPackage'?'PurchaseLabel':'')
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -110,9 +111,9 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row
}
const { tableObject, tableMethods } = useTable({
- getListApi: PackageApi.getPackagePage // 分页接口
+ getListApi: BarbasicApi.getBarbasicPage // 分页接口
})
-tableObject.params.regularParams = regularParams.value
+tableObject.params.type = type.value
// 获得表格的各种操作
const { getList, setSearchParams } = tableMethods
@@ -182,7 +183,7 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'delete') { // 删除
handleDelete(row.id)
} else if (val == 'point') { // 标签打印
- handlePoint(row.id)
+ handlePoint(row)
}
}
@@ -204,7 +205,7 @@ const handleDelete = async (id: number) => {
// 删除的二次确认
await message.delConfirm()
// 发起删除
- await PackageApi.deletePackage(id)
+ await BarbasicApi.deleteBarbasic(id)
message.success(t('common.delSuccess'))
// 刷新列表
await getList()
@@ -219,8 +220,8 @@ const handleExport = async () => {
await message.exportConfirm()
// 发起导出
exportLoading.value = true
- const data = await PackageApi.exportPackage(setSearchParams)
- download.excel(data, '包装.xlsx')
+ const data = await BarbasicApi.exportBarbasic(tableObject.params)
+ download.excel(data, '器具标签.xlsx')
} catch {
} finally {
exportLoading.value = false
@@ -228,10 +229,10 @@ const handleExport = async () => {
}
const BASE_URL = 'http://dev.ccwin-in.com:25110'
-const src = ref(BASE_URL + '/jmreport/view/881303562245316608?token=' + getAccessToken())
+const src = ref(BASE_URL + '/jmreport/view/899807302088564736?token=' + getAccessToken())
// 标签打印
-const handlePoint = async (id) => {
- window.open(src.value+'&id='+id)
+const handlePoint = async (row) => {
+ window.open(src.value+'&number='+row.relateNumber)
}
/** 导入 */
@@ -256,7 +257,7 @@ const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters,
- regularParams:regularParams.value
+ type:type.value
}
getList() // 刷新当前列表
}
diff --git a/src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts b/src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts
index c7d72ffcd..d82ab1f4d 100644
--- a/src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts
+++ b/src/views/wms/basicDataManage/labelManage/utensilPackage/utensilPackage.data.ts
@@ -21,93 +21,51 @@ export const Package2 = useCrudSchemas(reactive([
]))
export const Package = useCrudSchemas(reactive([
{
- label: '包装号',
+ label: '标签号',
field: 'number',
sort: 'custom',
isSearch: true,
table: {
- width: 150,
fixed: 'left'
- },
+ }
},
{
- label: '物料代码',
- field: 'itemCode',
+ label: '标签类型',
+ field: 'type',
sort: 'custom',
isSearch: true,
- table: {
- width: 150,
- },
- },
- {
- label: '物品名称',
- field: 'itemName',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '物品描述1',
- field: 'itemDesc1',
- sort: 'custom',
- table: {
- width: 150,
- },
+ dictType: DICT_TYPE.LABEL_TYPE,
+ dictClass: 'string'
},
{
- label: '物品描述2',
- field: 'itemDesc2',
+ label: '标签模板',
+ field: 'template',
sort: 'custom',
- table: {
- width: 150,
- },
},
{
- label: '批次',
- field: 'batch',
+ label: '标签状态',
+ field: 'status',
sort: 'custom',
isSearch: true,
- table: {
- width: 150,
- },
+ dictType: DICT_TYPE.LABEL_STATUS,
+ dictClass: 'string'
},
{
- label: '替代批次',
- field: 'altBatch',
+ label: '关联号',
+ field: 'relateNumber',
sort: 'custom',
- table: {
- width: 150,
- },
},
{
- label: '生产日期',
- field: 'produceDate',
+ label: '标签条码字符串',
+ field: 'barcodeString',
sort: 'custom',
- formatter: dateFormatter,
- search: {
- component: 'DatePicker',
- componentProps: {
- style: {width:'100%'},
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
- },
- form: {
- component: 'DatePicker',
- componentProps: {
- type: 'datetime',
- valueFormat: 'x'
- }
- },
table: {
- width: 180,
- },
+ width: 170,
+ }
},
{
- label: '有效期(日)',
- field: 'validityDays',
+ label: '打印次数',
+ field: 'printTimes',
sort: 'custom',
form: {
component: 'InputNumber',
@@ -116,297 +74,34 @@ export const Package = useCrudSchemas(reactive([
},
value: 0
},
- table: {
- width: 150,
- },
},
{
- label: '失效日期',
- field: 'expireDate',
+ label: '最后打印时间',
+ field: 'lastPrintTime',
sort: 'custom',
formatter: dateFormatter,
- search: {
- component: 'DatePicker',
- componentProps: {
- style: {width:'100%'},
- valueFormat: 'YYYY-MM-DD HH:mm:ss',
- type: 'daterange',
- defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
- }
- },
form: {
component: 'DatePicker',
componentProps: {
+ style: {width:'100%'},
type: 'datetime',
- valueFormat: 'x'
+ dateFormat: 'YYYY-MM-DD HH:mm:ss',
+ valueFormat: 'x',
}
},
- table: {
- width: 180,
- },
- },
- {
- label: '计量单位',
- field: 'uom',
- sort: 'custom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- form: {
- component: 'SelectV2'
- },
- table: {
- width: 150,
- },
- },
- {
- label: '数量',
- field: 'qty',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '替代计量单位',
- field: 'altUom',
- sort: 'custom',
- dictType: DICT_TYPE.UOM,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- form: {
- component: 'SelectV2'
- },
- table: {
- width: 150,
- },
- },
- {
- label: '替代数量',
- field: 'altQty',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '转换率',
- field: 'convertRate',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '标包数量',
- field: 'stdPackQty',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '标包单位',
- field: 'stdPackUnit',
- sort: 'custom',
- dictType: DICT_TYPE.PACK_UNIT,
- dictClass: 'string', // 默认都是字符串类型其他暂不考虑
- form: {
- component: 'SelectV2'
- },
- table: {
- width: 150,
- },
- },
- {
- label: '仓库代码',
- field: 'toWarehouseCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '月台代码',
- field: 'toDockCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '库位代码',
- field: 'toLocationCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '供应商代码',
- field: 'supplierCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '供应商物品代码',
- field: 'supplierItemCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '采购订单号',
- field: 'poNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '采购订单行',
- field: 'poLine',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '采购计划单号',
- field: 'rpNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '发货单号',
- field: 'asnNumber',
- sort: 'custom',
- table: {
- width: 182,
- },
- },
- {
- label: '生产订单号',
- field: 'woNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '生产订单行',
- field: 'woLine',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '生产线代码',
- field: 'productionLineCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '班组代码',
- field: 'teamCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '班次代码',
- field: 'shiftCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '客户代码',
- field: 'customerCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '客户月台代码',
- field: 'customerDockCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '客户物品代码',
- field: 'customerItemCode',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '销售订单号',
- field: 'soNumber',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '销售订单行',
- field: 'soLine',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '质量等级',
- field: 'eqLevel',
- sort: 'custom',
- table: {
- width: 150,
- },
- },
- {
- label: '货主代码',
- field: 'ownerCode',
- sort: 'custom',
- table: {
- width: 150,
- },
},
{
- label: '重量',
- field: 'weight',
- sort: 'custom',
- table: {
- width: 150,
- },
+ label: '最后打印人ID',
+ field: 'lastPrintUserId',
+ sort: 'custom'
},
{
- label: '面积',
- field: 'area',
+ label: '最后打印人用户名',
+ field: 'lastPrintUserName',
sort: 'custom',
table: {
- width: 150,
- },
- },
- {
- label: '体积',
- field: 'volume',
- sort: 'custom',
- table: {
- width: 150,
- },
+ width: 170,
+ }
},
{
label: '操作',
@@ -417,4 +112,4 @@ export const Package = useCrudSchemas(reactive([
fixed: 'right'
}
}
-]))
+]))
\ No newline at end of file
diff --git a/src/views/wms/basicDataManage/orderManage/team/team.data.ts b/src/views/wms/basicDataManage/orderManage/team/team.data.ts
index 6b48838cc..0bc377788 100644
--- a/src/views/wms/basicDataManage/orderManage/team/team.data.ts
+++ b/src/views/wms/basicDataManage/orderManage/team/team.data.ts
@@ -13,7 +13,6 @@ export const Team = useCrudSchemas(reactive([
field: 'code',
sort: 'custom',
table: {
- width: 150,
fixed: 'left'
},
isSearch: true,
@@ -22,18 +21,12 @@ export const Team = useCrudSchemas(reactive([
label: '名称',
field: 'name',
sort: 'custom',
- table: {
- width: 150
- },
isSearch: true,
},
{
label: '成员',
field: 'members',
sort: 'custom',
- table: {
- width: 150
- },
isSearch: true,
},
{
@@ -44,9 +37,6 @@ export const Team = useCrudSchemas(reactive([
isTable: true,
isSearch: true,
sort: 'custom',
- table: {
- width: 150
- },
form: {
component: 'Switch',
value: 'TRUE',
@@ -104,9 +94,6 @@ export const Team = useCrudSchemas(reactive([
label: '备注',
field: 'remark',
sort: 'custom',
- table: {
- width: 150
- },
},
{
label: '创建时间',
@@ -135,9 +122,6 @@ export const Team = useCrudSchemas(reactive([
label: '创建者',
field: 'creator',
sort: 'custom',
- table: {
- width: 150
- },
isForm: false,
isTable: false,
},
@@ -147,7 +131,6 @@ export const Team = useCrudSchemas(reactive([
isDetail: false,
isForm: false ,
table: {
- width: 150,
fixed: 'right'
}
}
diff --git a/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/packagemergeMain.data.ts b/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/packagemergeMain.data.ts
index 1a8344ce8..ce49bc213 100644
--- a/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/packagemergeMain.data.ts
+++ b/src/views/wms/inventoryjobManage/packageManage/packagemergeMain/packagemergeMain.data.ts
@@ -251,6 +251,22 @@ export const PackagemergeDetail = useCrudSchemas(reactive([
width: 150
},
},
+ {
+ label: '从数量',
+ field: 'fromQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '到数量',
+ field: 'toQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
{
label: '从批次',
field: 'fromBatch',
@@ -355,22 +371,6 @@ export const PackagemergeDetail = useCrudSchemas(reactive([
width: 150
},
},
- {
- label: '到数量',
- field: 'toQty',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: '从数量',
- field: 'fromQty',
- sort: 'custom',
- table: {
- width: 150
- },
- },
{
label: '计量单位',
field: 'uom',
diff --git a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverMain.data.ts b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverMain.data.ts
index e0f8ccd22..241bf7b17 100644
--- a/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverMain.data.ts
+++ b/src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverMain.data.ts
@@ -253,6 +253,22 @@ export const PackageoverDetail = useCrudSchemas(reactive([
width: 150
},
},
+ {
+ label: '从数量',
+ field: 'fromQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '到数量',
+ field: 'toQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
{
label: '从批次',
field: 'fromBatch',
@@ -357,22 +373,6 @@ export const PackageoverDetail = useCrudSchemas(reactive([
width: 150
},
},
- {
- label: '到数量',
- field: 'toQty',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: '从数量',
- field: 'fromQty',
- sort: 'custom',
- table: {
- width: 150
- },
- },
{
label: '计量单位',
field: 'uom',
diff --git a/src/views/wms/inventoryjobManage/packageManage/packagesplitMain/packagesplitMain.data.ts b/src/views/wms/inventoryjobManage/packageManage/packagesplitMain/packagesplitMain.data.ts
index 5cc6874f5..a953a7309 100644
--- a/src/views/wms/inventoryjobManage/packageManage/packagesplitMain/packagesplitMain.data.ts
+++ b/src/views/wms/inventoryjobManage/packageManage/packagesplitMain/packagesplitMain.data.ts
@@ -253,6 +253,22 @@ export const PackagesplitDetail = useCrudSchemas(reactive([
width: 150
},
},
+ {
+ label: '从数量',
+ field: 'fromQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
+ {
+ label: '到数量',
+ field: 'toQty',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ },
{
label: '从批次',
field: 'fromBatch',
@@ -357,22 +373,6 @@ export const PackagesplitDetail = useCrudSchemas(reactive([
width: 150
},
},
- {
- label: '到数量',
- field: 'toQty',
- sort: 'custom',
- table: {
- width: 150
- },
- },
- {
- label: '从数量',
- field: 'fromQty',
- sort: 'custom',
- table: {
- width: 150
- },
- },
{
label: '计量单位',
field: 'uom',
diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
index c95e1f99c..655bbe789 100644
--- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
+++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue
@@ -453,7 +453,7 @@ const submitForm = async (formType, data) => {
})
if (!childListRs) {
message.warning('请填写Bom信息!')
- formRef.value.dialogVisible = false
+ formRef.value.formLoading = false
return
}
try {
diff --git a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts
index c9fa4cc01..abd673e95 100644
--- a/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts
+++ b/src/views/wms/purchasereceiptManage/inspect/inspectRequestMain/inspectRequestMain.data.ts
@@ -59,6 +59,11 @@ export const InspectRequestMain = useCrudSchemas(reactive([
width: 150
},
isSearch: true,
+ form:{
+ componentProps:{
+ disabled:true
+ }
+ }
},
{
label: '单据号',
diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
index add12c4f8..3e941c55b 100644
--- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/index.vue
@@ -54,9 +54,11 @@
ref="detailRef"
:isBasic="false"
:allSchemas="PurchasereceiptRecordMain.allSchemas"
- :detailAllSchemas="PurchasereceiptRecordDetail.allSchemas"
+ :detailAllSchemas="detailAllSchemas"
:detailAllSchemasRules="PurchasereceiptRecordDetailRules"
- :apiPage="PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage"
+ :apiPage="apiPage"
+ :tabs="PurchasereceiptRequestTabsList"
+ @changeTabs="changeTabs"
/>
@@ -66,10 +68,13 @@ import { PurchasereceiptRecordMain,PurchasereceiptRecordMainRules,Purchasereceip
import * as PurchasereceiptRecordMainApi from '@/api/wms/purchasereceiptRecordMain'
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
+import { PurchasereceiptRequestTabsList } from '@/utils/disposition/tabsList'
// 采购收货记录主
defineOptions({ name: 'PurchasereceiptRecordMain' })
+const apiPage = ref(PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage)
+
const message = useMessage() // 消息弹窗
const { t } = useI18n() // 国际化
@@ -77,6 +82,7 @@ const route = useRoute() // 路由信息
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(PurchasereceiptRecordMain.allSchemas.tableColumns)
+const detailAllSchemas = ref(PurchasereceiptRecordDetail.allSchemas)
// 字段设置 更新主列表字段
const updataTableColumns = (val) => {
@@ -154,6 +160,17 @@ const searchFormClick = (searchData) => {
}
getList() // 刷新当前列表
}
+// tabs 切换事件
+const changeTabs = (data) =>{
+ if(data.prop == 'receiptDetail'){
+ console.log(data)
+ apiPage.value = PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailPage
+ detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas
+ }else if(data.prop == 'scarceGoodsDetail'){
+ apiPage.value = PurchasereceiptRecordDetailApi.getScarceGoodsDetailPage
+ detailAllSchemas.value = PurchasereceiptRecordDetail.allSchemas
+ }
+}
/** 初始化 **/
onMounted(async () => {
diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
index 114061bd4..f4707ada7 100644
--- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
@@ -68,9 +68,7 @@
:apiPage="apiPage"
:apiDelete="PurchasereceiptRequestDetailApi.deletePurchasereceiptRequestDetail"
:Echo="Echo"
- :tabs="PurchasereceiptRequestTabsList"
@searchTableSuccessDetail="searchTableSuccessDetail"
- @changeTabs="changeTabs"
/>
@@ -83,7 +81,6 @@ import { PurchasereceiptRequestMain,PurchasereceiptRequestMainRules,Purchaserece
import * as PurchasereceiptRequestMainApi from '@/api/wms/purchasereceiptRequestMain'
import * as PurchasereceiptRequestDetailApi from '@/api/wms/purchasereceiptRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
-import { PurchasereceiptRequestTabsList } from '@/utils/disposition/tabsList'
// 采购收货申请
defineOptions({ name: 'PurchasereceiptRequestMain' })
@@ -368,15 +365,15 @@ const searchFormClick = (searchData) => {
}
// tabs 切换事件
-const changeTabs = (data) =>{
- if(data.prop == 'receiptDetail'){
- apiPage.value = PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage
- detailAllSchemas.value = PurchasereceiptRequestDetail.allSchemas
- }else if(data.prop == 'scarceGoodsDetail'){
- apiPage.value = PurchasereceiptRequestDetailApi.getScarceGoodsDetailPage
- detailAllSchemas.value = PurchasereceiptRequestDetail.allSchemas
- }
-}
+// const changeTabs = (data) =>{
+// if(data.prop == 'receiptDetail'){
+// apiPage.value = PurchasereceiptRequestDetailApi.getPurchasereceiptRequestDetailPage
+// detailAllSchemas.value = PurchasereceiptRequestDetail.allSchemas
+// }else if(data.prop == 'scarceGoodsDetail'){
+// apiPage.value = PurchasereceiptRequestDetailApi.getScarceGoodsDetailPage
+// detailAllSchemas.value = PurchasereceiptRequestDetail.allSchemas
+// }
+// }
/** 初始化 **/
onMounted(async () => {
diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
index 595021196..f5a867151 100644
--- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
+++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
@@ -143,10 +143,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
row['supplierQty'] = val[0]['supplierQty']
row['supplierUom'] = val[0]['supplierUom']
row['inventoryStatus'] = val[0]['inventoryStatus']
- row['fromLocationCode'] = val[0]['fromLocationCode']
- row['toLocationCode'] = ''
- row['fromLocationGroupCode'] = val[0]['fromLocationGroupCode']
- row['toLocationGroupCode'] = ''
+ row['fromLocationCode'] = val[0]['locationCode']
+ row['toLocationCode'] = null
+ row['fromLocationGroupCode'] = val[0]['locationGroupCode']
+ row['toLocationGroupCode'] = null
+ row['toWarehouseCode'] = null
+ row['toLocationTypes'] = null
row['fromAreaCode'] = val[0]['areaCode']
row['toAreaCode'] = val[0]['toAreaCode']
row['fromQwnerCode'] = val[0]['fromQwnerCode']
@@ -177,11 +179,21 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
item.batch = item.toBatch
item.packingNumber = item.toPackingNumber
item.containerNumber = item.toContainerNumber
- let fromLocationCode = item.fromLocationCode
- item.fromLocationCode = item.toLocationCode
- item.toLocationCode = fromLocationCode
+ item.toLocationGroupCode = null
+ item.toWarehouseCode = null
+ item.toLocationTypes = null
+ item.toLocationCode = null
+ // item.fromLocationCode = item.fromLocationCode
+ // item.fromLocationGroupCode = item.fromLocationGroupCode
})
isShowButton.value = false
+ console.log('formSchema', PurchasereturnRequestMain.allSchemas.formSchema)
+
+ PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {
+ if (item.field == 'supplierCode') {
+ item.componentProps.disabled = true
+ }
+ })
PurchasereturnRequestDetail.allSchemas.tableFormColumns.map((item) => {
item.tableForm.disabled = true
if (item.field == 'remark') {
@@ -334,6 +346,11 @@ const formRef = ref()
const openForm = async (type: string, row?: number) => {
tableData.value = [] // 重置明细数据
isShowButton.value = true
+ PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {
+ if (item.field == 'supplierCode') {
+ item.componentProps.disabled = false
+ }
+ })
formRef.value.open(type, row)
}
@@ -443,25 +460,28 @@ const handleAddTable = () => {
item.tableForm.disabled = false
}
if (item.field == 'itemCode') {
- item.tableForm.isInpuFocusShow = true
- }
+ item.tableForm.isInpuFocusShow = true
+ }
})
}
// 删除明细
-const handleDeleteTable = (item, index,formRef) => {
+const handleDeleteTable = (item, index, formRef) => {
tableData.value.splice(index, 1)
if (tableData.value.length == 0) {
isShowButton.value = true
- nextTick(() => {
-
- const setV = {}
-
- setV['purchaseReceiptRecordNumber'] = ''
+ PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => {
+ if (item.field == 'supplierCode') {
+ item.componentProps.disabled = false
+ }
+ })
+ nextTick(() => {
+ const setV = {}
+
+ setV['purchaseReceiptRecordNumber'] = ''
setV['supplierCode'] = ''
formRef.setValues(setV)
- })
+ })
}
-
}
// 主子数据 提交
diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
index b6c99601a..a0c4cf125 100644
--- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
+++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts
@@ -75,6 +75,11 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive([
width: 150
},
isSearch: true,
+ form:{
+ componentProps:{
+ disabled:false
+ }
+ }
},
{
label: '承运商',
@@ -118,6 +123,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive([
table: {
width: 150
},
+ isTableForm:false,
isForm: false,
},
{
@@ -142,6 +148,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive([
table: {
width: 150
},
+ isTableForm:false,
isForm: false,
},
{
@@ -161,6 +168,7 @@ export const PurchasereturnRequestMain = useCrudSchemas(reactive([
width: 150
},
isForm: false,
+ isTableForm:false,
},
{
label: '从月台代码',
@@ -735,7 +743,6 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive
table: {
width: 150
},
- isTableForm:false,
tableForm:{
disabled:true
}
diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
index d1cecca12..cea4ea115 100644
--- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
+++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
@@ -1,32 +1,21 @@
-
+
-
-
+
+
-
+ }" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage"
+ v-model:sort="tableObject.sort">
{{ row.number }}
@@ -39,277 +28,344 @@
-
+
-
+ :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :Echo="Echo" />
diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts
index 9f46dad3b..93d66a248 100644
--- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts
+++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts
@@ -3,20 +3,21 @@ import { dateFormatter } from '@/utils/formatTime'
import * as SupplierApi from '@/api/wms/supplier'
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data'
const { t } = useI18n() // 国际化
-const recordTypeList = [{ label:'收货单号', value:'1' },{ label:'退货单号', value:'2' },{ label:'索赔单号', value:'3' }]
-import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
+const recordTypeList = [{ label: '收货单号', value: '1' }, { label: '退货单号', value: '2' }, { label: '索赔单号', value: '3' }]
+import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as supplierinvoiceRequestMainApi from '@/api/wms/supplierinvoiceRequestMain'
+import * as supplierinvoiceRequestDetailApi from '@/api/wms/supplierinvoiceRequestDetail'
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
- pageSize:10,
- pageNo:1,
- code:'PurchaseInvoiceRequest'
+ pageSize: 10,
+ pageNo: 1,
+ code: 'PurchaseInvoiceRequest'
}
- const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
- const requestsettingData =data?.list[0]||{}
+const data = await getRequestsettingApi.getRequestsettingPage(queryParams)
+const requestsettingData = data?.list[0] || {}
- // 获取当前操作人的部门
+// 获取当前操作人的部门
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
const userDept = userStore.userSelfInfo.dept
@@ -25,26 +26,26 @@ const userDept = userStore.userSelfInfo.dept
* @returns {Array} 供应商发票申请主表
*/
export const SupplierinvoiceRequestMain = useCrudSchemas(reactive([
- {
- label: '供应商代码',
- field: 'supplierCode',
- sort: 'custom',
- table: {
- width: 150
- },
- isSearch: true,
- form: {
- // labelMessage: '信息提示说明!!!',
- componentProps: {
- isSearchList: true, // 开启查询弹窗
- searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
- searchField: 'code', // 查询弹窗赋值字段
- searchTitle: '供应商信息', // 查询弹窗标题
- searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
- searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
- }
- }
- },
+ {
+ label: '供应商代码',
+ field: 'supplierCode',
+ sort: 'custom',
+ table: {
+ width: 150
+ },
+ isSearch: true,
+ form: {
+ // labelMessage: '信息提示说明!!!',
+ componentProps: {
+ isSearchList: true, // 开启查询弹窗
+ searchListPlaceholder: '请选择供应商代码', // 输入框占位文本
+ searchField: 'code', // 查询弹窗赋值字段
+ searchTitle: '供应商信息', // 查询弹窗标题
+ searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
+ searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法
+ }
+ }
+ },
{
label: '调增金额',
field: 'adjustAmount',
@@ -76,8 +77,8 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive(
},
form: {
value: 'SupplierInvoice',
- componentProps:{
- disabled:true,
+ componentProps: {
+ disabled: true,
}
}
},
@@ -130,8 +131,8 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive(
},
form: {
value: userDept.name,
- componentProps:{
- disabled:true,
+ componentProps: {
+ disabled: true,
}
},
},
@@ -232,7 +233,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive(
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE',
- disabled:true,
+ disabled: true,
}
}
},
@@ -252,7 +253,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive(
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE',
- disabled:true,
+ disabled: true,
}
}
},
@@ -272,7 +273,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive(
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE',
- disabled:true,
+ disabled: true,
}
}
},
@@ -292,7 +293,7 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive(
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE',
- disabled:true,
+ disabled: true,
}
}
},
@@ -333,6 +334,78 @@ export const SupplierinvoiceRequestMainRules = reactive({
]
})
+/**
+ * @returns {Array} 展示的表格
+ */
+export const SupplierinvoiceRequestDetailaa = useCrudSchemas(reactive([
+ {
+ label: '订单行',
+ field: 'poNumber'
+ },
+ {
+ label: '订单行',
+ field: 'poLine'
+ },
+ {
+ label: '物品代码',
+ field: 'itemCode'
+ },
+ {
+ label: '货主代码',
+ field: 'ownerCode'
+ },
+ {
+ label: '批次',
+ field: 'batch'
+ },
+ {
+ label: '单价',
+ field: 'singlePrice',
+ form: {
+ component: 'InputNumber',
+ }
+ },
+ {
+ label: '金额',
+ field: 'amount',
+ form: {
+ component: 'InputNumber',
+ }
+ },
+
+ {
+ label: '备注',
+ field: 'remark',
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ isTable: true,
+ formatter: dateFormatter,
+ detail: {
+ dateFormat: 'YYYY-MM-DD HH:mm:ss'
+ },
+ isTableForm: false,
+ isForm: false
+ },
+ {
+ label: '创建者',
+ field: 'creator',
+ isTableForm: false,
+ isForm: false
+ },
+ {
+ label: '操作',
+ field: 'action',
+ isDetail: false,
+ isForm: false,
+ table: {
+ width: 150,
+ fixed: 'right'
+ },
+ isTableForm: false,
+ }
+]))
/**
* @returns {Array} 供应商发票申请子表
*/
@@ -349,55 +422,103 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive