| | |
| | | <el-row class="title"> |
| | | <el-col :span="12" style="padding-left: 20px;">检验下单</el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="medium" type="primary" @click="playOrder(4)">光纤配置</el-button> |
| | | <el-button size="medium" type="primary" @click="playOrder(1)" v-if="addPower">下单</el-button> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | </el-dialog> |
| | | </div> |
| | | <div style="width: 100%;height: 100%;" v-if="active >0"> |
| | | <Add :active="active" :currentId="currentId" v-show="active<4" /> |
| | | <fiberOpticConfig :currentId="currentId" v-if="active==4" /> |
| | | <Add :active="active" :currentId="currentId" v-if="active<4" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | <script> |
| | | import ValueTable from '../tool/value-table.vue' |
| | | import Add from '../do/b1-ins-order/add.vue' |
| | | import fiberOpticConfig from '../do/b1-ins-order/fiberoptic-config.vue' |
| | | export default { |
| | | components: { |
| | | ValueTable, |
| | | Add, |
| | | fiberOpticConfig |
| | | Add |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | let up = false |
| | | let del = false |
| | | let add = false |
| | | let revoke = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'upInsOrder') { |
| | | up = true |
| | |
| | | if (power[i].menuMethod == 'addInsOrder') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'updateStatus') { |
| | | revoke = true |
| | | } |
| | | } |
| | | if (!up) { |
| | | this.componentData.do.splice(4, 1) |
| | | } |
| | | if (!revoke) { |
| | | this.componentData.do.splice(3, 1) |
| | | } |
| | | this.addPower = add |
| | | }, |
| | | handleClose() { |