Commit 897a540f authored by youjie's avatar youjie

no message

parent 9733873d
...@@ -380,9 +380,11 @@ export default { ...@@ -380,9 +380,11 @@ export default {
{ Name: "未收齐", Id: "2" }, { Name: "未收齐", Id: "2" },
], ],
EmployeeList: [], EmployeeList: [],
userInfo:{}
}; };
}, },
mounted() { mounted() {
this.userInfo = this.getLocalStorage();
// erp自动登陆传过来的参数 // erp自动登陆传过来的参数
if (this.$route.query.erpOrderObj) { if (this.$route.query.erpOrderObj) {
let data = JSON.parse(this.$route.query.erpOrderObj); let data = JSON.parse(this.$route.query.erpOrderObj);
...@@ -501,6 +503,7 @@ export default { ...@@ -501,6 +503,7 @@ export default {
this.msg, this.msg,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let _this = this
let data = res.data.data.Data.pageData; let data = res.data.data.Data.pageData;
let addList = function(arr) { let addList = function(arr) {
arr.forEach((item) => { arr.forEach((item) => {
...@@ -583,6 +586,11 @@ export default { ...@@ -583,6 +586,11 @@ export default {
show: item.OrderStatus == 1 && item.DueinMoney == 0 ? show: item.OrderStatus == 1 && item.DueinMoney == 0 ?
true : false true : false
}, },
{
Name: '申请发票',
Id: '11',
show: _this.userInfo&&_this.userInfo.EmployeeId==item.EnterID?true:false
},
{ {
Name: "操作日志", Name: "操作日志",
Id: "7", Id: "7",
......
...@@ -467,6 +467,7 @@ export default { ...@@ -467,6 +467,7 @@ export default {
this.msg, this.msg,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let _this = this
let data = res.data.data.Data.pageData; let data = res.data.data.Data.pageData;
let addList = function(arr) { let addList = function(arr) {
arr.forEach((item) => { arr.forEach((item) => {
...@@ -549,6 +550,11 @@ export default { ...@@ -549,6 +550,11 @@ export default {
show: item.OrderStatus == 1 && item.DueinMoney == 0 ? show: item.OrderStatus == 1 && item.DueinMoney == 0 ?
true : false true : false
}, },
{
Name: '申请发票',
Id: '11',
show: _this.userInfo&&_this.userInfo.EmployeeId==item.EnterID?true:false
},
{ {
Name: "操作日志", Name: "操作日志",
Id: "7", Id: "7",
......
...@@ -497,6 +497,28 @@ export default { ...@@ -497,6 +497,28 @@ export default {
if (row.More == "10") { if (row.More == "10") {
this.modifiedDate(row); this.modifiedDate(row);
} }
// 申请发票
if(row.More == "11"){
let href;
let url = this.domainManager().erpRoutingUrl;
let data = [
{
crmPath: window.location.hash.split('/')[1],
path: "invoicesManagerAdd",
OrderId: row.OrderId,
TCID: 0,
customerId: row.GuestId,
blank: "y",
},
];
href =
url +
"automaticLogin?token=" +
this.getLocalStorage().token +
"&data=" +
JSON.stringify(data);
window.open(href);
}
}, },
// 修改日期 // 修改日期
modifiedDate(row){ modifiedDate(row){
......
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