|
|
@ -7,121 +7,7 @@ |
|
|
|
:schema="formSchema" |
|
|
|
:is-col="true" |
|
|
|
@opensearchTable="opensearchTable" |
|
|
|
> |
|
|
|
<!-- <template #productItemCode="form"> |
|
|
|
<slot name="productItemCode" :param="form"></slot> |
|
|
|
</template> --> |
|
|
|
<!-- <template #itemCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'itemCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['itemCode']" :placeholder="'请选择物料代码'" @click="opensearchTable('itemCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #productItemCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'productItemCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['productItemCode']" :placeholder="'请选择物料代码'" @click="opensearchTable('productItemCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #componentItemCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'componentItemCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['componentItemCode']" :placeholder="'请选择物料代码'" @click="opensearchTable('componentItemCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #supplierCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'supplierCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['supplierCode']" :placeholder="'请选择供应商代码'" @click="opensearchTable('supplierCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #productionLineCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'productionLineCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['productionLineCode']" :placeholder="'请选择生产线代码'" @click="opensearchTable('productionLineCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #fgLocationCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'fgLocationCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['fgLocationCode']" :placeholder="'请选择库位代码'" @click="opensearchTable('fgLocationCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #defaultWarehouseCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'defaultWarehouseCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['defaultWarehouseCode']" :placeholder="'请选择仓库代码'" @click="opensearchTable('defaultWarehouseCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #defaultLocationCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'defaultLocationCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['defaultLocationCode']" :placeholder="'请选择库位代码'" @click="opensearchTable('defaultLocationCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #customerCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'customerCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['customerCode']" :placeholder="'请选择客户代码'" @click="opensearchTable('customerCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #warehouseCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'warehouseCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['warehouseCode']" :placeholder="'请选择仓库代码'" @click="opensearchTable('warehouseCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #areaCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'areaCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['areaCode']" :placeholder="'请选择库区代码'" @click="opensearchTable('areaCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #locationGroupCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'locationGroupCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['locationGroupCode']" :placeholder="'请选择库位组代码'" @click="opensearchTable('locationGroupCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #rawLocationCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'rawLocationCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['rawLocationCode']" :placeholder="'请选择库位代码'" @click="opensearchTable('rawLocationCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #workshopCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'workshopCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['workshopCode']" :placeholder="'请选择车间代码'" @click="opensearchTable('workshopCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #outAreaCodes="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'outAreaCodes'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['outAreaCodes']" :placeholder="'请选择库区代码'" @click="opensearchTable('outAreaCodes', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #inAreaCodes="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'inAreaCodes'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['inAreaCodes']" :placeholder="'请选择库区代码'" @click="opensearchTable('inAreaCodes', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #customercode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'customercode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['customercode']" :placeholder="'请选择客户代码'" @click="opensearchTable('customercode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #itemcode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'itemcode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['itemcode']" :placeholder="'请选择物料代码'" @click="opensearchTable('itemcode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #asnNumber="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'asnNumber'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['asnNumber']" :placeholder="'请选择发货单号'" @click="opensearchTable('asnNumber', 'asnNumber')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #poNumber="form" v-if="props.searchTableParams?.find((item: any) => (item.formField == 'poNumber'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['poNumber']" :placeholder="'请选择发货单号'" @click="opensearchTable('poNumber', 'poNumber')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #toDockCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'toDockCode'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['toDockCode']" :placeholder="'请选择到月台代码'" @click="opensearchTable('toDockCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #carrierCode="form" v-if="props.searchTableParams?.find((item:any) => (item.formField == 'asnNumber'))"> |
|
|
|
<div class="w-[100%] flex"> |
|
|
|
<el-input v-model="form['carrierCode']" :placeholder="'请选择承运商代码'" @click="opensearchTable('carrierCode', 'code')" /> |
|
|
|
</div> |
|
|
|
</template> --> |
|
|
|
</Form> |
|
|
|
/> |
|
|
|
<div class="table" v-if="isBusiness && formType == 'create'"> |
|
|
|
<TableForm ref="tableFormRef" |
|
|
|
class="w-[100%]" |
|
|
@ -149,7 +35,6 @@ import { SearchTable } from '@/components/SearchTable'; |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import ButtonBase from '@/components/XButton/src/ButtonBase.vue' |
|
|
|
import TableForm from '@/components/TableForm/src/TableForm.vue' |
|
|
|
import { string } from 'vue-types'; |
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
|
// 校验rules |
|
|
|