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

4.1上午字段调整

parent 599c4735
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
let length = this.formDetail.length let length = this.formDetail.length
this.formDetail.splice(0, length) this.formDetail.splice(0, length)
list.forEach(item => { list.forEach(item => {
item.bcsl = item.kcsl item.bcsl = item.jysl
item.lydjid = item.id item.lydjid = item.id
delete item.id delete item.id
this.formDetail.push(_.cloneDeep(item)) this.formDetail.push(_.cloneDeep(item))
...@@ -245,17 +245,20 @@ ...@@ -245,17 +245,20 @@
{ {
title: "调拨数量", title: "调拨数量",
field: "bcsl", field: "bcsl",
allowEdit: false, allowEdit: true,
type: 'inputNumber', type: 'inputNumber',
width: 200, width: 200,
blur: toFixed(null), blur: toFixed(null),
}, },
/* 不可编辑*/ /* 不可编辑*/
// { {
// title: "出库数量", title: "检验数量",
// field: "cksl", field: "jysl",
// width: 200, allowEdit: false,
// }, type: 'inputNumber',
width: 200,
blur: toFixed(null),
},
{ {
title: "物料批号", title: "物料批号",
field: "wlph", field: "wlph",
......
...@@ -90,11 +90,11 @@ ...@@ -90,11 +90,11 @@
field: "swlxName", field: "swlxName",
width: 140 width: 140
}, },
{ // {
title: "货主", // title: "货主",
field: "hzName", // field: "hzName",
width: 140 // width: 140
}, // },
// { // {
// title: "单据来源", // title: "单据来源",
......
...@@ -84,7 +84,11 @@ ...@@ -84,7 +84,11 @@
title: "容器", title: "容器",
field: "rqCode", field: "rqCode",
width: 160, width: 160,
},
{
title: "检验数量",
field: "jysl",
width: 140,
}, },
{ {
title: "唯一码", title: "唯一码",
...@@ -117,6 +121,7 @@ ...@@ -117,6 +121,7 @@
field: "wlph", field: "wlph",
width: 140, width: 140,
}, },
{ {
title: "库位名称", title: "库位名称",
field: "wlxxName", field: "wlxxName",
......
...@@ -143,6 +143,7 @@ ...@@ -143,6 +143,7 @@
this.form.sjrid = res.data.records.id this.form.sjrid = res.data.records.id
} }
}) })
/* 回填后重新选择仓库*/
}, },
xzrkqd() { xzrkqd() {
this.DialogTitle = '选择入库单' this.DialogTitle = '选择入库单'
......
<template>
<DefaultDialog :app='app'>
<div slot="form" style="">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<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"
v-if="(item.show==false)?false:true" :prop='item.prop' :key="item.prop" :type="item.type"
:typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
</el-form>
</div>
<div slot="reFooter" class="refooter">
<span slot="footer" class="dialog-footer">
<el-button @click="app.showDialog=false">取 消</el-button>
<el-button type="primary" @click="save()">确 定</el-button>
</span>
</div>
</DefaultDialog>
</template>
<script>
import {
editMixin,
editMixin_expand
} from 'common'
export default {
mixins: [editMixin, editMixin_expand],
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
async mounted() {
/* 初始化数据 */
},
data() {
return {
readonly: false,
editColItemList: [
{
"label": "仓库",
"prop": "ckid",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "lxyl/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
// {
// label: '退货单号',
// prop: 'ddh',
// span: 24,
// type: 'input',
// value: '',
// }
]
}
},
methods: {
save() {
this.$refs['form'].validate((valid) => {
if (valid) {
this.isLoading = true
this.$post('lxyl/rkgl/rktz/sync/xsthd', this.form).then(res => {
if (res.success) {
this.isLoading = false
this.$success('操作成功')
this.app.showDialog = false
this.app.$refs.TablePager.refresh()
}
}).finally(res => {
this.isLoading = false
})
}
})
}
}
}
</script>
<style scoped>
</style>
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