陈薪名 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. 29
      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"
:mode="2"
/>
</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 { 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 SaleDetailApi from '@/api/wms/saleDetail'
import { SaleDetail, SaleMain } from '../saleMain/saleMain.data'
@ -320,7 +323,23 @@ export const DeliverPlanDetail = useCrudSchemas(reactive<CrudSchema[]>([
table: {
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,
},
{
@ -533,6 +552,9 @@ export const DeliverPlanDetailRules = reactive({
number: [
{ required: true, message: '请输入单据号', trigger: 'blur' }
],
customerDockCode: [
{ required: true, message: '请选择客户月台代码', trigger: 'blur' }
],
itemCode: [
{ required: true, message: '请选择物料代码', trigger: 'change' }
],

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

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

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

@ -67,8 +67,8 @@
:apiUpdate="InventorymoveRequestDetailApi.updateInventorymoveRequestDetail"
:apiPage="InventorymoveRequestDetailApi.getInventorymoveRequestDetailPage"
:apiDelete="InventorymoveRequestDetailApi.deleteInventorymoveRequestDetail"
:Echo="Echo"
@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]
formRef.setValues(setV)
@ -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
@ -440,9 +435,31 @@ const openForm =async (type: string, row?: number) => {
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 openDetail = (row: any, titleName: any, titleValue: any) => {
fromWarehouseCodeMain.value = row.fromWarehouseCode
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: [
{ required: true, message: '请输入部门', trigger: 'blur' }
],
fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'blur' }
],
status: [
{ required: true, message: '请选择状态', trigger: 'change' }
],

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

@ -179,22 +179,22 @@
// -
const buttonTableClick = async (val, row) => {
if (val == 'edit') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
openForm('update', row)
} else if (val == 'delete') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
handleDelete(row.id)
} else if (val == 'mainOrderClo') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
handleClose(row.id)
} else if (val == 'mainOrderOpe') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
handleOpen(row.id)
} else if (val == 'mainOrderPub') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
handlePublish(row.id)
} else if (val == 'mainOrderWit') { //
if (row.available == 'FALSE') return message.warning('当前数据:【不可用】')
// if (row.available == 'FALSE') return message.warning('')
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',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
activeValue: 'TRUE',
disabled: true
}
},
},

Loading…
Cancel
Save