|
|
@ -125,7 +125,8 @@ |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<el-dialog v-drag :close-on-click-modal="false" :visible.sync="poToolFlag" width="770px"> |
|
|
<el-dialog v-drag :close-on-click-modal="false" :visible.sync="poToolFlag" width="770px"> |
|
|
<span style="font-size: 13px" slot="title"> {{'接收单号:'+this.ifsToolData.transactionId + ' - 工具编码: ' + this.ifsToolData.toolId}}</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 13px" |
|
|
|
|
|
slot="title"> {{ '接收单号:' + this.ifsToolData.transactionId + ' - 工具编码: ' + this.ifsToolData.toolId }}</span> |
|
|
<el-row> |
|
|
<el-row> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-button type="primary" :disabled="generateFlag" @click="initMailFlag()">{{ buttons.generate }}</el-button> |
|
|
<el-button type="primary" :disabled="generateFlag" @click="initMailFlag()">{{ buttons.generate }}</el-button> |
|
|
@ -192,7 +193,8 @@ |
|
|
:label="buttons.cz" |
|
|
:label="buttons.cz" |
|
|
align="center"> |
|
|
align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-link v-if="scope.row.status == '已接收'" @click="editToolDetail(scope.row)">{{buttons.edit}}</el-link> |
|
|
|
|
|
|
|
|
<el-link v-if="scope.row.status == '已接收'" @click="editToolDetail(scope.row)">{{ buttons.edit }} |
|
|
|
|
|
</el-link> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -326,7 +328,8 @@ |
|
|
printTool, |
|
|
printTool, |
|
|
saveFileAssociate, |
|
|
saveFileAssociate, |
|
|
printToolData, |
|
|
printToolData, |
|
|
closeReceiveStatus |
|
|
|
|
|
|
|
|
closeReceiveStatus, |
|
|
|
|
|
getPRDetailInfo |
|
|
} from "@/api/knifemold/receive.js" |
|
|
} from "@/api/knifemold/receive.js" |
|
|
import { |
|
|
import { |
|
|
getToolDetailList, |
|
|
getToolDetailList, |
|
|
@ -1417,6 +1420,7 @@ |
|
|
this.saveToolInstanceId() |
|
|
this.saveToolInstanceId() |
|
|
// this.initLocationFlag(queryLocation) |
|
|
// this.initLocationFlag(queryLocation) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
// 关闭接收 |
|
|
// 关闭接收 |
|
|
closeReceive(row) { |
|
|
closeReceive(row) { |
|
|
@ -1472,6 +1476,7 @@ |
|
|
if (data.code == 0) { |
|
|
if (data.code == 0) { |
|
|
this.ifsToolData.generateQuantity += parseInt(currQty) |
|
|
this.ifsToolData.generateQuantity += parseInt(currQty) |
|
|
this.initPoToolTable() |
|
|
this.initPoToolTable() |
|
|
|
|
|
this.getPRDetailInfo() |
|
|
} else { |
|
|
} else { |
|
|
} |
|
|
} |
|
|
this.$alert(data.msg, '操作提示', { |
|
|
this.$alert(data.msg, '操作提示', { |
|
|
@ -1526,7 +1531,22 @@ |
|
|
this.torNumacc = this.ifsToolData.torNumacc |
|
|
this.torNumacc = this.ifsToolData.torNumacc |
|
|
this.torNumdown = this.ifsToolData.torNumdown |
|
|
this.torNumdown = this.ifsToolData.torNumdown |
|
|
this.initPoToolTable() |
|
|
this.initPoToolTable() |
|
|
|
|
|
this.getPRDetailInfo() |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取采购申请的寿命 , 单价 |
|
|
|
|
|
getPRDetailInfo() { |
|
|
|
|
|
let query = { |
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
// 接收号 |
|
|
|
|
|
requisitionno: this.ifsToolData.transactionId, |
|
|
|
|
|
} |
|
|
|
|
|
getPRDetailInfo(query).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.invoicePrice = data.data.price |
|
|
|
|
|
this.serviceLife = data.data.lifespan |
|
|
} |
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
initPoToolTable() { |
|
|
initPoToolTable() { |
|
|
//是否显示加载效果 |
|
|
//是否显示加载效果 |
|
|
|