|
|
@@ -248,6 +248,12 @@
|
|
|
<view class="tui-input">{{ form.staffName }}</view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">欠款超额后</div>
|
|
|
+ <button class="admin-button-com middle" :class="[form.debtLimitPay == 0 ? 'blue' : 'default']" @click="debtLimitPayBtn(0)">现金可下单</button>
|
|
|
+ <button class="admin-button-com middle" :class="[form.debtLimitPay == 1 ? 'blue' : 'default']" @click="debtLimitPayBtn(1)" style="margin-left:15upx;">现金不能下单</button>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
@@ -334,7 +340,7 @@ import ModalModule from "@/components/plugin/modal"
|
|
|
import { getUserDet,debt} from "@/api/member";
|
|
|
import { IMGHOST } from '@/config'
|
|
|
import { mapGetters } from "vuex"
|
|
|
-import { changeShowStock,changePassStatus,toChangeHome,changeWlName,modifyShortName,modifyHomeAmount,changeLevel,createSeatSnFn,modifySeatSnFn,changeDelStatus } from "@/api/custom"
|
|
|
+import { changeShowStock,changePassStatus,toChangeHome,changeWlName,modifyShortName,modifyHomeAmount,changeLevel,changeDebtLimitPay,createSeatSnFn,modifySeatSnFn,changeDelStatus } from "@/api/custom"
|
|
|
import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeFn,getGatheringCode} from "@/api/custom";
|
|
|
import { getAllDist,changeDist } from "@/api/dist"
|
|
|
export default {
|
|
|
@@ -360,7 +366,8 @@ export default {
|
|
|
wlId:0,
|
|
|
level:1,
|
|
|
staffName:'',
|
|
|
- staffId:0
|
|
|
+ staffId:0,
|
|
|
+ debtLimitPay:0
|
|
|
},
|
|
|
wlSelData: {},
|
|
|
discount:null,
|
|
|
@@ -499,6 +506,17 @@ export default {
|
|
|
},
|
|
|
changeIntroducer(){
|
|
|
|
|
|
+ },
|
|
|
+ debtLimitPayBtn(pay){
|
|
|
+ if(this.form.debtLimitPay == pay){
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ this.form.debtLimitPay = pay
|
|
|
+ changeDebtLimitPay({ customId: this.userInfo.id, pay:pay }).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg(res.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
changeLevelBtn(level) {
|
|
|
const that = this;
|
|
|
@@ -731,6 +749,7 @@ export default {
|
|
|
this.form.home = this.userInfo.home
|
|
|
this.form.staffId = this.userInfo.staffId
|
|
|
this.form.staffName = this.userInfo.staffName
|
|
|
+ this.form.debtLimitPay = this.userInfo.debtLimitPay||0
|
|
|
this.discount = parseFloat(res.data.discount)
|
|
|
if(res.data.remainDebtAmount && Number(res.data.remainDebtAmount)>0){
|
|
|
let name = res.data.name && !this.$util.isEmpty(res.data.name) ? res.data.name+' 待结金额' : '待结金额'
|