|
@@ -407,8 +407,16 @@
|
|
:max="selectedObj.on_print + selectedObj.un_print"
|
|
:max="selectedObj.on_print + selectedObj.un_print"
|
|
:min="0"
|
|
:min="0"
|
|
size="large"
|
|
size="large"
|
|
|
|
+ @on-focus="handlePrintInput"
|
|
v-model="selectedObj.print_num"
|
|
v-model="selectedObj.print_num"
|
|
></InputNumber>
|
|
></InputNumber>
|
|
|
|
+ <van-number-keyboard
|
|
|
|
+ :show="show4"
|
|
|
|
+ @blur="show4 = false"
|
|
|
|
+ @input="keyboardPrintTap"
|
|
|
|
+ @delete="keyboardPrintDele"
|
|
|
|
+ z-index="99999"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="selection-print-modal-body-info">
|
|
<div class="selection-print-modal-body-info">
|
|
@@ -467,8 +475,16 @@
|
|
"
|
|
"
|
|
:min="0"
|
|
:min="0"
|
|
size="large"
|
|
size="large"
|
|
|
|
+ @on-focus="handleOkInput"
|
|
v-model="selectedObj.ok_num"
|
|
v-model="selectedObj.ok_num"
|
|
></InputNumber>
|
|
></InputNumber>
|
|
|
|
+ <van-number-keyboard
|
|
|
|
+ :show="show3"
|
|
|
|
+ @blur="show3 = false"
|
|
|
|
+ @input="keyboardOkTap"
|
|
|
|
+ @delete="keyboardOkDele"
|
|
|
|
+ z-index="99999"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="selection-print-modal-body-info">
|
|
<div class="selection-print-modal-body-info">
|
|
@@ -549,6 +565,8 @@ export default {
|
|
return {
|
|
return {
|
|
show: false,
|
|
show: false,
|
|
show2: false,
|
|
show2: false,
|
|
|
|
+ show3: false,
|
|
|
|
+ show4: false,
|
|
isFullScreen: false,
|
|
isFullScreen: false,
|
|
fullscreenModal: true,
|
|
fullscreenModal: true,
|
|
selectionModal: false,
|
|
selectionModal: false,
|
|
@@ -983,6 +1001,45 @@ export default {
|
|
this.currentSearchValue
|
|
this.currentSearchValue
|
|
);
|
|
);
|
|
},
|
|
},
|
|
|
|
+ keyboardOkTap(value) {
|
|
|
|
+ let max;
|
|
|
|
+ if (this.selectedObj.type == 1) {
|
|
|
|
+ max = this.selectedObj.on_print - this.selectedObj.on_complete;
|
|
|
|
+ } else {
|
|
|
|
+ max = this.selectedObj.un_complete;
|
|
|
|
+ }
|
|
|
|
+ this.selectedObj.ok_num =
|
|
|
|
+ (this.selectedObj.ok_num ? this.selectedObj.ok_num : "") + "" + value;
|
|
|
|
+ if (this.selectedObj.ok_num * 1 > max) {
|
|
|
|
+ this.selectedObj.ok_num = max;
|
|
|
|
+ }
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ },
|
|
|
|
+ keyboardOkDele() {
|
|
|
|
+ this.selectedObj.ok_num = (this.selectedObj.ok_num + "").substring(
|
|
|
|
+ 0,
|
|
|
|
+ this.selectedObj.ok_num.length - 1
|
|
|
|
+ );
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ },
|
|
|
|
+ keyboardPrintTap(value) {
|
|
|
|
+ let max = this.selectedObj.on_print + this.selectedObj.un_print;
|
|
|
|
+ this.selectedObj.print_num =
|
|
|
|
+ (this.selectedObj.print_num ? this.selectedObj.print_num : "") +
|
|
|
|
+ "" +
|
|
|
|
+ value;
|
|
|
|
+ if (this.selectedObj.print_num * 1 > max) {
|
|
|
|
+ this.selectedObj.print_num = max;
|
|
|
|
+ }
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ },
|
|
|
|
+ keyboardPrintDele() {
|
|
|
|
+ this.selectedObj.print_num = (this.selectedObj.print_num + "").substring(
|
|
|
|
+ 0,
|
|
|
|
+ this.selectedObj.print_num.length - 1
|
|
|
|
+ );
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ },
|
|
keyboardTap(value) {
|
|
keyboardTap(value) {
|
|
this.keyboardObj[this.keyboardVal] =
|
|
this.keyboardObj[this.keyboardVal] =
|
|
(this.keyboardObj[this.keyboardVal]
|
|
(this.keyboardObj[this.keyboardVal]
|
|
@@ -1005,7 +1062,12 @@ export default {
|
|
this.keyboardObj = row;
|
|
this.keyboardObj = row;
|
|
this.show2 = true;
|
|
this.show2 = true;
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ handleOkInput() {
|
|
|
|
+ this.show3 = true;
|
|
|
|
+ },
|
|
|
|
+ handlePrintInput() {
|
|
|
|
+ this.show4 = true;
|
|
|
|
+ },
|
|
changePage(e) {
|
|
changePage(e) {
|
|
this.page_index = e;
|
|
this.page_index = e;
|
|
this.getChipDetail();
|
|
this.getChipDetail();
|