|
@@ -17,7 +17,7 @@
|
|
|
<el-button v-show="form.verifyStatus == 3 " type="warning" size="small" icon="Finished" @click="returnZero"
|
|
|
v-hasPermi="['business:payment:return']">退回</el-button>
|
|
|
<el-button v-if="form.id && editStatus" size="small" icon="Close"
|
|
|
- @click="editStatus = false">取消修改</el-button>
|
|
|
+ @click="reForm">取消修改</el-button>
|
|
|
</template>
|
|
|
<el-button v-show="form.id && !editStatus && form.verifyStatus === 0"
|
|
|
v-hasPermi="['business:payment:financialVerify']" type="primary" size="small" icon="Check"
|
|
@@ -51,7 +51,7 @@
|
|
|
<el-row :gutter="30">
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="支出流水号:">
|
|
|
- <el-input v-if="editStatus" style="width: 100%" v-model.trim="form.flowNo" readonly size="small"
|
|
|
+ <el-input v-if="editStatus" style="width: 100%" v-model.trim="form.flowNo" disabled size="small"
|
|
|
type="text" placeholder="支出流水号" :clearable="true" />
|
|
|
<span v-else>{{ form.flowNo }}</span>
|
|
|
</el-form-item>
|
|
@@ -158,7 +158,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="支出金额:" required>
|
|
|
- <el-input-number v-if="editStatus" v-model.trim="form.amount" size="small" readonly placeholder="支出金额"
|
|
|
+ <el-input-number v-if="editStatus" v-model.trim="form.amount" size="small" disabled placeholder="支出金额"
|
|
|
:clearable="true" :precision="2" controls-position="right" :controls="false" @change="amountChange" />
|
|
|
<span v-else>{{ rowNum(form.amount) }}</span>
|
|
|
</el-form-item>
|
|
@@ -551,6 +551,8 @@
|
|
|
getPayment(id).then((res) => {
|
|
|
form.value = res.data;
|
|
|
editStatus.value = false;
|
|
|
+ form.value.paymentCauseId = form.value.paymentCauseId === "0" ? null :form.value.paymentCauseId;
|
|
|
+ form.value.paymentSubjectId = form.value.paymentSubjectId === "0" ? null :form.value.paymentSubjectId;
|
|
|
paymentCauseChange(form.value.paymentCauseId);
|
|
|
paymentSubjectChange(form.value.paymentSubjectId);
|
|
|
});
|
|
@@ -974,7 +976,9 @@
|
|
|
}
|
|
|
|
|
|
init();
|
|
|
-
|
|
|
+ const reForm = () => {
|
|
|
+ open(form.value.id);
|
|
|
+ }
|
|
|
/** 暴露给父组件的方法 */
|
|
|
defineExpose({
|
|
|
open,
|