This commit is contained in:
qsh
2024-07-08 15:50:12 +08:00
parent f2064d99ad
commit e3e24f4939
6 changed files with 382 additions and 28 deletions

View File

@@ -79,6 +79,7 @@
:disabled="!form.signPlace"
placeholder="选择班型"
filterable
@change="changeClass"
>
<el-option
v-for="item in classOptions"
@@ -90,6 +91,14 @@
</el-form-item>
</el-col>
</template>
<el-col :span="8" :offset="0">
<el-form-item label="公司收款" prop="isCompanyReceipts">
<el-radio-group v-model="form.isCompanyReceipts">
<el-radio :label="true"></el-radio>
<el-radio :label="false"></el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col
:span="8"
:offset="0"
@@ -368,6 +377,7 @@ function resetForm(id) {
state: true,
payAmount: 0,
remark: undefined,
isCompanyReceipts: appStore.getAppInfo?.instanceType == 1,
extraPay: [],
signProducts: []
}
@@ -476,6 +486,11 @@ function changePlace() {
getClassTypeOptions()
}
function changeClass() {
form.value.payAmount =
classOptions.value.find((it) => (it.typeId = form.value.signClass)).guidingPrice || 0
}
function handleRemove(type, index) {
form.value[type].splice(index, 1)
}