|
|
@@ -24,13 +24,13 @@
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="现货品种名称"
|
|
|
name="deliverygoodsname">
|
|
|
- <span class="white">铜板</span>
|
|
|
+ <span class="white">{{ formatValue(selectedRow.data.deliverygoodsname) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="现货品种代码"
|
|
|
name="deliverygoodscode">
|
|
|
- <span class="white">CU</span>
|
|
|
+ <span class="white">{{ formatValue(selectedRow.data.deliverygoodsname) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
@@ -38,13 +38,13 @@
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="单位"
|
|
|
name="unitid">
|
|
|
- <span class="white">吨</span>
|
|
|
+ <span class="white">{{ formatValue(selectedRow.data.enumdicname) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="状态"
|
|
|
name="unitid">
|
|
|
- <span class="green">正常</span>
|
|
|
+ <span class="green">{{ getValidName(selectedRow.data.isvalid) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
@@ -52,7 +52,7 @@
|
|
|
<a-col :span="24">
|
|
|
<a-form-item label="备注"
|
|
|
name="remark">
|
|
|
- <span class="white">铜板的采购价按上海有色网AMMA00铜2021-2-8号均价计价</span>
|
|
|
+ <span class="white">{{ formatValue(selectedRow.data.remark) }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
@@ -157,17 +157,20 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, ref } from 'vue';
|
|
|
+import {defineComponent, PropType, ref} from 'vue';
|
|
|
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({
|
|
|
name: 'modify-custom',
|
|
|
components: {},
|
|
|
props: {
|
|
|
- // selectedRow: {
|
|
|
- // type:
|
|
|
- // }
|
|
|
+ selectedRow: {
|
|
|
+ type: Object as PropType<ErmcpDeliveryGoodsDetailEx>,
|
|
|
+ default: {},
|
|
|
+ },
|
|
|
},
|
|
|
setup() {
|
|
|
const { visible, cancel } = closeModal('detail');
|
|
|
@@ -184,6 +187,8 @@ export default defineComponent({
|
|
|
submit,
|
|
|
loading,
|
|
|
maskClosableFlag: false,
|
|
|
+ formatValue,
|
|
|
+ getValidName,
|
|
|
};
|
|
|
},
|
|
|
});
|