|
@@ -59,30 +59,6 @@
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
-
|
|
|
|
- <!--点价单附件-->
|
|
|
|
- <ws-form-item label="点价单附件" span="1" prop="addressUrl">
|
|
|
|
- <el-upload
|
|
|
|
- class="upload-demo"
|
|
|
|
- action="https://www.zthymaoyi.com/upload/admin"
|
|
|
|
- :on-success="
|
|
|
|
- (res, file) => {
|
|
|
|
- uploadSuccessHandle(res)
|
|
|
|
- }
|
|
|
|
- "
|
|
|
|
- multiple
|
|
|
|
- :limit="3"
|
|
|
|
- >
|
|
|
|
- <el-button size="small" type="primary">附件</el-button>
|
|
|
|
- </el-upload>
|
|
|
|
- <div class="shangchuan">
|
|
|
|
- <template>
|
|
|
|
- <span v-if="deptBudgetList.enclosureTypeFlag == 0">未上传</span>
|
|
|
|
- <span v-if="deptBudgetList.enclosureTypeFlag == 1">已上传</span>
|
|
|
|
- </template>
|
|
|
|
- </div>
|
|
|
|
- </ws-form-item>
|
|
|
|
-
|
|
|
|
<!--品种合约及方向-->
|
|
<!--品种合约及方向-->
|
|
<ws-form-item
|
|
<ws-form-item
|
|
label="品种合约及方向"
|
|
label="品种合约及方向"
|
|
@@ -193,7 +169,15 @@
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
+
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
|
|
+ <ws-upload
|
|
|
|
+ ref="upload"
|
|
|
|
+ :comp-id="compId"
|
|
|
|
+ :appendix-ids="deptBudgetList.addressUrl"
|
|
|
|
+ @onChange="onChange"
|
|
|
|
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
|
|
|
|
+ />
|
|
</ws-form>
|
|
</ws-form>
|
|
</div>
|
|
</div>
|
|
<div style="text-align: right; padding: 10px" class="center">
|
|
<div style="text-align: right; padding: 10px" class="center">
|
|
@@ -252,12 +236,10 @@ export default {
|
|
contractNo: this.$route.query.contractNo,
|
|
contractNo: this.$route.query.contractNo,
|
|
contractType :this.$route.query.contractType,
|
|
contractType :this.$route.query.contractType,
|
|
id: this.$route.query.id,
|
|
id: this.$route.query.id,
|
|
-
|
|
|
|
- addressUrl: '',
|
|
|
|
|
|
+ addressUrl: '',
|
|
},
|
|
},
|
|
-
|
|
|
|
- addressUrls: [],
|
|
|
|
deptBudgetList: {},
|
|
deptBudgetList: {},
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -267,9 +249,6 @@ export default {
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- close(index) {
|
|
|
|
- this.addressUrls.splice(index, 1)
|
|
|
|
- },
|
|
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
handleClose() {
|
|
handleClose() {
|
|
this.dialogViewSpareMoney = false
|
|
this.dialogViewSpareMoney = false
|
|
@@ -285,17 +264,16 @@ export default {
|
|
query: { contractNo: this.$route.query.contractNo , contractType: this.$route.query.contractType } })
|
|
query: { contractNo: this.$route.query.contractNo , contractType: this.$route.query.contractType } })
|
|
},
|
|
},
|
|
|
|
|
|
- // 上传附件
|
|
|
|
- uploadSuccessHandle(e) {
|
|
|
|
- this.addressUrls.push(e.url)
|
|
|
|
- this.enclosureTypeFlag = 1
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- onChange(files) {
|
|
|
|
- this.fileNum = files
|
|
|
|
- this.$refs.upload.handleSaveBill().then((res) => {
|
|
|
|
- console.log(files)
|
|
|
|
- })
|
|
|
|
|
|
+ onChange() {
|
|
|
|
+ this.$refs.upload
|
|
|
|
+ .handleSaveBill()
|
|
|
|
+ .then(async response => {
|
|
|
|
+ this.deptBudgetList.addressUrl = response
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
|
+ })
|
|
},
|
|
},
|
|
//数据回显
|
|
//数据回显
|
|
loaddata() {
|
|
loaddata() {
|
|
@@ -505,7 +483,6 @@ export default {
|
|
}
|
|
}
|
|
this.deptBudgetList.contractType = this.$route.query.contractType,
|
|
this.deptBudgetList.contractType = this.$route.query.contractType,
|
|
this.deptBudgetList.contractNo = this.$route.query.contractNo,
|
|
this.deptBudgetList.contractNo = this.$route.query.contractNo,
|
|
- this.deptBudgetList.addressUrl = this.addressUrls.toString(),
|
|
|
|
this.priceConfirmationSheet = this.deptBudgetList
|
|
this.priceConfirmationSheet = this.deptBudgetList
|
|
this.$confirm(`确定提交确认单信息`, {
|
|
this.$confirm(`确定提交确认单信息`, {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|