Browse Source

发货申请--发货类型

master_hella_20240701
wangyufei 6 months ago
parent
commit
b74f10ff71
  1. 5
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  2. 7
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

5
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -168,6 +168,11 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
table: {
width: 150
},
form: {
componentProps: {
disabled:true
}
}
},
{
label: '发货计划单号',

7
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -94,6 +94,7 @@ import { DeliverRequestMain,DeliverRequestMainRules,DeliverRequestDetail,Deliver
import * as DeliverRequestMainApi from '@/api/wms/deliverRequestMain'
import * as DeliverRequestDetailApi from '@/api/wms/deliverRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import * as AreabasicApi from '@/api/wms/areabasic'
//
defineOptions({ name: 'DeliverRequestMain' })
@ -142,7 +143,7 @@ const updataTableColumns = (val) => {
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => {
nextTick(async () => {
if (type == 'tableForm') {
if(formField == 'itemCode') {
const tableFormKeys = {}
@ -172,6 +173,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
//
setV['toWarehouseCode'] = val[0]['warehouseCode']//
setV['toLocationCode'] = val[0]['defaultLocationCode']//
let res = await AreabasicApi.selectAreabasicDOByCode(val[0]['defaultLocationCode'])
if(res){
setV['deliverType'] = res['type']
}
} else {
setV[formField] = val[0][searchField]
}

Loading…
Cancel
Save