|
@@ -127,7 +127,9 @@
|
|
|
</el-pagination>
|
|
|
<WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
|
|
|
@on-cancel="handleClose">
|
|
|
- <ws-upload ref="upload" :comp-id="compId" :appendix-ids="appendixIdss" :editable="false"
|
|
|
+ <ws-upload ref="upload" :comp-id="compId" :appendix-ids="appendixIdss"
|
|
|
+ :size-limit="size"
|
|
|
+ @onChange="onChange"
|
|
|
accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
|
|
|
|
|
|
</WinseaContentModal>
|
|
@@ -140,6 +142,7 @@
|
|
|
editstatus,
|
|
|
billoperatehis,
|
|
|
deletecontract,
|
|
|
+ editInfo
|
|
|
} from '@/model/contarct/index'
|
|
|
import {
|
|
|
downloadFile
|
|
@@ -166,13 +169,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- //弹出框
|
|
|
- dialogViewSpareMoney: false,
|
|
|
- dialogApproveFormVisible: false,
|
|
|
- // 船舶类型
|
|
|
- monetaryKey: null,
|
|
|
- // 表格显示数据
|
|
|
- tableDate: [],
|
|
|
+ id:'',
|
|
|
size: 10,
|
|
|
// 是否显示
|
|
|
showType: true,
|
|
@@ -206,11 +203,6 @@
|
|
|
appendixIdss: [],
|
|
|
fileList: [],
|
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
- pickerBeginDateBefore: {
|
|
|
- disabledDate: (time) => {
|
|
|
- return time.getTime() > Date.now()
|
|
|
- },
|
|
|
- },
|
|
|
accessoryTFs: false,
|
|
|
taskTypeList: [{
|
|
|
value: '未完成',
|
|
@@ -280,6 +272,26 @@
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
methods: {
|
|
|
+ onChange () {
|
|
|
+ this.$refs.upload
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async response => {
|
|
|
+ this.deptBudgetList.addressUrl = response
|
|
|
+ this.deptBudgetList.id=this.id
|
|
|
+ this.deptBudgetList.flag=1
|
|
|
+ editInfo(this.deptBudgetList)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.accessoryTFs = false
|
|
|
+ this.$message.success('上传成功')
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+ })
|
|
|
+ },
|
|
|
dateFormat(fmt, date) {
|
|
|
let ret
|
|
|
const opt = {
|
|
@@ -407,12 +419,7 @@
|
|
|
}
|
|
|
},
|
|
|
fujian(row) {
|
|
|
- if (row.addressUrl === null || row.addressUrl === '') {
|
|
|
- EventBus.$emit(
|
|
|
- 'warning',
|
|
|
- this.$t('system.noticeCircular.NoInformation')
|
|
|
- )
|
|
|
- }
|
|
|
+ this.id=row.id
|
|
|
this.appendixIdss = row.addressUrl
|
|
|
console.log(this.appendixIdss)
|
|
|
this.accessoryTFs = true
|