|
|
@@ -83,7 +83,7 @@
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="销售方"
|
|
|
name="SellUserID">
|
|
|
- <span class="white">河北石家庄刚强矿石公司</span>
|
|
|
+ <span class="white">{{getUserName()}}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</template>
|
|
|
@@ -91,7 +91,7 @@
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="采购方"
|
|
|
name="BuyUserID">
|
|
|
- <span class="white">河北石家庄刚强矿石公司</span>
|
|
|
+ <span class="white">{{getUserName()}}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
@@ -215,8 +215,10 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
- <a-form-item label="结算币种">
|
|
|
+ <a-form-item label="结算币种"
|
|
|
+ name="CurrencyID">
|
|
|
<a-select class="inlineFormSelect"
|
|
|
+ v-model:value="formState.CurrencyID"
|
|
|
style="width: 200px"
|
|
|
placeholder="请选择结算币种">
|
|
|
<a-select-option v-for="item in payCurrency"
|
|
|
@@ -231,13 +233,14 @@
|
|
|
<a-form-item label="数量">
|
|
|
<a-input class="dialogInput suffixGrey"
|
|
|
placeholder="请输入数量"
|
|
|
- suffix="单位" />
|
|
|
+ :suffix="numberUnit" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12"
|
|
|
v-if="formState.PriceType === 3">
|
|
|
<a-form-item label="暂定价">
|
|
|
<a-input class="dialogInput suffixGrey"
|
|
|
+ :suffix="payCurrencyUnit"
|
|
|
placeholder="请输入暂定价" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
@@ -261,7 +264,7 @@
|
|
|
<a-form-item label="升贴水">
|
|
|
<a-input class="dialogInput suffixGrey"
|
|
|
placeholder="请输入升贴水"
|
|
|
- suffix="元/单位"
|
|
|
+ :suffix="`${payCurrencyUnit}/${numberUnit}`"
|
|
|
style="width: 200px" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
@@ -310,15 +313,18 @@
|
|
|
<a-form-item label="价格">
|
|
|
<a-input class="dialogInput suffixGrey"
|
|
|
placeholder="请输入价格"
|
|
|
- suffix="元/单位"
|
|
|
+ :suffix="`${payCurrencyUnit}/${numberUnit}`"
|
|
|
style="width: 200px" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="金额"
|
|
|
class="relative">
|
|
|
- <span class="white">输入数量和价格后自动算</span>
|
|
|
- <span class="unit">元</span>
|
|
|
+ <a-input class="dialogInput suffixGrey"
|
|
|
+ readonly
|
|
|
+ placeholder="输入数量和价格后自动算"
|
|
|
+ :suffix="payCurrencyUnit"
|
|
|
+ style="width: 200px" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="24">
|
|
|
@@ -350,7 +356,7 @@
|
|
|
<a-form-item label="保证金">
|
|
|
<a-input class="dialogInput suffixGrey"
|
|
|
placeholder="请输入保证金"
|
|
|
- suffix="元" />
|
|
|
+ :suffix="payCurrencyUnit" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
@@ -417,6 +423,7 @@ import { defineComponent, ref } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { initData } from '@/common/methods';
|
|
|
import { handleFromState, handleContract, handlevalidate, handleDeliveryGoods, handlePrice } from './setup';
|
|
|
+import { getUserName } from '@/services/bus/user';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'add-spot-contract',
|
|
|
@@ -445,15 +452,9 @@ export default defineComponent({
|
|
|
SpotGoodsDesc: [{ required: true, message: '请输入商品规格', trigger: 'blur' }],
|
|
|
};
|
|
|
// 处理现货商品
|
|
|
- const { deliveryGoodsList, gblist, gmlist, getDeliveryGoods, deliveryGoodsChange } = handleDeliveryGoods();
|
|
|
- // 品类变更
|
|
|
- function WrStandardChange(value: number) {
|
|
|
- const obj = gmlist.value.find((e) => e.wrstandardid === value);
|
|
|
- //标仓系数
|
|
|
- formState.ConvertFactor = obj?.convertfactor;
|
|
|
- }
|
|
|
+ const { deliveryGoodsList, gblist, gmlist, numberUnit, WrStandardChange, getDeliveryGoods, deliveryGoodsChange } = handleDeliveryGoods(formState);
|
|
|
// 价格信息
|
|
|
- const { priceType, payCurrency, isPriceType } = handlePrice(formState);
|
|
|
+ const { priceType, payCurrency, payCurrencyUnit, parCurrencyChange } = handlePrice(formState);
|
|
|
function submit() {
|
|
|
loading.value = true;
|
|
|
setTimeout(() => {
|
|
|
@@ -485,7 +486,10 @@ export default defineComponent({
|
|
|
WrStandardChange,
|
|
|
priceType,
|
|
|
payCurrency,
|
|
|
- isPriceType,
|
|
|
+ payCurrencyUnit,
|
|
|
+ parCurrencyChange,
|
|
|
+ numberUnit,
|
|
|
+ getUserName,
|
|
|
};
|
|
|
},
|
|
|
});
|