|
|
@@ -34,7 +34,7 @@
|
|
|
</a-row>
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="12">
|
|
|
- <a-form-item :label="'销售方'">
|
|
|
+ <a-form-item :label="selectedRow.contracttype===1? '采购方': '销售方'">
|
|
|
<span class="white">{{ formatValue(selectedRow.accountname) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
@@ -96,75 +96,129 @@
|
|
|
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="交收量">交收量</a-checkbox>
|
|
|
- </template>
|
|
|
- <a-input class="dialogInput" placeholder="请输入交收量" suffix="单位"/>
|
|
|
- <div class="tip"><span>未定价量:40吨</span><a class="blue fr">全部登记</a></div>
|
|
|
+ <a-form-item name="IsChecked">
|
|
|
+ <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"><span>未定价量:40吨</span><a class="blue">全部登记</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"><span>未定价量:--吨</span><a class="blue">全部登记</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 disabled class="dialogInput" style="width: 200px" placeholder="请输入其他费用" suffix="元"/>
|
|
|
+ </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.margin" @change="()=>checkedObj.margin = !checkedObj.margin">调整保证金</a-checkbox>
|
|
|
+ </template>
|
|
|
+ <a-form-item class="relative mt10" 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 mt5">
|
|
|
+ <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 mt10" 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 mt5">
|
|
|
+ <a-input-number disabled class="dialogInput" style="width: 200px;" placeholder="请输入调整保证金" suffix="元"/>
|
|
|
+ </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.justAmount" @change="()=>checkedObj.justAmount = !checkedObj.justAmount">调整金额</a-checkbox>
|
|
|
+ </template>
|
|
|
+ <a-form-item class="relative mt5" 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">增加</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="ReckonAdjustAmount">
|
|
|
+ <a-input-number v-model:value="checkedObj.ReckonAdjustAmount" class="dialogInput" style="width: 200px;" placeholder="请输入调整金额" suffix="元" />
|
|
|
+ </a-form-item >
|
|
|
+ </div>
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item class="relative mt5" 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 mt30 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>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item>
|
|
|
- <template #label>
|
|
|
- <a-checkbox value="其他费用">其他费用</a-checkbox>
|
|
|
- </template>
|
|
|
- <a-input class="dialogInput" style="width: 200px" placeholder="请输入其他费用" suffix="元"/>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item class="relative mt10">
|
|
|
- <template #label>
|
|
|
- <a-checkbox value="调整保证金">调整保证金</a-checkbox>
|
|
|
- </template>
|
|
|
- <a-radio-group class="commonRadioGroup">
|
|
|
- <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 mt5">
|
|
|
- <a-input class="dialogInput" style="width: 200px;" placeholder="请输入调整保证金" suffix="元"/>
|
|
|
- </div>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item class="relative mt5">
|
|
|
- <template #label>
|
|
|
- <a-checkbox value="调整金额">调整金额</a-checkbox>
|
|
|
- </template>
|
|
|
- <a-radio-group class="commonRadioGroup">
|
|
|
- <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 class="dialogInput" style="width: 200px;" placeholder="请输入调整金额" suffix="元"/>
|
|
|
- </div>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="备注"
|
|
|
- class="relative mt30 pl40">
|
|
|
- <a-input class="dialogInput"
|
|
|
- style="width: 600px"
|
|
|
- placeholder="请输入备注信息" />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-checkbox-group>
|
|
|
</a-form>
|
|
|
</fieldset>
|
|
|
</a-modal>
|
|
|
@@ -204,7 +258,7 @@ export default defineComponent({
|
|
|
ReckonOtherAmount: 11, // 其它费用
|
|
|
AddMargin: 12, // 追加保证金
|
|
|
// DecMargin: number // 减少保证金
|
|
|
- ReckonAdjustAmount: 13, // 调整金额
|
|
|
+ ReckonAdjustAmount: 13, // 调整金额 +-代表增减
|
|
|
};
|
|
|
// 发出交收请求
|
|
|
settlementReq(props.selectedRow.spotcontractid, params, loading)
|
|
|
@@ -226,6 +280,7 @@ export default defineComponent({
|
|
|
formatValue,
|
|
|
rules,
|
|
|
getPriceTypeName,
|
|
|
+ checkedObj,
|
|
|
};
|
|
|
},
|
|
|
});
|