Browse Source

采购退货

master
zhang_li 12 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 formSchema = ref(props.formAllSchemas?.formSchema)
const tableAllSchemas = ref(props.tableAllSchemas) const tableAllSchemas = ref(props.tableAllSchemas)
const tableFormRules = ref(props.tableFormRules) const tableFormRules = ref(props.tableFormRules)
console.log('fromeWhere', props.fromeWhere)
// - // -
const buttondata = [ const buttondata = [
@ -396,6 +395,7 @@ const submitForm = async () => {
// //
try { try {
const data = unref(formRef)?.formModel const data = unref(formRef)?.formModel
console.log('data',data)
emit('submitForm', formType.value, data) emit('submitForm', formType.value, data)
} finally { } finally {
} }

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

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

Loading…
Cancel
Save