|
@@ -134,13 +134,24 @@
|
|
|
</div>
|
|
|
<div class="fullscreen-content-select-block">
|
|
|
<Button
|
|
|
+ @click="handleSelectionCancel"
|
|
|
+ size="large"
|
|
|
+ type="primary"
|
|
|
+ :ghost='selectedAll?true:false'
|
|
|
+ style="margin-right: 10px"
|
|
|
+ v-if="selectedAll"
|
|
|
+ >
|
|
|
+ 取消全选
|
|
|
+ </Button>
|
|
|
+ <Button
|
|
|
@click="handleSelectionAll"
|
|
|
size="large"
|
|
|
type="primary"
|
|
|
:ghost='selectedAll?true:false'
|
|
|
style="margin-right: 10px"
|
|
|
+ v-else
|
|
|
>
|
|
|
- {{selectedAll?"取消全选":'全选'}}
|
|
|
+ 全选
|
|
|
</Button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -376,7 +387,6 @@
|
|
|
<Modal
|
|
|
class="selection-rowno-modal"
|
|
|
v-model="selectionRownolModal"
|
|
|
-
|
|
|
width="80%"
|
|
|
>
|
|
|
<div slot="header"><h1>行号选择</h1></div>
|
|
@@ -437,7 +447,7 @@
|
|
|
>
|
|
|
返回
|
|
|
</Button>
|
|
|
- <Button @click="handleRowNoComfirm(chooseLineNo)" type="primary"
|
|
|
+ <Button @click="handleRowNoComfirm" type="primary"
|
|
|
style="margin-right: 10px;width:30%;height:1rem;font-size:2em">
|
|
|
确认
|
|
|
</Button>
|
|
@@ -672,6 +682,21 @@
|
|
|
</Button>
|
|
|
</div>
|
|
|
</Modal>
|
|
|
+ <Modal v-model="selectTrue" :closable='false'>
|
|
|
+ <div style="text-align:center;margin:2em"><h1>是否全选所有页面的所有部件</h1></div>
|
|
|
+ <div slot="footer" style="text-align:center;">
|
|
|
+ <Button
|
|
|
+ @click="selectTrue=false"
|
|
|
+ type="primary"
|
|
|
+ style="margin-right: 0.5rem;width:30%;height:1rem;font-size:0.4rem"
|
|
|
+ >
|
|
|
+ 返回
|
|
|
+ </Button>
|
|
|
+ <Button @click="selectOk" type="primary" style="margin-right: 0.5rem;width:30%;height:1rem;font-size:0.4rem">
|
|
|
+ 确认
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
+ </Modal>
|
|
|
</Modal>
|
|
|
<div ref='printRow' class="printRow">
|
|
|
<div v-for="(item,index) in tagPrintList" :key="index" class="printRow_content" style="width:400px">
|
|
@@ -698,6 +723,7 @@ export default {
|
|
|
data() {
|
|
|
// 这里存放数据
|
|
|
return {
|
|
|
+ selectTrue:false,
|
|
|
cancelData:[],
|
|
|
tagPrintList:[],
|
|
|
produceID:null,
|
|
@@ -811,7 +837,18 @@ export default {
|
|
|
// })
|
|
|
},
|
|
|
methods: {
|
|
|
- handleSelectionAll(){
|
|
|
+ selectOk(){
|
|
|
+ this.selectTrue = false;
|
|
|
+ this.selectedAll = !this.selectedAll;
|
|
|
+ this.contentData.map(v=>{
|
|
|
+ v.isChoosed = true
|
|
|
+ });
|
|
|
+ this.saveData = [];
|
|
|
+ },
|
|
|
+handleSelectionAll(){
|
|
|
+ this.selectTrue = true;
|
|
|
+},
|
|
|
+ handleSelectionCancel(){
|
|
|
this.selectedAll = !this.selectedAll;
|
|
|
if(this.selectedAll){
|
|
|
this.contentData.map(v=>{
|
|
@@ -970,11 +1007,13 @@ export default {
|
|
|
this.saveData = [];
|
|
|
if (type == 2 && this.selectedInfo.order_no == "") {
|
|
|
return this.$Message.warning("请先选择项目");
|
|
|
+
|
|
|
}
|
|
|
this.currentSearchValue = "";
|
|
|
this.currentSearchValue = obj.currentSearchValue;
|
|
|
this.currencySelectedObj = obj;
|
|
|
this.selectionModal = true;
|
|
|
+ this.total = 0;
|
|
|
this.currencySelectedObj.type = type;
|
|
|
if (this.currencySelectedObj.list.length == 0 || type == 2) {
|
|
|
this.handleCurrentSearch(
|
|
@@ -984,8 +1023,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleSelectionRowno(row) {
|
|
|
- console.log(`row`, row);
|
|
|
- if (this.selectedInfo.rows.legth > 0) {
|
|
|
+ if (this.selectedInfo.rows.length > 0) {
|
|
|
this.chooseLineNo = JSON.parse(JSON.stringify(this.selectedInfo.rows));
|
|
|
} else {
|
|
|
this.chooseLineNo = [{ start: null, end: null }];
|
|
@@ -1290,7 +1328,7 @@ export default {
|
|
|
},
|
|
|
}).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
- console.log(`res`, res);
|
|
|
+
|
|
|
res.data.data.map((v) => (v.isChoosed = false));
|
|
|
this.contentData = res.data.data;
|
|
|
if(this.selectedAll){
|
|
@@ -1462,7 +1500,13 @@ export default {
|
|
|
// },
|
|
|
//行号确认
|
|
|
handleRowNoComfirm() {
|
|
|
- this.selectedInfo.rows = JSON.parse(JSON.stringify(this.chooseLineNo));
|
|
|
+ let data =[];
|
|
|
+ this.chooseLineNo.map((v)=>{
|
|
|
+ if(v.start&&v.end){
|
|
|
+ data.push(v)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.selectedInfo.rows = JSON.parse(JSON.stringify(data));
|
|
|
this.selectionRownolModal = false;
|
|
|
this.page_index = 1;
|
|
|
this.getChipDetail();
|
|
@@ -1543,6 +1587,7 @@ export default {
|
|
|
this.keyboardVal = "end";
|
|
|
}
|
|
|
this.keyboardObj = row;
|
|
|
+
|
|
|
this.show2 = true;
|
|
|
},
|
|
|
handleOkInput() {
|
|
@@ -2251,7 +2296,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.printRow{
|
|
|
- // display: none;
|
|
|
+ display: none;
|
|
|
}
|
|
|
@media print {
|
|
|
.printRow{
|