|
@@ -1800,7 +1800,7 @@ export default {
|
|
|
row.integralMultiples = event.integralMultiples
|
|
|
this.quantityChange(row)
|
|
|
},
|
|
|
- queryData(id, isCopy = false){
|
|
|
+ queryData(id, isCopy = false,other){
|
|
|
this.pageLoading = true
|
|
|
this.saveLoading = true
|
|
|
detail(id).then(async res => {
|
|
@@ -1912,6 +1912,9 @@ export default {
|
|
|
delete item.pid
|
|
|
})
|
|
|
}
|
|
|
+ if (other === 'check'){
|
|
|
+ this.pleaseCheck()
|
|
|
+ }
|
|
|
}).finally(() => {
|
|
|
this.saveLoading = false
|
|
|
this.pageLoading = false
|
|
@@ -3066,7 +3069,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//修改提交触发
|
|
|
- editCustomer(isBack = false, type) {
|
|
|
+ editCustomer(isBack = false, type,other) {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
const length = this.goodsActives === 'gift'? this.contactsData.length: this.goodsShowData.length
|
|
@@ -3154,14 +3157,16 @@ export default {
|
|
|
this.saveLoading = true
|
|
|
typeSave(this.form).then(res => {
|
|
|
// this.$set(this.detailData, 'seeDisabled', true);
|
|
|
- this.$message({type: "success", message: this.form.id ? "修改成功!" : "新增成功!"});
|
|
|
+ if (!other){
|
|
|
+ this.$message({type: "success", message: this.form.id ? "修改成功!" : "新增成功!"});
|
|
|
+ }
|
|
|
if (isBack) {
|
|
|
//成功关闭此页面回到列表页
|
|
|
this.$emit("goBack");
|
|
|
this.leaveDetailsKey(this.$route.name)
|
|
|
} else {
|
|
|
this.saveActives = ''
|
|
|
- this.queryData(res.data.data.id)
|
|
|
+ this.queryData(res.data.data.id,false,other)
|
|
|
}
|
|
|
if (type == '发货') {
|
|
|
let lsit = []
|
|
@@ -3618,6 +3623,9 @@ export default {
|
|
|
},
|
|
|
// 请核
|
|
|
pleaseCheck() {
|
|
|
+ if (!this.form.id){
|
|
|
+ return this.editCustomer(false,'','check')
|
|
|
+ }
|
|
|
const giftList = this.goodsActives == 'gift'? this.goodsShowData: this.giftData
|
|
|
if (this.verification()) {
|
|
|
this.$confirm(giftList.length == 0?"此单没有赠品,确定提交此次审批吗?": "您确定提交此次申请吗?", {
|