页面数量合计;
出库移库,默认状态 调整条码打印
This commit is contained in:
1 parent
cec65caa32
commit
67227db833
12 files changed
+112
-326
No files matched your search
@@ -132,139 +132,7 @@
|
||||
}
|
||||
},
|
||||
});
|
||||
let template = {
|
||||
"panels": [{
|
||||
"index": 0,
|
||||
"height": 50,
|
||||
"width": 80,
|
||||
"paperHeader": 43.5,
|
||||
"paperFooter": 141.73228346456693,
|
||||
"printElements": [{
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 3,
|
||||
"height": 40,
|
||||
"width": 220,
|
||||
"field": "lot",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 8, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 3,
|
||||
"height": 130,
|
||||
"width": 220,
|
||||
"borderWidth": "1.5",
|
||||
"borderStyle": "solid"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "rect"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 42,
|
||||
"height": 9,
|
||||
"width": 219
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "hline"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 135,
|
||||
"top": 42,
|
||||
"height": 90,
|
||||
"width": 9
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "vline"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 43.5,
|
||||
"height": 28.5,
|
||||
"width": 132,
|
||||
"field": "code",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 150,
|
||||
"top": 49.5,
|
||||
"height": 48,
|
||||
"width": 51,
|
||||
"textType": "qrcode",
|
||||
"field": "qrcode",
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 72,
|
||||
"height": 9,
|
||||
"width": 132
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "hline"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 72,
|
||||
"height": 30,
|
||||
"width": 132,
|
||||
"field": "qty",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 4.5,
|
||||
"top": 102,
|
||||
"height": 9,
|
||||
"width": 217.5
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "hline"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 4.5,
|
||||
"top": 102,
|
||||
"height": 28.5,
|
||||
"width": 132,
|
||||
"field": "batch",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}],
|
||||
"paperNumberLeft": 196.5,
|
||||
"paperNumberTop": 118.5,
|
||||
"paperNumberDisabled": true
|
||||
}]
|
||||
};
|
||||
let template = { "panels": [{ "index": 0, "height": 50, "width": 80, "paperHeader": 43.5, "paperFooter": 141.73228346456693, "printElements": [{ "options": { "left": 3, "top": 3, "height": 40, "width": 220, "field": "lot", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 8, "fontWeight": "bold" }, "printElementType": { "type": "text" } }, { "options": { "left": 3, "top": 3, "height": 130, "width": 220, "borderWidth": "1.5", "borderStyle": "solid" }, "printElementType": { "type": "rect" } }, { "options": { "left": 3, "top": 42, "height": 9, "width": 219 }, "printElementType": { "type": "hline" } }, { "options": { "left": 135, "top": 42, "height": 90, "width": 9 }, "printElementType": { "type": "vline" } }, { "options": { "left": 3, "top": 43.5, "height": 28.5, "width": 132, "field": "code", "testData": "1324123412341234123", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold" }, "printElementType": { "type": "text" } }, { "options": { "left": 138, "top": 46.5, "height": 79.5, "width": 81, "textType": "qrcode", "field": "qrcode", "testData": "1234123413234132" }, "printElementType": { "type": "text" } }, { "options": { "left": 3, "top": 72, "height": 30, "width": 132, "field": "qty", "testData": "5555", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold" }, "printElementType": { "type": "text" } }, { "options": { "left": 3, "top": 72, "height": 9, "width": 132 }, "printElementType": { "type": "hline" } }, { "options": { "left": 3, "top": 102, "height": 9, "width": 132 }, "printElementType": { "type": "hline" } }, { "options": { "left": 4.5, "top": 102, "height": 28.5, "width": 132, "field": "batch", "testData": "HYB2202030003", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold" }, "printElementType": { "type": "text" } }], "paperNumberLeft": 196.5, "paperNumberTop": 118.5, "paperNumberDisabled": true }] };
|
||||
|
||||
let printData = [];
|
||||
|
||||
|
||||
@@ -28,143 +28,7 @@
|
||||
ff.OpenDialog('/xwms/ReceiptDetail2/Create/' + headerId, '@Guid.NewGuid()', '添加明细', 600);
|
||||
}
|
||||
}
|
||||
let template = {
|
||||
"panels": [{
|
||||
"index": 0,
|
||||
"height": 50,
|
||||
"width": 80,
|
||||
"paperHeader": 43.5,
|
||||
"paperFooter": 141.73228346456693,
|
||||
"printElements": [{
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 3,
|
||||
"height": 40,
|
||||
"width": 220,
|
||||
"field": "lot",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 8, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 3,
|
||||
"height": 130,
|
||||
"width": 220,
|
||||
"borderWidth": "1.5",
|
||||
"borderStyle": "solid"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "rect"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 42,
|
||||
"height": 9,
|
||||
"width": 219
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "hline"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 135,
|
||||
"top": 42,
|
||||
"height": 90,
|
||||
"width": 9
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "vline"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 43.5,
|
||||
"height": 28.5,
|
||||
"width": 132,
|
||||
"field": "code",
|
||||
"testData": "1324123412341234123",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 150,
|
||||
"top": 49.5,
|
||||
"height": 48,
|
||||
"width": 51,
|
||||
"textType": "qrcode",
|
||||
"field": "qrcode",
|
||||
"testData": "1234123413234132"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 72,
|
||||
"height": 9,
|
||||
"width": 132
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "hline"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 3,
|
||||
"top": 72,
|
||||
"height": 30,
|
||||
"width": 132,
|
||||
"field": "qty",
|
||||
"testData": "5555",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 4.5,
|
||||
"top": 102,
|
||||
"height": 9,
|
||||
"width": 217.5
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "hline"
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 4.5,
|
||||
"top": 102,
|
||||
"height": 28.5,
|
||||
"width": 132,
|
||||
"field": "batch",
|
||||
"testData": "HYB2202030003",
|
||||
"textAlign": "center",
|
||||
"textContentVerticalAlign": "middle",
|
||||
"fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold"
|
||||
},
|
||||
"printElementType": {
|
||||
"type": "text"
|
||||
}
|
||||
}],
|
||||
"paperNumberLeft": 196.5,
|
||||
"paperNumberTop": 118.5,
|
||||
"paperNumberDisabled": true
|
||||
}]
|
||||
};
|
||||
let template = { "panels": [{ "index": 0, "height": 50, "width": 80, "paperHeader": 43.5, "paperFooter": 141.73228346456693, "printElements": [{ "options": { "left": 3, "top": 3, "height": 40, "width": 220, "field": "lot", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 8, "fontWeight": "bold" }, "printElementType": { "type": "text" } }, { "options": { "left": 3, "top": 3, "height": 130, "width": 220, "borderWidth": "1.5", "borderStyle": "solid" }, "printElementType": { "type": "rect" } }, { "options": { "left": 3, "top": 42, "height": 9, "width": 219 }, "printElementType": { "type": "hline" } }, { "options": { "left": 135, "top": 42, "height": 90, "width": 9 }, "printElementType": { "type": "vline" } }, { "options": { "left": 3, "top": 43.5, "height": 28.5, "width": 132, "field": "code", "testData": "1324123412341234123", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold" }, "printElementType": { "type": "text" } }, { "options": { "left": 138, "top": 46.5, "height": 79.5, "width": 81, "textType": "qrcode", "field": "qrcode", "testData": "1234123413234132" }, "printElementType": { "type": "text" } }, { "options": { "left": 3, "top": 72, "height": 30, "width": 132, "field": "qty", "testData": "5555", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold" }, "printElementType": { "type": "text" } }, { "options": { "left": 3, "top": 72, "height": 9, "width": 132 }, "printElementType": { "type": "hline" } }, { "options": { "left": 3, "top": 102, "height": 9, "width": 132 }, "printElementType": { "type": "hline" } }, { "options": { "left": 4.5, "top": 102, "height": 28.5, "width": 132, "field": "batch", "testData": "HYB2202030003", "textAlign": "center", "textContentVerticalAlign": "middle", "fontFamily": "Microsoft YaHei", "fontSize": 12, "fontWeight": "bold" }, "printElementType": { "type": "text" } }], "paperNumberLeft": 196.5, "paperNumberTop": 118.5, "paperNumberDisabled": true }] };
|
||||
|
||||
let printData = [];
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="form.address2" :popper-append-to-body="false" placeholder="移入地点">
|
||||
<el-select v-model="form.address2" :popper-append-to-body="false" placeholder="移入仓库">
|
||||
<el-option v-for="item in address2List"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
@@ -83,10 +83,11 @@
|
||||
</el-form>
|
||||
|
||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"
|
||||
height="600" stripe border
|
||||
max-height="600" stripe border
|
||||
style="width: 100%"
|
||||
ref="tableData"
|
||||
v-loading="loading"
|
||||
show-summary
|
||||
@@cell-mouse-enter="handleCellEnter"
|
||||
@@cell-mouse-leave="handleCellLeave"
|
||||
@@selection-change="handleSelectionChange">
|
||||
@@ -99,18 +100,20 @@
|
||||
<el-table-column label="库位" width="150" align="center" prop="LocationCode"></el-table-column>
|
||||
<el-table-column label="容器" width="150" align="center" prop="ContainerCode"></el-table-column>
|
||||
<el-table-column label="物料编码" width="150" align="center" prop="MaterialCode" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="物料名称" width="180" align="center" prop="MaterialName"></el-table-column>
|
||||
<el-table-column label="物料名称" width="150" align="center" prop="MaterialName" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="批次" width="150" align="center" prop="Batch"></el-table-column>
|
||||
<el-table-column label="规格" width="200" align="center" prop="Lot"></el-table-column>
|
||||
<el-table-column label="供应商名称" width="200" align="center" prop="SupplierName"></el-table-column>
|
||||
<el-table-column label="规格" width="150" align="center" prop="Lot" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="供应商名称" width="150" align="center" prop="SupplierName" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="数量" width="150" align="center" prop="Qty" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="出库数量" width="200" align="center" prop="ThisQty">
|
||||
<el-table-column label="状态" width="150" align="center" prop="Status" v-if="false"></el-table-column>
|
||||
<el-table-column label="单位" width="150" align="center" prop="Unit" v-if="false"></el-table-column>
|
||||
<el-table-column label="出库数量" width="250" align="center" prop="ThisQty">
|
||||
<div class="item" slot-scope="scope">
|
||||
<el-input class="item__input" v-model="scope.row.ThisQty" placeholder="请输入内容"></el-input>
|
||||
<div class="item__txt">{{scope.row.ThisQty}}</div>
|
||||
</div>
|
||||
</el-table-column>
|
||||
<el-table-column label="移入状态" width="100" align="center" prop="UserDef2">
|
||||
<el-table-column label="移入状态" width="150" align="center" prop="UserDef2">
|
||||
<div class="item" slot-scope="scope">
|
||||
<el-select class="item__input" :popper-append-to-body="false" v-model="scope.row.UserDef2" placeholder="请选择">
|
||||
<el-option v-for="item in options"
|
||||
@@ -141,7 +144,7 @@
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-sizes="[20,50,100,1000]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
@@ -168,8 +171,8 @@
|
||||
label: 'HYB'
|
||||
}],
|
||||
address2List: [{
|
||||
value: 'HYB',
|
||||
label: 'HYB'
|
||||
value: '',
|
||||
label: '=请选择='
|
||||
}],
|
||||
options: [{
|
||||
value: '',
|
||||
@@ -194,13 +197,13 @@
|
||||
}],
|
||||
wareList: [{
|
||||
value: '',
|
||||
label: '=请选择='
|
||||
label: '=请选择移入仓库='
|
||||
}],
|
||||
loading: false,
|
||||
tableData: [],
|
||||
currentPage: 1, // 当前页码
|
||||
total: 20, // 总条数
|
||||
pageSize: 20, // 每页的数据条数
|
||||
pageSize: 50, // 每页的数据条数
|
||||
// 需要编辑的属性
|
||||
editProp: ['ThisQty', 'UserDef2', 'UserDef3'],
|
||||
multipleSelection: []
|
||||
@@ -216,8 +219,8 @@
|
||||
data: {},
|
||||
url: "/xwms/ShipmentHeader2/SearchWare",
|
||||
success: function (json) {
|
||||
app.wareList.push(...json.Data)
|
||||
console.log(app.wareList);
|
||||
app.wareList.push(...json.Data);
|
||||
app.address2List = app.wareList;
|
||||
},
|
||||
error: function (json) {
|
||||
alert("加载失败");
|
||||
@@ -263,6 +266,10 @@
|
||||
this.currentPage = val;
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
var _this = this;
|
||||
val.forEach(function (item) {
|
||||
item.UserDef3 = _this.form.address2;
|
||||
});
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
search() {
|
||||
@@ -313,7 +320,7 @@
|
||||
_this.$refs.tableData.clearSelection();
|
||||
}
|
||||
else {
|
||||
layer.alert("创建失败!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
layer.alert("创建失败!!"+json.Msg, { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
|
||||
@@ -74,10 +74,11 @@
|
||||
</el-form>
|
||||
|
||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"
|
||||
height="600" stripe border
|
||||
max-height="600" stripe border
|
||||
style="width: 100%"
|
||||
ref="tableData"
|
||||
v-loading="loading"
|
||||
show-summary
|
||||
@@cell-mouse-enter="handleCellEnter"
|
||||
@@cell-mouse-leave="handleCellLeave"
|
||||
@@selection-change="handleSelectionChange">
|
||||
@@ -90,12 +91,14 @@
|
||||
<el-table-column label="库位" width="150" align="center" prop="LocationCode"></el-table-column>
|
||||
<el-table-column label="容器" width="150" align="center" prop="ContainerCode"></el-table-column>
|
||||
<el-table-column label="物料编码" width="150" align="center" prop="MaterialCode" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="物料名称" width="180" align="center" prop="MaterialName"></el-table-column>
|
||||
<el-table-column label="物料名称" width="150" align="center" prop="MaterialName" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="批次" width="150" align="center" prop="Batch"></el-table-column>
|
||||
<el-table-column label="规格" width="200" align="center" prop="Lot"></el-table-column>
|
||||
<el-table-column label="供应商名称" width="200" align="center" prop="SupplierName"></el-table-column>
|
||||
<el-table-column label="规格" width="150" align="center" prop="Lot" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="供应商名称" width="150" align="center" prop="SupplierName" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="数量" width="150" align="center" prop="Qty" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="出库数量" width="200" align="center" prop="ThisQty">
|
||||
<el-table-column label="状态" width="150" align="center" prop="Status" v-if="false"></el-table-column>
|
||||
<el-table-column label="单位" width="150" align="center" prop="Unit" v-if="false"></el-table-column>
|
||||
<el-table-column label="出库数量" width="200" align="center" prop="ThisQty">
|
||||
<div class="item" slot-scope="scope">
|
||||
<el-input class="item__input" v-model="scope.row.ThisQty" placeholder="请输入内容"></el-input>
|
||||
<div class="item__txt">{{scope.row.ThisQty}}</div>
|
||||
@@ -120,7 +123,7 @@
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-sizes="[20,50,100,1000]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
@@ -185,7 +188,7 @@
|
||||
tableData: [],
|
||||
currentPage: 1, // 当前页码
|
||||
total: 20, // 总条数
|
||||
pageSize: 20, // 每页的数据条数
|
||||
pageSize: 50, // 每页的数据条数
|
||||
// 需要编辑的属性
|
||||
editProp: ['ThisQty', 'UserDef1'],
|
||||
multipleSelection: []
|
||||
@@ -231,13 +234,13 @@
|
||||
cell.querySelector('.item__input').style.display = 'none'
|
||||
cell.querySelector('.item__txt').style.display = 'block'
|
||||
}
|
||||
if (property == "ThisQty") {
|
||||
// 库存单位除以系数
|
||||
if (row.ThisQty > row.QTY) {
|
||||
row.ThisQty = row.QTY;
|
||||
layer.alert("不能超出库存数量!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
}
|
||||
// if (property == "ThisQty") {
|
||||
// // 库存单位除以系数
|
||||
// if (row.ThisQty > row.QTY) {
|
||||
// row.ThisQty = row.QTY;
|
||||
// layer.alert("不能超出库存数量!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
// }
|
||||
// }
|
||||
},
|
||||
//每页条数改变时触发 选择一页显示多少行
|
||||
handleSizeChange(val) {
|
||||
@@ -302,7 +305,7 @@
|
||||
_this.$refs.tableData.clearSelection();
|
||||
}
|
||||
else {
|
||||
layer.alert("创建失败!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
layer.alert("创建失败!!" + json.Msg, { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-sizes="[1,5,10,20,50,100,1000]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
@@ -209,7 +209,7 @@
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
handleClickTableRow(row) {
|
||||
this.$refs.tableData.toggleRowSelection(row)
|
||||
this.$refs.tableData.toggleRowSelection(row, true)
|
||||
},
|
||||
search() {
|
||||
var _this = this;
|
||||
|
||||
@@ -264,7 +264,7 @@
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-sizes="[1,5,10,20,50,100,1000]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
@@ -369,7 +369,7 @@
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
handleClickTableRow(row) {
|
||||
this.$refs.tableData.toggleRowSelection(row)
|
||||
this.$refs.tableData.toggleRowSelection(row, true)
|
||||
},
|
||||
search() {
|
||||
var _this = this;
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-sizes="[1,5,10,20,50,100,1000]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
@@ -197,7 +197,7 @@
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
handleClickTableRow(row) {
|
||||
this.$refs.tableData.toggleRowSelection(row)
|
||||
this.$refs.tableData.toggleRowSelection(row, true)
|
||||
},
|
||||
search() {
|
||||
var _this = this;
|
||||
|
||||
@@ -52,11 +52,14 @@
|
||||
<el-button icon="el-icon-search" @@click="search" circle></el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)" height="650" stripe border
|
||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"
|
||||
max-height="650"
|
||||
stripe border
|
||||
style="width: 100%"
|
||||
size="small"
|
||||
ref="tableData"
|
||||
v-loading="loading"
|
||||
show-summary
|
||||
:highlight-current-row="true"
|
||||
@@row-click="handleClickTableRow"
|
||||
@@cell-mouse-enter="handleCellEnter"
|
||||
@@ -100,7 +103,7 @@
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-sizes="[1,5,10,20,50,100,1000]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
@@ -200,7 +203,7 @@
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
handleClickTableRow(row) {
|
||||
this.$refs.tableData.toggleRowSelection(row)
|
||||
this.$refs.tableData.toggleRowSelection(row, true)
|
||||
},
|
||||
search() {
|
||||
var _this = this;
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-sizes="[1,5,10,20,50,100,1000]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
@@ -180,7 +180,7 @@
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
handleClickTableRow(row) {
|
||||
this.$refs.tableData.toggleRowSelection(row)
|
||||
this.$refs.tableData.toggleRowSelection(row,true)
|
||||
},
|
||||
search() {
|
||||
var _this = this;
|
||||
|
||||
Reference in new issue
Block a user