109 lines
4.6 KiB
Plaintext
109 lines
4.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="XWMSSHIP">
|
|
<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="FCY_0"></el-table-column>
|
|
<el-table-column label="发货日期" width="100" align="center" prop="SHIDAT_0"></el-table-column>
|
|
@* <el-table-column label="内部供应商" width="150" align="center" prop="STOFCY_0" show-overflow-tooltip></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="150" align="center" prop="SDHNUM_0"></el-table-column>
|
|
<el-table-column label="发货行号" width="100" align="center" prop="SDDLIN_0"></el-table-column>
|
|
<el-table-column label="产品编码" width="100" 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="YITMDES4_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="100" align="center" prop="QTY_0" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="批次" width="150" align="center" prop="LOT_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="STATUS"></el-table-column>
|
|
<el-table-column label="销售单位" width="100" align="center" prop="SAU_0"></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>
|
|
</el-row>
|
|
|
|
<script>
|
|
var app = new Vue({
|
|
el: "#XWMSSHIP",
|
|
data() {
|
|
return {
|
|
billTable: [],
|
|
// 需要编辑的属性
|
|
editProp: ['POHFCY_0']
|
|
};
|
|
},
|
|
mounted: function () {
|
|
// 获取所有单据编码
|
|
$.ajax({
|
|
type: "post",
|
|
dataType: "json",
|
|
data: {},
|
|
url: "/xwms/XWMSSHIP/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>
|
|
|