liupopo 2 years ago
parent
commit
f71731b93a
  1. 43
      supervise-customer-ui/src/views/purchaserequisition/listofcheck/PrUploadXlsx.vue
  2. 92
      supervise-customer-ui/src/views/purchaserequisition/listofcheck/index.vue
  3. 11
      yxt-supervise-cyf/docs/sheji/hy/jh20230504.txt
  4. 2
      yxt-supervise-dbcenter/yxt-supervise-dbcenter-biz/src/main/resources/application.yml

43
supervise-customer-ui/src/views/purchaserequisition/listofcheck/PrUploadXlsx.vue

@ -1,4 +1,6 @@
<template>
<div>
<el-drawer :visible.sync="drawerUploadXlsxShow" size="85%" :with-header="false" :before-close="drawerUploadXlsxClose">
<div class="app-container">
<!-- 标题按钮部分开始 -->
<div class="tab-header webtop">
@ -186,6 +188,7 @@
</div>
<!-- End 添加修改部分 -->
</div>
</el-drawer></div>
</template>
<script>
@ -205,6 +208,7 @@
fileList: [],
totalQuantity: '', //
amountInTotal: '', //
drawerUploadXlsxShow: false,
formobj: {
sid: '',
code: '', //
@ -241,6 +245,10 @@
},
created() {},
methods: {
drawerUploadXlsxClose() {
console.log('DDDD')
this.drawerUploadXlsxShow = false
},
handleReturn() {
this.formobj = {
sid: '',
@ -292,49 +300,18 @@
// _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) {
showEditInfo(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.viewTitle = '【审核编号】'
this.drawerUploadXlsxShow = true
req
.fetchBySid(row.sid)
.then(resp => {

92
supervise-customer-ui/src/views/purchaserequisition/listofcheck/index.vue

@ -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
},

11
yxt-supervise-cyf/docs/sheji/hy/jh20230504.txt

@ -0,0 +1,11 @@
库存原油,原料
出入库管理
1。油罐增删改查
2。原油类型增删改查
3。流量计(对应油罐,管线管路图)
登记入库信息(选油罐(带入原油类型),数量,时间)
查看库存信息
登记出库信息(

2
yxt-supervise-dbcenter/yxt-supervise-dbcenter-biz/src/main/resources/application.yml

@ -20,7 +20,7 @@ spring:
server:
port: 7101
port: 7109
max-http-header-size: 102400
undertow:
max-http-post-size: -1

Loading…
Cancel
Save