提交 bd606350 authored 作者: huaxinzhu's avatar huaxinzhu

Merge branch 'dev_hxz' into test

...@@ -36,10 +36,10 @@ ...@@ -36,10 +36,10 @@
<p class="withdraw-tip-spe">当前提现手续费为:{{ chargeCount }}</p> <p class="withdraw-tip-spe">当前提现手续费为:{{ chargeCount }}</p>
</el-form-item> </el-form-item>
<el-form-item label="支付密码:" prop="pay_pass"> <el-form-item label="提现密码:" prop="pay_pass">
<el-input v-model="assetForm.pay_pass" type="password" placeholder="请输入提现密码" style="width:420px;"/> <el-input v-model="assetForm.pay_pass" type="password" placeholder="请输入提现密码" style="width:420px;"/>
<span class="withdraw-tip"> <span class="withdraw-tip">
忘记支付密码?<span class="spe-span-a" @click="goToSetting">重新设定</span> 忘记提现密码?<span class="spe-span-a" @click="goToSetting">重新设定</span>
</span> </span>
</el-form-item> </el-form-item>
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
rules: { rules: {
bank_id: [{required: true, message: "请选择要提现的银行卡", trigger: "change"}], bank_id: [{required: true, message: "请选择要提现的银行卡", trigger: "change"}],
code: [{required: true, message: "短信验证码不能为空", trigger: "blur"}], code: [{required: true, message: "短信验证码不能为空", trigger: "blur"}],
pay_pass: [{required: true, message: "支付密码必须填写", trigger: "blur"}] pay_pass: [{required: true, message: "提现密码必须填写", trigger: "blur"}]
}, },
}; };
}, },
......
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
is_default: null, is_default: null,
charge_type: null, charge_type: null,
dispatching: null, dispatching: null,
disdispatching: null, dis_dispatching: null,
publish: null, publish: null,
created: null, created: null,
modified: null, modified: null,
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
is_default: null, is_default: null,
charge_type: null, charge_type: null,
dispatching: null, dispatching: null,
disdispatching: null, dis_dispatching: null,
publish: null, publish: null,
created: null, created: null,
modified: null modified: null
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
np: 5, np: 5,
} }
], ],
disDispatching: "", dis_dispatching: "",
publish: 0, publish: 0,
}; };
this.title = "添加运费模板"; this.title = "添加运费模板";
......
...@@ -219,15 +219,22 @@ export default { ...@@ -219,15 +219,22 @@ export default {
}, },
methods: { methods: {
btndisabled(){ btndisabled(){
//debugger
let checkListString = ''; let checkListString = '';
if(this.btnindex == 99){ if (this.btnindex == 99) {
checkListString = this.checkList.join(); checkListString = this.checkList.join();
if(checkListString.substr(0,1) === ',') { if (checkListString.substr(0, 1) === ',') {
checkListString = checkListString.slice(1); checkListString = checkListString.slice(1);
} }
this.goodsDate.dis_dispatching = checkListString; this.goodsDate.dis_dispatching = checkListString;
}else{ } else {
this.goodsDate.dispatching[this.btnindex].a = this.checkList.join() for(let i = 0; i < this.checkList.length; i++) {
if(this.checkList[i] == '') {
this.checkList.splice(i,1)
i--
}
}
this.goodsDate.dispatching[this.btnindex].a = this.checkList.join()
} }
this.dialogVisible = false this.dialogVisible = false
}, },
...@@ -237,30 +244,37 @@ export default { ...@@ -237,30 +244,37 @@ export default {
}) })
}, },
/** 选择 配送区域*/
opendias(type, i, index) { opendias(type, i, index) {
//debugger
this.goodsDate.dispatching.forEach((element) => { this.goodsDate.dispatching.forEach((element) => {
let arrd = element.a.split(',') if(element.a && element.a != '') {
for(let i=0;i<arrd.length;i++){ let arrd = element.a.split(',')
this.disabledate.push(arrd[i]); for (let i = 0; i < arrd.length; i++) {
this.disabledate.push(arrd[i]);
}
} }
}); });
let arr = this.goodsDate.dis_dispatching.split(','); let arr = this.goodsDate.dis_dispatching.split(',');
for(let i=0;i<arr.length;i++){ for (let i = 0; i < arr.length; i++) {
this.disabledate.push(arr[i]); this.disabledate.push(arr[i]);
} }
this.btnindex = index; this.btnindex = index;
this.arrlist.forEach(item =>{ this.arrlist.forEach(item => {
item.value = false; item.value = false;
}) })
this.checkList = type.split(","); this.checkList = type.split(",");
let disabledates = JSON.parse(JSON.stringify(this.disabledate)); //可以将json对象转换成json对符串 let disabledates = JSON.parse(JSON.stringify(this.disabledate)); //可以将json对象转换成json对符串
let disabarr = this.unique(disabledates,this.checkList) //去掉当前选择的disabled效果 let disabarr = this.unique(disabledates, this.checkList) //去掉当前选择的disabled效果
this.arrlist.forEach(item =>{ this.arrlist.forEach(item => {
if (disabarr.includes(item.lable)) { if (disabarr.includes(item.lable)) {
item.value = true item.value = true
} }
}) })
this.dialogVisible = true; this.dialogVisible = true;
......
...@@ -496,10 +496,12 @@ export default { ...@@ -496,10 +496,12 @@ export default {
// 批量 补单发货 // 批量 补单发货
if (this.goShippingNum === 2 ) { if (this.goShippingNum === 2 ) {
debugger
let listObj = { list: [] } let listObj = { list: [] }
this.goods_ids.forEach((item,index)=> { this.goods_ids.forEach((item,index)=> {
item['express_name'] = expressName; item['express_name'] = expressName;
item['express_sn'] = this.express_sn item['express_sn'] = this.express_sn;
item['express_code'] = this.expressNum;
}) })
listObj.list = this.goods_ids; listObj.list = this.goods_ids;
...@@ -544,11 +546,13 @@ export default { ...@@ -544,11 +546,13 @@ export default {
let orderObj = { let orderObj = {
id: 0, id: 0,
express_name: '', express_name: '',
express_sn: '' express_sn: '',
express_code: '',
} }
orderObj.id = this.goods_ids; orderObj.id = this.goods_ids;
orderObj.express_name = expressName; orderObj.express_name = expressName;
orderObj.express_code = this.expressNum;
orderObj.express_sn = this.express_sn; orderObj.express_sn = this.express_sn;
singleOrderObj.list.push(orderObj); singleOrderObj.list.push(orderObj);
......
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
<el-divider></el-divider> <el-divider></el-divider>
</div> </div>
<el-form-item label="支付密码:"> <el-form-item label="提现密码:">
<el-input v-model="setForm.paypsd" :disabled="true" style="width: 300px;margin-right:20px;"></el-input> <el-input v-model="setForm.paypsd" :disabled="true" style="width: 300px;margin-right:20px;"></el-input>
<el-button type="primary" icon="el-icon-edit" @click="editPay('payForm')">修改密码</el-button> <el-button type="primary" icon="el-icon-edit" @click="editPay('payForm')">修改密码</el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<p class="tipsGray">支付密码用于提现,请妥善保管您的支付密码,切勿告诉其他人,以免财产造成损失!</p> <p class="tipsGray">提现密码用于提现,请妥善保管您的提现密码,切勿告诉其他人,以免财产造成损失!</p>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
...@@ -87,8 +87,8 @@ ...@@ -87,8 +87,8 @@
<el-button type="primary" @click="submitLogin('loginForm')">确 定</el-button> <el-button type="primary" @click="submitLogin('loginForm')">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!--修改支付密码 对话框--> <!--修改提现密码 对话框-->
<el-dialog title="修改支付密码" :visible.sync="isPay" width="50%"> <el-dialog title="修改提现密码" :visible.sync="isPay" width="50%">
<el-form :model="payForm" :rules="payRules" ref="payForm" label-width="200px" size="small"> <el-form :model="payForm" :rules="payRules" ref="payForm" label-width="200px" size="small">
<el-form-item label="新密码:" prop="password"> <el-form-item label="新密码:" prop="password">
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
callback(); callback();
} }
}; };
// 校验 支付密码 // 校验 提现密码
let checkPayPsd = (rule, value, callback) => { let checkPayPsd = (rule, value, callback) => {
const reg = /^[0-9]{6}$/; const reg = /^[0-9]{6}$/;
if (value === '') { if (value === '') {
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
}, },
mounted() { mounted() {
this.setForm.name = this.$store.state.user.name; this.setForm.name = this.$store.state.user.name;
console.log(333,this.setForm.name); //console.log(333,this.setForm.name);
let repStr = this.setForm.name.substring(3,7); let repStr = this.setForm.name.substring(3,7);
this.showMobilePlaceholder = '请输入' + this.setForm.name.replace(repStr, '****') + '的验证码'; this.showMobilePlaceholder = '请输入' + this.setForm.name.replace(repStr, '****') + '的验证码';
}, },
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
editLogin() { editLogin() {
this.isLogin = true; this.isLogin = true;
}, },
// 修改 支付密码 // 修改 提现密码
editPay() { editPay() {
this.isPay = true; this.isPay = true;
}, },
...@@ -317,7 +317,7 @@ ...@@ -317,7 +317,7 @@
} }
}); });
}, },
// 修改支付密码,获取手机验证码 // 修改提现密码,获取手机验证码
getPayCode() { getPayCode() {
let paypsdReg = /^[0-9]{6}$/; let paypsdReg = /^[0-9]{6}$/;
if (this.payForm.password === '' || !paypsdReg.test(this.payForm.password)) { if (this.payForm.password === '' || !paypsdReg.test(this.payForm.password)) {
...@@ -410,13 +410,13 @@ ...@@ -410,13 +410,13 @@
} }
}); });
}, },
// 支付密码 确定 // 提现密码 确定
submitPay(formName) { submitPay(formName) {
this.$refs[formName].validate(valid => { this.$refs[formName].validate(valid => {
if (valid) { if (valid) {
changePayPassword(this.payForm).then(res => { changePayPassword(this.payForm).then(res => {
if(res.code === 1) { if(res.code === 1) {
this.$message({type:"success",message: '支付密码修改成功'}); this.$message({type:"success",message: '提现密码修改成功'});
this.clearAccountCodeDown(); this.clearAccountCodeDown();
this.isPay = false; this.isPay = false;
}else { }else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论