| | |
| | | <button class="op3" size="mini" plain @tap.stop="fileUpload(item)">文件上传</button> |
| | | <button class="op3" size="mini" plain @tap.stop="getImage(item)">预览图片</button> |
| | | <button class="op3" size="mini" plain @tap.stop="Reject(item)">驳回</button> |
| | | <button class="op3" size="mini" plain @tap.stop="selected(item)">查看明细</button> |
| | | <button class="op5" size="mini" plain @tap.stop="operations = -1">取消操作</button> |
| | | </view> |
| | | </uni-card> |
| | |
| | | listData: [], |
| | | showList: [], |
| | | page: 1, |
| | | HSourceBillTypeList: {首件检验单:'8505',末件检验单:'8507'}, |
| | | HSourceBillTypeList: {首件检验单:'8505',末件检验单:'8507',采购订单:'1102',销售订单:'1401'}, |
| | | arrayHSourceBillTypeName: [ |
| | | "首件检验单", |
| | | "末件检验单", |
| | | "采购订单", |
| | | "销售订单" |
| | | ], |
| | | } |
| | | }, |
| | |
| | | CurUserName: getUserInfo()["Czymc"], |
| | | CurUserID:getUserInfo()["Czybm"], |
| | | } |
| | | }else if(this.hform.HSourceBillType=='1102'){ |
| | | url = 'Cg_POOrderBill/AuditCg_POOrderBill_Flow', |
| | | ajaxData= { |
| | | HInterID: item["hmainid"], |
| | | IsAudit: mode, |
| | | CurUserName: getUserInfo()["Czymc"], |
| | | CurUserID:getUserInfo()["Czybm"], |
| | | } |
| | | }else if(this.hform.HSourceBillType=='1401'){ |
| | | url = 'Xs_SeOrderBill/AuditXs_SeOrderBill_Flow', |
| | | ajaxData= { |
| | | HInterID: item["hmainid"], |
| | | IsAudit: mode, |
| | | CurUserName: getUserInfo()["Czymc"], |
| | | CurUserID:getUserInfo()["Czybm"], |
| | | } |
| | | } |
| | | try{ |
| | | let res = await CommonUtils.doRequest2Sync({ |
| | |
| | | } |
| | | }else if(this.hform.HSourceBillType=='8507'){ |
| | | url = 'QC_ProcessCheckBill/RejectCheckFlow', |
| | | ajaxData= { |
| | | HInterID: item["hmainid"], |
| | | CurUserID:getUserInfo()["Czybm"], |
| | | } |
| | | }else if(this.hform.HSourceBillType=='1401'){ |
| | | url = 'Xs_SeOrderBill/RejectCheckFlow_POOrderBill', |
| | | ajaxData= { |
| | | HInterID: item["hmainid"], |
| | | CurUserID:getUserInfo()["Czybm"], |
| | | } |
| | | }else if(this.hform.HSourceBillType=='1102'){ |
| | | url = 'Cg_POOrderBill/RejectCheckFlow_POOrderBill', |
| | | ajaxData= { |
| | | HInterID: item["hmainid"], |
| | | CurUserID:getUserInfo()["Czybm"], |
| | |
| | | } |
| | | }) |
| | | }, |
| | | async selected(item) |
| | | { |
| | | if(this.hform.HSourceBillType=='1401') //销售 |
| | | { |
| | | console.log(item) |
| | | uni.navigateTo({ |
| | | url: '/pages/xiaoshoudingdan/xiaoshoudingdanListEdit?linterid=' + item.hmainid + '&HBillNo=' + item.单据号 |
| | | }) |
| | | }else if(this.hform.HSourceBillType=='1102') //采购 |
| | | { |
| | | console.log(item) |
| | | uni.navigateTo({ |
| | | url: '/pages/caigoudingdan/caigoudingdanListEdit?linterid=' + item.hmainid + '&HBillNo=' + item.单据号 |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | // 上传文件 |
| | | fileUpload(item) { |
| | | this.uploadOptions.formData.HBillNo = item.单据号 |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | onShow() { |
| | | this.$nextTick(() => { |
| | | this.cmdSearch() |