|
|
@ -191,7 +191,7 @@ |
|
|
:label="buttons.cz" |
|
|
:label="buttons.cz" |
|
|
align="center"> |
|
|
align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-link @click="deleteTool(scope.row)">{{buttons.delete}}</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> |
|
|
@ -270,9 +270,27 @@ |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<el-dialog title="预览" :visible.sync="pdfVisible" center width="60%"> |
|
|
<el-dialog title="预览" :visible.sync="pdfVisible" center width="60%"> |
|
|
|
|
|
|
|
|
<iframe :src="this.pdfUrl" frameborder="0" width="100%" height="400px"></iframe> |
|
|
<iframe :src="this.pdfUrl" frameborder="0" width="100%" height="400px"></iframe> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!--新增或编辑实例--> |
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag |
|
|
|
|
|
:title="'修改接收工具信息'" :visible.sync="toolEditFlag" width="197px"> |
|
|
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
|
|
<el-form-item label="工具实例编码"> |
|
|
|
|
|
<el-input v-model="editToolData.newToolInstanceId"> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="使用寿命"> |
|
|
|
|
|
<el-input v-model="editToolData.estUseQty"> |
|
|
|
|
|
</el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-form> |
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
|
<el-button type="primary" @click="updateToolDetail()">修改</el-button> |
|
|
|
|
|
<el-button type="primary" @click="toolEditFlag = false">取消</el-button> |
|
|
|
|
|
</span> |
|
|
|
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -308,6 +326,10 @@ |
|
|
saveFileAssociate, |
|
|
saveFileAssociate, |
|
|
printToolData |
|
|
printToolData |
|
|
} from "@/api/knifemold/receive.js" |
|
|
} from "@/api/knifemold/receive.js" |
|
|
|
|
|
import { |
|
|
|
|
|
getToolDetailList, |
|
|
|
|
|
updateReceiveToolDetail, |
|
|
|
|
|
} from '@/api/knifemold/tool-info.js' |
|
|
|
|
|
|
|
|
import getLodop from '@/utils/LodopFuncs.js' |
|
|
import getLodop from '@/utils/LodopFuncs.js' |
|
|
import axios from "axios"; |
|
|
import axios from "axios"; |
|
|
@ -321,6 +343,13 @@ |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
toolEditFlag: false, |
|
|
|
|
|
editToolData: { |
|
|
|
|
|
toolInstanceId: '', |
|
|
|
|
|
estUseQty: '', |
|
|
|
|
|
site: '', |
|
|
|
|
|
newToolInstanceId: '' |
|
|
|
|
|
}, |
|
|
toolCodeFlag: false, |
|
|
toolCodeFlag: false, |
|
|
pdfUrl: '', |
|
|
pdfUrl: '', |
|
|
fileList: [], |
|
|
fileList: [], |
|
|
@ -879,6 +908,14 @@ |
|
|
radio() { |
|
|
radio() { |
|
|
this.locationNo = '' |
|
|
this.locationNo = '' |
|
|
}, |
|
|
}, |
|
|
|
|
|
editToolData: { |
|
|
|
|
|
deep: true, |
|
|
|
|
|
handler: function (newV, oldV) { |
|
|
|
|
|
if (this.editToolData.newToolInstanceId) { |
|
|
|
|
|
this.editToolData.newToolInstanceId = this.editToolData.newToolInstanceId.toUpperCase() |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
locationNo() { |
|
|
locationNo() { |
|
|
this.locationNo = this.locationNo.toUpperCase() |
|
|
this.locationNo = this.locationNo.toUpperCase() |
|
|
}, |
|
|
}, |
|
|
@ -892,9 +929,39 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
// 删除工具接收信息 |
|
|
|
|
|
deleteTool(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 编辑工具接收信息 |
|
|
|
|
|
editToolDetail(row) { |
|
|
|
|
|
this.getToolDetailList(row) |
|
|
|
|
|
this.toolEditFlag = true |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取工具信息 |
|
|
|
|
|
getToolDetailList(row) { |
|
|
|
|
|
let queryData = { |
|
|
|
|
|
site: this.site, |
|
|
|
|
|
toolInstanceId: row.toolInstanceId, |
|
|
|
|
|
} |
|
|
|
|
|
getToolDetailList(queryData).then(({data}) => { |
|
|
|
|
|
if (data && data.code == 0 && data.rows) { |
|
|
|
|
|
this.editToolData = { |
|
|
|
|
|
newToolInstanceId: data.rows[0].toolInstanceId, |
|
|
|
|
|
site: data.rows[0].site, |
|
|
|
|
|
toolInstanceId: data.rows[0].toolInstanceId, |
|
|
|
|
|
estUseQty: data.rows[0].estUseQty, |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
// 修改接收信息 |
|
|
|
|
|
updateToolDetail() { |
|
|
|
|
|
updateReceiveToolDetail(this.editToolData).then(({data}) => { |
|
|
|
|
|
if (data.code == 0) { |
|
|
|
|
|
this.$message.success(data.msg) |
|
|
|
|
|
this.toolEditFlag = false |
|
|
|
|
|
this.initPoToolTable() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(data.msg) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
childByValue(childValue) { |
|
|
childByValue(childValue) { |
|
|
// childValue就是子组件传过来的值 |
|
|
// childValue就是子组件传过来的值 |
|
|
@ -962,7 +1029,7 @@ |
|
|
const LODOP = getLodop() |
|
|
const LODOP = getLodop() |
|
|
if (LODOP) { |
|
|
if (LODOP) { |
|
|
//LODOP.SET_LICENSES("","7B5624CC84EF99D6B17F27DF4AF4310C","",""); |
|
|
//LODOP.SET_LICENSES("","7B5624CC84EF99D6B17F27DF4AF4310C","",""); |
|
|
LODOP.SET_LICENSES("","7B5624CC84EF99D6B17F27DF4AF4310C","",""); |
|
|
|
|
|
|
|
|
LODOP.SET_LICENSES("", "7B5624CC84EF99D6B17F27DF4AF4310C", "", ""); |
|
|
//循环调用打印机 |
|
|
//循环调用打印机 |
|
|
for (let i = 0; i < printDataList.length; i++) { |
|
|
for (let i = 0; i < printDataList.length; i++) { |
|
|
let printData = printDataList[i] |
|
|
let printData = printDataList[i] |
|
|
@ -1181,7 +1248,7 @@ |
|
|
this.toolCodeFlag = true |
|
|
this.toolCodeFlag = true |
|
|
this.toolInstanceId = '' |
|
|
this.toolInstanceId = '' |
|
|
}, |
|
|
}, |
|
|
manualInitMailFlag(){ |
|
|
|
|
|
|
|
|
manualInitMailFlag() { |
|
|
this.generateFlag = true |
|
|
this.generateFlag = true |
|
|
if (this.toolInstanceId == null || this.toolInstanceId == '') { |
|
|
if (this.toolInstanceId == null || this.toolInstanceId == '') { |
|
|
this.$alert('请输入工具实例编码!', '接收数量', { |
|
|
this.$alert('请输入工具实例编码!', '接收数量', { |
|
|
@ -1244,7 +1311,7 @@ |
|
|
this.manualSaveToolInstanceId() |
|
|
this.manualSaveToolInstanceId() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
manualSaveToolInstanceId(){ |
|
|
|
|
|
|
|
|
manualSaveToolInstanceId() { |
|
|
let status; |
|
|
let status; |
|
|
if (this.radio == "Y") { |
|
|
if (this.radio == "Y") { |
|
|
status = "出库" |
|
|
status = "出库" |
|
|
|