Browse Source

bug修改

master
yangpeilai 2 months ago
parent
commit
e5ebd035ff
1 changed files with 15 additions and 8 deletions
  1. 15
    8
      src/views/system/agency/index.vue

+ 15
- 8
src/views/system/agency/index.vue View File

<el-table-column label="协议名称"> <el-table-column label="协议名称">
<template v-slot="scope"> <template v-slot="scope">
<div class="input-wrap"> <div class="input-wrap">
<el-form-item prop="agreementName">
<el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.agreementName"
<el-form-item v-if="typeOption!=='info'" prop="agreementName">
<el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.agreementName"
placeholder="协议名称" :disabled="typeOption==='info'" ></el-input> placeholder="协议名称" :disabled="typeOption==='info'" ></el-input>
</el-form-item> </el-form-item>
<span v-else>{{scope.row.agreementName}}</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="协议编号"> <el-table-column label="协议编号">
<template v-slot="scope"> <template v-slot="scope">
<div class="input-wrap"> <div class="input-wrap">
<el-form-item prop="agreementId">
<el-form-item v-if="typeOption!=='info'" prop="agreementId">
<el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.agreementId" <el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.agreementId"
placeholder="协议编号" :disabled="typeOption==='info'"></el-input> placeholder="协议编号" :disabled="typeOption==='info'"></el-input>
</el-form-item> </el-form-item>
<span v-else>{{scope.row.agreementId}}</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="有效期"> <el-table-column label="有效期">
<template v-slot="scope"> <template v-slot="scope">
<div class="input-wrap"> <div class="input-wrap">
<el-form-item prop="termOfValidity">
<el-form-item v-if="typeOption!=='info'" prop="termOfValidity">
<el-date-picker size="small" maxlength="60" v-trim clearable v-model="scope.row.termOfValidity" <el-date-picker size="small" maxlength="60" v-trim clearable v-model="scope.row.termOfValidity"
placeholder="有效期" value-format="YYYY-MM-DD" :disabled="typeOption==='info'"></el-date-picker> placeholder="有效期" value-format="YYYY-MM-DD" :disabled="typeOption==='info'"></el-date-picker>
</el-form-item> </el-form-item>
<span v-else>{{scope.row.termOfValidity}}</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="对公账户"> <el-table-column label="对公账户">
<template v-slot="scope"> <template v-slot="scope">
<div class="input-wrap"> <div class="input-wrap">
<el-form-item prop="corporateAccount">
<el-form-item v-if="typeOption!=='info'" prop="corporateAccount">
<el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.corporateAccount" <el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.corporateAccount"
placeholder="对公账户" :disabled="typeOption==='info'"></el-input> placeholder="对公账户" :disabled="typeOption==='info'"></el-input>
</el-form-item> </el-form-item>
<span v-else>{{scope.row.corporateAccount}}</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="商户号"> <el-table-column label="商户号">
<template v-slot="scope"> <template v-slot="scope">
<div class="input-wrap"> <div class="input-wrap">
<el-form-item prop="merchantId">
<el-form-item v-if="typeOption!=='info'" prop="merchantId">
<el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.merchantId" <el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.merchantId"
placeholder="商户号" :disabled="typeOption==='info'"></el-input> placeholder="商户号" :disabled="typeOption==='info'"></el-input>
</el-form-item> </el-form-item>
<span v-else>{{scope.row.merchantId}}</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="开户行"> <el-table-column label="开户行">
<template v-slot="scope"> <template v-slot="scope">
<div class="input-wrap"> <div class="input-wrap">
<el-form-item prop="openingBank">
<el-form-item v-if="typeOption!=='info'" prop="openingBank">
<el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.openingBank" <el-input size="small" maxlength="60" v-trim clearable v-model="scope.row.openingBank"
placeholder="开户行" :disabled="typeOption==='info'"></el-input> placeholder="开户行" :disabled="typeOption==='info'"></el-input>
</el-form-item> </el-form-item>
<span v-else>{{scope.row.openingBank}}</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
} }
}, { }, {
hide: true, hide: true,
prop: "taxPayerCode",
prop: "taxPayercode",
label: "纳税人识别号", label: "纳税人识别号",
form: { form: {
width: '45%', width: '45%',
if (typeOption.value === 'edit') { if (typeOption.value === 'edit') {
api = '/userw/agency/agencyupdate'; api = '/userw/agency/agencyupdate';
} }
// console.log("===>data",data)
BaseService.postN(api, data).then((res: any) => { BaseService.postN(api, data).then((res: any) => {
if (res && res.code === 0) { if (res && res.code === 0) {
ElMessage.success("操作成功"); ElMessage.success("操作成功");

Loading…
Cancel
Save