|
@@ -109,12 +109,13 @@
|
|
|
<trade-card title="上传附件">
|
|
|
<c-upload :basic="true"
|
|
|
:enumerationValue="107.1"
|
|
|
- :data="[]"></c-upload>
|
|
|
+ :disabled="disabled || checkDisabled"
|
|
|
+ :data="fileList"></c-upload>
|
|
|
</trade-card>
|
|
|
<trade-card title="付款信息">
|
|
|
<avue-form :option="optionTwo" v-model="form">
|
|
|
<template slot="paymentMethodName" slot-scope="{ row, index }">
|
|
|
- <el-select v-model="form.paymentMethodName" size="small" placeholder="请选择" clearable>
|
|
|
+ <el-select v-model="form.paymentMethodName" filterable size="small" placeholder="请选择" clearable>
|
|
|
<el-option v-for="(item, index) in paymentOption" :key="index" :label="item.dictValue"
|
|
|
:value="item.dictKey"></el-option>
|
|
|
</el-select>
|
|
@@ -252,6 +253,7 @@ export default {
|
|
|
prop: "accountReimbursement",
|
|
|
type: 'select',
|
|
|
dicData:[],
|
|
|
+ filterable:true,
|
|
|
props: {
|
|
|
label: "accountName",
|
|
|
value: "accountName"
|
|
@@ -284,6 +286,7 @@ export default {
|
|
|
{
|
|
|
label: "系统编号",
|
|
|
prop: "serialNo",
|
|
|
+ disabled:true,
|
|
|
span: 8,
|
|
|
slot: true,
|
|
|
},
|
|
@@ -317,6 +320,12 @@ export default {
|
|
|
{
|
|
|
label: "支付方式",
|
|
|
prop: "paymentMethodName",
|
|
|
+ type: "select",
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=payment_term",
|
|
|
+ props: {
|
|
|
+ label: "dictValue",
|
|
|
+ value: "dictKey"
|
|
|
+ },
|
|
|
span: 8,
|
|
|
slot: true,
|
|
|
},{
|
|
@@ -347,6 +356,7 @@ export default {
|
|
|
goodsoptions: [],
|
|
|
unitOption: [],
|
|
|
paymentOption: [],
|
|
|
+ fileList:[],
|
|
|
selectionList: [],
|
|
|
search: {},
|
|
|
treeStyle: "height:" + (window.innerHeight - 315) + "px",
|
|
@@ -388,7 +398,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
|
- if (this.tenantId !== '681169'){
|
|
|
+ if (this.tenantId == '681169'){
|
|
|
this.tableOptionBack = tableOptionTwo
|
|
|
}else {
|
|
|
this.tableOptionBack = tableOption
|
|
@@ -440,6 +450,9 @@ export default {
|
|
|
this.option.column.map(e => {
|
|
|
this.$set(e, 'disabled', true)
|
|
|
})
|
|
|
+ this.optionTwo.column.map(e => {
|
|
|
+ this.$set(e, 'disabled', true)
|
|
|
+ })
|
|
|
this.queryData(this.detailData.id);
|
|
|
} else if (this.detailData.auditId) {
|
|
|
this.checker = true;
|
|
@@ -467,6 +480,8 @@ export default {
|
|
|
this.pageLoading = true;
|
|
|
dataDetail({ id: id }).then(res => {
|
|
|
this.form = res.data.data;
|
|
|
+ this.fileList = this.form.fileList
|
|
|
+ delete this.form.fileList
|
|
|
this.dataList = this.form.itemList ? this.form.itemList : [];
|
|
|
this.dataList.forEach(item => {
|
|
|
this.moldChange(item.moldId, item, this.dicArea)
|
|
@@ -482,6 +497,9 @@ export default {
|
|
|
this.option.column.map(e => {
|
|
|
this.$set(e, 'disabled', true)
|
|
|
})
|
|
|
+ this.optionTwo.column.map(e => {
|
|
|
+ this.$set(e, 'disabled', true)
|
|
|
+ })
|
|
|
}
|
|
|
}).finally(() => {
|
|
|
this.pageLoading = false;
|
|
@@ -503,6 +521,15 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ this.optionTwo.column.map(e => {
|
|
|
+ if (this.checkDisabled) {
|
|
|
+ this.$set(e, 'disabled', true)
|
|
|
+ } else {
|
|
|
+ if (e.prop != 'serialNo') {
|
|
|
+ this.$set(e, 'disabled', false)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
// 复制
|
|
|
copyDoc() {
|
|
@@ -519,8 +546,12 @@ export default {
|
|
|
done();
|
|
|
if (valid) {
|
|
|
this.$set(this.form, 'itemList', this.dataList)
|
|
|
+ let formTwo = {
|
|
|
+ ...this.form,
|
|
|
+ fileList:this.fileList
|
|
|
+ }
|
|
|
this.btnLoading = true;
|
|
|
- typeSave(this.form).then(res => {
|
|
|
+ typeSave(formTwo).then(res => {
|
|
|
this.$message({ type: "success", message: this.form.id ? "修改成功!" : "新增成功!" });
|
|
|
this.queryData(res.data.data);
|
|
|
}).finally(() => {
|