|
|
@ -72,9 +72,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table :data="erpList" style="width: 100%" highlight-current-row="true" border
|
|
|
|
<el-table :data="erpList" style="width: 100%" highlight-current-row="true" border ref="multipleTable" @row-click="handleRowClick"
|
|
|
|
v-loading="erpLloading" @current-change="handleErpChange" @selection-change="handleSelectionChange">
|
|
|
|
v-loading="erpLloading" @current-change="handleErpChange" @selection-change="handleSelectionChange">
|
|
|
|
<el-table-column v-if="isImport" type="selection" width="55"></el-table-column>
|
|
|
|
<el-table-column v-if="isImport" type="selection" width="55" ></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label width="45" v-if="!isImport">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-radio :label="scope.row.id" v-model="chenck"><span></span></el-radio>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!--<el-table-column v-if="!isImport" type="selection" width="55"></el-table-column>-->
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="物资编码" prop="code"></el-table-column>
|
|
|
|
<el-table-column label="物资编码" prop="code"></el-table-column>
|
|
|
|
<el-table-column label="物资名称" prop="name"></el-table-column>
|
|
|
|
<el-table-column label="物资名称" prop="name"></el-table-column>
|
|
|
@ -298,6 +304,7 @@ export default {
|
|
|
|
multipleUdiSelection: [],
|
|
|
|
multipleUdiSelection: [],
|
|
|
|
thirdSys: [],
|
|
|
|
thirdSys: [],
|
|
|
|
thirdSysFk: null,
|
|
|
|
thirdSysFk: null,
|
|
|
|
|
|
|
|
chenck: '',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -337,8 +344,15 @@ export default {
|
|
|
|
this.unionQuery.page = val;
|
|
|
|
this.unionQuery.page = val;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleErpChange(val) {
|
|
|
|
handleErpChange(val,currentRow, oldCurrentRow) {
|
|
|
|
this.currentRow = val;
|
|
|
|
if (!this.isImport){
|
|
|
|
|
|
|
|
this.chenck = val.id
|
|
|
|
|
|
|
|
this.currentRow = val;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleRowClick(row){
|
|
|
|
|
|
|
|
row.isSelected = !row.isSelected;
|
|
|
|
|
|
|
|
this.$refs.multipleTable.toggleRowSelection(row);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
hideSearch() {
|
|
|
|
hideSearch() {
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
|
this.showSearch = !this.showSearch;
|
|
|
@ -581,10 +595,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
console.log("jjjjj",this.data)
|
|
|
|
|
|
|
|
if (this.data != null){
|
|
|
|
|
|
|
|
this.data.spec = this.data.bzgg
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getBasicThirdSys();
|
|
|
|
this.getBasicThirdSys();
|
|
|
|
this.erpQuery.code = this.intentThirdId;
|
|
|
|
this.erpQuery.code = this.intentThirdId;
|
|
|
|
|
|
|
|
|
|
|
|