|
|
@ -197,7 +197,7 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-button type="primary">首页</el-button>
|
|
|
|
<el-button type="primary">首页</el-button>
|
|
|
|
<el-button type="success" @click="handleRawInstock">板材入库</el-button>
|
|
|
|
<el-button type="success" @click="handleRawInstock">板材入库</el-button>
|
|
|
|
<el-button type="info">SOP预览</el-button>
|
|
|
|
<el-button type="info" @click="handleViewSOP">SOP预览</el-button>
|
|
|
|
<el-button type="danger" @click="logout">退出</el-button>
|
|
|
|
<el-button type="danger" @click="logout">退出</el-button>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -238,6 +238,10 @@
|
|
|
|
<WorkshopNotice :visible.sync="showTableDialog" :noticeListData="noticeListData"></WorkshopNotice>
|
|
|
|
<WorkshopNotice :visible.sync="showTableDialog" :noticeListData="noticeListData"></WorkshopNotice>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="viewFile">
|
|
|
|
|
|
|
|
<ViewFile :showFileDialog.sync="showFileDialog" :fileListData="fileListData" :thisTitle="thisTitle"></ViewFile>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -261,6 +265,8 @@ import {monitorSerialData} from "@/utils/serial"
|
|
|
|
import {addWmslocation, updateWmslocation} from "@/api/wms/wmslocation";
|
|
|
|
import {addWmslocation, updateWmslocation} from "@/api/wms/wmslocation";
|
|
|
|
import WorkshopNotice from "@/components/workshopNotice/index.vue";
|
|
|
|
import WorkshopNotice from "@/components/workshopNotice/index.vue";
|
|
|
|
import {noticeData} from "@/utils/notice"
|
|
|
|
import {noticeData} from "@/utils/notice"
|
|
|
|
|
|
|
|
import ViewFile from "@/components/viewFile/index.vue";
|
|
|
|
|
|
|
|
import {getDispatchSOPAttachList} from "@/api/mes/productplan";
|
|
|
|
|
|
|
|
|
|
|
|
const setState = (e) => {
|
|
|
|
const setState = (e) => {
|
|
|
|
if (e === '1') {
|
|
|
|
if (e === '1') {
|
|
|
@ -279,7 +285,8 @@ export default {
|
|
|
|
mixins: [monitorSerialData, noticeData],
|
|
|
|
mixins: [monitorSerialData, noticeData],
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
Chart,
|
|
|
|
Chart,
|
|
|
|
WorkshopNotice
|
|
|
|
WorkshopNotice,
|
|
|
|
|
|
|
|
ViewFile
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -341,7 +348,15 @@ export default {
|
|
|
|
RETURN: "3",//退库
|
|
|
|
RETURN: "3",//退库
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
submitLoading: false
|
|
|
|
submitLoading: false,
|
|
|
|
|
|
|
|
// 存储选中的行
|
|
|
|
|
|
|
|
selectedRows: {},
|
|
|
|
|
|
|
|
//显示预览文件
|
|
|
|
|
|
|
|
showFileDialog: false,
|
|
|
|
|
|
|
|
//显示预览文件标题
|
|
|
|
|
|
|
|
thisTitle: "查看SOP附件",
|
|
|
|
|
|
|
|
//预览文件数据列表
|
|
|
|
|
|
|
|
fileListData: [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async mounted() {
|
|
|
|
async mounted() {
|
|
|
@ -564,6 +579,8 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getOrderInfo(e) {
|
|
|
|
getOrderInfo(e) {
|
|
|
|
|
|
|
|
console.log("当前选择行:", e)
|
|
|
|
|
|
|
|
this.selectedRows = e;
|
|
|
|
this.getInfo(e)
|
|
|
|
this.getInfo(e)
|
|
|
|
getNewestProductPlanDetailJoinAttach({planId: e.planId}).then(val => {
|
|
|
|
getNewestProductPlanDetailJoinAttach({planId: e.planId}).then(val => {
|
|
|
|
if (val.data) {
|
|
|
|
if (val.data) {
|
|
|
@ -1193,12 +1210,29 @@ export default {
|
|
|
|
this.wmsForm.materialBarcode = this.serialData;
|
|
|
|
this.wmsForm.materialBarcode = this.serialData;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
/** SOP预览*/
|
|
|
|
|
|
|
|
handleViewSOP(){
|
|
|
|
|
|
|
|
this.fileListData = [];
|
|
|
|
|
|
|
|
getDispatchSOPAttachList(this.selectedRows.dispatchCode, this.selectedRows.processId).then(res => {
|
|
|
|
|
|
|
|
let attachList = res.data;
|
|
|
|
|
|
|
|
let thisFileList = [];
|
|
|
|
|
|
|
|
attachList.forEach(e => {
|
|
|
|
|
|
|
|
let previewFile = {};
|
|
|
|
|
|
|
|
previewFile.url = e.attachPath;
|
|
|
|
|
|
|
|
previewFile.name = e.attachName;
|
|
|
|
|
|
|
|
thisFileList.push(previewFile);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
console.log("thisFileList:", thisFileList)
|
|
|
|
|
|
|
|
if (thisFileList.length > 0){
|
|
|
|
|
|
|
|
this.fileListData = thisFileList;
|
|
|
|
|
|
|
|
this.showFileDialog = true;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$modal.msgWarning("此派工派工单号无SOP附件!");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|