Browse Source

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

hella_online_20240904
songguoqiang 3 months ago
parent
commit
ce7143ca8e
  1. 2
      src/views/login/components/LoginForm.vue
  2. 1
      src/views/login/updatePasswordNewTips.vue
  3. 1
      src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts
  4. 4
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  5. 4
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  6. 2
      src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts
  7. 35
      src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts
  8. 19
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts
  9. 20
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts
  10. 20
      src/views/wms/issueManage/repleinsh/repleinshJobMain/repleinshJobMain.data.ts
  11. 10
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts
  12. 156
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue
  13. 46
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts
  14. 201
      src/views/wms/productionManage/processproduction/processproductionRequest/processproductionRequestMain.data.ts
  15. 1
      src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue
  16. 1
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue
  17. 19
      src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts
  18. 17
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue
  19. 4
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

2
src/views/login/components/LoginForm.vue

@ -279,7 +279,7 @@
}catch (e) { }catch (e) {
if(e.code === 1002000010){ if(e.code === 1002000010){
setTimeout(function (){ setTimeout(function (){
window.location.href = "/updatePasswordNewTips?username="+loginData.loginForm.username router.push({path:"/updatePasswordNewTips",query:{username:loginData.loginForm.username}})
},3000) },3000)
} }
} finally { } finally {

1
src/views/login/updatePasswordNewTips.vue

@ -31,6 +31,7 @@
</template> </template>
<script lang="ts" setup name="bb"> <script lang="ts" setup name="bb">
import type { RouteLocationNormalizedLoaded } from 'vue-router' import type { RouteLocationNormalizedLoaded } from 'vue-router'
import router from "@/router";
import { useIcon } from '@/hooks/web/useIcon' import { useIcon } from '@/hooks/web/useIcon'
import { setTenantId, setToken } from '@/utils/auth' import { setTenantId, setToken } from '@/utils/auth'
import { usePermissionStore } from '@/store/modules/permission' import { usePermissionStore } from '@/store/modules/permission'

1
src/views/wms/basicDataManage/subject/subjectAccount/subjectAccount.data.ts

@ -17,6 +17,7 @@ export const SubjectAccountRules = reactive({
projectId: [required], projectId: [required],
projectCode: [required], projectCode: [required],
available: [required], available: [required],
isProject: [required],
isFromPlMstr: [required] isFromPlMstr: [required]
}) })

4
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -952,14 +952,14 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
min: 0, min: 0,
max:9999, max:999999,
// precision: 6 // precision: 6
} }
}, },
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 0,
max:9999, max:999999,
// precision: 6 // precision: 6
} }
}, },

4
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -867,14 +867,14 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
component: 'InputNumber', component: 'InputNumber',
componentProps: { componentProps: {
min: 0, min: 0,
max:9999, max:999999,
// precision: 6 // precision: 6
} }
}, },
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 0,
max:9999, max:999999,
// precision: 6 // precision: 6
} }
}, },

2
src/views/wms/deliversettlementManage/stockup/stockupMainRequest/stockupMainRequest.data.ts

@ -742,7 +742,7 @@ export const StockupDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
tableForm: { tableForm: {
type: 'InputNumber', type: 'InputNumber',
min: 0, min: 0,
max:9999, max:999999,
// precision: 6 // precision: 6
}, },
}, },

35
src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts

@ -380,6 +380,25 @@ export const ScrapRecordMain = useCrudSchemas(
width: 150 width: 150
} }
}, },
{
label: '是否已撤销',
field: 'revokeFlag',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
table: {
width: 150
},
detail:{
// dictType:'primary',
// valueFilter:(value)=>{
// if(value=='TRUE'){
// return `是`
// }else{
// return '否'
// }
// }
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -462,22 +481,6 @@ export const ScrapRecordMain = useCrudSchemas(
// width: 150 // width: 150
// }, // },
// }, // },
{
label: '是否可用',
field: 'available',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
isSearch: false,
isTable: true,
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '操作', label: '操作',
field: 'action', field: 'action',

19
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts

@ -382,6 +382,25 @@ export const UnplannedissueRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isTable: false, isTable: false,
}, },
{
label: '是否已撤销',
field: 'revokeFlag',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
table: {
width: 150
},
detail:{
// dictType:'primary',
// valueFilter:(value)=>{
// if(value=='TRUE'){
// return `是`
// }else{
// return '否'
// }
// }
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',

20
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRecordMain/unplannedreceiptRecordMain.data.ts

@ -366,6 +366,25 @@ export const UnplannedreceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>(
width: 150 width: 150
} }
}, },
{
label: '是否已撤销',
field: 'revokeFlag',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
table: {
width: 150
},
detail:{
// dictType:'primary',
// valueFilter:(value)=>{
// if(value=='TRUE'){
// return `是`
// }else{
// return '否'
// }
// }
}
},
{ {
label: '创建时间', label: '创建时间',
field: 'createTime', field: 'createTime',
@ -820,6 +839,7 @@ export const UnplannedreceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]
width: 150 width: 150
}, },
}, },
// { // {
// label: '任务明细ID', // label: '任务明细ID',
// field: 'jobDetailId', // field: 'jobDetailId',

20
src/views/wms/issueManage/repleinsh/repleinshJobMain/repleinshJobMain.data.ts

@ -773,6 +773,26 @@ export const RepleinshJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isSearch: true, isSearch: true,
}, },
{
label: '从库区',
field: 'fromAreaCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
isTable: true
},
{
label: '到库区',
field: 'toAreaCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true,
isTable: true
},
{ {
label: '物料代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',

10
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/inventorymoveRecordRequestMain.data.ts

@ -61,11 +61,6 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'isIn', key: 'isIn',
value: 'out', value: 'out',
isMainValue: false isMainValue: false
},
{
key:'available', // 查询列表中字段
value:'TRUE', // 指查询具体值
isMainValue: false // 表示查询条件不是主表的字段的值
}], }],
isRepeat:true, isRepeat:true,
verificationParams: [{ verificationParams: [{
@ -96,11 +91,6 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'isIn', key: 'isIn',
value: 'out', value: 'out',
isMainValue: false isMainValue: false
},
{
key:'available', // 查询列表中字段
value:'TRUE', // 指查询具体值
isMainValue: false // 表示查询条件不是主表的字段的值
}], }],
verificationParams: [{ verificationParams: [{
key: 'code', key: 'code',

156
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue

@ -94,7 +94,8 @@ import { formatDate } from '@/utils/formatTime'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
// //
// 使
defineOptions({ name: 'InventorymoveRequestMain' }) defineOptions({ name: 'InventorymoveRequestMain' })
const message = useMessage() // const message = useMessage() //
@ -115,81 +116,15 @@ const { tableObject, tableMethods } = useTable({
getListApi: InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage // getListApi: InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage //
}) })
// tableObject.params = {
/**
* OktoholdRequestMain 合格转隔离
*/
if ( routeName.value == 'OktoholdRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'OK', // fromInventoryStatus: 'OK',
// toInventoryStatus:'HOLD', // toInventoryStatus:'HOLD',
businessType :'OkToHold' businessType :'OkToHold'
}
// fromInventoryStatus.value = 'OK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'OkToHold'
importFileName.value = '物料转隔离申请'
} }
else if ( routeName.value == 'NoktoholdRequestMain') { // fromInventoryStatus.value = 'OK'
tableObject.params = { // toInventoryStatus.value = "HOLD"
// fromInventoryStatus: 'NOK', businessType.value = 'OkToHold'
// toInventoryStatus:'HOLD', importFileName.value = '物料转隔离申请'
businessType :'NokToHold'
}
// fromInventoryStatus.value = 'NOK'
// toInventoryStatus.value = "HOLD"
businessType.value = 'NokToHold'
importFileName.value = '不合格转隔离申请'
}
else if ( routeName.value == 'HoldtookRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'OK',
businessType :'HoldToOk'
}
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "OK"
businessType.value = 'HoldToOk'
importFileName.value = '隔离转合格申请'
} else if ( routeName.value == 'HoldtoscrapRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'HOLD',
// toInventoryStatus:'SCRAP',
businessType:'HoldToScrap'
}
// fromInventoryStatus.value = 'HOLD'
// toInventoryStatus.value = "SCRAP"
businessType.value = 'HoldToScrap'
importFileName.value = '隔离转报废申请'
} else if ( routeName.value == 'OktoscrapRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'OK',
// toInventoryStatus:'SCRAP',
businessType :'OkToScrap'
}
// fromInventoryStatus.value = 'OK'
// toInventoryStatus.value = "SCRAP"
businessType.value = 'OkToScrap'
importFileName.value = '合格转报废申请'
}
else if ( routeName.value == 'ScraptoholdRequestMain') {
tableObject.params = {
// fromInventoryStatus: 'SCRAP',
// toInventoryStatus:'HOLD',
businessType :'ScrapToHold'
}
// fromInventoryStatus.value = 'SCRAP'
// toInventoryStatus.value = "HOLD"
businessType.value = 'ScrapToHold'
importFileName.value = '报废转隔离申请'
} else {
tableObject.params = {
businessType :'Move'
}
businessType.value = 'Move'
importFileName.value = '库存移动申请'
}
console.log(99 , businessType.value)
InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{ InventorymoveRequestMain.allSchemas.tableFormColumns.map(item =>{
if(item.field == 'fromWarehouseCode') { if(item.field == 'fromWarehouseCode') {
@ -349,27 +284,20 @@ const updataTableColumns = (val) => {
// - // -
const getDefaultToLocationCode = async ()=>{ const getDefaultToLocationCode = async ()=>{
let searchCondition = [] let searchCondition = []
InventorymoveRequestDetail.allSchemas.tableFormColumns.map(item => { InventorymoveRequestMain.allSchemas.formSchema.map(item => {
if(item.field == "toLocationCode"){ if(item.field == "toLocationCode"){
searchCondition = item.tableForm.searchCondition searchCondition = item.componentProps.searchCondition
} }
}) })
let params = {} let params = {}
searchCondition.forEach(item=>{ searchCondition.forEach(item=>{
if(item['isMainValue']){
params[item['key']] = formRef.value.formRef.formModel[item['value']]
}else{
params[item['key']] = item['value'] params[item['key']] = item['value']
}
}) })
console.log('params',params)
let res = await LocationApi.selectBusinessTypeToLocation(params) let res = await LocationApi.selectBusinessTypeToLocation(params)
console.log('res',res) console.log('获取到库位默认值',res)
if(res&&res.list.length>0){ if(res&&res.list.length>0){
tableData.value.forEach(item=>{ formRef.value.formRef.formModel["toLocationCode"] = res.list[0]['code']
if(!item['toLocationCode']){
item['toLocationCode'] = res.list[0]['code']
}
})
} }
} }
// //
@ -389,26 +317,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['fromLocationCode'] = item['locationCode'] newRow['fromLocationCode'] = item['locationCode']
newRow['uom'] = item['uom'] newRow['uom'] = item['uom']
newRow['qty'] = item['qty'] newRow['qty'] = item['qty']
if(routeName.value == 'OktoholdRequestMain'){ newRow['toInventoryStatus'] = "HOLD" //
newRow['toInventoryStatus'] = "HOLD"
}else if(routeName.value == 'NoktoholdRequestMain'){
newRow['toInventoryStatus'] = "HOLD"
}else if ( routeName.value == 'HoldtookRequestMain') {
newRow['toInventoryStatus'] = "OK"
}else if ( routeName.value == 'HoldtoscrapRequestMain') {
newRow['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'OktoscrapRequestMain') {
newRow['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'ScraptoholdRequestMain') {
newRow['toInventoryStatus'] = "HOLD"
}else{
newRow['toInventoryStatus'] = item['inventoryStatus']
}
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
if(routeName.value == 'OktoholdRequestMain'){
getDefaultToLocationCode()
}
} else { } else {
row[formField] = val[0][searchField] row[formField] = val[0][searchField]
} }
@ -446,21 +357,8 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['fromInventoryStatus'] = val[0]['inventoryStatus'] setV['fromInventoryStatus'] = val[0]['inventoryStatus']
setV['fromLocationCode'] = val[0]['locationCode'] setV['fromLocationCode'] = val[0]['locationCode']
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
if(routeName.value == 'OktoholdRequestMain'){
setV['toInventoryStatus'] = "HOLD"
}else if(routeName.value == 'NoktoholdRequestMain'){
setV['toInventoryStatus'] = "HOLD"
}else if ( routeName.value == 'HoldtookRequestMain') {
setV['toInventoryStatus'] = "OK"
}else if ( routeName.value == 'HoldtoscrapRequestMain') {
setV['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'OktoscrapRequestMain') {
setV['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'ScraptoholdRequestMain') {
setV['toInventoryStatus'] = "HOLD" setV['toInventoryStatus'] = "HOLD"
}else{
setV['toInventoryStatus'] = val[0]['inventoryStatus']
}
} else { } else {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }
@ -638,6 +536,8 @@ const openForm =async (type: string, row?: number) => {
} }
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
getDefaultToLocationCode()
} }
/** /**
@ -695,27 +595,9 @@ const handleExport = async () => {
// //
loadStart() loadStart()
const excelTitle = ref(route.meta.title) const excelTitle = ref(route.meta.title)
if(routeName.value == 'OktoholdRequestMain'){
const data = await InventorymoveRequestMainApi.exportOkToHoldRequestMain(tableObject.params) const data = await InventorymoveRequestMainApi.exportOkToHoldRequestMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`) download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}else if ( routeName.value == 'HoldtookRequestMain') {
const data = await InventorymoveRequestMainApi.exportHoldToOkRequestMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}else if ( routeName.value == 'HoldtoscrapRequestMain') {
const data = await InventorymoveRequestMainApi.exportHoldToScrapRequestMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}else if ( routeName.value == 'OktoscrapRequestMain') {
const data = await InventorymoveRequestMainApi.exportOkToScrapRequestMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}
// else if ( routeName.value == 'ScraptoholdRequestMain') {
// const data = await InventorymoveRequestMainApi.exportScrapToHoldRequestMain(tableObject.params)
// download.excel(data, '.xlsx')
// }
else{
const data = await InventorymoveRequestMainApi.exportInventorymoveRequestMain(tableObject.params)
download.excel(data, `${excelTitle.value}】【${formatDate(new Date())}】.xlsx`)
}
} catch { } catch {
} finally { } finally {
loadDone() loadDone()
@ -754,7 +636,8 @@ const submitForm = async (formType, submitData) => {
if(data.masterId){ if(data.masterId){
data.id = data.masterId data.id = data.masterId
} }
let findLocation = tableData.value.find(item=>item.fromLocationCode&&item.toLocationCode&&item.fromLocationCode==item.toLocationCode) let toLocationCode = data['toLocationCode'] //
let findLocation = tableData.value.find(item=>item.fromLocationCode&&toLocationCode&&item.fromLocationCode==toLocationCode)
if(findLocation){ if(findLocation){
message.warning('从库位和到库位不能相同') message.warning('从库位和到库位不能相同')
return return
@ -762,6 +645,7 @@ const submitForm = async (formType, submitData) => {
data.subList = tableData.value // data.subList = tableData.value //
let isExist = false let isExist = false
tableData.value.forEach(item => { tableData.value.forEach(item => {
item['toLocationCode'] = toLocationCode
let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber&&filterItem.fromPackingNumber == item.fromPackingNumber) ) let rs = tableData.value.filter(filterItem => (filterItem.fromPackingNumber&&filterItem.fromPackingNumber == item.fromPackingNumber) )
console.log(rs,5666); console.log(rs,5666);
if(rs.length > 1) isExist = true if(rs.length > 1) isExist = true

46
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/inventorymoveRequestMain.data.ts

@ -152,6 +152,44 @@ export const InventorymoveRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isForm: false, isForm: false,
}, },
{
label: '到库位代码', // 子表数据--新增在form上展示
field: 'toLocationCode',
sort: 'custom',
isForm:true,
isTable:false,
isDetail:false,
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
enterSearch: true,
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择到库位代码',
searchField: 'code',
searchTitle: '库位信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectBusinessTypeToLocation,
searchCondition: [
{
key: 'businessType',
value: 'OkToHold',
isMainValue: false
},{
key: 'isIn',
value: 'in',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
{ {
label: '截止时间', label: '截止时间',
field: 'dueTime', field: 'dueTime',
@ -464,6 +502,9 @@ export const InventorymoveRequestMainRules = reactive({
fromWarehouseCode: [ fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'blur' } { required: true, message: '请选择从仓库代码', trigger: 'blur' }
], ],
toLocationCode: [
{ required: true, message: '请选择到库位代码', trigger: 'change' }
],
status: [ status: [
{ required: true, message: '请选择状态', trigger: 'change' } { required: true, message: '请选择状态', trigger: 'change' }
], ],
@ -703,7 +744,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
table: { table: {
width: 150 width: 150
}, },
isTableForm:true, isTableForm:false, //放在主表展示了--喜婷
tableForm: { tableForm: {
enterSearch: true, enterSearch: true,
isInpuFocusShow: true, // 开启查询弹窗 isInpuFocusShow: true, // 开启查询弹窗
@ -940,9 +981,6 @@ export const InventorymoveRequestDetailRules = reactive({
fromInventoryStatus: [ fromInventoryStatus: [
{ required: true, message: '请选择从库存状态', trigger: 'change' } { required: true, message: '请选择从库存状态', trigger: 'change' }
], ],
toLocationCode: [
{ required: true, message: '请选择到库位代码', trigger: 'change' }
],
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],

201
src/views/wms/productionManage/processproduction/processproductionRequest/processproductionRequestMain.data.ts

@ -16,6 +16,199 @@ import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
import { fa } from 'element-plus/es/locale' import { fa } from 'element-plus/es/locale'
export const BalanceBom = useCrudSchemas(
reactive<CrudSchema[]>([
{
label: '物料代码',
field: 'itemCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true
},
{
label: '批次',
field: 'batch',
sort: 'custom',
table: {
width: 150
},
isSearch: true
},
{
label: '包装号',
field: 'packingNumber',
sort: 'custom',
table: {
width: 150
},
isSearch: true
},
{
label: '包装规格',
field: 'packUnit',
sort: 'custom',
table: {
width: 150
}
},
{
label: '包装数量',
field: 'packQty',
sort: 'custom',
table: {
width: 150
}
},
{
label: '库存数量',
field: 'qty',
sort: 'custom',
table: {
width: 150
},
form: {
component: 'InputNumber'
}
},
{
label: '计量单位',
field: 'uom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
{
label: '库位代码',
field: 'locationCode',
sort: 'custom',
table: {
width: 150
},
isSearch: true
},
{
label: '库存状态',
field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
}
},
{
label: '库区类型',
field: 'areaType',
sort: 'custom',
dictType: DICT_TYPE.AREA_TYPE,
dictClass: 'string',
isTable: true,
table: {
width: 150
}
},
{
label: '仓库代码',
field: 'warehouseCode',
sort: 'custom',
table: {
width: 150
}
},
{
label: '库位组代码',
field: 'locationGroupCode',
sort: 'custom',
table: {
width: 150
}
},
{
label: '库区代码',
field: 'areaCode',
sort: 'custom',
table: {
width: 150
}
},
{
label: '到货日期',
field: 'arriveDate',
isTable: true,
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
table: {
width: 150
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x'
}
}
},
{
label: '生产日期',
field: 'produceDate',
isTable: true,
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
table: {
width: 150
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x'
}
}
},
{
label: '失效日期',
field: 'expireDate',
isTable: true,
formatter: dateFormatter2,
detail: {
dateFormat: 'YYYY-MM-DD'
},
sort: 'custom',
table: {
width: 150
},
form: {
component: 'DatePicker',
componentProps: {
style: { width: '100%' },
type: 'date',
dateFormat: 'YYYY-MM-DD',
valueFormat: 'x'
}
}
},
])
)
export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const ProcessproductionRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
@ -474,7 +667,7 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
searchListPlaceholder: '请选择子物料代码', searchListPlaceholder: '请选择子物料代码',
searchField: 'componentItemCode', searchField: 'componentItemCode',
searchTitle: '库存余额物料清单信息', searchTitle: '库存余额物料清单信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: BalanceBom.allSchemas,
searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage, searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage,
searchCondition: [{ searchCondition: [{
key:'productItemCode', key:'productItemCode',
@ -503,7 +696,7 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
searchListPlaceholder: '请选择子物料代码', searchListPlaceholder: '请选择子物料代码',
searchField: 'componentItemCode', searchField: 'componentItemCode',
searchTitle: '库存余额物料清单信息', searchTitle: '库存余额物料清单信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: BalanceBom.allSchemas,
searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage, searchPage: ProcessproductionRequestMainApi.getProcessproductionChildBomPage,
searchCondition: [{ searchCondition: [{
key:'productItemCode', key:'productItemCode',
@ -696,7 +889,6 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
width: 150 width: 150
}, },
form: { form: {
disabled:true,
component: 'DatePicker', component: 'DatePicker',
componentProps: { componentProps: {
style: {width: '100%'}, style: {width: '100%'},
@ -706,9 +898,8 @@ export const ProcessproductionRequestDetail = useCrudSchemas(reactive<CrudSchema
} }
}, },
tableForm:{ tableForm:{
disabled:true,
type:'FormDate', type:'FormDate',
placeholder: '请选择生日期', placeholder: '请选择生日期',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

1
src/views/wms/productionManage/productreceipt/productreceiptRequestMain/index.vue

@ -609,6 +609,7 @@ const buttonTableClick = async (val, row) => {
buttonBaseClick('refresh', null) buttonBaseClick('refresh', null)
}) })
.catch((err) => { .catch((err) => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { } else if (val == 'edit') {

1
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -527,6 +527,7 @@ const buttonTableClick = async (val, row) => {
tableObject.loading = false tableObject.loading = false
buttonBaseClick('refresh',null) buttonBaseClick('refresh',null)
}).catch(err => { }).catch(err => {
tableObject.loading = false
console.log(err) console.log(err)
}) })
} else if (val == 'edit') { // } else if (val == 'edit') { //

19
src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts

@ -279,6 +279,25 @@ export const ProductscrapRecordMain = useCrudSchemas(
}, },
isTable: false isTable: false
}, },
{
label: '是否已撤销',
field: 'revokeFlag',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
table: {
width: 150
},
detail:{
// dictType:'primary',
// valueFilter:(value)=>{
// if(value=='TRUE'){
// return `是`
// }else{
// return '否'
// }
// }
}
},
{ {
label: '创建者', label: '创建者',
field: 'creator', field: 'creator',

17
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -376,6 +376,20 @@ const isASNShowMainButton = (row,val) => {
} }
} }
//
const isASNShowMainButtonCreateLabel = (row,val) => {
if (val.indexOf(row.status) > -1) {
if(row.sourceType == 'ASN_ExternalReceipt' && row.asnOutLabel == '2'){
return true;
}else{
return false;
}
} else {
return true;
}
}
// - // -
const butttondata = (row,$index) => { const butttondata = (row,$index) => {
const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1 const findIndex = row['masterId']?tableObject.tableList.findIndex(item=>item['masterId'] == row['masterId']):-1
@ -391,7 +405,7 @@ const butttondata = (row,$index) => {
{ {
label: '生成标签', label: '生成标签',
name: 'ssbq', name: 'ssbq',
hide: isASNShowMainButton(row, ['3']), hide: isASNShowMainButtonCreateLabel(row, ['3']),
type: 'primary', type: 'primary',
icon: '', icon: '',
color: '', color: '',
@ -492,6 +506,7 @@ const submitFormLabel = async (formType, submitData) => {
} finally { } finally {
formLabelRef.value.formLoading = false formLabelRef.value.formLoading = false
formLabelRef.value.dialogVisible = false formLabelRef.value.dialogVisible = false
buttonBaseClick('refresh',null);
} }
} }

4
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

@ -1779,7 +1779,7 @@ export const SupplierinvoiceRecordMainTransfer = useCrudSchemas(reactive<CrudSch
}, },
}, },
{ {
label: '回转日期', label: '回转日期11',
field: 'reversepostingdate', field: 'reversepostingdate',
formatter: dateFormatter, formatter: dateFormatter,
detail: { detail: {
@ -1795,7 +1795,7 @@ export const SupplierinvoiceRecordMainTransfer = useCrudSchemas(reactive<CrudSch
componentProps: { componentProps: {
style: {width:'100%'}, style: {width:'100%'},
type: 'date', type: 'date',
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x', valueFormat: 'x',
} }
}, },

Loading…
Cancel
Save