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

调整

parent 96dec61d
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
{ {
"label": "仓库", "label": "仓库",
"prop": "ckid", "prop": "ckid",
"span": 4, "span": 8,
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
{ {
"label": "库区", "label": "库区",
"prop": "kqid", "prop": "kqid",
"span": 4, "span": 8,
"type": "RelSelect", "type": "RelSelect",
"value": "", "value": "",
"typeConfig": { "typeConfig": {
...@@ -156,42 +156,45 @@ ...@@ -156,42 +156,45 @@
} }
} }
}, },
{
label: '单据编号',
prop: 'djid',
span: 4, ],[
type: 'input', {
value: '' label: '单据编号',
}, prop: 'djid',
span: 8,
type: 'input',
value: ''
},
{ {
label: '货主', label: '货主',
prop: 'hzInfo', prop: 'hzInfo',
span: 4, span: 8,
type: 'input', type: 'input',
value: '' value: ''
} },
],[
{ {
label: '状态', label: '状态',
prop: 'zt', prop: 'zt',
span: 4, span: 8,
type: 'RelSelect', type: 'RelSelect',
typeConfig: { typeConfig: {
src: 'wms/ckgl/jhtz/init/zt' src: 'wms/ckgl/jhtz/init/zt'
} }
}, },
],[
{ {
label: '事务类型', label: '事务类型',
prop: 'swlxid', prop: 'swlxid',
span: 4, span: 8,
type: 'RelSelect', type: 'RelSelect',
typeConfig: { typeConfig: {
src: 'wms/ckgl/jhtz/init/swlx' src: 'wms/ckgl/jhtz/init/swlx'
} }
} }
] ]
], ],
/* 默认启停用 */ /* 默认启停用 */
......
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
<div class="tzqdItem text-ellipsis " > <div class="tzqdItem text-ellipsis " >
物料编码:{{app.singleItem.wlxxCode}} 物料编码:{{app.singleItem.wlxxCode}}
</div> </div>
</div>
<div style="height: 50px;width: 100%;display: flex;" >
<div class="tzqdItem text-ellipsis " > <div class="tzqdItem text-ellipsis " >
物料规格:{{app.singleItem.wlxxGg}} 物料规格:{{app.singleItem.wlxxGg}}
</div> </div>
...@@ -21,7 +25,7 @@ ...@@ -21,7 +25,7 @@
<div style="display: flex;height: 60vh;" > <div style="display: flex;height: 60vh;" >
<!-- 左表数据--> <!-- 左表数据-->
<div class="tzqdLeft"> <div class="tzqdLeft">
<BasePage @pageQueryFinally.once='pageQueryFinally' ref="basePage" @getRow='getRow' :autoQuery='false' :power="{ <BasePage :showPagination='false' @pageQueryFinally.once='pageQueryFinally' ref="basePage" @getRow='getRow' :autoQuery='false' :power="{
add: false, add: false,
copy: false, copy: false,
/* 手动控制删除 */ /* 手动控制删除 */
...@@ -42,7 +46,7 @@ ...@@ -42,7 +46,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button style="text-align: center;color: cornflowerblue;width: 100%;" <el-button style="text-align: center;color: cornflowerblue;width: 100%;"
@click.native.prevent="cz(scope.$index,scope,scope.row)" type="text" size="small"> @click.native.prevent="cz(scope.$index,scope,scope.row)" type="text" size="small">
<i class="el-icon-edit"></i>操作 <i class="el-icon-edit"></i>调整
</el-button> </el-button>
</template> </template>
...@@ -178,6 +182,29 @@ ...@@ -178,6 +182,29 @@
field: "kcsl", field: "kcsl",
width: 140 width: 140
}, },
{
title: "已分配数量",
field: "yfpsl",
width: 140,
formatter(a,b,v){
if(!v){
return 0
}else{
return v
}
}
},
{
label: '容器',
prop: 'rqCode',
width: 100,
},
{
title: "唯一码",
field: "packCode",
width: 140
},
{ {
title: "制令号", title: "制令号",
field: "zlh", field: "zlh",
...@@ -193,20 +220,6 @@ ...@@ -193,20 +220,6 @@
field: "hzName", field: "hzName",
width: 140 width: 140
}, },
{
title: "唯一码",
field: "packCode",
width: 140
},
{
title: "维护人",
field: "whr"
},
{
title: "维护时间",
field: "whsj",
fieldType: 'ftDateTime'
}
], ],
queryParams: [ queryParams: [
...@@ -240,6 +253,7 @@ ...@@ -240,6 +253,7 @@
if (ritem.packid == item.packid) { if (ritem.packid == item.packid) {
/* 减少初始数量*/ /* 减少初始数量*/
ritem.kcsl=ritem.kcsl-item.jhsl ritem.kcsl=ritem.kcsl-item.jhsl
ritem.yfpsl=item.jhsl
} }
}) })
}) })
...@@ -308,6 +322,7 @@ ...@@ -308,6 +322,7 @@
/* 数量记录为新*/ /* 数量记录为新*/
this.sljl[item.packid] = n this.sljl[item.packid] = n
item.kcsl = item.kcsl + slc item.kcsl = item.kcsl + slc
item.yfpsl=n
}, },
getRow(val) { getRow(val) {
...@@ -329,6 +344,11 @@ ...@@ -329,6 +344,11 @@
this.editTableConfig.editTableData.splice(index, 1) this.editTableConfig.editTableData.splice(index, 1)
}, },
cz(a, b, row) { cz(a, b, row) {
if(this.app.singleItem.zt!='I'){
this.$warning('非初始状态不允许调整')
return
}
/* 根据packid判定是否添加清单数据*/ /* 根据packid判定是否添加清单数据*/
let packid = row.packid let packid = row.packid
let hasrow = false let hasrow = false
...@@ -374,6 +394,7 @@ ...@@ -374,6 +394,7 @@
height: 100%; height: 100%;
} }
.text-ellipsis { .text-ellipsis {
padding-right: 10px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
......
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