@@ -24,10 +25,11 @@ import ZyjhSelectComp from "@/views/zyjhzx/components/SelectComp.vue";
import TipsComp from "@/views/zyjhzx/components/TipsComp.vue";
import Drawer from "@/views/zyjhzx/components/Drawer.vue";
import pdf from "vue-pdf";
+import PwanSgd from "@/views/zyjhzx/pwanpgong/comps/PwanSgd.vue";
export default {
name:'PWanPGong',
- components: {Drawer, TipsComp, ZyjhSelectComp, PWanPgd,pdf},
+ components: {PwanSgd, Drawer, TipsComp, ZyjhSelectComp, PWanPgd,pdf},
data(){
return {
title:'抛 丸 作 业 派 工',
@@ -68,16 +70,16 @@ export default {
}
},
methods:{
- loadPdf(url){
- this.pdfShow=false
- this.pdfUrl=null
- this.numPages=null
- this.pdfUrl=pdf.createLoadingTask(url)
- this.pdfUrl.promise.then((pdf) => {
- this.numPages = pdf.numPages;
- this.pdfShow=true
- });
- },
+ // loadPdf(url){
+ // this.pdfShow=false
+ // this.pdfUrl=null
+ // this.numPages=null
+ // this.pdfUrl=pdf.createLoadingTask(url)
+ // this.pdfUrl.promise.then((pdf) => {
+ // this.numPages = pdf.numPages;
+ // this.pdfShow=true
+ // });
+ // },
// loadPdf(url) {
// const loadingTask = pdfjsLib.getDocument(url);
// loadingTask.promise.then(pdf => {
@@ -127,14 +129,20 @@ export default {
this.dwGroup.destroyChildren()
}
getYcldw({type:'ycl'}).then(res=>{
+ console.log(res)
+
const {container,dw}=drawDw(this.width,this.height)
const {bgGroup,group}=container()
this.dwGroup=group;
this.layer.add(bgGroup)
+ const that=this
for (let i=0;i
item.djh===data.msg.orderNumber||item.djh.slice(-djhWhLengh)===data.msg.orderNumber)
if (tmpList.length>1){
this.list=tmpList
+ this.gridOptions.data=tmpList
this.$message.warning('短号有重复,请使用全工单号重新派工!!!')
return
}