columns.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203
  1. const columns = [
  2. // {
  3. // type: "selection",
  4. // fixed: "left",
  5. // _noset_: true,
  6. // },
  7. {
  8. prop: 'filingCode',
  9. label: '报备单编号',
  10. width: '155px'
  11. },
  12. {
  13. prop: 'status',
  14. label: '状态',
  15. width: '125px',
  16. _slot_: 'status'
  17. },
  18. {
  19. prop: 'wsm_has_account',
  20. label: '供应商端',
  21. width: '100px',
  22. _slot_: 'wsm_has_account'
  23. },
  24. {
  25. prop: 'catinfo',
  26. label: '商品分类',
  27. width: '158px'
  28. },
  29. {
  30. prop: 'good_name',
  31. label: '商品名称',
  32. 'min-width': '145px'
  33. },
  34. {
  35. prop: 'num',
  36. label: '总数量',
  37. width: '110px'
  38. },
  39. {
  40. prop: 'transfer_num',
  41. label: '已转单数量',
  42. width: '110px'
  43. },
  44. {
  45. prop: 'wait_num',
  46. label: '未转单数量',
  47. width: '110px'
  48. },
  49. {
  50. prop: 'cgd_charge',
  51. label: '采购价',
  52. width: '110px'
  53. },
  54. {
  55. prop: 'price',
  56. label: '销售价',
  57. width: '120px'
  58. },
  59. {
  60. prop: 'expect_service',
  61. label: '期望服务费',
  62. width: '110px'
  63. },
  64. {
  65. prop: 'companyName',
  66. label: '企业客户',
  67. width: '165px',
  68. _slot_: 'company'
  69. },
  70. {
  71. prop: 'customerName',
  72. label: '业务公司',
  73. width: '225px',
  74. _slot_: 'customer'
  75. },
  76. {
  77. prop: 'supplierName',
  78. label: '供应商公司',
  79. width: '225px',
  80. _slot_: 'supplier'
  81. },
  82. // {
  83. // prop: "companyCode",
  84. // label: "企业客户编号",
  85. // width: "145px",
  86. // },
  87. {
  88. prop: 'addtime',
  89. label: '创建时间',
  90. width: '145px'
  91. },
  92. {
  93. prop: '',
  94. label: '操作',
  95. fixed: 'right',
  96. _noset_: true,
  97. width: '110px',
  98. _slot_: 'operation'
  99. }
  100. ]
  101. export const is_determine_price_options = [
  102. { id: '0', label: '否' },
  103. { id: '1', label: '是' }
  104. ]
  105. export const options13 = [
  106. { id: '0', name: '现结' },
  107. { id: '1', name: '月清' },
  108. { id: '2', name: '双月清' }
  109. ]
  110. const statusOptions = [
  111. { value: '0', label: '待审核是否合规' },
  112. { value: '1', label: '审核不合规' },
  113. { value: '2', label: '已合规待转单' },
  114. { value: '3', label: '已部分转单' },
  115. { value: '4', label: '已全部转单' },
  116. { value: '5', label: '已取消转单' }
  117. ]
  118. export const editColumns = [
  119. {
  120. prop: 'filingCode',
  121. label: '报备单编号',
  122. span: 6
  123. },
  124. {
  125. prop: 'status',
  126. label: '状态',
  127. _slot_: 'status',
  128. span: 6
  129. },
  130. {
  131. prop: 'apply_name',
  132. label: '申请人',
  133. span: 6
  134. },
  135. {
  136. prop: 'addtime',
  137. label: '申请时间',
  138. span: 6
  139. },
  140. {
  141. prop: 'supplierName',
  142. label: '供应商名称',
  143. _slot_: 'supplierName',
  144. span: 12
  145. },
  146. {
  147. prop: 'customerName',
  148. label: '业务公司名称',
  149. _slot_: 'customerName',
  150. span: 12
  151. },
  152. {
  153. prop: 'companyName',
  154. label: '客户名称',
  155. _slot_: 'companyName',
  156. span: 12
  157. },
  158. {
  159. prop: 'num',
  160. label: '销售数量',
  161. span: 6
  162. },
  163. {
  164. prop: 'is_determine_price',
  165. label: '是否确认售价',
  166. _slot_: 'is_determine_price',
  167. span: 6
  168. },
  169. {
  170. prop: 'cgd_charge',
  171. label: '采购单价',
  172. span: 6
  173. },
  174. {
  175. prop: 'price',
  176. label: '销售单价',
  177. span: 6
  178. },
  179. {
  180. prop: 'expect_service',
  181. label: '期望服务费',
  182. span: 6
  183. },
  184. {
  185. prop: 'expect_service_proportion',
  186. label: '期望服务费比例',
  187. span: 6,
  188. _slot_: 'expect_service_proportion'
  189. },
  190. {
  191. prop: 'service_charge',
  192. label: '最终服务费',
  193. span: 6
  194. },
  195. {
  196. prop: 'service_proportion',
  197. label: '最终服务费比例',
  198. _slot_: 'service_proportion',
  199. span: 6
  200. },
  201. {
  202. prop: 'transfer_num',
  203. label: '已转单数量',
  204. span: 6
  205. },
  206. {
  207. prop: 'wait_num',
  208. label: '未转单数量',
  209. span: 6
  210. },
  211. {
  212. prop: 'plat_code',
  213. label: '平台商品编号',
  214. span: 6
  215. },
  216. {
  217. prop: 'manager',
  218. label: '业务经理',
  219. span: 6
  220. },
  221. {
  222. prop: 'platform_name',
  223. label: '所属平台',
  224. span: 12
  225. },
  226. {
  227. prop: '',
  228. _slot_: 'annex',
  229. label: '附件',
  230. span: 6
  231. },
  232. {
  233. prop: 'plat_orderCode',
  234. label: '供应商订单号',
  235. span: 6
  236. },
  237. {
  238. prop: 'orderCode',
  239. label: '订单编号',
  240. span: 12
  241. }
  242. ]
  243. // 采返 采购商品字段
  244. export const coveColumns = [
  245. {
  246. prop: 'good_name',
  247. label: '商品名称',
  248. _slot_: 'good_name',
  249. span: 24
  250. },
  251. {
  252. prop: 'cat',
  253. label: '分类',
  254. span: 8
  255. },
  256. {
  257. prop: 'brand_name',
  258. label: '品牌',
  259. span: 8,
  260. _slot_: 'brand_name'
  261. },
  262. {
  263. prop: 'send_way',
  264. label: '发货方式',
  265. _slot_: 'send_way',
  266. span: 8
  267. },
  268. {
  269. prop: 'unit_name',
  270. label: '单位',
  271. span: 6
  272. },
  273. {
  274. prop: 'tax',
  275. label: '税点',
  276. append: '%',
  277. span: 6
  278. },
  279. {
  280. prop: 'pay_way',
  281. label: '付款方式',
  282. _slot_: 'pay_way',
  283. span: 6
  284. },
  285. {
  286. prop: 'weight',
  287. label: '商品总克重',
  288. append: 'g',
  289. span: 6
  290. },
  291. {
  292. prop: 'preservation_day',
  293. label: '有效期',
  294. append: '天',
  295. span: 6
  296. },
  297. {
  298. prop: 'delivery_day',
  299. label: '物流时间',
  300. append: '天',
  301. span: 6
  302. },
  303. {
  304. prop: 'make_day',
  305. label: '生产工期',
  306. append: '天',
  307. span: 6
  308. },
  309. {
  310. prop: 'supply_area',
  311. label: '供货区域',
  312. _slot_: 'supply_area',
  313. span: 6
  314. },
  315. {
  316. prop: 'good_img',
  317. label: '商品图片',
  318. _slot_: 'good_img',
  319. span: 24
  320. },
  321. // {
  322. // prop: "noble",
  323. // _slot_: "noble",
  324. // label: "贵金属信息",
  325. // span: 24,
  326. // },
  327. {
  328. prop: 'cost_desc',
  329. label: '工艺说明',
  330. span: 24
  331. },
  332. {
  333. prop: 'remark',
  334. label: '采返备注',
  335. span: 24
  336. }
  337. ]
  338. export const costArr = [
  339. {
  340. prop: 'cert_fee',
  341. label: '成本证书费',
  342. append: '元',
  343. span: 6
  344. },
  345. {
  346. prop: 'pakge_fee',
  347. label: '成本包装费',
  348. append: '元',
  349. span: 6
  350. },
  351. {
  352. prop: 'cost_fee',
  353. label: '成本工艺费',
  354. append: '元',
  355. span: 6
  356. },
  357. {
  358. prop: 'mark_fee',
  359. label: '成本加标费',
  360. append: '元',
  361. span: 6
  362. },
  363. {
  364. prop: 'demo_fee',
  365. label: '成本打样费',
  366. append: '元',
  367. span: 6
  368. },
  369. {
  370. prop: 'open_fee',
  371. label: '成本开模费',
  372. append: '元',
  373. span: 6
  374. },
  375. {
  376. prop: 'delivery_fee',
  377. label: '成本物流费',
  378. append: '元',
  379. span: 6
  380. },
  381. {
  382. prop: 'nake_fee',
  383. label: '成本裸价',
  384. append: '元',
  385. span: 6
  386. },
  387. {
  388. prop: 'total_fee',
  389. label: '采购成本合计',
  390. append: '元',
  391. span: 24
  392. }
  393. ]
  394. export const bargainingArr = [
  395. {
  396. prop: 'before_rate',
  397. label: '议价前毛利率',
  398. append: '%',
  399. span: 12
  400. },
  401. {
  402. prop: 'after_rate',
  403. label: '议价后毛利率',
  404. append: '%',
  405. span: 12
  406. }
  407. ]
  408. const showColumns = [
  409. {
  410. prop: 'cgdNo',
  411. label: '销售订单编号',
  412. span: 6
  413. },
  414. {
  415. prop: 'status',
  416. label: '销售订单状态',
  417. _slot_: 'status',
  418. span: 6
  419. },
  420. {
  421. prop: 'order_type',
  422. label: '销售订单来源',
  423. _slot_: 'order_type',
  424. span: 6
  425. },
  426. {
  427. prop: 'lasttime',
  428. label: '要求入库时间',
  429. span: 6
  430. },
  431. {
  432. prop: 'supplier_name',
  433. label: '销售方公司',
  434. _slot_: 'supplier_name'
  435. },
  436. {
  437. prop: 'company',
  438. label: '购买方公司',
  439. _slot_: 'company'
  440. },
  441. // {
  442. // prop: "wsm",
  443. // label: "仓库信息",
  444. // _slot_: "wsm",
  445. // },
  446. {
  447. prop: 'total_fee',
  448. label: '采购总成本',
  449. span: 8
  450. },
  451. {
  452. prop: 'good_price',
  453. label: '销售订单价',
  454. span: 8
  455. },
  456. {
  457. prop: 'good_num',
  458. label: '采购总数量',
  459. span: 8
  460. },
  461. {
  462. prop: 'send_num',
  463. label: '已发货数量',
  464. span: 8
  465. },
  466. {
  467. prop: 'wsend_num',
  468. label: '未发货数量',
  469. span: 8
  470. },
  471. {
  472. prop: 'addtime',
  473. label: '创建时间',
  474. span: 8
  475. },
  476. {
  477. prop: 'addr_info',
  478. label: '收货信息',
  479. _slot_: 'addr_info',
  480. span: 24
  481. }
  482. ]
  483. import { isSpecialSymbol, hasSpace } from '@/utils/validate'
  484. // 是否定制
  485. const options1 = [
  486. { id: '0', name: '否' },
  487. { id: '1', name: '是' }
  488. ]
  489. // 专属类型
  490. const options2 = [
  491. { id: '0', name: '非泰康' },
  492. { id: '1', name: '泰康' }
  493. ]
  494. // 销售权限
  495. const options3 = [
  496. { id: '0', name: '无销售权限' },
  497. { id: '1', name: '有销售权限' }
  498. ]
  499. // 是否库存品
  500. const options4 = [
  501. { id: '0', name: '系统商品' },
  502. { id: '1', name: '库存品' }
  503. ]
  504. // 是否启用实时金价
  505. const options5 = [
  506. { id: '0', name: '否' },
  507. { id: '1', name: '是' }
  508. ]
  509. // 供货区域
  510. const options6 = [
  511. { id: '1', name: '全国' },
  512. { id: '2', name: '全国除偏远' }
  513. ]
  514. // 是否启用阶梯
  515. const options7 = [
  516. { id: '0', name: '否' },
  517. { id: '1', name: '是' }
  518. ]
  519. // 有无工差
  520. const options8 = [
  521. { id: '0', name: '无工差' },
  522. { id: '1', name: '有工差' }
  523. ]
  524. // 配置要求
  525. const options9 = ['证书', '包装盒', '绒布袋', '标签', '其他']
  526. // 付款方式
  527. const options10 = [
  528. { id: '0', name: '现结' },
  529. { id: '1', name: '月清' },
  530. { id: '2', name: '双月清' }
  531. ]
  532. // 发货方式
  533. const options11 = [
  534. { id: '0', name: '公司自提' },
  535. { id: '1', name: '供应商包邮' }
  536. ]
  537. const statusList = [
  538. {
  539. code: '0',
  540. name: '新建待审核',
  541. type: ''
  542. },
  543. {
  544. code: '1',
  545. name: '审核通过',
  546. type: 'success'
  547. },
  548. {
  549. code: '2',
  550. name: '基础修改待审核',
  551. type: ''
  552. },
  553. {
  554. code: '3',
  555. name: '成本修改待审核',
  556. type: ''
  557. },
  558. {
  559. code: '4',
  560. name: '基础修改驳回',
  561. type: 'danger'
  562. },
  563. {
  564. code: '5',
  565. name: '成本修改驳回',
  566. type: 'danger'
  567. },
  568. {
  569. code: '6',
  570. name: '新建审核驳回',
  571. type: 'danger'
  572. },
  573. {
  574. code: '7',
  575. name: '复制商品待编辑',
  576. type: 'info'
  577. },
  578. {
  579. code: '8',
  580. name: '竞价商品待编辑',
  581. type: 'info'
  582. }
  583. ]
  584. const listCol = [
  585. { type: 'selection', fixed: 'left', _noset_: true },
  586. {
  587. prop: 'spuCode',
  588. label: '编号',
  589. width: '160px'
  590. },
  591. {
  592. prop: 'status',
  593. label: '状态',
  594. _slot_: 'status',
  595. width: '118px'
  596. },
  597. {
  598. prop: 'good_thumb_img',
  599. label: '图片',
  600. _slot_: 'good_thumb_img',
  601. width: '45px'
  602. },
  603. {
  604. prop: 'good_name',
  605. label: '名称',
  606. 'min-width': '160px'
  607. },
  608. {
  609. prop: 'cat_name',
  610. label: '分类'
  611. },
  612. {
  613. prop: 'brand_name',
  614. label: '品牌'
  615. },
  616. {
  617. prop: 'isonline',
  618. label: '是否上线',
  619. _slot_: 'isonline',
  620. width: '70px'
  621. },
  622. {
  623. prop: 'supplierNo',
  624. label: '供应商编号',
  625. width: '110px'
  626. },
  627. {
  628. prop: 'supplier_name',
  629. label: '供应商名称',
  630. width: '110px'
  631. },
  632. {
  633. prop: 'companyNo',
  634. label: '业务公司编号',
  635. width: '110px'
  636. },
  637. {
  638. prop: 'company',
  639. label: '业务公司名称',
  640. width: '110px'
  641. },
  642. // {
  643. // prop: "company_name",
  644. // label: "创建人部门",
  645. // minWidth: "150px",
  646. // },
  647. {
  648. prop: 'creater',
  649. label: '创建人',
  650. width: '70px'
  651. },
  652. {
  653. prop: 'addtime',
  654. label: '创建时间',
  655. width: '140px'
  656. },
  657. {
  658. prop: '',
  659. label: '操作',
  660. fixed: 'right',
  661. _noset_: true,
  662. width: '200px',
  663. _slot_: 'operation'
  664. }
  665. ]
  666. const validate_num = (rule, value, callback) => {
  667. const { required } = rule
  668. if (required && value === '') {
  669. callback(new Error('不能为空!'))
  670. } else {
  671. callback()
  672. }
  673. }
  674. const validate_num_0 = (rule, value, callback) => {
  675. const { required } = rule
  676. if (required && value === '') {
  677. callback(new Error('不能为空!'))
  678. } else if (
  679. required &&
  680. (value === '0' ||
  681. value === '0.' ||
  682. value === '0.0' ||
  683. value === '0.00' ||
  684. value === '0.000')
  685. ) {
  686. callback(new Error('不能为零!'))
  687. } else {
  688. callback()
  689. }
  690. }
  691. const validate_good_img = (rule, value, callback) => {
  692. const { required } = rule
  693. if (required && value.length == 0) {
  694. callback(new Error('请上传商品主图!'))
  695. } else if (required && (value.length < 3 || value.length > 10)) {
  696. callback(new Error('商品主图应为3~10张!'))
  697. } else {
  698. callback()
  699. }
  700. }
  701. const validate_desc = (rule, value, callback) => {
  702. const { required } = rule
  703. if (required && value.length == 0) {
  704. callback(new Error('不能为空!'))
  705. } else if (isSpecialSymbol(value)) {
  706. callback(new Error('不能使用英文特殊字符!'))
  707. } else {
  708. callback()
  709. }
  710. }
  711. const validate_good_name = (rule, value, callback) => {
  712. const { required } = rule
  713. if (required && value.length == 0) {
  714. callback(new Error('不能为空!'))
  715. } else if (hasSpace(value)) {
  716. callback(new Error('系统不允许输入转义字符,请检查后重新输入!'))
  717. } else if (isSpecialSymbol(value)) {
  718. callback(new Error('不能使用英文特殊字符!'))
  719. } else {
  720. callback()
  721. }
  722. }
  723. const rules = {
  724. // plat_orderCode: [
  725. // {
  726. // required:true,
  727. // message:'请输入供应商订单号',
  728. // trigger:'blur'
  729. // }
  730. // ],
  731. fill_url: [
  732. {
  733. required: true,
  734. message: '请选择附件',
  735. trigger: 'blur'
  736. }
  737. ],
  738. companyName: [
  739. {
  740. required: true,
  741. message: '客户名称不能为空',
  742. trigger: 'blur'
  743. }
  744. ],
  745. customerCode: [
  746. {
  747. required: true,
  748. message: '业务公司不能为空',
  749. trigger: 'blur'
  750. }
  751. ],
  752. is_determine_price: [
  753. {
  754. required: true,
  755. message: '请选择是否确定售价',
  756. trigger: 'blur'
  757. }
  758. ],
  759. expect_service_proportion: [
  760. {
  761. required: true,
  762. message: '期望服务费比例不能为空',
  763. trigger: 'blur'
  764. }
  765. ],
  766. expect_service: [
  767. {
  768. required: true,
  769. message: '预期服务费不能为空',
  770. trigger: 'blur'
  771. }
  772. ],
  773. num: [
  774. {
  775. required: true,
  776. message: '销售数量不能为空',
  777. trigger: 'blur'
  778. }
  779. ],
  780. cat_id: [
  781. {
  782. type: 'array',
  783. required: true,
  784. message: '商品分类',
  785. trigger: 'change'
  786. }
  787. ],
  788. preservation_day: [
  789. {
  790. required: true,
  791. validator: validate_num_0,
  792. trigger: 'blur'
  793. }
  794. ],
  795. supplierNo: [
  796. {
  797. type: 'array',
  798. required: true,
  799. message: '请选择供应商',
  800. trigger: 'change'
  801. }
  802. ],
  803. delivery_day: [
  804. {
  805. required: true,
  806. validator: validate_num,
  807. trigger: 'blur'
  808. }
  809. ],
  810. pname: [
  811. {
  812. required: true,
  813. validator: validate_good_name,
  814. trigger: 'blur'
  815. }
  816. ],
  817. make_day: [
  818. {
  819. required: true,
  820. validator: validate_num,
  821. trigger: 'blur'
  822. }
  823. ],
  824. model: [
  825. {
  826. required: true,
  827. message: '型号不能为空',
  828. trigger: 'blur'
  829. }
  830. ],
  831. color: [
  832. {
  833. required: true,
  834. message: '颜色不能为空',
  835. trigger: 'blur'
  836. }
  837. ],
  838. material: [
  839. {
  840. required: true,
  841. message: '材质不能为空',
  842. trigger: 'blur'
  843. }
  844. ],
  845. brand_id: [
  846. {
  847. type: 'array',
  848. required: true,
  849. message: '商品品牌',
  850. trigger: 'change'
  851. }
  852. ],
  853. unit_id: [
  854. {
  855. type: 'array',
  856. required: true,
  857. message: '请输入商品单位',
  858. trigger: 'blur'
  859. }
  860. ],
  861. weight: [
  862. {
  863. required: true,
  864. validator: validate_num_0,
  865. trigger: 'blur'
  866. }
  867. ],
  868. tax: [
  869. {
  870. required: true,
  871. message: '请选择税率',
  872. trigger: 'change'
  873. }
  874. ],
  875. supply_area: [
  876. {
  877. required: true,
  878. message: '请选择供货区域',
  879. trigger: 'change'
  880. }
  881. ],
  882. origin_place: [
  883. {
  884. type: 'array',
  885. required: true,
  886. message: '请选择产地',
  887. trigger: 'change'
  888. }
  889. ],
  890. delivery_place: [
  891. {
  892. type: 'array',
  893. required: true,
  894. message: '请选择发货地',
  895. trigger: 'change'
  896. }
  897. ],
  898. // 固定成本
  899. cert_fee: [
  900. {
  901. required: true,
  902. validator: validate_num,
  903. trigger: 'blur'
  904. }
  905. ],
  906. pakge_fee: [
  907. {
  908. required: true,
  909. validator: validate_num,
  910. trigger: 'blur'
  911. }
  912. ],
  913. cost_fee: [
  914. {
  915. required: true,
  916. validator: validate_num,
  917. trigger: 'blur'
  918. }
  919. ],
  920. mark_fee: [
  921. {
  922. required: true,
  923. validator: validate_num,
  924. trigger: 'blur'
  925. }
  926. ],
  927. demo_fee: [
  928. {
  929. required: true,
  930. validator: validate_num,
  931. trigger: 'blur'
  932. }
  933. ],
  934. open_fee: [
  935. {
  936. required: true,
  937. validator: validate_num,
  938. trigger: 'blur'
  939. }
  940. ],
  941. delivery_fee: [
  942. {
  943. required: true,
  944. validator: validate_num,
  945. trigger: 'blur'
  946. }
  947. ],
  948. price: [
  949. {
  950. required: true,
  951. validator: validate_num,
  952. trigger: 'blur'
  953. }
  954. ],
  955. cgd_charge: [
  956. {
  957. required: true,
  958. validator: validate_num,
  959. trigger: 'blur'
  960. }
  961. ],
  962. gold_weight: [
  963. {
  964. required: true,
  965. validator: validate_num_0,
  966. trigger: 'blur'
  967. }
  968. ],
  969. noble_metal: [
  970. {
  971. required: true,
  972. message: '请选择贵金属种类',
  973. trigger: 'change'
  974. }
  975. ],
  976. is_gold_price: [
  977. {
  978. required: true,
  979. message: '请选择是否启用实时金价',
  980. trigger: 'change'
  981. }
  982. ],
  983. is_diff: [
  984. {
  985. required: true,
  986. message: '请选择有无工差',
  987. trigger: 'change'
  988. }
  989. ],
  990. config: [
  991. {
  992. required: true,
  993. type: 'array',
  994. message: '请选择配置要求',
  995. trigger: 'change'
  996. }
  997. ],
  998. other_config: [
  999. {
  1000. required: true,
  1001. message: '其他要求不能为空',
  1002. trigger: 'blur'
  1003. }
  1004. ],
  1005. pay_way: [
  1006. {
  1007. required: true,
  1008. message: '请选择付款方式',
  1009. trigger: 'change'
  1010. }
  1011. ],
  1012. send_way: [
  1013. {
  1014. required: true,
  1015. message: '请选择发货方式',
  1016. trigger: 'change'
  1017. }
  1018. ],
  1019. manager: [
  1020. {
  1021. required: true,
  1022. message: '请选择业务经理',
  1023. trigger: 'change'
  1024. }
  1025. ],
  1026. cost_desc: [
  1027. {
  1028. required: false,
  1029. validator: validate_desc,
  1030. trigger: 'blur'
  1031. }
  1032. ],
  1033. remark: [
  1034. {
  1035. required: true,
  1036. validator: validate_desc,
  1037. trigger: 'blur'
  1038. }
  1039. ],
  1040. good_img: [
  1041. {
  1042. required: true,
  1043. message: '商品图片不能为空',
  1044. trigger: 'change'
  1045. }
  1046. ],
  1047. good_name: [
  1048. {
  1049. required: true,
  1050. message: '商品名称不能为空',
  1051. trigger: 'change'
  1052. }
  1053. ]
  1054. }
  1055. const ruleForm = {
  1056. companyName: '',
  1057. supplierNo: [],
  1058. customerCode: [],
  1059. is_determine_price: '0',
  1060. num: '0',
  1061. cgd_charge: '0',
  1062. price: '0',
  1063. expect_service_proportion: '0',
  1064. expect_service: '0',
  1065. good_name: '',
  1066. origin_place: [],
  1067. delivery_place: [],
  1068. cat_id: [],
  1069. brand_id: [],
  1070. unit_id: [],
  1071. weight: '0.000',
  1072. tax: '',
  1073. supply_area: '',
  1074. pay_way: '',
  1075. send_way: '0',
  1076. preservation_day: 1, // 有效期
  1077. delivery_day: '0', // 物流时间
  1078. make_day: '0', // 生产工期
  1079. gold_weight: '0.000',
  1080. noble_metal: '',
  1081. config: [],
  1082. other_config: '',
  1083. remark: '',
  1084. cost_desc: '',
  1085. good_img: [],
  1086. total: 0,
  1087. type: '0'
  1088. }
  1089. const other_ruleForm = {
  1090. // infoNo: "",
  1091. // pname: "",
  1092. // color: "",
  1093. // model: "",
  1094. // material: "",
  1095. cert_fee: '0.00',
  1096. pakge_fee: '0.00',
  1097. cost_fee: '0.00',
  1098. mark_fee: '0.00',
  1099. demo_fee: '0.00',
  1100. open_fee: '0.00',
  1101. delivery_fee: '0.00',
  1102. is_gold_price: '0',
  1103. is_diff: '0'
  1104. }
  1105. const ruleForm1 = {
  1106. plat_orderCode:"",
  1107. customerName: '',
  1108. fill_url: '',
  1109. companyName: '',
  1110. supplierNo: [],
  1111. customerCode: [],
  1112. is_determine_price: '0',
  1113. num: '',
  1114. cgd_charge: '0',
  1115. price: '0',
  1116. expect_service_proportion: '0',
  1117. expect_service: '0',
  1118. good_name: '',
  1119. originPlace: [],
  1120. origin_place: [],
  1121. delivery_place: [],
  1122. deliveryPlace: [],
  1123. cat_id: [],
  1124. brand_id: [],
  1125. unit_id: [],
  1126. weight: '0',
  1127. tax: '',
  1128. supply_area: '',
  1129. pay_way: '',
  1130. send_way: '0',
  1131. preservation_day: '', // 有效期
  1132. delivery_day: '0', // 物流时间
  1133. make_day: '0', // 生产工期
  1134. gold_weight: '0.000',
  1135. noble_metal: '',
  1136. config: [],
  1137. other_config: '',
  1138. remark: '',
  1139. cost_desc: '',
  1140. good_img: [],
  1141. total: 0,
  1142. type: '0'
  1143. }
  1144. export {
  1145. options1,
  1146. options2,
  1147. options3,
  1148. options4,
  1149. options5,
  1150. options6,
  1151. options7,
  1152. options8,
  1153. options9,
  1154. options10,
  1155. options11,
  1156. listCol,
  1157. rules,
  1158. statusList,
  1159. columns,
  1160. statusOptions,
  1161. showColumns,
  1162. ruleForm,
  1163. ruleForm1,
  1164. other_ruleForm
  1165. }