Commit 3b760e6b by T

现场版本

parent 14422c3c
No preview for this file type
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<script> <script>
window._CONFIG = {}; window._CONFIG = {};
// window._CONFIG['dlURL'] = 'http://192.168.2.105:5007'; // window._CONFIG['dlURL'] = 'http://192.168.2.105:5007';
// window._CONFIG['dlURL'] = 'http://192.168.3.74:5001'; //window._CONFIG['dlURL'] = 'http://192.168.3.188:5007';
window._CONFIG['dlURL'] = 'http://41.204.124.248:5001'; window._CONFIG['dlURL'] = 'http://41.204.124.248:5001';
</script> </script>
......
...@@ -33,9 +33,9 @@ Vue.config.productionTip = false ...@@ -33,9 +33,9 @@ Vue.config.productionTip = false
// axios.defaults.baseURL = 'http://192.168.3.74:5001' // axios.defaults.baseURL = 'http://192.168.3.74:5001'
//开发环境 //开发环境
axios.defaults.baseURL = 'http://192.168.3.188:5007' //axios.defaults.baseURL = 'http://192.168.3.188:5007'
//现场 //现场
// axios.defaults.baseURL = 'http://41.204.124.248:5001' axios.defaults.baseURL = 'http://41.204.124.248:5001'
// 配置请求超时 // 配置请求超时
......
...@@ -29,7 +29,7 @@ export default new Vuex.Store({ ...@@ -29,7 +29,7 @@ export default new Vuex.Store({
{ {
id: 1, id: 1,
path: '/borrow', path: '/borrow',
menuName: '借用/领用管理', menuName: '借管理',
icon: "iconfont icon-Home", icon: "iconfont icon-Home",
children: [ children: [
{ {
...@@ -165,7 +165,7 @@ export default new Vuex.Store({ ...@@ -165,7 +165,7 @@ export default new Vuex.Store({
{ {
id: 6 - 3, id: 6 - 3,
path: "/systemConfig/police", path: "/systemConfig/police",
menuName: "人员设置", menuName: "人员管理",
// icon: 'icon-Export', // icon: 'icon-Export',
} }
], ],
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
v-model="searchData.IsHaoCai" v-model="searchData.IsHaoCai"
filterable filterable
clearable clearable
placeholder="请选择是否为耗材" placeholder="请选择是否贴标"
> >
<el-option <el-option
v-for="item in optionsEquipment" v-for="item in optionsEquipment"
...@@ -213,9 +213,9 @@ ...@@ -213,9 +213,9 @@
<td class="textContent"> <td class="textContent">
{{ detailData.Unit }} {{ detailData.Unit }}
</td> </td>
<th class="textHeader">所否为消耗品</th> <th class="textHeader">是否贴标</th>
<td class="textContentLast"> <td class="textContentLast">
{{ detailData.IsHaoCai == 1 ? "是" : "否" }} {{ detailData.IsHaoCai == 1 ? "未贴标" : "已贴标" }}
</td> </td>
</tr> </tr>
<tr style="border-bottom: 1px solid #e8e8e8"> <tr style="border-bottom: 1px solid #e8e8e8">
...@@ -259,11 +259,17 @@ ...@@ -259,11 +259,17 @@
<th class="textHeader">视频查看</th> <th class="textHeader">视频查看</th>
<td class="textContentLast"> <td class="textContentLast">
<video v-if="detailData.VideoUrl !=''&& detailData.VideoUrl !=null" <video v-if="detailData.VideoUrl !=''&& detailData.VideoUrl !=null"
v-bind:src="detailData.VideoUrl" v-bind:src="'http://41.204.124.248:5001/' +detailData.videoUrl"
class="avatar video-avatar" class="avatar video-avatar"
controls="controls"> controls="controls">
您的浏览器不支持视频播放 您的浏览器不支持视频播放
</video> </video>
<!-- <video v-if="detailData.VideoUrl !=''&& detailData.VideoUrl !=null"
v-bind:src="'http://192.168.3.188:5007/' + detailData.VideoUrl"
class="avatar video-avatar"
controls="controls">
您的浏览器不支持视频播放
</video> -->
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -412,7 +418,7 @@ ...@@ -412,7 +418,7 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="视频上传" class="diaC" > <el-form-item label="视频上传" class="diaC" >
<!-- action="http://192.168.2.105:5007/api/UpFile/UploadVideo" --> <!-- action="http://192.168.3.188:5007/api/UpFile/UploadVideo" -->
<el-upload <el-upload
class="avatar-uploader" class="avatar-uploader"
...@@ -423,8 +429,14 @@ ...@@ -423,8 +429,14 @@
v-bind:on-success="handleVideoSuccess" v-bind:on-success="handleVideoSuccess"
v-bind:before-upload="beforeUploadVideo" v-bind:before-upload="beforeUploadVideo"
v-bind:show-file-list="false"> v-bind:show-file-list="false">
<!-- <video v-if="videoForm.storageurl !='' && !videoFlag"
v-bind:src="'http://192.168.3.188:5007/'+videoForm.storageurl"
class="avatar video-avatar"
controls="controls">
您的浏览器不支持视频播放
</video> -->
<video v-if="videoForm.storageurl !='' && !videoFlag" <video v-if="videoForm.storageurl !='' && !videoFlag"
v-bind:src="videoForm.storageurl" v-bind:src="'http://41.204.124.248:5001/'+videoForm.storageurl"
class="avatar video-avatar" class="avatar video-avatar"
controls="controls"> controls="controls">
您的浏览器不支持视频播放 您的浏览器不支持视频播放
...@@ -530,15 +542,15 @@ export default { ...@@ -530,15 +542,15 @@ export default {
}, },
{ {
value: "1", value: "1",
label: "耗材", label: "未贴标",
}, },
{ {
value: "0", value: "0",
label: "非耗材", label: "已贴标",
}, },
], ],
videoForm: { videoForm: {
storageurl: ""// 视频地址 storageurl: "",// 视频地址
}, },
searchData: { searchData: {
Page: 1, Page: 1,
...@@ -584,7 +596,8 @@ storageurl: ""// 视频地址 ...@@ -584,7 +596,8 @@ storageurl: ""// 视频地址
borrowTableVisible: false, borrowTableVisible: false,
detailData: { detailData: {
MaterielCode: "", MaterielCode: "",
VideoUrl:"" VideoUrl:"",
//videoUrlSrc:""
}, },
fixdetailData: [], fixdetailData: [],
loading: false, loading: false,
...@@ -672,11 +685,21 @@ storageurl: ""// 视频地址 ...@@ -672,11 +685,21 @@ storageurl: ""// 视频地址
beforeUploadVideo(file) { beforeUploadVideo(file) {
var fileSize = file.size / 1024 / 1024 < 50; var fileSize = file.size / 1024 / 1024 < 50;
if (['video/mp4', 'video/ogg', 'video/flv', 'video/avi', 'video/wmv', 'video/rmvb', 'video/mov'].indexOf(file.type) == -1) { if (['video/mp4', 'video/ogg', 'video/flv', 'video/avi', 'video/wmv', 'video/rmvb', 'video/mov'].indexOf(file.type) == -1) {
layer.msg("请上传正确的视频格式"); //layer.msg("请上传正确的视频格式");
this.$message({
message: "请上传正确的视频格式",
type: "warning",
})
return false; return false;
} }
if (!fileSize) { if (!fileSize) {
layer.msg("视频大小不能超过50MB"); //layer.msg("视频大小不能超过50MB");
this.$message({
message: "视频大小不能超过50MB",
type: "warning",
})
return false; return false;
} }
this.isShowUploadVideo = false; this.isShowUploadVideo = false;
...@@ -697,10 +720,10 @@ console.log("up") ...@@ -697,10 +720,10 @@ console.log("up")
if (res.Success === true) { if (res.Success === true) {
this.$message.success('视频上传成功') this.$message.success('视频上传成功')
// this.videoForm.storageurl = 'http://192.168.3.74:5001/'+res.Info // this.videoForm.storageurl = 'http://192.168.3.74:5001/'+res.Info
// this.videoForm.storageurl = 'http://192.168.2.105:5007/'+res.Info this.videoForm.storageurl = res.Info
this.videoForm.storageurl = 'http://41.204.124.248:5001/'+res.Info //this.videoForm.storageurl = 'http://41.204.124.248:5001/'+res.Info
console.log("imgUrl",this.videoForm.storageurl) console.log("vUrl",this.videoForm.storageurl)
} else { } else {
this.$message.error('视频上传失败,请重新上传!') this.$message.error('视频上传失败,请重新上传!')
} }
...@@ -709,6 +732,8 @@ console.log("up") ...@@ -709,6 +732,8 @@ console.log("up")
check(row) { check(row) {
this.borrowTableVisible = true; this.borrowTableVisible = true;
this.detailData = row; this.detailData = row;
//this.detailData.videoUrlSrc=window._CONFIG['dlURL']+'/'+videoUrl;
//console.log(this.detailData.videoUrl)
console.log("de",this.detailData) console.log("de",this.detailData)
}, },
//编辑信息 //编辑信息
...@@ -720,7 +745,7 @@ console.log("up") ...@@ -720,7 +745,7 @@ console.log("up")
this.EditRuleForm = JSON.parse(JSON.stringify(row)); this.EditRuleForm = JSON.parse(JSON.stringify(row));
if (row.VideoUrl!=null) if (row.VideoUrl!=null)
{ {
this.videoForm.storageurl=JSON.parse(JSON.stringify(row.VideoUrl)); this.videoForm.storageurl=JSON.parse(JSON.stringify(row.VideoUrl));
} }
this.title = "修改物料"; this.title = "修改物料";
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
style="height: 40px" style="height: 40px"
class="funcButton" class="funcButton"
@click="addEquipment()" @click="addEquipment()"
>添加装备</el-button >添加装备(未贴标)</el-button
> >
</el-form> </el-form>
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
<th class="textHeader">视频查看</th> <th class="textHeader">视频查看</th>
<td class="textContentLast"> <td class="textContentLast">
<video height="250px" width="300px" v-if="videoUrl !=''&& videoUrl !=null" <video height="250px" width="300px" v-if="videoUrl !=''&& videoUrl !=null"
v-bind:src="videoUrl" v-bind:src="videoUrlSrc"
class="avatar video-avatar" class="avatar video-avatar"
controls="controls"> controls="controls">
您的浏览器不支持视频播放 您的浏览器不支持视频播放
...@@ -497,7 +497,7 @@ ...@@ -497,7 +497,7 @@
<el-form-item class="diaB" label="采购日期"> <el-form-item class="diaB" label="采购日期">
<el-date-picker <el-date-picker
v-model="ruleForm.BuyTime" v-model="ruleForm.BuyTime"
value-format="yyyy年MM月dd日" value-format="yyyy-MM-dd"
class="inputA" class="inputA"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
...@@ -533,9 +533,9 @@ ...@@ -533,9 +533,9 @@
</el-form-item> </el-form-item>
<el-form-item class="diaB" label="报废日期"> <el-form-item class="diaB" label="报废日期">
<el-date-picker <el-date-picker
class="inputA"
value-format="yyyy年MM月dd日"
v-model="ruleForm.TermTime" v-model="ruleForm.TermTime"
class="inputA"
value-format="yyyy-MM-dd"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
> >
...@@ -708,6 +708,7 @@ export default { ...@@ -708,6 +708,7 @@ export default {
IsPublic: [{ required: true, message: "请选择类型", trigger: "blur" }], IsPublic: [{ required: true, message: "请选择类型", trigger: "blur" }],
}, },
videoUrl:"", videoUrl:"",
videoUrlSrc:"",
IsPublicType: [ IsPublicType: [
{ {
value: 0, value: 0,
...@@ -747,8 +748,8 @@ export default { ...@@ -747,8 +748,8 @@ export default {
], ],
aaa: "", aaa: "",
classDis: false, classDis: false,
peopleShow: true, peopleShow: false,
warehouseSelect: false, warehouseSelect: true,
usersOption: [], usersOption: [],
sizeOption: [], sizeOption: [],
MaterielOption: [], MaterielOption: [],
...@@ -781,7 +782,7 @@ export default { ...@@ -781,7 +782,7 @@ export default {
}, },
], ],
selectShow: false, selectShow: true,
searchData: { searchData: {
Page: 1, Page: 1,
Rows: 10, Rows: 10,
...@@ -829,11 +830,11 @@ export default { ...@@ -829,11 +830,11 @@ export default {
ruleForm: { ruleForm: {
ID: 0, ID: 0,
EqType: 0, EqType: 0,
IsPubilc: 2, //IsPubilc: 1,
EqName: "", EqName: "",
EqCode: "", EqCode: "",
BuyTime: "", BuyTime: null,
TermTime: "", TermTime: null,
Price: 1, Price: 1,
BaoYangDays: 1, BaoYangDays: 1,
Remarks: "", Remarks: "",
...@@ -841,7 +842,7 @@ export default { ...@@ -841,7 +842,7 @@ export default {
EqHaoCai: 1, EqHaoCai: 1,
EqCount: 1, EqCount: 1,
policeUserID: "", policeUserID: "",
IsPublic: 2, IsPublic: 1,
CategoryID: "", CategoryID: "",
CategoryName: "", CategoryName: "",
EqSizeId: "", EqSizeId: "",
...@@ -876,20 +877,20 @@ export default { ...@@ -876,20 +877,20 @@ export default {
resetForm() { resetForm() {
console.log("aaa") console.log("aaa")
this.$refs["ruleForm"].resetFields(); this.$refs["ruleForm"].resetFields();
this.peopleShow = true; this.peopleShow = false;
this.warehouseSelect = false; this.warehouseSelect = true;
this.selectShow = false; this.selectShow = true;
this.MaterielOption = []; this.MaterielOption = [];
this.storageOption = []; this.storageOption = [];
this.warehouseOption = []; this.warehouseOption = [];
this.ruleForm = { this.ruleForm = {
ID: 0, ID: 0,
EqType: 2, EqType: 2,
IsPubilc: 2, //IsPubilc: 1,
EqName: "", EqName: "",
EqCode: "", EqCode: "",
BuyTime: "", BuyTime: null,
TermTime: "", TermTime: null,
Price: 1, Price: 1,
BaoYangDays: 1, BaoYangDays: 1,
Remarks: "", Remarks: "",
...@@ -900,7 +901,7 @@ export default { ...@@ -900,7 +901,7 @@ export default {
IsNormal: "", IsNormal: "",
EqCount: 1, EqCount: 1,
policeUserID: "", policeUserID: "",
IsPublic: 2, IsPublic: 1,
CategoryID: "", CategoryID: "",
CategoryName: "", CategoryName: "",
EqSizeId: "", EqSizeId: "",
...@@ -995,7 +996,7 @@ export default { ...@@ -995,7 +996,7 @@ export default {
const formData = new FormData(); const formData = new FormData();
formData.append("ID", this.ruleForm.ID); formData.append("ID", this.ruleForm.ID);
formData.append("EqType", this.ruleForm.EqType); formData.append("EqType", this.ruleForm.EqType);
formData.append("IsPubilc", this.ruleForm.IsPublic.toString()); formData.append("IsPublic", this.ruleForm.IsPublic.toString());
formData.append("EqCode", this.ruleForm.EqCode); formData.append("EqCode", this.ruleForm.EqCode);
formData.append("EqName", this.ruleForm.EqName); formData.append("EqName", this.ruleForm.EqName);
...@@ -1024,7 +1025,7 @@ export default { ...@@ -1024,7 +1025,7 @@ export default {
}, },
}; };
if (type === "添加装备(耗材)") { if (type === "添加装备(未贴标)") {
const { data: res } = await this.$axios.post( const { data: res } = await this.$axios.post(
"/api/Equipment", "/api/Equipment",
formData, formData,
...@@ -1057,6 +1058,7 @@ export default { ...@@ -1057,6 +1058,7 @@ export default {
this.detailData = res; this.detailData = res;
console.log("ro",row) console.log("ro",row)
this.videoUrl=row.VideoUrl; this.videoUrl=row.VideoUrl;
this.videoUrlSrc=window._CONFIG['dlURL']+'/'+this.videoUrl;
}, },
//删除预案 //删除预案
deleteClick(row) { deleteClick(row) {
...@@ -1083,7 +1085,7 @@ export default { ...@@ -1083,7 +1085,7 @@ export default {
//添加装备 //添加装备
async addEquipment() { async addEquipment() {
this.classDis = false; this.classDis = false;
this.title = "添加装备(耗材)"; this.title = "添加装备(未贴标)";
this.addVisible = true; this.addVisible = true;
const { data: resclass } = await this.$axios.get("api/EqCategory", { const { data: resclass } = await this.$axios.get("api/EqCategory", {
params: this.searchEqCategoryData, params: this.searchEqCategoryData,
......
...@@ -278,11 +278,11 @@ export default { ...@@ -278,11 +278,11 @@ export default {
}, },
{ {
value: "1", value: "1",
label: "耗材", label: "未贴标",
}, },
{ {
value: "0", value: "0",
label: "非耗材", label: "已贴标",
}, },
], ],
searchEqCategoryData: { searchEqCategoryData: {
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
style="height: 40px; margin-left: 10px" style="height: 40px; margin-left: 10px"
class="funcButton" class="funcButton"
@click="addRecive(0)" @click="addRecive(0)"
>借用下发(耗材)</el-button >借用下发(未贴标)</el-button
> >
<el-button <el-button
type="primary" type="primary"
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
style="height: 40px" style="height: 40px"
class="funcButton" class="funcButton"
@click="addRecive(1)" @click="addRecive(1)"
>借用下发(非耗材)</el-button >借用下发(已贴标)</el-button
> >
</el-form> </el-form>
...@@ -287,10 +287,20 @@ ...@@ -287,10 +287,20 @@
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column
prop="NameAndCode"
label="装备名称"
align="center"
>
</el-table-column>
<el-table-column prop="EqSizeName" label="号型" align="center"> <el-table-column prop="EqSizeName" label="号型" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="LyCount" label="借用数量" align="center"> <el-table-column prop="LyCount" label="借用数量" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="OutTime" label="借出时间" align="center">
</el-table-column>
<el-table-column prop="ReturnTime" label="归还时间" align="center">
</el-table-column>
</el-table> </el-table>
</template> </template>
</el-card> </el-card>
...@@ -938,6 +948,8 @@ export default { ...@@ -938,6 +948,8 @@ export default {
Order: "ESC", Order: "ESC",
MaterielId: "", MaterielId: "",
EqSizeId: "", EqSizeId: "",
State: 0,
IsNoBorrow: true
}, },
searchMaterielData: { searchMaterielData: {
Page: 1, Page: 1,
...@@ -1114,7 +1126,7 @@ export default { ...@@ -1114,7 +1126,7 @@ export default {
this.AddPlanForm.EquipmentName=obj.NameAndCode; this.AddPlanForm.EquipmentName=obj.NameAndCode;
this.AddPlanForm.EquipmentId = obj.ID; this.AddPlanForm.EquipmentId = obj.ID;
this.AddPlanForm.NameAndCode = obj.NameAndCode; this.AddPlanForm.NameAndCode = obj.NameAndCode;
this.AddPlanForm.LabelEpc = obj.LabelEpc; this.AddPlanForm.epc = obj.LabelEpc;
console.log("val",this.AddPlanForm) console.log("val",this.AddPlanForm)
} }
else else
...@@ -1266,7 +1278,7 @@ export default { ...@@ -1266,7 +1278,7 @@ export default {
EqSizeCode: this.AddPlanForm.EqSizeCode, EqSizeCode: this.AddPlanForm.EqSizeCode,
NameAndCode: this.AddPlanForm.NameAndCode, NameAndCode: this.AddPlanForm.NameAndCode,
EquipmentId: this.AddPlanForm.EquipmentId, EquipmentId: this.AddPlanForm.EquipmentId,
LabelEpc: this.AddPlanForm.LabelEpc, epc: this.AddPlanForm.epc,
}; };
console.log("添加物资", plan); console.log("添加物资", plan);
obj = this.NHCruleForm.BorrowList.find(function (item) { obj = this.NHCruleForm.BorrowList.find(function (item) {
...@@ -1318,9 +1330,9 @@ export default { ...@@ -1318,9 +1330,9 @@ export default {
}, },
stateFormat(row) { stateFormat(row) {
if (row.IsHaoCai === 0) { if (row.IsHaoCai === 0) {
return "非耗材"; return "已贴标";
} else if(row.IsHaoCai===1) { } else if(row.IsHaoCai===1) {
return "耗材"; return "未贴标";
} }
else else
{ {
...@@ -1347,12 +1359,12 @@ export default { ...@@ -1347,12 +1359,12 @@ export default {
console.log(row); console.log(row);
if (row === 0) { if (row === 0) {
//耗材0 //耗材0
this.title = "借用下发(耗材物资)"; this.title = "借用下发(未贴标物资)";
this.addVisible = true; this.addVisible = true;
this.ruleForm.BorrowList = []; this.ruleForm.BorrowList = [];
} //非耗材1 } //非耗材1
else { else {
this.title = "借用下发(非耗材物资)"; this.title = "借用下发(已贴标物资)";
this.NHCaddVisible = true; this.NHCaddVisible = true;
this.NHCruleForm.BorrowList = []; this.NHCruleForm.BorrowList = [];
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<el-breadcrumb-item :to="{ path: '/index' }" <el-breadcrumb-item :to="{ path: '/index' }"
>首页</el-breadcrumb-item >首页</el-breadcrumb-item
> >
<el-breadcrumb-item>用/领用管理</el-breadcrumb-item> <el-breadcrumb-item>管理</el-breadcrumb-item>
<el-breadcrumb-item>归还记录</el-breadcrumb-item> <el-breadcrumb-item>归还记录</el-breadcrumb-item>
</el-breadcrumb></el-col </el-breadcrumb></el-col
> >
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<el-breadcrumb-item :to="{ path: '/index' }" <el-breadcrumb-item :to="{ path: '/index' }"
>首页</el-breadcrumb-item >首页</el-breadcrumb-item
> >
<el-breadcrumb-item>用/领用管理</el-breadcrumb-item> <el-breadcrumb-item>管理</el-breadcrumb-item>
<el-breadcrumb-item>人员借用</el-breadcrumb-item> <el-breadcrumb-item>人员借用</el-breadcrumb-item>
</el-breadcrumb></el-col </el-breadcrumb></el-col
> >
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<el-breadcrumb-item :to="{ path: '/index' }" <el-breadcrumb-item :to="{ path: '/index' }"
>首页</el-breadcrumb-item >首页</el-breadcrumb-item
> >
<el-breadcrumb-item>用/领用管理</el-breadcrumb-item> <el-breadcrumb-item>管理</el-breadcrumb-item>
<el-breadcrumb-item>领用管理</el-breadcrumb-item> <el-breadcrumb-item>领用管理</el-breadcrumb-item>
</el-breadcrumb></el-col </el-breadcrumb></el-col
> >
...@@ -898,7 +898,7 @@ export default { ...@@ -898,7 +898,7 @@ export default {
//下发领用 //下发领用
async addRecive() { async addRecive() {
this.title = "领用下发(耗材物资)"; this.title = "领用下发(未贴标物资)";
this.addVisible = true; this.addVisible = true;
this.ruleForm.BorrowList = []; this.ruleForm.BorrowList = [];
// //
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col" > <el-col :xs="12" :sm="12" :lg="6" class="card-panel-col" >
<div <div
class="card-panel" class="card-panel"
@click="handleSetLineChartData('newVisitis')" @click="handleSetLineChartData('全部')"
> >
<div class="card-panel-icon-wrapper icon-people"> <div class="card-panel-icon-wrapper icon-people">
<img <img
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
/> />
</div> </div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text">待审批</div> <div class="card-panel-text">借待审批</div>
<count-to <count-to
:start-val="0" :start-val="0"
:end-val="eqCount.h_JYWaitToExamined" :end-val="eqCount.h_JYWaitToExamined"
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
/> />
</div> </div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text">待审批</div> <div class="card-panel-text">领待审批</div>
<count-to <count-to
:start-val="0" :start-val="0"
:end-val="eqCount.h_LYWaitToExamined" :end-val="eqCount.h_LYWaitToExamined"
......
...@@ -162,9 +162,8 @@ ...@@ -162,9 +162,8 @@
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="searchData.pageNo" :current-page="searchData.page"
:page-sizes="[10, 20, 30, 40]" :page-sizes="[10, 20, 30, 40]"
:page-size="searchData.Page"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
/> />
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<el-breadcrumb-item :to="{ path: '/index' }" <el-breadcrumb-item :to="{ path: '/index' }"
>首页</el-breadcrumb-item >首页</el-breadcrumb-item
> >
<el-breadcrumb-item>用/领用管理</el-breadcrumb-item> <el-breadcrumb-item>管理</el-breadcrumb-item>
<el-breadcrumb-item>出入库记录</el-breadcrumb-item> <el-breadcrumb-item>出入库记录</el-breadcrumb-item>
</el-breadcrumb></el-col </el-breadcrumb></el-col
> >
...@@ -96,28 +96,31 @@ ...@@ -96,28 +96,31 @@
<el-table-column prop="ID" v-if="false" /> <el-table-column prop="ID" v-if="false" />
<el-table-column prop="PhotoUrl" v-if="false" /> <el-table-column prop="PhotoUrl" v-if="false" />
<el-table-column <el-table-column
prop="Type" :formatter="stateFormat" label="类型" align="center" /> prop="Type" :formatter="stateFormat" label="类型" width="120" align="center" />
<el-table-column <el-table-column
prop="MaterielName" prop="MaterielName"
label="物料名称" label="物料名称"
width="250"
align="center" align="center"
/> />
<el-table-column prop="EqSizeName" label="号型名称" align="center" /> <el-table-column prop="EqSizeName" label="号型名称" width="200" align="center" />
<el-table-column prop="EquName" label="装备名称" align="center" /> <el-table-column prop="EquName" label="装备名称" width="250" align="center" />
<el-table-column prop="UserName" label="出入库人员" align="center" /> <el-table-column prop="UserName" label="出入库人员" width="100" align="center" />
<el-table-column <el-table-column
prop="CreateTime" prop="CreateTime"
label="出入库时间" label="出入库时间"
width="250"
align="center" align="center"
/> />
<el-table-column fixed="right" label="照片查看" width="100px" > <el-table-column fixed="right" label="照片查看" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<a-button <el-button
v-if="scope.row.PhotoUrl !== null" v-if="scope.row.PhotoUrl !== null"
@click="getDetailInfo(scope.row)" @click="getDetailInfo(scope.row)"
type="primary" type="primary"
style="font-size: 15px" size="mini"
>预览</a-button
>预览</el-button
> >
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -177,9 +177,8 @@ ...@@ -177,9 +177,8 @@
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="searchData.pageNo" :current-page="searchData.page"
:page-sizes="[10, 20, 30, 40]" :page-sizes="[10, 20, 30, 40]"
:page-size="searchData.Page"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
/> />
......
...@@ -206,9 +206,8 @@ ...@@ -206,9 +206,8 @@
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="searchData.pageNo" :current-page="searchData.page"
:page-sizes="[10, 20, 30, 40]" :page-sizes="[10, 20, 30, 40]"
:page-size="searchData.Page"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
/> />
......
...@@ -117,7 +117,7 @@ export default { ...@@ -117,7 +117,7 @@ export default {
{ {
id: 1, id: 1,
path: "/borrow", path: "/borrow",
menuName: "借用/领用管理", menuName: "借管理",
icon: "资源借用", icon: "资源借用",
children: [ children: [
{ {
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
{ {
id: 6 - 3, id: 6 - 3,
path: "/systemConfig/police", path: "/systemConfig/police",
menuName: "人员设置", menuName: "人员管理",
icon: "人员设置", icon: "人员设置",
}, },
], ],
......
...@@ -114,6 +114,7 @@ ...@@ -114,6 +114,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 详细信息弹出 --> <!-- 详细信息弹出 -->
<!-- <div class="ivu-divider ivu-divider-horizontal"></div> --> <!-- <div class="ivu-divider ivu-divider-horizontal"></div> -->
<!-- 分页功能 --> <!-- 分页功能 -->
<el-row type="flex" justify="center" align="middle"> <el-row type="flex" justify="center" align="middle">
...@@ -121,9 +122,8 @@ ...@@ -121,9 +122,8 @@
background background
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="searchData.pageNo" :current-page="searchData.page"
:page-sizes="[10, 20, 30, 40]" :page-sizes="[10, 20, 30, 40]"
:page-size="searchData.Page"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="total" :total="total"
/> />
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
style="height: 40px" style="height: 40px"
class="funcButton" class="funcButton"
@click="addHCRecive()" @click="addHCRecive()"
>耗材借用申请</el-button >借用申请(未贴标)</el-button
> >
<el-button <el-button
type="primary" type="primary"
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
style="height: 40px; margin-right: 20px" style="height: 40px; margin-right: 20px"
class="funcButton" class="funcButton"
@click="addNHCRecive()" @click="addNHCRecive()"
>非耗材借用申请</el-button >借用申请(已贴标)</el-button
> >
</el-form> </el-form>
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
class="box-card" class="box-card"
style="text-align: center; margin-top: 35px" style="text-align: center; margin-top: 35px"
> >
<label class="labelBorrow">借用装备表(耗材)</label> <label class="labelBorrow">借用装备表(未贴标)</label>
<el-divider></el-divider> <el-divider></el-divider>
<template> <template>
<el-table :data="HctableData" border class="details"> <el-table :data="HctableData" border class="details">
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
class="box-card" class="box-card"
style="text-align: center; margin-top: 35px" style="text-align: center; margin-top: 35px"
> >
<label class="labelBorrow">借用装备表(非耗材)</label> <label class="labelBorrow">借用装备表(已贴标)</label>
<el-divider></el-divider> <el-divider></el-divider>
<template> <template>
<el-table :data="NHctableData" border class="details"> <el-table :data="NHctableData" border class="details">
...@@ -309,6 +309,18 @@ ...@@ -309,6 +309,18 @@
align="center" align="center"
> >
</el-table-column> </el-table-column>
<el-table-column
prop="OutTime"
label="出库时间"
align="center"
>
</el-table-column>
<el-table-column
prop="ReturnTime"
label="入库时间"
align="center"
>
</el-table-column>
</el-table> </el-table>
</template> </template>
</el-card> </el-card>
...@@ -832,6 +844,8 @@ export default { ...@@ -832,6 +844,8 @@ export default {
Order: "ESC", Order: "ESC",
MaterielId: "", MaterielId: "",
EqSizeId: "", EqSizeId: "",
State: 0,
IsNoBorrow: true
}, },
classOption: [], classOption: [],
MaterielOption: [], MaterielOption: [],
...@@ -843,7 +857,7 @@ export default { ...@@ -843,7 +857,7 @@ export default {
PlanName: "", PlanName: "",
PlanState: 0, PlanState: 0,
borrowType: 1, borrowType: 1,
LabelEpc: "", epc: "",
BorrowList: [ BorrowList: [
{ {
MainClass: "", MainClass: "",
...@@ -890,9 +904,9 @@ export default { ...@@ -890,9 +904,9 @@ export default {
EqSizeName: "", EqSizeName: "",
NameAndCode: "", NameAndCode: "",
LabelEpc: "", epc: "",
EquipmentId: "", EquipmentId: "",
State:0,
}, },
resetForm() { resetForm() {
(this.eqOption = []), (this.eqOption = []),
...@@ -1066,7 +1080,7 @@ export default { ...@@ -1066,7 +1080,7 @@ export default {
}, },
//新增耗材申请 //新增耗材申请
async addHCRecive() { async addHCRecive() {
this.title = "耗材借用申请"; this.title = "借用申请(未贴标)";
this.HCVisible = true; this.HCVisible = true;
this.HCruleForm.BorrowList = []; this.HCruleForm.BorrowList = [];
// console.log("rule",this.ruleForm) // console.log("rule",this.ruleForm)
...@@ -1077,7 +1091,7 @@ export default { ...@@ -1077,7 +1091,7 @@ export default {
}, },
//新增借用申请 //新增借用申请
async addNHCRecive() { async addNHCRecive() {
this.title = "非耗材借用申请"; this.title = "借用申请(已贴标)";
this.addVisible = true; this.addVisible = true;
this.ruleForm.BorrowList = []; this.ruleForm.BorrowList = [];
// console.log("rule",this.ruleForm) // console.log("rule",this.ruleForm)
...@@ -1092,7 +1106,7 @@ export default { ...@@ -1092,7 +1106,7 @@ export default {
if (row.IsHaoCai === 0) { if (row.IsHaoCai === 0) {
//非耗材 //非耗材
this.addVisible = true; this.addVisible = true;
this.title = "修改非耗材借用申请"; this.title = "修改借用申请(已贴标)";
this.addVisible = true; this.addVisible = true;
var url = "api/Borrow/" + row.ID; var url = "api/Borrow/" + row.ID;
const { data: res } = await this.$axios.get(url); const { data: res } = await this.$axios.get(url);
...@@ -1104,7 +1118,7 @@ export default { ...@@ -1104,7 +1118,7 @@ export default {
this.classOption = resclass.Rows; this.classOption = resclass.Rows;
} else { } else {
//耗材 //耗材
this.title = "修改耗材借用申请"; this.title = "修改借用申请(未贴标)";
this.HCVisible = true; this.HCVisible = true;
var url = "api/Borrow/" + row.ID; var url = "api/Borrow/" + row.ID;
const { data: res } = await this.$axios.get(url); const { data: res } = await this.$axios.get(url);
...@@ -1165,7 +1179,7 @@ export default { ...@@ -1165,7 +1179,7 @@ export default {
}); });
this.AddPlanForm.EquipmentId = obj.ID; this.AddPlanForm.EquipmentId = obj.ID;
this.AddPlanForm.NameAndCode = obj.NameAndCode; this.AddPlanForm.NameAndCode = obj.NameAndCode;
this.AddPlanForm.LabelEpc = obj.LabelEpc; this.AddPlanForm.epc = obj.LabelEpc;
} }
}, },
//获取号型的名字和ID //获取号型的名字和ID
...@@ -1335,7 +1349,7 @@ export default { ...@@ -1335,7 +1349,7 @@ export default {
EqSizeCode: this.AddPlanForm.EqSizeCode, EqSizeCode: this.AddPlanForm.EqSizeCode,
NameAndCode: this.AddPlanForm.NameAndCode, NameAndCode: this.AddPlanForm.NameAndCode,
EquipmentId: this.AddPlanForm.EquipmentId, EquipmentId: this.AddPlanForm.EquipmentId,
LabelEpc: this.AddPlanForm.LabelEpc, epc: this.AddPlanForm.epc,
}; };
console.log("添加物资", plan); console.log("添加物资", plan);
obj = this.ruleForm.BorrowList.find(function (item) { obj = this.ruleForm.BorrowList.find(function (item) {
...@@ -1433,7 +1447,7 @@ export default { ...@@ -1433,7 +1447,7 @@ export default {
}, },
//耗材提交数据 //耗材提交数据
HcsubmitForm(formName, type) { HcsubmitForm(formName, type) {
console.log("HC",this.HCruleForm); // console.log("HC",this.HCruleForm);
if (this.HCruleForm.BorrowList.length === 0) { if (this.HCruleForm.BorrowList.length === 0) {
return this.$message.warning("请添加装备"); return this.$message.warning("请添加装备");
} }
...@@ -1444,7 +1458,7 @@ export default { ...@@ -1444,7 +1458,7 @@ export default {
const borrowUrl = "/api/Borrow?" + "IsAdmin=" + IsAdmin; const borrowUrl = "/api/Borrow?" + "IsAdmin=" + IsAdmin;
this.$refs[formName].validate(async (valid) => { this.$refs[formName].validate(async (valid) => {
if (valid) { if (valid) {
if (type === "耗材借用申请") { if (type === "借用申请(未贴标)") {
const { data: res } = await this.$axios.post( const { data: res } = await this.$axios.post(
borrowUrl, borrowUrl,
this.HCruleForm this.HCruleForm
...@@ -1479,7 +1493,7 @@ export default { ...@@ -1479,7 +1493,7 @@ export default {
const borrowUrl = "/api/Borrow?" + "IsAdmin=" + IsAdmin; const borrowUrl = "/api/Borrow?" + "IsAdmin=" + IsAdmin;
this.$refs[formName].validate(async (valid) => { this.$refs[formName].validate(async (valid) => {
if (valid) { if (valid) {
if (type === "非耗材借用申请") { if (type === "借用申请(已贴标)") {
const { data: res } = await this.$axios.post( const { data: res } = await this.$axios.post(
borrowUrl, borrowUrl,
this.ruleForm this.ruleForm
...@@ -1557,9 +1571,9 @@ export default { ...@@ -1557,9 +1571,9 @@ export default {
}, },
stateFormat(row) { stateFormat(row) {
if (row.IsHaoCai === 0) { if (row.IsHaoCai === 0) {
return "非耗材"; return "已贴标";
} else if (row.IsHaoCai === 1) { } else if (row.IsHaoCai === 1) {
return "耗材"; return "未贴标";
} else { } else {
return ""; return "";
} }
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
label-position="left" label-position="left"
> >
<el-input <el-input
v-model="searchData.EqName" v-model="searchData.MaterielName"
@keypress.native.enter="onEnterPress" @keypress.native.enter="onEnterPress"
ref="nameInput" ref="nameInput"
style="width: 200px" style="width: 200px"
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
v-model="searchData.IsHaoCai" v-model="searchData.IsHaoCai"
filterable filterable
clearable clearable
placeholder="请选择是否为耗材" placeholder="请选择是否贴标"
> >
<el-option <el-option
v-for="item in optionsEquipment" v-for="item in optionsEquipment"
...@@ -188,9 +188,9 @@ ...@@ -188,9 +188,9 @@
<td class="textContent"> <td class="textContent">
{{ detailData.TermDays }} {{ detailData.TermDays }}
</td> </td>
<th class="textHeader">所否为消耗品</th> <th class="textHeader">是否贴标</th>
<td class="textContent"> <td class="textContent">
{{ detailData.IsHaoCai == 1 ? "是" : "否" }} {{ detailData.IsHaoCai == 1 ? "未贴标" : "已贴标" }}
</td> </td>
<th class="textHeader">数量</th> <th class="textHeader">数量</th>
<td class="textContentLast"> <td class="textContentLast">
...@@ -286,10 +286,10 @@ ...@@ -286,10 +286,10 @@
</el-form-item> </el-form-item>
<el-form-item class="diaB" label="是否贴标"> <el-form-item class="diaB" label="是否贴标">
<el-radio v-model="EditRuleForm.IsHaoCai" :label="1" <el-radio v-model="EditRuleForm.IsHaoCai" :label="1"
></el-radio ></el-radio
> >
<el-radio v-model="EditRuleForm.IsHaoCai" :label="0" <el-radio v-model="EditRuleForm.IsHaoCai" :label="0"
></el-radio ></el-radio
> >
</el-form-item> </el-form-item>
...@@ -448,11 +448,11 @@ export default { ...@@ -448,11 +448,11 @@ export default {
}, },
{ {
value: "1", value: "1",
label: "耗材", label: "未贴标",
}, },
{ {
value: "0", value: "0",
label: "非耗材", label: "已贴标",
}, },
], ],
...@@ -749,7 +749,7 @@ export default { ...@@ -749,7 +749,7 @@ export default {
this.getQueuData(); this.getQueuData();
}, },
stateFormat(row) { stateFormat(row) {
if (row.EqHaoCai === 0) { if (row.IsHaoCai == 0) {
return "已贴标"; return "已贴标";
} else { } else {
return "未贴标"; return "未贴标";
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<img src="../../assets/icons/3D库房.png" class="logo" alt="logo" <img src="../../assets/icons/3D库房.png" class="logo" alt="logo"
/></el-col> /></el-col>
<el-col :span="2" <el-col :span="2"
><span class="fontStyle">人员设置</span><br /><span></span> ><span class="fontStyle">人员管理</span><br /><span></span>
</el-col> </el-col>
<el-col :span="20"> <el-col :span="20">
<el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb separator-class="el-icon-arrow-right">
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
>首页</el-breadcrumb-item >首页</el-breadcrumb-item
> >
<el-breadcrumb-item>系统设置 </el-breadcrumb-item> <el-breadcrumb-item>系统设置 </el-breadcrumb-item>
<el-breadcrumb-item>人员设置</el-breadcrumb-item> <el-breadcrumb-item>人员管理</el-breadcrumb-item>
</el-breadcrumb></el-col </el-breadcrumb></el-col
> >
</el-row> </el-row>
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
prop="PoliceTypeName" prop="PoliceCategoryldName"
label="所属所属警种" label="所属所属警种"
align="center" align="center"
></el-table-column> ></el-table-column>
......
...@@ -753,7 +753,7 @@ export default { ...@@ -753,7 +753,7 @@ export default {
}, },
//新增领用申请 //新增领用申请
async addRecive() { async addRecive() {
this.title = "领用申请(耗材物资)"; this.title = "领用申请(未贴标物资)";
this.addVisible = true; this.addVisible = true;
this.ruleForm.BorrowList = []; this.ruleForm.BorrowList = [];
// console.log("rule",this.ruleForm) // console.log("rule",this.ruleForm)
...@@ -956,7 +956,7 @@ export default { ...@@ -956,7 +956,7 @@ export default {
const borrowUrl = "/api/Borrow?" + "IsAdmin=" + IsAdmin; const borrowUrl = "/api/Borrow?" + "IsAdmin=" + IsAdmin;
this.$refs[formName].validate(async (valid) => { this.$refs[formName].validate(async (valid) => {
if (valid) { if (valid) {
if (type === "领用申请(耗材物资)") { if (type === "领用申请(未贴标物资)") {
const { data: res } = await this.$axios.post( const { data: res } = await this.$axios.post(
borrowUrl, borrowUrl,
this.ruleForm this.ruleForm
......
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
:data="fixData" :data="fixData"
v-model="activeName" v-model="activeName"
> >
<el-tab-pane <!-- <el-tab-pane
label="已盘点装备" label="已盘点装备"
name="first" name="first"
v-loading="tabLoading" v-loading="tabLoading"
...@@ -201,8 +201,11 @@ ...@@ -201,8 +201,11 @@
<el-table-column prop="EqName" label="装备名称"> <el-table-column prop="EqName" label="装备名称">
</el-table-column> </el-table-column>
<el-table-column prop="CategoryName" label="所属物料"> <el-table-column prop="CategoryName" label="所属物料">
</el-table-column> </el-table </el-table-column>
><el-row type="flex" justify="center" align="middle"> <el-table-column prop="CategoryName" label="所属物料">
</el-table-column>
</el-table>
<el-row type="flex" justify="center" align="middle">
<el-pagination <el-pagination
background background
@size-change="handleSizeAlreadyChange" @size-change="handleSizeAlreadyChange"
...@@ -213,14 +216,16 @@ ...@@ -213,14 +216,16 @@
:total="alreadyToal" :total="alreadyToal"
/> />
</el-row> </el-row>
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="未盘点装备" name="second" <el-tab-pane label="未盘点装备" name="first"
><el-table :data="InvetoryNoList" border class="details"> ><el-table :data="InvetoryNoList" border class="details">
<el-table-column prop="EqName" label="装备名称"> <el-table-column prop="EqName" label="装备名称">
</el-table-column> </el-table-column>
<el-table-column prop="CategoryName" label="所属物料"> <el-table-column prop="CategoryName" label="所属物料">
</el-table-column> </el-table-column>
<el-table-column prop="LocationCode" label="存放位置">
</el-table-column>
</el-table> </el-table>
<el-row type="flex" justify="center" align="middle"> <el-row type="flex" justify="center" align="middle">
<el-pagination <el-pagination
......
...@@ -5,10 +5,10 @@ function resolve (dir) { ...@@ -5,10 +5,10 @@ function resolve (dir) {
module.exports = { module.exports = {
publicPath: '/', publicPath: '/',
devServer: { devServer: {
// host: '192.168.3.1', host: '192.168.2.246',
// port: 2233, port: 2233,
host: '192.168.2.105', // host: '192.168.2.105',
port: 2234, // port: 2234,
// host: '192.168.2.101', // host: '192.168.2.101',
// host: '41.204.124.248', // host: '41.204.124.248',
// port: 5002, // port: 5002,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论