将单据中仓库的新增和批量选择挪动位置

This commit is contained in:
季圣华
2023-05-18 23:31:52 +08:00
parent 4099262313
commit 084c047b6c
13 changed files with 97 additions and 129 deletions

View File

@@ -60,7 +60,10 @@
class="td"
:key="col.key"
:style="buildTdStyle(col)">
<span style="padding: 0 5px;">{{ col.title }}</span>
<span style="padding: 0 5px;">
{{ col.title }}
<slot name="depotBatchSet" v-if="col.key === 'depotId'" :target="getVM()"/>
</span>
</div>
</template>
</div>
@@ -208,7 +211,10 @@
@blur="(v)=>handleBlurSearch(v,id,row,col)"
allowClear
>
<div slot="dropdownRender" slot-scope="menu">
<v-nodes :vnodes="menu" />
<slot name="depotAdd" v-if="col.key === 'depotId'" :target="getVM()"/>
</div>
<!--<template v-for="(opt,optKey) in col.options">-->
<!--<a-select-option :value="opt.value" :key="optKey">{{ opt.title }}</a-select-option>-->
<!--</template>-->
@@ -779,7 +785,13 @@
export default {
name: 'JEditableTable',
components: { JDate, Draggable, JInputPop, JFilePop, JSelectList },
components: {
JDate, Draggable, JInputPop, JFilePop, JSelectList,
VNodes: {
functional: true,
render: (h, ctx) => ctx.props.vnodes,
}
},
provide() {
return {
parentIsJEditableTable: true,