|
@@ -86,7 +86,8 @@
|
|
|
<!-- <el-button type="primary" icon="el-icon-finished" size="medium" @click="expandsEve()">{{$t("prepare.buttons.expandsEve")}}</el-button>-->
|
|
|
<el-button type="primary" icon="el-icon-thumb" size="medium" v-has-permission="['bom:examine']" @click="audioStatus('1')">{{$t("prepare.buttons.audioStatus")}}</el-button>
|
|
|
<el-button type="primary" icon="el-icon-suitcase" size="medium" v-has-permission="['bom:exproduct']" @click="audioBtn()">{{$t("prepare.buttons.audioBtn")}}</el-button>
|
|
|
- </el-col>
|
|
|
+ <el-button type="primary" icon="el-icon-reading" size="medium" @click="importBtn()">{{$t("prepare.buttons.importBtn")}}</el-button>
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
|
|
|
|
<el-table
|
|
@@ -213,6 +214,38 @@
|
|
|
</el-row>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!--导入-->
|
|
|
+ <el-dialog
|
|
|
+ v-el-drag-dialog
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :close-on-press-escape="true"
|
|
|
+ :title='$t("prepare.buttons.importBtn")'
|
|
|
+ width="400px"
|
|
|
+ top="150px"
|
|
|
+ :visible.sync="importIsVisible"
|
|
|
+ >
|
|
|
+ <template>
|
|
|
+ <el-row>
|
|
|
+ <el-radio v-model="importValue" label="excel">{{$t("prepare.buttons.importExcel")}}</el-radio>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-radio v-model="importValue" label="Siemens">{{$t("prepare.buttons.importSiemens")}}</el-radio>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-radio v-model="importValue" label="Catia">{{$t("prepare.buttons.importCatia")}}</el-radio>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="margin-top: 30px;text-align: center;">
|
|
|
+ <span v-show="showSpanFlag" id="showSpanFlag">正在导入,请等待...</span>
|
|
|
+ <el-button plain type="primary" size="medium" @click="importBom">
|
|
|
+ {{ $t("common.confirm") }}
|
|
|
+ </el-button>
|
|
|
+ <el-button plain type="danger" size="medium" @click="colseImport">
|
|
|
+ {{ $t("common.cancel") }}
|
|
|
+ </el-button>
|
|
|
+ </el-row>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -232,6 +265,7 @@ export default {
|
|
|
components: { Pagination, TenantEdit, TenantView },
|
|
|
data () {
|
|
|
return {
|
|
|
+ showSpanFlag:false,
|
|
|
expands: [], // 展开行的key
|
|
|
qiyongStatus: [], //状态
|
|
|
statusList: [], // 启用状态
|
|
@@ -246,6 +280,8 @@ export default {
|
|
|
context: ''
|
|
|
},
|
|
|
audioIsVisible: false,
|
|
|
+ importIsVisible: false,
|
|
|
+ importValue:"excel",
|
|
|
audioVal: '2', //默认【审核通过】
|
|
|
tenantViewVisible: false,
|
|
|
tableKey: 0,
|
|
@@ -345,6 +381,27 @@ export default {
|
|
|
// }
|
|
|
this.audioIsVisible = true
|
|
|
},
|
|
|
+ // 【导入零件】-按钮事件
|
|
|
+ importBtn(){
|
|
|
+ this.importIsVisible = true
|
|
|
+ },
|
|
|
+ // 【取消】导入按钮-事件
|
|
|
+ colseImport(){
|
|
|
+ this.importIsVisible = false
|
|
|
+ },
|
|
|
+ // 【确定】导入按钮-事件
|
|
|
+ importBom(){
|
|
|
+ this.showSpanFlag = true;
|
|
|
+ // 调用导入
|
|
|
+ bomMgrApi.importBom({}).then(response => {
|
|
|
+ if (response.status == 200) {
|
|
|
+ this.showSpanFlag = false;
|
|
|
+ this.importIsVisible = false
|
|
|
+ // 重新查询列表数据
|
|
|
+ this.search()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 【审核产品】-Table的Row操作事件
|
|
|
audioBtnRow(row) {
|
|
|
// 清除所有的选择数据
|