Browse Source

采购退货

master
zhang_li 11 months ago
parent
commit
f34d79fe02
  1. 2
      src/components/BasicForm/src/BasicForm.vue
  2. 4
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

2
src/components/BasicForm/src/BasicForm.vue

@ -233,7 +233,6 @@ const formRef = ref() // 表单 Ref
const formSchema = ref(props.formAllSchemas?.formSchema)
const tableAllSchemas = ref(props.tableAllSchemas)
const tableFormRules = ref(props.tableFormRules)
console.log('fromeWhere', props.fromeWhere)
// -
const buttondata = [
@ -396,6 +395,7 @@ const submitForm = async () => {
//
try {
const data = unref(formRef)?.formModel
console.log('data',data)
emit('submitForm', formType.value, data)
} finally {
}

4
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -127,7 +127,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
nextTick(() => {
if (type == 'tableForm') {
//
console.log(val[0])
row[formField] = val[0][searchField]
row['poNumber'] = val[0]['poNumber']
row['poLine'] = val[0]['poLine']
@ -174,7 +173,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
})
.then((res) => {
if (res) tableData.value = res
console.log(PurchasereturnRequestDetail.allSchemas.tableFormColumns)
tableData.value.forEach((item) => {
item.batch = item.toBatch
item.packingNumber = item.toPackingNumber
@ -451,7 +449,6 @@ const handleAddTable = () => {
//
const handleDeleteTable = (item, index,formRef) => {
tableData.value.splice(index, 1)
console.log(item)
if (tableData.value.length == 0) {
isShowButton.value = true
nextTick(() => {
@ -468,6 +465,7 @@ const handleDeleteTable = (item, index,formRef) => {
//
const submitForm = async (formType, data) => {
console.log(formType)
data.subList = tableData.value //
try {
if (formType === 'create') {

Loading…
Cancel
Save