Browse Source

Merge remote-tracking branch 'origin/master_hella' into master_hella

hella_online_20240904
gaojs 2 months ago
parent
commit
6806dcda8d
  1. 1
      README.md
  2. 57
      src/api/wms/recommendLocationHistory/index.ts
  3. 4
      src/components/BasicForm/src/BasicForm.vue
  4. 19
      src/components/ChangeRecord/src/ChangeRecord.vue
  5. 2
      src/components/Detail/src/Detail.vue
  6. 3
      src/components/Distinction/index.ts
  7. 51
      src/components/Distinction/src/Distinction.vue
  8. 18
      src/components/SearchHigh/src/SearchHigh.vue
  9. 2
      src/views/qms/selectedProject/index.vue
  10. 11
      src/views/qms/selectedSet/index.vue
  11. 244
      src/views/wms/agvManage/recommendLocationHistory/index.vue
  12. 93
      src/views/wms/agvManage/recommendLocationHistory/recommendLocationHistory.data.ts
  13. 1
      src/views/wms/basicDataManage/documentSetting/switch/index.vue
  14. 97
      src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts
  15. 85
      src/views/wms/inventoryManage/balanceSummary/index.vue
  16. 22
      src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts
  17. 2
      src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts
  18. 13
      src/views/wms/issueManage/issue/issueRequestMain/index.vue
  19. 4
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  20. 4
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

1
README.md

@ -26,6 +26,7 @@ form: {
value:'prodLine', // 指主表某字段 value:'prodLine', // 指主表某字段
message: '请选择生产线信息!', // 当前置条件为空时 弹出信息提示 message: '请选择生产线信息!', // 当前置条件为空时 弹出信息提示
isMainValue: true // 表示查询条件是主表的字段的值 isMainValue: true // 表示查询条件是主表的字段的值
isOptional:true, // isMainValue=true情况,添加参数可选可空的判断
isFilterValue:true // 字段拼到filters里,和isMainValue配合使用 isFilterValue:true // 字段拼到filters里,和isMainValue配合使用
action: '==', // 查询拼接条件 action: '==', // 查询拼接条件
}, },

57
src/api/wms/recommendLocationHistory/index.ts

@ -0,0 +1,57 @@
import request from '@/config/axios'
export interface RecommendLocationHistoryVO {
id: number
businessNumber: string
businessId: number
toLocation: string
ruleName: string
priority: string
locationCollect: string
balanceLocationCollect: string
expectinLocationCollect: string
remark: string
extraProperties: string
concurrencyStamp: number
}
// 查询推荐库位推荐记录列表
export const getRecommendLocationHistoryPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/recommend-location-history/senior', data })
} else {
return await request.get({ url: `/wms/recommend-location-history/page`, params })
}
}
// 查询推荐库位推荐记录详情
export const getRecommendLocationHistory = async (id: number) => {
return await request.get({ url: `/wms/recommend-location-history/get?id=` + id })
}
// 新增推荐库位推荐记录
export const createRecommendLocationHistory = async (data: RecommendLocationHistoryVO) => {
return await request.post({ url: `/wms/recommend-location-history/create`, data })
}
// 修改推荐库位推荐记录
export const updateRecommendLocationHistory = async (data: RecommendLocationHistoryVO) => {
return await request.put({ url: `/wms/recommend-location-history/update`, data })
}
// 删除推荐库位推荐记录
export const deleteRecommendLocationHistory = async (id: number) => {
return await request.delete({ url: `/wms/recommend-location-history/delete?id=` + id })
}
// 导出推荐库位推荐记录 Excel
export const exportRecommendLocationHistory = async (params) => {
return await request.download({ url: `/wms/recommend-location-history/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/recommend-location-history/get-import-template' })
}

4
src/components/BasicForm/src/BasicForm.vue

@ -516,7 +516,9 @@ const opensearchTable = (
_searchCondition[searchCondition[i].key] == '' || _searchCondition[searchCondition[i].key] == '' ||
_searchCondition[searchCondition[i].key] == undefined _searchCondition[searchCondition[i].key] == undefined
) { ) {
isNull = true if(!searchCondition[i].isOptional){ //
isNull = true
}
} }
if (isNull) { if (isNull) {
message.warning( message.warning(

19
src/components/ChangeRecord/src/ChangeRecord.vue

@ -21,9 +21,10 @@
</template> </template>
<template #description> <template #description>
<slot> <slot>
<div class="dic color-#303133"> <div class="dic color-#303133" >
{{ item.nickname }} {{ item.content }} {{ item.nickname }} {{ item.content }}
</div> </div>
<el-button type="primary" bg text style="margin-top: 5px;" @click="seeDistinction(item)">查看变更数据</el-button>
<!-- <div class="tips" v-if="item.type == 2"> <!-- <div class="tips" v-if="item.type == 2">
@ -41,6 +42,7 @@
</template> </template>
</el-step> </el-step>
</el-steps> </el-steps>
<Distinction ref="distinctionRef" :schema="schema"/>
</div> </div>
</div> </div>
</template> </template>
@ -48,6 +50,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import download from '@/utils/download' import download from '@/utils/download'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import Distinction from '@/components/Distinction/src/Distinction.vue'
defineComponent({ defineComponent({
name: 'ChangeRecord' name: 'ChangeRecord'
}) })
@ -56,12 +59,22 @@ const props = defineProps({
changeRecordData: { changeRecordData: {
type: Object, type: Object,
required: true required: true
},
schema: {
type: Array,
required: true
} }
}) })
// //
const downFile = (cur) => { const downFile = (cur) => {
download.excel(cur.url, cur.name) download.excel(cur.url, cur.name)
} }
const distinctionRef = ref()
const seeDistinction = (row) => {
console.log(props.schema)
console.log(distinctionRef.value)
distinctionRef.value.openDistinction(row)
}
</script> </script>

2
src/components/Detail/src/Detail.vue

@ -166,7 +166,7 @@
<ContentWrap class="w-[100%]" v-show="tabsList[current].label=='变更记录'" :style="{height:remarkHeight+'px'}"> <ContentWrap class="w-[100%]" v-show="tabsList[current].label=='变更记录'" :style="{height:remarkHeight+'px'}">
<ElScrollbar ref="scrollbar" :style="{height:(remarkHeight-40)+'px'}"> <ElScrollbar ref="scrollbar" :style="{height:(remarkHeight-40)+'px'}">
<!-- 变更记录组件 --> <!-- 变更记录组件 -->
<ChangeRecord :changeRecordData="changeRecordData" class="mt-20px" :key="count"/> <ChangeRecord :changeRecordData="changeRecordData" class="mt-20px" :key="count" :schema="allSchemas.detailSchema"/>
</ElScrollbar> </ElScrollbar>
</ContentWrap> </ContentWrap>
</div> </div>

3
src/components/Distinction/index.ts

@ -0,0 +1,3 @@
import Distinction from './src/Distinction.vue'
export { Distinction }

51
src/components/Distinction/src/Distinction.vue

@ -0,0 +1,51 @@
<!-- 变更记录组件 -->
<template>
<el-dialog v-model="dialogVisible" title="变更详情" width="80%" :before-close="handleClose">
<div style="display: flex">
<div style="flex: 1; width: 0px">
<div style="font-size: 16px; font-weight: bold; margin-bottom: 10px"> 变更前 </div>
<Descriptions :data="beforeContent" :schema="schema" :columns="2" />
</div>
<div style="flex: 1; width: 0px; margin-left: 20px">
<div style="font-size: 16px; font-weight: bold; margin-bottom: 10px"> 变更后 </div>
<Descriptions :data="afterContent" :schema="schema" :columns="2" />
</div>
</div>
<template #footer>
<div class="dialog-footer">
<el-button @click="dialogVisible = false">关闭</el-button>
</div>
</template>
</el-dialog>
</template>
<script lang="ts" setup>
defineComponent({
name: 'Distinction'
})
//
const props = defineProps({
schema: {
type: Array,
required: true
}
})
const schema = ref(props.schema.filter(item => {
return item.field !='updater' && item.field !='updateTime' && item.field !='creator' && item.field !='createTime'
}))
const dialogVisible = ref(false)
const afterContent = ref('')
const beforeContent = ref('')
const openDistinction = (row) => {
afterContent.value = JSON.parse(row.afterContent)
beforeContent.value = JSON.parse(row.beforeContent)
console.log(222,props.schema)
dialogVisible.value = true
}
defineExpose({ dialogVisible, openDistinction }) // open
</script>
<style scoped lang="scss">
</style>

18
src/components/SearchHigh/src/SearchHigh.vue

@ -245,6 +245,7 @@ const moreListPush = () => {
moreListData.value.filters.push(data) moreListData.value.filters.push(data)
} }
const lastestType = ref('')
// //
const resetSelect = (val) => { const resetSelect = (val) => {
if (getInputType(val.column) == 'datePicker' || getInputType(val.column) == 'date') { if (getInputType(val.column) == 'datePicker' || getInputType(val.column) == 'date') {
@ -254,8 +255,11 @@ const resetSelect = (val) => {
val.action = 'like' val.action = 'like'
val.disabled = false val.disabled = false
} }
val.value1 = "" if(lastestType.value&&lastestType.value!=getInputType(val.column)){
val.value = "" val.value1 = ""
val.value = ""
}
lastestType.value = getInputType(val.column)
} }
// //
const actionSelect = (val)=>{ const actionSelect = (val)=>{
@ -264,11 +268,11 @@ const actionSelect = (val)=>{
}else{ }else{
val.disabled = false val.disabled = false
} }
val.value1 = undefined // val.value1 = undefined
nextTick(()=>{ // nextTick(()=>{
val.value1 =[] // val.value1 =[]
val.value = '' // val.value = ''
}) // })
} }

2
src/views/qms/selectedProject/index.vue

@ -203,7 +203,7 @@ const formsSuccess = async (formType, data) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicSelectedProject') detailRef.value.openDetail(row, titleName, titleValue, 'basicSelectedSet')
} }
/** 删除按钮操作 */ /** 删除按钮操作 */

11
src/views/qms/selectedSet/index.vue

@ -418,7 +418,16 @@ const validateNotRepetition = (data) => {
const detailValidate = (formType, data) => { const detailValidate = (formType, data) => {
let tag = true let tag = true
existValue.value.forEach((item) => { const array = ref([])
if (data.id) {
array.value = existValue.value.filter((item) => {
return data?.id != item.id
})
} else {
array.value =existValue.value
}
console.log(44,array.value)
array.value.forEach((item) => {
if (data.dictionaryValue == item.dictionaryValue) { if (data.dictionaryValue == item.dictionaryValue) {
message.warning('选定集字典项不能重复!') message.warning('选定集字典项不能重复!')
tag = false tag = false

244
src/views/wms/agvManage/recommendLocationHistory/index.vue

@ -0,0 +1,244 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="RecommendLocationHistory.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
<TableHead
:HeadButttondata="HeadButttondata"
@button-base-click="buttonBaseClick"
:routeName="routeName"
@updataTableColumns="updataTableColumns"
@searchFormClick="searchFormClick"
:allSchemas="RecommendLocationHistory.allSchemas"
/>
<!-- 列表 -->
<ContentWrap>
<Table
:columns="tableColumns"
:data="tableObject.tableList"
:loading="tableObject.loading"
:pagination="{
total: tableObject.total
}"
v-model:pageSize="tableObject.pageSize"
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
<template #code="{row}">
<el-button type="primary" link @click="openDetail(row, '代码', row.code)">
<span>{{ row.code }}</span>
</el-button>
</template>
<template #action="{ row }">
<ButtonBase :Butttondata="butttondata" @button-base-click="buttonTableClick($event,row)" />
</template>
</Table>
</ContentWrap>
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="formsSuccess"
:rules="RecommendLocationHistoryRules"
:formAllSchemas="RecommendLocationHistory.allSchemas"
:apiUpdate="RecommendLocationHistoryApi.updateRecommendLocationHistory"
:apiCreate="RecommendLocationHistoryApi.createRecommendLocationHistory"
@searchTableSuccess="searchTableSuccess"
:isBusiness="false"
/>
<!-- 详情 -->
<Detail ref="detailRef" :isBasic="true" :allSchemas="RecommendLocationHistory.allSchemas" />
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/recommend-location-history/import" :importTemplateData="importTemplateData" @success="importSuccess" />
</template>
<script setup lang="ts">
import download from '@/utils/download'
import { RecommendLocationHistory,RecommendLocationHistoryRules } from './recommendLocationHistory.data'
import * as RecommendLocationHistoryApi from '@/api/wms/recommendLocationHistory'
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: 'RecommendLocationHistory' })
const message = useMessage() //
const { t } = useI18n() //
const route = useRoute() //
const routeName = ref()
routeName.value = route.name
const tableColumns = ref(RecommendLocationHistory.allSchemas.tableColumns)
//
const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
formRef.setValues(setV)
})
}
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
const { tableObject, tableMethods } = useTable({
getListApi: RecommendLocationHistoryApi.getRecommendLocationHistoryPage //
})
//
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:recommendLocationHistory:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:recommendLocationHistory:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:recommendLocationHistory:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
//
const buttonBaseClick = (val, item) => {
if (val == 'add') { //
openForm('create')
} else if (val == 'import') { //
handleImport()
} else if (val == 'export') { //
handleExport()
} else if (val == 'refresh') { //
getList()
} else if (val == 'filtrate') { //
} else { //
console.log('其他按钮', item)
}
}
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:recommendLocationHistory:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:recommendLocationHistory:delete'}), //
]
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.id)
}
}
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
basicFormRef.value.open(type, row)
}
// form
const formsSuccess = async (formType,data) => {
var isHave =RecommendLocationHistory.allSchemas.formSchema.some(function (item) {
return item.field === 'activeTime' || item.field === 'expireTime';
});
if(isHave){
if(data.activeTime && data.expireTime && data.activeTime >=data.expireTime){
message.error('失效时间要大于生效时间')
return;
}
}
if(data.activeTime==0)data.activeTime = null;
if(data.expireTime==0)data.expireTime = null;
if (formType === 'create') {
await RecommendLocationHistoryApi.createRecommendLocationHistory(data)
message.success(t('common.createSuccess'))
} else {
await RecommendLocationHistoryApi.updateRecommendLocationHistory(data)
message.success(t('common.updateSuccess'))
}
basicFormRef.value.dialogVisible = false
getList()
}
/** 详情操作 */
const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue, 'basicRecommendLocationHistory')
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
//
await message.delConfirm()
//
await RecommendLocationHistoryApi.deleteRecommendLocationHistory(id)
message.success(t('common.delSuccess'))
//
await getList()
} catch {}
}
/** 导出按钮操作 */
const exportLoading = ref(false) //
const handleExport = async () => {
try {
//
await message.exportConfirm()
//
exportLoading.value = true
const data = await RecommendLocationHistoryApi.exportRecommendLocationHistory(tableObject.params)
download.excel(data, '推荐库位推荐记录.xlsx')
} catch {
} finally {
exportLoading.value = false
}
}
/** 导入 */
const importFormRef = ref()
const handleImport = () => {
importFormRef.value.open()
}
//
const importTemplateData = reactive({
templateUrl: '',
templateTitle: '推荐库位推荐记录导入模版.xlsx'
})
//
const importSuccess = () => {
getList()
}
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
}
getList() //
}
/** 初始化 **/
onMounted(async () => {
getList()
importTemplateData.templateUrl = await RecommendLocationHistoryApi.importTemplate()
})
</script>

93
src/views/wms/agvManage/recommendLocationHistory/recommendLocationHistory.data.ts

@ -0,0 +1,93 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
// 表单校验
export const RecommendLocationHistoryRules = reactive({
concurrencyStamp: [required],
})
export const RecommendLocationHistory = useCrudSchemas(reactive<CrudSchema[]>([
{
label: '业务编号',
field: 'businessNumber',
sort: 'custom',
isSearch: true,
},
{
label: '业务ID',
field: 'businessId',
sort: 'custom',
isSearch: true,
form: {
component: 'InputNumber',
value: 0
},
},
{
label: '推荐的库位',
field: 'toLocation',
sort: 'custom',
isSearch: true,
},
{
label: '规则名称',
field: 'ruleName',
sort: 'custom',
},
{
label: '规则优先级',
field: 'priority',
sort: 'custom',
},
{
label: '规则可选库位集合',
field: 'locationCollect',
sort: 'custom',
},
{
label: '库存余额库位集合',
field: 'balanceLocationCollect',
sort: 'custom',
},
{
label: '预计入库位集合',
field: 'expectinLocationCollect',
sort: 'custom',
},
{
label: '备注',
field: 'remark',
sort: 'custom',
},
{
label: '创建时间',
field: 'createTime',
sort: 'custom',
formatter: dateFormatter,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
},
isForm: false,
},
{
label: '扩展属性',
field: 'extraProperties',
sort: 'custom',
isTable:false,
},
{
label: '并发乐观锁',
field: 'concurrencyStamp',
sort: 'custom',
isTable:false,
form: {
component: 'InputNumber',
value: 0
},
},
]))

1
src/views/wms/basicDataManage/documentSetting/switch/index.vue

@ -134,7 +134,6 @@ const buttonBaseClick = (val, item) => {
const butttondata = (row, $index)=>{ const butttondata = (row, $index)=>{
const hiddenArray = ['CreatePutawayRequestAfterInspectRecordCreated', const hiddenArray = ['CreatePutawayRequestAfterInspectRecordCreated',
'CreateBackflushRecordAfterProductreceiptRecordCreated',
'CreatePurchasePlanAfterDiscretePurchaseOrderPublished', 'CreatePurchasePlanAfterDiscretePurchaseOrderPublished',
'ExemptItemCreatePutawayRequestAfterPurchaseReceiptRecordCreated', 'ExemptItemCreatePutawayRequestAfterPurchaseReceiptRecordCreated',
'CreatePurchaseReceiptRequestAfterSupplierDeliverRecordCreated' 'CreatePurchaseReceiptRequestAfterSupplierDeliverRecordCreated'

97
src/views/wms/inventoryManage/balanceSummary/balanceSummary.data.ts

@ -0,0 +1,97 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data'
/**
* @returns {Array}
*/
export const BalanceSummarySearch = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
search: {
componentProps: {
enterSearch: true, //可输入回车
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物料代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物料基础信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}], // 失去焦点校验参数
}
}
},{
label: '物料描述',
field: 'desc1',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
search: {
componentProps: {
disabled: true
}
}
}
])
)
export const BalanceSummary = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: ' ',
field: 'name',
sort: 'custom',
},
{
label: '总数',
field: 'num1',
sort: 'custom'
},
{
label: '合格数',
field: 'num2',
sort: 'custom',
isSearch: true
},
{
label: '待检数',
field: 'num2',
sort: 'custom',
isSearch: true
},
{
label: '隔离数',
field: 'num2',
sort: 'custom',
isSearch: true
},
{
label: '不合格数',
field: 'num2',
sort: 'custom',
isSearch: true
}
])
)

85
src/views/wms/inventoryManage/balanceSummary/index.vue

@ -0,0 +1,85 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="BalanceSummarySearch.allSchemas.searchSchema" @search="searchList" @reset="searchList" @searchTableSuccess="searchQueryTableSuccess"/>
</ContentWrap>
<el-table
:data="tableData"
style="width: 100%"
row-key="id"
border
lazy
:load="load"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
>
<el-table-column v-for="column in tableColumns" :prop="column['field']" :label="column['label']" :width="column['width']" :fixed="column['fixed']" :align="column['align']||'center'"/>
</el-table>
</template>
<script setup lang="ts">
import { BalanceSummary,BalanceSummarySearch } from './balanceSummary.data'
const tableColumns = ref(BalanceSummary.allSchemas.tableColumns)
console.log('tableColumns',tableColumns)
const tableData= ref([
{
id: 1,
date: '2016-05-02',
name: 'wangxiaohu',
num: 1,
},
{
id: 2,
date: '2016-05-04',
name: 'wangxiaohu',
num: 2,
},
{
id: 3,
date: '2016-05-01',
name: 'wangxiaohu',
hasChildren: true,
num: 3,
},
{
id: 4,
date: '2016-05-03',
name: 'wangxiaohu',
num: 4,
},
])
const load = ( row, treeNode,resolve) => {
console.log('load',row, treeNode,resolve)
setTimeout(() => {
resolve([
{
id: Math.random(),
date: '2016-05-01',
name: 'wangxiaohu',
num: 5,
},
{
id: Math.random(),
date: '2016-05-01',
name: 'wangxiaohu',
num: 6,
hasChildren: true,
},
])
}, 1000)
}
const searchList = (model)=>{
console.log('searchList',model)
}
const searchQueryTableSuccess = (formField, searchField, val, formRef, type, row ) => {
console.log('searchQueryTableSuccess',formField, searchField, val, formRef, type, row )
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
setV['desc1'] = val[0]['desc1']
formRef.setValues(setV)
})
}
</script>
<style lang="scss" scoped></style>

22
src/views/wms/issueManage/issue/issueJobMain/issueJobMain.data.ts

@ -683,27 +683,27 @@ export const IssueJobDetail = useCrudSchemas(
sortTableDefault: 3 sortTableDefault: 3
}, },
{ {
label: '批次', label: '数量',
field: 'batch', field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
isSearch: true, sortTableDefault: 4,
sortSearchDefault: 3, form: {
sortTableDefault: 4 component: 'InputNumber'
},
}, },
{ {
label: '数量', label: '批次',
field: 'qty', field: 'batch',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: { isSearch: true,
component: 'InputNumber' sortSearchDefault: 3,
}, sortTableDefault: 4
hiddenInMain: true
}, },
{ {
label: '计量单位', label: '计量单位',

2
src/views/wms/issueManage/issue/issueRecordMain/issueRecordMain.data.ts

@ -365,7 +365,7 @@ export const IssueRecordMain = useCrudSchemas(
table: { table: {
width: 150 width: 150
}, },
sortTableDefault: 6 sortTableDefault: 9
}, },
{ {
label: '批次', // 子表数据 只是为了展示 label: '批次', // 子表数据 只是为了展示

13
src/views/wms/issueManage/issue/issueRequestMain/index.vue

@ -513,8 +513,17 @@ const submitForm = async (formType, submitData) => {
formRef.value.formLoading = true formRef.value.formLoading = true
try { try {
if (formType === 'create') { if (formType === 'create') {
await IssueRequestMainApi.createIssueRequestMain(data) let remarkRes = await IssueRequestMainApi.createIssueRequestMain(data)
message.success(t('common.createSuccess')) if(remarkRes){
let remarkList = remarkRes.split(';')
ElMessageBox.alert(remarkList.join('<br/>'),'提示',{
dangerouslyUseHTMLString: true,
})
}else{
message.success(t('common.createSuccess'))
}
console.log('remarkRes',remarkRes)
} else { } else {
await IssueRequestMainApi.updateIssueRequestMain(data) await IssueRequestMainApi.updateIssueRequestMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))

4
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -563,9 +563,7 @@ const butttondata = (row, $index) => {
hide: isShowMainButton(row, ['1']), hide: isShowMainButton(row, ['1']),
hasPermi: 'wms:purchasereturn-request-main:update' hasPermi: 'wms:purchasereturn-request-main:update'
}), // }), //
defaultButtons.mainListDocumentPrintBtn({ defaultButtons.mainListDocumentPrintBtn(null)//
hide: isShowMainButton(row, ['8'])
})//
// { // {
// label: '', // label: '',
// name: 'ssbq', // name: 'ssbq',

4
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMainNew/index.vue

@ -466,9 +466,7 @@ const butttondata = (row, $index) => {
hide: isShowMainButton(row, ['1']), hide: isShowMainButton(row, ['1']),
hasPermi: 'wms:purchasereturn-request-main:update' hasPermi: 'wms:purchasereturn-request-main:update'
}),// }),//
defaultButtons.mainListDocumentPrintBtn({ defaultButtons.mainListDocumentPrintBtn(null)//
hide: isShowMainButton(row, ['8'])
})//
// { // {
// label: '', // label: '',
// name: 'ssbq', // name: 'ssbq',

Loading…
Cancel
Save