|
|
@@ -132,7 +132,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { useRouter } from 'vue-router'
|
|
|
import { getTaskList } from '@/views/outbound/picking/task/hooks/task'
|
|
|
-import { computed, ref } from 'vue'
|
|
|
+import { computed, nextTick, ref } from 'vue'
|
|
|
import { showDialog, showToast } from 'vant'
|
|
|
import { basicStore } from '@/store/modules/basic'
|
|
|
import { createPickingTask, getPickingTaskDetail } from '@/api/picking'
|
|
|
@@ -306,11 +306,22 @@ const onCreateTask=(row)=>{
|
|
|
count.value=row.count
|
|
|
setTimeout(()=>{
|
|
|
countRef.value.focus()
|
|
|
- },300)
|
|
|
+ countRefLength()
|
|
|
+ },200)
|
|
|
}else {
|
|
|
countRefFocus()
|
|
|
}
|
|
|
}
|
|
|
+const countRefLength = () => {
|
|
|
+ nextTick(() => {
|
|
|
+ const input = countRef.value?.$el?.querySelector('input');
|
|
|
+ if (input) {
|
|
|
+ input.focus();
|
|
|
+ // 将光标移动到文本末尾
|
|
|
+ input.selectionStart = input.selectionEnd = input.value.length;
|
|
|
+ }
|
|
|
+ });
|
|
|
+};
|
|
|
const onSubCreateTask=(row)=>{
|
|
|
subModel.value=row
|
|
|
if(row.residualOrderQty<=60){
|