| | |
| | | <template> |
| | | <div> |
| | | <div style="width: 100%;height: 100%;"> |
| | | <div style="width: 100%;height: 100%;" v-show="active === 0"> |
| | | <div> |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;text-align: left;">原材料检验下单</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="medium" type="primary" v-if="tabIndex === 0" @click="openIFS">获取IFS订单</el-button> |
| | | <el-button size="medium" type="primary" v-if="tabIndex === 0">报检</el-button> |
| | | <el-button size="medium" type="primary" v-if="tabIndex === 0" @click="playOrder(1)">报检</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | |
| | | :key="'b'+ upIndex" /> |
| | | </div> |
| | | </div> |
| | | <div style="width: 100%;height: 100%;" v-if="active >0"> |
| | | <CustomsInspection :active="active" :currentId="currentId" v-if="active<4" /> |
| | | </div> |
| | | <el-dialog title="获取IFS订单行" :visible.sync="IFSDialog" width="70%"> |
| | | <div class="search"> |
| | | <div class="search_thing"> |
| | |
| | | |
| | | <script> |
| | | import ValueTable from "../tool/value-table.vue"; |
| | | import CustomsInspection from "../do/b1-material-ins-order/customs-inspection.vue"; |
| | | |
| | | export default { |
| | | name: "b1-material-inspection-order", |
| | | // import 引入的组件需要注入到对象中才能使用 |
| | | components: {ValueTable}, |
| | | components: {CustomsInspection, ValueTable}, |
| | | data() { |
| | | // 这里存放数据 |
| | | return { |
| | |
| | | entityCopy: {}, |
| | | entityCopyIFS: {}, |
| | | IFSDialog: false, |
| | | IFSGetLoading: false |
| | | IFSGetLoading: false, |
| | | active: 0, //1:报检,2:查看,3:审核,4:光纤配置,默认为0 |
| | | currentId: null, |
| | | } |
| | | }, |
| | | mounted () { |
| | |
| | | submitPrint () { |
| | | |
| | | }, |
| | | // 报检 |
| | | playOrder(num) { |
| | | // if (this.multipleSelection.length < 1) { |
| | | // this.$message.error('请选择需要报检的数据') |
| | | // return |
| | | // } |
| | | this.active = num |
| | | if (num === 0) { |
| | | this.refreshTable('page') |
| | | } |
| | | }, |
| | | // 切换tab表格 |
| | | handleTab(m, i) { |
| | | this.tabIndex = i; |