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

拆包调整

parent b5d3a4cc
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
</DefaultDialog> </DefaultDialog>
</template> </template>
<script> <script>
import Wym from './wym/index.vue'
import { import {
editMixin editMixin
} from 'common' } from 'common'
...@@ -38,27 +39,27 @@ ...@@ -38,27 +39,27 @@
data() { data() {
return { return {
readonly: false, readonly: false,
editColItemList: [ editColItemList: [{
{
label: '唯一码', label: '唯一码',
prop: 'packCode', prop: 'packCode',
span: 12, span: 12,
type: 'AuxInput', type: 'AuxInput',
typeConfig: { typeConfig: {
isRequest: true, isRequest: false,
code: 'PACKID', dynamic: true,
code: true,
component: Wym,
label: 'packCode', label: 'packCode',
transform: { transform: {
value: 'id', value: 'id',
label: 'name' label: 'name'
}, },
give:(row)=>{ give: (row) => {
this.$post('wms/jcsj/pack/query/detail',{ this.form.wlid=row.wlid
mid:row.id this.form.wlxxCode=row.wlxxCode
}).then(res=>{ this.form.zlh=row.zlh
res.data.records[0].bzsl= res.data.records[0].sl this.form.wlph=row.wlph
this.form=res.data.records[0] this.form.bzsl=row.sl
})
} }
} }
}, },
...@@ -69,13 +70,13 @@ ...@@ -69,13 +70,13 @@
type: 'input', type: 'input',
readonly: true readonly: true
}, },
{ // {
label: '物料规格', // label: '物料规格',
prop: 'wlxxGg', // prop: 'wlxxGg',
span: 12, // span: 12,
type: 'input', // type: 'input',
readonly: true // readonly: true
}, // },
{ {
label: '制令号', label: '制令号',
prop: 'zlh', prop: 'zlh',
...@@ -90,13 +91,13 @@ ...@@ -90,13 +91,13 @@
type: 'input', type: 'input',
readonly: true readonly: true
}, },
{ // {
label: '货主', // label: '货主',
prop: 'hzName', // prop: 'hzName',
span: 12, // span: 12,
type: 'input', // type: 'input',
readonly: true // readonly: true
}, // },
{ {
label: '原包装数量', label: '原包装数量',
prop: 'bzsl', prop: 'bzsl',
...@@ -126,7 +127,7 @@ ...@@ -126,7 +127,7 @@
this.$warning('拆分数量不能大于原包装数量') this.$warning('拆分数量不能大于原包装数量')
} else { } else {
let params = { let params = {
hzid:this.form.hzid, hzid: this.form.hzid,
packid: this.form.packid, packid: this.form.packid,
"djly": "M", "djly": "M",
"datas": [this.form].map(item => { "datas": [this.form].map(item => {
......
<template>
<BasePage :mixedQueryParams='$attrs.mixedQueryParams' ref="basePage" :power='power' class="min_full" :config="config">
<template #dialog="ctx">
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</template>
<template #toolbar="ctx">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!-- <el-button @click="demo(ctx.basePage)" size='mini' type="primary">示例按钮</el-button> -->
</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: 'lxyl/kcgl/bzdj/queryPackmxForSplit',
queryUrl:'lxyl/kcgl/bzdj/queryPackmxForSplit',
tableTitle: [
{
title: "唯一码",
field: "packCode",
width: 140
},
// {
// title: "容器码",
// field: "rqCode",
// width: 140
// },
// {
// title: "货主编码",
// field: "hzCode",
// width: 140
// },
// {
// title: "货主",
// field: "hzName",
// width: 140
// },
// {
// title: "状态",
// field: "packZt",
// width: 140,
// transform: {
// "url": "wms/jcsj/rq/init/zt",
// "label": "name",
// "value": "id"
// }
// },
{
title: "库存状态",
field: "packKczt",
width: 140,
transform: {
"url": "wms/jcsj/rq/init/kczt",
"label": "name",
"value": "id"
}
},
// {
// title: "容量状态",
// field: "packRlzt",
// width: 140,
// transform: {
// "url": "wms/jcsj/rq/init/rlzt",
// "label": "name",
// "value": "id"
// }
// },
// {
// title: "运输状态",
// field: "packYszt",
// width: 140,
// transform: {
// "url": "wms/jcsj/rq/init/yszt",
// "label": "name",
// "value": "id"
// }
// },
{
title: "物料编码",
field: "wlxxCode",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 180
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "制令号",
field: "zlh",
width: 180
},
{
title: "数量",
field: "sl",
width: 140
},
// {
// title: "入库单号",
// field: "rktzDjid",
// width: 180
// }
],
queryParams: [
[{
label: '唯一码',
prop: 'packCode',
span: 6,
type: 'input',
},
// {
// "label": "状态",
// "prop": "zt",
// "span": 6,
// "type": "RelSelect",
// "value": "",
// "typeConfig": {
// "src": "wms/jcsj/pack/init/zt",
// "match": {
// "value": "id",
// "label": "name"
// }
// }
// },
// {
// "label": "库存状态",
// "prop": "kczt",
// "span": 6,
// "type": "RelSelect",
// "value": "",
// "typeConfig": {
// "src": "wms/jcsj/pack/init/kczt",
// "match": {
// "value": "id",
// "label": "name"
// }
// }
// },
{
label: '物料批号',
prop: 'wlph',
span: 6,
type: 'input',
},
{
label: '物料',
prop: 'wlid',
span: 6,
required: false,
type: 'AuxInput',
typeConfig: {
give: (row) => {
},
isRequest: false,
code: 'WMSWLXX',
label: 'name',
transform: {
value: 'id',
label: 'name'
}
}
}
],
// [, ]
],
/* 默认启停用 */
showqt: false,
}
}
},
mounted() {
},
methods: {
/* 示例*/
},
components: {
// Edit
}
}
</script>
<style>
</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