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

add some Missing fields,

other issues will be  discussed and adjust later
parent 1453c9b9
<template> <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'> :app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules"> <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this" class="editRow"> <el-row :gutter="20" :app="this" class="editRow">
...@@ -45,6 +45,9 @@ ...@@ -45,6 +45,9 @@
export default { export default {
mixins: [editMixin, editMixin_expand], mixins: [editMixin, editMixin_expand],
methods: { methods: {
getForm(val){
val.djly='M'
},
/* 需要整体row时的回调 */ /* 需要整体row时的回调 */
computedRow(row) { computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate() // this.$refs.editTableForEdit.$forceUpdate()
......
...@@ -88,6 +88,11 @@ ...@@ -88,6 +88,11 @@
field: "hzName", field: "hzName",
width: 140 width: 140
}, },
{
title: "拣货数量",
field: "jhsl",
width: 140
},
// { // {
// title: "单据来源", // title: "单据来源",
// field: "djly", // field: "djly",
......
...@@ -85,8 +85,13 @@ ...@@ -85,8 +85,13 @@
}, },
{ {
title: "数量", title: "数量",
field: "packmxSl",
width: 80,
},
{
title: "装拖数量",
field: "ztsl", field: "ztsl",
width: 140, width: 80,
} }
], ],
queryParams: [], queryParams: [],
......
...@@ -118,6 +118,13 @@ ...@@ -118,6 +118,13 @@
type: 'input', type: 'input',
value: '' value: ''
}, },
{
label: '单据来源',
prop: 'djly',
span: 5,
type: 'input',
value: ''
},
{ {
label: '创建时间', label: '创建时间',
startProp: "start", startProp: "start",
......
...@@ -53,6 +53,17 @@ ...@@ -53,6 +53,17 @@
// this.form.sjrid=this.userid // this.form.sjrid=this.userid
}, },
methods: { 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){ xzrkqdSave(obj){
let {list,row}=obj let {list,row}=obj
this.form.swlxid=row.swlxid 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