| | |
| | | <div class="search_thing" style="width: 20%;" v-if="more"> |
| | | <div class="search_label">下单人:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="componentData.entity.value1" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | v-model="componentData.entity.name" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | </div> |
| | | <div class="search_thing" style="width: 20%;" v-if="more"> |
| | | <div class="search_label">工程名称:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="componentData.entity.value2" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | v-model="componentData.entity.engineering" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | </div> |
| | | <div class="search_thing" style="width: 20%;" v-if="more"> |
| | | <div class="search_label">生产单位:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="componentData.entity.value3" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | v-model="componentData.entity.production" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="4"> |
| | |
| | | </el-dialog> |
| | | </div> |
| | | <div style="width: 100%;height: 100%;" v-if="active >0"> |
| | | <Add :active="active" :currentId="currentId" /> |
| | | <Add :active="active" :currentId="currentId" v-if="active<4" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | sampleModel: null, |
| | | sampleCode: null, |
| | | state: 0, |
| | | value1:null, |
| | | value2:null, |
| | | value3:null, |
| | | name:null, |
| | | engineering:null, |
| | | production:null, |
| | | orderBy: { |
| | | field: 'id', |
| | | order: 'asc' |
| | |
| | | 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() { |