Commit 6f0424a1 authored by zhengke's avatar zhengke

修改

parent 30b370be
<template>
<div class="assetsList InventoryDetail">
<div class="routerTitle">
<span class="pageTitle">报损/报溢<span @click="Backto" style="position:relative;top:-5px"
class="backTo">返回</span></span>
<span @click="morequery = !morequery" style="display:inline-flex;align-items:center;cursor: pointer;"
class="f12 cd6">
<span style="margin-right:5px">高级查询</span>
<img v-show="!morequery" style="width:12px;height:12px;" src="../../assets/img/more.png" alt="" />
<img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="" />
</span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan">查询</span>
<span @click="savePan" style="margin-left:20px" class="chaxunSpan">确认报损</span>
</div>
<div class="padContent">
<ul v-show="morequery" class="queryul">
<li>
<el-input class="w200" size="small" v-model="msg.SuppliesId" placeholder="物料Id"
@keyup.enter.native="msg.pageIndex=1,getList()"></el-input>
</li>
<li>
<el-input class="w200" size="small" v-model="msg.SuppliesName" placeholder="物料名称"
@keyup.enter.native="msg.pageIndex=1,getList()"></el-input>
</li>
<li>
<el-select size="small" v-model="msg.CheckStatus" @change="msg.pageIndex=1,getList()">
<el-option label="不限" :value="0"> </el-option>
<el-option v-for="item in getCheckStatusList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select>
</li>
<li>
<el-select size="small" v-model="msg.DealStatus" @change="msg.pageIndex=1,getList()">
<el-option label="已处理" :value="1"></el-option>
<el-option label="未处理" :value="2"></el-option>
</el-select>
</li>
</ul>
<vxe-table stripe style="margin-top:15px" :loading="loading" :data="tableData">
<vxe-table-column field="Name">
<template v-slot="{ row }">
<el-checkbox @change="getRow(row)"></el-checkbox>
</template>
</vxe-table-column>
<vxe-table-column field="Name" title="状态">
<template v-slot="{ row }">
<span class="ColorSpan huangSpan" v-if="row.CheckStatus == 1"></span>
<span class="ColorSpan greenSpan" v-if="row.CheckStatus == 2"></span>
<span class="ColorSpan purpleSpan" v-if="row.CheckStatus == 3"></span>
<span class="ColorSpan redSpan" v-if="row.CheckStatus == 4"></span>
<span>{{row.CheckStatusName}}</span>
</template>
</vxe-table-column>
<vxe-table-column field="SuppliesNo" title="物料编号"></vxe-table-column>
<vxe-table-column field="SuppliesId" title="物料id"></vxe-table-column>
<vxe-table-column field="SuppliesName" title="物料名称"></vxe-table-column>
<vxe-table-column field="SpecificationList" title="规格">
<template v-slot="{ row }">
<span v-for="(x,y) in row.SpecificationList" :key="y">{{x}} <span
v-if="row.SpecificationList.length !== y+1"> , </span></span>
</template>
</vxe-table-column>
<vxe-table-column field="InventoryNum" title="库存"></vxe-table-column>
<vxe-table-column field="RealityNum" title="实际数量"></vxe-table-column>
<vxe-table-column field="Unit_Money" title="最新单价">
<template v-slot="{ row }">
<el-input type='text' class="w80" v-model="row.Unit_Money" />
</template>
</vxe-table-column>
<vxe-table-column field="Remark" title="备注"></vxe-table-column>
<vxe-table-column field="CheckEmpName" title="盘点人名称"></vxe-table-column>
<vxe-table-column field="CheckDate" title="盘点时间"></vxe-table-column>
<vxe-table-column field="address" title="操作">
</vxe-table-column>
</vxe-table>
<el-pagination @current-change="currentChange" background :page-size="msg.pageSize" layout="prev, pager, next"
:total="total" :current-page.sync="msg.pageIndex">
</el-pagination>
</div>
</div>
</template>
<script>
export default {
name: "InventoryBosun",
components: {},
data() {
return {
morequery: false,
dateList: [],
currentPage: 1,
tableData: [],
loading: false,
total: 0,
getCheckStatusList: [],
//盘点报损报溢msg
msg: {
pageIndex: 1,
pageSize: 99999999,
CheckId: 0,
SuppliesId: 0,
SuppliesName: '',
CheckStatus: 0,
DealStatus: 2 //盈亏处理状态 1已处理 2未处理
},
};
},
mounted() {
this.msg.CheckId = this.$route.query.CheckId;
this.getList();
this.getCheckStatus();
},
methods: {
currentChange(val) {
this.msg.pageIndex = val;
this.getList();
},
getCheckStatus() {
this.apiJavaPost("/api/property/GetPropertyCheckStatusEnumList", {},
res => {
if (res.data.resultCode === 1) {
this.getCheckStatusList = res.data.data;
} else {
this.Error(res.data.message);
}
},
null
);
},
Backto() {
this.$router.push({
path: "/InventoryDetail",
query: {
CheckId:this.msg.CheckId
}
});
},
//查看报损
getList() {
this.loading = true;
this.apiJavaPost(
"/api/supplies/GetSuppliesCheckDetailBreakagePageList",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode === 1) {
this.tableData = res.data.data.pageData;
this.total = res.data.data.count;
} else {
this.Error(res.data.message);
}
},
null
);
},
//保存
savePan(){
},
//勾选
getRow(row){
console.log(row,'row');
}
}
};
</script>
<style>
.InventoryDetail .dateList .el-date-editor .el-range__icon {
line-height: 24px;
}
.InventoryDetail .dateList .el-date-editor .el-range-separator {
line-height: 22px;
}
.InventoryDetail .MyEditForm .dateList.el-input__inner {
width: 300px;
}
.assetsList .MyEditForm .baseform .el-form-item:nth-child(4n) {
margin-right: 0;
}
.assetsList .zczt1 {
background: #ffe4d5;
color: #ffa87c;
}
.assetsList .zczt2 {
background: #beeff0;
color: #089bab;
}
.assetsList .zczt3 {
background: #ffd6d5;
color: #ff7874;
}
.assetsList .zczt4 {
background: #d7d6ff;
color: #7b78ff;
}
.assetsList .Commonzczt {
display: inline-block;
width: 24px;
height: 24px;
line-height: 24px;
text-align: center;
border-radius: 50%;
font-size: 12px;
font-family: "Microsoft YaHei";
}
.assetsList {
width: 100%;
height: 100%;
}
.w80 {
width: 80px !important;
}
</style>
<template> <template>
<div class="assetsList InventoryDetail"> <div class="assetsList InventoryDetail">
<div class="routerTitle"> <div class="routerTitle">
<span class="pageTitle">耗材盘点明细<span @click="Backto" style="position:relative;top:-5px" class="backTo">返回</span></span> <span class="pageTitle">耗材盘点明细<span @click="Backto" style="position:relative;top:-5px"
<span class="backTo">返回</span></span>
@click="morequery = !morequery" <span @click="morequery = !morequery" style="display:inline-flex;align-items:center;cursor: pointer;"
style="display:inline-flex;align-items:center;cursor: pointer;" class="f12 cd6">
class="f12 cd6"
>
<span style="margin-right:5px">高级查询</span> <span style="margin-right:5px">高级查询</span>
<img <img v-show="!morequery" style="width:12px;height:12px;" src="../../assets/img/more.png" alt="" />
v-show="!morequery" <img v-show="morequery" class="roatImg" style="width:12px;height:12px" src="../../assets/img/more.png" alt="" />
style="width:12px;height:12px;"
src="../../assets/img/more.png"
alt=""
/>
<img
v-show="morequery"
class="roatImg"
style="width:12px;height:12px"
src="../../assets/img/more.png"
alt=""
/>
</span> </span>
<span @click="getList" style="margin-left:20px" class="chaxunSpan" <span @click="getList" style="margin-left:20px" class="chaxunSpan">查询</span>
>查询</span <span @click="outerVisible=true" style="margin-left:20px" class="chaxunSpan">导入</span>
> <span @click="goBaosun" style="margin-left:20px" class="chaxunSpan">查看报损/报溢</span>
<span @click="complePandian" style="margin-left:20px" class="chaxunSpan">完成盘点</span>
</div> </div>
<div class="padContent"> <div class="padContent">
<ul v-show="morequery" class="queryul"> <ul v-show="morequery" class="queryul">
扫码出库
<li> <li>
<el-input <el-input class="w200" size="small" v-model="barCode" placeholder="商品出库条码" @keyup.enter.native="getList()">
class="w200" </el-input>
size="small"
v-model="msg.SuppliesId"
placeholder="物料Id"
@keyup.enter.native="msg.pageIndex=1,getList()"
></el-input>
</li> </li>
<li> <li>
<el-input <el-input class="w200" size="small" v-model="msg.SuppliesId" placeholder="物料Id"
class="w200" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input>
size="small" </li>
v-model="msg.SuppliesName" <li>
placeholder="物料名称" <el-input class="w200" size="small" v-model="msg.SuppliesName" placeholder="物料名称"
@keyup.enter.native="msg.pageIndex=1,getList()" @keyup.enter.native="msg.pageIndex=1,getList()"></el-input>
></el-input>
</li> </li>
<li> <li>
<el-select size="small" v-model="msg.CheckStatus" @change="msg.pageIndex=1,getList()"> <el-select size="small" v-model="msg.CheckStatus" @change="msg.pageIndex=1,getList()">
<el-option label="盘点状态" :value="0"> </el-option> <el-option label="不限" :value="0"> </el-option>
<el-option v-for="item in getCheckStatusList" :key="item.Id" :label="item.Name" :value="item.Id"> </el-option> <el-option v-for="item in getCheckStatusList" :key="item.Id" :label="item.Name" :value="item.Id">
</el-option>
</el-select> </el-select>
</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="Name" title="状态"> <vxe-table-column field="Name" title="状态">
<template v-slot="{ row }"> <template v-slot="{ row }">
<span class="ColorSpan huangSpan" v-if="row.CheckStatus == 1"></span> <span class="ColorSpan huangSpan" v-if="row.CheckStatus == 1"></span>
<span class="ColorSpan greenSpan" v-if="row.CheckStatus == 2"></span> <span class="ColorSpan greenSpan" v-if="row.CheckStatus == 2"></span>
<span class="ColorSpan purpleSpan" v-if="row.CheckStatus == 3"></span> <span class="ColorSpan purpleSpan" v-if="row.CheckStatus == 3"></span>
<span class="ColorSpan redSpan" v-if="row.CheckStatus == 4"></span> <span class="ColorSpan redSpan" v-if="row.CheckStatus == 4"></span>
<span >{{row.CheckStatusName}}</span> <span>{{row.CheckStatusName}}</span>
</template> </template>
</vxe-table-column> </vxe-table-column>
<vxe-table-column field="SuppliesNo" title="物料编号"></vxe-table-column> <vxe-table-column field="SuppliesNo" title="物料编号"></vxe-table-column>
...@@ -72,14 +53,16 @@ ...@@ -72,14 +53,16 @@
<vxe-table-column field="SuppliesName" title="物料名称"></vxe-table-column> <vxe-table-column field="SuppliesName" title="物料名称"></vxe-table-column>
<vxe-table-column field="SpecificationList" title="规格"> <vxe-table-column field="SpecificationList" title="规格">
<template v-slot="{ row }"> <template v-slot="{ row }">
<span v-for="(x,y) in row.SpecificationList" :key="y">{{x}} <span v-if="row.SpecificationList.length !== y+1"> , </span></span> <span v-for="(x,y) in row.SpecificationList" :key="y">{{x}} <span
v-if="row.SpecificationList.length !== y+1"> , </span></span>
</template> </template>
</vxe-table-column> </vxe-table-column>
<vxe-table-column field="InventoryNum" title="库存"></vxe-table-column> <vxe-table-column field="InventoryNum" title="库存"></vxe-table-column>
<vxe-table-column field="RealityNum" title="实际数量"></vxe-table-column> <vxe-table-column field="RealityNum" title="实际数量">
<template v-slot="{ row }">
<el-input type='text' class="w80" v-model="row.RealityNum" />
</template>
</vxe-table-column>
<vxe-table-column field="Remark" title="备注"></vxe-table-column> <vxe-table-column field="Remark" title="备注"></vxe-table-column>
<vxe-table-column field="CheckEmpName" title="盘点人名称"></vxe-table-column> <vxe-table-column field="CheckEmpName" title="盘点人名称"></vxe-table-column>
...@@ -87,46 +70,64 @@ ...@@ -87,46 +70,64 @@
<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" v-if="row.CheckState ==1"> <el-tooltip class="item" effect="dark" content="保存" placement="top">
<img v-if="row.CheckState ==1" @click="Edit(row)" style="width:24px;height:24px" src="../../assets/img/edit.png" alt=""> <img @click="saveInfo(row)" style="width:24px;height:24px" src="../../assets/img/step1.png" alt="">
</el-tooltip> </el-tooltip>
<el-tooltip style="display:inline-block;position:relative;top:-2px;" class="item" effect="dark"
content="上传图片" placement="top">
<el-upload :http-request="uploadFileBtn" :multiple="false" :show-file-list="false" action>
<img style="width:24px;height:20px" @click="getRow(row)" src="../../assets/img/pic.png" alt="" />
</el-upload>
</el-tooltip>
<el-tooltip class="item" effect="dark"
content="修改备注" placement="top">
<img style="width:24px;height:24px" @click="getRowRemark(row)" src="../../assets/img/edit.png" alt="" />
</el-tooltip>
</template> </template>
</vxe-table-column> </vxe-table-column>
</vxe-table> </vxe-table>
<el-pagination <el-pagination @current-change="currentChange" background :page-size="msg.pageSize" layout="prev, pager, next"
@current-change="currentChange" :total="total" :current-page.sync="msg.pageIndex">
background
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="total"
:current-page.sync="msg.pageIndex"
>
</el-pagination> </el-pagination>
</div> </div>
<el-dialog :close-on-click-modal="false" top="0" width="600px" title="导入" :visible.sync="outerVisible" center>
<el-upload :show-file-list="false" style="text-align: center;margin:20px 0" drag class="upload-demo"
:action="importFileUrl2" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload">
<i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
</el-upload>
</el-dialog>
<!-- 单个修改备注 -->
<el-dialog title="修改备注" :close-on-click-modal="false" :visible.sync="dialogState" top="0" width="650px">
<el-form class="MyEditForm" ref="addMsg" label-width="0px">
<div class="basefix">
<div class="baseform">
<el-form-item style="width:600px" label="" prop="Content">
<span class="label">备注</span>
<el-input size="small" type="textarea" :autosize="{ minRows: 2, maxRows: 4}" v-model="Content"
placeholder="请输入"></el-input>
</el-form-item>
</div>
</div>
<div class="btnformItem">
<span class="submitBtn" type="primary" @click="saveRemark">确定</span>
<span class="exitBtn" @click="dialogState = false">取消</span>
</div>
</el-form>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import Treeselect from "@riophae/vue-treeselect"; export default {
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; name: "InventoryDetail",
export default { components: {},
name: "assetsList",
components: {
Treeselect
},
data() { data() {
return { return {
valueConsistsOf: 'ALL', dialogState:false,
queryLoad:false,
addMsg: {
Id: 0,
WarehouseId:'',
StartDate: "",
EndDate: ""
},
morequery: false, morequery: false,
dateList: [], dateList: [],
currentPage: 1, currentPage: 1,
...@@ -136,167 +137,141 @@ export default { ...@@ -136,167 +137,141 @@ export default {
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 99999999, pageSize: 99999999,
CheckId:0, CheckId: 0, //盘点单id
SuppliesId:'', SuppliesId: '', //物料id
SuppliesName:'', SuppliesName: '', //物料名称
CheckStatus:0, CheckStatus: 0, //盘点状态
// DealStatus:0,//盈亏处理状态 (在盈亏界面使用) // DealStatus:0,//盈亏处理状态 (在盈亏界面使用)
IsSelectCheckLoss:0,//是否只查询盘点盈亏的 1是 0否 IsSelectCheckLoss: 0, //是否只查询盘点盈亏的 1是 0否
IsSelectHaveInventory:0,//是否只查询有库存数量的 1是 0否 IsSelectHaveInventory: 0, //是否只查询有库存数量的 1是 0否
}, },
getCheckStatusList:[], getCheckStatusList: [],
dialogtitle: "新增",
dialogState: false,
//导入excel弹窗
outerVisible: false,
//是否显示盈亏处理状态
importFileUrl2: "",
//商品出库条码
barCode: '',
//单条保存公用type
Type: 1,
//单条图片
commonId: 0,
//单条保存备注
Content:'',
commonRow:{}
}; };
}, },
mounted() { mounted() {
this.msg.CheckId = this.$route.query.CheckId;
this.msg.CheckId = this.$route.query.CheckId
this.getList(); this.getList();
this.getCheckStatus() this.getCheckStatus();
//上传接口路径
this.importFileUrl2 = this.domainManager().DomainUrl +
"/api/file/LocalFileUploadImportForSuppliesCheck";
}, },
methods: { methods: {
limitText(val){
return `+${val}` currentChange(val) {
this.msg.pageIndex = val;
this.getList();
}, },
SetEnd(item,type){ getList() {
let that=this; this.loading = true;
let msg={};
this.$confirm("确认该操作?","提示", {
confirmButtonText:"确定",
cancelButtonText: "取消",
type: 'warning'
}).then(() => {
msg.CheckId = item.Id;
msg.Type = type;
this.apiJavaPost( this.apiJavaPost(
"/api/property/SetPropertyCheckStatus", "/api/supplies/GetSuppliesCheckDetailPageList",
msg, this.msg,
res => { res => {
this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList(); this.tableData = res.data.data.pageData;
this.Success(res.data.message); this.total = res.data.data.count;
console.log(this.tableData, 'tabledata');
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
null null
); );
}).catch(() => {
});
}, },
SeeDetails(item,path){
this.$router.push({
path: path,
query: {
CheckId:item.Id
}
});
},
Delete(item) { getCheckStatus() {
let Id = item.Id; this.apiJavaPost("/api/property/GetPropertyCheckStatusEnumList", {},
this.$confirm("确认取消?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
})
.then(() => {
this.apiJavaPost(
"/api/supplies/CancelSuppliesCheck",
{ CheckId: Id },
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList(); this.getCheckStatusList = res.data.data;
this.Success(res.data.message);
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
null null
); );
}) },
.catch(() => { Backto() {
this.$message.info("已取消!"); this.$router.push({
path: "/consumablesInventory"
}); });
}, },
analyse(item){ //跳转至报损报溢
let Id = item.Id; goBaosun() {
this.$confirm("确认复盘?", "提示", { this.$router.push({
confirmButtonText: "确定", path: "/InventoryBosun",
cancelButtonText: "取消", query: {
type: "warning" CheckId: this.msg.CheckId
})
.then(() => {
this.apiJavaPost(
"/api/supplies/RepeatSuppliesCheck",
{ CheckId: Id },
res => {
if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message);
} else {
this.Error(res.data.message);
} }
},
null
);
})
.catch(() => {
this.$message.info("已取消复盘!");
}); });
}, },
submitForm(formName) { //完成盘点
this.$refs[formName].validate(valid => { complePandian() {
if (valid) { let msg = {
if(this.dateList && this.dateList.length>0){ CheckId: this.msg.CheckId
this.addMsg.StartDate=this.dateList[0];
this.addMsg.EndDate=this.dateList[1];
} }
delete this.addMsg.UpdateBy;
delete this.addMsg.UpdateDate;
this.queryLoad=true;
this.apiJavaPost( this.apiJavaPost(
"/api/supplies/SetSuppliesCheck", "/api/supplies/SetSuppliesCheckComplete", msg,
this.addMsg,
res => { res => {
this.queryLoad=false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getList();
this.Success(res.data.message); this.Success(res.data.message);
this.dialogState = false;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
}, },
null null
); );
} else { },
return false; beforeAvatarUpload(file) {
return;
const isJPG = file.type === "application/x-msdownload";
if (!isJPG) {
this.Error("上传文件只能是 excel 格式!");
} }
}); return isJPG && isLt2M;
}, },
//上传
handleAvatarSuccess(res, file) {
if (res.resultCode == 1) {
console.log(res, '上传后');
this.outerVisible = false;
} else {
this.Error(res.message);
currentChange(val) { }
this.msg.pageIndex = val;
this.getList();
}, },
getList() { //耗材单个盘点保存
saveInfo(row) {
this.loading = true; console.log(row, 'row');
let msg = {
CheckDetailId: row.Id,
Type: this.Type,
Reality: row.RealityNum,
ImageList: row.ImageList,
Remark: row.Remark
}
this.apiJavaPost( this.apiJavaPost(
"/api/supplies/GetSuppliesCheckDetailPageList", "/api/supplies/SetSuppliesCheckDetailReality", msg,
this.msg,
res => { res => {
this.loading = false;
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.tableData = res.data.data.pageData; this.Success(res.data.message);
this.total = res.data.data.count;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -304,13 +279,39 @@ export default { ...@@ -304,13 +279,39 @@ export default {
null null
); );
}, },
//点击上传图片
getRow(row) {
getCheckStatus(){ console.log(row, '点了上传');
this.apiJavaPost("/api/property/GetPropertyCheckStatusEnumList", {}, this.Type = 2;
this.commonId = row.Id;
this.ImageList = row.ImageList;
},
//点击修改备注
getRowRemark(row){
this.Content=row.Remark;
this.dialogState=true;
this.commonRow=row;
},
//点击确定
saveRemark(){
this.dialogState=false;
// this.tableData.forEach(x=>{
// if(x.Id==this.commonId){
// x.Remark=this.Content
// }
// })
let msg = {
CheckDetailId: this.commonRow.Id,
Type: 3,
Reality: this.commonRow.RealityNum,
ImageList: this.commonRow.ImageList,
Remark: this.Content
}
this.apiJavaPost(
"/api/supplies/SetSuppliesCheckDetailReality", msg,
res => { res => {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
this.getCheckStatusList = res.data.data; this.Success(res.data.message);
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -318,49 +319,94 @@ export default { ...@@ -318,49 +319,94 @@ export default {
null null
); );
}, },
Backto(){ uploadFileBtn(file) {
this.$router.push({ //上传
path: "/consumablesInventory" if (file.file.size > 1024 * 1024 * 10) {
this.$message.warning("文件大小不能超过10M!");
return;
}
// 1 文档 2 数据 3 图片
let typeArr = [{
stringArr: "GIF|JPG|JPEG|PNG|BMP",
type: 3
}];
let ft = file.file.name
.substring(file.file.name.lastIndexOf(".") + 1, file.file.name.length)
.toUpperCase();
let fileTypeNumber = 2;
let typeOk = false;
typeArr.forEach(x => {
if (x.stringArr.indexOf(ft) != "-1") {
fileTypeNumber = x.type;
typeOk = true;
}
}); });
if (!typeOk) return this.$message.error("请上传图片!");
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary";
this.$message.info("上传中...");
this.UploadSelfFileT(path, newArr, x => {
let fileSize =
file.file.size < 1024 ?
file.file.size :
(file.file.size / 1024).toFixed(0);
this.tableData.forEach(y => {
if (y.Id == this.commonId) {
y.ImageList.push(
this.domainManager().ViittoFileUrl + x.data.FilePath
)
} }
})
this.Success("上传成功");
});
},
} }
}; };
</script> </script>
<style> <style>
.InventoryDetail .MyEditForm .dateList .el-input__inner{ .InventoryDetail .dateList .el-date-editor .el-range__icon {
/* width:300px; */
}
.InventoryDetail .dateList .el-date-editor .el-range__icon{
line-height: 24px; line-height: 24px;
} }
.InventoryDetail .dateList .el-date-editor .el-range-separator{
.InventoryDetail .dateList .el-date-editor .el-range-separator {
line-height: 22px; line-height: 22px;
} }
.InventoryDetail .MyEditForm .dateList.el-input__inner{
.InventoryDetail .MyEditForm .dateList.el-input__inner {
width: 300px; width: 300px;
} }
.assetsList .MyEditForm .baseform .el-form-item:nth-child(4n) {
.assetsList .MyEditForm .baseform .el-form-item:nth-child(4n) {
margin-right: 0; margin-right: 0;
} }
.assetsList .zczt1 {
.assetsList .zczt1 {
background: #ffe4d5; background: #ffe4d5;
color: #ffa87c; color: #ffa87c;
} }
.assetsList .zczt2 {
.assetsList .zczt2 {
background: #beeff0; background: #beeff0;
color: #089bab; color: #089bab;
} }
.assetsList .zczt3 {
.assetsList .zczt3 {
background: #ffd6d5; background: #ffd6d5;
color: #ff7874; color: #ff7874;
} }
.assetsList .zczt4 {
.assetsList .zczt4 {
background: #d7d6ff; background: #d7d6ff;
color: #7b78ff; color: #7b78ff;
} }
.assetsList .Commonzczt {
.assetsList .Commonzczt {
display: inline-block; display: inline-block;
width: 24px; width: 24px;
height: 24px; height: 24px;
...@@ -369,9 +415,15 @@ export default { ...@@ -369,9 +415,15 @@ export default {
border-radius: 50%; border-radius: 50%;
font-size: 12px; font-size: 12px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.assetsList {
.assetsList {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.w80 {
width: 80px !important;
}
</style> </style>
...@@ -235,6 +235,12 @@ export default { ...@@ -235,6 +235,12 @@ export default {
name: 'InventoryDetail', name: 'InventoryDetail',
component: resolve => require(['@/components/Materialman/InventoryDetail'], resolve), component: resolve => require(['@/components/Materialman/InventoryDetail'], resolve),
}, },
// 耗材报损报溢
{
path: '/InventoryBosun',
name: 'InventoryBosun',
component: resolve => require(['@/components/Materialman/InventoryBosun'], resolve),
},
// 现存量查询 // 现存量查询
{ {
......
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