Commit 31051125 authored by chenzj's avatar chenzj

修改查看图片bug

parent d02c76fd
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<u-button type="primary" @click="commonClick('ViewPpicture')">查看图片</u-button> <u-button type="primary" @click="commonClick('ViewPpicture')">查看图片</u-button>
</scroll-view> </scroll-view>
</view> </view>
<!--查看图片查询的生产工单-->
<u-modal <u-modal
title="生产报工" title="生产报工"
@confirm="feedback()" @confirm="feedback()"
...@@ -540,7 +540,7 @@ ...@@ -540,7 +540,7 @@
<button class="uni-button" size="mini" type="primary" @click="viewSopsShow(line)">查看</button> <button class="uni-button" size="mini" type="primary" @click="viewSopsShow(line)">查看</button>
</view> </view>
</uni-td> </uni-td>
<uni-td align="center">{{ line.workorderId }}</uni-td> <uni-td align="center">{{ line.workorderCode }}</uni-td>
<uni-td align="center">{{ line.workorderName }}</uni-td> <uni-td align="center">{{ line.workorderName }}</uni-td>
<uni-td align="center">{{ line.orderSource }}</uni-td> <uni-td align="center">{{ line.orderSource }}</uni-td>
<uni-td align="center">{{ line.productName }}</uni-td> <uni-td align="center">{{ line.productName }}</uni-td>
...@@ -1474,12 +1474,13 @@ export default { ...@@ -1474,12 +1474,13 @@ export default {
const rst = []; const rst = [];
const taskInfo = this.tableSelectData[0]; const taskInfo = this.tableSelectData[0];
const t = this; const t = this;
const items = this.curTaskInfo.workorderOption.find((item) => item.value === this.curTaskInfo.workorderCode ); const items = this.curTaskInfo.workorderOption.find((item) => item.text === this.curTaskInfo.workorderCode );
this.materialRequestList.forEach((s) => { console.log( this.curTaskInfo.workorderOption , this.curTaskInfo.workorderCode, items)
this.materialRequestArrays.forEach((s) => {
if (s.applyNum != null) { if (s.applyNum != null) {
rst.push({ rst.push({
itemId: s.itemId, itemId: s.itemId,
workorderCode: s.workorderCode, workorderCode: items?.text,
taskId: taskInfo.taskId, taskId: taskInfo.taskId,
applyNum: s.applyNum, applyNum: s.applyNum,
applyType: 1 applyType: 1
...@@ -1510,6 +1511,8 @@ export default { ...@@ -1510,6 +1511,8 @@ export default {
viewiPctureShow() { viewiPctureShow() {
this.materialReturn = true; this.materialReturn = true;
// this.viewSopPicture = this.tableSelectData[0]; // this.viewSopPicture = this.tableSelectData[0];
const taskInfo = this.tableSelectData[0];
this.curTaskInfo = this.tableSelectData[0];
this.$u.api.viewpicture.viewWorkorder({ taskId: this.curTaskInfo.taskId }).then((res) => { this.$u.api.viewpicture.viewWorkorder({ taskId: this.curTaskInfo.taskId }).then((res) => {
if (res.code === 200) { if (res.code === 200) {
this.viewSopPicture = res.data; this.viewSopPicture = res.data;
......
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