Merge remote-tracking branch 'origin/master'

master
schry 2 years ago
commit ca96a3f746

@ -128,7 +128,7 @@
" "
> >
<el-select <el-select
v-model="orderFormData.fromCorpName" v-model="orderFormData.fromCorp"
filterable filterable
remote remote
clearable clearable
@ -565,6 +565,7 @@ export default {
action: null, action: null,
invCode: null, invCode: null,
fromCorp: null, fromCorp: null,
fromCorpName: null,
fromInvCode: null, fromInvCode: null,
remark: null, remark: null,
fromType: 2, fromType: 2,
@ -1446,6 +1447,7 @@ export default {
this.corpOrderIdDisabled = true; this.corpOrderIdDisabled = true;
this.orderFormData = this.orderQuery; this.orderFormData = this.orderQuery;
this.actionEnable = true; this.actionEnable = true;
this.orderFormData.fromCorp=this.orderFormData.fromCorpName;
if (this.$isNotBlank(this.orderFormData.checkPreInOrders)) { if (this.$isNotBlank(this.orderFormData.checkPreInOrders)) {
this.checkPreInArray = this.orderFormData.split(","); this.checkPreInArray = this.orderFormData.split(",");
} }

@ -798,41 +798,37 @@ export default {
showImgViewer(row) { showImgViewer(row) {
this.certFileUrl = this.certFileUrl =
this.BASE_URL + this.BASE_URL +
"/udiwms/image/register/file/getImage?type=image2&name="+row.licenseUrl; "/udiwms/image/register/file/getImage?type=image2&name=" + row.licenseUrl;
this.imgList = []; this.imgList = [];
this.imgList.push(this.certFileUrl) this.imgList.push(this.certFileUrl);
let index = row.licenseUrl.lastIndexOf('.'); let index = row.licenseUrl.lastIndexOf('.');
if(index===-1){ if (index === -1) {
this.$message.error("文件名异常!") this.$message.error("文件名异常!");
return false return false;
} }
if(row.licenseUrl.substr(index+1)==='pdf'){ if (row.licenseUrl.substr(index + 1) === 'pdf') {
let pdf = "application/pdf" let pdf = "application/pdf";
let binaryData = []; let binaryData = [];
previewFile(this.certFileUrl).then(res=>{ previewFile(this.certFileUrl).then(res => {
binaryData.push(res); binaryData.push(res);
let URL = window.URL.createObjectURL(new Blob(binaryData, {type: pdf})); let URL = window.URL.createObjectURL(new Blob(binaryData, { type: pdf }));
window.open(URL); window.open(URL);
}) });
// window.open(this.imgList[0]) return false;
return false
} }
this.imgViewerVisible = true; this.imgViewerVisible = true;
// previewImage({
// imageUrl: this.inputQuery.licenseUrl,
// certFileUrl: this.certFileUrl,
// }).then((response) => {
// if (response.code === 20000) {
// }
// console.log(this.imgList);
// });
const m = (e) => { const m = (e) => {
e.preventDefault(); e.preventDefault();
}; };
document.body.style.overflow = "hidden"; document.body.style.overflow = "hidden";
document.addEventListener("touchmove", m, false); // document.addEventListener("touchmove", m, false); //
}, },
closeImgViewer() {
this.imgViewerVisible = false;
document.body.style.overflow = "auto"; //
document.removeEventListener("touchmove", m, false); //
},
invChange() { invChange() {

@ -364,7 +364,7 @@ export default {
return; return;
} }
if (this.$isBlank(this.idQuery.fromCorpName) && this.$isBlank(this.idQuery.fromInvCode)) { if (this.$isBlank(this.idQuery.fromCorp) && this.$isBlank(this.idQuery.fromInvCode)) {
this.$message.error("往来信息不能为空!"); this.$message.error("往来信息不能为空!");
return; return;
} }

Loading…
Cancel
Save