Commit 31051125 authored by chenzj's avatar chenzj

修改查看图片bug

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