116 lines
5.6 KiB
Plaintext
116 lines
5.6 KiB
Plaintext
<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="PRHFCY_0"></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="BPSNAM_0" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="采购收货号" width="150" align="center" prop="PTHNUM_0"></el-table-column>
|
|
<el-table-column label="行号" width="100" align="center" prop="PTDLIN_0"></el-table-column>
|
|
<el-table-column label="项目号" width="150" align="center" prop="PJT_0" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="项目名称" width="150" align="center" prop="OPPEXTNUM_0" show-overflow-tooltip></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="POHITMDES1_0" show-overflow-tooltip></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="100" align="center" prop="ITMDES2_0" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="材料" width="100" align="center" prop="ITMDES3_0" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="备注" width="150" align="center" prop="YITMDES4_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="100" align="center" prop="POHQTYSTU_0"></el-table-column>
|
|
<el-table-column label="采购订单采购数量" width="100" align="center" prop="POHQTYUOM_0"></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="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="已退货库存数量" align="center" prop="RTNQTYSTU_0" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="收货单存货/采购数量系统" align="center" prop="UOMSTUCOE_0" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="本次退货量(库存单位)" width="100" align="center" prop="THISQTYSTU"></el-table-column>
|
|
<el-table-column label="退货量(采购单位)" width="100" align="center" prop="THISQTYUOM"></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>
|
|
|