# `viw_ai_quotation`（视图）


- **是否可更新：** NO
- **定义者：** `xlyprint@%`

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `sBrandsId` | `varchar(50)` | NO |
| 2 | `sSubsidiaryId` | `varchar(50)` | NO |
| 3 | `tCreateDate` | `datetime` | NO |
| 4 | `sMakePerson` | `varchar(50)` | NO |
| 5 | `iOrder` | `int` | NO |
| 6 | `sBillNo` | `varchar(50)` | NO |
| 7 | `bCheck` | `bit(1)` | NO |
| 8 | `tCheckDate` | `datetime` | YES |
| 9 | `sCheckPerson` | `varchar(50)` | YES |
| 10 | `sStatus` | `varchar(50)` | YES |
| 11 | `bInvalid` | `bit(1)` | NO |
| 12 | `bFailure` | `bit(1)` | NO |
| 13 | `tFailureDate` | `datetime` | YES |
| 14 | `bSubmit` | `bit(1)` | NO |
| 15 | `tSubmit` | `datetime` | YES |
| 16 | `tStatus` | `datetime` | YES |
| 17 | `sReason` | `varchar(50)` | NO |
| 18 | `sType` | `varchar(50)` | NO |
| 19 | `sSlaveId` | `varchar(50)` | NO |
| 20 | `iSlaveOrder` | `int` | NO |
| 21 | `sCustomerId` | `varchar(50)` | NO |
| 22 | `sContacts` | `varchar(50)` | YES |
| 23 | `sPhone` | `varchar(50)` | YES |
| 24 | `tDeliverDate` | `datetime` | YES |
| 25 | `sSalesManId` | `varchar(50)` | YES |
| 26 | `sProductTechnologyVer` | `varchar(50)` | YES |
| 27 | `sConsignee` | `varchar(50)` | YES |
| 28 | `sConsigneeMobile` | `varchar(50)` | YES |
| 29 | `sDeliverId` | `varchar(50)` | YES |
| 30 | `sProvince` | `varchar(50)` | YES |
| 31 | `sCity` | `varchar(50)` | YES |
| 32 | `sArea` | `varchar(50)` | YES |
| 33 | `sDeliverTo` | `varchar(50)` | YES |
| 34 | `sManualNo` | `varchar(50)` | YES |
| 35 | `sCustomerOrderNo` | `varchar(50)` | YES |
| 36 | `sCurrency` | `varchar(50)` | YES |
| 37 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 38 | `sProductId` | `varchar(50)` | YES |
| 39 | `dProductQty` | `decimal(18,6)` | YES |
| 40 | `dProductPrice` | `decimal(18,6)` | YES |
| 41 | `dProductMoney` | `decimal(18,6)` | YES |
| 42 | `dProceeMoney` | `decimal(18,6)` | NO |
| 43 | `dMaterialsMoney` | `decimal(18,6)` | NO |
| 44 | `dMaterialsRate` | `decimal(18,6)` | NO |
| 45 | `dCostMoney` | `decimal(18,6)` | NO |
| 46 | `dCostPrice` | `decimal(18,6)` | NO |
| 47 | `sProductInfo` | `text` | YES |
| 48 | `sMaterialsMemo` | `text` | YES |
| 49 | `sProcessMemo` | `text` | YES |
| 50 | `dProductPQty` | `decimal(18,6)` | YES |
| 51 | `sQualityRequireMemo` | `text` | YES |
| 52 | `sPackRequireMemo` | `text` | YES |
| 53 | `sSlaveMemo` | `text` | YES |
| 54 | `sTaxId` | `varchar(50)` | YES |
| 55 | `dProductNoTaxPrice` | `decimal(18,6)` | YES |
| 56 | `dProductNoTaxMoney` | `decimal(18,6)` | YES |
| 57 | `dProductTaxMoney` | `decimal(18,6)` | YES |
| 58 | `dProductTaxForeignMoney` | `decimal(18,6)` | YES |
| 59 | `dProductForeignMoney` | `decimal(18,6)` | YES |
| 60 | `sProductTechnologyId` | `varchar(50)` | YES |
| 61 | `sOrderNo` | `varchar(50)` | NO |
| 62 | `sId` | `varchar(50)` | NO |
| 63 | `dProfitMoney` | `decimal(18,6)` | NO |
| 64 | `dNProductMoney` | `decimal(18,2)` | NO |
| 65 | `dNProductPrice` | `decimal(18,6)` | NO |
| 66 | `dFreightMoney` | `decimal(18,6)` | NO |
| 67 | `dKnifeMouldMoney` | `decimal(18,6)` | NO |
| 68 | `dPlateMoney` | `decimal(18,6)` | NO |
| 69 | `dProofingMoney` | `decimal(18,6)` | NO |
| 70 | `dProductForeignPrice` | `decimal(18,6)` | NO |
| 71 | `dProfitRate` | `decimal(18,6)` | NO |
| 72 | `dPassRate` | `decimal(18,6)` | NO |
| 73 | `dSlavePackMoney` | `decimal(18,6)` | NO |
| 74 | `dSlaveTransportMoney` | `decimal(18,6)` | NO |
| 75 | `dBusinessMoney` | `decimal(18,6)` | NO |
| 76 | `sQuotationType` | `varchar(50)` | YES |
| 77 | `sUpdatePerson` | `varchar(50)` | YES |
| 78 | `sProductName` | `varchar(100)` | YES |
| 79 | `sProductStyle` | `varchar(50)` | YES |
| 80 | `sSubmitPerson` | `varchar(50)` | NO |
| 81 | `bBillComplete` | `bit(1)` | NO |
| 82 | `sMemo` | `text` | YES |
| 83 | `sProductNo` | `varchar(50)` | YES |
| 84 | `sProductUnit` | `varchar(50)` | YES |
| 85 | `sCustomerName` | `varchar(100)` | YES |
| 86 | `sCustomerNo` | `varchar(50)` | YES |
| 87 | `tUpdateDate` | `datetime` | NO |
| 88 | `sSalesManName` | `varchar(255)` | YES |
| 89 | `sDepartName` | `varchar(255)` | YES |

## 定义

```sql
select `xlyweberp_saas_ai`.`quoquotationmaster`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`quoquotationmaster`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`quoquotationmaster`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`quoquotationmaster`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`quoquotationmaster`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`quoquotationmaster`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`quoquotationmaster`.`bFailure` AS `bFailure`,`xlyweberp_saas_ai`.`quoquotationmaster`.`tFailureDate` AS `tFailureDate`,`xlyweberp_saas_ai`.`quoquotationmaster`.`bSubmit` AS `bSubmit`,`xlyweberp_saas_ai`.`quoquotationmaster`.`tSubmit` AS `tSubmit`,`xlyweberp_saas_ai`.`quoquotationmaster`.`tStatus` AS `tStatus`,ifnull(`xlyweberp_saas_ai`.`quoquotationmaster`.`sReason`,'') AS `sReason`,ifnull(`xlyweberp_saas_ai`.`quoquotationmaster`.`sType`,'') AS `sType`,`xlyweberp_saas_ai`.`quoquotationslave`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`quoquotationslave`.`iOrder` AS `iSlaveOrder`,`xlyweberp_saas_ai`.`quoquotationslave`.`sCustomerId` AS `sCustomerId`,`xlyweberp_saas_ai`.`quoquotationslave`.`sContacts` AS `sContacts`,`xlyweberp_saas_ai`.`quoquotationslave`.`sPhone` AS `sPhone`,`xlyweberp_saas_ai`.`quoquotationslave`.`tDeliverDate` AS `tDeliverDate`,`xlyweberp_saas_ai`.`quoquotationslave`.`sSalesManId` AS `sSalesManId`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProductTechnologyVer` AS `sProductTechnologyVer`,`xlyweberp_saas_ai`.`quoquotationslave`.`sConsignee` AS `sConsignee`,`xlyweberp_saas_ai`.`quoquotationslave`.`sConsigneeMobile` AS `sConsigneeMobile`,`xlyweberp_saas_ai`.`quoquotationslave`.`sDeliverId` AS `sDeliverId`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProvince` AS `sProvince`,`xlyweberp_saas_ai`.`quoquotationslave`.`sCity` AS `sCity`,`xlyweberp_saas_ai`.`quoquotationslave`.`sArea` AS `sArea`,`xlyweberp_saas_ai`.`quoquotationslave`.`sDeliverTo` AS `sDeliverTo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sManualNo` AS `sManualNo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sCurrency` AS `sCurrency`,`xlyweberp_saas_ai`.`quoquotationslave`.`dCurrencyRate` AS `dCurrencyRate`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProductId` AS `sProductId`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductQty` AS `dProductQty`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductPrice` AS `dProductPrice`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductMoney` AS `dProductMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProceeMoney` AS `dProceeMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dMaterialsMoney` AS `dMaterialsMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dMaterialsRate` AS `dMaterialsRate`,`xlyweberp_saas_ai`.`quoquotationslave`.`dCostMoney` AS `dCostMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dCostPrice` AS `dCostPrice`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProductInfo` AS `sProductInfo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sMaterialsMemo` AS `sMaterialsMemo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProcessMemo` AS `sProcessMemo`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductPQty` AS `dProductPQty`,`xlyweberp_saas_ai`.`quoquotationslave`.`sQualityRequireMemo` AS `sQualityRequireMemo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sPackRequireMemo` AS `sPackRequireMemo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sSlaveMemo` AS `sSlaveMemo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sTaxId` AS `sTaxId`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductNoTaxPrice` AS `dProductNoTaxPrice`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductNoTaxMoney` AS `dProductNoTaxMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductTaxMoney` AS `dProductTaxMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductTaxForeignMoney` AS `dProductTaxForeignMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductForeignMoney` AS `dProductForeignMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProductTechnologyId` AS `sProductTechnologyId`,if((`xlyweberp_saas_ai`.`quoquotationslave`.`sSrcNo` = ''),`xlyweberp_saas_ai`.`quoquotationslave`.`sOrderNo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sSrcNo`) AS `sOrderNo`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sId` AS `sId`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProfitMoney` AS `dProfitMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dNProductMoney` AS `dNProductMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dNProductPrice` AS `dNProductPrice`,`xlyweberp_saas_ai`.`quoquotationslave`.`dFreightMoney` AS `dFreightMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dKnifeMouldMoney` AS `dKnifeMouldMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dPlateMoney` AS `dPlateMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProofingMoney` AS `dProofingMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProductForeignPrice` AS `dProductForeignPrice`,`xlyweberp_saas_ai`.`quoquotationslave`.`dProfitRate` AS `dProfitRate`,`xlyweberp_saas_ai`.`quoquotationslave`.`dPassRate` AS `dPassRate`,`xlyweberp_saas_ai`.`quoquotationslave`.`dPackMoney` AS `dSlavePackMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dTransportMoney` AS `dSlaveTransportMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`dBusinessMoney` AS `dBusinessMoney`,`xlyweberp_saas_ai`.`quoquotationslave`.`sQuotationType` AS `sQuotationType`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sUpdatePerson` AS `sUpdatePerson`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProductName` AS `sProductName`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProductStyle` AS `sProductStyle`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sSubmitPerson` AS `sSubmitPerson`,`xlyweberp_saas_ai`.`quoquotationmaster`.`bBillComplete` AS `bBillComplete`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProductNo` AS `sProductNo`,`xlyweberp_saas_ai`.`quoquotationslave`.`sProductUnit` AS `sProductUnit`,`xlyweberp_saas_ai`.`quoquotationslave`.`sCustomerName` AS `sCustomerName`,`xlyweberp_saas_ai`.`quoquotationmaster`.`sCustomerNo` AS `sCustomerNo`,`xlyweberp_saas_ai`.`quoquotationmaster`.`tCreateDate` AS `tUpdateDate`,`xlyweberp_saas_ai`.`sissalesman`.`sName` AS `sSalesManName`,`xlyweberp_saas_ai`.`sisdepart`.`sName` AS `sDepartName` from (((`xlyweberp_saas_ai`.`quoquotationslave` join `xlyweberp_saas_ai`.`quoquotationmaster` on((`xlyweberp_saas_ai`.`quoquotationmaster`.`sId` = `xlyweberp_saas_ai`.`quoquotationslave`.`sParentId`))) left join `xlyweberp_saas_ai`.`sissalesman` on((`xlyweberp_saas_ai`.`sissalesman`.`sId` = `xlyweberp_saas_ai`.`quoquotationslave`.`sSalesManId`))) left join `xlyweberp_saas_ai`.`sisdepart` on((`xlyweberp_saas_ai`.`sisdepart`.`sId` = `xlyweberp_saas_ai`.`sissalesman`.`sDepartId`))) where (`xlyweberp_saas_ai`.`quoquotationmaster`.`bCheck` = true)
```

## 说明

_暂无人工说明。_
