Commit 4db5fb9f authored by 李苏's avatar 李苏 💬

包装调整Ⅲ

parent f37d827e
...@@ -647,7 +647,21 @@ export const powerRoutes = [ ...@@ -647,7 +647,21 @@ export const powerRoutes = [
}, },
name: 'bz', name: 'bz',
path: "bz", path: "bz",
} },
/* 包装作业*/
{
component: 'ccgl/kngl/bzzy/index',
hidden: false,
meta: {
"title": "包装作业",
"icon": "",
"noCache": false,
"link": null,
"mkid": '920070200',
},
name: 'bzzy',
path: "bzzy",
},
] ]
}, },
] ]
......
...@@ -136,8 +136,8 @@ const permission = { ...@@ -136,8 +136,8 @@ const permission = {
newmenus.push(mi) newmenus.push(mi)
} }
}) })
// dynamicRouter([...newCommonList,...newErpList,...newPowerRoutes],asymenus)
res.data=dynamicRouter([...newCommonList,...newErpList,...newPowerRoutes],asymenus)||[...newCommonList,...newErpList,...newPowerRoutes] res.data=dynamicRouter([...newCommonList,...newErpList,...newPowerRoutes],asymenus)||[...newCommonList,...newErpList,...newPowerRoutes]
// res.data=[...newCommonList,...newErpList,...newPowerRoutes]
const sdata = JSON.parse(JSON.stringify(res.data)) const sdata = JSON.parse(JSON.stringify(res.data))
const rdata = JSON.parse(JSON.stringify(res.data)) const rdata = JSON.parse(JSON.stringify(res.data))
const sidebarRoutes = filterAsyncRouter(sdata) const sidebarRoutes = filterAsyncRouter(sdata)
......
...@@ -19,18 +19,54 @@ ...@@ -19,18 +19,54 @@
editColItemList: [ editColItemList: [
{ {
label: '编码', label: '编码',
prop: 'hzcode', prop: 'code',
span: 12, span: 12,
type: 'input', type: 'input',
required:true, required:true,
}, },
{ {
label: '名称', label: '名称',
prop: 'hzname', prop: 'name',
span: 12, span: 12,
type: 'input', type: 'input',
required:true, required:true,
}, },
{
label: '联系人',
prop: 'lxr',
span: 12,
type: 'input',
},
{
label: '电话',
prop: 'tel',
span: 12,
type: 'input',
},
{
label: '邮件',
prop: 'email',
span: 12,
type: 'input',
},
{
label: '传真',
prop: 'fax',
span: 12,
type: 'input',
},
{
label: '地址',
prop: 'address',
span: 12,
type: 'input',
},
{
label: '邮件',
prop: 'email',
span: 12,
type: 'input',
},
{ {
label: '备注', label: '备注',
prop: 'bz', prop: 'bz',
......
...@@ -18,19 +18,48 @@ ...@@ -18,19 +18,48 @@
return { return {
config: { config: {
/* 基本配置*/ /* 基本配置*/
url: 'lxyl/jcsj/uhz', url: 'wms/jcsj/hz',
tableTitle: [{ tableTitle: [{
title: "编码", title: "编码",
field: "hzcode", field: "code",
fieldType: "upper", fieldType: "upper",
width: 140 width: 140
}, },
{ {
title: "名称", title: "名称",
field: "hzname", field: "name",
width: 140 width: 140
}, },
{ {
title: "联系人",
field: "lxr",
width: 140
},
{
title: "电话",
field: "tel",
width: 140
},
{
title: "邮件",
field: "email",
width: 140
},
{
title: "传真",
field: "fax",
width: 140
},
{
title: "地址",
field: "address",
width: 140
},
{
title: "邮件",
field: "email",
width: 140
},{
title: "备注", title: "备注",
field: "bz", field: "bz",
width: 200 width: 200
......
...@@ -12,10 +12,8 @@ ...@@ -12,10 +12,8 @@
<Mx ref="mx" class="full" /> <Mx ref="mx" class="full" />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
...@@ -41,11 +39,8 @@ ...@@ -41,11 +39,8 @@
this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({ this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true setFirstCurrent: true
}) })
}, },
} }
} }
</script> </script>
......
...@@ -12,7 +12,11 @@ ...@@ -12,7 +12,11 @@
</template> </template>
<script> <script>
import wlsx from 'common/src/mixin/wlsx.js'
import wlphsx from 'common/src/mixin/wlphsx.js'
export default { export default {
mixins:[wlphsx,wlsx],
data() { data() {
return { return {
power: { power: {
...@@ -45,11 +49,7 @@ ...@@ -45,11 +49,7 @@
// field: "rqCode", // field: "rqCode",
// width: 140 // width: 140
// }, // },
{
title: "货主",
field: "hzName",
width: 140
},
/* 分割*/ /* 分割*/
{ {
title: "物料编码", title: "物料编码",
...@@ -77,13 +77,13 @@ ...@@ -77,13 +77,13 @@
width: 140 width: 140
}, },
{ {
title: "装包数量", title: "原包装数量",
field: "zbsl", field: "bzsl",
width: 140 width: 140
}, },
{ {
title: "包装数量", title: "装包数量",
field: "bzsl", field: "zbsl",
width: 140 width: 140
}, },
{ {
......
...@@ -32,28 +32,35 @@ ...@@ -32,28 +32,35 @@
} }
}, },
async mounted() { async mounted() {
const {
id
} = _.cloneDeep(this.app.singleItem)
this.$post('wms/kcgl/bzdj/query/detail', {
mid: id
}).then(res => {
let source = _.cloneDeep(res.data.records[0])
source.packmxid = source.id
delete source.id
this.form = source
})
}, },
data() { data() {
return { return {
readonly: false, readonly: false,
editColItemList: [{ editColItemList: [
{
label: '唯一码', label: '唯一码',
prop: 'packCode', prop: 'packCode',
span: 12, span: 12,
type: 'input', type: 'AuxInput',
readonly: true typeConfig: {
isRequest: true,
code: 'PACKID',
label: 'packCode',
transform: {
value: 'id',
label: 'name'
},
give:(row)=>{
this.$post('wms/jcsj/pack/query/detail',{
mid:row.id
}).then(res=>{
res.data.records[0].bzsl= res.data.records[0].sl
this.form=res.data.records[0]
})
}
}
}, },
{ {
label: '物料编码', label: '物料编码',
...@@ -91,8 +98,8 @@ ...@@ -91,8 +98,8 @@
readonly: true readonly: true
}, },
{ {
label: '装包数量', label: '原包装数量',
prop: 'zbsl', prop: 'bzsl',
span: 12, span: 12,
type: 'inputNumber', type: 'inputNumber',
readonly: true readonly: true
...@@ -115,21 +122,22 @@ ...@@ -115,21 +122,22 @@
save() { save() {
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
if (this.form.cfsl > this.form.zbsl) { if (this.form.cfsl > this.form.bzsl) {
this.$warning('拆分数量不能大于装包数量') this.$warning('拆分数量不能大于原包装数量')
} else { } else {
let params = { let params = {
packid: this.app.singleItem.packid, hzid:this.form.hzid,
packid: this.form.packid,
"djly": "M", "djly": "M",
"datas": [this.form].map(item => { "datas": [this.form].map(item => {
let nitem = {} let nitem = {}
nitem.wlid = item.wlid nitem.wlid = item.wlid
nitem.wlph = item.wlph nitem.wlph = item.wlph
nitem.zlh = item.zlh nitem.zlh = item.zlh
nitem.zbsl = item.zbsl nitem.bzsl = item.bzsl
nitem.cfsl = item.cfsl nitem.cfsl = item.cfsl
nitem.hzid = item.hzid nitem.hzid = item.hzid
nitem.packmxid = item.packmxid nitem.packmxid = item.id
return nitem return nitem
}) })
} }
......
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
<template #dialog="ctx"> <template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 --> <!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<zb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='装包'" /> <zb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='装包'" />
<cb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调整'" /> <cb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='拆包'" />
</template> </template>
<template #toolbar="ctx"> <template #toolbar="ctx">
<el-button @click="zb(ctx.basePage)" size='mini' type="primary">装包</el-button> <el-button @click="zb(ctx.basePage)" size='mini' type="primary">装包</el-button>
<el-button @click="cb(ctx.basePage)" size='mini' type="primary">调整</el-button> <el-button @click="cb(ctx.basePage)" size='mini' type="primary">拆包</el-button>
</template> </template>
</BasePage> </BasePage>
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
queryDetail: true, queryDetail: true,
/* 基本配置*/ /* 基本配置*/
url: 'wms/kcgl/bzdj', url: 'wms/kcgl/bzdj',
tableTitle: [{ tableTitle: [
{
title: "类型", title: "类型",
field: "djlx", field: "djlx",
width: 80, width: 80,
...@@ -66,6 +67,11 @@ ...@@ -66,6 +67,11 @@
fieldType: "ftString", fieldType: "ftString",
width: 260 width: 260
}, },
{
title: "货主",
field: "hzName",
width: 140
},
{ {
title: "单据来源", title: "单据来源",
field: "djly", field: "djly",
...@@ -114,7 +120,7 @@ ...@@ -114,7 +120,7 @@
field: "cjsj", field: "cjsj",
fieldType: "ftDateTime", fieldType: "ftDateTime",
hidden: true hidden: true
}, }
], ],
queryParams: [ queryParams: [
[{ [{
...@@ -132,10 +138,9 @@ ...@@ -132,10 +138,9 @@
span: 6, span: 6,
type: 'input', type: 'input',
value: '' value: ''
} },
],
] ]
],
/* 默认启停用 */ /* 默认启停用 */
} }
...@@ -152,14 +157,9 @@ ...@@ -152,14 +157,9 @@
ctx.showDialog=true ctx.showDialog=true
}, },
cb(ctx){ cb(ctx){
if(ctx.singleItem&&ctx.singleItem.id){ ctx.DialogWidth='50vw'
ctx.DialogWidth='50vw' ctx.DialogTitle='拆包'
ctx.DialogTitle='调整' ctx.showDialog=true
ctx.showDialog=true
}else{
this.$warning('请选择一条数据操作')
}
}, },
}, },
components: { components: {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
} }
}, },
async mounted() { async mounted() {
}, },
data() { data() {
...@@ -40,6 +40,22 @@ ...@@ -40,6 +40,22 @@
source:{}, source:{},
readonly:false, readonly:false,
editColItemList: [ editColItemList: [
{
label: '货主',
prop: 'hzid',
span: 12,
type: 'AuxInput',
required: true,
typeConfig: {
isRequest: true,
code: 'HZID',
label: 'hzName',
transform: {
value: 'id',
label: 'name'
}
}
},
{ {
label: '物料', label: '物料',
prop: 'wlid', prop: 'wlid',
...@@ -65,12 +81,14 @@ ...@@ -65,12 +81,14 @@
prop: 'wlxxCode', prop: 'wlxxCode',
span: 12, span: 12,
type: 'input', type: 'input',
readonly:true
}, },
{ {
label: '物料规格', label: '物料规格',
prop: 'wlxxGg', prop: 'wlxxGg',
span: 12, span: 12,
type: 'input', type: 'input',
readonly:true
}, },
{ {
label: '制令号', label: '制令号',
...@@ -93,22 +111,7 @@ ...@@ -93,22 +111,7 @@
type: 'inputNumber', type: 'inputNumber',
required: true, required: true,
}, },
{
label: '货主',
prop: 'hzid',
span: 12,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: true,
code: 'HZID',
label: 'hzName',
transform: {
value: 'id',
label: 'name'
}
}
}
] ]
...@@ -119,6 +122,7 @@ ...@@ -119,6 +122,7 @@
this.$refs['form'].validate((valid) => { this.$refs['form'].validate((valid) => {
if (valid) { if (valid) {
let params={ let params={
hzid:this.form.hzid,
"djly":"M", "djly":"M",
"datas":[this.form] "datas":[this.form]
} }
......
<template>
<div class="outer">
<div class=" higher flex-column">
<!-- 分层-->
<div class="top">
<Top @getRow='topGetRow' ref="top"></Top>
</div>
<div class="bottom flex">
<div class="full" >
<el-tabs class="full" v-model="activeName" >
<el-tab-pane class="full" label="明细" name="first">
<Mx ref="mx" class="full" />
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</template>
<script>
import Top from './top/index.vue'
import Mx from './mx.vue'
export default {
components: {
Top,
Mx
},
data(){
return{
activeName:'first'
}
},
methods: {
topGetRow(row) {
/* dom赋值*/
let mid = row.id
this.$refs.mx.$refs.basePage.queryParams.mid = mid
this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
},
}
}
</script>
<style lang="scss" scoped>
.outer {
overflow: auto;
height: calc(100vh - 84px);
width: 100%;
.top {
width: 100%;
height: 45%;
}
.bottom {
width: 100%;
height: 55%;
.left {
width: 50%;
height: 100%;
}
.right {
width: 50%;
height: 100%;
}
}
}
.higher {
height: 140vh;
}
.flex-column {
display: flex;
flex-direction: column;
}
::v-deep .el-tabs__content{
height: calc(100% - 40px);
}
::v-deep .el-tabs__nav-scroll{
padding-left: 10px;
}
</style>
<template>
<BasePage @getRow='getRow' ref="basePage" :power='power' :toolButton='false' class="min_full"
style="height: 100%;border-top: 0px;" :autoQuery='false' :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
</template>
</BasePage>
</template>
<script>
export default {
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'wms/kcgl/bzdj',
queryUrl: 'wms/kcgl/bzdj/query/detail',
tableTitle: [
// {
// title: "唯一码",
// field: "packCode",
// width: 140
// },
// {
// title: "容器",
// field: "rqCode",
// width: 140
// },
{
title: "货主",
field: "hzName",
width: 140
},
/* 分割*/
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 140
},
{
title: "制令号",
field: "zlh",
width: 140
},
{
title: "装包数量",
field: "zbsl",
width: 140
},
{
title: "包装数量",
field: "bzsl",
width: 140
},
{
title: "拆分数量",
field: "cfsl",
width: 140
}
],
queryParams: [],
}
}
},
methods: {
getRow(val) {
this.$emit('getRow', val)
},
demo(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
console.log(ctx.singleItem)
} else {
this.$warning('请选中一条数据')
}
}
},
components: {
}
}
</script>
<style>
</style>
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<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" />
</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
} from 'common'
export default {
mixins: [editMixin],
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
async mounted() {
const {
id
} = _.cloneDeep(this.app.singleItem)
this.$post('wms/kcgl/bzdj/query/detail', {
mid: id
}).then(res => {
let source = _.cloneDeep(res.data.records[0])
source.packmxid = source.id
delete source.id
this.form = source
})
},
data() {
return {
readonly: false,
editColItemList: [{
label: '唯一码',
prop: 'packCode',
span: 12,
type: 'input',
readonly: true
},
{
label: '物料编码',
prop: 'wlxxCode',
span: 12,
type: 'input',
readonly: true
},
{
label: '物料规格',
prop: 'wlxxGg',
span: 12,
type: 'input',
readonly: true
},
{
label: '制令号',
prop: 'zlh',
span: 12,
type: 'input',
readonly: true
},
{
label: '批号',
prop: 'wlph',
span: 12,
type: 'input',
readonly: true
},
{
label: '货主',
prop: 'hzName',
span: 12,
type: 'input',
readonly: true
},
{
label: '装包数量',
prop: 'zbsl',
span: 12,
type: 'inputNumber',
readonly: true
},
{
label: '拆分数量',
prop: 'cfsl',
span: 12,
type: 'inputNumber',
required: true,
value: 0
},
]
}
},
methods: {
save() {
this.$refs['form'].validate((valid) => {
if (valid) {
if (this.form.cfsl > this.form.zbsl) {
this.$warning('拆分数量不能大于装包数量')
} else {
let params = {
packid: this.app.singleItem.packid,
"djly": "M",
"datas": [this.form].map(item => {
let nitem = {}
nitem.wlid = item.wlid
nitem.wlph = item.wlph
nitem.zlh = item.zlh
nitem.zbsl = item.zbsl
nitem.cfsl = item.cfsl
nitem.hzid = item.hzid
nitem.packmxid = item.packmxid
return nitem
})
}
this.$post('wms/kcgl/bzdj/split', params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.showDialog = false
this.app.refresh()
}
})
}
}
})
}
}
}
</script>
<style scoped>
</style>
<template>
<RelDialog width="50%" :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">
<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" />
</el-row>
</el-form>
</RelDialog>
</template>
<script>
import {
editMixin
} from 'common'
export default {
mixins: [editMixin],
data() {
return {
editColItemList: [
{
label: '编码',
prop: 'code',
span: 12,
type: 'input',
required:true,
},
{
label: '名称',
prop: 'name',
span: 12,
type: 'input',
required:true,
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input'
},
]
}
}
}
</script>
<template>
<BasePage :power='power' @getRow='getRow' class="min_full" style="height: 100%;" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<zb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='装包'" />
<cb :app='ctx.basePage' v-if="ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调整'" />
</template>
<template #toolbar="ctx">
<el-button @click="zb(ctx.basePage)" size='mini' type="primary">装包</el-button>
<el-button @click="cb(ctx.basePage)" size='mini' type="primary">调整</el-button>
</template>
</BasePage>
</template>
<script>
import zb from './zb.vue';
import cb from './cb.vue'
export default {
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
queryDetail: true,
/* 基本配置*/
url: 'wms/kcgl/bzdj',
tableTitle: [{
title: "类型",
field: "djlx",
width: 80,
"transform": {
"url": "wms/kcgl/bzdj/init/djlx",
"label": "name",
"value": "id"
}
},
{
title: "单据号",
field: "djid",
fieldType: "ftString",
width: 160
},
{
title: "业务日期",
field: "ywrq",
fieldType: "ftDate"
},
{
title: "包号",
field: "packCode",
fieldType: "ftString",
width: 260
},
{
title: "单据来源",
field: "djly",
"transform": {
"url": "wms/kcgl/bzdj/init/djly",
"label": "name",
"value": "id"
},
width: 80
},
{
title: "来源单号",
field: "lydjDjid",
fieldType: "ftString",
width: 140
},
{
title: "状态",
field: "zt",
"transform": {
"url": "wms/kcgl/bzdj/init/zt",
"label": "name",
"value": "id"
},
width: 100
},
{
title: "维护人",
field: "whr",
fieldType: "ftString",
width: 120
},
{
title: "维护时间",
field: "whsj",
fieldType: "ftDateTime"
},
{
title: "创建人",
field: "cjr",
fieldType: "ftString",
hidden: true
},
{
title: "创建时间",
field: "cjsj",
fieldType: "ftDateTime",
hidden: true
},
],
queryParams: [
[{
label: '日期',
startProp: "start",
endProp: "end",
span: 12,
type: 'RelDaterangeV2',
startValue: new Date().getTime() - 1000 * 60 * 60 * 24 * 30,
endValue: new Date().getTime(),
},
{
label: '唯一码',
prop: 'packCode',
span: 6,
type: 'input',
value: ''
}
]
],
/* 默认启停用 */
}
}
},
methods: {
getRow(val) {
this.$emit('getRow', val)
},
zb(ctx){
ctx.DialogWidth='50vw'
ctx.DialogTitle='装包'
ctx.showDialog=true
},
cb(ctx){
if(ctx.singleItem&&ctx.singleItem.id){
ctx.DialogWidth='50vw'
ctx.DialogTitle='调整'
ctx.showDialog=true
}else{
this.$warning('请选择一条数据操作')
}
},
},
components: {
zb,cb
}
}
</script>
<style>
</style>
<template>
<DefaultDialog :app='app'>
<div slot="form" style="display: flex;">
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<el-row :gutter="20" :app="this">
<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" />
</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
} from 'common'
export default {
mixins: [editMixin],
props: {
app: {
type: Object,
default: () => {
return {}
}
}
},
async mounted() {
},
data() {
return {
source:{},
readonly:false,
editColItemList: [
{
label: '物料',
prop: 'wlid',
span: 12,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: 'WMSWLXX',
label: 'wlxxName',
transform: {
value: 'id',
label: 'name'
},
give:(row)=>{
this.form.wlxxCode=row.code
this.form.wlxxGg=row.gg
}
}
},
{
label: '物料编码',
prop: 'wlxxCode',
span: 12,
type: 'input',
},
{
label: '物料规格',
prop: 'wlxxGg',
span: 12,
type: 'input',
},
{
label: '制令号',
prop: 'zlh',
span: 12,
type: 'input',
required: true,
},
{
label: '批号',
prop: 'wlph',
span: 12,
type: 'input',
// required: true,
},
{
label: '装包数量',
prop: 'zbsl',
span: 12,
type: 'inputNumber',
required: true,
},
{
label: '货主',
prop: 'hzid',
span: 12,
required: true,
type: 'AuxInput',
typeConfig: {
isRequest: true,
code: 'HZID',
label: 'hzName',
transform: {
value: 'id',
label: 'name'
}
}
}
]
}
},
methods: {
save(){
this.$refs['form'].validate((valid) => {
if (valid) {
let params={
"djly":"M",
"datas":[this.form]
}
this.$post('wms/kcgl/bzdj/install', params).then(res => {
if (res.success) {
this.$success('操作成功')
this.app.showDialog = false
this.app.refresh()
}
})
}
})
}
}
}
</script>
<style scoped>
</style>
...@@ -99,7 +99,34 @@ ...@@ -99,7 +99,34 @@
DialogTitle: '码盘', DialogTitle: '码盘',
DialogWidth: '80vw', DialogWidth: '80vw',
/* 常规edit数据 */ /* 常规edit数据 */
editColItemList: [{ editColItemList: [
/* 入库单 辅助输入 关联入库单*/
{
label: '入库单',
"required": true,
prop: 'lydjid',
span: 8,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: 'WMSRKD',
label: 'showdjid',
transform: {
value: 'id',
label: 'djid'
},
give(row){
for (var key in this.form) {
key != 'id'&& key != 'djid' && key != 'djly' && (() => {
row[key] && (this.form[key] = row[key])
})()
}
}
},
},
{
label: '码盘单号', label: '码盘单号',
prop: 'djid', prop: 'djid',
span: 8, span: 8,
...@@ -174,57 +201,34 @@ ...@@ -174,57 +201,34 @@
}, },
"required": true, "required": true,
}, },
{
label: '备注',
prop: 'bz',
span: 16,
type: 'input',
},
{ {
label: '开始时间', label: '开始时间',
"required": true,
prop: 'kssj', prop: 'kssj',
span: 8, span: 8,
type: 'datetime' type: 'datetime',
readonly:true
}, },
{ {
label: '结束时间', label: '结束时间',
"required": true,
prop: 'jssj', prop: 'jssj',
span: 8, span: 8,
type: 'datetime' type: 'datetime',
readonly:true
}, },
{ {
label: '耗时', label: '耗时',
prop: 'hs', prop: 'hs',
span: 8, span: 8,
type: 'input', type: 'input',
}, readonly:true
/* 入库单 辅助输入 关联入库单*/
{
label: '入库单',
"required": true,
prop: 'lydjid',
span: 8,
type: 'AuxInput',
typeConfig: {
isRequest: false,
code: 'WMSRKD',
label: 'showdjid',
transform: {
value: 'id',
label: 'djid'
},
give(row){
for (var key in this.form) {
key != 'id'&& key != 'djid' && key != 'djly' && (() => {
row[key] && (this.form[key] = row[key])
})()
}
}
},
},
{
label: '备注',
prop: 'bz',
span: 16,
type: 'input',
}, },
......
...@@ -62,9 +62,11 @@ ...@@ -62,9 +62,11 @@
prop: 'flid', prop: 'flid',
span: 12, span: 12,
type: 'RelSelect', type: 'RelSelect',
required: true,
typeConfig: { typeConfig: {
src: "jcsj/wlxx/init/wlfl" src: "jcsj/wlxx/init/wlfl"
} },
value:this.app.queryParams.flbm=='root'?'':this.app.queryParams.flbm
}, },
{ {
label: '规格', label: '规格',
...@@ -89,8 +91,9 @@ ...@@ -89,8 +91,9 @@
span: 12, span: 12,
type: 'RelSelect', type: 'RelSelect',
typeConfig: { typeConfig: {
src: "jcsj/jldw/query" src: "jcsj/jldw/query",
}, hasValue:false
}
}, },
{ {
......
This diff is collapsed.
...@@ -39,7 +39,7 @@ module.exports = { ...@@ -39,7 +39,7 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: { [process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.30.254:18080/dmg`, // target: `http://192.168.30.254:18080/dmg`,
// target: `http://192.168.30.254:28084/erp`, // target: `http://192.168.30.254:28084/erp`,
target: `http://localhost:9080/lxyl`, target: `http://192.168.30.103:9080/lxyl`,
// target:'http://192.168.30.105:9081/erp', // target:'http://192.168.30.105:9081/erp',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
......
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