Commit abd8b749 authored by 李苏's avatar 李苏 💬

add some Missing fields,

other issues will be  discussed and adjust later
parent 1453c9b9
<template>
<RelDialog bigTitle detailTable='CKTZMX' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp'
<RelDialog bigTitle detailTable='CKTZMX' @getForm='getForm' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp'
:app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this" class="editRow">
......@@ -45,6 +45,9 @@
export default {
mixins: [editMixin, editMixin_expand],
methods: {
getForm(val){
val.djly='M'
},
/* 需要整体row时的回调 */
computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate()
......
......@@ -88,6 +88,11 @@
field: "hzName",
width: 140
},
{
title: "拣货数量",
field: "jhsl",
width: 140
},
// {
// title: "单据来源",
// field: "djly",
......@@ -98,7 +103,7 @@
// "value": "id"
// }
// },
// {
// title: "单据来源",
// field: "djly",
......
......@@ -85,9 +85,14 @@
},
{
title: "数量",
field: "ztsl",
width: 140,
}
field: "packmxSl",
width: 80,
},
{
title: "装拖数量",
field: "ztsl",
width: 80,
}
],
queryParams: [],
/* 默认启停用 */
......
......@@ -118,6 +118,13 @@
type: 'input',
value: ''
},
{
label: '单据来源',
prop: 'djly',
span: 5,
type: 'input',
value: ''
},
{
label: '创建时间',
startProp: "start",
......
......@@ -53,6 +53,17 @@
// this.form.sjrid=this.userid
},
methods: {
getFormDetail(){
if(this.type!='add'){
/* 1.@getFormDetail='getFormDetail' 存在触发时生效 */
/* 2.适配 EditTableForEdit 组件*/
/* 当编辑页面打开不是add时查询从表 主动赋值 */
this.$refs.editTableForEdit.editTableConfig['editTableData']=this.formDetail||[]
}
if(this.type=='copy'){
this.formDetail.forEach(item=>item.kwid='')
}
},
xzrkqdSave(obj){
let {list,row}=obj
this.form.swlxid=row.swlxid
......
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