提交 410408ac 编写于 作者: 张磊's avatar 张磊

Merge branch 'feature/zl2' into 'develop'

auto commit

See merge request !16
...@@ -141,6 +141,7 @@ ...@@ -141,6 +141,7 @@
show-cancel-button="true" show-cancel-button="true"
confirm-button-text="确认提交" confirm-button-text="确认提交"
cancel-button-text="返回修改" cancel-button-text="返回修改"
@confirm="toBindSuccess"
> >
<div class="binding-code-showInfo"> <div class="binding-code-showInfo">
<div class="title"> <div class="title">
...@@ -205,7 +206,7 @@ export default { ...@@ -205,7 +206,7 @@ export default {
showBindingInfo: true, showBindingInfo: true,
showEditModal: false, showEditModal: false,
isCheck: false, isCheck: false,
barCode: '123213123123123', barCode: '020987654321',
protocolName: '', protocolName: '',
prototypeId: '', prototypeId: '',
prototypeLogId: '', prototypeLogId: '',
...@@ -268,7 +269,16 @@ export default { ...@@ -268,7 +269,16 @@ export default {
clearCode() { clearCode() {
this.barCode = ''; this.barCode = '';
}, },
scanCode() {}, scanCode() {
window.wx && window.wx.scanQRCode({
needResult: 0, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
success: function (res) {
console.log('---res', res);
// var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
}
});
},
toggleBindingInfo() { toggleBindingInfo() {
if(!this.isCheck && this.detectionData.pprotocolType) { if(!this.isCheck && this.detectionData.pprotocolType) {
this.goProtocol(); this.goProtocol();
...@@ -378,6 +388,16 @@ export default { ...@@ -378,6 +388,16 @@ export default {
} }
}); });
}, },
toBindSuccess() {
this.$router.push(
{
path: '/insuranceBindCodeSuccess',
query: {
id: this.projectId,
},
}
);
}
} }
}; };
......
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-top: 60px;
.sumbit-button { .sumbit-button {
width: 352px; width: 352px;
height: 40px; height: 40px;
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</div> </div>
</template> </template>
<script> <script>
import { getDetectionDetail, getDetectionDetailProces } from '@/api/detection'; import { getDetectionDetail } from '@/api/detection';
export default { export default {
filters: { filters: {
sexFilter(val) { sexFilter(val) {
...@@ -112,50 +112,30 @@ export default { ...@@ -112,50 +112,30 @@ export default {
getDetectionDetail(this.id).then((res) => { getDetectionDetail(this.id).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
this.dataDetail = res.data; this.dataDetail = res.data;
this.getDetailProces();
console.log(res, 'eeeeeeeeeee', this.dataDetail);
} else { } else {
this.$toast(res.message); this.$toast(res.message);
} }
}); });
}, },
sampleDetection() { // 检测详情
// 样本送检测sale-mall-crm/sample-inspection?hospitalId=58436 bottomBtnFun() {
this.$router.push({ this.$router.push({
name: 'SampleInspection', path: '/insuranceDetectionDetail',
query: { query: {
hospitalId: this.dataDetail.hospitalId, id: 11073,
}, },
}); });
}, },
// 检测详情 copyText(item) {
getDetailProces() { const input = document.createElement('input');
getDetectionDetailProces(this.id).then((res) => { input.value = item;
if (res.code === '000000') { document.body.appendChild(input);
var flag = false; input.select();
const data = res.data || []; input.setSelectionRange(0, input.value.length);
console.log(this.dataDetail); document.execCommand('Copy');
data.forEach((item) => { document.body.removeChild(input);
if (item.status == this.dataDetail.status) { this.$toast('已复制');
item.complate = false; window.scrollTo(0, 1);
flag = true;
} else {
console.log(flag, 'flag');
if (!flag) {
item.complate = true;
} else {
item.complate = false;
}
}
});
this.dataList = data;
console.log(this.dataList, 'res111111');
} else {
this.$toast(res.message);
}
});
},
bottomBtnFun() {
}, },
}, },
}; };
......
...@@ -278,15 +278,6 @@ export default { ...@@ -278,15 +278,6 @@ export default {
console.log('已复制的内容:', val); console.log('已复制的内容:', val);
window.scrollTo(0, 1); window.scrollTo(0, 1);
}, },
sampleDetection() {
// 样本送检测sale-mall-crm/sample-inspection?hospitalId=58436
this.$router.push({
name: 'SampleInspection',
query: {
hospitalId: this.dataDetail.hospitalId,
},
});
},
// 检测详情 // 检测详情
getDetailProces() { getDetailProces() {
getDetectionDetailProces(this.id).then((res) => { getDetectionDetailProces(this.id).then((res) => {
...@@ -324,16 +315,6 @@ export default { ...@@ -324,16 +315,6 @@ export default {
}, },
bottomBtnFun() { bottomBtnFun() {
// 底部按钮点击 // 底部按钮点击
const objFun = {
3: 'seeReport', // 已完成 查看报告
// 1: 'goBindCode', // 待采样 绑定条形码
// 6: 'goPay', // 去支付
2: 'sampleDetection', // 去送检
};
console.log(this.dataDetail.status);
const funName = objFun[this.dataDetail.status];
console.log(funName);
funName && this[funName]();
}, },
}, },
}; };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册