|
@@ -12,7 +12,8 @@
|
|
|
<a-button key="submit"
|
|
<a-button key="submit"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:loading="loading"
|
|
:loading="loading"
|
|
|
- @click="submit">完成</a-button>
|
|
|
|
|
|
|
+ @click="submit">完成
|
|
|
|
|
+ </a-button>
|
|
|
</template>
|
|
</template>
|
|
|
<a-form class="inlineForm"
|
|
<a-form class="inlineForm"
|
|
|
ref="formRef"
|
|
ref="formRef"
|
|
@@ -24,13 +25,13 @@
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="现货品种名称"
|
|
<a-form-item label="现货品种名称"
|
|
|
name="deliverygoodsname">
|
|
name="deliverygoodsname">
|
|
|
- <span class="white">铜板</span>
|
|
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.data.deliverygoodsname) }}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="现货品种代码"
|
|
<a-form-item label="现货品种代码"
|
|
|
name="deliverygoodscode">
|
|
name="deliverygoodscode">
|
|
|
- <span class="white">CU</span>
|
|
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.data.deliverygoodsname) }}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -38,13 +39,13 @@
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="单位"
|
|
<a-form-item label="单位"
|
|
|
name="unitid">
|
|
name="unitid">
|
|
|
- <span class="white">吨</span>
|
|
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.data.enumdicname) }}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<a-form-item label="状态"
|
|
<a-form-item label="状态"
|
|
|
name="unitid">
|
|
name="unitid">
|
|
|
- <span class="green">正常</span>
|
|
|
|
|
|
|
+ <span class="green">{{ getValidName(selectedRow.data.isvalid) }}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -52,7 +53,7 @@
|
|
|
<a-col :span="24">
|
|
<a-col :span="24">
|
|
|
<a-form-item label="备注"
|
|
<a-form-item label="备注"
|
|
|
name="remark">
|
|
name="remark">
|
|
|
- <span class="white">铜板的采购价按上海有色网AMMA00铜2021-2-8号均价计价</span>
|
|
|
|
|
|
|
+ <span class="white">{{ formatValue(selectedRow.data.remark) }}</span>
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
@@ -76,24 +77,19 @@
|
|
|
标仓系数
|
|
标仓系数
|
|
|
</span>
|
|
</span>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
- <a-col :span="8" class="bt1">
|
|
|
|
|
- <div class="white">TWX-1</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="8">
|
|
|
|
|
- <div class="white">吨</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="8">
|
|
|
|
|
- <div class="white">1.0</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="8">
|
|
|
|
|
- <div class="white">TWX-2</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="8">
|
|
|
|
|
- <div class="white">吨</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="8">
|
|
|
|
|
- <div class="white">1.1</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
|
|
+ <template v-for="item in selectedRow.gmlist"
|
|
|
|
|
+ :key="item.wrstandardid">
|
|
|
|
|
+ <a-col :span="8"
|
|
|
|
|
+ class="bt1">
|
|
|
|
|
+ <div class="white">{{ item.wrstandardname }}</div>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="8">
|
|
|
|
|
+ <div class="white">{{ item.enumdicname }}</div>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="8">
|
|
|
|
|
+ <div class="white">{{ item.convertfactor }}</div>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </template>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</fieldset>
|
|
</fieldset>
|
|
|
<fieldset class="formFieldSet">
|
|
<fieldset class="formFieldSet">
|
|
@@ -105,12 +101,13 @@
|
|
|
品牌
|
|
品牌
|
|
|
</span>
|
|
</span>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
- <a-col :span="24" class="bt1">
|
|
|
|
|
- <div class="white">江铜</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="24" class="bt1">
|
|
|
|
|
- <div class="white">云铜</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
|
|
+ <template v-for="item in selectedRow.gblist"
|
|
|
|
|
+ :key="item.brandid">
|
|
|
|
|
+ <a-col :span="24"
|
|
|
|
|
+ class="bt1">
|
|
|
|
|
+ <div class="white">{{ item.brandname }}</div>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </template>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</fieldset>
|
|
</fieldset>
|
|
|
<fieldset class="formFieldSet">
|
|
<fieldset class="formFieldSet">
|
|
@@ -132,24 +129,19 @@
|
|
|
套保系数
|
|
套保系数
|
|
|
</span>
|
|
</span>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
- <a-col :span="8" class="bt1">
|
|
|
|
|
- <div class="white">标准铜</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="8">
|
|
|
|
|
- <div class="white">吨</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="8">
|
|
|
|
|
- <div class="white">1.0</div>
|
|
|
|
|
|
|
+ <template v-for="item in selectedRow.mgList"
|
|
|
|
|
+ :key="item.mg.middlegoodsid">
|
|
|
|
|
+ <a-col :span="8"
|
|
|
|
|
+ class="bt1">
|
|
|
|
|
+ <div class="white">{{ item.mg.middlegoodsname }}</div>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
|
- <div class="white">标准银</div>
|
|
|
|
|
|
|
+ <div class="white">{{ item.mg.enumdicname }}</div>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :span="8">
|
|
<a-col :span="8">
|
|
|
- <div class="white">吨</div>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="8">
|
|
|
|
|
- <div class="white">1.1</div>
|
|
|
|
|
|
|
+ <div class="white">{{ item.mg.needhedgeratio }}</div>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
+ </template>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
</fieldset>
|
|
</fieldset>
|
|
|
</a-form>
|
|
</a-form>
|
|
@@ -157,26 +149,30 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { defineComponent, ref } from 'vue';
|
|
|
|
|
|
|
+import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
-import { initData } from '@/common/methods/index';
|
|
|
|
|
|
|
+import { formatValue, initData } from '@/common/methods/index';
|
|
|
|
|
+import { ErmcpDeliveryGoodsDetailEx } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
|
|
+import { getValidName } from '@/views/information/goods/setup';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
- name: 'modify-custom',
|
|
|
|
|
|
|
+ name: 'spot-detail',
|
|
|
components: {},
|
|
components: {},
|
|
|
props: {
|
|
props: {
|
|
|
- // selectedRow: {
|
|
|
|
|
- // type:
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ selectedRow: {
|
|
|
|
|
+ type: Object as PropType<ErmcpDeliveryGoodsDetailEx>,
|
|
|
|
|
+ default: {},
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
const { visible, cancel } = closeModal('detail');
|
|
const { visible, cancel } = closeModal('detail');
|
|
|
|
|
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
- const maskClosableFlag = ref<boolean>(false);
|
|
|
|
|
|
|
+
|
|
|
function submit() {
|
|
function submit() {
|
|
|
cancel();
|
|
cancel();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
initData(() => {});
|
|
initData(() => {});
|
|
|
return {
|
|
return {
|
|
|
visible,
|
|
visible,
|
|
@@ -184,6 +180,8 @@ export default defineComponent({
|
|
|
submit,
|
|
submit,
|
|
|
loading,
|
|
loading,
|
|
|
maskClosableFlag: false,
|
|
maskClosableFlag: false,
|
|
|
|
|
+ formatValue,
|
|
|
|
|
+ getValidName,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
@@ -194,8 +192,10 @@ export default defineComponent({
|
|
|
fieldset {
|
|
fieldset {
|
|
|
padding-right: 170px;
|
|
padding-right: 170px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.upload {
|
|
.upload {
|
|
|
display: inline-flex;
|
|
display: inline-flex;
|
|
|
|
|
+
|
|
|
.ant-btn.uploadBtn {
|
|
.ant-btn.uploadBtn {
|
|
|
width: 60px;
|
|
width: 60px;
|
|
|
height: 30px;
|
|
height: 30px;
|
|
@@ -206,11 +206,13 @@ export default defineComponent({
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
color: @m-white0;
|
|
color: @m-white0;
|
|
|
.rounded-corners(3px);
|
|
.rounded-corners(3px);
|
|
|
|
|
+
|
|
|
&:hover {
|
|
&:hover {
|
|
|
background: rgba(@m-blue0, 0);
|
|
background: rgba(@m-blue0, 0);
|
|
|
color: rgba(@m-white0, 0.8);
|
|
color: rgba(@m-white0, 0.8);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.look {
|
|
.look {
|
|
|
color: @m-blue0;
|
|
color: @m-blue0;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -218,6 +220,7 @@ export default defineComponent({
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
div.white {
|
|
div.white {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
text-align: center;
|
|
text-align: center;
|