Browse Source

装配收货任务提交校验,关闭提交报错 2024/8/7

pull/1/head
test 6 months ago
parent
commit
87440a1b8c
  1. 4
      src/components/show-modal/show-modal.vue
  2. 4
      src/mycomponents/common/comMessage.vue
  3. 2
      src/pages/productReceipt/job/ccProductReceiptDetail.vue

4
src/components/show-modal/show-modal.vue

@ -78,7 +78,9 @@ export default {
cancelClose() { cancelClose() {
clearInterval(this.timer) // timer clearInterval(this.timer) // timer
this.$refs.modal.popupClose() if(this.$refs.modal){
this.$refs.modal.popupClose();
}
this.success({ this.success({
// cancel: true, // cancel: true,
confirm: false confirm: false

4
src/mycomponents/common/comMessage.vue

@ -57,6 +57,7 @@ const isDisabled = ref(true) // 为 true 时,表示用户可以点击,反之
const seconds = ref(0) const seconds = ref(0)
const success = ref(() => {}) const success = ref(() => {})
const version = ref('') const version = ref('')
const modal = ref(null)
// onMounted(() => { // onMounted(() => {
// const systemInfo = uni.getSystemInfoSync() // const systemInfo = uni.getSystemInfoSync()
// // #ifdef H5 // // #ifdef H5
@ -95,6 +96,9 @@ const confirmClose = () => {
if (show.value) { if (show.value) {
show.value = false show.value = false
clearInterval(timer.value) // timer clearInterval(timer.value) // timer
if(modal.value){
modal.value.popupClose()
}
success.value({ success.value({
// cancel: false, // cancel: false,
confirm: true confirm: true

2
src/pages/productReceipt/job/ccProductReceiptDetail.vue

@ -296,6 +296,8 @@
if(valiDate){ if(valiDate){
if (!this.checkLocation()) { if (!this.checkLocation()) {
return return
}else{
this.toLocationCode = this.jobToLocationCode
} }
} }

Loading…
Cancel
Save