Browse Source

采购收货申请--编辑id问题

master_hella_20240701
wangyufei 5 months ago
parent
commit
28e9bd7c60
  1. 12
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

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

@ -420,7 +420,11 @@ const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({
const { getList:getDetailList } = detatableMethods
//
const submitFormLabel = async (formType, data) => {
const submitFormLabel = async (formType, submitData) => {
let data = {...submitData}
if(data.masterId){
data.id = data.masterId
}
try {
console.log("formType==",formType)
console.log("data==",data)
@ -714,7 +718,11 @@ const onEnter = async (field,value)=>{
getSearchTableData(value,true)
}
//
const submitForm = async (formType, data) => {
const submitForm = async (formType, submitData) => {
let data = {...submitData}
if(data.masterId){
data.id = data.masterId
}
tableData.value.forEach((row, index) => {
row['expireDate'] = row['expireTime']?addDay(row['produceDate'],row['expireTime']).valueOf():dayjs('2099-12-31').valueOf()
})

Loading…
Cancel
Save