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 8 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) => {
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
autoExecute: string
directCreateRecord: string
labelStatus: string
}
// 查询供应商发货申请主列表

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

@ -245,6 +245,12 @@ const props = defineProps({
type: Boolean,
required: false,
default: true
},
//
tableFormDataLength: {
type: Boolean,
required: false,
default: true
}
})
@ -432,7 +438,7 @@ const submitForm = async () => {
formLoading.value = true
if (formType.value == 'create') {
const validateForm = await tableFormRef.value.validateForm()
if (!validateForm) {
if (!validateForm && props.tableFormDataLength) {
if (props.tableData.length == 0) {
message.warning('请填写明细信息!')
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 => {
if(item.field == 'rawLocationCode') {
item.form.componentProps.searchCondition = [
// {
// key: 'areaType',
// value: 'RAW',
// },
{
key: 'areaType',
value: 'RAW',
},
{
key: 'available',
value: 'TRUE',
@ -222,10 +222,10 @@ Workstation.allSchemas.tableFormColumns.map(item => {
}
if(item.field == 'fgLocationCode') {
item.form.componentProps.searchCondition = [
// {
// key: 'areaType',
// value: 'FG',
// },
{
key: 'areaType',
value: 'FG',
},
{
key: 'available',
value: 'TRUE',

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

@ -57,6 +57,7 @@
@submitForm="submitForm"
:isShowButton = isShowButton
:basicFormWidth="75"
:tableFormDataLength="false"
/>
<!-- 详情 -->
@ -130,6 +131,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
setV['inPackUnit'] = val[0]['code']
}else if(formField == 'outPackUnit') {
setV['outPackUnit'] = val[0]['code']
}else if(formField == 'itemCode') {
setV['itemCode'] = val[0]['code']
}else{
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) => {
if (val == 'add') { //
@ -285,7 +305,7 @@ const handleExport = async () => {
//
exportLoading.value = true
const data = await ItemareaApi.exportItemarea(tableObject.params)
download.excel(data, '发货申请主.xlsx')
download.excel(data, '物料库区配置管理主.xlsx')
} catch {
} finally {
exportLoading.value = false

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

@ -62,6 +62,7 @@
<script setup lang="ts">
import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { CustomerreturnRecordMain,CustomerreturnRecordMainRules,CustomerreturnRecordDetail,CustomerreturnRecordDetailRules } from './customerreturnRecordMain.data'
import * as CustomerreturnRecordMainApi from '@/api/wms/customerreturnRecordMain'
import * as CustomerreturnRecordDetailApi from '@/api/wms/customerreturnRecordDetail'
@ -125,12 +126,15 @@ const buttonBaseClick = (val, item) => {
}
// -
const butttondata = (row) => {
return []
}
const butttondata = (row) => [
defaultButtons.mainListDocumentPrintBtn(null), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'documentPrint') { //
handlePoint(row)
}
}
/** 详情操作 */
@ -164,6 +168,13 @@ const searchFormClick = (searchData) => {
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 () => {
getList()

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

@ -62,6 +62,7 @@
<script setup lang="ts">
import download from '@/utils/download'
import { getAccessToken } from '@/utils/auth'
import { DeliverRecordMain,DeliverRecordMainRules,DeliverRecordDetail,DeliverRecordDetailRules } from './deliverRecordMain.data'
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
@ -125,12 +126,15 @@ const buttonBaseClick = (val, item) => {
}
// -
const butttondata = (row) => {
return []
}
const butttondata = (row) => [
defaultButtons.mainListDocumentPrintBtn(null), //
]
// -
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) => {
tableObject.params = {

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

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

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

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

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

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

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

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

Loading…
Cancel
Save