Commit b4f537be authored by Mac's avatar Mac

1

parent 4c9d14f5
...@@ -17,46 +17,46 @@ ...@@ -17,46 +17,46 @@
<ul v-show="morequery" class="queryul"> <ul v-show="morequery" class="queryul">
<li style="float:left"> <li style="float:left">
<!-- :alwaysOpen="true" --> <!-- :alwaysOpen="true" -->
<treeselect style="height:50px;width:200px;" :options="treedata" v-model="msg.CategoryId" placeholder="分类" <treeselect style="height:50px;width:200px;" :options="treedata" v-model="msg.CategoryId" placeholder="分类"
:normalizer="normalizer" /> :normalizer="normalizer" />
</li> </li>
<li> <li>
<el-input class="w200" size="small" v-model="msg.Name" placeholder="档案名称" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input> <el-input class="w200" size="small" v-model="msg.Name" placeholder="档案名称" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input>
</li> </li>
<li> <li>
<el-input class="w200" size="small" v-model="msg.SuppliesNum" placeholder="物料编码" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input> <el-input class="w200" size="small" v-model="msg.SuppliesNum" placeholder="物料编码" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input>
</li> </li>
<li> <li>
<el-input class="w200" size="small" v-model="msg.BrandName" placeholder="品牌" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input> <el-input class="w200" size="small" v-model="msg.BrandName" placeholder="品牌" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input>
</li> </li>
<li> <li>
<el-input class="w200" size="small" v-model="msg.SupplierName" placeholder="供应商名称" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input> <el-input class="w200" size="small" v-model="msg.SupplierName" placeholder="供应商名称" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input>
</li> </li>
</ul> </ul>
<vxe-table stripe style="margin-top:15px" :loading="loading" <vxe-table stripe style="margin-top:15px" :loading="loading"
:data="tableData"> :data="tableData">
<vxe-table-column field="SuppliesNum" title="档案编码"> <vxe-table-column field="SuppliesNum" title="档案编码" >
<template v-slot="{ row }"> <template v-slot="{ row }">
<span class="underline" @click="getCheckDes(row)">{{row.SuppliesNum}}</span> <span class="underline" @click="getCheckDes(row)">{{row.SuppliesNum}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
<vxe-table-column field="Name" title="档案名称"> <vxe-table-column field="Name" title="档案名称" width='200'>
<template v-slot="{ row }"> <template v-slot="{ row }">
<span class="underline" @click="getCheckDes(row)">{{row.Name}}</span> <span class="underline" @click="getCheckDes(row)">{{row.Name}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
<vxe-table-column field="SuppliesName" title="规格" width='200'> <vxe-table-column field="SuppliesName" title="规格" width='200'>
<template v-slot="{ row }"> <template v-slot="{ row }">
<span v-for="(x,y) in row.GoodsSpecificationList" :key="y">{{x}}{{y+1==row.GoodsSpecificationList.length?'':','}}</span> <span v-for="(x,y) in row.GoodsSpecificationList" :key="y">{{x}}{{y+1==row.GoodsSpecificationList.length?'':','}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
<vxe-table-column field="CategoryName" title="分类名称"></vxe-table-column> <vxe-table-column field="CategoryName" title="分类名称"></vxe-table-column>
<vxe-table-column field="BrandName" title="品牌"></vxe-table-column> <vxe-table-column field="BrandName" title="品牌"></vxe-table-column>
<vxe-table-column field="Money" title="成本价"></vxe-table-column> <vxe-table-column field="Money" title="成本价"></vxe-table-column>
<vxe-table-column field="SupplierName" title="供应商"></vxe-table-column> <vxe-table-column field="SupplierName" title="供应商"></vxe-table-column>
<vxe-table-column field="Barcode" title="条形码号"></vxe-table-column> <!-- <vxe-table-column field="Barcode" title="条形码号"></vxe-table-column>-->
<vxe-table-column field="UpdateDate" title="库存"> <vxe-table-column field="UpdateDate" title="库存">
<template v-slot="{ row }"> <template v-slot="{ row }">
<p>预警库存:{{row.ReservedStock}}</p> <p>预警库存:{{row.ReservedStock}}</p>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<p>{{row.UpdateDate}}</p> <p>{{row.UpdateDate}}</p>
</template> </template>
</vxe-table-column> </vxe-table-column>
<vxe-table-column field="UpdateDate" title="备注"></vxe-table-column> <vxe-table-column field="Remark" title="备注"></vxe-table-column>
<vxe-table-column field="address" title="操作"> <vxe-table-column field="address" title="操作">
<template v-slot="{ row }"> <template v-slot="{ row }">
<el-tooltip class="item" effect="dark" content="编辑" placement="top"> <el-tooltip class="item" effect="dark" content="编辑" placement="top">
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
<img @click="DeleteImg(item,index)" src="../../assets/img/imgdelete.png" alt=""> <img @click="DeleteImg(item,index)" src="../../assets/img/imgdelete.png" alt="">
</div> </div>
</li> </li>
</ul> </ul>
<div class="uploadDiv"> <div class="uploadDiv">
<el-upload <el-upload
:http-request="uploadFileBtn" :http-request="uploadFileBtn"
...@@ -269,7 +269,7 @@ export default { ...@@ -269,7 +269,7 @@ export default {
}, },
mounted(){ mounted(){
this.getList(); this.getList();
this.getNode(); this.getNode();
}, },
methods:{ methods:{
getCheckDes(item){ getCheckDes(item){
...@@ -283,10 +283,10 @@ export default { ...@@ -283,10 +283,10 @@ export default {
this.addMsg.ImageList.splice(index, 1); this.addMsg.ImageList.splice(index, 1);
}, },
treefocus(){ treefocus(){
this.treedataState=true; this.treedataState=true;
}, },
treeblur(){ treeblur(){
this.treedataState=false; this.treedataState=false;
}, },
addSupplier(){ addSupplier(){
...@@ -440,7 +440,7 @@ export default { ...@@ -440,7 +440,7 @@ export default {
this.initMsg(); this.initMsg();
} }
}, },
} }
</script> </script>
......
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