Rap 原分销系统代码Web
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

6ad7a6b6b195ffe5586d5f34d28d2d5bff263723.svn-base 24KB

vor 5 Monaten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. <template>
  2. <div class="app-container">
  3. <!--搜索-->
  4. <el-form class="mt_15" ref="searchForm" inline size="small">
  5. <el-form-item label="公司ID">
  6. <el-input v-model.trim="searchParm.companyId" clearable placeholder='公司ID'></el-input>
  7. </el-form-item>
  8. <el-form-item label="ExcelID">
  9. <el-input v-model.trim="searchParm.excelInfoId" clearable placeholder='ExcelID'></el-input>
  10. </el-form-item>
  11. <el-form-item label="公司订单编号">
  12. <el-input v-model.trim="searchParm.ctOrderNo" clearable placeholder='公司订单编号'></el-input>
  13. </el-form-item>
  14. <el-form-item label="订单编号">
  15. <el-input v-model.trim="searchParm.orderNo" clearable placeholder='订单编号'></el-input>
  16. </el-form-item>
  17. <el-form-item>
  18. <el-button type="primary" @click="goSearch">搜索</el-button>
  19. <el-button type="warning" @click="resetForm">重置</el-button>
  20. </el-form-item>
  21. </el-form>
  22. <!--表格渲染-->
  23. <el-table ref="table" border size="small" :data="list" :header-cell-style="{textAlign:'center'}" :cell-style="{textAlign:'center'}">
  24. <el-table-column label="序号" type="index" width="50" />
  25. <el-table-column label="公司ID" prop="companyId" />
  26. <el-table-column label="创建时间" prop="createdAt" />
  27. <el-table-column label="公司订单编号" prop="ctOrderNo" />
  28. <el-table-column label="对应Excel信息ID" prop="excelInfoId" />
  29. <el-table-column label="响应收件地址信息ID" prop="responseOrderAddressId">
  30. <template slot-scope="scope">
  31. <div @click="getOrderAddById(scope.row.id)">{{scope.row.responseOrderAddressId}}</div>
  32. </template>
  33. </el-table-column>
  34. <el-table-column label="响应订单信息ID" prop="responseOrderId">
  35. <template slot-scope="scope">
  36. <div @click="getOrderById(scope.row.id)">{{scope.row.responseOrderId}}</div>
  37. </template>
  38. </el-table-column>
  39. <el-table-column label="响应产品信息ID" prop="responseProductId">
  40. <template slot-scope="scope">
  41. <div @click="getProductById(scope.row.id)">{{scope.row.responseProductId}}</div>
  42. </template>
  43. </el-table-column>
  44. <el-table-column label="状态" prop="status">
  45. <template slot-scope="scope">
  46. {{ scope.row.status | getStatus}}
  47. </template>
  48. </el-table-column>
  49. <el-table-column label="修改时间" prop="updatedAt" />
  50. <el-table-column label="操作">
  51. <template slot-scope="scope">
  52. <el-button type="info" @click="getInfoById(scope.row.id)">查看</el-button>
  53. </template>
  54. </el-table-column>
  55. </el-table>
  56. <!--分页-->
  57. <div class="mt_15">
  58. <el-pagination
  59. @size-change="handleSizeChange"
  60. @current-change="handleCurrentChange"
  61. :current-page="searchParm.page"
  62. :page-sizes="[10, 20, 30, 40, 50]"
  63. :page-size="searchParm.pageSize"
  64. layout="total, sizes, prev, pager, next, jumper"
  65. :total="total">
  66. </el-pagination>
  67. </div>
  68. <!--详情弹窗-->
  69. <el-dialog :visible.sync="dialogDetailVisible" :title="dialogDetailTitle" center width="45%">
  70. <div class="dialog-content">
  71. <el-form ref="form" size="small" label-width="150px">
  72. <el-form-item label="公司ID" prop="companyId" >
  73. <el-input v-model.trim="detailParm.companyId" :disabled="true"></el-input>
  74. </el-form-item>
  75. <el-form-item label="创建时间" prop="createdAt" >
  76. <el-input v-model.trim="detailParm.createdAt " :disabled="true"></el-input>
  77. </el-form-item>
  78. <el-form-item label="订单编号" prop="ctOrderNo">
  79. <el-input v-model.trim="detailParm.ctOrderNo" :disabled="true"></el-input>
  80. </el-form-item>
  81. <el-form-item label="所属Excel信息对应ID" prop="excelInfoId">
  82. <el-input v-model.trim="detailParm.excelInfoId" :disabled="true"></el-input>
  83. </el-form-item>
  84. <el-form-item label="敦煌响应订单编号" prop="orderNo" >
  85. <el-input v-model.trim="detailParm.companyId" :disabled="true"></el-input>
  86. </el-form-item>
  87. <el-form-item label="响应收件地址信息ID" prop="responseOrderAddressId">
  88. <el-input v-model.trim="detailParm.ctOrderNo" :disabled="true"></el-input>
  89. </el-form-item>
  90. <el-form-item label="响应订单信息ID" prop="responseOrderId">
  91. <el-input v-model.trim="detailParm.excelInfoId" :disabled="true"></el-input>
  92. </el-form-item>
  93. <el-form-item label="响应产品信息ID" prop="responseProductId">
  94. <el-input v-model.trim="detailParm.excelInfoId" :disabled="true"></el-input>
  95. </el-form-item>
  96. <el-form-item label="状态" prop="status">
  97. <el-input v-if="detailParm.status == 1" value="待支付" :disabled="true"></el-input>
  98. <el-input v-if="detailParm.status == 2" value="支付成功" :disabled="true"></el-input>
  99. <el-input v-if="detailParm.status == 3" value="支付失败" :disabled="true"></el-input>
  100. </el-form-item>
  101. <el-form-item label="修改时间" prop="updatedAt">
  102. <el-input v-model.trim="detailParm.updatedAt" :disabled="true"></el-input>
  103. </el-form-item>
  104. </el-form>
  105. </div>
  106. </el-dialog>
  107. <!--响应收件地址信息弹窗-->
  108. <el-dialog :visible.sync="dialogOrderAddDetailVisible" :title="dialogOrderAddDetailTitle" center width="45%">
  109. <div class="dialog-content">
  110. <el-form ref="form" size="small" label-width="150px">
  111. <el-form-item label="地址1" prop="addressline1" >
  112. <el-input v-model.trim="detailOrderAddParm.addressline1" :disabled="true"></el-input>
  113. </el-form-item>
  114. <el-form-item label="地址2" prop="addressline2" >
  115. <el-input v-model.trim="detailOrderAddParm.addressline2" :disabled="true"></el-input>
  116. </el-form-item>
  117. <el-form-item label="城市" prop="city">
  118. <el-input v-model.trim="detailOrderAddParm.city" :disabled="true"></el-input>
  119. </el-form-item>
  120. <el-form-item label="国家" prop="country">
  121. <el-input v-model.trim="detailOrderAddParm.country" :disabled="true"></el-input>
  122. </el-form-item>
  123. <el-form-item label="创建时间" prop="createdAt" >
  124. <el-input v-model.trim="detailOrderAddParm.createdAt" :disabled="true"></el-input>
  125. </el-form-item>
  126. <el-form-item label="firstname" prop="firstname">
  127. <el-input v-model.trim="detailOrderAddParm.firstname" :disabled="true"></el-input>
  128. </el-form-item>
  129. <el-form-item label="lastname" prop="lastname">
  130. <el-input v-model.trim="detailOrderAddParm.lastname" :disabled="true"></el-input>
  131. </el-form-item>
  132. <el-form-item label="邮政编码" prop="postalcode">
  133. <el-input v-model.trim="detailOrderAddParm.postalcode" :disabled="true"></el-input>
  134. </el-form-item>
  135. <el-form-item label="州" prop="state">
  136. <el-input v-model.trim="detailOrderAddParm.state" :disabled="true"></el-input>
  137. </el-form-item>
  138. <el-form-item label="电话" prop="tel">
  139. <el-input v-model.trim="detailOrderAddParm.tel" :disabled="true"></el-input>
  140. </el-form-item>
  141. <el-form-item label="修改时间" prop="updatedAt">
  142. <el-input v-model.trim="detailOrderAddParm.updatedAt" :disabled="true"></el-input>
  143. </el-form-item>
  144. </el-form>
  145. </div>
  146. </el-dialog>
  147. <!--响应订单信息弹窗-->
  148. <el-dialog :visible.sync="dialogOrderDetailVisible" :title="dialogOrderDetailTitle" center width="45%">
  149. <div class="dialog-content">
  150. <el-form ref="form" size="small" label-width="150px">
  151. <el-form-item label="买家Id" prop="buyerId" >
  152. <el-input v-model.trim="detailOrderParm.buyerId" :disabled="true"></el-input>
  153. </el-form-item>
  154. <el-form-item label="DHcoupon" prop="couponDiscount" >
  155. <el-input v-model.trim="detailOrderParm.couponDiscount" :disabled="true"></el-input>
  156. </el-form-item>
  157. <el-form-item label="卖家店铺coupon" prop="couponOfSeller" >
  158. <el-input v-model.trim="detailOrderParm.couponOfSeller" :disabled="true"></el-input>
  159. </el-form-item>
  160. <el-form-item label="创建时间" prop="createTime" >
  161. <el-input v-model.trim="detailOrderParm.createTime" :disabled="true"></el-input>
  162. </el-form-item>
  163. <el-form-item label="创建时间(我们平台)" prop="createdAt" >
  164. <el-input v-model.trim="detailOrderParm.createdAt" :disabled="true"></el-input>
  165. </el-form-item>
  166. <el-form-item label="订单号" prop="orderId" >
  167. <el-input v-model.trim="detailOrderParm.orderId" :disabled="true"></el-input>
  168. </el-form-item>
  169. <el-form-item label="订单优惠" prop="orderSave" >
  170. <el-input v-model.trim="detailOrderParm.orderSave" :disabled="true"></el-input>
  171. </el-form-item>
  172. <el-form-item label="促销折扣" prop="promoDiscount" >
  173. <el-input v-model.trim="detailOrderParm.promoDiscount" :disabled="true"></el-input>
  174. </el-form-item>
  175. <el-form-item label="运费" prop="shipCost" >
  176. <el-input v-model.trim="detailOrderParm.shipCost" :disabled="true"></el-input>
  177. </el-form-item>
  178. <el-form-item label="运输方式" prop="shipType" >
  179. <el-input v-model.trim="detailOrderParm.shipType" :disabled="true"></el-input>
  180. </el-form-item>
  181. <el-form-item label="下单站点" prop="siteId" >
  182. <el-input v-model.trim="detailOrderParm.siteId" :disabled="true"></el-input>
  183. </el-form-item>
  184. <el-form-item label="卖家Id" prop="supplierId" >
  185. <el-input v-model.trim="detailOrderParm.supplierId" :disabled="true"></el-input>
  186. </el-form-item>
  187. <el-form-item label="税费" prop="tax" >
  188. <el-input v-model.trim="detailOrderParm.tax" :disabled="true"></el-input>
  189. </el-form-item>
  190. <el-form-item label="税费手续费" prop="taxCharge" >
  191. <el-input v-model.trim="detailOrderParm.taxCharge" :disabled="true"></el-input>
  192. </el-form-item>
  193. <el-form-item label="产品总价" prop="totalPriceOfProduct" >
  194. <el-input v-model.trim="detailOrderParm.totalPriceOfProduct" :disabled="true"></el-input>
  195. </el-form-item>
  196. <el-form-item label="修改时间" prop="updatedAt" >
  197. <el-input v-model.trim="detailOrderParm.updatedAt" :disabled="true"></el-input>
  198. </el-form-item>
  199. </el-form>
  200. </div>
  201. </el-dialog>
  202. <!--响应产品信息弹窗-->
  203. <el-dialog :visible.sync="dialogProductDetailVisible" :title="dialogProductDetailTitle" center width="45%">
  204. <div class="dialog-content">
  205. <el-form ref="form" size="small" label-width="150px">
  206. <el-form-item label="商品总金额" prop="amount" >
  207. <el-input v-model.trim="detailProductParm.amount" :disabled="true"></el-input>
  208. </el-form-item>
  209. <el-form-item label="购买数量" prop="cateDispId" >
  210. <el-input v-model.trim="detailProductParm.cateDispId" :disabled="true"></el-input>
  211. </el-form-item>
  212. <el-form-item label="发布类目id" prop="catePubId" >
  213. <el-input v-model.trim="detailProductParm.catePubId" :disabled="true"></el-input>
  214. </el-form-item>
  215. <el-form-item label="创建时间" prop="createTime" >
  216. <el-input v-model.trim="detailProductParm.createTime" :disabled="true"></el-input>
  217. </el-form-item>
  218. <el-form-item label="创建时间(我们平台)" prop="createdAt" >
  219. <el-input v-model.trim="detailProductParm.createdAt" :disabled="true"></el-input>
  220. </el-form-item>
  221. <el-form-item label="跨店满减金额" prop="crossReduceAmount" >
  222. <el-input v-model.trim="detailProductParm.crossReduceAmount" :disabled="true"></el-input>
  223. </el-form-item>
  224. <el-form-item label="产品长描地址" prop="htmlUrl" >
  225. <el-input v-model.trim="detailProductParm.htmlUrl" :disabled="true"></el-input>
  226. </el-form-item>
  227. <el-form-item label="产品图片(大图)" prop="imageUrl" >
  228. <el-input v-model.trim="detailProductParm.imageUrl" :disabled="true"></el-input>
  229. </el-form-item>
  230. <el-form-item label="产品itemcode" prop="itemcode" >
  231. <el-input v-model.trim="detailProductParm.itemcode" :disabled="true"></el-input>
  232. </el-form-item>
  233. <el-form-item label="lots" prop="lots" >
  234. <el-input v-model.trim="detailProductParm.lots" :disabled="true"></el-input>
  235. </el-form-item>
  236. <el-form-item label="产品单位Id" prop="measureId" >
  237. <el-input v-model.trim="detailProductParm.measureId" :disabled="true"></el-input>
  238. </el-form-item>
  239. <el-form-item label="产品单位名称" prop="measureName" >
  240. <el-input v-model.trim="detailProductParm.measureName" :disabled="true"></el-input>
  241. </el-form-item>
  242. <el-form-item label="销售价格" prop="originPrice" >
  243. <el-input v-model.trim="detailProductParm.originPrice" :disabled="true"></el-input>
  244. </el-form-item>
  245. <el-form-item label="最终价格" prop="price" >
  246. <el-input v-model.trim="detailProductParm.price" :disabled="true"></el-input>
  247. </el-form-item>
  248. <el-form-item label="卖家设置价格" prop="prodPriceOrg" >
  249. <el-input v-model.trim="detailProductParm.prodPriceOrg" :disabled="true"></el-input>
  250. </el-form-item>
  251. <el-form-item label="产品Id" prop="productId" >
  252. <el-input v-model.trim="detailProductParm.productId" :disabled="true"></el-input>
  253. </el-form-item>
  254. <el-form-item label="产品名称" prop="productName" >
  255. <el-input v-model.trim="detailProductParm.productName" :disabled="true"></el-input>
  256. </el-form-item>
  257. <el-form-item label="产品URL" prop="productUrl" >
  258. <el-input v-model.trim="detailProductParm.productUrl" :disabled="true"></el-input>
  259. </el-form-item>
  260. <el-form-item label="促销折扣" prop="promDis" >
  261. <el-input v-model.trim="detailProductParm.promDis" :disabled="true"></el-input>
  262. </el-form-item>
  263. <el-form-item label="卖家承诺运达天数" prop="promiseDays" >
  264. <el-input v-model.trim="detailProductParm.promiseDays" :disabled="true"></el-input>
  265. </el-form-item>
  266. <el-form-item label="最终运费" prop="shipCost" >
  267. <el-input v-model.trim="detailProductParm.shipCost" :disabled="true"></el-input>
  268. </el-form-item>
  269. <el-form-item label="buyer选择的运输方式" prop="shipType" >
  270. <el-input v-model.trim="detailProductParm.shipType" :disabled="true"></el-input>
  271. </el-form-item>
  272. <el-form-item label="短描" prop="shortDescription" >
  273. <el-input v-model.trim="detailProductParm.shortDescription" :disabled="true"></el-input>
  274. </el-form-item>
  275. <el-form-item label="产品skuId" prop="skuId" >
  276. <el-input v-model.trim="detailProductParm.skuId" :disabled="true"></el-input>
  277. </el-form-item>
  278. <el-form-item label="产品skumd5" prop="skuMd5" >
  279. <el-input v-model.trim="detailProductParm.addressline1" :disabled="true"></el-input>
  280. </el-form-item>
  281. <el-form-item label="备货国家" prop="stockin" >
  282. <el-input v-model.trim="detailProductParm.addressline1" :disabled="true"></el-input>
  283. </el-form-item>
  284. <el-form-item label="卖家Id" prop="supplierId" >
  285. <el-input v-model.trim="detailProductParm.addressline1" :disabled="true"></el-input>
  286. </el-form-item>
  287. <el-form-item label="产品图片(小图)" prop="thumbnailImage" >
  288. <el-input v-model.trim="detailProductParm.thumbnailImage" :disabled="true"></el-input>
  289. </el-form-item>
  290. <el-form-item label="修改时间" prop="updatedAt" >
  291. <el-input v-model.trim="detailProductParm.updatedAt" :disabled="true"></el-input>
  292. </el-form-item>
  293. </el-form>
  294. </div>
  295. </el-dialog>
  296. </div>
  297. </template>
  298. <script>
  299. import { getList, getById, getOrderInfoById, getOrderProductById, getOrderAddressById, } from '@/api/group/order'
  300. export default {
  301. //状态过滤器
  302. filters: {
  303. getStatus: function (value) {
  304. if(value == 1) {
  305. return '待支付';
  306. } else if (value == 2) {
  307. return '支付成功';
  308. } else {
  309. return '支付失败';
  310. }
  311. }
  312. },
  313. //数据
  314. data() {
  315. return {
  316. searchParm:{
  317. companyId:null,
  318. excelInfoId:null,
  319. ctOrderNo:null,
  320. orderNo:null,
  321. page:1,
  322. pageSize:10,
  323. sort:'created_at',
  324. order:'desc'
  325. },
  326. total:0,
  327. list: [],
  328. dialogDetailVisible: false,
  329. dialogDetailTitle: '详情',
  330. dialogOrderDetailVisible: false,
  331. dialogOrderDetailTitle: '响应订单信息',
  332. dialogOrderAddDetailVisible: false,
  333. dialogOrderAddDetailTitle: '响应收件地址信息',
  334. dialogProductDetailVisible: false,
  335. dialogProductDetailTitle: '响应产品信息',
  336. detailParm: {
  337. id:null,
  338. companyId: null,
  339. createdAt: null,
  340. ctOrderNo: null,
  341. excelInfoId: null,
  342. orderNo: null,
  343. responseOrderAddressId: null,
  344. responseOrderId: null,
  345. responseProductId: null,
  346. status: null,
  347. updatedAt: null
  348. },
  349. detailOrderParm:{
  350. buyerId:null,
  351. couponDiscount:null,
  352. couponOfSeller:null,
  353. createTime:null,
  354. createdAt:null,
  355. leadingTime:null,
  356. orderId:null,
  357. orderSave:null,
  358. orderTotal:null,
  359. promoDiscount:null,
  360. shipCost:null,
  361. shipType:null,
  362. siteId:null,
  363. supplierId:null,
  364. tax:null,
  365. taxCharge:null,
  366. totalPriceOfProduct:null,
  367. updatedAt:null
  368. },
  369. detailOrderAddParm:{
  370. addressline1:null,
  371. addressline2:null,
  372. city:null,
  373. country:null,
  374. createdAt:null,
  375. firstname:null,
  376. id:null,
  377. lastname:null,
  378. postalcode:null,
  379. state:null,
  380. tel:null,
  381. updatedAt:null,
  382. },
  383. detailProductParm:{
  384. amount:null,
  385. cateDispId:null,
  386. catePubId:null,
  387. createTime:null,
  388. createdAt:null,
  389. crossReduceAmount:null,
  390. htmlUrl:null,
  391. imageUrl:null,
  392. itemcode:null,
  393. lots:null,
  394. measureId:null,
  395. measureName:null,
  396. originPrice:null,
  397. price:null,
  398. prodPriceOrg:null,
  399. productId:null,
  400. productName:null,
  401. productUrl:null,
  402. promDis:null,
  403. promiseDays:null,
  404. shipCost:null,
  405. shipType:null,
  406. shortDescription:null,
  407. skuId:null,
  408. skuMd5:null,
  409. stockin:null,
  410. supplierId:null,
  411. thumbnailImage:null,
  412. updatedAt:null
  413. }
  414. }
  415. },
  416. // 调用
  417. created() {
  418. this.goSearch()
  419. },
  420. //方法
  421. methods: {
  422. // 查询
  423. goSearch() {
  424. this.searchParm.page=1
  425. this.getDataList()
  426. },
  427. //重置
  428. resetForm() {
  429. this.searchParm.companyId = null;
  430. this.searchParm.excelInfoId = null;
  431. this.searchParm.ctOrderNo = null;
  432. this.searchParm.orderNo = null;
  433. this.goSearch()
  434. },
  435. // 分页获取表格数据
  436. getDataList(){
  437. getList(this.searchParm).then(res => {
  438. console.log(res)
  439. if(res.code==200) {
  440. console.log(res)
  441. this.list = res.data.list;
  442. this.total = res.data.total;
  443. }
  444. }).catch(err => {
  445. console.log(err)
  446. })
  447. },
  448. //根据订单ID查询订单信息
  449. getInfoById(id){
  450. getById({id}).then(res =>{
  451. console.log(res)
  452. if(res.code==200){
  453. console.log(res)
  454. this.detailParm.companyId = res.data.companyId;
  455. this.detailParm.createdAt = res.data.createdAt;
  456. this.detailParm.ctOrderNo = res.data.ctOrderNo;
  457. this.detailParm.excelInfoId = res.data.excelInfoId;
  458. this.detailParm.orderNo = res.data.orderNo;
  459. this.detailParm.responseOrderAddressId = res.data.responseOrderAddressId;
  460. this.detailParm.responseOrderId = res.data.responseOrderId;
  461. this.detailParm.responseProductId = res.data.responseProductId;
  462. this.detailParm.status = res.data.status;
  463. this.detailParm.updatedAt = res.data.updatedAt;
  464. this.dialogDetailVisible = true
  465. this.$refs.ruleForm.clearValidate()
  466. }
  467. }).catch(err => {
  468. console.log(err)
  469. })
  470. },
  471. //根据订单ID查询响应订单信息
  472. getOrderById(id){
  473. getOrderInfoById({id}).then(res =>{
  474. console.log(res)
  475. if(res.code==200){
  476. console.log(res)
  477. this.detailOrderParm.buyerId = res.data.buyerId;
  478. this.detailOrderParm.couponDiscount = res.data.couponDiscount;
  479. this.detailOrderParm.couponOfSeller = res.data.couponOfSeller;
  480. this.detailOrderParm.createTime = res.data.createTime;
  481. this.detailOrderParm.createdAt = res.data.createdAt;
  482. this.detailOrderParm.leadingTime = res.data.leadingTime;
  483. this.detailOrderParm.orderId = res.data.orderId;
  484. this.detailOrderParm.orderSave = res.data.orderSave;
  485. this.detailOrderParm.orderTotal = res.data.orderTotal;
  486. this.detailOrderParm.promoDiscount = res.data.promoDiscount;
  487. this.detailOrderParm.shipCost = res.data.shipCost;
  488. this.detailOrderParm.shipType = res.data.shipType;
  489. this.detailOrderParm.siteId = res.data.siteId;
  490. this.detailOrderParm.supplierId = res.data.supplierId;
  491. this.detailOrderParm.tax = res.data.tax;
  492. this.detailOrderParm.taxCharge = res.data.taxCharge;
  493. this.detailOrderParm.totalPriceOfProduct = res.data.totalPriceOfProduct;
  494. this.detailOrderParm.updatedAt = res.data.updatedAt;
  495. this.dialogOrderDetailVisible = true;
  496. this.$refs.ruleForm.clearValidate();
  497. }
  498. }).catch(err => {
  499. console.log(err)
  500. })
  501. },
  502. //根据订单ID查询响应收件信息
  503. getOrderAddById(id){
  504. getOrderAddressById({id}).then(res =>{
  505. console.log(res)
  506. if(res.code==200){
  507. console.log(res)
  508. this.detailOrderAddParm.addressline1 = res.data.addressline1;
  509. this.detailOrderAddParm.addressline2 = res.data.addressline2;
  510. this.detailOrderAddParm.city = res.data.city;
  511. this.detailOrderAddParm.country = res.data.country;
  512. this.detailOrderAddParm.createdAt = res.data.createdAt;
  513. this.detailOrderAddParm.firstname = res.data.firstname;
  514. this.detailOrderAddParm.lastname = res.data.lastname;
  515. this.detailOrderAddParm.postalcode = res.data.postalcode;
  516. this.detailOrderAddParm.state = res.data.state;
  517. this.detailOrderAddParm.tel = res.data.tel;
  518. this.detailOrderAddParm.updatedAt = res.data.updatedAt;
  519. this.dialogOrderAddDetailVisible = true;
  520. this.$refs.ruleForm.clearValidate();
  521. }
  522. }).catch(err => {
  523. console.log(err)
  524. })
  525. },
  526. //根据订单ID查询响应产品信息
  527. getProductById(id){
  528. getOrderProductById({id}).then(res =>{
  529. console.log(res)
  530. if(res.code==200){
  531. console.log(res)
  532. this.detailProductParm.amount = res.data.amount;
  533. this.detailProductParm.cateDispId = res.data.cateDispId;
  534. this.detailProductParm.catePubId = res.data.catePubId;
  535. this.detailProductParm.createTime = res.data.createTime;
  536. this.detailProductParm.createdAt = res.data.createdAt;
  537. this.detailProductParm.crossReduceAmount = res.data.crossReduceAmount;
  538. this.detailProductParm.htmlUrl = res.data.htmlUrl;
  539. this.detailProductParm.imageUrl = res.data.imageUrl;
  540. this.detailProductParm.itemcode = res.data.itemcode;
  541. this.detailProductParm.lots = res.data.lots;
  542. this.detailProductParm.measureId = res.data.measureId;
  543. this.detailProductParm.measureName = res.data.measureName;
  544. this.detailProductParm.originPrice = res.data.originPrice;
  545. this.detailProductParm.price = res.data.price;
  546. this.detailProductParm.prodPriceOrg = res.data.prodPriceOrg;
  547. this.detailProductParm.productId = res.data.productId;
  548. this.detailProductParm.productName = res.data.productName;
  549. this.detailProductParm.productUrl = res.data.productUrl;
  550. this.detailProductParm.promDis = res.data.promDis;
  551. this.detailProductParm.promiseDays = res.data.promiseDays;
  552. this.detailProductParm.shipCost = res.data.shipCost;
  553. this.detailProductParm.shipType = res.data.shipType;
  554. this.detailProductParm.shortDescription = res.data.shortDescription;
  555. this.detailProductParm.skuId = res.data.skuId;
  556. this.detailProductParm.skuMd5 = res.data.skuMd5;
  557. this.detailProductParm.stockin = res.data.stockin;
  558. this.detailProductParm.supplierId = res.data.supplierId;
  559. this.detailProductParm.thumbnailImage = res.data.thumbnailImage;
  560. this.detailProductParm.updatedAt = res.data.updatedAt;
  561. this.dialogProductDetailVisible = true;
  562. this.$refs.ruleForm.clearValidate();
  563. }
  564. }).catch(err => {
  565. console.log(err)
  566. })
  567. },
  568. // 分页
  569. handleSizeChange(val) {
  570. console.log(`每页 ${val} 条`);
  571. this.searchParm.pageSize = val;
  572. this.getDataList();
  573. },
  574. handleCurrentChange(val) {
  575. console.log(`当前页: ${val}`);
  576. this.searchParm.page = val;
  577. this.getDataList();
  578. }
  579. }
  580. }
  581. </script>
  582. <style rel="stylesheet/scss" lang="scss" scoped>
  583. </style>