Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
zhousq 6 months ago
parent
commit
fe19393e85
  1. 5
      src/api/wms/packageoverJobMain/index.ts
  2. 1
      src/api/wms/supplierdeliverRequestMain/index.ts
  3. 8
      src/components/BasicForm/src/BasicForm.vue
  4. 16
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue
  5. 22
      src/views/wms/basicDataManage/itemManage/itemarea/index.vue
  6. 17
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue
  7. 17
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue
  8. 17
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue
  9. 32
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/packageoverJobMain.data.ts
  10. 4
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue
  11. 199
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/packageoverRecordMain.data.ts
  12. 16
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

5
src/api/wms/packageoverJobMain/index.ts

@ -74,8 +74,3 @@ export const deletePackageoverJobMain = async (id: number) => {
export const exportPackageoverJobMain = async (params) => { export const exportPackageoverJobMain = async (params) => {
return await request.download({ url: `/wms/packageover-job-main/export-excel`, params }) return await request.download({ url: `/wms/packageover-job-main/export-excel`, params })
} }
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/packageover-job-main/get-import-template' })
}

1
src/api/wms/supplierdeliverRequestMain/index.ts

@ -31,6 +31,7 @@ export interface SupplierdeliverRequestMainVO {
autoAgree: string autoAgree: string
autoExecute: string autoExecute: string
directCreateRecord: string directCreateRecord: string
labelStatus: string
} }
// 查询供应商发货申请主列表 // 查询供应商发货申请主列表

8
src/components/BasicForm/src/BasicForm.vue

@ -245,6 +245,12 @@ const props = defineProps({
type: Boolean, type: Boolean,
required: false, required: false,
default: true default: true
},
//
tableFormDataLength: {
type: Boolean,
required: false,
default: true
} }
}) })
@ -432,7 +438,7 @@ const submitForm = async () => {
formLoading.value = true formLoading.value = true
if (formType.value == 'create') { if (formType.value == 'create') {
const validateForm = await tableFormRef.value.validateForm() const validateForm = await tableFormRef.value.validateForm()
if (!validateForm) { if (!validateForm && props.tableFormDataLength) {
if (props.tableData.length == 0) { if (props.tableData.length == 0) {
message.warning('请填写明细信息!') message.warning('请填写明细信息!')
formLoading.value = false formLoading.value = false

16
src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

@ -210,10 +210,10 @@ const formsSuccess = async (formType,data) => {
Workstation.allSchemas.tableFormColumns.map(item => { Workstation.allSchemas.tableFormColumns.map(item => {
if(item.field == 'rawLocationCode') { if(item.field == 'rawLocationCode') {
item.form.componentProps.searchCondition = [ item.form.componentProps.searchCondition = [
// { {
// key: 'areaType', key: 'areaType',
// value: 'RAW', value: 'RAW',
// }, },
{ {
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
@ -222,10 +222,10 @@ Workstation.allSchemas.tableFormColumns.map(item => {
} }
if(item.field == 'fgLocationCode') { if(item.field == 'fgLocationCode') {
item.form.componentProps.searchCondition = [ item.form.componentProps.searchCondition = [
// { {
// key: 'areaType', key: 'areaType',
// value: 'FG', value: 'FG',
// }, },
{ {
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',

22
src/views/wms/basicDataManage/itemManage/itemarea/index.vue

@ -57,6 +57,7 @@
@submitForm="submitForm" @submitForm="submitForm"
:isShowButton = isShowButton :isShowButton = isShowButton
:basicFormWidth="75" :basicFormWidth="75"
:tableFormDataLength="false"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -130,6 +131,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
setV['inPackUnit'] = val[0]['code'] setV['inPackUnit'] = val[0]['code']
}else if(formField == 'outPackUnit') { }else if(formField == 'outPackUnit') {
setV['outPackUnit'] = val[0]['code'] setV['outPackUnit'] = val[0]['code']
}else if(formField == 'itemCode') {
setV['itemCode'] = val[0]['code']
}else{ }else{
setV[formField] = setV[0][searchField] setV[formField] = setV[0][searchField]
} }
@ -171,6 +174,23 @@ const HeadButttondata = [
// }, // },
] ]
// /**
// *
// * @param field
// * @param cur
// */
// const onChangeArea = (field, cur) => {
// console.log(field,cur);
// if(field == "maxQty" && cur == "0"){
// Itemarea.allSchemas.formSchema.forEach((item) => {
// if (item.field == 'allowIssueRequest') {
// cur.value = "FALSE"
// item.componentProps.disabled = true
// }})
// }
// }
// //
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'add') { // if (val == 'add') { //
@ -285,7 +305,7 @@ const handleExport = async () => {
// //
exportLoading.value = true exportLoading.value = true
const data = await ItemareaApi.exportItemarea(tableObject.params) const data = await ItemareaApi.exportItemarea(tableObject.params)
download.excel(data, '发货申请主.xlsx') download.excel(data, '物料库区配置管理主.xlsx')
} catch { } catch {
} finally { } finally {
exportLoading.value = false exportLoading.value = false

17
src/views/wms/deliversettlementManage/customerreturn/customerreturnRecordMain/index.vue

@ -62,6 +62,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { CustomerreturnRecordMain,CustomerreturnRecordMainRules,CustomerreturnRecordDetail,CustomerreturnRecordDetailRules } from './customerreturnRecordMain.data' import { CustomerreturnRecordMain,CustomerreturnRecordMainRules,CustomerreturnRecordDetail,CustomerreturnRecordDetailRules } from './customerreturnRecordMain.data'
import * as CustomerreturnRecordMainApi from '@/api/wms/customerreturnRecordMain' import * as CustomerreturnRecordMainApi from '@/api/wms/customerreturnRecordMain'
import * as CustomerreturnRecordDetailApi from '@/api/wms/customerreturnRecordDetail' import * as CustomerreturnRecordDetailApi from '@/api/wms/customerreturnRecordDetail'
@ -125,12 +126,15 @@ const buttonBaseClick = (val, item) => {
} }
// - // -
const butttondata = (row) => { const butttondata = (row) => [
return [] defaultButtons.mainListDocumentPrintBtn(null), //
} ]
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'documentPrint') { //
handlePoint(row)
}
} }
/** 详情操作 */ /** 详情操作 */
@ -164,6 +168,13 @@ const searchFormClick = (searchData) => {
getList() // getList() //
} }
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/929216638195793920?token=' + getAccessToken())
//
const handlePoint = async (row) => {
window.open(src.value+'&id='+row.id)
}
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()

17
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

@ -62,6 +62,7 @@
<script setup lang="ts"> <script setup lang="ts">
import download from '@/utils/download' import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRecordDetailRules } from './deliverRecordMain.data' import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRecordDetailRules } from './deliverRecordMain.data'
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain' import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail' import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
@ -125,12 +126,15 @@ const buttonBaseClick = (val, item) => {
} }
// - // -
const butttondata = (row) => { const butttondata = (row) => [
return [] defaultButtons.mainListDocumentPrintBtn(null), //
} ]
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'documentPrint') { //
handlePoint(row)
}
} }
/** 详情操作 */ /** 详情操作 */
@ -155,6 +159,13 @@ const handleExport = async () => {
} }
} }
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/929209659733770240?token=' + getAccessToken())
//
const handlePoint = async (row) => {
window.open(src.value+'&id='+row.id)
}
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
tableObject.params = { tableObject.params = {

17
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue

@ -62,8 +62,6 @@
:apiPage="PackageoverJobDetailApi.getPackageoverJobDetailPage" :apiPage="PackageoverJobDetailApi.getPackageoverJobDetailPage"
/> />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/packageover-job-main/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -73,7 +71,6 @@ import * as PackageoverJobMainApi from '@/api/wms/packageoverJobMain'
import * as PackageoverJobDetailApi from '@/api/wms/packageoverJobDetail' import * as PackageoverJobDetailApi from '@/api/wms/packageoverJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import TableHead from '@/components/TableHead/src/TableHead.vue' import TableHead from '@/components/TableHead/src/TableHead.vue'
import ImportForm from '@/components/ImportForm/src/ImportForm.vue'
import Detail from '@/components/Detail/src/Detail.vue' import Detail from '@/components/Detail/src/Detail.vue'
defineOptions({ name: 'PackageoverJobMain' }) defineOptions({ name: 'PackageoverJobMain' })
@ -109,8 +106,8 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:packageover-job-main:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'wms:packageover-job-main:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:packageover-job-main:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'wms:packageover-job-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:packageover-job-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:packageover-job-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
@ -226,15 +223,6 @@ const importFormRef = ref()
const handleImport = () => { const handleImport = () => {
importFormRef.value.open() importFormRef.value.open()
} }
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '翻包任务主导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
@ -248,7 +236,6 @@ const searchFormClick = (searchData) => {
/** 初始化 **/ /** 初始化 **/
onMounted(async () => { onMounted(async () => {
getList() getList()
importTemplateData.templateUrl = await PackageoverJobMainApi.importTemplate()
}) })
</script> </script>

32
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/packageoverJobMain.data.ts

@ -603,22 +603,22 @@ export const PackageoverJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ // {
label: '从包装号', // label: '从包装号',
field: 'fromPackingNumber', // field: 'fromPackingNumber',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ // {
label: '到包装号', // label: '到包装号',
field: 'toPackingNumber', // field: 'toPackingNumber',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 150 // width: 150
}, // },
}, // },
{ {
label: '从包装规格', label: '从包装规格',
field: 'fromPackUnit', field: 'fromPackUnit',

4
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/index.vue

@ -92,7 +92,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:packageover-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:packageover-record-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -139,7 +139,7 @@ const handleExport = async () => {
await message.exportConfirm() await message.exportConfirm()
// //
exportLoading.value = true exportLoading.value = true
const data = await PackageoverRecordMainApi.exportPackageoverMainApi(tableObject.params) const data = await PackageoverRecordMainApi.exportPackageoverMain(tableObject.params)
download.excel(data, '翻包记录.xlsx') download.excel(data, '翻包记录.xlsx')
} catch { } catch {
} finally { } finally {

199
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverRecordMain/packageoverRecordMain.data.ts

@ -11,6 +11,15 @@ export const PackageoverMain = useCrudSchemas(reactive<CrudSchema[]>([
width: 180 width: 180
}, },
}, },
{
label: '任务单据号',
field: 'jobNumber',
sort: 'custom',
isSearch: true,
table: {
width: 180
},
},
{ {
label: '仓库代码', label: '仓库代码',
field: 'warehouseCode', field: 'warehouseCode',
@ -129,12 +138,6 @@ export const PackageoverMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable:false isTable:false
}, },
{
label: '用户组',
field: 'userGroupCode',
sort: 'custom',
isTable:false
},
{ {
label: '接口类型', label: '接口类型',
field: 'interfaceType', field: 'interfaceType',
@ -154,7 +157,6 @@ export const PackageoverMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.TRUE_FALSE, dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string', dictClass: 'string',
isTable: true, isTable: true,
isSearch: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -214,173 +216,182 @@ export const PackageoverDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '库位代码', label: '物料代码',
field: 'locationCode', field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '库位组代码',
field: 'locationGroupCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '库区代码',
field: 'areaCode',
sort: 'custom',
table: {
width: 150
},
},
{
label: '从包装号',
field: 'fromPackingNumber',
sort: 'custom',
table: {
width: 150
},
},
{
label: '到包装号',
field: 'toPackingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从数量', label: '物料名称',
field: 'fromQty', field: 'itemName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到数量', label: '物料描述1',
field: 'toQty', field: 'itemDesc1',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从批次', label: '物料描述2',
field: 'fromBatch', field: 'itemDesc2',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到批次', label: '项目代码',
field: 'toBatch', field: 'projectCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库存状态', label: '计量单位',
field: 'fromInventoryStatus', field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到库存状态', label: '从数量',
field: 'toInventoryStatus', field: 'fromQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从器具号', label: '到数量',
field: 'fromContainerNumber', field: 'toQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到器具号', label: '从包装号',
field: 'toContainerNumber', field: 'fromPackingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从货主代码', label: '到包装号',
field: 'fromOwnerCode', field: 'toPackingNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到货主代码', label: '库位代码',
field: 'toOwnerCode', field: 'locationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物料代码', label: '库位组代码',
field: 'itemCode', field: 'locationGroupCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物料名称', label: '库区代码',
field: 'itemName', field: 'areaCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物料描述1', label: '从批次',
field: 'itemDesc1', field: 'fromBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '物料描述2', label: '到批次',
field: 'itemDesc2', field: 'toBatch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '项目代码', label: '从库存状态',
field: 'projectCode', field: 'fromInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '计量单位', label: '到库存状态',
field: 'uom', field: 'toInventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
// {
// label: '从器具号',
// field: 'fromContainerNumber',
// sort: 'custom',
// table: {
// width: 150
// },
// },
// {
// label: '到器具号',
// field: 'toContainerNumber',
// sort: 'custom',
// table: {
// width: 150
// },
// },
// {
// label: '从货主代码',
// field: 'fromOwnerCode',
// sort: 'custom',
// table: {
// width: 150
// },
// },
// {
// label: '到货主代码',
// field: 'toOwnerCode',
// sort: 'custom',
// table: {
// width: 150
// },
// },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',
@ -389,27 +400,27 @@ export const PackageoverDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150 width: 150
}, },
}, },
{ // {
label: '创建时间', // label: '创建时间',
field: 'createTime', // field: 'createTime',
formatter: dateFormatter, // formatter: dateFormatter,
detail: { // detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' // dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, // },
table: { // table: {
width: 180 // width: 180
}, // },
form: { // form: {
component: 'DatePicker', // component: 'DatePicker',
componentProps: { // componentProps: {
style: {width:'100%'}, // style: {width:'100%'},
type: 'datetime', // type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', // dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', // valueFormat: 'x',
} // }
}, // },
isForm: false // isForm: false
}, // },
])) ]))
// 表单校验 // 表单校验

16
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -264,6 +264,20 @@ const isShowMainButton = (row, val) => {
} }
} }
//
const isShowMainButtonLabel = (row, val) => {
if (val.indexOf(row.status) > -1) {
if(row.labelStatus == '2'){
return true
}else{
return false
}
} else {
return true
}
}
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
@ -280,7 +294,7 @@ const butttondata = (row) => {
{ {
label: '生成标签', label: '生成标签',
name: 'ssbq', name: 'ssbq',
hide: isShowMainButton(row, ['3']), hide: isShowMainButtonLabel(row, ['3']),
type: 'primary', type: 'primary',
icon: '', icon: '',
color: '', color: '',

Loading…
Cancel
Save