|
|
@ -4,7 +4,8 @@ |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
<el-form-item :label="inputLabel.headerInput.label1"> |
|
|
<el-form-item :label="inputLabel.headerInput.label1"> |
|
|
<el-input style="width: 100px;" @focus="initToolHeaderModel()" readonly v-model="headerData.toolId" ></el-input> <!----> |
|
|
|
|
|
|
|
|
<el-input style="width: 100px;" @focus="initToolHeaderModel()" readonly |
|
|
|
|
|
v-model="headerData.toolId"></el-input> <!----> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="inputLabel.headerInput.label2"> |
|
|
<el-form-item :label="inputLabel.headerInput.label2"> |
|
|
<el-input style="width: 100px;" readonly v-model="headerData.toolDescription"></el-input> |
|
|
<el-input style="width: 100px;" readonly v-model="headerData.toolDescription"></el-input> |
|
|
@ -72,12 +73,14 @@ |
|
|
<!-- <el-button type="primary">{{ inputLabel.leftInput.label1 }}</el-button> <!–@click="initViewIfsTable('Y')"–>--> |
|
|
<!-- <el-button type="primary">{{ inputLabel.leftInput.label1 }}</el-button> <!–@click="initViewIfsTable('Y')"–>--> |
|
|
<el-button @click="initToolModel()" type="primary" v-show="showDefault">{{ buttons.edit }}</el-button> |
|
|
<el-button @click="initToolModel()" type="primary" v-show="showDefault">{{ buttons.edit }}</el-button> |
|
|
<el-button @click="printReport()" type="primary" v-show="showDefault">{{ buttons.print }}</el-button> |
|
|
<el-button @click="printReport()" type="primary" v-show="showDefault">{{ buttons.print }}</el-button> |
|
|
<el-button @click="initFlagAdd()" type="primary" v-show="showDefault">{{ buttons.badApplication }}</el-button> |
|
|
|
|
|
|
|
|
<el-button @click="initFlagAdd()" type="primary" v-show="showDefault">{{ buttons.badApplication }} |
|
|
|
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px"> |
|
|
<el-form-item :label="inputLabel.leftInput.label1"> |
|
|
<el-form-item :label="inputLabel.leftInput.label1"> |
|
|
<el-select @change="toolInstanceIdChange(currentDetailData.toolInstanceId)" v-model="currentDetailData.toolInstanceId" placeholder="请选择" style="width: 115px;"> |
|
|
|
|
|
|
|
|
<el-select @change="toolInstanceIdChange(currentDetailData.toolInstanceId)" |
|
|
|
|
|
v-model="currentDetailData.toolInstanceId" placeholder="请选择" style="width: 115px;"> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in selectList.select4" |
|
|
v-for="item in selectList.select4" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
|
@ -219,7 +222,8 @@ |
|
|
</el-container> |
|
|
</el-container> |
|
|
<column v-if="visible" ref="column" @refreshData="getTableUserColumn"></column> |
|
|
<column v-if="visible" ref="column" @refreshData="getTableUserColumn"></column> |
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputLabel.headerInput.label16" :visible.sync="setUp.toolHeaderFlag" width="485px"> |
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag |
|
|
|
|
|
:title="inputLabel.headerInput.label16" :visible.sync="setUp.toolHeaderFlag" width="485px"> |
|
|
<el-form :inline="true" label-position="left"> |
|
|
<el-form :inline="true" label-position="left"> |
|
|
<el-form-item :label="inputLabel.headerInput.label1"> |
|
|
<el-form-item :label="inputLabel.headerInput.label1"> |
|
|
<el-input style="width: 110px;" v-model="queryHeaderData.likeToolId"></el-input> |
|
|
<el-input style="width: 110px;" v-model="queryHeaderData.likeToolId"></el-input> |
|
|
@ -257,7 +261,8 @@ |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputLabel.leftInput.label15" :visible.sync="setUp.toolEditFlag" width="620px"> |
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputLabel.leftInput.label15" |
|
|
|
|
|
:visible.sync="setUp.toolEditFlag" width="620px"> |
|
|
<el-form :inline="true" label-position="top"> |
|
|
<el-form :inline="true" label-position="top"> |
|
|
<el-form-item :label="inputLabel.leftInput.label1"> |
|
|
<el-form-item :label="inputLabel.leftInput.label1"> |
|
|
<el-input style="width: 130px;" readonly v-model="editData.toolInstanceId"></el-input> |
|
|
<el-input style="width: 130px;" readonly v-model="editData.toolInstanceId"></el-input> |
|
|
@ -312,12 +317,12 @@ |
|
|
<el-form-item :label="inputLabel.leftInput.label10"> |
|
|
<el-form-item :label="inputLabel.leftInput.label10"> |
|
|
<el-input style="width: 130px;" readonly v-model="editData.actualuseQty"></el-input> |
|
|
<el-input style="width: 130px;" readonly v-model="editData.actualuseQty"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<!--<el-form-item :label="inputLabel.leftInput.label11"> |
|
|
|
|
|
<el-input style="width: 130px;" v-model="editData.strCreateDate"></el-input> |
|
|
|
|
|
|
|
|
<el-form-item :label="inputLabel.leftInput.label18 || '工程师账号'"> |
|
|
|
|
|
<el-input style="width: 130px;" v-model="editData.engineer"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="inputLabel.leftInput.label12"> |
|
|
|
|
|
<el-input style="width: 130px;" v-model="editData.createdBy"></el-input> |
|
|
|
|
|
</el-form-item>--> |
|
|
|
|
|
|
|
|
<!-- <el-form-item :label="inputLabel.leftInput.label12">--> |
|
|
|
|
|
<!-- <el-input style="width: 130px;" v-model="editData.createdBy"></el-input>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top"> |
|
|
<el-form :inline="true" label-position="top"> |
|
|
<el-form-item :label="inputLabel.leftInput.label14"> |
|
|
<el-form-item :label="inputLabel.leftInput.label14"> |
|
|
@ -330,10 +335,12 @@ |
|
|
</span> |
|
|
</span> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputLabel.modelInput.label1" :visible.sync="setUp.modelFlag" width="350px"> |
|
|
|
|
|
|
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" v-drag :title="inputLabel.modelInput.label1" |
|
|
|
|
|
:visible.sync="setUp.modelFlag" width="350px"> |
|
|
<el-form label-position="top"> |
|
|
<el-form label-position="top"> |
|
|
<el-form-item :label="inputLabel.modelInput.label2"> |
|
|
<el-form-item :label="inputLabel.modelInput.label2"> |
|
|
<el-input type="textarea" :rows="3" placeholder="请输入内容" style="width: 300px;padding: 0px 3px;" v-model="remark"></el-input> |
|
|
|
|
|
|
|
|
<el-input type="textarea" :rows="3" placeholder="请输入内容" style="width: 300px;padding: 0px 3px;" |
|
|
|
|
|
v-model="remark"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
<span slot="footer" class="dialog-footer"> |
|
|
@ -348,6 +355,9 @@ |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import column from "../common/column"; |
|
|
import column from "../common/column"; |
|
|
|
|
|
import { |
|
|
|
|
|
getTblUserList, |
|
|
|
|
|
} from "@/api/toolMan/receive.js" |
|
|
import { |
|
|
import { |
|
|
searchSysLanguagePackList, |
|
|
searchSysLanguagePackList, |
|
|
searchSysLanguageParam, |
|
|
searchSysLanguageParam, |
|
|
@ -470,6 +480,7 @@ |
|
|
label15: '工具实例信息', |
|
|
label15: '工具实例信息', |
|
|
label16: '库位编码', |
|
|
label16: '库位编码', |
|
|
label17: '工程师', |
|
|
label17: '工程师', |
|
|
|
|
|
label18: '工程师账号', |
|
|
}, |
|
|
}, |
|
|
rightInput: { |
|
|
rightInput: { |
|
|
label1: '工具使用记录:', |
|
|
label1: '工具使用记录:', |
|
|
@ -979,6 +990,15 @@ |
|
|
this.editData.purchaseDate = this.editData.strPurchaseDate |
|
|
this.editData.purchaseDate = this.editData.strPurchaseDate |
|
|
this.editData.phaseInDate = this.editData.strPhaseInDate |
|
|
this.editData.phaseInDate = this.editData.strPhaseInDate |
|
|
this.editData.phaseOutDate = this.editData.strPhaseOutDate |
|
|
this.editData.phaseOutDate = this.editData.strPhaseOutDate |
|
|
|
|
|
|
|
|
|
|
|
// 校验 工程师是否存在 |
|
|
|
|
|
let dto ={ |
|
|
|
|
|
site: this.site, |
|
|
|
|
|
baseData: 'engineer', |
|
|
|
|
|
engineer: this.editData.engineer |
|
|
|
|
|
} |
|
|
|
|
|
getTblUserList(dto).then(({data}) =>{ |
|
|
|
|
|
if (data.code == 0 && data.list.length >0 ){ |
|
|
updateToolDetail(this.editData).then((data) => { |
|
|
updateToolDetail(this.editData).then((data) => { |
|
|
if (data.code == 0 || data.data.code == 0) { |
|
|
if (data.code == 0 || data.data.code == 0) { |
|
|
this.toolInstanceIdChange() |
|
|
this.toolInstanceIdChange() |
|
|
@ -992,6 +1012,12 @@ |
|
|
}); |
|
|
}); |
|
|
this.setUp.saveToolFlag = false |
|
|
this.setUp.saveToolFlag = false |
|
|
}) |
|
|
}) |
|
|
|
|
|
}else { |
|
|
|
|
|
this.$message.warning('工程师账号不存在') |
|
|
|
|
|
this.setUp.saveToolFlag = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
initToolHeaderModel() { |
|
|
initToolHeaderModel() { |
|
|
this.toolHeaderList = [] |
|
|
this.toolHeaderList = [] |
|
|
@ -1087,7 +1113,6 @@ |
|
|
printReport() { |
|
|
printReport() { |
|
|
let row = this.currentDetailData |
|
|
let row = this.currentDetailData |
|
|
// alert( this.$store.state.user.site) |
|
|
// alert( this.$store.state.user.site) |
|
|
this.$lodop.print(temp, data); |
|
|
|
|
|
const LODOP = getLodop() |
|
|
const LODOP = getLodop() |
|
|
if (LODOP) { |
|
|
if (LODOP) { |
|
|
LODOP.SET_LICENSES("", "13F0BE83846277CB60918577C6281375", "", ""); |
|
|
LODOP.SET_LICENSES("", "13F0BE83846277CB60918577C6281375", "", ""); |
|
|
@ -1095,7 +1120,6 @@ |
|
|
LODOP.SET_PRINT_PAGESIZE(0, 80, 40, ""); |
|
|
LODOP.SET_PRINT_PAGESIZE(0, 80, 40, ""); |
|
|
LODOP.SET_PRINT_STYLE("FontSize", 12); |
|
|
LODOP.SET_PRINT_STYLE("FontSize", 12); |
|
|
LODOP.NewPage(); |
|
|
LODOP.NewPage(); |
|
|
|
|
|
|
|
|
LODOP.PRINT_INIT('') //初始化 |
|
|
LODOP.PRINT_INIT('') //初始化 |
|
|
LODOP.SET_PRINT_PAGESIZE(0, 1000, 400, ""); |
|
|
LODOP.SET_PRINT_PAGESIZE(0, 1000, 400, ""); |
|
|
LODOP.SET_PRINT_STYLE("FontSize", 12); |
|
|
LODOP.SET_PRINT_STYLE("FontSize", 12); |
|
|
@ -1108,10 +1132,9 @@ |
|
|
LODOP.ADD_PRINT_TEXT(54, 115, 400, 150, "入库日期:"); |
|
|
LODOP.ADD_PRINT_TEXT(54, 115, 400, 150, "入库日期:"); |
|
|
LODOP.ADD_PRINT_TEXT(54, 205, 400, 150, row.createDate); |
|
|
LODOP.ADD_PRINT_TEXT(54, 205, 400, 150, row.createDate); |
|
|
LODOP.ADD_PRINT_TEXT(76, 115, 400, 150, "库位号:"); |
|
|
LODOP.ADD_PRINT_TEXT(76, 115, 400, 150, "库位号:"); |
|
|
LODOP.ADD_PRINT_TEXT(76,205,400,150,row.currLocationId); |
|
|
|
|
|
|
|
|
LODOP.ADD_PRINT_TEXT(76, 205, 400, 150, row.locationId); |
|
|
LODOP.ADD_PRINT_TEXT(98, 115, 400, 150, "供应商编码:"); |
|
|
LODOP.ADD_PRINT_TEXT(98, 115, 400, 150, "供应商编码:"); |
|
|
LODOP.ADD_PRINT_TEXT(98, 205, 400, 150, row.supplierId); |
|
|
LODOP.ADD_PRINT_TEXT(98, 205, 400, 150, row.supplierId); |
|
|
|
|
|
|
|
|
// LODOP.PRINT_DESIGN(); |
|
|
// LODOP.PRINT_DESIGN(); |
|
|
//LODOP.PREVIEW(); |
|
|
//LODOP.PREVIEW(); |
|
|
LODOP.PRINT(); |
|
|
LODOP.PRINT(); |
|
|
@ -1406,6 +1429,7 @@ |
|
|
.el-container:nth-child(7) .el-aside { |
|
|
.el-container:nth-child(7) .el-aside { |
|
|
line-height: 320px; |
|
|
line-height: 320px; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.number .el-input__inner { |
|
|
.number .el-input__inner { |
|
|
text-align: right; |
|
|
text-align: right; |
|
|
} |
|
|
} |
|
|
|