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

拣货单 新增=》调拨 添加仓库

parent 4ab729fc
<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": 24,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "lxyl/common/ck/queryCkidByCktzid",
"match": {
"value": "id",
"label": "name"
},
params:{
cktzid:this.app.form.lydjid
},
change: (row) => {
this.form.hzName=row.hzName
this.form.hzid=row.hzid
}
}
},
// {
// label: '退货单号',
// prop: 'ddh',
// span: 24,
// type: 'input',
// value: '',
// }
]
}
},
methods: {
save() {
this.$refs['form'].validate((valid) => {
if (valid) {
this.app.showDialog = false
this.app.DialogWidth='80vw'
this.$emit('save',this.form)
}
})
}
}
}
</script>
<style scoped>
::v-deep .el-icon-close{
/* display: none; */
}
</style>
......@@ -6,6 +6,8 @@
<xzckd @save='xzckdSave' :app='this' v-if="showDialog&&DialogTitle=='选择出库单'" />
<xzdbckd @save='xzdbckdSave' :app='this' v-if="showDialog&&DialogTitle=='选择调拨出库单'" />
<Tbsapck @save='tbsapckdSave' :app='this' v-if="showDialog&&DialogTitle=='选择仓库'" />
<Dbtbsapck @save='dbtbsapckdSave' :app='this' v-if="showDialog&&DialogTitle=='调拨出库选择仓库'" />
<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"
......@@ -39,6 +41,7 @@
import xzckd from './xzckd.vue'
import xzdbckd from './xzdbckd.vue'
import Tbsapck from './tbsapck.vue'
import Dbtbsapck from './dbtbsapck.vue'
import {
toFixed,
digit,
......@@ -54,7 +57,8 @@
components: {
xzckd,
xzdbckd,
Tbsapck
Tbsapck,
Dbtbsapck
},
methods: {
/* 需要整体row时的回调 */
......@@ -140,6 +144,14 @@
delete item.zt
this.formDetail.push(_.cloneDeep(item))
})
/* 回填后重新选择仓库*/
this.$nextTick(()=>{
this.showDialog=true
this.DialogTitle='调拨出库选择仓库'
this.DialogWidth='30vw'
})
},
xzckd() {
this.DialogTitle = '选择出库单'
......@@ -157,6 +169,12 @@
this.form.hzid=val.hzid
this.form.hzName=val.hzName
},
dbtbsapckdSave(val){
/* 赋值回调*/
this.form.ckid=val.ckid
this.form.hzid=val.hzid
this.form.hzName=val.hzName
},
save() {},
/* 选择库存回调 */
savekc(list) {
......@@ -204,7 +222,7 @@
"required": true,
},
{
// readonly: false,
readonly: false,
"label": "仓库",
"prop": "ckid",
"span": 8,
......
......@@ -53,13 +53,13 @@
"value": "",
"required": true,
"typeConfig": {
"src": "lxyl/common/ck/queryCkidByCktzid",
"src": "lxyl/common/ck/queryCkidByDbckid",
"match": {
"value": "id",
"label": "name"
},
params:{
cktzid:this.app.form.lydjid
dbckid:this.app.form.lydjid
},
change: (row) => {
this.form.hzName=row.hzName
......
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