|
|
@@ -96,129 +96,201 @@
|
|
|
ref="formRef"
|
|
|
:model="formState"
|
|
|
:rules="rules">
|
|
|
- <a-checkbox-group class="commonCheckboxGroup">
|
|
|
- <a-row>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item class="relative">
|
|
|
- <template #label>
|
|
|
- <a-checkbox value="交收量" v-model:checked="checkedObj.qty" @change="()=>checkedObj.qty = !checkedObj.qty">交收量</a-checkbox>
|
|
|
- </template>
|
|
|
- <a-form-item class="relative" v-if="checkedObj.qty" name="ReckonRealQty">
|
|
|
- <a-input-number v-model:value="formState.ReckonRealQty" class="dialogInput" style="width: 200px" placeholder="请输入交收量" suffix="单位"/>
|
|
|
- <div class="tip mt10"><span>待交收量:{{selectedRow.unsureqty}}吨</span><a class="blue fr" @click="formState.ReckonRealQty=selectedRow.unsureqty">全部登记</a></div>
|
|
|
- </a-form-item>
|
|
|
- <a-form-item class="relative" v-else>
|
|
|
- <a-input-number disabled class="dialogInput" style="width: 200px" placeholder="请输入交收量" suffix="单位" />
|
|
|
- <div class="tip mt10"><span class="fl">未定价量:--吨</span><a class="blue fr">全部登记</a></div>
|
|
|
- </a-form-item>
|
|
|
+ <a-checkbox-group class="commonCheckboxGroup">
|
|
|
+ <a-row>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item class="relative">
|
|
|
+ <template #label>
|
|
|
+ <a-checkbox value="交收量"
|
|
|
+ v-model:checked="checkedObj.qty"
|
|
|
+ @change="()=>checkedObj.qty = !checkedObj.qty">交收量</a-checkbox>
|
|
|
+ </template>
|
|
|
+ <a-form-item class="relative"
|
|
|
+ v-if="checkedObj.qty"
|
|
|
+ name="ReckonRealQty">
|
|
|
+ <a-input-number v-model:value="formState.ReckonRealQty"
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请输入交收量"
|
|
|
+ suffix="单位" />
|
|
|
+ <div class="tip mt10"><span>待交收量:{{selectedRow.unsureqty}}吨</span><a class="blue fr"
|
|
|
+ @click="formState.ReckonRealQty=selectedRow.unsureqty">全部登记</a></div>
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item class="relative"
|
|
|
+ v-else>
|
|
|
+ <a-input-number disabled
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请输入交收量"
|
|
|
+ suffix="单位" />
|
|
|
+ <div class="tip mt10"><span class="fl">未定价量:--吨</span><a class="blue fr">全部登记</a></div>
|
|
|
+ </a-form-item>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item class="relative">
|
|
|
+ <template #label>
|
|
|
+ <a-checkbox value="其他费用"
|
|
|
+ v-model:checked="checkedObj.amount"
|
|
|
+ @change="()=>checkedObj.amount = !checkedObj.amount">其他费用</a-checkbox>
|
|
|
+ </template>
|
|
|
+ <a-form-item v-if="checkedObj.amount"
|
|
|
+ name="ReckonOtherAmount">
|
|
|
+ <a-input-number v-model:value="formState.ReckonOtherAmount"
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请输入其他费用"
|
|
|
+ suffix="元" />
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item v-else>
|
|
|
+ <a-input-number readonly
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px"
|
|
|
+ placeholder="请输入其他费用"
|
|
|
+ suffix="元" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12"
|
|
|
+ class="mt10">
|
|
|
+ <a-form-item class="relative">
|
|
|
+ <template #label>
|
|
|
+ <a-checkbox value="调整保证金"
|
|
|
+ v-model:checked="checkedObj.margin"
|
|
|
+ @change="()=>checkedObj.margin = !checkedObj.margin">调整保证金</a-checkbox>
|
|
|
+ </template>
|
|
|
+ <a-form-item class="relative"
|
|
|
+ v-if="checkedObj.margin">
|
|
|
+ <a-radio-group class="commonRadioGroup"
|
|
|
+ v-model:value="checkedObj.adjustMargin">
|
|
|
+ <a-row style="width: 200px">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-radio :value="1">追加</a-radio>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-radio :value="2">退还</a-radio>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-radio-group>
|
|
|
+ <div class="tip mt10">
|
|
|
+ <a-form-item name="AddMargin"
|
|
|
+ v-if="checkedObj.adjustMargin === 1">
|
|
|
+ <a-input-number v-model:value="formState.AddMargin"
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px;"
|
|
|
+ placeholder="请输入调整保证金"
|
|
|
+ suffix="元" />
|
|
|
</a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item class="relative">
|
|
|
- <template #label>
|
|
|
- <a-checkbox value="其他费用" v-model:checked="checkedObj.amount" @change="()=>checkedObj.amount = !checkedObj.amount">其他费用</a-checkbox>
|
|
|
- </template>
|
|
|
- <a-form-item v-if="checkedObj.amount" name="ReckonOtherAmount">
|
|
|
- <a-input-number v-model:value="formState.ReckonOtherAmount" class="dialogInput" style="width: 200px" placeholder="请输入其他费用" suffix="元"/>
|
|
|
- </a-form-item>
|
|
|
- <a-form-item v-else>
|
|
|
- <a-input-number readonly class="dialogInput" style="width: 200px" placeholder="请输入其他费用" suffix="元"/>
|
|
|
- </a-form-item>
|
|
|
+ <a-form-item name="DecMargin"
|
|
|
+ v-else>
|
|
|
+ <a-input-number v-model:value="formState.DecMargin"
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px;"
|
|
|
+ placeholder="请输入调整保证金"
|
|
|
+ suffix="元" />
|
|
|
</a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12" class="mt10">
|
|
|
- <a-form-item class="relative">
|
|
|
- <template #label>
|
|
|
- <a-checkbox value="调整保证金" v-model:checked="checkedObj.margin" @change="()=>checkedObj.margin = !checkedObj.margin">调整保证金</a-checkbox>
|
|
|
- </template>
|
|
|
- <a-form-item class="relative" v-if="checkedObj.margin">
|
|
|
- <a-radio-group class="commonRadioGroup" v-model:value="checkedObj.adjustMargin">
|
|
|
- <a-row style="width: 200px">
|
|
|
- <a-col :span="12">
|
|
|
- <a-radio :value="1">追加</a-radio>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-radio :value="2">退还</a-radio>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-radio-group>
|
|
|
- <div class="tip mt10">
|
|
|
- <a-form-item name="AddMargin" v-if="checkedObj.adjustMargin === 1">
|
|
|
- <a-input-number v-model:value="formState.AddMargin" class="dialogInput" style="width: 200px;" placeholder="请输入调整保证金" suffix="元"/>
|
|
|
- </a-form-item >
|
|
|
- <a-form-item name="DecMargin" v-else>
|
|
|
- <a-input-number v-model:value="formState.DecMargin" class="dialogInput" style="width: 200px;" placeholder="请输入调整保证金" suffix="元" />
|
|
|
- </a-form-item >
|
|
|
- </div>
|
|
|
- </a-form-item >
|
|
|
- <a-form-item class="relative" v-else>
|
|
|
- <a-radio-group class="commonRadioGroup" disabled>
|
|
|
- <a-row style="width: 200px">
|
|
|
- <a-col :span="12">
|
|
|
- <a-radio :value="1">追加</a-radio>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-radio :value="2">退还</a-radio>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-radio-group>
|
|
|
- <div class="tip mt10">
|
|
|
- <a-input-number disabled class="dialogInput" style="width: 200px;" placeholder="请输入调整保证金" suffix="元"/>
|
|
|
- </div>
|
|
|
- </a-form-item>
|
|
|
- </a-form-item >
|
|
|
- </a-col>
|
|
|
- <a-col :span="12" class="mt10">
|
|
|
- <a-form-item class="relative">
|
|
|
- <template #label>
|
|
|
- <a-checkbox value="调整金额" v-model:checked="checkedObj.justAmount" @change="()=>checkedObj.justAmount = !checkedObj.justAmount">调整金额</a-checkbox>
|
|
|
- </template>
|
|
|
- <a-form-item class="relative" v-if="checkedObj.justAmount">
|
|
|
- <a-radio-group class="commonRadioGroup" v-model:value="checkedObj.adjustAmount">
|
|
|
- <a-row style="width: 200px">
|
|
|
- <a-col :span="12">
|
|
|
- <a-radio :value="1" @focus="()=>{formState.ReckonAdjustAmount ?formState.ReckonAdjustAmount= Math.abs(formState.ReckonAdjustAmount):0}">增加</a-radio>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-radio :value="2" @focus="()=>{formState.ReckonAdjustAmount ?formState.ReckonAdjustAmount= -1* Math.abs(formState.ReckonAdjustAmount):0}">减少</a-radio>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-radio-group>
|
|
|
- <div class="tip mt10">
|
|
|
- <a-form-item name="ReckonAdjustAmount">
|
|
|
- <a-input-number v-model:value="formState.ReckonAdjustAmount" @change="formState.ReckonAdjustAmount= Math.abs(formState.ReckonAdjustAmount)" class="dialogInput" style="width: 200px;" placeholder="请输入调整金额" suffix="元" v-if="checkedObj.adjustAmount===1"/>
|
|
|
- <a-input-number v-model:value="formState.ReckonAdjustAmount" @change="formState.ReckonAdjustAmount= -1*Math.abs(formState.ReckonAdjustAmount)" class="dialogInput" style="width: 200px;" placeholder="请输入调整金额" suffix="元" v-else/>
|
|
|
- </a-form-item >
|
|
|
- </div>
|
|
|
- </a-form-item>
|
|
|
- <a-form-item class="relative" v-else>
|
|
|
- <a-radio-group class="commonRadioGroup" disabled>
|
|
|
- <a-row style="width: 200px">
|
|
|
- <a-col :span="12">
|
|
|
- <a-radio :value="1">增加</a-radio>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-radio :value="2">减少</a-radio>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-radio-group>
|
|
|
- <div class="tip mt10">
|
|
|
- <a-input-number disabled class="dialogInput" style="width: 200px;" placeholder="请输入调整金额" suffix="元"/>
|
|
|
- </div>
|
|
|
- </a-form-item>
|
|
|
+ </div>
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item class="relative"
|
|
|
+ v-else>
|
|
|
+ <a-radio-group class="commonRadioGroup"
|
|
|
+ disabled>
|
|
|
+ <a-row style="width: 200px">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-radio :value="1">追加</a-radio>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-radio :value="2">退还</a-radio>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-radio-group>
|
|
|
+ <div class="tip mt10">
|
|
|
+ <a-input-number disabled
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px;"
|
|
|
+ placeholder="请输入调整保证金"
|
|
|
+ suffix="元" />
|
|
|
+ </div>
|
|
|
+ </a-form-item>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12"
|
|
|
+ class="mt10">
|
|
|
+ <a-form-item class="relative">
|
|
|
+ <template #label>
|
|
|
+ <a-checkbox value="调整金额"
|
|
|
+ v-model:checked="checkedObj.justAmount"
|
|
|
+ @change="()=>checkedObj.justAmount = !checkedObj.justAmount">调整金额</a-checkbox>
|
|
|
+ </template>
|
|
|
+ <a-form-item class="relative"
|
|
|
+ v-if="checkedObj.justAmount">
|
|
|
+ <a-radio-group class="commonRadioGroup"
|
|
|
+ v-model:value="checkedObj.adjustAmount">
|
|
|
+ <a-row style="width: 200px">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-radio :value="1"
|
|
|
+ @focus="()=>{formState.ReckonAdjustAmount ?formState.ReckonAdjustAmount= Math.abs(formState.ReckonAdjustAmount):0}">增加</a-radio>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-radio :value="2"
|
|
|
+ @focus="()=>{formState.ReckonAdjustAmount ?formState.ReckonAdjustAmount= -1* Math.abs(formState.ReckonAdjustAmount):0}">减少</a-radio>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-radio-group>
|
|
|
+ <div class="tip mt10">
|
|
|
+ <a-form-item name="ReckonAdjustAmount">
|
|
|
+ <a-input-number v-model:value="formState.ReckonAdjustAmount"
|
|
|
+ @change="formState.ReckonAdjustAmount= Math.abs(formState.ReckonAdjustAmount)"
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px;"
|
|
|
+ placeholder="请输入调整金额"
|
|
|
+ suffix="元"
|
|
|
+ v-if="checkedObj.adjustAmount===1" />
|
|
|
+ <a-input-number v-model:value="formState.ReckonAdjustAmount"
|
|
|
+ @change="formState.ReckonAdjustAmount= -1*Math.abs(formState.ReckonAdjustAmount)"
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px;"
|
|
|
+ placeholder="请输入调整金额"
|
|
|
+ suffix="元"
|
|
|
+ v-else />
|
|
|
</a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="备注"
|
|
|
- class="relative mt20 pl40">
|
|
|
- <a-input class="dialogInput"
|
|
|
- style="width: 600px"
|
|
|
- placeholder="请输入备注信息" v-model:value="formState.Remark"/>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-checkbox-group>
|
|
|
- <a-form-item name="IsChecked"></a-form-item>
|
|
|
+ </div>
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item class="relative"
|
|
|
+ v-else>
|
|
|
+ <a-radio-group class="commonRadioGroup"
|
|
|
+ disabled>
|
|
|
+ <a-row style="width: 200px">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-radio :value="1">增加</a-radio>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-radio :value="2">减少</a-radio>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-radio-group>
|
|
|
+ <div class="tip mt10">
|
|
|
+ <a-input-number disabled
|
|
|
+ class="dialogInput"
|
|
|
+ style="width: 200px;"
|
|
|
+ placeholder="请输入调整金额"
|
|
|
+ suffix="元" />
|
|
|
+ </div>
|
|
|
+ </a-form-item>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="备注"
|
|
|
+ class="relative mt20 pl40">
|
|
|
+ <a-input class="dialogInput"
|
|
|
+ style="width: 600px"
|
|
|
+ placeholder="请输入备注信息"
|
|
|
+ v-model:value="formState.Remark" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-checkbox-group>
|
|
|
+ <a-form-item name="IsChecked"></a-form-item>
|
|
|
</a-form>
|
|
|
</fieldset>
|
|
|
</a-modal>
|
|
|
@@ -291,8 +363,8 @@ export default defineComponent({
|
|
|
|
|
|
<style lang="less">
|
|
|
.settlement {
|
|
|
- .has-error .ant-form-explain {
|
|
|
- padding-left: 40px;
|
|
|
- }
|
|
|
+ .has-error .ant-form-explain {
|
|
|
+ padding-left: 40px;
|
|
|
+ }
|
|
|
}
|
|
|
</style>;
|