Commit 3e165811 authored by 李苏's avatar 李苏 💬

202418调整

parent d947af05
......@@ -93,16 +93,8 @@
field: "wlph",
width: 140
},
{
title: "包装数量",
field: "packmxSl",
width: 140
},
{
title: "装托数量",
field: "ztsl",
width: 140
},
{
title: "制令号",
field: "zlh",
......
<template>
<RelDialog bigTitle detailTable='ZLHBGMX' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp'
:app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<RelDialog bigTitle detailTable='ZLHBGMX' @getFormDetail='getFormDetail' width="70%" :type='type' :editApp='editApp'
:app='app' :buttonApp='buttonApp'>
<el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
<!-- 查询弹框-->
<Cx @save="save" :app="this" v-if='this.showDialog' />
<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"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig'
:rule="item.rule" />
<!-- 额外数据 -->
</el-row>
<div class="editTab">
<editTableForEdit :indexApp='app' :AuxButton='false' ref="editTableForEdit"
:editTableTitle='editTableTitle' v-if="editTableForEdit" :computedRow='computedRow'
:editTableData="formDetail">
<template v-if="type!='view'" #toolbar="ctx">
<el-button @click="add" size='mini' type="primary">新增</el-button>
</template>
</editTableForEdit>
</div>
</el-form>
<!-- editTab数据 -->
</RelDialog>
<Cx @save="save" :app="this" v-if='this.showDialog' />
<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"
:prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule" />
<!-- 额外数据 -->
</el-row>
<div class="editTab">
<editTableForEdit :indexApp='app' :AuxButton='false' ref="editTableForEdit" :editTableTitle='editTableTitle'
v-if="editTableForEdit" :computedRow='computedRow' :editTableData="formDetail">
<template v-if="type!='view'" #toolbar="ctx">
<el-button @click="add" size='mini' type="primary">选择调整明细</el-button>
</template>
</editTableForEdit>
</div>
</el-form>
<!-- editTab数据 -->
</RelDialog>
</template>
<script>
import {
toFixed,
doRkdChange
} from 'common/src/utils/blur.js'
import {
editMixin,
editMixin_expand
} from 'common'
import Cx from './cx.vue'
export default {
mixins: [editMixin, editMixin_expand],
methods: {
add(){
this.showDialog=true
import {
toFixed,
doRkdChange
} from 'common/src/utils/blur.js'
import {
editMixin,
editMixin_expand
} from 'common'
import Cx from './cx.vue'
export default {
mixins: [editMixin, editMixin_expand],
methods: {
add() {
/* */
if(this.form.ckid){
this.showDialog = true
}else{
this.$warning('请选择仓库后再进行操作')
}
},
/* 需要整体row时的回调 */
computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
save(list){
this.showDialog=false
/* 需要整体row时的回调 */
computedRow(row) {
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
save(list) {
this.showDialog = false
this.formDetail.splice(0, this.formDetail.length);
/* 添加熬子表*/
list.forEach(item=>{
item.lydjid=item.id
item.bzsl=item.packmxSl||0
list.forEach(item => {
item.lydjid = item.id
item.bzsl = item.packmxSl || 0
delete item.id
this.formDetail.push(_.cloneDeep(item))
})
}
},
components:{
},
components: {
Cx
},
mounted() {
},
data() {
return {
DialogTitle:'新增',
DialogWidth:'60vw',
showDialog:false,
/* 常规edit数据 */
editColItemList: [{
label: '变更单号',
prop: 'djid',
span: 8,
type: 'input',
},
{
label: '变更日期',
prop: 'ywrq',
span: 8,
type: 'date',
value: new Date().getTime(),
"required": true,
},
{
"label": "SAP变更类型",
"prop": "bglx",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "lxyl/kcgl/zlhbg/init/sapbglx",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '备注',
prop: 'bz',
span: 24,
type: 'input',
},
],
/* 从表编辑数据 */
editTableTitle: [{
title: "序号",
field: "xh",
width: 50,
align: "center"
},
data() {
return {
DialogTitle: '新增',
DialogWidth: '60vw',
showDialog: false,
/* 常规edit数据 */
editColItemList: [{
label: '业务日期',
prop: 'ywrq',
span: 8,
type: 'date',
value: new Date().getTime(),
"required": true,
},
{
title: "物料编码",
field: "wlxxCode",
width: 160
"label": "仓库",
"prop": "ckid",
"span": 6,
"type": "RelSelect",
"value": "",
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"match": {
"value": "id",
"label": "name"
}
}
},
{
title: "物料名称",
field: "wlxxName",
width: 160
},
{
title: "规格",
field: "wlxxGg",
width: 140
},
{
title: "物料批号",
field: "wlph",
width: 200,
label: '负责人',
prop: 'fzrid',
span: 8,
type: 'AuxInput',
typeConfig: {
code: 'USER',
label: 'usersName',
transform: {
value: 'id',
label: 'username'
}
},
"required": true,
},
{
title: "唯一码",
field: "packid",
width: 200,
label: '备注',
prop: 'bz',
span: 24,
type: 'input',
},
],
/* 从表编辑数据 */
editTableTitle: [{
title: "序号",
field: "xh",
width: 50,
align: "center"
},
{
title: "容器",
field: "rqCode",
width: 200,
title: "物料编码",
field: "wlxxCode",
width: 160
},
{
title: "货主",
field: "hzName",
width: 200,
title: "物料名称",
field: "wlxxName",
width: 160
},
{
title: "制令号",
field: "zlh",
width: 200,
title: "规格",
field: "wlxxGg",
width: 140
},
{
title: "变更后制令号",
field: "bghzlh",
width: 200,
title: "物料批号",
field: "wlph",
width: 200,
},
{
title: "包装数量",
field: "bzsl",
width: 200,
title: "唯一码",
field: "packid",
width: 200,
},
{
title: "装托数量",
field: "ztsl",
width: 200,
title: "容器",
field: "rqCode",
width: 200,
},
{
title: "货主",
field: "hzName",
width: 200,
},
{
title: "制令号",
field: "zlh",
width: 200,
},
{
title: "变更后制令号",
field: "bghzlh",
width: 200,
},
{
title: "包装数量",
field: "bzsl",
width: 200,
},
{
title: "装托数量",
field: "ztsl",
width: 200,
}
]
}
}
}
]
}
}
}
</script>
<style lang="scss" scoped>
@import url("~common/src/assets/styles/editDetail.scss");
@import url("~common/src/assets/styles/editDetail.scss");
</style>
......@@ -20,29 +20,24 @@
/* 基本配置*/
url: 'wms/kcgl/kwtz',
tableTitle: [{
title: "变更单号",
title: "单据号",
field: "djid",
width: 140
},
{
title: "变更日期",
title: "业务日期",
field: "ywrq",
fieldType: 'ftDate'
},
{
title: "SAP变更类型",
field: "bglx",
title: "仓库",
field: "ckName",
width: 140
},
{
title: "状态",
field: "zt",
width: 100,
"transform": {
"url": "wms/kcgl/kwtz/init/zt",
"label": "name",
"value": "id"
}
title: "负责人",
field: "fzrName",
width: 140
},
{
title: "备注",
......@@ -60,7 +55,8 @@
}
],
queryParams: [
[{
[
{
label: '日期',
startProp: "start",
endProp: "end",
......@@ -72,7 +68,7 @@
{
"label": "仓库",
"prop": "ckid",
"span": 6,
"span": 8,
"type": "RelSelect",
"value": "",
"typeConfig": {
......@@ -83,17 +79,10 @@
}
}
},
{
label: '变更单号',
prop: 'djid',
span: 6,
type: 'input',
value: ''
},
{
label: '负责人',
prop: 'fzr',
span: 4,
span: 8,
type: 'input',
value: ''
}
......
......@@ -39,8 +39,8 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.30.254:18080/dmg`,
// target: `http://192.168.30.254:28084/erp`,
// target: `http://192.168.30.111:9080/lxyl`,
target: `http://localhost:9080/lxyl`,
target: `http://192.168.30.104:9080/lxyl`,
// target: `http://localhost:9080/lxyl`,
// target:'http://192.168.30.105:9081/erp',
changeOrigin: true,
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