Browse Source

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

intex_online20241111
宋国强 3 months ago
parent
commit
2f96ca5dc3
  1. 22
      src/views/wms/inventoryManage/balance/index.vue
  2. 8
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts
  3. 18
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  4. 4
      src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/purchaseBarterRecordMain.data.ts

22
src/views/wms/inventoryManage/balance/index.vue

@ -250,17 +250,17 @@ const handleSelectionPoint = async () => {
} }
// - // -
const butttondata = [ const butttondata = [
{ // {
label: '标签信息', // label: '',
name: 'bqxx', // name: 'bqxx',
hide: false, // hide: false,
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
link: true, // link: true,
float: 'right', // float: 'right',
hasPermi: '' // hasPermi: ''
}, // },
defaultButtons.mainListPointBtn(null) // defaultButtons.mainListPointBtn(null) //
// defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'wms:balance:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:balance:delete'}), //

8
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptRequestMain/unplannedreceiptRequestMain.data.ts

@ -530,7 +530,7 @@ export const UnplannedreceiptRequestMain = useCrudSchemas(reactive<CrudSchema[]>
}, },
form: { form: {
component: 'Switch', component: 'Switch',
value: requestsettingData.directCreateRecord, value: 'FALSE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', inactiveValue: 'FALSE',
activeValue: 'TRUE' activeValue: 'TRUE'
@ -804,9 +804,9 @@ export const UnplannedreceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[
table: { table: {
width: 150 width: 150
}, },
tableForm: { // tableForm: {
disabled: true // disabled: true
} // }
}, },
// { // {
// label: '包装号', // label: '包装号',

18
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -384,6 +384,7 @@ 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']
newRow['inventoryQty'] = item['qty']
if(routeName.value == 'NoktoholdRequestMain'){ if(routeName.value == 'NoktoholdRequestMain'){
newRow['toInventoryStatus'] = "HOLD" newRow['toInventoryStatus'] = "HOLD"
}else if ( routeName.value == 'HoldtookRequestMain') { }else if ( routeName.value == 'HoldtookRequestMain') {
@ -606,11 +607,11 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm =async (type: string, row?: number) => { const openForm =async (type: string, row?: number) => {
InventorymoveRequestDetail.allSchemas.tableFormColumns.forEach(item=>{ // InventorymoveRequestDetail.allSchemas.tableFormColumns.forEach(item=>{
if(item.field == 'qty'){ // if(item.field == 'qty'){
item.tableForm.disabled = routeName.value == "HoldtookRequestMain" // item.tableForm.disabled = routeName.value == "HoldtookRequestMain"
} // }
}) // })
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }
@ -768,6 +769,13 @@ const submitForm = async (formType, submitData) => {
} }
formRef.value.formLoading = true formRef.value.formLoading = true
try { try {
const cmdExists = data.subList.some(filter =>
parseFloat(filter.inventoryQty) < parseFloat(filter.qty)
);
if(cmdExists){
message.warning("数量不能大于库存数量")
return
}
if (formType === 'create') { if (formType === 'create') {
await InventorymoveRequestMainApi.createInventorymoveRequestMain(data) await InventorymoveRequestMainApi.createInventorymoveRequestMain(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))

4
src/views/wms/purchasereceiptManage/purchaseBarter/purchaseBarterRecord/purchaseBarterRecordMain.data.ts

@ -26,7 +26,7 @@ export const PurchaseBarterRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
label: '状态', label: '状态',
field: 'status', field: 'status',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: false,
isForm: false, isForm: false,
dictType: DICT_TYPE.REQUEST_STATUS, dictType: DICT_TYPE.REQUEST_STATUS,
dictClass: 'string', dictClass: 'string',
@ -66,6 +66,8 @@ export const PurchaseBarterRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
field: 'uom', field: 'uom',
sort: 'custom', sort: 'custom',
isSearch: false, isSearch: false,
dictType: DICT_TYPE.UOM,
dictClass: 'string',
}, },
{ {
label: '批次', label: '批次',

Loading…
Cancel
Save