|
|
@@ -1579,24 +1579,25 @@ export const useHooks = (t?: any, props?: any) => {
|
|
|
{
|
|
|
title: "币种",
|
|
|
field: "moneyrate",
|
|
|
+ render: (scope: any) => {
|
|
|
+ return (
|
|
|
+ <>
|
|
|
+ <div class="flx-justify-between">
|
|
|
+ <span>
|
|
|
+ <>{scope.row.moneyrate > 1 ? `美元` : "人民币"}</>
|
|
|
+ </span>
|
|
|
+ {scope.row.moneyrate > 1 && (
|
|
|
+ <span>
|
|
|
+ <>{scope.row.moneyrate}</>
|
|
|
+ </span>
|
|
|
+ )}
|
|
|
+ </div>
|
|
|
+ </>
|
|
|
+ );
|
|
|
+ },
|
|
|
basicinfo: {
|
|
|
- el: "input",
|
|
|
- // props: {
|
|
|
- // placeholder: ifsaleout_default.moneyrate + ""
|
|
|
- // },
|
|
|
- // rules: [{ validator: numCheck, trigger: "blur" }],
|
|
|
- editable: (scope: any) => {
|
|
|
- if (ALLOW_EDIT_STATE.includes(scope.status) && Number(scope.searchParam.ifsaleout)) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- return false;
|
|
|
- },
|
|
|
- // editvisible: (scope: any) => {
|
|
|
- // if (Number(scope.searchParam.ifsaleout)) {
|
|
|
- // return true;
|
|
|
- // }
|
|
|
- // return false;
|
|
|
- // }
|
|
|
+ el: "select",
|
|
|
+ editable: ALLOW_EDIT_STATE,
|
|
|
render: (scope: any) => {
|
|
|
let optionRender = [];
|
|
|
let _disabled = !ALLOW_EDIT_STATE.includes(scope.status);
|