基础信息
This commit is contained in:
1 parent
b46836af93
commit
4a5aa7d476
10 files changed
+748
No files matched your search
@@ -0,0 +1,119 @@
|
||||
<style lang='scss'>
|
||||
.item{
|
||||
.item__input{
|
||||
display: none;
|
||||
width: 80px;
|
||||
/* 调整elementUI中样式 如果不需要调整请忽略 */
|
||||
.el-input__inner{
|
||||
height: 35px!important;
|
||||
}
|
||||
/* 调整elementUI中样式 如果不需要调整请忽略 */
|
||||
.el-input__suffix{
|
||||
i{
|
||||
font-size: 12px !important;
|
||||
line-height: 26px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.item__txt{
|
||||
box-sizing: border-box;
|
||||
line-height: 24px;
|
||||
padding: 0 9px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<el-row id="XWMSPTH">
|
||||
<el-table :data="billTable" height="750" stripe border
|
||||
style="width: 100%"
|
||||
size="small"
|
||||
@@cell-mouse-enter="handleCellEnter"
|
||||
@@cell-mouse-leave="handleCellLeave">
|
||||
<el-table-column type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column label="地点" align="center" prop="POHFCY_0">
|
||||
<div class="item" slot-scope="scope">
|
||||
<el-input class="item__input" v-model="scope.row.POHFCY_0" placeholder="请输入内容"></el-input>
|
||||
<div class="item__txt">{{scope.row.POHFCY_0}}</div>
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="订单日期" width="100" align="center" prop="ORDDAT_0"></el-table-column>
|
||||
@* <el-table-column label="供应商" align="center" prop="BPSNUM_0"></el-table-column> *@
|
||||
<el-table-column label="供应商名称" width="150" align="center" prop="BPRNAM_0" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="订单号" width="180" align="center" prop="POHNUM_0"></el-table-column>
|
||||
<el-table-column label="行号" width="100" align="center" prop="POPLIN_0"></el-table-column>
|
||||
<el-table-column label="项目号" width="150" align="center" prop="PJT_0"></el-table-column>
|
||||
<el-table-column label="项目名称" width="150" align="center" prop="PJTNAM_0"></el-table-column>
|
||||
<el-table-column label="产品" width="150" align="center" prop="ITMREF_0"></el-table-column>
|
||||
<el-table-column label="名称" width="150" align="center" prop="ITMDES1_0" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="代号" width="150" align="center" prop="ITMDES2_0" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="数量(采购)" width="100" align="center" prop="QTYUOM_0"></el-table-column>
|
||||
<el-table-column label="采购单位" width="100" align="center" prop="UOM_0"></el-table-column>
|
||||
<el-table-column label="采购说明" width="150" align="center" prop="POHITMDES1_0" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="数量" width="100" align="center" prop="QTYSTU_0"></el-table-column>
|
||||
<el-table-column label="库存单位" width="100" align="center" prop="STU_0"></el-table-column>
|
||||
<el-table-column label="默认质量状态" width="100" align="center" prop="STA_0"></el-table-column>
|
||||
<el-table-column label="未收采购数量" width="100" align="center" prop="NRCPQTYPUU_0"></el-table-column>
|
||||
<el-table-column label="未收库存数量" width="100" align="center" prop="NRCPQTYSTU_0"></el-table-column>
|
||||
<el-table-column label="本次收量(采购单位)" width="200" align="center" prop="THISQTYUOM"></el-table-column>
|
||||
<el-table-column label="本次收量(库存单位)" width="200" align="center" prop="THISQTY"></el-table-column>
|
||||
<el-table-column label="计量单位/存货单位系数" width="100" align="center" prop="UOMSTUCOE_0"></el-table-column>
|
||||
<el-table-column label="材料" align="center" prop="ITMDES3_0" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="YITMDES4_0"></el-table-column>
|
||||
|
||||
</el-table>
|
||||
</el-row>
|
||||
|
||||
<script>
|
||||
var app = new Vue({
|
||||
el: "#XWMSPTH",
|
||||
data() {
|
||||
return {
|
||||
billTable: [],
|
||||
// 需要编辑的属性
|
||||
editProp: ['POHFCY_0']
|
||||
};
|
||||
},
|
||||
mounted: function () {
|
||||
// 获取所有单据编码
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
url: "/xwms/XWMSPTH/Search",
|
||||
success: function (json) {
|
||||
app.billTable = json.Data;
|
||||
},
|
||||
error: function (json) {
|
||||
alert("加载失败");
|
||||
}
|
||||
});
|
||||
},
|
||||
computed: {
|
||||
foodLabel() {
|
||||
return (val) => {
|
||||
return this.options.find(o => o.value === val).label
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 鼠标移入cell */
|
||||
handleCellEnter(row, column, cell, event) {
|
||||
const property = column.property
|
||||
if (this.editProp.includes(property)) {
|
||||
cell.querySelector('.item__input').style.display = 'block'
|
||||
cell.querySelector('.item__txt').style.display = 'none'
|
||||
}
|
||||
},
|
||||
/** 鼠标移出cell */
|
||||
handleCellLeave(row, column, cell, event) {
|
||||
const property = column.property
|
||||
if (this.editProp.includes(property)) {
|
||||
cell.querySelector('.item__input').style.display = 'none'
|
||||
cell.querySelector('.item__txt').style.display = 'block'
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user