detail.js 720 Bytes
import { connect } from "umi";
import QuotationAllprogressDetail from "@/mobile/quotation/detailNew";
import * as commonUtils from "@/utils/utils";
function quotationDetail({ dispatch, app, content, location, sModelsId }) {
  const masterData = {
    handleType: "add",
    iPositiveColor: 4,
    maxBillNo: "sBillNo",
    sFormId: sModelsId,
    sId: commonUtils.createSid(),
  };
  const quotationProps = {
    app,
    content,
    dispatch,
    location, // 只传递需要的部分
    sModelsId,
    masterData,
  };
  
  return <QuotationAllprogressDetail {...quotationProps} />;
}

const mapStateToProps = ({ app, content }) => ({
  app,
  content,
});

export default connect(mapStateToProps)(quotationDetail);