pull/1/head
xiaozhiyong 2 years ago
parent 72a2bd9f07
commit d7c64b72ba
  1. 17
      src/views/financialCenter/enterpriseRecharge/components/add.vue

@ -18,7 +18,7 @@
</el-form-item> </el-form-item>
<el-form-item label="交易类型" prop="transactionType"> <el-form-item label="交易类型" prop="transactionType">
<el-select <el-select
:disabled="form.id" :disabled="!!form.id"
v-model="form.transactionType" v-model="form.transactionType"
placeholder="请选择交易类型" placeholder="请选择交易类型"
@change="changeTransactionType" @change="changeTransactionType"
@ -111,6 +111,7 @@
:on-remove="handleRemove" :on-remove="handleRemove"
:on-success="handleSuccess" :on-success="handleSuccess"
:limit="1" :limit="1"
:file-list="fileList"
> >
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
</el-upload> </el-upload>
@ -139,7 +140,6 @@
<script> <script>
import serve from "api/financialCenter/enterpriseRecharge.js"; import serve from "api/financialCenter/enterpriseRecharge.js";
import commonServe from "api/common.js";
import autocomplete from "components/autocomplete/index.vue"; import autocomplete from "components/autocomplete/index.vue";
@ -174,10 +174,10 @@ export default {
JSESSIONID: JSESSIONID, JSESSIONID: JSESSIONID,
token: utils.bcrypt(JSESSIONID), token: utils.bcrypt(JSESSIONID),
}, },
fileList: [],
cascaderList: [], cascaderList: [],
companyFinance: {}, companyFinance: {},
form: {}, form: {},
refineryList: [],
configAutocomplete: { configAutocomplete: {
serveTarget: serve.getLikeByNameSuccess, serveTarget: serve.getLikeByNameSuccess,
autocompleteKey: "name", autocompleteKey: "name",
@ -259,8 +259,15 @@ export default {
openDrawer() { openDrawer() {
let { id } = this.controlWindows.addInfo; let { id } = this.controlWindows.addInfo;
// //
id && if (id) {
(this.form = JSON.parse(JSON.stringify(this.controlWindows.addInfo))); this.form = JSON.parse(JSON.stringify(this.controlWindows.addInfo));
if (this.form.offlineTransactionProof) {
this.fileList.push({
url: this.form.offlineTransactionProof,
});
}
}
let configUpdata = id let configUpdata = id
? { echoId: id, echoName: this.form.refineryName, isDisabled: true } ? { echoId: id, echoName: this.form.refineryName, isDisabled: true }
: { : {

Loading…
Cancel
Save