|
|
@@ -143,8 +143,8 @@
|
|
|
<div class="accounts-list">
|
|
|
付款方式
|
|
|
<div class="accounts-center">
|
|
|
- <el-button :type="form.hasPay == 2?'primary':''" @keyup.enter.native="form.hasPay = 2" @click="form.hasPay = 2" size="small">赊账</el-button>
|
|
|
- <el-button :type="form.hasPay == 1?'primary':''" @keyup.enter.native="form.hasPay = 1" @click="form.hasPay = 1" size="small">线下</el-button>
|
|
|
+ <el-button :type="form.hasPay == 2?'primary':''" @keyup.enter.native="form.hasPay = 2" @click="form.hasPay = 2" size="small">赊账( Ctrl + [ )</el-button>
|
|
|
+ <el-button :type="form.hasPay == 1?'primary':''" @keyup.enter.native="form.hasPay = 1" @click="form.hasPay = 1" size="small">线下( Ctrl + ] )</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="accounts-list" v-if="form.hasPay == 1">
|
|
|
@@ -159,8 +159,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">需要(Ctrl + , )</el-button>
|
|
|
- <el-button :type="form.needPrint == 2?'primary':''" @keyup.enter.native="form.needPrint = 2" @click="form.needPrint = 2" size="small">不要(Ctrl + . )</el-button>
|
|
|
+ <el-button :type="form.needPrint == 1?'primary':''" @keyup.enter.native="form.needPrint = 1" @click="form.needPrint = 1" size="small">需要( Ctrl + , )</el-button>
|
|
|
+ <el-button :type="form.needPrint == 2?'primary':''" @keyup.enter.native="form.needPrint = 2" @click="form.needPrint = 2" size="small">不要( Ctrl + . )</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="accounts-list">
|
|
|
@@ -169,7 +169,7 @@
|
|
|
</div>
|
|
|
<div class="accounts-list">
|
|
|
{{ form.hasPay == 2 ? '应收金额' : '实收金额' }}
|
|
|
- <el-input style="width: 80%" v-model="modifyPrice" @focus="modifyPrice=''" clearable></el-input>
|
|
|
+ <el-input style="width: 80%" v-model="modifyPrice" clearable></el-input>
|
|
|
</div>
|
|
|
|
|
|
<div class="accounts-list" v-if="modifyPrice > 0 && modifyPrice > finalPrice" style="font-size:25upx;margin-left:20upx;color:red;font-weight:bold;">
|
|
|
@@ -187,7 +187,7 @@
|
|
|
</div>
|
|
|
<div class="accounts-list">
|
|
|
开单人员
|
|
|
- <el-select ref="kdStaffRef" style="width:80%" v-model="form.getStaffName" filterable placeholder="请选择" @change="changeKdStaff">
|
|
|
+ <el-select ref="kdStaffRef" style="width:80%" v-model="form.getStaffName" placeholder="请选择" @change="changeKdStaff">
|
|
|
<el-option v-for="item in staffList" :key="item.id" :label="item.name" :value="item"> </el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
@@ -376,6 +376,16 @@ export default {
|
|
|
that.$refs.kdStaffRef.focus()
|
|
|
}
|
|
|
}
|
|
|
+ if( e && e.key=='[' && e.ctrlKey){
|
|
|
+ if(that.showCommitPop == true){
|
|
|
+ that.form.hasPay = 2
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if( e && e.key==']' && e.ctrlKey){
|
|
|
+ if(that.showCommitPop == true){
|
|
|
+ that.form.hasPay = 1
|
|
|
+ }
|
|
|
+ }
|
|
|
if(e && e.key=='Delete'){
|
|
|
if(that.selectList[that.selectIndex]){
|
|
|
let current = that.selectList[that.selectIndex]
|
|
|
@@ -423,7 +433,7 @@ export default {
|
|
|
for(const ele of that.staffList){
|
|
|
if(currentStaff.id == ele.id){
|
|
|
that.form.getStaffId = ele.id
|
|
|
- that.form.getStaffName = ele.name+'(Ctrl + / )'
|
|
|
+ that.form.getStaffName = ele.name+'( Ctrl + / )'
|
|
|
}
|
|
|
}
|
|
|
}
|