Commit e46e5441 by wusiyi

fix: 快捷质检ui修复

parent 27425159
...@@ -333,7 +333,13 @@ ...@@ -333,7 +333,13 @@
{{ sureButtonText }} {{ sureButtonText }}
</el-button> </el-button>
<div class="check"> <div class="check">
<el-checkbox v-model="isAutoSure"> 自动完成上一单 </el-checkbox> <el-checkbox v-model="isAutoSure">
{{
fastKey === 'qualityScan'
? '自动质检通过上一单'
: '自动完成上一单'
}}
</el-checkbox>
</div> </div>
</div> </div>
<div v-if="fastKey === 'qualityScan'" class="btn-down"> <div v-if="fastKey === 'qualityScan'" class="btn-down">
...@@ -1121,13 +1127,6 @@ const trackCodeInput = async () => { ...@@ -1121,13 +1127,6 @@ const trackCodeInput = async () => {
} }
const onOpened = () => { const onOpened = () => {
trackingNumberRef.value && trackingNumberRef.value.focus() trackingNumberRef.value && trackingNumberRef.value.focus()
if (!isAutoSure.value && ['qualityScan'].includes(props.fastKey)) {
ElMessageBox.confirm('请注意自动完成上一单未勾选', '提示', {
type: 'warning',
confirmButtonText: '跳过提示',
cancelButtonText: '取消',
}).catch(() => {})
}
} }
// function setProductMark(productMark: string) { // function setProductMark(productMark: string) {
// if (!productMark) return '' // if (!productMark) return ''
......
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
<ElInput <ElInput
v-model="form.qualityIssues" v-model="form.qualityIssues"
placeholder="请输入不通过原因" placeholder="请输入不通过原因"
maxlength="50"
show-word-limit
clearable clearable
/> />
</ElFormItem> </ElFormItem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment