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

字段

parent db660f63
......@@ -5,15 +5,14 @@
<el-row :gutter="20" :app="this" class="editRow">
<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"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig'
:rule="item.rule" />
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
<div class="editTab">
<editTableForEdit :indexApp='app' :type='type' @save='save' ref="editTableForEdit"
:editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail" >
:editTableData="formDetail">
<!-- <template v-if="type!='view'" #toolbar="ctx">
<AuxButton :queryParams="{
ckid:form.ckid
......@@ -75,8 +74,8 @@
})
},
/* 选择库存回调 */
savekc(list){
list.forEach( item => {
savekc(list) {
list.forEach(item => {
// 转换并且push
delete item.id
this.formDetail.push(_.cloneDeep(item))
......@@ -85,8 +84,8 @@
}
},
mounted() {
this.form.llrName=this.username
this.form.llrid=this.userid
this.form.llrName = this.username
this.form.llrid = this.userid
},
data() {
return {
......@@ -166,12 +165,15 @@
label: '货主',
prop: 'hzid',
span: 8,
type: 'RelSelect',
"typeConfig": {
"src": "jcsj/common/hz/query",
"match": {
"value": "id",
"label": "name"
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: true,
code: 'HZID',
label: 'hzName',
transform: {
value: 'id',
label: 'name'
}
}
},
......
......@@ -145,15 +145,17 @@
label: '货主',
prop: 'hzid',
span: 8,
type: 'RelSelect',
"typeConfig": {
"src": "jcsj/common/hz/query",
"match": {
"value": "id",
"label": "name"
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: true,
code: 'HZID',
label: 'hzName',
transform: {
value: 'id',
label: 'name'
}
}
},
{
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