|
|
@ -43,7 +43,8 @@ |
|
|
|
:isShowReduceButtonSelection="true" |
|
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" /> |
|
|
|
@submitForm="submitForm" |
|
|
|
@onEnter="onEnter"/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
|
<!-- 隐藏子表编辑和删除是因为要货计划以后是接口发过来的,而且我们的计划数量是放入到采购订单已计划数量里,无法再次编辑数量--> |
|
|
@ -81,7 +82,8 @@ |
|
|
|
import { PurchaseDetail } from '../purchaseMain/purchaseMain.data' |
|
|
|
import dayjs from 'dayjs' |
|
|
|
import supplierdeliverBasicForm from '../supplierdeliverRequestMain/supplierdeliverBasicForm.vue' |
|
|
|
|
|
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
|
import { PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
|
// 要货计划 |
|
|
|
defineOptions({ name: 'PurchasePlanMain' }) |
|
|
|
|
|
|
@ -536,6 +538,26 @@ const { wsCache } = useCache() |
|
|
|
const tableSelectionDelete = (selection) => { |
|
|
|
tableData.value = tableData.value.filter(item => !selection.includes(item)) |
|
|
|
} |
|
|
|
const onEnter = async (field,value)=>{ |
|
|
|
console.log(field,value) |
|
|
|
if('supplierCode'==field){ |
|
|
|
//供应商代码 |
|
|
|
formRef.value.opensearchTable('poNumber', 'number', '采购订单信息', PurchaseMain.allSchemas, PurchaseMainApi.getPurchaseMainPage,[{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
key: 'supplierCode', |
|
|
|
value: 'supplierCode', |
|
|
|
message: '请填写供应商代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
key: 'status', |
|
|
|
value: 2, |
|
|
|
isMainValue: false |
|
|
|
}]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 主子数据 提交 |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|