Commit 8311e188 authored by 李苏's avatar 李苏 💬

字段

parent db660f63
...@@ -5,15 +5,14 @@ ...@@ -5,15 +5,14 @@
<el-row :gutter="20" :app="this" class="editRow"> <el-row :gutter="20" :app="this" class="editRow">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false " <EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
:rule="item.rule" />
<!-- 额外数据 --> <!-- 额外数据 -->
</el-row> </el-row>
<div class="editTab"> <div class="editTab">
<editTableForEdit :indexApp='app' :type='type' @save='save' ref="editTableForEdit" <editTableForEdit :indexApp='app' :type='type' @save='save' ref="editTableForEdit"
:editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow' :editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail" > :editTableData="formDetail">
<!-- <template v-if="type!='view'" #toolbar="ctx"> <!-- <template v-if="type!='view'" #toolbar="ctx">
<AuxButton :queryParams="{ <AuxButton :queryParams="{
ckid:form.ckid ckid:form.ckid
...@@ -75,8 +74,8 @@ ...@@ -75,8 +74,8 @@
}) })
}, },
/* 选择库存回调 */ /* 选择库存回调 */
savekc(list){ savekc(list) {
list.forEach( item => { list.forEach(item => {
// 转换并且push // 转换并且push
delete item.id delete item.id
this.formDetail.push(_.cloneDeep(item)) this.formDetail.push(_.cloneDeep(item))
...@@ -85,8 +84,8 @@ ...@@ -85,8 +84,8 @@
} }
}, },
mounted() { mounted() {
this.form.llrName=this.username this.form.llrName = this.username
this.form.llrid=this.userid this.form.llrid = this.userid
}, },
data() { data() {
return { return {
...@@ -166,12 +165,15 @@ ...@@ -166,12 +165,15 @@
label: '货主', label: '货主',
prop: 'hzid', prop: 'hzid',
span: 8, span: 8,
type: 'RelSelect', required: true,
"typeConfig": { type: 'AuxInput',
"src": "jcsj/common/hz/query", typeConfig: {
"match": { isRequest: true,
"value": "id", code: 'HZID',
"label": "name" label: 'hzName',
transform: {
value: 'id',
label: 'name'
} }
} }
}, },
......
...@@ -145,15 +145,17 @@ ...@@ -145,15 +145,17 @@
label: '货主', label: '货主',
prop: 'hzid', prop: 'hzid',
span: 8, span: 8,
type: 'RelSelect', required: true,
"typeConfig": { type: 'AuxInput',
"src": "jcsj/common/hz/query", typeConfig: {
"match": { isRequest: true,
"value": "id", code: 'HZID',
"label": "name" label: 'hzName',
transform: {
value: 'id',
label: 'name'
} }
} }
}, },
{ {
label: '备注', label: '备注',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment