goods.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. $(function () {
  2. $("#jqGrid").jqGrid({
  3. url: '../goods/list',
  4. datatype: "json",
  5. colModel: [
  6. {label: 'ID', name: 'id', index: 'id', hidden: true, key: true},
  7. {label: '商户名称', name: 'merchName', index: 'merchName', width: 100, align: 'center'},
  8. {label: '第三方商户编号', name: 'thirdPartyMerchCode', index: 'thirdPartyMerchCode', width: 60, align: 'center'},
  9. {label: '商品编码', name: 'goodsSn', index: 'goods_Sn', width: 60, align: 'center'},
  10. {label: 'SKU', name: 'sku', index: 'sku', width: 80, align: 'center'},
  11. {label: '产品条码', name: 'prodBarcode', index: 'prod_barcode', width: 60, align: 'center'},
  12. // {label: '商品类型', name: 'categoryName', index: 'category_id', width: 40, align: 'center'},
  13. {label: '名称', name: 'name', index: 'name', width: 160, align: 'center'},
  14. {
  15. label: '货品业务类型', name: 'goodsBizType', index: 'goods_biz_type', width: 70, align: 'center',
  16. formatter: function (value) {
  17. if (value == '00') {
  18. return '保税备货';
  19. } else if (value == '02') {
  20. return '保税展示补货';
  21. } else if (value == '10') {
  22. return '保税展示跨境';
  23. }
  24. return '普通货物';
  25. }
  26. },
  27. // {label: '零售价格', name: 'retailPrice', index: 'retail_price', width: 80, align: 'center'},
  28. // {label: '市场价', name: 'marketPrice', index: 'market_price', width: 80, align: 'center'},
  29. {
  30. label: '上架', name: 'isOnSale', index: 'is_on_sale', width: 40, align: 'center',
  31. formatter: function (value) {
  32. return transIsNot(value);
  33. }
  34. },
  35. {
  36. label: '热销', name: 'isHot', index: 'is_hot', width: 80, formatter: function (value) {
  37. return transIsNot(value);
  38. }
  39. },
  40. /*{
  41. label: '活动', name: 'goodsType', index: 'goodsType', width: 80,
  42. formatter: function (value) {
  43. if (value == 2) {
  44. return '<span class="label label-warning">团购</span>';
  45. } else {
  46. return '<span class="label label-success">无活动</span>';
  47. }
  48. }
  49. },*/
  50. {
  51. label: '录入日期', name: 'addTime', index: 'add_time', width: 80, align: 'center',
  52. formatter: function (value) {
  53. return transDate(value, 'yyyy-MM-dd hh:mm:ss');
  54. }
  55. }
  56. ],
  57. viewrecords: true,
  58. height: 575,
  59. rowNum: 10,
  60. rowList: [10, 30, 50],
  61. rownumbers: true,
  62. rownumWidth: 25,
  63. autowidth: true,
  64. multiselect: true,
  65. pager: "#jqGridPager",
  66. jsonReader: {
  67. root: "page.list",
  68. page: "page.currPage",
  69. total: "page.totalPage",
  70. records: "page.totalCount"
  71. },
  72. prmNames: {
  73. page: "page",
  74. rows: "limit",
  75. order: "order"
  76. },
  77. gridComplete: function () {
  78. $("#jqGrid").closest(".ui-jqgrid-bdiv").css({"overflow-x": "hidden"});
  79. }
  80. });
  81. $('#goodsDesc').editable({
  82. inlineMode: false,
  83. alwaysBlank: true,
  84. height: '500px', //高度
  85. minHeight: '200px',
  86. language: "zh_cn",
  87. spellcheck: false,
  88. plainPaste: true,
  89. enableScript: false,
  90. imageButtons: ["floatImageLeft", "floatImageNone", "floatImageRight", "linkImage", "replaceImage", "removeImage"],
  91. allowedImageTypes: ["jpeg", "jpg", "png", "gif"],
  92. imageUploadURL: '../sys/oss/upload',
  93. imageUploadParams: {id: "edit"},
  94. imagesLoadURL: '../sys/oss/queryAll'
  95. })
  96. });
  97. var ztree;
  98. var setting = {
  99. data: {
  100. simpleData: {
  101. enable: true,
  102. idKey: "id",
  103. pIdKey: "parentId",
  104. rootPId: -1
  105. },
  106. key: {
  107. url: "nourl"
  108. }
  109. }
  110. };
  111. var vm = new Vue({
  112. el: '#rrapp',
  113. data: {
  114. showList: true,
  115. fileList: true,
  116. title: null,
  117. uploadList: [],
  118. imgName: '',
  119. visible: false,
  120. goods: {primaryPicUrl: '', listPicUrl: '',videoUrl:'', categoryId: '', isOnSale: 1, isAppExclusive: 0, isLimited: 0, isHot: 0, categoryName: '', retailPrice: '', marketPrice: '', goodsRate: '', sortOrder: '' },
  121. ruleValidate: {
  122. /*name: [
  123. {required: true, message: '名称不能为空', trigger: 'blur'}
  124. ]*/
  125. },
  126. q: {name: '', goodsSn: '', prodBarcode: '',goodsBizType:'', merchSn: ''},
  127. attributes: [],
  128. attributeEntityList: [{'id': '', 'goodsId': '', 'attributeId': '', 'value': '', 'isDelete': 0}],
  129. productEntityList: [{'id': '', 'goodsId': '', 'goodsSpecificationIds': '', 'goodsSpecificationNameValue': '', 'goodsSn': '', 'goodsNumber': '', 'isDelete': 0, 'goodsDefault': 0}],
  130. /*queryCategories: [],//一级分类
  131. queryCategoriesTwo: [],*/
  132. queryMerch: [],
  133. /*categories: [],//一级分类
  134. categoriesTwo: [],*/
  135. macros: [],//商品单位
  136. // attributeCategories: [],//属性类别
  137. specifications: [],
  138. // brands: [],
  139. // freights: [],
  140. showInput: true,
  141. // categoryId: '',
  142. cusUnitCodeList: [],
  143. cusNationCodeList: [],
  144. merchList: [],
  145. suppliers: [],
  146. thirdMerchantBizList: []
  147. },
  148. methods: {
  149. delSpeRow: function (index) {
  150. //最后一行时禁止删除
  151. if (vm.productEntityList.length == 1) {
  152. return;
  153. }
  154. vm.productEntityList[index].isDelete = 1;
  155. },
  156. addSpeRow: function () {
  157. let goodsId = '';
  158. if (vm.goods) {
  159. goodsId = vm.goods.id;
  160. }
  161. vm.productEntityList.push({'id': '', 'goodsId': '', 'goodsSpecificationIds': '', 'goodsSpecificationNameValue': '', 'goodsSn': '', 'goodsNumber': '', 'isDelete': 0, 'goodsDefault': 0});
  162. },
  163. /*delAttrRow: function (index) {
  164. //最后一行时禁止删除
  165. if (vm.attributeEntityList.length == 1) {
  166. return;
  167. }
  168. vm.attributeEntityList[index].isDelete = 1;
  169. },
  170. addAttrRow: function () {
  171. let goodsId = '';
  172. if (vm.goods) {
  173. goodsId = vm.goods.id;
  174. }
  175. vm.attributeEntityList.push({'id': '', 'goodsId': goodsId, 'attributeId': '', 'value': '', 'isDelete': 0});
  176. },*/
  177. reloadSearch: function () {
  178. vm.q = {
  179. name: '',
  180. goodsSn: '',
  181. prodBarcode: '',
  182. goodsBizType: '',
  183. merchSn: ''
  184. }
  185. },
  186. query: function () {
  187. vm.reload(1);
  188. },
  189. add: function () {
  190. vm.showList = false;
  191. vm.title = "新增";
  192. vm.uploadList = [];
  193. vm.goods = {primaryPicUrl: '', listPicUrl: '',videoUrl:'', categoryId: '', isOnSale: 1, isAppExclusive: 0, isLimited: 0, isHot: 0, categoryName: '', retailPrice: '', marketPrice: '', goodsRate: '', sortOrder: '' };
  194. $('#goodsDesc').editable('setHTML', '');
  195. vm.getCategory();
  196. vm.macros = [];
  197. vm.brands = [];
  198. // vm.freights = [];
  199. vm.cusUnitCodeList = [];
  200. vm.cusNationCodeList = [];
  201. // vm.attributeEntityList = [{'id': '', 'goodsId': '', 'attributeId': '', 'value': '', 'isDelete': 0}];
  202. vm.getMacro();
  203. vm.getCusUnitCodeList();
  204. vm.getCusNationCode();
  205. vm.getMerchList();
  206. vm.showInput = true;
  207. },
  208. update: function (event) {
  209. var id = getSelectedRow();
  210. if (id == null) {
  211. return;
  212. }
  213. vm.showList = false;
  214. vm.title = "修改";
  215. vm.uploadList = [];
  216. vm.getInfo(id);/*
  217. var opt = {};
  218. opt.value = vm.goods.categoryId;
  219. opt.flag = 1;
  220. vm.getAttributes(opt);*/
  221. vm.thirdMerchantBizList = [];
  222. vm.getMacro();
  223. vm.getCusUnitCodeList();
  224. vm.getCusNationCode();
  225. vm.getGoodsGallery(id);
  226. vm.getMerchList();
  227. vm.showInput = true;
  228. if (vm.goods.goodsBizType == '10' || vm.goods.goodsBizType == '02') {
  229. vm.showInput = false;
  230. }
  231. },
  232. getMacro: function () {
  233. // 获取货品业务类型
  234. $.get("../sys/macro/queryMacrosByValue?value=goodsBizType", function (r) {
  235. vm.macros = r.list;
  236. });
  237. },/*
  238. getBrand: function (merchSn) {
  239. $.get("../brand/queryAll?merchSn=" + merchSn, function (r) {
  240. vm.brands = r.list;
  241. });
  242. },*/
  243. getSuppliers: function (merchSn) {
  244. $.get("../supplier/queryAll?merchSn=" + merchSn, function (r) {
  245. vm.suppliers = r.list;
  246. });
  247. },
  248. getCusUnitCodeList: function () {
  249. $.get("../syscusunitcode/queryAll", function (r) {
  250. vm.cusUnitCodeList = r.list;
  251. });
  252. },
  253. getCusNationCode: function () {
  254. $.get("../syscusnationcode/queryAll", function (r) {
  255. vm.cusNationCodeList = r.list;
  256. });
  257. },/*
  258. getFreights: function(merchSn) {
  259. $.get("../freight/queryAll?merchSn=" + merchSn, function (r) {
  260. vm.freights = r.list;
  261. });
  262. },*/
  263. getGoodsGallery: function (id) {//获取商品顶部轮播图
  264. $.get("../goodsgallery/queryAll?goodsId=" + id, function (r) {
  265. vm.uploadList = r.list;
  266. });
  267. },
  268. getMerchList: function() {
  269. $.get("../merch/queryAll", function (r) {
  270. vm.merchList = r.list;
  271. });
  272. },
  273. getThirdMerchantBizList: function(merchSn) {
  274. $.get("../thirdmerchantbiz/queryAll?merchSn=" + merchSn, function (r) {
  275. vm.thirdMerchantBizList = r.list;
  276. });
  277. },
  278. saveOrUpdate: function (event) {
  279. var url = vm.goods.id == null ? "../goods/save" : "../goods/update";
  280. vm.goods.goodsDesc = $('#goodsDesc').editable('getHTML');
  281. vm.goods.goodsImgList = vm.uploadList;
  282. // vm.goods.attributeEntityList = vm.attributeEntityList;
  283. vm.goods.productEntityList = vm.productEntityList;
  284. $.ajax({
  285. type: "POST",
  286. url: url,
  287. dataType: "json",
  288. contentType: "application/json",
  289. data: JSON.stringify(vm.goods),
  290. success: function (r) {
  291. if (r.code === 0) {
  292. alert('操作成功', function (index) {
  293. vm.reload();
  294. });
  295. } else {
  296. alert(r.msg);
  297. }
  298. }
  299. });
  300. },
  301. enSale: function () {
  302. var ids = getSelectedRows();
  303. if (ids == null) {
  304. return;
  305. }
  306. confirm('确定要上架选中的商品?', function () {
  307. $.ajax({
  308. type: "POST",
  309. url: "../goods/enSaleBatch",
  310. contentType: "application/json",
  311. data: JSON.stringify(ids),
  312. success: function (r) {
  313. if (r.code == 0) {
  314. alert('操作成功', function (index) {
  315. $("#jqGrid").trigger("reloadGrid");
  316. });
  317. } else {
  318. alert(r.msg);
  319. }
  320. }
  321. });
  322. });
  323. },
  324. openSpe: function () {
  325. var id = getSelectedRow();
  326. if (id == null) {
  327. return;
  328. }
  329. openWindow({
  330. type: 2,
  331. title: '商品规格',
  332. content: '../shop/goodsspecification.html?goodsId=' + id
  333. })
  334. },
  335. openPro: function () {
  336. var id = getSelectedRow();
  337. if (id == null) {
  338. return;
  339. }
  340. openWindow({
  341. type: 2,
  342. title: '产品设置',
  343. content: '../shop/product.html?goodsId=' + id
  344. });
  345. },
  346. unSale: function () {
  347. var ids = getSelectedRows();
  348. if (ids == null) {
  349. return;
  350. }
  351. confirm('确定要下架选中的商品?', function () {
  352. $.ajax({
  353. type: "POST",
  354. url: "../goods/unSaleBatch",
  355. contentType: "application/json",
  356. data: JSON.stringify(ids),
  357. success: function (r) {
  358. if (r.code == 0) {
  359. alert('操作成功', function (index) {
  360. $("#jqGrid").trigger("reloadGrid");
  361. });
  362. } else {
  363. alert(r.msg);
  364. }
  365. }
  366. });
  367. });
  368. },
  369. del: function (event) {
  370. var ids = getSelectedRows();
  371. if (ids == null) {
  372. return;
  373. }
  374. confirm('确定要删除选中的记录?', function () {
  375. $.ajax({
  376. type: "POST",
  377. url: "../goods/delete",
  378. contentType: "application/json",
  379. data: JSON.stringify(ids),
  380. success: function (r) {
  381. if (r.code == 0) {
  382. alert('操作成功', function (index) {
  383. $("#jqGrid").trigger("reloadGrid");
  384. });
  385. } else {
  386. alert(r.msg);
  387. }
  388. }
  389. });
  390. });
  391. },
  392. getInfo: function (id) {
  393. $.get("../goods/info/" + id, function (r) {
  394. vm.goods = r.goods;
  395. /*vm.categoryId = r.goods.categoryId;
  396. // vm.getCategory();
  397. var opt = {};
  398. opt.value = vm.goods.attributeCategory;
  399. vm.changeCategories(opt);
  400. if (r.goods.attributeEntityList.length > 0) {
  401. vm.attributeEntityList = r.goods.attributeEntityList;
  402. } else {
  403. vm.attributeEntityList = [{'id': '', 'goodsId': '', 'attributeId': '', 'value': '', 'isDelete': 0}];
  404. }
  405. if (r.goods.productEntityList.length > 0) {
  406. vm.productEntityList = r.goods.productEntityList;
  407. } else {
  408. vm.productEntityList = [{'id': '', 'goodsId': '', 'goodsSpecificationIds': '', 'goodsSpecificationNameValue': '', 'goodsSn': '', 'goodsNumber': '', 'isDelete': 0, 'goodsDefault': 0}];
  409. }*/
  410. $('#goodsDesc').editable('setHTML', vm.goods.goodsDesc);
  411. });
  412. },
  413. reload: function (event) {
  414. vm.showList = true;
  415. let page = event;
  416. if (event != 1) {
  417. page = $("#jqGrid").jqGrid('getGridParam', 'page');
  418. }
  419. $("#jqGrid").jqGrid('setGridParam', {
  420. postData: {
  421. 'name': vm.q.name,
  422. 'goodsSn': vm.q.goodsSn,
  423. 'prodBarcode': vm.q.prodBarcode,
  424. 'goodsBizType': vm.q.goodsBizType,
  425. 'merchSn': vm.q.merchSn
  426. },
  427. page: page
  428. }).trigger("reloadGrid");
  429. vm.handleReset('formValidate');
  430. },
  431. getCategory: function () {
  432. //加载分类树
  433. $.get("../category/query", function (r) {
  434. ztree = $.fn.zTree.init($("#categoryTree"), setting, r.list);
  435. var node = ztree.getNodeByParam("id", vm.goods.categoryId);
  436. if (node) {
  437. ztree.selectNode(node);
  438. vm.goods.categoryName = node.name;
  439. } else {
  440. node = ztree.getNodeByParam("id", 0);
  441. ztree.selectNode(node);
  442. vm.goods.categoryName = node.name;
  443. }
  444. })
  445. },
  446. categoryTree: function () {
  447. openWindow({
  448. title: "选择类型",
  449. area: ['300px', '450px'],
  450. content: jQuery("#categoryLayer"),
  451. btn: ['确定', '取消'],
  452. btn1: function (index) {
  453. var node = ztree.getSelectedNodes();
  454. if (node[0].isParent) {
  455. alert("只能选择");
  456. return;
  457. }
  458. //选择上级菜单
  459. vm.goods.categoryId = node[0].id;
  460. vm.goods.categoryName = node[0].name;
  461. layer.close(index);
  462. }
  463. });
  464. },
  465. changeGoodsBizType: function(opt) {
  466. var goodsBizType = opt.value;
  467. if (vm.goods.goodsBizType == '10' || vm.goods.goodsBizType == '02') {
  468. vm.showInput = false;
  469. } else {
  470. vm.showInput = true;
  471. }
  472. },
  473. handleView(name) {
  474. this.imgName = name;
  475. this.visible = true;
  476. },
  477. /*changeQueryCategories: function (opt) {
  478. var value = opt.value;
  479. $.get("../category/getCategorySelectByParent?parentId=" + value, function (r) {
  480. vm.queryCategoriesTwo = r.list;
  481. });
  482. },
  483. getAttributes: function (opt) {
  484. var value = opt.value;
  485. $.get("../attribute/query?attributeCategoryId=" + value, function (r) {
  486. vm.attributes = r.list;
  487. });
  488. if (opt.flag != 1 && !(value === vm.categoryId)) {
  489. if (vm.attributeEntityList.length > 0 && vm.attributeEntityList[0].attributeId != '') {
  490. for (var i = 0; i < vm.attributeEntityList.length; i++) {
  491. if (!(vm.attributeEntityList[0].attributeId === '')) {
  492. vm.attributeEntityList[i].isDelete = 1;
  493. }
  494. }
  495. var goodsId = '';
  496. if (vm.goods) {
  497. goodsId = vm.goods.id;
  498. }
  499. vm.attributeEntityList.unshift({'id': '', 'goodsId': goodsId, 'attributeId': '', 'value': '', 'isDelete': 0});
  500. }
  501. }
  502. },
  503. changeCategories: function (opt) {
  504. var value = opt.value;
  505. $.get("../category/getCategorySelectByParent?isShow=1&parentId=" + value, function (r) {
  506. vm.categoriesTwo = r.list;
  507. });
  508. },*/
  509. uploadExcelSuccess: function (data) {
  510. // console.log(data);
  511. if(data.code==0){
  512. alert('导入成功', function (index) {
  513. $("#jqGrid").trigger("reloadGrid");
  514. });
  515. }else{
  516. alert(data.msg);
  517. }
  518. },
  519. uploadExcelError: function () {
  520. alert('上传出现异常,请重试!');
  521. },
  522. uploadExcelFormatError: function (file) {
  523. this.$Notice.warning({
  524. title: '文件格式不正确',
  525. desc: '文件 ' + file.name + ' 格式不正确,请上传 xls 或 xlsx 格式的文件。'
  526. });
  527. },
  528. handleRemove(file) {
  529. // 从 upload 实例删除数据
  530. const fileList = vm.uploadList;
  531. vm.uploadList.splice(fileList.indexOf(file), 1);
  532. },
  533. handleSuccess(res, file) {
  534. // 因为上传过程为实例,这里模拟添加 url
  535. file.imgUrl = res.url;
  536. file.name = res.url;
  537. vm.uploadList.add(file);
  538. },
  539. handleBeforeUpload() {
  540. const check = vm.uploadList.length < 5;
  541. if (!check) {
  542. this.$Notice.warning({
  543. title: '最多只能上传 5 张图片。'
  544. });
  545. }
  546. return check;
  547. },
  548. handleSubmit: function (name) {
  549. // handleSubmitValidate(this, name, function () {
  550. vm.saveOrUpdate()
  551. // });
  552. },
  553. handleFormatError: function (file) {
  554. this.$Notice.warning({
  555. title: '文件格式不正确',
  556. desc: '文件 ' + file.name + ' 格式不正确,请上传 jpg 或 png 格式的图片。'
  557. });
  558. },
  559. handleMaxSize: function (file) {
  560. this.$Notice.warning({
  561. title: '超出文件大小限制',
  562. desc: '文件 ' + file.name + ' 太大,不能超过 2M。'
  563. });
  564. },
  565. handleReset: function (name) {
  566. handleResetForm(this, name);
  567. },
  568. handleSuccessPicUrl: function (res, file) {
  569. vm.goods.primaryPicUrl = file.response.url;
  570. },
  571. handleSuccessListPicUrl: function (res, file) {
  572. vm.goods.listPicUrl = file.response.url;
  573. },
  574. eyeImagePicUrl: function () {
  575. var url = vm.goods.primaryPicUrl;
  576. eyeImage(url);
  577. },
  578. eyeImageListPicUrl: function () {
  579. var url = vm.goods.listPicUrl;
  580. eyeImage(url);
  581. },
  582. eyeImage: function (e) {
  583. eyeImage($(e.target).attr('src'));
  584. },
  585. eyeImageListVideoUrl: function (e) {
  586. var url = vm.goods.videoUrl;
  587. eyeVideo(url);
  588. },
  589. handleVideoFormatError: function (file) {
  590. this.$Notice.warning({
  591. title: '文件格式不正确',
  592. desc: '文件 ' + file.name + ' 格式不正确,请上传 mp4 格式的图片。'
  593. });
  594. },
  595. handleVideoMaxSize: function (file) {
  596. this.$Notice.warning({
  597. title: '超出文件大小限制',
  598. desc: '文件 ' + file.name + ' 太大,不能超过 10M。'
  599. });
  600. },
  601. handleSuccessListVideoUrl: function (res, file) {
  602. vm.goods.videoUrl = file.response.url;
  603. },
  604. goodsExport: function () {
  605. vm.fileList = false;
  606. },
  607. showMerchInfo:function(opt){
  608. var merchSn = opt.value;
  609. // vm.getCategories(merchSn);
  610. // vm.getFreights(merchSn);
  611. // vm.getBrand(merchSn);
  612. vm.getSuppliers(merchSn);
  613. vm.getThirdMerchantBizList(merchSn);
  614. },
  615. // getCategories: function (merchSn) {
  616. // $.get("../category/getCategorySelect?isShow=1&merchSn=" + merchSn, function (r) {
  617. // vm.categories = r.list;
  618. // });
  619. // }
  620. },
  621. mounted() {
  622. // this.uploadList = this.$refs.upload.fileList;
  623. /*$.get("../category/getCategorySelect", function (r) {
  624. vm.queryCategories = r.list;
  625. });*/
  626. $.get("../merch/queryAll", function (r) {
  627. vm.queryMerch = r.list;
  628. });
  629. $.get("../sys/macro/queryMacrosByValue?value=goodsBizType", function (r) {
  630. vm.macros = r.list;
  631. });
  632. }
  633. });