Commit 9d73ccd4 authored by youjie's avatar youjie

优化制单

parent edd78af1
...@@ -63,7 +63,8 @@ ...@@ -63,7 +63,8 @@
</el-popover> </el-popover>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('pub.addBtn')" placement="top"> <el-tooltip class="item" effect="dark" :content="$t('pub.addBtn')" placement="top">
<i class="edit el-icon-circle-plus-outline" @click="goUrl('addFinancialDocuments',item.Id,item.Name+$t('visa.v_dan'),item.Type,item.IsUploadPic)"></i> <i class="edit el-icon-circle-plus-outline"
@click="goUrl('addFinancialDocuments',item.Id,item.Name+$t('visa.v_dan'),item.Type,item.IsUploadPic)"></i>
</el-tooltip> </el-tooltip>
</div> </div>
</li> </li>
...@@ -162,7 +163,7 @@ ...@@ -162,7 +163,7 @@
"platformAccount":this.platformAccount, "platformAccount":this.platformAccount,
"id":id, "id":id,
"Name":Name, "Name":Name,
"Type":this.tradeObj.ReFinanceId2, "Type":this.tradeObj.ReFinanceId2,//Type
"tradeObj":JSON.stringify(this.tradeObj), "tradeObj":JSON.stringify(this.tradeObj),
"orderObj":this.orderObj, "orderObj":this.orderObj,
'path':this.$route.query.path, 'path':this.$route.query.path,
...@@ -237,7 +238,7 @@ ...@@ -237,7 +238,7 @@
query:{ query:{
"id":id, "id":id,
"Name":Name, "Name":Name,
"Type":Type, "Type":this.tradeObj.ReFinanceId2,//Type
"tradeObj":JSON.stringify(this.tradeObj), "tradeObj":JSON.stringify(this.tradeObj),
'path':this.$route.query.path, 'path':this.$route.query.path,
blank:'y', blank:'y',
...@@ -272,7 +273,7 @@ ...@@ -272,7 +273,7 @@
query:{ query:{
"id":id, "id":id,
"Name":Name, "Name":Name,
"Type":Type, "Type":this.tradeObj.ReFinanceId2,//Type
"tradeObj":JSON.stringify(this.tradeObj), "tradeObj":JSON.stringify(this.tradeObj),
'path':this.$route.query.path, 'path':this.$route.query.path,
'IsUploadPic':IsUploadPic, 'IsUploadPic':IsUploadPic,
......
...@@ -656,7 +656,7 @@ ...@@ -656,7 +656,7 @@
> >
<i <i
class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6" class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(item, index, 2)" @click="makeAdocument(item, index, 3)"
></i> ></i>
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -988,6 +988,12 @@ export default { ...@@ -988,6 +988,12 @@ export default {
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, name) { makeAdocument(row, index, num, name) {
let type = 0
if(num==3){
type = 2
}else{
type = num
}
this.BillMakingMsg.ReFinanceId = row.OrderId; this.BillMakingMsg.ReFinanceId = row.OrderId;
this.BillMakingMsg.ReFinanceId2 = num; this.BillMakingMsg.ReFinanceId2 = num;
if (name == "Hand") { if (name == "Hand") {
...@@ -1005,7 +1011,7 @@ export default { ...@@ -1005,7 +1011,7 @@ export default {
query = { query = {
blank: "y", blank: "y",
tab: `新增${text}单据`, tab: `新增${text}单据`,
Type: num, Type: type,
tradeObj: JSON.stringify(this.BillMakingMsg) tradeObj: JSON.stringify(this.BillMakingMsg)
}; };
this.$store.commit("ChoiceAddFinancialDocuments"); this.$store.commit("ChoiceAddFinancialDocuments");
......
...@@ -636,7 +636,7 @@ ...@@ -636,7 +636,7 @@
> >
<i <i
class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6" class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(item, index, 2)" @click="makeAdocument(item, index, 3)"
></i> ></i>
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -897,6 +897,12 @@ export default { ...@@ -897,6 +897,12 @@ export default {
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, name) { makeAdocument(row, index, num, name) {
let type = 0
if(num==3){
type = 2
}else{
type = num
}
this.BillMakingMsg.ReFinanceId = row.OrderId; this.BillMakingMsg.ReFinanceId = row.OrderId;
this.BillMakingMsg.ReFinanceId2 = num; this.BillMakingMsg.ReFinanceId2 = num;
if (name == "Hand") { if (name == "Hand") {
...@@ -910,11 +916,13 @@ export default { ...@@ -910,11 +916,13 @@ export default {
text = "收款"; text = "收款";
} else if (num == 2) { } else if (num == 2) {
text = "付款"; text = "付款";
} else if (num == 3) {
text = "成本";
} }
query = { query = {
blank: "y", blank: "y",
tab: `新增${text}单据`, tab: `新增${text}单据`,
Type: num, Type: type,
tradeObj: JSON.stringify(this.BillMakingMsg) tradeObj: JSON.stringify(this.BillMakingMsg)
}; };
this.$store.commit("ChoiceAddFinancialDocuments"); this.$store.commit("ChoiceAddFinancialDocuments");
......
...@@ -653,7 +653,7 @@ ...@@ -653,7 +653,7 @@
> >
<i <i
class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6" class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(item, index, 2)" @click="makeAdocument(item, index, 3)"
></i> ></i>
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -1018,6 +1018,12 @@ ...@@ -1018,6 +1018,12 @@
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, name) { makeAdocument(row, index, num, name) {
let type = 0
if(num==3){
type = 2
}else{
type = num
}
this.BillMakingMsg.ReFinanceId = row.OrderId; this.BillMakingMsg.ReFinanceId = row.OrderId;
this.BillMakingMsg.ReFinanceId2 = num; this.BillMakingMsg.ReFinanceId2 = num;
this.BillMakingMsg.OtherType = 67; this.BillMakingMsg.OtherType = 67;
...@@ -1033,7 +1039,7 @@ ...@@ -1033,7 +1039,7 @@
query = { query = {
blank: "y", blank: "y",
tab: `新增${text}单据`, tab: `新增${text}单据`,
Type: num, Type: type,
tradeObj: JSON.stringify(this.BillMakingMsg) tradeObj: JSON.stringify(this.BillMakingMsg)
}; };
this.$store.commit("ChoiceAddFinancialDocuments"); this.$store.commit("ChoiceAddFinancialDocuments");
......
...@@ -621,7 +621,7 @@ ...@@ -621,7 +621,7 @@
> >
<i <i
class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6" class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(item, index, 2)" @click="makeAdocument(item, index, 3)"
></i> ></i>
</el-tooltip> </el-tooltip>
</div> </div>
...@@ -1180,6 +1180,12 @@ ...@@ -1180,6 +1180,12 @@
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, name) { makeAdocument(row, index, num, name) {
let type = 0
if(num==3){
type = 2
}else{
type = num
}
this.BillMakingMsg.ReFinanceId = row.Id; this.BillMakingMsg.ReFinanceId = row.Id;
this.BillMakingMsg.ReFinanceId2 = num; this.BillMakingMsg.ReFinanceId2 = num;
this.BillMakingMsg.OtherType = 68; this.BillMakingMsg.OtherType = 68;
...@@ -1195,7 +1201,7 @@ ...@@ -1195,7 +1201,7 @@
query = { query = {
blank: "y", blank: "y",
tab: `新增${text}单据`, tab: `新增${text}单据`,
Type: num, Type: type,
tradeObj: JSON.stringify(this.BillMakingMsg) tradeObj: JSON.stringify(this.BillMakingMsg)
}; };
this.$store.commit("ChoiceAddFinancialDocuments"); this.$store.commit("ChoiceAddFinancialDocuments");
......
...@@ -727,7 +727,7 @@ ...@@ -727,7 +727,7 @@
<el-tooltip v-if="item.OrderStatus == 2 && pagesTitle != '销售'" class="item" effect="dark" content="制单" <el-tooltip v-if="item.OrderStatus == 2 && pagesTitle != '销售'" class="item" effect="dark" content="制单"
placement="top"> placement="top">
<i class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6" <i class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(item, index, 2)"></i> @click="makeAdocument(item, index, 3)"></i>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="column justify-c px15 bgf5 radius5 ml flex-g pa20"> <div class="column justify-c px15 bgf5 radius5 ml flex-g pa20">
...@@ -1163,6 +1163,12 @@ export default { ...@@ -1163,6 +1163,12 @@ export default {
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, name) { makeAdocument(row, index, num, name) {
let type = 0
if(num==3){
type = 2
}else{
type = num
}
this.BillMakingMsg.ReFinanceId = row.OrderId; this.BillMakingMsg.ReFinanceId = row.OrderId;
this.BillMakingMsg.ReFinanceId2 = num; this.BillMakingMsg.ReFinanceId2 = num;
if (name == "Hand") { if (name == "Hand") {
...@@ -1176,11 +1182,13 @@ export default { ...@@ -1176,11 +1182,13 @@ export default {
text = "收款"; text = "收款";
} else if (num == 2) { } else if (num == 2) {
text = "付款"; text = "付款";
} else if (num == 3) {
text = "成本";
} }
query = { query = {
blank: "y", blank: "y",
tab: `新增${text}单据`, tab: `新增${text}单据`,
Type: num, Type: type,
tradeObj: JSON.stringify(this.BillMakingMsg) tradeObj: JSON.stringify(this.BillMakingMsg)
}; };
this.$store.commit("ChoiceAddFinancialDocuments"); this.$store.commit("ChoiceAddFinancialDocuments");
......
...@@ -411,7 +411,7 @@ input[type="number"] { ...@@ -411,7 +411,7 @@ input[type="number"] {
<div class="combottomDiv" v-if="isShowDIv"> <div class="combottomDiv" v-if="isShowDIv">
<div class="combottomTitle">{{divTitle}}</div> <div class="combottomTitle">{{divTitle}}</div>
<div class=""> <div class="">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px"> <el-form :model="addMsg" :rules="rules" ref="addMsg" @submit.native.prevent label-width="100px">
<el-col :span="4"> <el-col :span="4">
<el-form-item :label="$t('hotel.hotel_StartDate')" prop="StartDate"> <el-form-item :label="$t('hotel.hotel_StartDate')" prop="StartDate">
<el-date-picker class="SP_datePicker" :clearable="false" v-model='addMsg.StartDate' type="date" :picker-options="addPickerBeginDateBefore" <el-date-picker class="SP_datePicker" :clearable="false" v-model='addMsg.StartDate' type="date" :picker-options="addPickerBeginDateBefore"
...@@ -485,7 +485,7 @@ input[type="number"] { ...@@ -485,7 +485,7 @@ input[type="number"] {
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4"> <el-col :span="4">
<button type="success" class="normalBtn subPrice" @click="submitForm('addMsg')">{{comBtnText}}</button> <button type="success" class="normalBtn subPrice" @click.stop="submitForm('addMsg')">{{comBtnText}}</button>
<input type="button" class="normalBtn" @click="isShowDIv=false" value="取消" /> <input type="button" class="normalBtn" @click="isShowDIv=false" value="取消" />
</el-col> </el-col>
</el-form> </el-form>
...@@ -776,6 +776,7 @@ export default { ...@@ -776,6 +776,7 @@ export default {
"ticketcouponsprice_post_Set", "ticketcouponsprice_post_Set",
this.addMsg, this.addMsg,
res => { res => {
debugger
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.initDataTable(); this.initDataTable();
this.Success("保存成功!"); this.Success("保存成功!");
...@@ -785,7 +786,10 @@ export default { ...@@ -785,7 +786,10 @@ export default {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
null e=>{
debugger;
console.log(e.message)
}
); );
}, },
isdelete(ID) { isdelete(ID) {
...@@ -815,8 +819,8 @@ export default { ...@@ -815,8 +819,8 @@ export default {
that.$refs[addMsg].validate(valid => { that.$refs[addMsg].validate(valid => {
if (valid) { if (valid) {
that.hotelOfferSet(); that.hotelOfferSet();
} else { }else{
return false; return false
} }
}); });
}, },
...@@ -855,6 +859,7 @@ export default { ...@@ -855,6 +859,7 @@ export default {
this.initSupplier(); this.initSupplier();
this.getAllCurrency(); this.getAllCurrency();
this.initDataTable(); this.initDataTable();
} }
}; };
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment