|
|
@ -58,6 +58,8 @@ |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" |
|
|
|
:isShowButton = isShowButton |
|
|
|
@onEnter="onEnter" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
@ -88,6 +90,7 @@ |
|
|
|
:isShowReduceButton="false" |
|
|
|
@submitForm="submitFormLabel" |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
|
|
|
|
/> |
|
|
|
<!-- 标签打印 --> |
|
|
|
<SearchTable style="width:905px" ref="showLabelRef" @searchTableSuccess="showLabelSuccess" /> |
|
|
@ -104,6 +107,7 @@ import { CustomerreturnRequestMain,CustomerreturnRequestMainRules,Customerreturn |
|
|
|
import * as CustomerreturnRequestMainApi from '@/api/wms/customerreturnRequestMain' |
|
|
|
import * as CustomerreturnRequestDetailApi from '@/api/wms/customerreturnRequestDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { DeliverRecordMain,DeliverRecordDetail } from '../../deliver/deliverRecordMain/deliverRecordMain.data' |
|
|
|
import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail' |
|
|
|
import { |
|
|
|
SupplierdeliverRequestPackage |
|
|
@ -129,7 +133,34 @@ const isShowButton = ref(true) |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
const onEnter = async (field,value)=>{ |
|
|
|
console.log('onEnter',field,value) |
|
|
|
const dateTime = new Date().getTime() |
|
|
|
if(field=='customerCode'){ |
|
|
|
//客户代码---》发货记录单号 |
|
|
|
formRef.value.opensearchTable('deliverRecordNumber', 'number', '发货记录信息', DeliverRecordMain.allSchemas, DeliverRecordDetailApi.getDeliverRecordDetailPage,[{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'createTime', // 查询列表中字段 |
|
|
|
value: dateTime - 30 * 24 * 60 * 60 * 1000 + "," + dateTime, // 指查询具体值 |
|
|
|
action: 'betweeen', // 查询拼接条件 |
|
|
|
isSearch: true, // 使用自定义拼接条件 |
|
|
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'customerCode', // 查询列表中字段 |
|
|
|
value: 'customerCode', // 指查询具体值 |
|
|
|
action: '==', // 查询拼接条件 |
|
|
|
isSearch: true, // 使用自定义拼接条件 |
|
|
|
isFormModel:true, |
|
|
|
isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 |
|
|
|
} |
|
|
|
],undefined,undefined,null,true,DeliverRecordDetail.allSchemas) |
|
|
|
} |
|
|
|
} |
|
|
|
// 查询页面返回 |
|
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|
nextTick(() => { |
|
|
|