|
|
@@ -12,9 +12,7 @@
|
|
|
<span style="font-weight:bold;color:black;">客户:{{form.customName}}</span>
|
|
|
<span>全屏:F11</span>
|
|
|
<span>提交:F9</span>
|
|
|
- <span>改价:F8</span>
|
|
|
- <span>数量加:+</span>
|
|
|
- <span>数量减:-</span>
|
|
|
+ <span>修改:回车</span>
|
|
|
<span>删除:Delete</span>
|
|
|
<span>删除所有:Page Down</span>
|
|
|
</p>
|
|
|
@@ -145,8 +143,8 @@
|
|
|
<div class="accounts-list">
|
|
|
打印小票
|
|
|
<div class="accounts-center">
|
|
|
- <el-button :type="form.needPrint == 1?'primary':''" @keyup.enter.native="form.needPrint = 1" @click="form.needPrint = 1" size="small">需要</el-button>
|
|
|
- <el-button :type="form.needPrint == 2?'primary':''" @keyup.enter.native="form.needPrint = 2" @click="form.needPrint = 2" size="small">不要</el-button>
|
|
|
+ <el-button :type="form.needPrint == 1?'primary':''" @keyup.enter.native="form.needPrint = 1" @click="form.needPrint = 1" size="small">需要(-)</el-button>
|
|
|
+ <el-button :type="form.needPrint == 2?'primary':''" @keyup.enter.native="form.needPrint = 2" @click="form.needPrint = 2" size="small">不要(=)</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="accounts-list">
|
|
|
@@ -180,11 +178,7 @@
|
|
|
<div class="accounts-list">
|
|
|
备注
|
|
|
<div class="accounts-center">
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- :rows="2"
|
|
|
- placeholder="请输入内容" v-model="remark">
|
|
|
- </el-input>
|
|
|
+ <el-input type="textarea" :rows="2" placeholder="请输入内容,F8 插入光标" v-model="remark" ref="remarkRef"> </el-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="accounts-list">
|
|
|
@@ -337,12 +331,12 @@ export default {
|
|
|
that.goDown();
|
|
|
}
|
|
|
if(e && e.key=='='){
|
|
|
- that.addBigNum()
|
|
|
+ that.form.needPrint = 2
|
|
|
}
|
|
|
if( e && e.key=='-'){
|
|
|
- that.subBigNum()
|
|
|
+ that.form.needPrint = 1
|
|
|
}
|
|
|
- if(e && e.key=='Delete'){
|
|
|
+ if(e && e.key=='Delete' && e.ctrlKey){
|
|
|
that.selectList.splice(that.selectIndex, 1);
|
|
|
that.$refs.singleTable.setCurrentRow(that.selectList[0]);
|
|
|
}
|
|
|
@@ -356,27 +350,22 @@ export default {
|
|
|
}
|
|
|
that.escFun();
|
|
|
}
|
|
|
- if( e && e.key=='F8'){
|
|
|
- if(that.selectList!=''){
|
|
|
- that.isAmendPrice = true;
|
|
|
- that.priceAmend = 0;
|
|
|
- that.priceAmend = that.selectList[that.selectIndex].price;
|
|
|
- that.$nextTick(()=>{
|
|
|
- that.$refs['priceInput'].focus()
|
|
|
- that.$refs['priceInput'].select()
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
if( e && e.key=='F9' ){
|
|
|
if(that.$util.isEmpty(that.selectList)){
|
|
|
that.$message({message: '请选择花材',type: 'warning'});
|
|
|
return;
|
|
|
}
|
|
|
+ that.$refs['itemSearchRef'].blur()
|
|
|
that.setSendType(0)
|
|
|
that.setTransType(4)
|
|
|
that.form.hasPay = 2
|
|
|
that.showCommitPop = true
|
|
|
}
|
|
|
+ if(e && e.key=='F8'){
|
|
|
+ that.$nextTick(() => {
|
|
|
+ that.$refs.remarkRef.focus()
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
//门店信息
|
|
|
this.$service.common.shopInfo().then(res => {
|
|
|
@@ -669,34 +658,6 @@ export default {
|
|
|
this.priceAmend = 0;
|
|
|
this.escFun();
|
|
|
},
|
|
|
- addBigNum(){
|
|
|
- let currentItem = this.selectList[this.selectIndex];
|
|
|
- this.selectList[this.selectIndex].big++
|
|
|
- let money = Number(currentItem.price) * (Number(currentItem.big) + Number(currentItem.small) / Number(currentItem.ratio));
|
|
|
- this.selectList[this.selectIndex].count = this.selectList[this.selectIndex].big+'/'+Number(this.selectList[this.selectIndex].small);
|
|
|
- this.selectList[this.selectIndex].money = money;
|
|
|
- this.selectList[this.selectIndex].totalMoney = money.toFixed(2)
|
|
|
- setTimeout(()=>{
|
|
|
- this.searchVal = '';
|
|
|
- },100)
|
|
|
- },
|
|
|
- subBigNum(){
|
|
|
- let currentItem = this.selectList[this.selectIndex];
|
|
|
- if(this.selectList[this.selectIndex].big==1){
|
|
|
- setTimeout(()=>{
|
|
|
- this.searchVal = '';
|
|
|
- },100)
|
|
|
- return;
|
|
|
- }
|
|
|
- this.selectList[this.selectIndex].big--
|
|
|
- let money = Number(currentItem.price) * (Number(currentItem.big) + Number(currentItem.small) / Number(currentItem.ratio));
|
|
|
- this.selectList[this.selectIndex].count = this.selectList[this.selectIndex].big+'/'+Number(this.selectList[this.selectIndex].small);
|
|
|
- this.selectList[this.selectIndex].money = money;
|
|
|
- this.selectList[this.selectIndex].totalMoney = money.toFixed(2)
|
|
|
- setTimeout(()=>{
|
|
|
- this.searchVal = '';
|
|
|
- },100)
|
|
|
- },
|
|
|
goDown(){
|
|
|
if(this.isSeek){
|
|
|
let selectListLength = this.getItemList.length-1;
|