Commit b181f574 authored by zhengke's avatar zhengke

修改

parent 72ec656e
......@@ -86,96 +86,107 @@
<el-dialog
:title="dialogtitle"
:visible.sync="dialogState"
width="680px" style="height:700px">
<el-form class="Archivesform" :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
<el-form-item label="档案名称" prop="Name">
top="3%"
width="850px">
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0">
<el-form-item prop="Name">
<span class="label">档案名称</span>
<el-input size="small" v-model="addMsg.Name"></el-input>
</el-form-item>
<el-form-item label="档案编码">
<el-form-item>
<span class="label">档案编码</span>
<el-input size="small" v-model="addMsg.SuppliesNum"></el-input>
</el-form-item>
<el-form-item style="float:left" label="品牌名称" prop="BrandName">
<el-form-item prop="BrandName">
<span class="label">品牌名称</span>
<el-input size="small" v-model="addMsg.BrandName"></el-input>
</el-form-item>
<el-form-item class="treeItem" label="分类">
<treeselect style="height:36px" class='w200 fl' :options="treedata" v-model="addMsg.CategoryId" placeholder="不限"
<el-form-item class="treeItem" style="float:left;">
<span class="label">分类</span>
<treeselect style="height:32px" class='w200 fl' :options="treedata" v-model="addMsg.CategoryId" placeholder="不限"
:normalizer="normalizer" @select='treeClick' />
</el-form-item>
<el-form-item label="供应商名称">
<el-form-item>
<span class="label">供应商名称</span>
<el-input size="small" v-model="addMsg.SupplierName"></el-input>
</el-form-item>
<el-form-item label="安全库存">
<el-form-item>
<span class="label">安全库存</span>
<el-input size="small" v-model="addMsg.SafetyStock"></el-input>
</el-form-item>
<el-form-item label="预警预存">
<el-form-item>
<span class="label">预警预存</span>
<el-input size="small" v-model="addMsg.ReservedStock"></el-input>
</el-form-item>
<el-form-item label="型号">
<el-form-item>
<span class="label">型号</span>
<el-input size="small" v-model="addMsg.SuppliesModel"></el-input>
</el-form-item>
<el-form-item label="单位">
<el-form-item>
<span class="label">单位</span>
<el-input size="small" v-model="addMsg.Units"></el-input>
</el-form-item>
<el-form-item label="成本价">
<el-form-item>
<span class="label">成本价</span>
<el-input size="small" v-model="addMsg.Money"></el-input>
</el-form-item>
<el-form-item label="条形码号">
<el-form-item>
<span class="label">条形码号</span>
<el-input size="small" v-model="addMsg.Barcode"></el-input>
</el-form-item>
<el-form-item label="备注">
<el-form-item>
<span class="label">备注</span>
<el-input size="small" v-model="addMsg.Remark"></el-input>
</el-form-item>
<el-form-item label="图片">
<div class="_addUpload_box">
<div class="_pic_upload">
<!-- <template v-if="addMsg.images!==''">
<div>
<div
style="width:100%;height:100%;overflow: hidden;display: flex;align-items: center;"
>
<img :src="addMsg.images">
<span
style="font-size:12px; color:#666666;cursor: pointer;line-height: 20px;"
@click="addMsg.images=''"
>重新上传</span>
<div class="_addUpload_box">
<ul class="uploadUl">
<li>
<img src="../../assets/img/pic.png" alt="">
<div class="hoverDiv">
<img src="../../assets/img/imgdelete.png" alt="">
</div>
</div>
</template> -->
<el-upload
</li>
</ul>
<div class="uploadDiv">
<el-upload
:http-request="uploadFileBtn"
:multiple="false"
:show-file-list="false"
action
>
<i class="el-icon-plus avatar-uploader-icon"></i>
<div class="el-upload__text">点击/拖拽上传</div>
<img style="width:40px;height:36px" src="../../assets/img/pic.png" alt="">
<div class="el-upload__text">上传图片</div>
</el-upload>
</div>
</div>
</el-form-item>
<el-form-item>
<el-button size="small" type="primary" @click="submitForm('addMsg')">确定</el-button>
<el-button size="small" @click="dialogState=false">取消</el-button>
</el-form-item>
</div>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span>
<span class="exitBtn" @click="dialogState=false">取消</span>
</div>
</el-form>
</el-dialog>
</div>
</template>
<script>
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
export default {
name: 'Archivesmaterials',
components: {
Treeselect
},
data(){
return{
morequery:false,
normalizer(node) {
var obj = {
id: node.label,
// label: node.DepartmentName,
id: node.Id,
label: node.Name,
};
// if (node.ChildList != null && node.ChildList.length > 0) {
// obj.children = node.ChildList;
// }
if (node.ChildList != null && node.ChildList.length > 0) {
obj.children = node.ChildList;
}
return obj;
},
currentPage:1,
......@@ -361,10 +372,12 @@ export default {
Edit(item){
this.dialogtitle="编辑物料档案";
this.dialogState=true;
this.addMsg={
Id:item.Id,
Name:item.Name,
}
console.log(item,'item');
this.addMsg=Object.assign({},item);
// this.addMsg={
// Id:item.Id,
// Name:item.Name,
// }
},
Delete(item){
let Id=item.Id;
......
......@@ -57,15 +57,16 @@
<el-dialog
:title="dialogtitle"
:visible.sync="dialogState"
width="30%">
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="100px">
<el-form-item label="仓库名称" prop="Name">
width="20%">
<el-form class="MyEditForm" :model="addMsg" :rules="rules" ref="addMsg" label-width="0">
<el-form-item prop="Name" style="margin-left:60px;">
<span class="label">仓库名称</span>
<el-input v-model="addMsg.Name"></el-input>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForm('addMsg')">确定</el-button>
<el-button @click="dialogState=false">取消</el-button>
</el-form-item>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="submitForm('addMsg')">确定</span>
<span class="exitBtn" @click="dialogState=false">取消</span>
</div>
</el-form>
</el-dialog>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment