md
This commit is contained in:
parent
d37cc08397
commit
b75dc23892
@ -21,6 +21,9 @@ import { download } from '@/utils/request'
|
|||||||
import { triggerTrans,noticeToEmpUser } from '@/utils/custom'
|
import { triggerTrans,noticeToEmpUser } from '@/utils/custom'
|
||||||
import TanexPrinterSdk from '@/utils/TanexPrinterSdk'
|
import TanexPrinterSdk from '@/utils/TanexPrinterSdk'
|
||||||
import XDNoticeSdk from '@/utils/XDNoticeSdk'
|
import XDNoticeSdk from '@/utils/XDNoticeSdk'
|
||||||
|
import preventReClick from './utils/preventReClick'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// import _ from 'lodash'
|
// import _ from 'lodash'
|
||||||
@ -139,6 +142,7 @@ Vue.use(Print)
|
|||||||
Vue.use(directive)
|
Vue.use(directive)
|
||||||
Vue.use(plugins)
|
Vue.use(plugins)
|
||||||
Vue.use(VueMeta)
|
Vue.use(VueMeta)
|
||||||
|
Vue.use(preventReClick)
|
||||||
DictData.install()
|
DictData.install()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
17
src/utils/preventReClick.js
Normal file
17
src/utils/preventReClick.js
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
export default {
|
||||||
|
install (Vue) {
|
||||||
|
// 防止重复点击
|
||||||
|
Vue.directive('preventReClick', {
|
||||||
|
inserted (el, binding) {
|
||||||
|
el.addEventListener('click', () => {
|
||||||
|
if (!el.disabled) {
|
||||||
|
el.disabled = true
|
||||||
|
setTimeout(() => {
|
||||||
|
el.disabled = false
|
||||||
|
}, 3000)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -55,7 +55,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<div style="display:inline-flex; width: 50%;" v-if="form.openBillScope==0">
|
<div style="display:inline-flex; width: 50%;" v-if="form.openBillScope==0">
|
||||||
<el-input v-model="form.params.billCodeStr" rows="2" type="textarea" placeholder="部分开票请填写单号,多单请使用逗号隔开" />
|
<el-input v-model="form.params.billCodeStr" rows="2" type="textarea" placeholder="部分开票请填写单号,多单请使用逗号隔开" />
|
||||||
<el-button type="primary" @click="addBillToApply">加入单号</el-button>
|
<el-button type="primary" @click="addBillToApply" v-preventReClick>加入单号</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
class="cargoList"
|
class="cargoList"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user