storeOrderDetails.vue 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142
  1. <template>
  2. <div style="background-color: #f0f2f5; padding-bottom: 20px; min-height: 100%; " >
  3. <div style="padding: 20px; background-color: #fff;">
  4. 订单详情
  5. </div>
  6. <div class="contentx" v-if="item!=null">
  7. <div class="desct"></div>
  8. <div class="order-status" v-if="item!=null" >
  9. <el-steps :active="item.status==4?item.status:item.status-1" align-center finish-status="success">
  10. <el-step title="待支付"></el-step>
  11. <el-step title="待发货"></el-step>
  12. <el-step title="待收货"></el-step>
  13. <el-step title="已完成"></el-step>
  14. </el-steps>
  15. </div>
  16. <el-card shadow="never" style="margin-top: 15px">
  17. <div class="operate-container" v-if="item!=null">
  18. <span style="margin-left: 20px" class="color-danger">订单状态:
  19. <el-tag prop="status" v-for="(ite, index) in orderOptions" v-if="item.status==ite.dictValue">{{ite.dictLabel}}</el-tag>
  20. </span>
  21. <div class="operate-button-container" v-if="item.status==3">
  22. <el-button size="mini" @click="finishOrder()" v-hasPermi="['his:storeOrder:good']">确认收货</el-button>
  23. </div>
  24. <div class="operate-button-container" v-if="item.status==2&&item.orderType==1">
  25. <el-button size="mini" @click="sendVisible=true" v-hasPermi="['his:storeOrder:sendGoods']">发货</el-button>
  26. </div>
  27. <div class="operate-button-container" v-if="item.status==2&&item.orderType==2">
  28. <el-button size="mini" @click="tuiOrder()" v-hasPermi="['his:storeOrder:sendHisGoods']" >推送订单</el-button>
  29. </div>
  30. <div class="operate-button-container" v-if="item.inquiryOrderId!=null&&item.inquiryOrderId!=''" v-hasPermi="['his:storeOrder:inquiry']">
  31. <el-button size="mini" @click="getInquiryOrder()" >问诊订单</el-button>
  32. </div>
  33. <div class="operate-button-container" v-if="item.packageOrderId!=null&&item.packageOrderId!=''" v-hasPermi="['his:storeOrder:package']" >
  34. <el-button size="mini" @click="getPackageOrder()" >套餐包订单</el-button>
  35. </div>
  36. <div class="operate-button-container" v-if="item.deliverySn!=null" v-hasPermi="['his:storeOrder:express']">
  37. <el-button size="mini" @click="showExpress()" >查看物流</el-button>
  38. </div>
  39. <div class="operate-button-container" >
  40. <el-button size="mini" @click="editDelivery()" v-hasPermi="['his:storeOrder:updateDelivery']" >修改物流单号</el-button>
  41. </div>
  42. <div class="operate-button-container" >
  43. <el-button size="mini" @click="editOrder()" v-hasPermi="['his:storeOrder:edit']" >修改订单</el-button>
  44. </div>
  45. <div class="operate-button-container" v-if="item.status ==2 && item.extendOrderId == null && item.deliverySn == null&&item.orderType==1" v-hasPermi="['his:storeOrder:createErpOrder']">
  46. <el-button size="mini" @click="addErpOrder()" >创建ERP订单信息</el-button>
  47. </div>
  48. <div class="operate-button-container" v-if="item.extendOrderId!=null && item.orderType==1" v-hasPermi="['his:storeOrder:getEroOrder']" >
  49. <el-button size="mini" @click="showErpOrder()" >ERP订单信息</el-button>
  50. </div>
  51. <div class="operate-button-container" v-if="item.tuiMoneyStatus==0 && item.status==4" v-hasPermi="['his:storeOrder:editTuiMoney']" >
  52. <el-button size="mini" @click="editTuiMoney1()" >解冻</el-button>
  53. </div>
  54. <div class="operate-button-container" v-if="item.tuiMoneyStatus==1 && item.status==4" v-hasPermi="['his:storeOrder:editTuiMoney']" >
  55. <el-button size="mini" @click="editTuiMoney2()" >冻结</el-button>
  56. </div>
  57. <div class="operate-button-container" v-if="item.followTime!=null&&item.followTime!=''" v-hasPermi="['his:storeOrder:msgList']" >
  58. <el-button size="mini" @click="followMsg()" >随访记录</el-button>
  59. </div>
  60. <div class="operate-button-container" v-if="item.status>1">
  61. <el-button size="mini" @click="refund()" v-hasPermi="['his:storeOrder:afterSales']">申请退款</el-button>
  62. </div>
  63. <div class="operate-button-container" v-if="item.prescribeId!=null&&item.prescribeId!=''" >
  64. <el-button size="mini" @click="getPrescribeOrder()" >处方单</el-button>
  65. </div>
  66. <div class="operate-button-container" v-if="item.status== -2" >
  67. <el-button size="mini" @click="returnCost()" v-hasPermi="['his:storeOrder:returnCost']" >成本退还</el-button>
  68. </div>
  69. <div class="operate-button-container" >
  70. <el-button size="mini" @click="sendFollowMsg()" v-if="item.status>1" v-hasPermi="['his:storeOrder:sendMsg']">发送随访消息</el-button>
  71. </div>
  72. </div>
  73. <div class="desct">
  74. 基本信息
  75. </div>
  76. <el-descriptions :column="3" border >
  77. <el-descriptions-item label="订单编号" ><span v-if="item!=null">{{item.orderCode}}</span></el-descriptions-item>
  78. <el-descriptions-item label="会员"><span v-if="item.nickName!=null">{{item.nickName}}({{item.phone}})</span></el-descriptions-item>
  79. <el-descriptions-item label="会员ID" ><span v-if="item!=null">{{item.userId}}</span></el-descriptions-item>
  80. <el-descriptions-item label="支付方式" ><dict-tag :options="PayOptions" :value="item.payType"/></el-descriptions-item>
  81. <el-descriptions-item label="药品类型" ><dict-tag :options="orderTypeOptions" :value="item.orderType"/></el-descriptions-item>
  82. <el-descriptions-item label="订单来源" ><dict-tag :options="sourceOptions" :value="item.source"/></el-descriptions-item>
  83. <el-descriptions-item label="医生名称" ><span v-if="item!=null">{{item.doctorName}}</span></el-descriptions-item>
  84. <el-descriptions-item label="店铺名称" ><span v-if="item!=null">{{item.storeName}}</span></el-descriptions-item>
  85. <el-descriptions-item label="患者姓名" > <span v-if="item!=null">{{item.patientName}}</span></el-descriptions-item>
  86. <el-descriptions-item label="患者年龄" ><span v-if="item!=null">{{item.patientAge}}</span></el-descriptions-item>
  87. <el-descriptions-item label="患者性别" > <dict-tag :options="sexOptions" :value="item.patientGender"/> </el-descriptions-item>
  88. <el-descriptions-item label="与本人关系" ><span v-if="item!=null">{{item.relation}}</span> </el-descriptions-item>
  89. <el-descriptions-item label="收货人" > <span v-if="item!=null">{{item.userName}}</span> </el-descriptions-item>
  90. <el-descriptions-item label="收货人电话" > <span v-if="item!=null">{{item.userPhone}}</span>
  91. <el-button icon="el-icon-search" size="mini" @click="handlePhone()" style="margin-left: 20px;" circle v-hasPermi="['his:storeOrder:queryPhone']"></el-button>
  92. </el-descriptions-item>
  93. <el-descriptions-item label="详细地址" > <span>{{item.userAddress}}</span> </el-descriptions-item>
  94. <el-descriptions-item label="所属公司"><span v-if="item!=null">{{item.companyName}}</span></el-descriptions-item>
  95. <el-descriptions-item label="员工"><span v-if="item!=null">{{item.companyUserName}}</span></el-descriptions-item>
  96. <el-descriptions-item label="推广佣金" ><span v-if="item.tuiMoney!=null">{{item.tuiMoney.toFixed(2)}}</span></el-descriptions-item>
  97. <el-descriptions-item label="推广佣金状态" ><span v-if="item!=null"><dict-tag :options="tuiOptions" :value="item.tuiMoneyStatus"/> </span></el-descriptions-item>
  98. <el-descriptions-item label="快递公司编号" > <span v-if="item!=null">{{item.deliveryCode}}</span></el-descriptions-item>
  99. <el-descriptions-item label="快递名称" ><span v-if="item!=null">{{item.deliveryName}}</span></el-descriptions-item>
  100. <el-descriptions-item label="快递单号" ><span v-if="item!=null">{{item.deliverySn}}</span></el-descriptions-item>
  101. <el-descriptions-item label="ERP编号" ><span v-if="item!=null">{{item.extendOrderId}}</span></el-descriptions-item>
  102. <el-descriptions-item label="物流状态" ><dict-tag :options="deliveryStatusOptions" :value="item.deliveryStatus"/></el-descriptions-item>
  103. <el-descriptions-item label="物流结算状态" ><dict-tag :options="deliveryPayStatusOptions" :value="item.deliveryPayStatus"/></el-descriptions-item>
  104. <el-descriptions-item label="物流结算时间" ><span v-if="item!=null">{{item.deliveryPayTime}}</span></el-descriptions-item>
  105. <el-descriptions-item label="物流结算金额" ><span v-if="item!=null">{{item.deliveryPayMoney}}</span></el-descriptions-item>
  106. <el-descriptions-item label="物流跟踪状态" ><span v-if="item!=null"><dict-tag :options="deliveryTypeOptions" :value="item.deliveryType"/> </span></el-descriptions-item>
  107. <el-descriptions-item label="用户备注" ><span v-if="item!=null">{{item.remark}}</span></el-descriptions-item>
  108. <el-descriptions-item label="档期归属" >
  109. <el-tag prop="scheduleId" v-for="(schedule, index) in scheduleOptions" v-if="item!=null&&item.scheduleId==schedule.id">{{schedule.name}}
  110. </el-tag>
  111. </el-descriptions-item>
  112. <el-descriptions-item label="订单购买类型" ><span v-if="item!=null"><dict-tag :options="orderBuyTypeOptions" :value="item.orderBuyType"/></span></el-descriptions-item>
  113. <el-descriptions-item label=" 公众号/渠道" ><span v-if="item!=null">{{item.channel}}</span></el-descriptions-item>
  114. <el-descriptions-item label=" 渠道" ><span v-if="item!=null"><dict-tag :options="channelOptions" :value="item.orderChannel"/></span></el-descriptions-item>
  115. <el-descriptions-item label=" 企微主体" ><span v-if="item!=null"><dict-tag :options="qwSubjectOptions" :value="item.qwSubject"/></span></el-descriptions-item>
  116. </el-descriptions>
  117. </el-card>
  118. </div>
  119. <div class="contentx" v-if="item!=null" style="padding-bottom: 70px;">
  120. <div class="desct">
  121. 商品信息
  122. </div>
  123. <el-tooltip class="item" effect="dark" :content="showList ? '显示全部' : '隐藏'" placement="top" style="float: right;">
  124. <el-button size="mini" circle icon="el-icon-search" @click="showListD()" />
  125. </el-tooltip>
  126. <el-table border v-if="showProd!=null" :data="showProd" size="small" style="width: 100%;margin-top: 20px" >
  127. <el-table-column label="商品图片" width="150" align="center">
  128. <template slot-scope="scope">
  129. <img :src="JSON.parse(scope.row.jsonInfo).image" style="height: 80px">
  130. </template>
  131. </el-table-column>
  132. <el-table-column label="商品编码" width="300" align="center">
  133. <template slot-scope="scope">
  134. <p>{{JSON.parse(scope.row.jsonInfo).barCode}}</p>
  135. </template>
  136. </el-table-column>
  137. <el-table-column label="商品名称" width="300" align="center">
  138. <template slot-scope="scope">
  139. <p>{{JSON.parse(scope.row.jsonInfo).productName}}</p>
  140. </template>
  141. </el-table-column>
  142. <el-table-column label="单价" width="240" align="center">
  143. <template slot-scope="scope">
  144. <p>¥{{JSON.parse(scope.row.jsonInfo).price.toFixed(2)}}</p>
  145. </template>
  146. </el-table-column>
  147. <el-table-column label="规格" width="240" align="center">
  148. <template slot-scope="scope">
  149. {{JSON.parse(scope.row.jsonInfo).sku}}
  150. </template>
  151. </el-table-column>
  152. <el-table-column label="数量" width="180" align="center">
  153. <template slot-scope="scope">
  154. {{scope.row.num}}
  155. </template>
  156. </el-table-column>
  157. <el-table-column label="处方药" width="240" align="center">
  158. <template slot-scope="scope">
  159. {{scope.row.isPrescribe!=null&&scope.row.isPrescribe==1?'是':'否'}}
  160. </template>
  161. </el-table-column>
  162. <el-table-column label="小计" align="center">
  163. <template slot-scope="scope" >
  164. ¥{{(scope.row.num*JSON.parse(scope.row.jsonInfo).price).toFixed(2)}}
  165. </template>
  166. </el-table-column>
  167. </el-table>
  168. <div style="float: right;margin: 20px" v-if="item.totalPrice!=null">
  169. 合计:<span class="color-danger">¥{{item.totalPrice.toFixed(2)}}</span>
  170. </div>
  171. <div style="float: right;margin: 20px" v-if="item.orderType==2">
  172. 剂数:<span class="color-danger">{{counts}}</span>
  173. </div>
  174. <div style="float: right;margin: 20px" v-if="item.orderType==2">
  175. 制作类型:<span class="color-danger">{{ recipeType === 0 ? '颗粒剂' : recipeType === 1 ? '膏方' : '饮片'}}</span>
  176. </div>
  177. </div>
  178. <div class="contentx" v-if="item!=null">
  179. <div class="desct">
  180. 费用信息
  181. </div>
  182. <el-descriptions :column="3" border >
  183. <el-descriptions-item label="商品合计" ><span v-if="item.totalPrice!=null">¥{{item.totalPrice.toFixed(2)}} </span></el-descriptions-item>
  184. <el-descriptions-item label="处方定价" ><span v-if="item.prescribePrice!=null"> ¥{{item.prescribePrice.toFixed(2)}}</span></el-descriptions-item>
  185. <el-descriptions-item label="处方应付金额" ><span v-if="item.payPrice!=null"> ¥{{item.payPrice.toFixed(2)}}</span></el-descriptions-item>
  186. <el-descriptions-item label="运费" ><span v-if="item.payDelivery!=null">¥{{item.payDelivery.toFixed(2)}}</span></el-descriptions-item>
  187. <el-descriptions-item label="优惠劵" ><span v-if="item.discountMoney!=null">¥{{item.discountMoney.toFixed(2)}}</span></el-descriptions-item>
  188. <el-descriptions-item label="实付金额" ><span v-if="item.payMoney!=null">¥{{item.payMoney.toFixed(2)}}</span></el-descriptions-item>
  189. <el-descriptions-item label="代收金额" ><span v-if="item.payRemain!=null">¥{{item.payRemain.toFixed(2)}}</span></el-descriptions-item>
  190. </el-descriptions>
  191. </div>
  192. <div class="contentx" v-if="item!=null">
  193. <div class="desct">
  194. 支付信息
  195. </div>
  196. <el-table
  197. border
  198. :data="pay"
  199. size="small"
  200. style="width: 100%;margin-top: 20px" >
  201. <el-table-column label="支付单号" align="center" prop="payCode" width="120px" />
  202. <el-table-column label="支付金额" align="center" prop="payMoney" />
  203. <el-table-column label="类型" align="center" prop="payTypeCode" />
  204. <el-table-column label="外部订单号 " align="center" prop="tradeNo" />
  205. <el-table-column label="创建时间" align="center" prop="createTime" />
  206. <el-table-column label="支付时间" align="center" prop="payTime" />
  207. </el-table>
  208. </div>
  209. <div class="contentx" v-if="item!=null">
  210. <div class="desct">
  211. 操作信息
  212. </div>
  213. <el-table style="margin-top: 20px;width: 100%"
  214. ref="orderHistoryTable"
  215. :data="logs" border>
  216. <el-table-column label="操作时间" width="160" align="center">
  217. <template slot-scope="scope">
  218. {{scope.row.changeTime}}
  219. </template>
  220. </el-table-column>
  221. <el-table-column label="备注" align="center">
  222. <template slot-scope="scope">
  223. {{scope.row.changeMessage}}
  224. </template>
  225. </el-table-column>
  226. </el-table>
  227. </div>
  228. <div class="contentx" v-if="item!=null">
  229. <div class="desct">
  230. 分佣信息
  231. </div>
  232. <el-table
  233. border
  234. :data="tuiMoneyLogs"
  235. size="small"
  236. style="width: 100%;margin-top: 20px" >
  237. <el-table-column label="公司名称" align="center" prop="companyName" width="120px" />
  238. <el-table-column label="金额" align="center" prop="money" />
  239. <el-table-column label="余额" align="center" prop="balance" />
  240. <el-table-column label="创建时间" align="center" prop="createTime" />
  241. <el-table-column label="备注" align="center" prop="remark" />
  242. </el-table>
  243. </div>
  244. <el-dialog
  245. width="50%"
  246. title="发货"
  247. :visible.sync="sendVisible"
  248. append-to-body @close="sendCancel">
  249. <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  250. <el-form-item label="快递公司编号" prop="deliveryCode">
  251. <el-input v-model="form.deliveryCode" placeholder="请输入快递公司编号" />
  252. </el-form-item>
  253. <el-form-item label="快递名称" prop="deliveryName">
  254. <el-input v-model="form.deliveryName" placeholder="请输入快递名称" />
  255. </el-form-item>
  256. <el-form-item label="快递单号" prop="deliverySn">
  257. <el-input v-model="form.deliverySn" placeholder="请输入快递单号" />
  258. </el-form-item>
  259. </el-form>
  260. <div slot="footer" class="dialog-footer">
  261. <el-button type="primary" @click="sendGoods">确 定</el-button>
  262. <el-button @click="sendCancel">取 消</el-button>
  263. </div>
  264. </el-dialog>
  265. <el-dialog :title="expressDialog.title" :visible.sync="expressDialog.open" width="600px" append-to-body>
  266. <div v-hasPermi="['his:storeOrder:syncExpress']" >
  267. <el-button size="mini" @click="syncExpress()" >同步快递鸟物流状态</el-button>
  268. </div>
  269. <el-table style="margin-top: 20px;width: 100%"
  270. ref="orderHistoryTable"
  271. :data="traces" border>
  272. <el-table-column label="操作时间" width="160" align="center">
  273. <template slot-scope="scope">
  274. {{scope.row.AcceptTime}}
  275. </template>
  276. </el-table-column>
  277. <el-table-column label="位置" align="center">
  278. <template slot-scope="scope">
  279. {{scope.row.Location}}
  280. </template>
  281. </el-table-column>
  282. <el-table-column label="描述" align="center">
  283. <template slot-scope="scope">
  284. {{scope.row.AcceptStation}}
  285. </template>
  286. </el-table-column>
  287. </el-table>
  288. </el-dialog>
  289. <el-dialog :title="editDy.title" :visible.sync="editDy.open" width="600px" append-to-body>
  290. <el-form ref="editDyForm" :model="editDyForm" :rules="editDyRules" label-width="100px">
  291. <div v-hasPermi="['his:storeOrder:updateErpOrder']" style="margin-bottom: 20px;" >
  292. <el-button size="mini" @click="updateErpOrder" >同步物流单号信息</el-button>
  293. </div>
  294. <el-form-item label="物流公司" prop="deliveryCode" >
  295. <el-select style="width:220px" v-model="editDyForm.deliveryCode" placeholder="请选择" clearable size="small">
  296. <el-option key="SF" label="顺丰" value="SF" />
  297. <el-option key="EMS" label="邮政" value="EMS" />
  298. <el-option key="ZTO" label="中通" value="ZTO" />
  299. <el-option key="STO" label="申通" value="ZTO" />
  300. <el-option key="JD" label="京东" value="JD" />
  301. <el-option key="DBL" label="德邦" value="DBL" />
  302. <el-option key="YD" label="韵达" value="YD" />
  303. </el-select>
  304. </el-form-item>
  305. <el-form-item label="物流单号" prop="deliverySn" >
  306. <el-input v-model="editDyForm.deliverySn" placeholder="请输入物流单号" />
  307. </el-form-item>
  308. </el-form>
  309. <div slot="footer" class="dialog-footer">
  310. <el-button type="primary" @click="submitEditDyForm">确 定</el-button>
  311. <el-button @click="editDy.open = false">取 消</el-button>
  312. </div>
  313. </el-dialog>
  314. <el-dialog :title="erpDialog.title" :visible.sync="erpDialog.open" width="800px" append-to-body>
  315. <div v-if="item!=null&&item.extendOrderId!=null&&item.status==2" style="position: absolute; top: 50px;right: 20px;">
  316. <el-button size="mini" @click="updateExpress()" v-hasPermi="['his:storeOrder:updateExpress']" >同步物流发货</el-button>
  317. </div>
  318. <div class="table-layout" v-if="erpOrder!=null" >
  319. <el-descriptions direction="vertical" :column="3" border >
  320. <el-descriptions-item label="订单编号" > <span v-if="item!=null"> {{erpOrder.code}}</span></el-descriptions-item>
  321. <el-descriptions-item label="是否代收" ><span v-if="item!=null">{{erpOrder.cod?'是':'否'}}</span></el-descriptions-item>
  322. <el-descriptions-item label="快递编号" ><span v-if="item!=null">{{erpOrder.express_code}}</span></el-descriptions-item>
  323. <el-descriptions-item label="快递名称" ><span v-if="item!=null"> {{erpOrder.express_name}}</span></el-descriptions-item>
  324. <el-descriptions-item label="收货人" ><span v-if="item!=null">{{erpOrder.receiver_name}}</span></el-descriptions-item>
  325. <el-descriptions-item label="电话" ><span v-if="item!=null"> {{erpOrder.receiver_mobile}}</span></el-descriptions-item>
  326. <el-descriptions-item label="地址" ><span v-if="item!=null"> {{erpOrder.receiver_address}}</span></el-descriptions-item>
  327. <el-descriptions-item label="运单号" ><span v-if="item!=null"> {{erpOrder.deliverys!=null&&erpOrder.deliverys.length>0?erpOrder.deliverys[0].mail_no:''}}</span></el-descriptions-item>
  328. </el-descriptions>
  329. </div>
  330. </el-dialog>
  331. <el-dialog :title="edit.title" :visible.sync="edit.open" width="600px" append-to-body>
  332. <el-form ref="editForm" :model="editForm" :rules="editRules" label-width="100px">
  333. <el-form-item label="订单状态" prop="status" >
  334. <el-select v-model="editForm.status" placeholder="请选择状态" clearable size="small" filterable>
  335. <el-option
  336. v-for="dict in orderOptions "
  337. :key="dict.dictValue"
  338. :label="dict.dictLabel"
  339. :value="dict.dictValue"
  340. />
  341. </el-select>
  342. </el-form-item>
  343. <el-form-item label="物流状态" prop="deliveryStatus" >
  344. <el-select v-model="editForm.deliveryStatus" placeholder="请选择物流状态" clearable size="small" filterable>
  345. <el-option
  346. v-for="dict in deliveryStatusOptions "
  347. :key="dict.dictValue"
  348. :label="dict.dictLabel"
  349. :value="dict.dictValue"
  350. />
  351. </el-select>
  352. </el-form-item>
  353. <el-form-item label="物流跟踪状态" prop="deliveryType" >
  354. <el-select v-model="editForm.deliveryType" placeholder="请选择状态" clearable size="small" filterable>
  355. <el-option
  356. v-for="dict in deliveryTypeOptions "
  357. :key="dict.dictValue"
  358. :label="dict.dictLabel"
  359. :value="dict.dictValue"
  360. />
  361. </el-select>
  362. </el-form-item>
  363. <el-form-item label="详情地址" prop="userAddress" >
  364. <el-input v-model="editForm.userAddress" placeholder="请输入" />
  365. </el-form-item>
  366. <el-form-item label="收货人电话" prop="userPhone" >
  367. <el-input v-model="editForm.userPhone" placeholder="请输入" />
  368. </el-form-item>
  369. <el-form-item label="备注" prop="remark" >
  370. <el-input v-model="editForm.remark" placeholder="请输入备注" />
  371. </el-form-item>
  372. </el-form>
  373. <div slot="footer" class="dialog-footer">
  374. <el-button type="primary" @click="submitEditForm">确 定</el-button>
  375. </div>
  376. </el-dialog>
  377. <el-drawer
  378. :with-header="false"
  379. :append-to-body="true"
  380. size="75%"
  381. :title="show.title" :visible.sync="show.open">
  382. <inquiryOrderDetails ref="Details" />
  383. </el-drawer>
  384. <el-drawer
  385. :with-header="false"
  386. :append-to-body="true"
  387. size="75%"
  388. :title="pack.title" :visible.sync="pack.open">
  389. <packageOrderDetails ref="packDetails" />
  390. </el-drawer>
  391. <el-dialog
  392. title="聊天记录"
  393. :visible.sync="dialogVisible"
  394. width="80%"
  395. :before-close="msgDialogClose" append-to-body >
  396. <msgDetails ref="msgDetails" :msgDialogClose="msgDialogClose" /><strong></strong>
  397. <span slot="footer" class="dialog-footer">
  398. <el-button @click="msgDialogClose">取 消</el-button>
  399. <el-button type="primary" @click="msgDialogClose">确 定</el-button>
  400. </span>
  401. </el-dialog>
  402. <el-drawer
  403. :with-header="false"
  404. :append-to-body="true"
  405. size="75%"
  406. :title="prescribeDialog.title" :visible.sync="prescribeDialog.open">
  407. <prescribeDetails ref="prescribeDetails" />
  408. </el-drawer>
  409. </div>
  410. </template>
  411. <script>
  412. import {getMsgFollow,sendMsg,msgList,updateMoney,getGoods,getEroOrder,editTuiMoney,updateDelivery,createErpOrder,updateExpress,updateErp, afterSales,sendgoods,logList,listOrder,getExpress,syncExpress, listOrderitem,getOrder, delOrder, addOrder, updateStoreOrder, exportOrder,payment,tuiOrder ,getPrescribe,getOrderUserPhone,returnCost} from "@/api/his/storeOrder";
  413. import inquiryOrderDetails from '../his/inquiryOrderDetails.vue';
  414. import packageOrderDetails from '../his/packageOrderDetails2.vue';
  415. import prescribeDetails from '../his/prescribeDetails.vue';
  416. import msgDetails from '../../components/his/followMsgDetails.vue';
  417. import { getTcmScheduleList } from "@/api/company/schedule";
  418. export default {
  419. name: "orderDe",
  420. props:["data"],
  421. components: { inquiryOrderDetails,packageOrderDetails,prescribeDetails ,msgDetails},
  422. data() {
  423. return {
  424. expressDialog:{
  425. title:"物流信息",
  426. open:false,
  427. },
  428. editDy:{
  429. title:"修改物流单号",
  430. open:false,
  431. },
  432. sourceOptions:[],
  433. prescribeDialog:{
  434. title:"处方单",
  435. open:false,
  436. },
  437. followDialogVisible:false,
  438. dialogVisible:false,
  439. total: 0,
  440. msgForm:{
  441. pageNum: 1,
  442. pageSize: 10,
  443. userId:null,
  444. followDoctorId:null,
  445. },
  446. editDyForm:{
  447. orderId:null,
  448. deliveryId:null,
  449. deliveryCode:null,
  450. },
  451. showList:true,
  452. edit:{
  453. title:"修改订单",
  454. open:false,
  455. },
  456. erpDialog:{
  457. title:"ERP订单信息",
  458. open:false,
  459. },
  460. show:{
  461. title:"问诊详情",
  462. open:false,
  463. },
  464. pack:{
  465. title:"套餐包",
  466. open:false,
  467. },
  468. followList:[],
  469. counts:null,
  470. recipeType:null,
  471. money:null,
  472. moneyVisible:false,
  473. rules:{},
  474. sendVisible:false,
  475. logs:[],
  476. pay:[],
  477. nickName:null,
  478. storeName:null,
  479. PayOptions:[],
  480. orderOptions:[],
  481. payStatusOptions:[],
  482. express:null,
  483. traces:[],
  484. msg:[],
  485. sexOptions:[],
  486. refundOptions:[],
  487. channelOptions:[],
  488. qwSubjectOptions:[],
  489. tuiOptions:[],
  490. orOptions:[],
  491. storeOPtions:[],
  492. deliveryStatusOptions:[],
  493. deliveryPayStatusOptions:[],
  494. deliveryTypeOptions:[],
  495. orderTypeOptions:[],
  496. orderBuyTypeOptions:[],
  497. scheduleOptions:[],
  498. item:null,
  499. tuiMoneyLogs:[],
  500. erpOrder:null,
  501. prod:null,
  502. showProd:null,
  503. editForm:{
  504. orderId:null,
  505. status:null,
  506. userAddress:null,
  507. deliveryStatus:null,
  508. deliveryType:null,
  509. userPhone:null,
  510. remark:"",
  511. },
  512. editDyRules:{
  513. deliverySn: [
  514. { required: true, message: "物流单号不能为空", trigger: "blur" }
  515. ],
  516. deliveryCode: [
  517. { required: true, message: "物流公司不能为空", trigger: "blur" }
  518. ],
  519. },
  520. editRules:{
  521. userAddress: [
  522. { required: true, message: "收货地址不能为空", trigger: "blur" }
  523. ],
  524. },
  525. mrules:{
  526. },
  527. form: {
  528. deliveryCode: null,
  529. deliveryName:null,
  530. deliverySn:null,
  531. orderId:null,
  532. }
  533. }
  534. },
  535. created() {
  536. getTcmScheduleList().then(response => {
  537. this.scheduleOptions = response.data;
  538. });
  539. this.getDicts("sys_store_pay_type").then(response => {
  540. this.PayOptions = response.data;
  541. });
  542. this.getDicts("sys_order_status").then(response => {
  543. this.orderOptions = response.data;
  544. });
  545. this.getDicts("sys_order_pay").then(response => {
  546. this.payStatusOptions = response.data;
  547. });
  548. this.getDicts("sys_order_source").then(response => {
  549. this.sourceOptions = response.data;
  550. });
  551. this.getDicts("sys_store_order_type").then(response => {
  552. this.orderTypeOptions = response.data;
  553. });
  554. this.getDicts("sys_store_order_buy_type").then(response => {
  555. this.orderBuyTypeOptions = response.data;
  556. });
  557. this.getDicts("sys_refund_status").then(response => {
  558. this.refundOptions = response.data;
  559. });
  560. this.getDicts("sys_store_channel").then(response => {
  561. this.channelOptions = response.data;
  562. });
  563. this.getDicts("sys_store_qw_subject").then(response => {
  564. this.qwSubjectOptions = response.data;
  565. });
  566. this.getDicts("sys_tui_money_status").then(response => {
  567. this.tuiOptions = response.data;
  568. });
  569. this.getDicts("sys_company_or").then(response => {
  570. this.orOptions = response.data;
  571. });
  572. this.getDicts("sys_patient_sex").then(response => {
  573. this.sexOptions = response.data;
  574. });
  575. this.getDicts("sys_store_delivery_pay_status").then(response => {
  576. this.deliveryPayStatusOptions = response.data;
  577. });
  578. this.getDicts("sys_store_order_delivery_status").then(response => {
  579. this.deliveryStatusOptions = response.data;
  580. });
  581. this.getDicts("sys_delivery_type").then(response => {
  582. this.deliveryTypeOptions = response.data;
  583. });
  584. },
  585. methods: {
  586. followMsg(row){
  587. const userId = this.item.userId;
  588. const followDoctorId =this.item.followDoctorId;
  589. const doctorName = this.item.doctorName;
  590. const patientName = this.item.patientName;
  591. setTimeout(() => {
  592. this.$refs.msgDetails.getDetails(userId,followDoctorId,doctorName,patientName);
  593. }, 500);
  594. this.dialogVisible = true;
  595. },
  596. msgDialogClose(){
  597. this.dialogVisible = false;
  598. },
  599. getPrescribeOrder(){
  600. this.prescribeDialog.open=true;
  601. setTimeout(() => {
  602. this.$refs.prescribeDetails.getDetails(this.item.prescribeId);
  603. }, 1);
  604. },
  605. handlePhone(){
  606. const orderId = this.item.orderId;
  607. getOrderUserPhone(orderId).then(response =>{
  608. this.item.userPhone = response.userPhone;
  609. })
  610. },
  611. editDelivery(){
  612. this.editDy.open = true;
  613. this.editDyForm.orderId = this.item.orderId;
  614. },
  615. showListD(){
  616. if(this.showList){
  617. this.showProd=this.prod
  618. }else{
  619. this.showProd=[this.prod[0]]
  620. }
  621. this.showList=this.showList?false:true;
  622. },
  623. showExpress(){
  624. this.expressDialog.open=true;
  625. getExpress(this.item.orderId).then(response => {
  626. this.express = response.data;
  627. if(this.express!=null&&this.express.Traces!=null){
  628. this.traces=this.express.Traces
  629. }
  630. });
  631. },
  632. updateErpOrder(){
  633. var that=this;
  634. this.$confirm('确定同步物流单号信息吗', "警告", {
  635. confirmButtonText: "确定",
  636. cancelButtonText: "取消",
  637. type: "warning"
  638. }).then(function() {
  639. var data={orderId:that.item.orderId}
  640. return updateErp(data);
  641. }).then(() => {
  642. this.msgSuccess("操作成功");
  643. getOrder(this.item.orderId).then(response => {
  644. this.item=response.data
  645. that.getlogList(this.item.orderId);
  646. that.$parent.$parent.getList();
  647. });
  648. this.editDy.open = false
  649. }).catch(function() {});
  650. },
  651. sendFollowMsg(){
  652. var that=this;
  653. this.$confirm('是否确认发送消息?', "警告", {
  654. confirmButtonText: "确定",
  655. cancelButtonText: "取消",
  656. type: "warning"
  657. }).then(function() {
  658. return sendMsg(that.item.orderId);
  659. }).then(() => {
  660. this.msgSuccess("操作成功");
  661. }).catch(function() {});
  662. },
  663. handleClose1(){
  664. this.dialogVisible=false;
  665. },
  666. handleClose2(){
  667. this.followDialogVisible=false;
  668. },
  669. follow(row){
  670. getMsgFollow(row).then(response => {
  671. if(response.data.formJson!=null&&response.data.formJson!=''&&response.data.writeStatus==1){
  672. this.messageFollowList=JSON.parse(response.data.formJson );
  673. this.followDialogVisible=true;
  674. }else{
  675. this.$message({
  676. message: '未填写随访单',
  677. type: 'info'
  678. });
  679. return
  680. }
  681. });
  682. },
  683. //修改订单状态
  684. submitEditForm(){
  685. this.$refs["editForm"].validate(valid => {
  686. if (valid) {
  687. updateStoreOrder(this.editForm).then(response => {
  688. if (response.code === 200) {
  689. this.msgSuccess("操作成功");
  690. this.edit.open = false;
  691. getOrder(this.item.orderId).then(response => {
  692. this.item=response.data
  693. that.getlogList(this.item.orderId);
  694. that.$parent.$parent.getList();
  695. });
  696. }
  697. });
  698. }
  699. });
  700. },
  701. editOrder(){
  702. this.edit.open=true;
  703. this.editForm.orderId=this.item.orderId;
  704. this.editForm.remark=this.item.remark;
  705. this.editForm.userAddress = this.item.userAddress.toString();
  706. this.editForm.userPhone = this.item.userPhone.toString();
  707. this.editForm.status = this.item.status.toString();
  708. this.editForm.deliveryType = this.item.deliveryType.toString();
  709. this.editForm.deliveryStatus = this.item.deliveryStatus.toString();
  710. },
  711. updateExpress(){
  712. var that=this;
  713. this.$confirm('定同步物流信息吗,同步后将自动发货?', "警告", {
  714. confirmButtonText: "确定",
  715. cancelButtonText: "取消",
  716. type: "warning"
  717. }).then(function() {
  718. var data=that.item.orderId
  719. return updateExpress(data);
  720. }).then(() => {
  721. this.msgSuccess("操作成功");
  722. getOrder(this.item.orderId).then(response => {
  723. this.item=response.data
  724. that.getlogList(this.item.orderId);
  725. that.$parent.$parent.getList();
  726. });
  727. }).catch(function() {});
  728. },
  729. addErpOrder(){
  730. var that=this;
  731. this.$confirm('是否确认推送管易?', "警告", {
  732. confirmButtonText: "确定",
  733. cancelButtonText: "取消",
  734. type: "warning"
  735. }).then(function() {
  736. var data=that.item.orderId
  737. return createErpOrder(data);
  738. }).then(() => {
  739. this.msgSuccess("操作成功");
  740. getOrder(this.item.orderId).then(response => {
  741. this.item=response.data
  742. that.getlogList(this.item.orderId);
  743. that.$parent.$parent.getList();
  744. });
  745. }).catch(function() {});
  746. },
  747. showErpOrder(){
  748. this.erpDialog.open=true;
  749. var data=this.item.extendOrderId;
  750. getEroOrder(data).then(response => {
  751. this.erp = response.data;
  752. if(response.data.orders!=null&&response.data.orders.length==1){
  753. this.erpOrder=response.data.orders[0]
  754. }
  755. });
  756. },
  757. editTuiMoney1(){
  758. var that=this;
  759. this.$confirm('是否解冻此订单推广佣金吗?', "警告", {
  760. confirmButtonText: "确定",
  761. cancelButtonText: "取消",
  762. type: "warning"
  763. }).then(function() {
  764. var data=that.item.orderId;
  765. return editTuiMoney(data);
  766. }).then(() => {
  767. this.msgSuccess("操作成功");
  768. getOrder(this.item.orderId).then(response => {
  769. this.item=response.data
  770. that.getlogList(this.item.orderId);
  771. that.$parent.$parent.getList();
  772. });
  773. }).catch(function() {});
  774. },
  775. editTuiMoney2(){
  776. var that=this;
  777. this.$confirm('是否冻结此订单推广佣金吗?', "警告", {
  778. confirmButtonText: "确定",
  779. cancelButtonText: "取消",
  780. type: "warning"
  781. }).then(function() {
  782. var data=that.item.orderId;
  783. return editTuiMoney(data);
  784. }).then(() => {
  785. this.msgSuccess("操作成功");
  786. getOrder(this.item.orderId).then(response => {
  787. this.item=response.data
  788. that.getlogList(this.item.orderId);
  789. that.$parent.$parent.getList();
  790. });
  791. }).catch(function() {});
  792. },
  793. returnCost(){
  794. var that=this;
  795. this.$confirm('是否退还此订单成本吗?', "警告", {
  796. confirmButtonText: "确定",
  797. cancelButtonText: "取消",
  798. type: "warning"
  799. }).then(function() {
  800. var data=that.item.orderId;
  801. return returnCost(data);
  802. }).then(() => {
  803. this.msgSuccess("操作成功");
  804. this.getDetails(this.item.orderId,null,null)
  805. }).catch(function() {});
  806. },
  807. moneyCancel(){
  808. this.money=null;
  809. this.moneyVisible=false;
  810. },
  811. refund(){
  812. var that=this;
  813. this.$confirm('是否确认申请退款?', "警告", {
  814. confirmButtonText: "确定",
  815. cancelButtonText: "取消",
  816. type: "warning"
  817. }).then(function() {
  818. var data={
  819. orderId:that.item.orderId
  820. }
  821. return afterSales(data);
  822. }).then(() => {
  823. this.msgSuccess("操作成功");
  824. getOrder(this.item.orderId).then(response => {
  825. this.item = response.data;
  826. this.getlogList(this.item.orderId);
  827. this.$parent.$parent.getList();
  828. });
  829. }).catch(function() {});
  830. },
  831. finishOrder(){
  832. var that=this;
  833. this.$confirm('是否确认客户已收货?', "警告", {
  834. confirmButtonText: "确定",
  835. cancelButtonText: "取消",
  836. type: "warning"
  837. }).then(function() {
  838. var data={
  839. orderId:that.item.orderId
  840. }
  841. return getGoods(data);
  842. }).then(() => {
  843. this.msgSuccess("操作成功");
  844. getOrder(this.item.orderId).then(response => {
  845. this.item = response.data;
  846. this.getlistOrderitem(this.item.orderId);
  847. this.getlogList(this.item.orderId);
  848. this.$parent.$parent.getList();
  849. });
  850. }).catch(function() {});
  851. },
  852. syncExpress(){
  853. var that=this;
  854. this.$confirm('确定同步物流状态吗', "警告", {
  855. confirmButtonText: "确定",
  856. cancelButtonText: "取消",
  857. type: "warning"
  858. }).then(function() {
  859. var data=that.item.orderId
  860. return syncExpress(data);
  861. }).then(() => {
  862. this.msgSuccess("操作成功");
  863. this.expressDialog.open=false
  864. getOrder(this.item.orderId).then(response => {
  865. this.item=response.data
  866. that.getlogList(this.item.orderId);
  867. that.$parent.$parent.getList();
  868. });
  869. }).catch(function() {});
  870. },
  871. getInquiryOrder(){
  872. this.show.open=true;
  873. setTimeout(() => {
  874. this.$refs.Details.getDetails(this.item.inquiryOrderId);
  875. }, 1);
  876. },
  877. getPackageOrder(){
  878. this.pack.open=true;
  879. console.log(this.item.packageOrderId)
  880. setTimeout(() => {
  881. this.$refs.packDetails.getDetails(this.item.packageOrderId);
  882. }, 1);
  883. },
  884. tuiOrder(){
  885. var that=this;
  886. this.$confirm('是否确认推送到智慧药房?', "警告", {
  887. confirmButtonText: "确定",
  888. cancelButtonText: "取消",
  889. type: "warning"
  890. }).then(function() {
  891. var data={
  892. orderId:that.item.orderId
  893. }
  894. return tuiOrder(data);
  895. }).then(() => {
  896. this.msgSuccess("操作成功");
  897. getOrder(this.item.orderId).then(response => {
  898. this.item = response.data;
  899. this.getlogList(this.item.orderId);
  900. this.$parent.$parent.getList();
  901. });
  902. }).catch(function() {});
  903. },
  904. sendCancel(){
  905. this.sendVisible = false;
  906. this.form={
  907. deliveryCode: null,
  908. deliveryName:null,
  909. deliverySn:null,
  910. orderId:null,
  911. }
  912. },
  913. sendGoods(){
  914. this.form.orderId=this.item.orderId;
  915. sendgoods(this.form).then(response => {
  916. this.msgSuccess("修改成功");
  917. this.sendVisible = false;
  918. getOrder(this.item.orderId).then(response => {
  919. this.item = response.data;
  920. this.getlogList(this.item.orderId);
  921. this.$parent.$parent.getList();
  922. });
  923. this.form={
  924. deliveryCode: null,
  925. deliveryName:null,
  926. deliverySn:null,
  927. orderId:null,
  928. }
  929. });
  930. },
  931. getDetails(orderId,nickName,storeName) {
  932. this.nickName=nickName;
  933. this.storeName=storeName;
  934. this.item=null;
  935. this.tuiMoneyLogs=null;
  936. getOrder(orderId).then(response => {
  937. this.item = response.data;
  938. this.tuiMoneyLogs = response.tuiMoneyLogs;
  939. this.getlistOrderitem(orderId);
  940. this.getlogList(orderId);
  941. this.getPayment(orderId);
  942. this.msgForm.userId=response.data.userId;
  943. this.msgForm.followDoctorId=response.data.followDoctorId;
  944. if(this.item.orderType==2){
  945. this.getCount(this.item.prescribeId);
  946. }
  947. });
  948. },
  949. getCount(id){
  950. getPrescribe(id).then(response => {
  951. this.recipeType = response.data.recipeType;
  952. this.counts = JSON.parse(response.data.usageJson).counts
  953. });
  954. },
  955. getOrder(){
  956. getOrder(this.item.orderId).then(response => {
  957. this.item = response.data;
  958. this.getlistOrderitem(this.item.orderId);
  959. this.getlogList(this.item.orderId);
  960. this.getPayment(this.item.orderId);
  961. if(this.item.orderType==2){
  962. this.getCount(this.item.prescribeId);
  963. }
  964. });
  965. },
  966. submitEditDyForm(){
  967. this.$refs["editDyForm"].validate(valid => {
  968. if (valid) {
  969. console.log(this.editDyForm)
  970. updateDelivery(this.editDyForm).then(response => {
  971. if (response.code === 200) {
  972. this.msgSuccess("操作成功");
  973. this.editDy.open = false;
  974. getOrder(this.item.orderId).then(response => {
  975. this.item = response.data;
  976. this.getlogList(this.item.orderId);
  977. this.$parent.$parent.getList();
  978. });
  979. }
  980. });
  981. }
  982. });
  983. },
  984. getlistOrderitem(orderId){
  985. listOrderitem(orderId).then(response => {
  986. this.prod = response.rows;
  987. this.showProd=[this.prod[0]]
  988. });
  989. },
  990. getlogList(orderId){
  991. logList(orderId).then(response => {
  992. this.logs = response.rows;
  993. });
  994. },
  995. getPayment(orderId){
  996. payment(orderId).then(response => {
  997. console.log(response)
  998. this.pay = response.data;
  999. });
  1000. }
  1001. }
  1002. }
  1003. </script>
  1004. <style>
  1005. .content{
  1006. height: 100%;
  1007. background-color: #fff;
  1008. padding: 0px 20px;
  1009. }
  1010. </style>
  1011. <style>
  1012. .contentx{
  1013. height: 100%;
  1014. background-color: #fff;
  1015. padding: 0px 20px 20px;
  1016. margin: 20px;
  1017. }
  1018. .el-descriptions-item__label.is-bordered-label{
  1019. font-weight: normal;
  1020. }
  1021. .el-descriptions-item__content {
  1022. max-width: 150px;
  1023. min-width: 100px;
  1024. }
  1025. .desct{
  1026. padding-top: 20px;
  1027. padding-bottom: 20px;
  1028. color: #524b4a;
  1029. font-weight: bold;
  1030. }
  1031. </style>
  1032. <style scoped>
  1033. .order-content{
  1034. margin: 10px;
  1035. }
  1036. .operate-container {
  1037. background: #F2F6FC;
  1038. height: 60px;
  1039. margin: -20px -20px 0;
  1040. line-height: 60px;
  1041. }
  1042. .operate-button-container {
  1043. float: right;
  1044. margin-right: 20px
  1045. }
  1046. </style>
  1047. <style scoped>
  1048. .chat-records {
  1049. overflow-y: auto;
  1050. }
  1051. .timestamp {
  1052. font-size: 12px;
  1053. color: #A9A9A9;
  1054. }
  1055. .chat-record {
  1056. margin: 10px;
  1057. flex-direction: column;
  1058. align-items: flex-start;
  1059. }
  1060. .sent {
  1061. background-color: #fbfdff;
  1062. color: #000839;
  1063. }
  1064. .sent .timestamp {
  1065. float: right;
  1066. }
  1067. .right{
  1068. float: right;
  1069. }
  1070. .received {
  1071. background-color: #fbfdff;
  1072. color: #000000;
  1073. }
  1074. .el-descriptions-item__content {
  1075. max-width: 150px;
  1076. min-width: 100px;
  1077. }
  1078. .order-content{
  1079. margin: 10px;
  1080. }
  1081. .operate-container {
  1082. background: #F2F6FC;
  1083. height: 60px;
  1084. margin: -20px -20px 0;
  1085. line-height: 60px;
  1086. }
  1087. .operate-button-container {
  1088. float: right;
  1089. margin-right: 20px
  1090. }
  1091. </style>