|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<view class="page">
|
|
<view class="page">
|
|
- <view class="vtitle">借用人信息</view>
|
|
|
|
|
|
+ <view class="vtitle">归还信息</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable">扫码</view>
|
|
<view class="lable">扫码</view>
|
|
<view class="tag" @click="qr()">
|
|
<view class="tag" @click="qr()">
|
|
@@ -19,13 +19,7 @@
|
|
<text class="icon more"></text>
|
|
<text class="icon more"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="form_group" v-if="op == '设备借用'">
|
|
|
|
- <view class="lable">借用人</view>
|
|
|
|
- <view class="tag">
|
|
|
|
- <input v-model="item.borrower" placeholder="输入借用人" />
|
|
|
|
- <text class="icon more"></text>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+
|
|
<view class="form_group" v-if="op == '设备归还'">
|
|
<view class="form_group" v-if="op == '设备归还'">
|
|
<view class="lable">归还者</view>
|
|
<view class="lable">归还者</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
@@ -33,13 +27,7 @@
|
|
<text class="icon more"></text>
|
|
<text class="icon more"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="form_group" v-if="op == '设备借用'">
|
|
|
|
- <view class="lable">借用人部门</view>
|
|
|
|
- <view class="tag">
|
|
|
|
- <text class="span">{{ item.UNIT }}</text>
|
|
|
|
- <text class="icon more"></text>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
|
|
+
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable">手机号</view>
|
|
<view class="lable">手机号</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
@@ -47,7 +35,7 @@
|
|
<text class="icon more"></text>
|
|
<text class="icon more"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="vtitle">借用设备信息</view>
|
|
|
|
|
|
+ <view class="vtitle">归还设备信息</view>
|
|
<view v-for="(item, index) in list" :key="index" class="item">
|
|
<view v-for="(item, index) in list" :key="index" class="item">
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable">序号</view>
|
|
<view class="lable">序号</view>
|
|
@@ -58,37 +46,37 @@
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable">计量编号</view>
|
|
<view class="lable">计量编号</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
- <text class="span">{{ item.items.__b5UmDDfLaCJJdn5F4JF.value }}</text>
|
|
|
|
|
|
+ <text class="span">{{ item.items.__Q0YnOcfMqiTpVsTiDEh.value }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable">设备名称</view>
|
|
<view class="lable">设备名称</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
- <text class="span">{{ item.items.__FwAgiHdxI4bCZaKNs4A.value }}</text>
|
|
|
|
|
|
+ <text class="span">{{ item.items.__khn9SQnzgWNPt0aHldp.value }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable">型号规格</view>
|
|
<view class="lable">型号规格</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
- <text class="span">{{ item.items.__drInpQcmkMf2iWseaRR.value }}</text>
|
|
|
|
|
|
+ <text class="span">{{ item.items.__fpUc5yOsHgSHeHPFHim.value }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable">测量范围</view>
|
|
<view class="lable">测量范围</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
- <text class="span">{{ item.items.__XcfZD8dzEQb5qURydpP.value }}</text>
|
|
|
|
|
|
+ <text class="span">{{ item.items.__soGLIaAxvM0O0NTVt1c.value }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
- <view class="lable">最大允许误差</view>
|
|
|
|
|
|
+ <view class="lable">制造商</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
- <text class="span">{{ item.items.__ARvSmuzLwNLg6TlB4tV.value }}</text>
|
|
|
|
|
|
+ <text class="span">{{ item.items.__aPTYvYeakxz299A7Thk.value }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
<view class="lable">内部编号</view>
|
|
<view class="lable">内部编号</view>
|
|
<view class="tag">
|
|
<view class="tag">
|
|
- <text class="span">{{ item.items.__BEViJOuGBdPWSxES5Z5.value }}</text>
|
|
|
|
|
|
+ <text class="span">{{ item.items.__dRIZk7xLPVCO6rqJbs7.value }}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="form_group">
|
|
<view class="form_group">
|
|
@@ -144,7 +132,7 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- array1: ['类型1', '类型2', '类型3', '类型4'], //实验类型1
|
|
|
|
|
|
+
|
|
bitem: {
|
|
bitem: {
|
|
applicationId: '__gAPYBW4YxB3UePM3lqO',
|
|
applicationId: '__gAPYBW4YxB3UePM3lqO',
|
|
exparams: {},
|
|
exparams: {},
|
|
@@ -170,7 +158,7 @@
|
|
versions: '0'
|
|
versions: '0'
|
|
},
|
|
},
|
|
geteq: {
|
|
geteq: {
|
|
- DEVID: '202209211603170016',
|
|
|
|
|
|
+ DEVID: '',
|
|
allow: 'false',
|
|
allow: 'false',
|
|
appId: '__gAPYBW4YxB3UePM3lqO',
|
|
appId: '__gAPYBW4YxB3UePM3lqO',
|
|
datetime: '1670485443880',
|
|
datetime: '1670485443880',
|
|
@@ -182,7 +170,7 @@
|
|
parentId: '__NYI0rVs0LXbiW21z6Nv',
|
|
parentId: '__NYI0rVs0LXbiW21z6Nv',
|
|
searchForm: 'false',
|
|
searchForm: 'false',
|
|
selectOne: 'false',
|
|
selectOne: 'false',
|
|
- viewId: '__WLVxKX6e0Pq0cTwdNUQ'
|
|
|
|
|
|
+ viewId: '__ajlFXbohdIXtn7ErzZq'
|
|
},
|
|
},
|
|
item: {},
|
|
item: {},
|
|
op: '设备归还',
|
|
op: '设备归还',
|
|
@@ -216,7 +204,7 @@
|
|
},
|
|
},
|
|
fieldId: "__0TQu1UrRbMZVX1UvtBL",
|
|
fieldId: "__0TQu1UrRbMZVX1UvtBL",
|
|
formId: "__w9J1gxcIWgXmNw6pE1F",
|
|
formId: "__w9J1gxcIWgXmNw6pE1F",
|
|
- viewId: "__WLVxKX6e0Pq0cTwdNUQ",
|
|
|
|
|
|
+ viewId: "__ajlFXbohdIXtn7ErzZq",
|
|
_selects: "__sIJiL5GlxEYoL095Vo9",
|
|
_selects: "__sIJiL5GlxEYoL095Vo9",
|
|
},
|
|
},
|
|
};
|
|
};
|
|
@@ -263,7 +251,7 @@
|
|
} else {
|
|
} else {
|
|
this.list.forEach(item => {
|
|
this.list.forEach(item => {
|
|
|
|
|
|
- if (item.items.__2sfNVgOh5Bzq6lXRVuM.value == this.geteq
|
|
|
|
|
|
+ if (item.items.__O1qcaazksjAzDcrvJLk.value == this.geteq
|
|
.DEVID) {
|
|
.DEVID) {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -306,7 +294,7 @@
|
|
},
|
|
},
|
|
getEq() {
|
|
getEq() {
|
|
this.http.request({
|
|
this.http.request({
|
|
- url: this.http.urls.eq_list +
|
|
|
|
|
|
+ url: this.http.urls.re_list +
|
|
'parentId=' +
|
|
'parentId=' +
|
|
this.geteq.parentid,
|
|
this.geteq.parentid,
|
|
data: this.geteq,
|
|
data: this.geteq,
|
|
@@ -316,10 +304,7 @@
|
|
if (res.data.errcode == 0) {
|
|
if (res.data.errcode == 0) {
|
|
|
|
|
|
res.data.data.data.forEach(item => {
|
|
res.data.data.data.forEach(item => {
|
|
- //console.log('res2:' + JSON.stringify(res));
|
|
|
|
- // this.runViewDialogConfirmScript.docId=this.bitem.id ;
|
|
|
|
- //this.runViewDialogConfirmScript._selects=item.docId;
|
|
|
|
- //this.runViewDialogConfirm();
|
|
|
|
|
|
+
|
|
this.list.push(item);
|
|
this.list.push(item);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -327,17 +312,13 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
empty() {
|
|
empty() {
|
|
- var url = '';
|
|
|
|
- if (this.op == '设备借用') {
|
|
|
|
- url = this.http.urls.borr_empty;
|
|
|
|
- } else {
|
|
|
|
- url = this.http.urls.return_empty;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
this.http.request({
|
|
this.http.request({
|
|
- url: url,
|
|
|
|
|
|
+ url: this.http.urls.return_empty,
|
|
data: this.item,
|
|
data: this.item,
|
|
|
|
|
|
success: res => {
|
|
success: res => {
|
|
|
|
+ console.log('res2:' + JSON.stringify(res));
|
|
this.item = res.data.data.items;
|
|
this.item = res.data.data.items;
|
|
this.bitem.id = res.data.data.id;
|
|
this.bitem.id = res.data.data.id;
|
|
this.bitem.formId = res.data.data.formid;
|
|
this.bitem.formId = res.data.data.formid;
|
|
@@ -367,7 +348,7 @@
|
|
this.items.document.subDocuments = [];
|
|
this.items.document.subDocuments = [];
|
|
this.items.document.templateForm = '';
|
|
this.items.document.templateForm = '';
|
|
this.items.document.versions = '0';
|
|
this.items.document.versions = '0';
|
|
- //console.log('res2:' + JSON.stringify(res.data.data));
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -379,10 +360,7 @@
|
|
tool_borrowing_empty() {
|
|
tool_borrowing_empty() {
|
|
this.list.forEach(item => {
|
|
this.list.forEach(item => {
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- this.http.request({
|
|
|
|
|
|
+ this.http.request({
|
|
url: this.http.urls.tool_borrowing_empty,
|
|
url: this.http.urls.tool_borrowing_empty,
|
|
data: this.item,
|
|
data: this.item,
|
|
|
|
|
|
@@ -415,7 +393,7 @@
|
|
//this.btitem.items.toolstate=0;//借用日期
|
|
//this.btitem.items.toolstate=0;//借用日期
|
|
|
|
|
|
|
|
|
|
- this.btitem.items.DEVID = item.items.__2sfNVgOh5Bzq6lXRVuM.value;
|
|
|
|
|
|
+ this.btitem.items.DEVID = item.items.__O1qcaazksjAzDcrvJLk.value;
|
|
console.log('this.btitem1:' + JSON.stringify(this.btitem));
|
|
console.log('this.btitem1:' + JSON.stringify(this.btitem));
|
|
this.validate();
|
|
this.validate();
|
|
|
|
|