Browse Source

2025/5/30

master
Aoi_Tori 8 months ago
parent
commit
55631d777e
  1. 4
      src/views/modules/sampleManagement/technicalSpecificationList.vue
  2. 13
      src/views/modules/test/requestForTest.vue
  3. 2
      src/views/modules/tooling/components/com_tool_info_add_update.vue
  4. 152
      src/views/modules/tooling/manuf_tool.vue

4
src/views/modules/sampleManagement/technicalSpecificationList.vue

@ -388,10 +388,10 @@
<el-dialog width="750px" title="选择物料" :close-on-click-modal="false" :visible.sync="partModelFlag"> <el-dialog width="750px" title="选择物料" :close-on-click-modal="false" :visible.sync="partModelFlag">
<el-form :inline="true" label-position="top" label-width="100px"> <el-form :inline="true" label-position="top" label-width="100px">
<el-form-item label="正式料号">
<el-form-item label="IFS物料编码">
<el-input v-model="copyData.finalPartNo" clearable style="width: 120px"></el-input> <el-input v-model="copyData.finalPartNo" clearable style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目料号">
<el-form-item label="PLM物料编码">
<el-input v-model="copyData.testPartNo" clearable style="width: 120px"></el-input> <el-input v-model="copyData.testPartNo" clearable style="width: 120px"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="项目号"> <el-form-item label="项目号">

13
src/views/modules/test/requestForTest.vue

@ -354,7 +354,7 @@
<test-routing-table v-if="clickTestRow" :disabled="detailFlag" ref="dialogSoRouting" height="32vh" v-model:data-list="testSoRoutingList" :test-no="modalData.testNo"></test-routing-table> <test-routing-table v-if="clickTestRow" :disabled="detailFlag" ref="dialogSoRouting" height="32vh" v-model:data-list="testSoRoutingList" :test-no="modalData.testNo"></test-routing-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="附件信息" :disabled="!activeTabList.includes('file')" name="file"> <el-tab-pane label="附件信息" :disabled="!activeTabList.includes('file')" name="file">
<oss-components v-if="clickTestRow" :disabled="detailFlag" label="测试单号" height="32vh" :columns="fileColumnList" :order-ref2="modalData.testNo" :order-ref1="modalData.site"></oss-components>
<oss-components ref="ossRef1" v-if="clickTestRow" :disabled="detailFlag" label="测试单号" height="32vh" :columns="fileColumnList" :order-ref2="modalData.testNo" :order-ref1="modalData.site"></oss-components>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@ -362,7 +362,8 @@
<template v-if="modalData.testStatus === '草稿' || (modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name) && modalData.testStatus === '审批中')"> <template v-if="modalData.testStatus === '草稿' || (modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name) && modalData.testStatus === '审批中')">
<el-button type="primary" @click="saveData()" v-if="modalData.flag !== '1' && !detailFlag">保存</el-button> <el-button type="primary" @click="saveData()" v-if="modalData.flag !== '1' && !detailFlag">保存</el-button>
</template> </template>
<el-button type="primary" @click="modalFlag = false">关闭</el-button>
<!-- <el-button type="primary" @click="modalFlag = false">关闭</el-button>-->
<el-button type="primary" @click="closeDialog">关闭</el-button>
<template v-if="modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name)"> <template v-if="modalData.approvalUsername && modalData.approvalUsername.split(';').includes($store.state.user.name)">
<template v-if="isAuth('107001:submit')"> <template v-if="isAuth('107001:submit')">
<el-button v-if="modalData.testStatus === '审批中' && !detailFlag" type="primary" @click="agreeSubmit">同意</el-button> <el-button v-if="modalData.testStatus === '审批中' && !detailFlag" type="primary" @click="agreeSubmit">同意</el-button>
@ -620,6 +621,7 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="附件信息" name="file"> <el-tab-pane label="附件信息" name="file">
<oss-components style="margin-top: 5px" <oss-components style="margin-top: 5px"
ref="ossRef2"
:save-visible="isAuth('107001:tab5:save')" :save-visible="isAuth('107001:tab5:save')"
:download-visible="isAuth('107001:tab5:download')" :download-visible="isAuth('107001:tab5:download')"
:remove-visible="isAuth('107001:tab5:remove')" :remove-visible="isAuth('107001:tab5:remove')"
@ -2395,7 +2397,6 @@
} else if (this.activeTable === 'customer_information') { } else if (this.activeTable === 'customer_information') {
this.getCustomerInformation() this.getCustomerInformation()
}else if (this.activeTable === 'test_attribute') { }else if (this.activeTable === 'test_attribute') {
console.log(this.testCurrentRow)
this.getPartItem(this.testCurrentRow.site,this.testCurrentRow.testPartNo,2); this.getPartItem(this.testCurrentRow.site,this.testCurrentRow.testPartNo,2);
} }
}, },
@ -2564,6 +2565,7 @@
// this.$nextTick(()=>{ // this.$nextTick(()=>{
// this.$refs.dialogSoBom.clearTable(); // this.$refs.dialogSoBom.clearTable();
// }) // })
// this.$refs.ossRef1.handleQuery()
this.modalDisableFlag = true this.modalDisableFlag = true
this.modalFlag = true this.modalFlag = true
}, },
@ -3299,6 +3301,11 @@
this.dialogProperties = []; this.dialogProperties = [];
// this.testPropertiesList = this.copyTestPropertiesList; // this.testPropertiesList = this.copyTestPropertiesList;
this.copyTestPropertiesList = []; this.copyTestPropertiesList = [];
this.$refs.ossRef2.handleQuery()
},
closeDialog(){
this.modalFlag = false
this.$refs.ossRef2.handleQuery()
}, },
checkSelectable(row,index){ checkSelectable(row,index){
if (this.modalData.flag === '1' && this.activeTabList.length === 1){ if (this.modalData.flag === '1' && this.activeTabList.length === 1){

2
src/views/modules/tooling/components/com_tool_info_add_update.vue

@ -441,7 +441,9 @@ export default {
if(data.code === 200){ if(data.code === 200){
this.searchFlag = true; this.searchFlag = true;
this.$message.success('操作成功!'); this.$message.success('操作成功!');
console.log(this.pageData);
this.closeDialog(); this.closeDialog();
this.$emit('changeCurrentToolRow', this.pageData)
}else{ }else{
this.$message.error(data.msg); this.$message.error(data.msg);
} }

152
src/views/modules/tooling/manuf_tool.vue

@ -13,7 +13,7 @@
</el-form-item> </el-form-item>
<el-form-item label="日历标识"> <el-form-item label="日历标识">
<span slot="label" style="" @click="getBaseList(1018)"><a herf="#">日历标识</a></span> <span slot="label" style="" @click="getBaseList(1018)"><a herf="#">日历标识</a></span>
<el-input v-model="searchData.calendarId" ></el-input>
<el-input v-model="searchData.calendarId"></el-input>
</el-form-item> </el-form-item>
<el-form-item label=" "> <el-form-item label=" ">
<el-button @click="search()" type="primary" style="margin-left: 2px;margin-top:0px">查询</el-button> <el-button @click="search()" type="primary" style="margin-left: 2px;margin-top:0px">查询</el-button>
@ -52,9 +52,10 @@
fixed="right" fixed="right"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a type="text" size="small" @click="editToolInfoModal(scope.row)">编辑 </a>
<a type="text" size="small" v-if = "scope.row.propertyNo && scope.row.propertyNo !== ''" @click="editToolInfoPropertyModal(scope.row)">属性 </a>
<a type="text" size="small" @click="deleteToolInfoConfirm(scope.row)">删除 </a>
<a type="text" size="small" @click="editToolInfoModal(scope.row)">编辑 </a>
<a type="text" size="small" v-if="scope.row.propertyNo && scope.row.propertyNo !== ''"
@click="editToolInfoPropertyModal(scope.row)">属性 </a>
<a type="text" size="small" @click="deleteToolInfoConfirm(scope.row)">删除 </a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -68,7 +69,7 @@
:min-width="item.columnWidth" :min-width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
style="width: 100px; height: 80px"/></span> style="width: 100px; height: 80px"/></span>
</template> </template>
@ -84,7 +85,8 @@
:total="totalPage" :total="totalPage"
layout="total, sizes, prev, pager, next, jumper"> layout="total, sizes, prev, pager, next, jumper">
</el-pagination> </el-pagination>
<el-tabs style="font-size: 12px;min-height: 330px" class="customer-tab" v-model="activeName" type="border-card" @tab-click="tabClick">
<el-tabs style="font-size: 12px;min-height: 330px" class="customer-tab" v-model="activeName" type="border-card"
@tab-click="tabClick">
<el-tab-pane label="工具实例" name="detail"> <el-tab-pane label="工具实例" name="detail">
<div style="padding: 5px 0 0 5px"> <div style="padding: 5px 0 0 5px">
<el-button type="primary" @click="addToolInstanceModal()">新增</el-button> <el-button type="primary" @click="addToolInstanceModal()">新增</el-button>
@ -121,10 +123,11 @@
fixed="right" fixed="right"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<a type="text" size="small" @click="editToolInstanceModal(scope.row)">编辑 </a>
<a type="text" size="small" v-if = "scope.row.propertyNo && scope.row.propertyNo !== ''" @click="editToolInstancePropertyModal(scope.row)">属性 </a>
<a type="text" size="small" @click="editToolInstanceDateModal(scope.row)">生命周期 </a>
<a type="text" size="small" @click="deleteToolInstanceConfirm(scope.row)">删除 </a>
<a type="text" size="small" @click="editToolInstanceModal(scope.row)">编辑 </a>
<a type="text" size="small" v-if="scope.row.propertyNo && scope.row.propertyNo !== ''"
@click="editToolInstancePropertyModal(scope.row)">属性 </a>
<a type="text" size="small" @click="editToolInstanceDateModal(scope.row)">生命周期 </a>
<a type="text" size="small" @click="deleteToolInstanceConfirm(scope.row)">删除 </a>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -132,21 +135,25 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<!-- 选择组件 --> <!-- 选择组件 -->
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
<!-- 工具信息 --> <!-- 工具信息 -->
<toolInfoAddUpdate ref="toolInfoAddUpdate" :close-on-click-modal="false" @refreshTooInfoData="refreshTooInfoData" @changeCurrentToolInfo="changeCurrentToolInfo">
<toolInfoAddUpdate ref="toolInfoAddUpdate" :close-on-click-modal="false" @refreshTooInfoData="refreshTooInfoData"
@changeCurrentToolInfo="changeCurrentToolInfo" @changeCurrentToolRow="changeCurrentToolRow">
</toolInfoAddUpdate> </toolInfoAddUpdate>
<!-- 工具实例信息 --> <!-- 工具实例信息 -->
<toolInstanceAddUpdate ref="toolInstanceAddUpdate" :close-on-click-modal="false" @refreshTooInstanceData="refreshTooInstanceData" @changeCurrentToolInstance="changeCurrentToolInstance">
<toolInstanceAddUpdate ref="toolInstanceAddUpdate" :close-on-click-modal="false"
@refreshTooInstanceData="refreshTooInstanceData"
@changeCurrentToolInstance="changeCurrentToolInstance">
</toolInstanceAddUpdate> </toolInstanceAddUpdate>
<!-- 工具实例生命周期信息 --> <!-- 工具实例生命周期信息 -->
<toolInstanceDateShow ref="toolInstanceDateShow" :close-on-click-modal="false" @refreshTooInstanceData="refreshTooInstanceData">
<toolInstanceDateShow ref="toolInstanceDateShow" :close-on-click-modal="false"
@refreshTooInstanceData="refreshTooInstanceData">
</toolInstanceDateShow> </toolInstanceDateShow>
<!-- 工具属性信息 --> <!-- 工具属性信息 -->
<toolPropertyShow ref="toolPropertyShow" :close-on-click-modal="false" >
<toolPropertyShow ref="toolPropertyShow" :close-on-click-modal="false">
</toolPropertyShow> </toolPropertyShow>
</div> </div>
@ -179,29 +186,29 @@ export default {
return { return {
fileContentList: [], fileContentList: [],
activeName: 'detail', activeName: 'detail',
searchData:{
searchData: {
pageIndex: 1, pageIndex: 1,
pageSize: 100, pageSize: 100,
site:this.$store.state.user.site,
toolId:'',
toolType:'',
site: this.$store.state.user.site,
toolId: '',
toolType: '',
calendarId: '', calendarId: '',
startDate:'',
endDate:'',
startDate: '',
endDate: '',
}, },
currentRow:{},
currentRow: {},
currentInstanceRow: {}, currentInstanceRow: {},
height: 200, height: 200,
dataList:[],
detailList:[],
dataList: [],
detailList: [],
dataListLoading: false, dataListLoading: false,
// start // start
exportData: [], exportData: [],
exportName: "工具信息" + this.dayjs().format('YYYYMMDDHHmmss'), exportName: "工具信息" + this.dayjs().format('YYYYMMDDHHmmss'),
exportHeader: ["工具信息"], exportHeader: ["工具信息"],
exportFooter: [], exportFooter: [],
exportList:[],
tagNo:'',
exportList: [],
tagNo: '',
pageIndex: 1, pageIndex: 1,
pageSize: 100, pageSize: 100,
totalPage: 0, totalPage: 0,
@ -820,7 +827,7 @@ export default {
}, },
methods: { methods: {
// S // S
getBaseList (val, type) {
getBaseList(val, type) {
this.tagNo = val this.tagNo = val
this.$nextTick(() => { this.$nextTick(() => {
let strVal = '' let strVal = ''
@ -828,10 +835,10 @@ export default {
}) })
}, },
/* 列表方法的回调 */ /* 列表方法的回调 */
getBaseData (val) {
getBaseData(val) {
if (this.tagNo === 1016) { if (this.tagNo === 1016) {
this.searchData.toolType = val.tool_type; this.searchData.toolType = val.tool_type;
}else if (this.tagNo === 1018) {
} else if (this.tagNo === 1018) {
this.searchData.calendarId = val.calendar_id; this.searchData.calendarId = val.calendar_id;
} }
}, },
@ -841,7 +848,7 @@ export default {
this.searchData.limit = -1 this.searchData.limit = -1
this.searchData.page = 1 this.searchData.page = 1
await getToolInfoList(this.searchData).then(({data}) => { await getToolInfoList(this.searchData).then(({data}) => {
this.exportList= data.page.list;
this.exportList = data.page.list;
}) })
return this.exportList; return this.exportList;
@ -875,7 +882,7 @@ export default {
this.dataList = data.rows; this.dataList = data.rows;
this.totalPage = data.total; this.totalPage = data.total;
// //
if(this.dataList && this.dataList.length > 0){
if (this.dataList && this.dataList.length > 0) {
this.$refs.mainTable.setCurrentRow(this.dataList[0]); this.$refs.mainTable.setCurrentRow(this.dataList[0]);
} }
} }
@ -884,7 +891,7 @@ export default {
}, },
/*新增工具的modal*/ /*新增工具的modal*/
addToolInfoModal(){
addToolInfoModal() {
//modal //modal
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.toolInfoAddUpdate.init(null, true) this.$refs.toolInfoAddUpdate.init(null, true)
@ -892,7 +899,7 @@ export default {
}, },
/*编辑工具信息*/ /*编辑工具信息*/
editToolInfoModal(toolInfo){
editToolInfoModal(toolInfo) {
//modal //modal
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.toolInfoAddUpdate.init(toolInfo, false) this.$refs.toolInfoAddUpdate.init(toolInfo, false)
@ -900,7 +907,7 @@ export default {
}, },
/*工具属性的维护*/ /*工具属性的维护*/
editToolInfoPropertyModal(toolInfo){
editToolInfoPropertyModal(toolInfo) {
//modal //modal
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.toolPropertyShow.init(toolInfo, 'TL'); this.$refs.toolPropertyShow.init(toolInfo, 'TL');
@ -908,7 +915,7 @@ export default {
}, },
/*工具实例属性的维护*/ /*工具实例属性的维护*/
editToolInstancePropertyModal(toolInfo){
editToolInstancePropertyModal(toolInfo) {
//modal //modal
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.toolPropertyShow.init(toolInfo, 'TLI'); this.$refs.toolPropertyShow.init(toolInfo, 'TLI');
@ -917,7 +924,7 @@ export default {
/*删除工具的确认选项*/ /*删除工具的确认选项*/
deleteToolInfoConfirm(toolInfo) { deleteToolInfoConfirm(toolInfo) {
this.$confirm('是否删除工具标识号:'+ toolInfo.toolId+'?', '提示', {
this.$confirm('是否删除工具标识号:' + toolInfo.toolId + '?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -934,28 +941,28 @@ export default {
}, },
/*新增工具实例的modal*/ /*新增工具实例的modal*/
addToolInstanceModal(){
addToolInstanceModal() {
// //
if(this.currentRow && Object.keys(this.currentRow).length > 0){
if (this.currentRow && Object.keys(this.currentRow).length > 0) {
//modal //modal
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.toolInstanceAddUpdate.init(this.currentRow, true) this.$refs.toolInstanceAddUpdate.init(this.currentRow, true)
}); });
}else{
} else {
this.$message.error('请先选择工具信息再添加工具实例!'); this.$message.error('请先选择工具信息再添加工具实例!');
} }
}, },
/*修改工具实例的modal*/ /*修改工具实例的modal*/
editToolInstanceModal(row){
editToolInstanceModal(row) {
this.currentInstanceRow = row; this.currentInstanceRow = row;
// //
if(Object.keys(this.currentInstanceRow).length > 0){
if (Object.keys(this.currentInstanceRow).length > 0) {
//modal //modal
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.toolInstanceAddUpdate.init(this.currentInstanceRow, false) this.$refs.toolInstanceAddUpdate.init(this.currentInstanceRow, false)
}); });
}else{
} else {
this.$message.error('请先选择工具实例再添加工具实例!'); this.$message.error('请先选择工具实例再添加工具实例!');
} }
}, },
@ -971,8 +978,8 @@ export default {
}, },
/*删除工具实例确认*/ /*删除工具实例确认*/
deleteToolInstanceConfirm(toolInfo){
this.$confirm('是否删除工具实例:'+ toolInfo.toolInstance+'?', '提示', {
deleteToolInstanceConfirm(toolInfo) {
this.$confirm('是否删除工具实例:' + toolInfo.toolInstance + '?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
@ -989,19 +996,19 @@ export default {
}, },
/*工具实例的生命周期*/ /*工具实例的生命周期*/
editToolInstanceDateModal(toolInfo){
editToolInstanceDateModal(toolInfo) {
this.currentInstanceRow = toolInfo; this.currentInstanceRow = toolInfo;
// //
this.currentInstanceRow.toolType = this.currentRow.toolType; this.currentInstanceRow.toolType = this.currentRow.toolType;
this.currentInstanceRow.toolDesc = this.currentRow.toolDesc; this.currentInstanceRow.toolDesc = this.currentRow.toolDesc;
// //
if(Object.keys(this.currentInstanceRow).length > 0){
if (Object.keys(this.currentInstanceRow).length > 0) {
//modal //modal
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.toolInstanceDateShow.init(this.currentInstanceRow) this.$refs.toolInstanceDateShow.init(this.currentInstanceRow)
}); });
}else{
} else {
this.$message.error('请先选择工具实例再添加工具实例!'); this.$message.error('请先选择工具实例再添加工具实例!');
} }
}, },
@ -1009,51 +1016,52 @@ export default {
// //
changeData(row) { changeData(row) {
this.currentRow = JSON.parse(JSON.stringify(row)); this.currentRow = JSON.parse(JSON.stringify(row));
this.refreshCurrentTabTable ();
this.refreshCurrentTabTable();
}, },
/*切换工具实例*/ /*切换工具实例*/
changeInstanceData(row){
changeInstanceData(row) {
this.currentInstanceRow = JSON.parse(JSON.stringify(row)); this.currentInstanceRow = JSON.parse(JSON.stringify(row));
}, },
// //
search () {
search() {
getToolInfoList(this.searchData).then(({data}) => { getToolInfoList(this.searchData).then(({data}) => {
if (data.code == 200) { if (data.code == 200) {
this.dataList = data.rows; this.dataList = data.rows;
this.totalPage = data.total; this.totalPage = data.total;
if(this.dataList.length > 0){
if (this.dataList.length > 0) {
this.$refs.mainTable.setCurrentRow(this.dataList[0]); this.$refs.mainTable.setCurrentRow(this.dataList[0]);
// //
if(this.currentRow && Object.keys(this.currentRow).length > 0){
//
}else{
if (this.currentRow && Object.keys(this.currentRow).length > 0) {
//
} else {
this.currentRow = JSON.parse(JSON.stringify(this.dataList[0])); this.currentRow = JSON.parse(JSON.stringify(this.dataList[0]));
} }
}else {
this.currentRow ={}
} else {
this.currentRow = {}
} }
this.refreshCurrentTabTable ()
this.refreshCurrentTabTable()
} }
this.dataListLoading = false this.dataListLoading = false
}) })
}, },
tabClick (tab, event) {
tabClick(tab, event) {
// //
this.refreshCurrentTabTable() this.refreshCurrentTabTable()
}, },
// table // table
refreshCurrentTabTable () {
refreshCurrentTabTable() {
if (this.activeName == 'detail') { if (this.activeName == 'detail') {
this.refreshToolInstanceData(); this.refreshToolInstanceData();
} }
}, },
/*刷新工具实例的信息*/ /*刷新工具实例的信息*/
refreshToolInstanceData(){
refreshToolInstanceData() {
getToolInstanceList(this.currentRow).then(({data}) => { getToolInstanceList(this.currentRow).then(({data}) => {
if (data.code == 200) { if (data.code == 200) {
this.detailList = data.rows; this.detailList = data.rows;
@ -1063,11 +1071,11 @@ export default {
}, },
// //
downloadFile(row){
downloadFile(row) {
downLoadProjectFile(row) downLoadProjectFile(row)
.then(({data}) => { .then(({data}) => {
// //
const blob = new Blob([data], {type:'application/octet-stream;charset=utf-8'})
const blob = new Blob([data], {type: 'application/octet-stream;charset=utf-8'})
// //
const fileName = row.fileName const fileName = row.fileName
// a // a
@ -1094,7 +1102,7 @@ export default {
// }) // })
}, },
// //
sizeChangeHandle (val) {
sizeChangeHandle(val) {
this.searchData.pageSize = val; this.searchData.pageSize = val;
this.searchData.pageIndex = 1; this.searchData.pageIndex = 1;
this.search(); this.search();
@ -1109,18 +1117,23 @@ export default {
/*调整等待派工单的等待时间*/ /*调整等待派工单的等待时间*/
changeCurrentToolInfo(tempData, searchFlag) { changeCurrentToolInfo(tempData, searchFlag) {
// //
if(tempData.addFlag && searchFlag){
if (tempData.addFlag && searchFlag) {
// //
this.searchData.site = tempData.site; this.searchData.site = tempData.site;
this.searchData.toolId = tempData.toolId; this.searchData.toolId = tempData.toolId;
// //
this.refreshTooInfoData(); this.refreshTooInfoData();
}else {
} else {
// //
this.currentRow = JSON.parse(JSON.stringify(tempData)); this.currentRow = JSON.parse(JSON.stringify(tempData));
} }
}, },
changeCurrentToolRow(tempData) {
this.currentRow = JSON.parse(JSON.stringify(tempData));
this.refreshCurrentTabTable();
},
/*调整等待派工单的等待时间*/ /*调整等待派工单的等待时间*/
changeCurrentToolInstance(tempData) { changeCurrentToolInstance(tempData) {
// //
@ -1128,16 +1141,16 @@ export default {
}, },
/*选中行的样式*/ /*选中行的样式*/
rowToolStyle ({row}) {
rowToolStyle({row}) {
if (this.currentRow.site === row.site && this.currentRow.toolId === row.toolId) { if (this.currentRow.site === row.site && this.currentRow.toolId === row.toolId) {
return { 'background-color': '#D9EDF7', cursor: 'pointer' };
return {'background-color': '#D9EDF7', cursor: 'pointer'};
} }
}, },
/*选中行的样式*/ /*选中行的样式*/
rowToolInstanceStyle ({row}) {
rowToolInstanceStyle({row}) {
if (this.currentInstanceRow.site === row.site && this.currentInstanceRow.toolInstance === row.toolInstance) { if (this.currentInstanceRow.site === row.site && this.currentInstanceRow.toolInstance === row.toolInstance) {
return { 'background-color': '#D9EDF7', cursor: 'pointer' };
return {'background-color': '#D9EDF7', cursor: 'pointer'};
} }
}, },
@ -1152,6 +1165,7 @@ export default {
/deep/ .customer-tab .el-tabs__content { /deep/ .customer-tab .el-tabs__content {
padding: 0px !important; padding: 0px !important;
} }
.el-transfer-panel { .el-transfer-panel {
border: 2px solid #17b3a3; border: 2px solid #17b3a3;
border-radius: 4px; border-radius: 4px;

Loading…
Cancel
Save