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

1

parent 3ced8ec4
......@@ -8,12 +8,9 @@
<div class="bottom flex">
<div class="full" >
<el-tabs class="full" v-model="activeName" >
<el-tab-pane class="full" label="入库单明细" name="first">
<el-tab-pane class="full" label="明细" name="first">
<Mx ref="mx" class="full" />
</el-tab-pane>
<el-tab-pane class="full" label="入库清单" name="second">
<Rkqd ref="rkqd" class="full" />
</el-tab-pane>
</el-tabs>
</div>
......@@ -26,12 +23,11 @@
<script>
import Top from './top/index.vue'
import Mx from './mx.vue'
import Rkqd from './rkqd.vue'
export default {
components: {
Top,
Mx,
Rkqd
},
data(){
return{
......@@ -46,10 +42,7 @@
this.$refs.mx.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
this.$refs.rkqd.$refs.basePage.queryParams.mid = mid
this.$refs.rkqd.$refs.basePage.$refs['TablePager'].pageQuery({
setFirstCurrent: true
})
},
......
<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">
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</template>
</BasePage>
</template>
<script>
export default {
mounted() {
},
data() {
return {
power: {
add: false,
copy: false,
/* 手动控制删除 */
delButton: false,
/* 手动控制编辑按钮权限 */
editButton: false,
/* 是否渲染右侧操作按钮 */
operateButtons: false,
/* 是否开启工作流按钮 */
workFlow: false,
/* 表格开启选择,以及记住选择 */
showSelection: false,
saveSelected: false
},
config: {
/* 基本配置*/
url: 'wms/rkgl/rktz',
queryUrl: 'wms/rkgl/rktz/query/rkqd',
tableTitle: [{
title: "物料编码",
field: "wlxxCode",
fieldType: "upper",
width: 140
},
{
title: "物料名称",
field: "wlxxName",
width: 140
},
{
title: "物料规格",
field: "wlxxGg",
width: 140
},
{
title: "制令号",
field: "zlh",
width: 120,
},
{
title: "物料批号",
field: "wlph",
width: 140
},
{
title: "应收数量",
field: "yssl",
width: 100,
},
{
title: "唯一码",
field: "packCode",
width: 240,
},
{
title: "容器",
field: "rqCode",
width: 100,
},
{
title: "状态",
field: "zt",
width: 100,
"transform": {
"url": "wms/rkgl/dbrk/init/zt",
"label": "name",
"value": "id"
}
}
],
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>
......@@ -22,13 +22,6 @@
</editTableForEdit>
</div>
<el-row :gutter="20" :app="this" class="editRow bottomInfo">
<EditColItem :required="item.required||false" :readonly="item.readonly?true:false "
v-for="(item,index) in editColItemList2 " :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-row class="bottomInfo" :gutter="20">
<el-col class="center" :span="12">
创建人:{{
......@@ -79,56 +72,21 @@
}
},
mounted() {
this.$nextTick(()=>{
this.form.whr=this.username
this.form.rkr=this.username
})
},
data() {
return {
editColItemList2:[
{
"label": "状态",
"prop": "zt",
"span": 8,
"type": "RelSelect",
"value": "",
readonly:true,
"typeConfig": {
"src": "wms/rkgl/rktz/init/zt",
"match": {
"value": "id",
"label": "name"
}
}
},
{
label: '维护人',
prop: 'whr',
type: 'input',
span: 8,
readonly:true,
},
{
label: '维护时间',
prop: 'whsj',
span: 8,
type: 'datetime',
readonly:true,
value:new Date().getTime()
}
],
/* 常规edit数据 */
editColItemList: [{
label: '入库单号',
label: '变更单号',
prop: 'djid',
span: 8,
type: 'input',
},
{
label: '入库日期',
label: '变更日期',
prop: 'ywrq',
span: 8,
type: 'date',
......@@ -136,57 +94,20 @@
"required": true,
},
{
"label": "仓库",
"prop": "ckid",
"label": "SAP变更类型",
"prop": "bglx",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
"src": "lxyl/kcgl/zlhbg/init/sapbglx",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "事务类型",
"prop": "swlxid",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "wms/rkgl/rktz/init/swlx",
"match": {
"value": "id",
"label": "name"
}
}
},
{
"label": "部门",
"prop": "bmid",
"span": 8,
"type": "RelSelect",
"value": "",
"required": true,
"typeConfig": {
"src": "jcsj/common/bm/query",
"match": {
"value": "id",
"label": "bmmc"
}
}
},
{
label: '入库人',
prop: 'rkr',
span: 8,
type: 'input',
"required": true,
},
{
label: '备注',
prop: 'bz',
......
......@@ -151,6 +151,13 @@
editColItemList: [
/* 入库单 辅助输入 关联入库单*/
{
// readonly:()=>{
// if(this.formDetail.length==0){
// return false
// }else{
// return true
// }
// },
label: '入库单',
"required": true,
prop: 'lydjid',
......@@ -166,7 +173,7 @@
},
give(row){
for (var key in this.form) {
key != 'id'&& key != 'djid' && key != 'djly' && (() => {
key != 'ywrq'&&key != 'zt'&&key != 'id'&& key != 'djid' && key != 'djly' && (() => {
row[key] && (this.form[key] = row[key])
})()
}
......@@ -193,6 +200,7 @@
"span": 8,
"type": "RelSelect",
"value": "",
readonly:true,
"required": true,
"typeConfig": {
"src": "jcsj/common/ck/queryCkid",
......@@ -204,6 +212,7 @@
},
{
readonly:true,
"label": "事务类型",
"prop": "swlxid",
"span": 8,
......@@ -219,6 +228,7 @@
}
},
{
readonly:true,
"label": "部门",
"prop": "bmid",
"span": 8,
......
......@@ -28,7 +28,7 @@
label:'packCode',
value:'packid'
}" :queryParams='{
id:app.app.singleItem.id
id:form.lydjid
}' code='WMSBZGLMXMPZY' :form='form' />
</div>
</el-col>
......
......@@ -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.111: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