|
|
@@ -151,10 +151,12 @@ export default {
|
|
|
var file = e.target.files[0];
|
|
|
if (file === undefined) {
|
|
|
self.$set(self.ruleForm, "companyPayImg", "");
|
|
|
+ e.target.value = "";
|
|
|
return;
|
|
|
}
|
|
|
if (file.size > 1 * 1024 * 1024) {
|
|
|
self.$message.error("图片不得大于1MB");
|
|
|
+ e.target.value = "";
|
|
|
return;
|
|
|
}
|
|
|
var type = e.target.files[0].name
|
|
|
@@ -166,10 +168,10 @@ export default {
|
|
|
e.target.value = "";
|
|
|
return;
|
|
|
}
|
|
|
- this.$upload.upload(file, 0).then(res => {
|
|
|
- self.ruleForm.companyPayImg = self.$tools.splitImgHost(res);
|
|
|
+ this.$upload.upload(file, 0, {}, false).then(res => {
|
|
|
+ self.$set(self.ruleForm,'companyPayImg',self.$tools.splitImgHost(res))
|
|
|
this.$refs["ruleForm"].validateField("companyPayImg");
|
|
|
- });
|
|
|
+ }).finally(()=>{e.target.value = "";})
|
|
|
},
|
|
|
openBoxs(sn, status = true) {
|
|
|
this.changeStatus = status;
|
|
|
@@ -182,6 +184,9 @@ export default {
|
|
|
};
|
|
|
this.visible = true;
|
|
|
this.getOrderData();
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs["ruleForm"].clearValidate();
|
|
|
+ });
|
|
|
},
|
|
|
getOrderData() {
|
|
|
this.$request
|
|
|
@@ -199,36 +204,44 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["ruleForm"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- if (this.orderInfo.payStatus == -2) {
|
|
|
- this.$request
|
|
|
- .orderhandleupdateRefuseBo({
|
|
|
- handleOrderSn: this.handleOrderSn,
|
|
|
- ...this.ruleForm
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- this.$message.success("提交成功");
|
|
|
- this.$emit("backFunc");
|
|
|
- this.visible = false;
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- this.$message.error(err.msg);
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.$request
|
|
|
- .orderhandleresumePay({
|
|
|
- payType: 2,
|
|
|
- handleOrderSn: this.handleOrderSn,
|
|
|
- ...this.ruleForm
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- this.$message.success("提交成功");
|
|
|
- this.$emit("backFunc");
|
|
|
- this.visible = false;
|
|
|
- })
|
|
|
- .catch(err => {
|
|
|
- this.$message.error(err.msg);
|
|
|
- });
|
|
|
- }
|
|
|
+ this.$confirm("确定提交吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ if (this.orderInfo.payStatus == -2) {
|
|
|
+ this.$request
|
|
|
+ .orderhandleupdateRefuseBo({
|
|
|
+ handleOrderSn: this.handleOrderSn,
|
|
|
+ ...this.ruleForm
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ this.$message.success("提交成功");
|
|
|
+ this.$emit("backFunc");
|
|
|
+ this.visible = false;
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ this.$message.error(err.msg);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$request
|
|
|
+ .orderhandleresumePay({
|
|
|
+ payType: 2,
|
|
|
+ handleOrderSn: this.handleOrderSn,
|
|
|
+ ...this.ruleForm
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ this.$message.success("提交成功");
|
|
|
+ this.$emit("backFunc");
|
|
|
+ this.visible = false;
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ this.$message.error(err.msg);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
} else {
|
|
|
console.log("error submit!!");
|
|
|
return false;
|
|
|
@@ -248,6 +261,7 @@ export default {
|
|
|
textArea.select();
|
|
|
document.execCommand("copy");
|
|
|
document.body.removeChild(textArea);
|
|
|
+ this.$message.success("复制成功")
|
|
|
};
|
|
|
func(
|
|
|
`企业全称:${this.orderInfo.recCompanyName},开户银行:${
|
|
|
@@ -257,10 +271,11 @@ export default {
|
|
|
this.orderInfo.recCompanyAccount.slice(
|
|
|
0,
|
|
|
6
|
|
|
- )}(打款时请备注此信息),转账金额:¥${this.orderInfo.payPrice && this.orderInfo.payPrice.toLocaleString(
|
|
|
- "zh-CN",
|
|
|
- (undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
|
- )}`
|
|
|
+ )}(打款时请备注此信息),转账金额:¥${this.orderInfo.payPrice &&
|
|
|
+ this.orderInfo.payPrice.toLocaleString(
|
|
|
+ "zh-CN",
|
|
|
+ (undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })
|
|
|
+ )}`
|
|
|
);
|
|
|
}
|
|
|
}
|