@{
|
ViewBag.Title = "LocationExt";
|
Layout = "~/Views/Shared/_LayoutVue.cshtml";
|
}
|
|
<div id="wmslist" v-cloak>
|
<el-card class="box-card">
|
<el-form v-bind:model="formData" style="margin-top:5px;" label-width="85px" class="demo-ruleForm" v-bind:inline="true">
|
<el-form-item label="货位编码:">
|
<el-input v-model="formData.locationCode" size="mini"></el-input>
|
</el-form-item>
|
<el-button style="margin-top:2px;" size="mini" type="primary" v-on:click="search">查 询</el-button>
|
</el-form>
|
</el-card>
|
<hh-table v-bind:coloptions="locationcols"
|
v-bind:paging="true"
|
v-bind:single="true"
|
v-bind:url="'@Url.Action("LocationExtList")?areaCode='+formData.areaCode"
|
v-bind:check="true"
|
@*v-on:clickrow="clickRow"*@
|
ref="locationextlist"
|
v-bind:dh="tableHeight"></hh-table>
|
|
<el-footer style="text-align: right; padding: 10px 10px 10px; ">
|
<el-row>
|
<el-button v-on:click="close" size="mini">取消</el-button>
|
<el-button type="primary" v-on:click="save" size="mini">保存</el-button>
|
</el-row>
|
</el-footer>
|
</div>
|
|
|
@section scripts{
|
<script src="~/Content/js/linq.js_ver2.2.0.2/linq.js"></script>
|
<script>
|
var locationExt = new Vue({
|
mixins: [useAutoHeight],
|
computed: {
|
tableHeight: function () {
|
return (this.autoHeight) / 3;
|
},
|
},
|
data: {//数据
|
formData: {
|
locationCode: "",
|
areaCode: GetUrlParam("locationCode")
|
},
|
|
checklocationlist:[],
|
locationcols: [],
|
},
|
|
methods: {//方法
|
search: function () {
|
var $this = this;
|
$this.$refs.locationextlist.loadData($this.formData);
|
},
|
clickRow: function (row, event, column) {
|
@*var opNo = row.CN_S_OP_NO;
|
this.opNo = opNo;
|
this.dtlUrl = "@Url.Action("GetDataTableDtl")?opNo=" + opNo;
|
this.cklistUrl = "@Url.Action("GetDataTableCheckList")?opNo=" + opNo;*@
|
},
|
selectSingleRowEvent: function (callBack) {
|
var selectRow = this.$refs.locationextlist.selections;
|
if (selectRow.length <= 0) {
|
wms.warning("请选择一条记录!");
|
return;
|
}
|
if (callBack)
|
callBack(selectRow[0]);
|
},
|
save:function()
|
{
|
var $this = this;
|
$this.selectSingleRowEvent(function (row) {
|
//选择填充
|
$this.checklocationlist.push({
|
CN_S_LOCATION_CODE: row.CN_S_LOCATION_CODE,
|
});
|
wms.dialogFrame.cb();
|
});
|
},
|
close: function ()
|
{
|
wms.dialogFrame.show = false;
|
}
|
},
|
mounted: function () {
|
var $this = this;
|
funcType = $this.formData.CN_S_STOCK_CODE;
|
$this.locationcols = [
|
{ f: "CN_S_LOCATION_CODE", n: "货位编码"},
|
{ f: "CN_S_LOCATION_STATE", n: "货位状态" },
|
{ f: "CN_S_USE_STATE", n: "贮存状态" },
|
];
|
|
},
|
el: '#wmslist'
|
|
});
|
|
|
|
</script>
|
}
|