This commit is contained in:
shijing 2023-12-21 13:16:46 +08:00
commit 278e3c3648
4 changed files with 12 additions and 10 deletions

View File

@ -88,14 +88,14 @@
link link
type="success" type="success"
size="small" size="small"
@click="table_show('show', scope.row)" @click="table_show(scope.row)"
>查看 >查看
</el-button> </el-button>
<el-button <el-button
link link
type="warning" type="warning"
size="small" size="small"
@click="table_edit('edit', scope.row)" @click="table_edit(scope.row)"
>编辑 >编辑
</el-button> </el-button>
</template> </template>

View File

@ -55,6 +55,11 @@
<el-switch v-model="form.need_route" /> <el-switch v-model="form.need_route" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :md="12" :sm="24">
<el-form-item label="是否隐藏" prop="is_hidden">
<el-switch v-model="form.is_hidden" />
</el-form-item>
</el-col>
<el-col :md="12" :sm="24"> <el-col :md="12" :sm="24">
<el-form-item label="安全库存" prop="count_safe"> <el-form-item label="安全库存" prop="count_safe">
<el-input-number v-model="form.count_safe" :min="0" /> <el-input-number v-model="form.count_safe" :min="0" />

View File

@ -31,6 +31,7 @@
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" icon="el-icon-plus" @click="table_add" <el-button type="primary" icon="el-icon-plus" @click="table_add"
v-auth="'route.create'">新增</el-button> v-auth="'route.create'">新增</el-button>
<div style="font-size: 16px">当前选择: {{ selectedProduct.name }}</div>
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">
@ -102,7 +103,7 @@
<el-switch v-model="form.is_autotask" /> <el-switch v-model="form.is_autotask" />
</el-form-item> </el-form-item>
<el-form-item label="主要输入" prop="material_in"> <el-form-item label="主要输入" prop="material_in">
<el-select v-model="form.material_in" placeholder="物料" clearable style="width: 100%;"> <el-select v-model="form.material_in" placeholder="物料" clearable filterable style="width: 100%;">
<el-option v-for="item in materialOptions" :key="item.id" :label="item.full_name" :value="item.id"> <el-option v-for="item in materialOptions" :key="item.id" :label="item.full_name" :value="item.id">
<span style="float: left">{{ item.full_name }}</span> <span style="float: left">{{ item.full_name }}</span>
<span style="float: right;color: '#E6A23C';font-size: 13px;" v-if="item.is_hidden">{{ <span style="float: right;color: '#E6A23C';font-size: 13px;" v-if="item.is_hidden">{{
@ -111,7 +112,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="主要输出" prop="material_out"> <el-form-item label="主要输出" prop="material_out">
<el-select v-model="form.material_out" placeholder="物料" clearable style="width: 100%;"> <el-select v-model="form.material_out" placeholder="物料" clearable filterable style="width: 100%;">
<el-option v-for="item in materialOptions" :key="item.id" :label="item.full_name" :value="item.id"> <el-option v-for="item in materialOptions" :key="item.id" :label="item.full_name" :value="item.id">
<span style="float: left">{{ item.full_name }}</span> <span style="float: left">{{ item.full_name }}</span>
<span style="float: right;color: '#E6A23C';font-size: 13px;" v-if="item.is_hidden">{{ <span style="float: right;color: '#E6A23C';font-size: 13px;" v-if="item.is_hidden">{{

View File

@ -173,17 +173,13 @@
this.isSaveing = false; this.isSaveing = false;
this.limitedVisible = false; this.limitedVisible = false;
this.$refs.table.refresh(); this.$refs.table.refresh();
}).catch(err=>{ }).catch(e=>{this.isSaveing = false;})
this.isSaveing = false;
});
}else{ }else{
this.$API.system.role.update.req(that.addForm.id,that.addForm).then(res=>{ this.$API.system.role.update.req(that.addForm.id,that.addForm).then(res=>{
this.isSaveing = false; this.isSaveing = false;
this.limitedVisible = false; this.limitedVisible = false;
this.$refs.table.refresh(); this.$refs.table.refresh();
}).catch(err=>{ }).catch(e=>{this.isSaveing = false;})
this.isSaveing = false;
});
} }
} }
}) })