|
@@ -103,7 +103,7 @@
|
|
|
</taskDetail>
|
|
|
</div>
|
|
|
<div slot="slot1" v-if="mainData.actiontype == '工序模板'">
|
|
|
- <checkBill>
|
|
|
+ <checkBill ref="checkBillRef">
|
|
|
<template v-slot:download="scope">
|
|
|
<el-button
|
|
|
v-if="tool.checkAuth($route.name, 'checkBillDetail')"
|
|
@@ -199,6 +199,8 @@ export default {
|
|
|
mainAreaData: {},
|
|
|
detailInfo: "",
|
|
|
nodes: [],
|
|
|
+ active_accoun:JSON.parse(sessionStorage.getItem('active_account')),
|
|
|
+ folderid:JSON.parse(sessionStorage.getItem('folderid'))
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -230,12 +232,16 @@ export default {
|
|
|
let result = data.attinfos.filter(
|
|
|
(item) => item.usetype == "comfirmbill"
|
|
|
);
|
|
|
+ let http = location.href.substring(0,5) == 'https'?'https://oms.idcgroup.com.cn:8079/yosweb/#/printTable?':'http://61.164.207.46:8000/yosweb/#/printTable?'
|
|
|
+ let token = 'token=' + this.active_accoun.token
|
|
|
+ let parentid = '&parentid=' + this.folderid.appfolderid
|
|
|
+ let ownerid = '&ownerid=' + data.sa_workorder_confirmationid
|
|
|
+ let action = '&action=1'
|
|
|
+ let urlNew = http + token + parentid + ownerid + action
|
|
|
if (result.length == 0)
|
|
|
- return this.$message({
|
|
|
- type: "warning",
|
|
|
- message: this.$t("暂无单据信息"),
|
|
|
- });
|
|
|
+ window.open(urlNew);
|
|
|
window.open(result[result.length - 1].url, "_self");
|
|
|
+ this.$refs.checkBillRef.listData()
|
|
|
},
|
|
|
async teamChange(data) {
|
|
|
let result = data.map((item) => {
|