107 lines
4.4 KiB
Plaintext
107 lines
4.4 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="XWMSSOH">
|
|
<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="SALFCY_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="BPCORD_0"></el-table-column> *@
|
|
<el-table-column label="客户名称" width="150" align="center" prop="BPCNAM_0" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="销售订单号" width="180" align="center" prop="SOHNUM_0"></el-table-column>
|
|
<el-table-column label="行号" width="100" align="center" prop="SOPLIN_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="150" align="center" prop="ITMDES3_0" show-overflow-tooltip></el-table-column>
|
|
<el-table-column label="数量" width="100" align="center" prop="QTY_0"></el-table-column>
|
|
<el-table-column label="未发数量" width="100" align="center" prop="NODLQTY_0"></el-table-column>
|
|
<el-table-column label="本次发货量" width="100" align="center" prop="THISQTY"></el-table-column>
|
|
<el-table-column label="库存单位" width="150" align="center" prop="STU_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="100" align="center" prop="BPAADD_0"></el-table-column>
|
|
|
|
</el-table>
|
|
</el-row>
|
|
|
|
<script>
|
|
var app = new Vue({
|
|
el: "#XWMSSOH",
|
|
data() {
|
|
return {
|
|
billTable: [],
|
|
// 需要编辑的属性
|
|
editProp: ['POHFCY_0']
|
|
};
|
|
},
|
|
mounted: function () {
|
|
// 获取所有单据编码
|
|
$.ajax({
|
|
type: "post",
|
|
dataType: "json",
|
|
data: {},
|
|
url: "/xwms/XWMSSOH/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>
|
|
|