|
@@ -17,55 +17,42 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">客户联系人:</view>
|
|
<view class="title">客户联系人:</view>
|
|
|
- <input placeholder="请输入客户联系人" v-model="form.keHuLianXiRen" name="input"
|
|
|
|
|
- :disabled="id && id != '' ? true: false"></input>
|
|
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
- v-if="form.keHuLianXiRen != '' && id == ''" @click="form.keHuLianXiRen = ''"></u-icon>
|
|
|
|
|
|
|
+ <input placeholder="请输入客户联系人" v-model="form.keHuLianXiRen" name="input" :disabled="id && id != '' ? true: false"></input>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.keHuLianXiRen != '' && id == ''" @click="form.keHuLianXiRen = ''"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">委托单号:</view>
|
|
<view class="title">委托单号:</view>
|
|
|
<text style="width: 100%;" @click="getShow">{{getWeiTuo(form.weiTuoDanHao)}}</text>
|
|
<text style="width: 100%;" @click="getShow">{{getWeiTuo(form.weiTuoDanHao)}}</text>
|
|
|
<u-button type="success" size="mini" @click="getShow" v-if="form.weiTuoDanHao == '' && id == ''">选择
|
|
<u-button type="success" size="mini" @click="getShow" v-if="form.weiTuoDanHao == '' && id == ''">选择
|
|
|
</u-button>
|
|
</u-button>
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
- v-if="form.weiTuoDanHao != '' && id == ''" @click="form.weiTuoDanHao = ''"></u-icon>
|
|
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.weiTuoDanHao != '' && id == ''" @click="form.weiTuoDanHao = ''"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">联系电话:</view>
|
|
<view class="title">联系电话:</view>
|
|
|
- <input placeholder="请输入联系电话" v-model="form.lianXiDianHua" name="input"
|
|
|
|
|
- :disabled="id && id != '' ? true: false"></input>
|
|
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
- v-if="form.lianXiDianHua != '' && id == ''" @click="form.lianXiDianHua = ''"></u-icon>
|
|
|
|
|
|
|
+ <input placeholder="请输入联系电话" v-model="form.lianXiDianHua" name="input" :disabled="id && id != '' ? true: false"></input>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.lianXiDianHua != '' && id == ''" @click="form.lianXiDianHua = ''"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">样品名称:</view>
|
|
<view class="title">样品名称:</view>
|
|
|
- <textarea maxlength="-1" v-model="form.yangPinMingCheng" placeholder="请输入样品名称" auto-height="true"
|
|
|
|
|
- :disabled="id && id != '' ? true: false"></textarea>
|
|
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
- v-if="form.yangPinMingCheng != '' && id == ''" @click="form.yangPinMingCheng = ''"></u-icon>
|
|
|
|
|
|
|
+ <textarea maxlength="-1" v-model="form.yangPinMingCheng" placeholder="请输入样品名称" auto-height="true" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.yangPinMingCheng != '' && id == ''" @click="form.yangPinMingCheng = ''"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">样品编号:</view>
|
|
<view class="title">样品编号:</view>
|
|
|
- <textarea maxlength="-1" v-model="form.yangPinBianHao" placeholder="请输入样品编号" auto-height="true"
|
|
|
|
|
- :disabled="id && id != '' ? true: false"></textarea>
|
|
|
|
|
|
|
+ <textarea maxlength="-1" v-model="form.yangPinBianHao" placeholder="请输入样品编号" auto-height="true" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
<!-- <input placeholder="请输入样品编号" v-model="form.yangPinBianHao" name="input"
|
|
<!-- <input placeholder="请输入样品编号" v-model="form.yangPinBianHao" name="input"
|
|
|
:disabled="id && id != '' ? true: false"></input> -->
|
|
:disabled="id && id != '' ? true: false"></input> -->
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
- v-if="form.yangPinBianHao != '' && id == ''" @click="form.yangPinBianHao = '' && id == ''"></u-icon>
|
|
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.yangPinBianHao != '' && id == ''" @click="form.yangPinBianHao = '' && id == ''"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">样品类型:</view>
|
|
<view class="title">样品类型:</view>
|
|
|
- <textarea maxlength="-1" v-model="form.yangPinLeiXing" placeholder="请输入样品类型" auto-height="true"
|
|
|
|
|
- :disabled="id && id != '' ? true: false"></textarea>
|
|
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
- v-if="form.yangPinLeiXing != '' && id == ''" @click="form.yangPinLeiXing = ''"></u-icon>
|
|
|
|
|
|
|
+ <textarea maxlength="-1" v-model="form.yangPinLeiXing" placeholder="请输入样品类型" auto-height="true" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.yangPinLeiXing != '' && id == ''" @click="form.yangPinLeiXing = ''"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">报告编号:</view>
|
|
<view class="title">报告编号:</view>
|
|
|
- <textarea maxlength="-1" v-model="form.baoGaoBianHao" placeholder="请输入报告编号" auto-height="true"
|
|
|
|
|
- :disabled="id && id != '' ? true: false"></textarea>
|
|
|
|
|
- <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42"
|
|
|
|
|
- v-if="form.baoGaoBianHao != '' && id == ''" @click="form.baoGaoBianHao = ''"></u-icon>
|
|
|
|
|
|
|
+ <textarea maxlength="-1" v-model="form.baoGaoBianHao" placeholder="请输入报告编号" auto-height="true" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
|
|
+ <u-icon class="uni-icon" name="close-circle-fill" color="rgb(192, 196, 204)" size="42" v-if="form.baoGaoBianHao != '' && id == ''" @click="form.baoGaoBianHao = ''"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">沟通类型:</view>
|
|
<view class="title">沟通类型:</view>
|
|
@@ -73,24 +60,26 @@
|
|
|
<u-button type="success" size="mini" @click="sheetShow = true" v-if="id == ''">选择</u-button>
|
|
<u-button type="success" size="mini" @click="sheetShow = true" v-if="id == ''">选择</u-button>
|
|
|
</view>
|
|
</view>
|
|
|
<uni-section title="沟通内容" type="line" padding>
|
|
<uni-section title="沟通内容" type="line" padding>
|
|
|
- <textarea maxlength="-1" v-model="form.gouTongNeiRong" placeholder="意见和建议"
|
|
|
|
|
- :disabled="id && id != '' ? true: false"></textarea>
|
|
|
|
|
|
|
+ <textarea maxlength="-1" v-model="form.gouTongNeiRong" placeholder="意见和建议" :disabled="id && id != '' ? true: false"></textarea>
|
|
|
</uni-section>
|
|
</uni-section>
|
|
|
- <!-- <uni-section title="上传附件" type="line">
|
|
|
|
|
- <view class="example-body">
|
|
|
|
|
- <uni-file-picker limit="5" file-mediatype="all" @select="select" @progress="progress"
|
|
|
|
|
- @success="success" @fail="fail" @delete="deleteMe" :auto-upload="false" ref="uploadMe">
|
|
|
|
|
|
|
+ <uni-section title="上传附件" type="line">
|
|
|
|
|
+ <view class="example-body" v-if="id == ''">
|
|
|
|
|
+ <uni-file-picker limit="5" file-mediatype="all" @select="select" @progress="progress" @success="success" @fail="fail" @delete="deleteMe" :auto-upload="false" ref="uploadMe">
|
|
|
</uni-file-picker>
|
|
</uni-file-picker>
|
|
|
</view>
|
|
</view>
|
|
|
- </uni-section> -->
|
|
|
|
|
|
|
+ <view v-else>
|
|
|
|
|
+ <view v-for="(item,index) in fuJianShangChuanArray" :key="index" style="margin: 0 10rpx;">
|
|
|
|
|
+ <view style="line-height: 50rpx;" @click="uploadClick(item.id,item.fileName,item.ext)">{{item.fileName + '.' + item.ext}}</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </uni-section>
|
|
|
<uni-section title="签名" type="line" padding>
|
|
<uni-section title="签名" type="line" padding>
|
|
|
<view style="width: 100%;">
|
|
<view style="width: 100%;">
|
|
|
<view style="text-align: right;width: 100%;" v-if="typeValue != '1'">
|
|
<view style="text-align: right;width: 100%;" v-if="typeValue != '1'">
|
|
|
<view>
|
|
<view>
|
|
|
<u-button type="primary" size="mini" @click="qianming(0)" class="btn-back-color">
|
|
<u-button type="primary" size="mini" @click="qianming(0)" class="btn-back-color">
|
|
|
签名</u-button>
|
|
签名</u-button>
|
|
|
- <u-button type="primary" size="mini" @click="deqianming(0)" style="margin-left: 15rpx;"
|
|
|
|
|
- v-if="form.keHu != ''">
|
|
|
|
|
|
|
+ <u-button type="primary" size="mini" @click="deqianming(0)" style="margin-left: 15rpx;" v-if="form.keHu != ''">
|
|
|
取消</u-button>
|
|
取消</u-button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -102,8 +91,7 @@
|
|
|
</uni-section>
|
|
</uni-section>
|
|
|
|
|
|
|
|
<uni-section title="沟通内容确定" type="line" padding v-if="id != '' && form.leiXing != '2'">
|
|
<uni-section title="沟通内容确定" type="line" padding v-if="id != '' && form.leiXing != '2'">
|
|
|
- <textarea maxlength="-1" v-model="form.gouTongQueDingNei" placeholder="意见和建议"
|
|
|
|
|
- :disabled="true"></textarea>
|
|
|
|
|
|
|
+ <textarea maxlength="-1" v-model="form.gouTongQueDingNei" placeholder="意见和建议" :disabled="true"></textarea>
|
|
|
</uni-section>
|
|
</uni-section>
|
|
|
|
|
|
|
|
<view class="padding flex flex-direction" v-if="typeValue == '3'">
|
|
<view class="padding flex flex-direction" v-if="typeValue == '3'">
|
|
@@ -169,8 +157,6 @@
|
|
|
fuJianShangChuanArray: [],
|
|
fuJianShangChuanArray: [],
|
|
|
popupShow: false,
|
|
popupShow: false,
|
|
|
list: [{
|
|
list: [{
|
|
|
- text: '投诉'
|
|
|
|
|
- }, {
|
|
|
|
|
text: '委托单'
|
|
text: '委托单'
|
|
|
}, {
|
|
}, {
|
|
|
text: '检测项目'
|
|
text: '检测项目'
|
|
@@ -216,12 +202,16 @@
|
|
|
duration: 3000,
|
|
duration: 3000,
|
|
|
message: '文件大于1M!'
|
|
message: '文件大于1M!'
|
|
|
});
|
|
});
|
|
|
- return false;
|
|
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
let that = this
|
|
let that = this
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ title: '上传中',
|
|
|
|
|
+ mask: true
|
|
|
|
|
+ })
|
|
|
for (let e in file.tempFilePaths) {
|
|
for (let e in file.tempFilePaths) {
|
|
|
- console.log("000", file.tempFiles[e].file)
|
|
|
|
|
- var extName = file.tempFiles[e].file.name.substring(file.tempFiles[e].file.name.lastIndexOf('.'));
|
|
|
|
|
|
|
+ var extName = file.tempFiles[e].file.name.substring(file.tempFiles[e].file.name.lastIndexOf(
|
|
|
|
|
+ '.'));
|
|
|
const path = file.tempFilePaths[e];
|
|
const path = file.tempFilePaths[e];
|
|
|
uni.uploadFile({
|
|
uni.uploadFile({
|
|
|
// url: http.apiHosp + 'ibps/platform/v3/file/upload/mobile', //仅为示例,非真实的接口地址
|
|
// url: http.apiHosp + 'ibps/platform/v3/file/upload/mobile', //仅为示例,非真实的接口地址
|
|
@@ -241,11 +231,10 @@
|
|
|
fileid: file.tempFiles[e].file.uuid,
|
|
fileid: file.tempFiles[e].file.uuid,
|
|
|
uploadid: data.data.id
|
|
uploadid: data.data.id
|
|
|
})
|
|
})
|
|
|
|
|
+ uni.hideLoading()
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- return true;
|
|
|
|
|
- console.log('选择文件:')
|
|
|
|
|
},
|
|
},
|
|
|
// 删除
|
|
// 删除
|
|
|
deleteMe(file) {
|
|
deleteMe(file) {
|
|
@@ -256,18 +245,11 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 获取上传进度
|
|
// 获取上传进度
|
|
|
- progress(e) {
|
|
|
|
|
- console.log('上传进度:', e)
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ progress(e) {},
|
|
|
// 上传成功
|
|
// 上传成功
|
|
|
- success(file) {
|
|
|
|
|
-
|
|
|
|
|
- console.log('上传成功', file)
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ success(file) {},
|
|
|
// 上传失败
|
|
// 上传失败
|
|
|
- fail(e) {
|
|
|
|
|
- console.log('上传失败:', e)
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ fail(e) {},
|
|
|
//弹出框显示
|
|
//弹出框显示
|
|
|
qianming(index) {
|
|
qianming(index) {
|
|
|
this.qianshow = true
|
|
this.qianshow = true
|
|
@@ -356,6 +338,9 @@
|
|
|
gouTongQueDingNei: data.gou_tong_que_ding,
|
|
gouTongQueDingNei: data.gou_tong_que_ding,
|
|
|
leiXing: data.lei_xing_
|
|
leiXing: data.lei_xing_
|
|
|
}
|
|
}
|
|
|
|
|
+ if (data.fu_jian_ && data.fu_jian_ != '') {
|
|
|
|
|
+ this.getFileList(data.fu_jian_)
|
|
|
|
|
+ }
|
|
|
if (data.lei_xing_ == '2' && data.shi_fou_guo_shen_ == '已编制') {
|
|
if (data.lei_xing_ == '2' && data.shi_fou_guo_shen_ == '已编制') {
|
|
|
this.getTaskId(data.id_)
|
|
this.getTaskId(data.id_)
|
|
|
}
|
|
}
|
|
@@ -363,11 +348,35 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ getFileList(ids) {
|
|
|
|
|
+ let lists = ids.split(",")
|
|
|
|
|
+ let params = {}
|
|
|
|
|
+ params.ids = lists
|
|
|
|
|
+ this.$http.post("/ibps/platform/v3/file/attachment/transfer", params).then(res => {
|
|
|
|
|
+ if (res.data.state == 200) {
|
|
|
|
|
+ const data = res.data.data
|
|
|
|
|
+ lists.forEach(item => {
|
|
|
|
|
+ let obj = {
|
|
|
|
|
+ id: item,
|
|
|
|
|
+ fileName: data[item].fileName,
|
|
|
|
|
+ ext: data[item].ext
|
|
|
|
|
+ }
|
|
|
|
|
+ this.fuJianShangChuanArray.push(obj)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
onSubmit() {
|
|
onSubmit() {
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
|
title: '加载中',
|
|
title: '加载中',
|
|
|
mask: true
|
|
mask: true
|
|
|
})
|
|
})
|
|
|
|
|
+ let tmpArray = []
|
|
|
|
|
+ for (let e in this.fuJianShangChuanArray) {
|
|
|
|
|
+ tmpArray.push(this.fuJianShangChuanArray[e].uploadid)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let info = uni.getStorageSync(USER_INFO);
|
|
let info = uni.getStorageSync(USER_INFO);
|
|
|
let useId = info.user.id
|
|
let useId = info.user.id
|
|
|
let detpId = info.org.id
|
|
let detpId = info.org.id
|
|
@@ -388,6 +397,7 @@
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
|
|
|
+ this.form.fuJian = tmpArray.join(",")
|
|
|
this.form.bianZhiRen = useId
|
|
this.form.bianZhiRen = useId
|
|
|
this.form.bianZhiShiJian = time
|
|
this.form.bianZhiShiJian = time
|
|
|
this.form.bianZhiBuMen = detpId
|
|
this.form.bianZhiBuMen = detpId
|
|
@@ -564,6 +574,34 @@
|
|
|
uni.navigateBack({
|
|
uni.navigateBack({
|
|
|
dalta: 1
|
|
dalta: 1
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ uploadClick(id, item, type) {
|
|
|
|
|
+ uni.showLoading({
|
|
|
|
|
+ title: '下载中',
|
|
|
|
|
+ mask: true
|
|
|
|
|
+ })
|
|
|
|
|
+ let requestData = {
|
|
|
|
|
+ attachmentId: id
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$http.get(`/ibps/platform/v3/file/download?attachmentId=${id}`, {
|
|
|
|
|
+ responseType: 'arraybuffer'
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ const blob = new Blob([
|
|
|
|
|
+ res.data
|
|
|
|
|
+ ], {
|
|
|
|
|
+ type: 'application/octet-stream'
|
|
|
|
|
+ })
|
|
|
|
|
+ const url = window.URL.createObjectURL(blob)
|
|
|
|
|
+ const link = document.createElement('a')
|
|
|
|
|
+ link.style.display = 'none'
|
|
|
|
|
+ link.href = url
|
|
|
|
|
+ link.setAttribute('download', item + '.' + type)
|
|
|
|
|
+ document.body.appendChild(link)
|
|
|
|
|
+ link.click()
|
|
|
|
|
+ window.URL.revokeObjectURL(link.href)
|
|
|
|
|
+ document.body.removeChild(link)
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -577,4 +615,4 @@
|
|
|
.btn {
|
|
.btn {
|
|
|
margin: 15rpx
|
|
margin: 15rpx
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|