|
|
@ -26,9 +26,7 @@ |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-drawer :visible.sync="drawerUploadXlsx" size="85%" :with-header="false" :before-close="drawerUploadXlsxClose"> |
|
|
|
<upload-xlsx ref="draweruploadxlsx" @doback="drawerUploadXlsxClose" @reloadlist="loadList" /> |
|
|
|
</el-drawer> |
|
|
|
<upload-xlsx ref="drUploadXlsx" @doback="drawerUploadXlsxClose" @reloadlist="loadList" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -134,7 +132,8 @@ |
|
|
|
}, |
|
|
|
showEditDrawer(row) { |
|
|
|
this.drawerUploadXlsx = true |
|
|
|
this.$refs['draweruploadxlsx'].showEdit(row) |
|
|
|
console.log('jjj', this.$refs) |
|
|
|
this.$refs['drUploadXlsx'].showEditInfo(row) |
|
|
|
}, |
|
|
|
// 搜索条件效果 |
|
|
|
clicksearchShow() { |
|
|
@ -199,91 +198,6 @@ |
|
|
|
this.$router.go(-1) |
|
|
|
// this.$emit('doback') |
|
|
|
}, |
|
|
|
handleProgress(event, file, fileList) { |
|
|
|
// this.progressFlag = true; // 显示进度条 |
|
|
|
// this.loadProgress = parseInt(event.percent); // 动态获取文件上传进度 |
|
|
|
// if (this.loadProgress >= 100) { |
|
|
|
// this.loadProgress = 100 |
|
|
|
// setTimeout( () => {this.progressFlag = false}, 1000) // 一秒后关闭进度条 |
|
|
|
// } |
|
|
|
// const _this = this |
|
|
|
// this.fullscreenloading = this.$loading({ |
|
|
|
// lock: true, |
|
|
|
// text: '文件正在上传', |
|
|
|
// spinner: 'el-icon-loading', |
|
|
|
// background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
// }) |
|
|
|
// console.log('111', event.percent) |
|
|
|
// if (event.percent >= 100) { |
|
|
|
// _this.fullscreenloading.text = '上传完成,正在导入数据库' |
|
|
|
// } |
|
|
|
}, |
|
|
|
// handleSuccess(resp, file, fileList) { |
|
|
|
// // if (this.fullscreenloading) this.fullscreenloading.close() |
|
|
|
// // this.fullscreenloading = null |
|
|
|
// console.log('222', resp) |
|
|
|
// // const rdata = resp.data |
|
|
|
// // const _this = this |
|
|
|
// // _this.fullscreenloading.text = '数据导入完成,进行汇总' |
|
|
|
// // _this.uploadResultMesssage = '共导入数据:' + rdata.allNum + ' 条;符合监管条件的数据:' + rdata.validNum + ' 条;用时:' + rdata.durations + ' 毫秒。' |
|
|
|
|
|
|
|
// // kchz() |
|
|
|
// // .then(res => { |
|
|
|
// // if (this.fullscreenloading) this.fullscreenloading.close() |
|
|
|
// // this.fullscreenloading = null |
|
|
|
// // console.log('333', res) |
|
|
|
// // _this.hzFilePath = res.data |
|
|
|
// // }) |
|
|
|
// // .catch(e => { |
|
|
|
// // if (this.fullscreenloading) this.fullscreenloading.close() |
|
|
|
// // this.fullscreenloading = null |
|
|
|
// // }) |
|
|
|
// // // kchzyc() |
|
|
|
// // // .then(res => { |
|
|
|
// // // if (this.fullscreenloading) this.fullscreenloading.close() |
|
|
|
// // // this.fullscreenloading = null |
|
|
|
// // // console.log('444', res) |
|
|
|
// // // _this.ychzFilePath = res.data |
|
|
|
// // // }) |
|
|
|
// // // .catch(e => { |
|
|
|
// // // if (this.fullscreenloading) this.fullscreenloading.close() |
|
|
|
// // // this.fullscreenloading = null |
|
|
|
// // // }) |
|
|
|
// }, |
|
|
|
showAdd() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.viewTitle = '【审核编号】' |
|
|
|
}, |
|
|
|
showEdit(row) { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
|
this.viewTitle = '【审核编号】' |
|
|
|
req |
|
|
|
.fetchBySid(row.sid) |
|
|
|
.then(resp => { |
|
|
|
if (resp.success) { |
|
|
|
this.formobj = resp.data |
|
|
|
if (this.formobj.pros.length > 0) { |
|
|
|
this.totalQuantity = this.formobj.pros.length |
|
|
|
var aa = 0 |
|
|
|
for (var i = 0; i < this.formobj.pros.length; i++) { |
|
|
|
if (this.formobj.pros[i].totalPrice !== '') { |
|
|
|
aa = parseFloat(aa) + parseFloat(this.formobj.pros[i].totalPrice) |
|
|
|
} |
|
|
|
} |
|
|
|
this.amountInTotal = aa |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 根据resp.code进行异常情况处理 |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(e => { |
|
|
|
this.formobj = row |
|
|
|
}) |
|
|
|
}, |
|
|
|
downCheckExcel() { |
|
|
|
window.location.href = process.env.VUE_APP_BASE_API + '/v1/productnum/products?code=' + this.formobj.code |
|
|
|
}, |
|
|
|