陈薪名 11 months ago
parent
commit
a09bb73dbf
  1. 1
      src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue
  2. 24
      src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts
  3. 3
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue
  4. 49
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue
  5. 3
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts
  6. 12
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue
  7. 3
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

1
src/views/wms/basicDataManage/supplierManage/purchaseprice/index.vue

@ -55,7 +55,6 @@
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/purchaseprice/import" :importTemplateData="importTemplateData" @success="importSuccess" <ImportForm ref="importFormRef" url="/wms/purchaseprice/import" :importTemplateData="importTemplateData" @success="importSuccess"
:mode="2"
/> />
</template> </template>

24
src/views/wms/deliversettlementManage/deliverplan/deliverPlanMain/deliverPlanMain.data.ts

@ -4,6 +4,9 @@ import { dateFormatter } from '@/utils/formatTime'
import * as CustomerApi from '@/api/wms/customer' import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data' import { Customer } from '@/views/wms/basicDataManage/customerManage/customer/customer.data'
import * as CustomerDockApi from '@/api/wms/customerdock'
import { Customerdock } from '@/views/wms/basicDataManage/customerManage/customerdock/customerdock.data'
import * as SaleMainApi from '@/api/wms/saleMain' import * as SaleMainApi from '@/api/wms/saleMain'
import * as SaleDetailApi from '@/api/wms/saleDetail' import * as SaleDetailApi from '@/api/wms/saleDetail'
import { SaleDetail, SaleMain } from '../saleMain/saleMain.data' import { SaleDetail, SaleMain } from '../saleMain/saleMain.data'
@ -320,7 +323,23 @@ export const DeliverPlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isTableForm: false, tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择物料代码',
searchField: 'code',
searchTitle: '物料基础信息',
searchAllSchemas: Customerdock.allSchemas,
searchPage: CustomerDockApi.getCustomerdockPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
key: 'customerCode',
value: 'customerCode',
isMainValue: true
}]
},
isForm: false, isForm: false,
}, },
{ {
@ -533,6 +552,9 @@ export const DeliverPlanDetailRules = reactive({
number: [ number: [
{ required: true, message: '请输入单据号', trigger: 'blur' } { required: true, message: '请输入单据号', trigger: 'blur' }
], ],
customerDockCode: [
{ required: true, message: '请选择客户月台代码', trigger: 'blur' }
],
itemCode: [ itemCode: [
{ required: true, message: '请选择物料代码', trigger: 'change' } { required: true, message: '请选择物料代码', trigger: 'change' }
], ],

3
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -373,7 +373,8 @@ const submitForm = async (formType, data) => {
return; return;
} }
}) })
if(flag){ if(flag.value){
formRef.value.formLoading = false
return return
} }
try { try {

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

@ -67,8 +67,8 @@
:apiUpdate="InventorymoveRequestDetailApi.updateInventorymoveRequestDetail" :apiUpdate="InventorymoveRequestDetailApi.updateInventorymoveRequestDetail"
:apiPage="InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage" :apiPage="InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage"
:apiDelete="InventorymoveRequestDetailApi.deleteInventorymoveRequestDetail" :apiDelete="InventorymoveRequestDetailApi.deleteInventorymoveRequestDetail"
:Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
@detailOpenForm="detailOpenForm"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -271,7 +271,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
} }
}) })
} }
// console.log(InventorymoveRequestDetail.allSchemas.tableFormColumns.find(item => (item.field == 'fromPackingNumber')).tableForm.searchCondition.find(item => (item.key == 'warehouseCode')));
} }
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
formRef.setValues(setV) formRef.setValues(setV)
@ -292,17 +291,17 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
if(routeName.value == 'OktoholdRequestMain'){ if(routeName.value == 'OktoholdRequestMain'){
setV['toInventoryStatus'] = "HOLD" setV['toInventoryStatus'] = "HOLD"
}else if ( routeName.value == 'HoldtookRequestMain') { }else if ( routeName.value == 'HoldtookRequestMain') {
setV['toInventoryStatus'] = "OK" setV['toInventoryStatus'] = "OK"
}else if ( routeName.value == 'HoldtoscrapRequestMain') { }else if ( routeName.value == 'HoldtoscrapRequestMain') {
setV['toInventoryStatus'] = "SCRAP" setV['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'OktoscrapRequestMain') { }else if ( routeName.value == 'OktoscrapRequestMain') {
setV['toInventoryStatus'] = "SCRAP" setV['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'ScraptoholdRequestMain') { }else if ( routeName.value == 'ScraptoholdRequestMain') {
setV['toInventoryStatus'] = "HOLD" setV['toInventoryStatus'] = "HOLD"
}else{ }else{
setV['toInventoryStatus'] = val[0]['inventoryStatus'] setV['toInventoryStatus'] = val[0]['inventoryStatus']
} }
} else { } else {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }
@ -310,10 +309,6 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
}) })
} }
//
// const Echo = ['ppNumber','poLine', 'batch', 'altBatch', 'itemCode', 'itemName', 'itemDesc1', 'itemDesc2', 'projectCode', 'qty', 'uom']
const Echo = []
// //
const { getList, setSearchParams } = tableMethods const { getList, setSearchParams } = tableMethods
@ -440,9 +435,31 @@ const openForm =async (type: string, row?: number) => {
formRef.value.open(type, row) formRef.value.open(type, row)
} }
/**
* 详情 新增/编辑事件
*/
const detailOpenForm = (type, row) => {
if(InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => (item.key == 'warehouseCode')) == undefined){
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.push({
key: 'warehouseCode',
value: fromWarehouseCodeMain.value,
isMainValue: false
})
} else {
InventorymoveRequestDetail.allSchemas.formSchema.find(item => (item.field == 'fromPackingNumber'))?.componentProps?.searchCondition.find(item => {
if (item.key == 'warehouseCode') {
item.value = fromWarehouseCodeMain.value
}
})
}
}
const fromWarehouseCodeMain = ref()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
fromWarehouseCodeMain.value = row.fromWarehouseCode
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue)
} }

3
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -409,6 +409,9 @@ export const InventorymoveRequestMainRules = reactive({
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }
], ],
fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'blur' }
],
status: [ status: [
{ required: true, message: '请选择状态', trigger: 'change' } { required: true, message: '请选择状态', trigger: 'change' }
], ],

12
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/index.vue

@ -179,22 +179,22 @@
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'edit') { // if (val == 'edit') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
openForm('update', row) openForm('update', row)
} else if (val == 'delete') { // } else if (val == 'delete') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handleDelete(row.id) handleDelete(row.id)
} else if (val == 'mainOrderClo') { // } else if (val == 'mainOrderClo') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handleClose(row.id) handleClose(row.id)
} else if (val == 'mainOrderOpe') { // } else if (val == 'mainOrderOpe') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handleOpen(row.id) handleOpen(row.id)
} else if (val == 'mainOrderPub') { // } else if (val == 'mainOrderPub') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handlePublish(row.id) handlePublish(row.id)
} else if (val == 'mainOrderWit') { // } else if (val == 'mainOrderWit') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】') // if (row.available == 'FALSE') return message.warning('')
handleWit(row.id) handleWit(row.id)
} }
} }

3
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -242,7 +242,8 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
value: 'TRUE', value: 'TRUE',
componentProps: { componentProps: {
inactiveValue: 'FALSE', inactiveValue: 'FALSE',
activeValue: 'TRUE' activeValue: 'TRUE',
disabled: true
} }
}, },
}, },

Loading…
Cancel
Save