给业务单据的保存增加快捷键
This commit is contained in:
parent
d80d3b0fc4
commit
c38bb01dfb
@ -12,6 +12,7 @@
|
||||
"ant-design-vue": "1.5.2",
|
||||
"area-data": "^5.0.6",
|
||||
"axios": "^0.18.0",
|
||||
"chinese-to-pinyin": "^1.0.2",
|
||||
"clipboard": "^2.0.4",
|
||||
"codemirror": "^5.46.0",
|
||||
"dayjs": "^1.8.0",
|
||||
@ -36,8 +37,7 @@
|
||||
"vue-router": "^3.0.1",
|
||||
"vue-splitpane": "^1.0.4",
|
||||
"vuedraggable": "^2.20.0",
|
||||
"vuex": "^3.1.0",
|
||||
"chinese-to-pinyin": "^1.0.2"
|
||||
"vuex": "^3.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/polyfill": "^7.2.5",
|
||||
|
||||
@ -78,12 +78,27 @@ export const BillModalMixin = {
|
||||
this.width = realScreenWidth<1500?'1200px':'1550px'
|
||||
this.minWidth = realScreenWidth<1500?1150:1500
|
||||
},
|
||||
mounted() {
|
||||
document.getElementById(this.prefixNo).addEventListener('keydown', this.handleOkKey)
|
||||
},
|
||||
beforeDestroy() {
|
||||
document.getElementById(this.prefixNo).removeEventListener('keydown', this.handleOkKey)
|
||||
},
|
||||
computed: {
|
||||
readOnly: function() {
|
||||
return this.action !== "add" && this.action !== "edit";
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 快捷键
|
||||
handleOkKey(e) {
|
||||
const key = window.event.keyCode ? window.event.keyCode : window.event.which
|
||||
if (key === 83 && e.ctrlKey) {
|
||||
//保存 CTRL+S
|
||||
this.handleOk()
|
||||
e.preventDefault()
|
||||
}
|
||||
},
|
||||
addInit(amountNum) {
|
||||
getAction('/sequence/buildNumber').then((res) => {
|
||||
if (res && res.code === 200) {
|
||||
|
||||
@ -6,15 +6,17 @@
|
||||
:confirmLoading="confirmLoading"
|
||||
:keyboard="false"
|
||||
:forceRender="true"
|
||||
v-bind:prefixNo="prefixNo"
|
||||
fullscreen
|
||||
switchFullscreen
|
||||
@cancel="handleCancel"
|
||||
:id="prefixNo"
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('调拨出库')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -6,15 +6,17 @@
|
||||
:confirmLoading="confirmLoading"
|
||||
:keyboard="false"
|
||||
:forceRender="true"
|
||||
v-bind:prefixNo="prefixNo"
|
||||
fullscreen
|
||||
switchFullscreen
|
||||
@cancel="handleCancel"
|
||||
:id="prefixNo"
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('组装单')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -6,15 +6,17 @@
|
||||
:confirmLoading="confirmLoading"
|
||||
:keyboard="false"
|
||||
:forceRender="true"
|
||||
v-bind:prefixNo="prefixNo"
|
||||
fullscreen
|
||||
switchFullscreen
|
||||
@cancel="handleCancel"
|
||||
:id="prefixNo"
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('拆卸单')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -6,15 +6,17 @@
|
||||
:confirmLoading="confirmLoading"
|
||||
:keyboard="false"
|
||||
:forceRender="true"
|
||||
v-bind:prefixNo="prefixNo"
|
||||
fullscreen
|
||||
switchFullscreen
|
||||
@cancel="handleCancel"
|
||||
:id="prefixNo"
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('其它入库')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -6,15 +6,17 @@
|
||||
:confirmLoading="confirmLoading"
|
||||
:keyboard="false"
|
||||
:forceRender="true"
|
||||
v-bind:prefixNo="prefixNo"
|
||||
fullscreen
|
||||
switchFullscreen
|
||||
@cancel="handleCancel"
|
||||
:id="prefixNo"
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('其它出库')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('请购单')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -6,15 +6,17 @@
|
||||
:confirmLoading="confirmLoading"
|
||||
:keyboard="false"
|
||||
:forceRender="true"
|
||||
v-bind:prefixNo="prefixNo"
|
||||
fullscreen
|
||||
switchFullscreen
|
||||
@cancel="handleCancel"
|
||||
:id="prefixNo"
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('采购退货出库')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('采购入库')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('采购订单')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -6,15 +6,17 @@
|
||||
:confirmLoading="confirmLoading"
|
||||
:keyboard="false"
|
||||
:forceRender="true"
|
||||
v-bind:prefixNo="prefixNo"
|
||||
fullscreen
|
||||
switchFullscreen
|
||||
@cancel="handleCancel"
|
||||
:id="prefixNo"
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('零售退货入库')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('零售出库')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -6,15 +6,17 @@
|
||||
:confirmLoading="confirmLoading"
|
||||
:keyboard="false"
|
||||
:forceRender="true"
|
||||
v-bind:prefixNo="prefixNo"
|
||||
fullscreen
|
||||
switchFullscreen
|
||||
@cancel="handleCancel"
|
||||
:id="prefixNo"
|
||||
style="top:20px;height: 95%;">
|
||||
<template slot="footer">
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('销售退货入库')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('销售订单')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<a-button @click="handleCancel">取消</a-button>
|
||||
<a-button v-if="billPrintFlag && isShowPrintBtn" @click="handlePrint('销售出库')">三联打印预览</a-button>
|
||||
<a-button v-if="checkFlag && isCanCheck" :loading="confirmLoading" @click="handleOkAndCheck">保存并审核</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存</a-button>
|
||||
<a-button type="primary" :loading="confirmLoading" @click="handleOk">保存(Ctrl+S)</a-button>
|
||||
<!--发起多级审核-->
|
||||
<a-button v-if="!checkFlag" @click="handleWorkflow()" type="primary">提交流程</a-button>
|
||||
</template>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user