|
|
@@ -393,9 +393,11 @@
|
|
|
</a-row>
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :span="24">
|
|
|
- <a-form-item label="备注">
|
|
|
+ <a-form-item label="备注"
|
|
|
+ name="Remark">
|
|
|
<a-input class="dialogInput"
|
|
|
style="width: 608px"
|
|
|
+ v-model:value="formState.Remark"
|
|
|
placeholder="请输入备注" />
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
@@ -406,13 +408,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, onMounted, PropType, ref, toRaw, watchEffect } from 'vue';
|
|
|
+import { defineComponent, PropType, ref, watchEffect } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
-import { initData } from '@/common/methods';
|
|
|
import { getUserName, getUsrId } from '@/services/bus/user';
|
|
|
import { getGoodsList } from '@/services/bus/goods';
|
|
|
import { Goods } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
-import { ValidateErrorEntity } from 'ant-design-vue/lib/form/interface';
|
|
|
import { FormState } from '../interface';
|
|
|
import { formatTime } from '@/common/methods/format';
|
|
|
import { Ermcp3ContractRsp } from '@/services/go/ermcp/spot-contract/interface';
|
|
|
@@ -465,8 +465,8 @@ export default defineComponent({
|
|
|
watchEffect(() => {
|
|
|
// // formState.ContractAttachment = props.selectedRow.attachment
|
|
|
// formState.ContractAttachment = new Uint8Array()
|
|
|
- // formState.SpotGoodsBrandID = +props.selectedRow.spotcontractid
|
|
|
if (visible.value) {
|
|
|
+ contractChange(formState.ContractType);
|
|
|
queryCustomList();
|
|
|
getDeliveryGoods();
|
|
|
goodsList.value = getGoodsList();
|
|
|
@@ -476,12 +476,18 @@ export default defineComponent({
|
|
|
});
|
|
|
queryTradeManager();
|
|
|
mergeTwoObj(formState, props.selectedRow);
|
|
|
- const { deliverygoodsid, qty, price } = props.selectedRow;
|
|
|
- deliverygoodsid && deliveryGoodsChange(deliverygoodsid);
|
|
|
+ const { deliverygoodsid, qty, price, wrstandardid, spotgoodsbrandid } = props.selectedRow;
|
|
|
+ if (deliverygoodsid) {
|
|
|
+ deliveryGoodsChange(deliverygoodsid);
|
|
|
+ if (wrstandardid) {
|
|
|
+ WrStandardChange(wrstandardid);
|
|
|
+ formState.WrStandardID = wrstandardid;
|
|
|
+ formState.SpotGoodsBrandID = spotgoodsbrandid;
|
|
|
+ }
|
|
|
+ }
|
|
|
formState.Qty = qty.toString();
|
|
|
formState.Price = price.toString();
|
|
|
formState.CurrencyID = props.selectedRow.currencyid;
|
|
|
- contractChange(formState.ContractType);
|
|
|
}
|
|
|
});
|
|
|
function submit() {
|