promotionForm.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. <template>
  2. <div v-loading="pageLoad">
  3. <el-dialog
  4. element-loading-text="loading..."
  5. :title="title"
  6. top="0"
  7. width="100%"
  8. lock-scroll
  9. custom-class="promotionform"
  10. :close-on-click-modal="false"
  11. :visible.sync="promotionFormVisible"
  12. @open="handleOpenDialog"
  13. @close="resetData"
  14. >
  15. <div class="dialog-body" v-loading="pageLoad">
  16. <el-form
  17. ref="promotionBuyXgetYDertailFormRef"
  18. :model="promotion"
  19. label-width="210px"
  20. size="medium"
  21. >
  22. <!-- 活动基本信息 -->
  23. <div class="box base">
  24. <div class="title">
  25. <span>{{ $t("label.setBasicEventInformationDetail") }}</span>
  26. </div>
  27. <div class="info">
  28. <!--促销名称-->
  29. <el-form-item
  30. :label="$t('label.promotionName') + ':'"
  31. prop="promotionName"
  32. >
  33. <el-input
  34. v-model.trim="promotion.title"
  35. :disabled="edit"
  36. ></el-input>
  37. </el-form-item>
  38. <div class="item row">
  39. <!--促销开始时间-->
  40. <el-form-item
  41. :label="$t('label.promotionStartTime') + ':'"
  42. prop="startTime"
  43. >
  44. <el-date-picker
  45. :disabled="edit"
  46. type="datetime"
  47. placeholder="选择日期"
  48. value-format="yyyy-MM-dd HH:mm:ss"
  49. v-model="promotion.startTime"
  50. ></el-date-picker>
  51. </el-form-item>
  52. <!--促销失效时间-->
  53. <el-form-item
  54. :label="$t('label.promotionEndTime') + ':'"
  55. prop="endTime"
  56. >
  57. <el-date-picker
  58. :disabled="edit"
  59. type="datetime"
  60. placeholder="选择日期"
  61. value-format="yyyy-MM-dd HH:mm:ss"
  62. v-model="promotion.endTime"
  63. ></el-date-picker>
  64. </el-form-item>
  65. </div>
  66. <!--应用方式-->
  67. <el-form-item
  68. :label="$t('label.applicationMethod') + ':'"
  69. prop="discountMethod"
  70. >
  71. <el-radio-group
  72. v-model="promotion.discountMethod"
  73. :disabled="edit"
  74. >
  75. <div class="item row">
  76. <el-radio :label="1">{{ $t("label.discount") }}</el-radio>
  77. <el-input
  78. v-show="promotion.discountMethod === 1"
  79. class="codeinput"
  80. v-model.trim="promotion.discountCode"
  81. :disabled="edit"
  82. />
  83. <el-radio :label="2">{{
  84. $t("label.autoDiscount")
  85. }}</el-radio>
  86. </div>
  87. </el-radio-group>
  88. </el-form-item>
  89. </div>
  90. </div>
  91. <!-- 折扣设置 -->
  92. <div class="box discount">
  93. <!-- 客户购买条件 -->
  94. <div class="title">
  95. <span>{{ $t("label.customerPurchaseConditions") }}</span>
  96. </div>
  97. <div class="info">
  98. <!--最低购买要求-->
  99. <el-form-item
  100. :label="$t('label.minimumPurchaseRequirement') + ':'"
  101. prop="minimum"
  102. >
  103. <el-radio-group
  104. v-model="promotion.purchaseRequire"
  105. :disabled="edit"
  106. >
  107. <div class="item row">
  108. <el-radio :label="3">{{ $t("label.numberStr") }}</el-radio>
  109. <el-radio :label="2">{{ $t("label.money") }}</el-radio>
  110. <el-radio :label="1">{{ $t("label.free") }}</el-radio>
  111. </div>
  112. </el-radio-group>
  113. </el-form-item>
  114. <!--折扣内容 数量&金额-->
  115. <el-form-item :label="$t('label.discountValue') + ':'">
  116. <div class="item">
  117. <div class="item-box">
  118. <span class="label">{{ discountContentValue }}</span>
  119. <el-input
  120. class="mininput"
  121. v-model.trim="promotion.requireValue"
  122. :disabled="edit"
  123. />
  124. </div>
  125. <div class="item-box">
  126. <span class="label">{{ $t("label.buyType") }}</span>
  127. <el-input
  128. class="mininput"
  129. v-model.trim="promotion.purchaseType"
  130. :disabled="edit"
  131. />
  132. </div>
  133. </div>
  134. <div class="item product">
  135. <div class="item row">
  136. <span class="label">{{ $t("label.product") }}</span>
  137. <el-input
  138. class="mininput"
  139. v-model.trim="promotion.productBuyType"
  140. :disabled="edit"
  141. />
  142. <div class="value" v-for="(data, j) in tagLists" :key="j">
  143. <p>{{ tagValue(data) }}</p>
  144. <a
  145. href="javascript:void();"
  146. @click="handleProductDialog(data)"
  147. >{{ $t("label.viewProductDetaiL") }}</a
  148. >
  149. </div>
  150. </div>
  151. </div>
  152. </el-form-item>
  153. </div>
  154. <!-- 客户获得条件 -->
  155. <div class="title">
  156. <span>{{ $t("label.customerGetConditions") }}</span>
  157. </div>
  158. <div class="info">
  159. <!--折扣内容 数量&金额-->
  160. <el-form-item :label="$t('label.discountValue') + ':'">
  161. <div class="item">
  162. <span class="label">{{ $t("label.numberStr") }}</span>
  163. <el-input
  164. class="mininput"
  165. v-model.trim="promotion.customerGetNumber"
  166. :disabled="edit"
  167. />
  168. </div>
  169. <div class="item product">
  170. <div class="item-box">
  171. <span class="label">{{ $t("label.product") }}</span>
  172. <el-input
  173. class="mininput"
  174. v-model.trim="promotion.productType"
  175. :disabled="edit"
  176. />
  177. <el-input
  178. class="productinput"
  179. :placeholder="$t('label.productPlaceholder')"
  180. v-model.trim="productSku"
  181. />
  182. <el-button
  183. @click="handleProductSearch"
  184. v-waves
  185. type="primary"
  186. >{{ $t("view.search") }}
  187. </el-button>
  188. <div class="skucon">
  189. <span
  190. v-for="(item, i) in getTagList"
  191. :class="productKeys.includes(item) ? 'active' : ''"
  192. :key="i"
  193. >{{ item }},</span
  194. >
  195. </div>
  196. </div>
  197. </div>
  198. </el-form-item>
  199. <!--折扣额-->
  200. <el-form-item
  201. :label="$t('label.discountPromotion') + ':'"
  202. prop="discount"
  203. class="discount"
  204. >
  205. <el-radio-group v-model="promotion.valueType" :disabled="edit">
  206. <div class="item row">
  207. <el-radio :label="1">{{ $t("label.percentage") }}</el-radio>
  208. <el-input
  209. v-if="promotion.valueType === 1"
  210. class="mininput"
  211. v-model.trim="promotion.discountNumber"
  212. :disabled="edit"
  213. >
  214. <span class="el-input__icon" slot="suffix">%</span>
  215. </el-input>
  216. </div>
  217. <div class="item row">
  218. <el-radio :label="2">{{
  219. $t("label.discountPerItem")
  220. }}</el-radio>
  221. <el-input
  222. v-if="promotion.valueType === 2"
  223. class="mininput"
  224. v-model.trim="promotion.numericValue"
  225. :disabled="edit"
  226. />
  227. </div>
  228. <el-radio :label="3">{{ $t("label.free") }}</el-radio>
  229. </el-radio-group>
  230. </el-form-item>
  231. </div>
  232. <!-- 每个订单使用次数 自动折扣才有-->
  233. <div class="title" v-if="promotion.discountMethod === 2">
  234. <span>{{ $t("label.numberOfTimesUsedPerOrder") }}</span>
  235. </div>
  236. <div class="info">
  237. <el-form-item>
  238. <div class="item row">
  239. <el-checkbox v-model="usageLimitchecked" :disabled="edit">{{
  240. $t("label.maxNumberOfTimesUsedPerOrder")
  241. }}</el-checkbox>
  242. <el-input
  243. class="mininput checkboxinput"
  244. v-model.trim="promotion.customerGetOrderUsageLimit"
  245. :disabled="edit"
  246. />
  247. </div>
  248. </el-form-item>
  249. </div>
  250. </div>
  251. <!-- 客户资格 折扣码才有-->
  252. <div class="box" v-if="promotion.discountMethod === 1">
  253. <div class="title">
  254. <span>{{ $t("label.customerQualification") }}</span>
  255. </div>
  256. <div class="info customerQualification">
  257. <el-form-item prop="customerQualification" required>
  258. <el-radio-group
  259. class="customerqualification"
  260. v-model="promotion.targetCustomerType"
  261. :disabled="edit"
  262. >
  263. <el-radio :label="1">{{
  264. $t("label.customerQualificationList")[0].label
  265. }}</el-radio>
  266. <div class="item row">
  267. <el-radio :label="2">{{
  268. $t("label.customerQualificationList")[1].label
  269. }}</el-radio>
  270. <el-input
  271. v-if="promotion.targetCustomerType === 2"
  272. class="mininput"
  273. v-model.trim="promotion.targetCustomer"
  274. :disabled="edit"
  275. />
  276. </div>
  277. <div class="item row">
  278. <el-radio :label="3">{{
  279. $t("label.customerQualificationList")[2].label
  280. }}</el-radio>
  281. <el-input
  282. v-if="promotion.targetCustomerType === 3"
  283. class="mininput"
  284. v-model.trim="promotion.targetCustomer"
  285. :disabled="edit"
  286. />
  287. </div>
  288. <!-- <el-radio
  289. v-for="(item, i) in $t('label.customerQualificationList')"
  290. :key="i"
  291. :label="item.value"
  292. >{{ item.label }}</el-radio
  293. > -->
  294. </el-radio-group>
  295. </el-form-item>
  296. </div>
  297. </div>
  298. <!-- 最大折扣使用次数 折扣码才有-->
  299. <div class="box" v-if="promotion.discountMethod === 1">
  300. <div class="title">
  301. <span>{{ $t("label.maximumNumberOfDiscounts") }}</span>
  302. </div>
  303. <div class="info">
  304. <el-form-item>
  305. <!-- <el-checkbox-group v-model="promotion.startTime"> -->
  306. <div class="item row">
  307. <el-checkbox
  308. :checked="codeUsageLimitchecked"
  309. :disabled="edit"
  310. >{{ $t("label.limitDiscountCount") }}</el-checkbox
  311. >
  312. <el-input
  313. class="mininput checkboxinput"
  314. v-model.trim="promotion.codeUsageLimit"
  315. :disabled="edit"
  316. />
  317. </div>
  318. <div class="item row">
  319. <el-checkbox
  320. :checked="promotion.codeCustomerUsageType === 1"
  321. :disabled="edit"
  322. >{{ $t("label.customerCount") }}</el-checkbox
  323. >
  324. </div>
  325. <!-- </el-checkbox-group> -->
  326. </el-form-item>
  327. </div>
  328. </div>
  329. <!-- 组合 自动折扣才有 -->
  330. <div class="box" v-if="promotion.discountMethod === 2">
  331. <div class="title">
  332. <span>{{ $t("label.combination") }}</span>
  333. </div>
  334. <div class="info">
  335. <el-form-item :label="$t('label.combinationLable') + ':'">
  336. <el-checkbox-group v-model="promotion.combination">
  337. <el-checkbox
  338. v-for="(item, i) in $t('label.combinationList')"
  339. :key="i"
  340. :label="item.value"
  341. :disabled="edit"
  342. >{{ item.label }}
  343. </el-checkbox>
  344. </el-checkbox-group>
  345. </el-form-item>
  346. </div>
  347. </div>
  348. </el-form>
  349. </div>
  350. <template slot="footer">
  351. <el-button
  352. @click="
  353. resetData();
  354. promotionFormVisible = false;
  355. "
  356. >{{ $t("view.cancel") }}
  357. </el-button>
  358. <!-- 未审核时/审核驳回 状态可进行提交 -->
  359. <!-- <el-button type="primary" @click="handleSaveOrUpdate" :disabled="edit"
  360. >{{ $t("view.confirm") }}
  361. </el-button> -->
  362. </template>
  363. </el-dialog>
  364. <product-collection ref="productCollectionRef" />
  365. </div>
  366. </template>
  367. <script>
  368. import waves from "@/directive/waves"; // 水波纹指令
  369. import { fetchDetailByIdAndVersion } from "@/api/oms/order/multiBuyDiscount";
  370. import i18n from "@/lang";
  371. import { isEmpty } from "@/utils/toolUtil";
  372. import productCollection from "@/views/oms/promotion/buyXGetYDiscount/components/productCollectionDetail";
  373. export default {
  374. inject: ["reload"],
  375. directives: {
  376. waves
  377. },
  378. name: "buyXgetYbuyDiscountForm",
  379. components: {
  380. productCollection
  381. },
  382. computed: {
  383. discountContentValue() {
  384. return this.promotion.purchaseRequire === 2
  385. ? i18n.t("label.money")
  386. : i18n.t("label.numberStr");
  387. }
  388. },
  389. data() {
  390. return {
  391. promotionFormVisible: false,
  392. title: "",
  393. productSku: "",
  394. productKeys: [],
  395. usageLimitchecked: false,
  396. codeUsageLimitchecked: false,
  397. tagLists: [],
  398. getTagList: [],
  399. promotion: {
  400. // 配置基本信息
  401. id: "",
  402. title: "",
  403. startTime: "",
  404. endTime: "",
  405. discountMethod: null,
  406. discountNumber: null,
  407. purchaseRequire: null,
  408. purchaseType: "",
  409. productType: "",
  410. productBuyType: "",
  411. discount: "",
  412. combination: []
  413. },
  414. edit: true,
  415. noDataText: "加载中",
  416. pageLoad: false,
  417. isEmpty
  418. };
  419. },
  420. methods: {
  421. tagValue(data) {
  422. return (
  423. data.title +
  424. i18n.t("label.productCollection") +
  425. i18n.t("label.all") +
  426. data.spus.length +
  427. i18n.t("label.itemProduct")
  428. );
  429. },
  430. async showDialog(id, edit, version) {
  431. this.edit = edit;
  432. if (id) {
  433. // 修改配置
  434. this.promotion.id = id;
  435. this.promotion.version = version;
  436. await this.getPromotionInfo();
  437. this.title = this.edit
  438. ? i18n.t("label.mutiPromotionDetailTitle")
  439. : i18n.t("label.mutiPromotionUpdateTitle");
  440. } else {
  441. this.title = i18n.t("label.mutiPromotionCreateTitle");
  442. }
  443. let str = this.promotion.id ? "Detail" : "";
  444. this.discountSettingTitle = i18n.t("label.discountSetting" + str);
  445. this.productRangeTitle = i18n.t("label.setProductRange" + str);
  446. this.promotionFormVisible = true;
  447. },
  448. // 款号搜索
  449. handleProductSearch() {
  450. this.productKeys = this.productSku.split(",");
  451. },
  452. handleProductDialog(data) {
  453. this.$refs.productCollectionRef.showDialog(data);
  454. },
  455. resetData() {
  456. this.promotion = {
  457. id: "",
  458. title: "",
  459. startTime: "",
  460. endTime: "",
  461. discountMethod: null,
  462. discountNumber: null,
  463. purchaseRequire: null,
  464. purchaseType: "",
  465. productType: "",
  466. productBuyType: "",
  467. discount: "",
  468. combination: []
  469. };
  470. },
  471. handleOpenDialog() {
  472. this.resetData();
  473. if (this.$refs.promotionBuyXgetYDertailFormRef) {
  474. this.$refs.promotionBuyXgetYDertailFormRef.clearValidate();
  475. }
  476. },
  477. getPromotionInfo() {
  478. this.pageLoad = true;
  479. let { id, version } = this.promotion;
  480. fetchDetailByIdAndVersion({ id, version })
  481. .then(res => {
  482. // 促销配置信息
  483. const { priceRule, productTags, giveProductCollects } = res.data;
  484. this.promotion = { ...priceRule, productTags };
  485. if (priceRule.valueType === 1) {
  486. let number = priceRule.numericValue * 100;
  487. // this.promotion.discountNumber = number;
  488. this.$set(this.promotion, "discountNumber", number);
  489. }
  490. if (priceRule.purchaseRequire === 3) {
  491. // this.promotion.quantity = priceRule.requireValue;
  492. this.$set(this.promotion, "quantity", priceRule.requireValue);
  493. } else if (priceRule.purchaseRequire === 2) {
  494. // this.promotion.miniAmount = priceRule.requireValue;
  495. this.$set(this.promotion, "miniAmount", priceRule.requireValue);
  496. }
  497. // 购买类型
  498. const targetType = i18n
  499. .t("label.promotionBuyTyper")
  500. .find(item => item.value === priceRule.targetType);
  501. if (targetType && targetType.label) {
  502. this.$set(this.promotion, "purchaseType", targetType.label);
  503. }
  504. // 顾客购买商品类型
  505. const productBuyType = i18n
  506. .t("label.promotionCustomerGetType")
  507. .find(item => item.value === priceRule.targetSelectionType);
  508. if (productBuyType && productBuyType.label) {
  509. this.$set(this.promotion, "productBuyType", productBuyType.label);
  510. }
  511. // 顾客得到商品类型
  512. const productType = i18n
  513. .t("label.promotionCustomerGetType")
  514. .find(item => item.value === priceRule.customerGetType);
  515. if (productType && productType.label) {
  516. this.$set(this.promotion, "productType", productType.label);
  517. }
  518. // 组合
  519. const {
  520. combineWithOrder,
  521. combineWithProduct,
  522. combineWithShipping,
  523. targetShopifyProductSpu,
  524. targetShopifySku,
  525. targetSelectionType,
  526. customerGetType,
  527. getTargetShopifyProductSpu,
  528. getTargetShopifySku,
  529. customerGetOrderUsageLimit,
  530. codeUsageLimit
  531. } = priceRule;
  532. let combinationArr = [];
  533. if (combineWithOrder) {
  534. combinationArr.push(i18n.t("label.combinationList")[1].value);
  535. }
  536. if (combineWithProduct) {
  537. combinationArr.push(i18n.t("label.combinationList")[0].value);
  538. }
  539. if (combineWithShipping) {
  540. combinationArr.push(i18n.t("label.combinationList")[2].value);
  541. }
  542. this.usageLimitchecked = !!customerGetOrderUsageLimit;
  543. this.codeUsageLimitchecked = !!codeUsageLimit;
  544. this.$set(this.promotion, "combination", combinationArr);
  545. // 折扣适用 1特定系列 其他2,3 特定商品
  546. let tagLists = [];
  547. if (targetSelectionType === 1) {
  548. tagLists = productTags.map(item => {
  549. let data = [];
  550. if (item.spu) {
  551. data = item.spu.split(",");
  552. }
  553. item.spus = data;
  554. return item;
  555. });
  556. } else {
  557. // 特地商品
  558. if (targetShopifySku) {
  559. const spusSKU = targetShopifySku.split(",");
  560. tagLists.push({ title: "", spus: spusSKU });
  561. }
  562. if (targetShopifyProductSpu) {
  563. const spusId = targetShopifyProductSpu.split(",");
  564. tagLists.push({ title: "", spus: spusId });
  565. }
  566. }
  567. this.tagLists = tagLists;
  568. // 折扣得到条件 1 特定系列 2 特定商品
  569. let getTagList = [];
  570. if (customerGetType === 1) {
  571. giveProductCollects.forEach(item => {
  572. if (item.spu) {
  573. const arr = item.spu.split(",");
  574. getTagList.push.apply(getTagList, arr);
  575. }
  576. });
  577. } else {
  578. // 特地商品
  579. if (getTargetShopifySku) {
  580. const skus = getTargetShopifySku.split(",");
  581. getTagList.push.apply(getTagList, skus);
  582. }
  583. if (getTargetShopifyProductSpu) {
  584. const spus = getTargetShopifyProductSpu.split(",");
  585. getTagList.push.apply(getTagList, spus);
  586. }
  587. }
  588. this.getTagList = getTagList;
  589. })
  590. .finally(() => {
  591. this.pageLoad = false;
  592. });
  593. }
  594. }
  595. };
  596. </script>
  597. <style lang="scss">
  598. .promotionform {
  599. width: 100%;
  600. height: 100%;
  601. position: fixed;
  602. top: 0px;
  603. left: 0px;
  604. .el-dialog__header {
  605. padding: 36px 21px 0px 34px;
  606. .el-dialog__title {
  607. font-size: 18px;
  608. font-weight: bold;
  609. color: #ae8877;
  610. line-height: 22px;
  611. }
  612. }
  613. .el-form-item__label {
  614. font-weight: 400;
  615. font-size: 12px;
  616. }
  617. .el-dialog__body {
  618. padding: 30px 10px 30px 34px;
  619. }
  620. .el-dialog__headerbtn {
  621. top: 14px;
  622. right: 14px;
  623. font-weight: bold;
  624. .el-icon-close {
  625. font-weight: bold;
  626. }
  627. }
  628. .el-input {
  629. width: 220px !important;
  630. }
  631. }
  632. </style>
  633. <style scoped rel="stylesheet/scss" lang="scss">
  634. .dialog-body {
  635. height: 80vh;
  636. overflow: auto;
  637. .box {
  638. border-bottom: 1px solid #d8d8d8;
  639. padding-bottom: 20px;
  640. margin-bottom: 42px;
  641. &.base {
  642. .info {
  643. width: 25%;
  644. }
  645. }
  646. &.discount {
  647. .info {
  648. margin-bottom: 60px;
  649. }
  650. }
  651. .title {
  652. color: #606266;
  653. font-size: 16px;
  654. line-height: 16px;
  655. position: relative;
  656. font-weight: bold;
  657. padding-left: 6px;
  658. margin-bottom: 23px;
  659. &:before {
  660. position: absolute;
  661. left: 0px;
  662. top: 0px;
  663. content: "";
  664. display: inline-block;
  665. width: 3px;
  666. height: 13px;
  667. background: #ae8877;
  668. border-radius: 0px 0px 0px 0px;
  669. }
  670. }
  671. }
  672. // /deep/.el-form-item__label-wrap {
  673. // margin-left: 0px !important;
  674. // .el-form-item__label {
  675. // text-align: right;
  676. // }
  677. // }
  678. .skucon {
  679. width: 90%;
  680. height: 139px;
  681. overflow-y: auto;
  682. border-radius: 3px 3px 3px 3px;
  683. border: 1px solid #dcdfe6;
  684. background: #f5f7fa;
  685. margin-top: 12px;
  686. padding: 10px;
  687. font-size: 12px;
  688. line-height: 16px;
  689. .active {
  690. color: #fd5959;
  691. }
  692. }
  693. .productbox {
  694. border-bottom: none;
  695. }
  696. .info {
  697. .item {
  698. display: flex;
  699. flex-direction: row;
  700. flex-wrap: wrap;
  701. align-items: center;
  702. &.row {
  703. flex-wrap: nowrap;
  704. }
  705. .el-form-item {
  706. margin-right: 42px !important;
  707. }
  708. .codeinput {
  709. margin-right: 36px;
  710. }
  711. .mininput {
  712. margin-right: 30px;
  713. width: 180px !important;
  714. }
  715. .checkboxinput {
  716. margin-left: 20px;
  717. }
  718. .productinput {
  719. width: 340px !important;
  720. }
  721. .label {
  722. margin-right: 12px;
  723. }
  724. &.product {
  725. margin-top: 26px;
  726. .label {
  727. margin-bottom: 10px;
  728. }
  729. .mininput {
  730. margin-right: 20px;
  731. margin-bottom: 10px;
  732. }
  733. .row {
  734. flex-wrap: wrap;
  735. }
  736. .collectioninput {
  737. margin-right: 20px;
  738. min-width: 220px !important;
  739. width: auto !important;
  740. /deep/.el-input-group__append {
  741. color: #ae8877;
  742. border-left: none;
  743. font-size: 12px;
  744. padding: 0px 5px;
  745. background: #f5f7fa;
  746. span {
  747. cursor: pointer;
  748. }
  749. }
  750. /deep/.el-input__inner {
  751. border-right: none;
  752. }
  753. }
  754. .value {
  755. margin-bottom: 10px;
  756. }
  757. }
  758. }
  759. .discount {
  760. .item {
  761. margin-bottom: 20px;
  762. /deep/.el-radio {
  763. min-width: 135px;
  764. }
  765. }
  766. }
  767. .customerqualification {
  768. .el-radio {
  769. display: block;
  770. margin-bottom: 30px;
  771. }
  772. }
  773. }
  774. .value {
  775. position: relative;
  776. min-width: 300px;
  777. height: 36px;
  778. padding: 0px 6px;
  779. font-size: 12px;
  780. margin-right: 13px;
  781. color: #c0c4cc;
  782. background: #f5f7fa;
  783. border-radius: 3px;
  784. border: 1px solid #dcdfe6;
  785. p {
  786. line-height: 12px;
  787. padding-right: 130px;
  788. overflow: hidden;
  789. text-overflow: ellipsis;
  790. white-space: nowrap;
  791. }
  792. a {
  793. position: absolute;
  794. right: 10px;
  795. top: 0%;
  796. color: #ae8877;
  797. }
  798. }
  799. .customerQualification {
  800. .mininput {
  801. margin-bottom: 30px;
  802. }
  803. }
  804. }
  805. </style>