storeOrderDetails.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141
  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="JD" label="京东" value="JD" />
  300. <el-option key="DBL" label="德邦" value="DBL" />
  301. <el-option key="YD" label="韵达" value="YD" />
  302. </el-select>
  303. </el-form-item>
  304. <el-form-item label="物流单号" prop="deliverySn" >
  305. <el-input v-model="editDyForm.deliverySn" placeholder="请输入物流单号" />
  306. </el-form-item>
  307. </el-form>
  308. <div slot="footer" class="dialog-footer">
  309. <el-button type="primary" @click="submitEditDyForm">确 定</el-button>
  310. <el-button @click="editDy.open = false">取 消</el-button>
  311. </div>
  312. </el-dialog>
  313. <el-dialog :title="erpDialog.title" :visible.sync="erpDialog.open" width="800px" append-to-body>
  314. <div v-if="item!=null&&item.extendOrderId!=null&&item.status==2" style="position: absolute; top: 50px;right: 20px;">
  315. <el-button size="mini" @click="updateExpress()" v-hasPermi="['his:storeOrder:updateExpress']" >同步物流发货</el-button>
  316. </div>
  317. <div class="table-layout" v-if="erpOrder!=null" >
  318. <el-descriptions direction="vertical" :column="3" border >
  319. <el-descriptions-item label="订单编号" > <span v-if="item!=null"> {{erpOrder.code}}</span></el-descriptions-item>
  320. <el-descriptions-item label="是否代收" ><span v-if="item!=null">{{erpOrder.cod?'是':'否'}}</span></el-descriptions-item>
  321. <el-descriptions-item label="快递编号" ><span v-if="item!=null">{{erpOrder.express_code}}</span></el-descriptions-item>
  322. <el-descriptions-item label="快递名称" ><span v-if="item!=null"> {{erpOrder.express_name}}</span></el-descriptions-item>
  323. <el-descriptions-item label="收货人" ><span v-if="item!=null">{{erpOrder.receiver_name}}</span></el-descriptions-item>
  324. <el-descriptions-item label="电话" ><span v-if="item!=null"> {{erpOrder.receiver_mobile}}</span></el-descriptions-item>
  325. <el-descriptions-item label="地址" ><span v-if="item!=null"> {{erpOrder.receiver_address}}</span></el-descriptions-item>
  326. <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>
  327. </el-descriptions>
  328. </div>
  329. </el-dialog>
  330. <el-dialog :title="edit.title" :visible.sync="edit.open" width="600px" append-to-body>
  331. <el-form ref="editForm" :model="editForm" :rules="editRules" label-width="100px">
  332. <el-form-item label="订单状态" prop="status" >
  333. <el-select v-model="editForm.status" placeholder="请选择状态" clearable size="small" filterable>
  334. <el-option
  335. v-for="dict in orderOptions "
  336. :key="dict.dictValue"
  337. :label="dict.dictLabel"
  338. :value="dict.dictValue"
  339. />
  340. </el-select>
  341. </el-form-item>
  342. <el-form-item label="物流状态" prop="deliveryStatus" >
  343. <el-select v-model="editForm.deliveryStatus" placeholder="请选择物流状态" clearable size="small" filterable>
  344. <el-option
  345. v-for="dict in deliveryStatusOptions "
  346. :key="dict.dictValue"
  347. :label="dict.dictLabel"
  348. :value="dict.dictValue"
  349. />
  350. </el-select>
  351. </el-form-item>
  352. <el-form-item label="物流跟踪状态" prop="deliveryType" >
  353. <el-select v-model="editForm.deliveryType" placeholder="请选择状态" clearable size="small" filterable>
  354. <el-option
  355. v-for="dict in deliveryTypeOptions "
  356. :key="dict.dictValue"
  357. :label="dict.dictLabel"
  358. :value="dict.dictValue"
  359. />
  360. </el-select>
  361. </el-form-item>
  362. <el-form-item label="详情地址" prop="userAddress" >
  363. <el-input v-model="editForm.userAddress" placeholder="请输入" />
  364. </el-form-item>
  365. <el-form-item label="收货人电话" prop="userPhone" >
  366. <el-input v-model="editForm.userPhone" placeholder="请输入" />
  367. </el-form-item>
  368. <el-form-item label="备注" prop="remark" >
  369. <el-input v-model="editForm.remark" placeholder="请输入备注" />
  370. </el-form-item>
  371. </el-form>
  372. <div slot="footer" class="dialog-footer">
  373. <el-button type="primary" @click="submitEditForm">确 定</el-button>
  374. </div>
  375. </el-dialog>
  376. <el-drawer
  377. :with-header="false"
  378. :append-to-body="true"
  379. size="75%"
  380. :title="show.title" :visible.sync="show.open">
  381. <inquiryOrderDetails ref="Details" />
  382. </el-drawer>
  383. <el-drawer
  384. :with-header="false"
  385. :append-to-body="true"
  386. size="75%"
  387. :title="pack.title" :visible.sync="pack.open">
  388. <packageOrderDetails ref="packDetails" />
  389. </el-drawer>
  390. <el-dialog
  391. title="聊天记录"
  392. :visible.sync="dialogVisible"
  393. width="80%"
  394. :before-close="msgDialogClose" append-to-body >
  395. <msgDetails ref="msgDetails" :msgDialogClose="msgDialogClose" /><strong></strong>
  396. <span slot="footer" class="dialog-footer">
  397. <el-button @click="msgDialogClose">取 消</el-button>
  398. <el-button type="primary" @click="msgDialogClose">确 定</el-button>
  399. </span>
  400. </el-dialog>
  401. <el-drawer
  402. :with-header="false"
  403. :append-to-body="true"
  404. size="75%"
  405. :title="prescribeDialog.title" :visible.sync="prescribeDialog.open">
  406. <prescribeDetails ref="prescribeDetails" />
  407. </el-drawer>
  408. </div>
  409. </template>
  410. <script>
  411. 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";
  412. import inquiryOrderDetails from '../his/inquiryOrderDetails.vue';
  413. import packageOrderDetails from '../his/packageOrderDetails2.vue';
  414. import prescribeDetails from '../his/prescribeDetails.vue';
  415. import msgDetails from '../../components/his/followMsgDetails.vue';
  416. import { getTcmScheduleList } from "@/api/company/schedule";
  417. export default {
  418. name: "orderDe",
  419. props:["data"],
  420. components: { inquiryOrderDetails,packageOrderDetails,prescribeDetails ,msgDetails},
  421. data() {
  422. return {
  423. expressDialog:{
  424. title:"物流信息",
  425. open:false,
  426. },
  427. editDy:{
  428. title:"修改物流单号",
  429. open:false,
  430. },
  431. sourceOptions:[],
  432. prescribeDialog:{
  433. title:"处方单",
  434. open:false,
  435. },
  436. followDialogVisible:false,
  437. dialogVisible:false,
  438. total: 0,
  439. msgForm:{
  440. pageNum: 1,
  441. pageSize: 10,
  442. userId:null,
  443. followDoctorId:null,
  444. },
  445. editDyForm:{
  446. orderId:null,
  447. deliveryId:null,
  448. deliveryCode:null,
  449. },
  450. showList:true,
  451. edit:{
  452. title:"修改订单",
  453. open:false,
  454. },
  455. erpDialog:{
  456. title:"ERP订单信息",
  457. open:false,
  458. },
  459. show:{
  460. title:"问诊详情",
  461. open:false,
  462. },
  463. pack:{
  464. title:"套餐包",
  465. open:false,
  466. },
  467. followList:[],
  468. counts:null,
  469. recipeType:null,
  470. money:null,
  471. moneyVisible:false,
  472. rules:{},
  473. sendVisible:false,
  474. logs:[],
  475. pay:[],
  476. nickName:null,
  477. storeName:null,
  478. PayOptions:[],
  479. orderOptions:[],
  480. payStatusOptions:[],
  481. express:null,
  482. traces:[],
  483. msg:[],
  484. sexOptions:[],
  485. refundOptions:[],
  486. channelOptions:[],
  487. qwSubjectOptions:[],
  488. tuiOptions:[],
  489. orOptions:[],
  490. storeOPtions:[],
  491. deliveryStatusOptions:[],
  492. deliveryPayStatusOptions:[],
  493. deliveryTypeOptions:[],
  494. orderTypeOptions:[],
  495. orderBuyTypeOptions:[],
  496. scheduleOptions:[],
  497. item:null,
  498. tuiMoneyLogs:[],
  499. erpOrder:null,
  500. prod:null,
  501. showProd:null,
  502. editForm:{
  503. orderId:null,
  504. status:null,
  505. userAddress:null,
  506. deliveryStatus:null,
  507. deliveryType:null,
  508. userPhone:null,
  509. remark:"",
  510. },
  511. editDyRules:{
  512. deliverySn: [
  513. { required: true, message: "物流单号不能为空", trigger: "blur" }
  514. ],
  515. deliveryCode: [
  516. { required: true, message: "物流公司不能为空", trigger: "blur" }
  517. ],
  518. },
  519. editRules:{
  520. userAddress: [
  521. { required: true, message: "收货地址不能为空", trigger: "blur" }
  522. ],
  523. },
  524. mrules:{
  525. },
  526. form: {
  527. deliveryCode: null,
  528. deliveryName:null,
  529. deliverySn:null,
  530. orderId:null,
  531. }
  532. }
  533. },
  534. created() {
  535. getTcmScheduleList().then(response => {
  536. this.scheduleOptions = response.data;
  537. });
  538. this.getDicts("sys_store_pay_type").then(response => {
  539. this.PayOptions = response.data;
  540. });
  541. this.getDicts("sys_order_status").then(response => {
  542. this.orderOptions = response.data;
  543. });
  544. this.getDicts("sys_order_pay").then(response => {
  545. this.payStatusOptions = response.data;
  546. });
  547. this.getDicts("sys_order_source").then(response => {
  548. this.sourceOptions = response.data;
  549. });
  550. this.getDicts("sys_store_order_type").then(response => {
  551. this.orderTypeOptions = response.data;
  552. });
  553. this.getDicts("sys_store_order_buy_type").then(response => {
  554. this.orderBuyTypeOptions = response.data;
  555. });
  556. this.getDicts("sys_refund_status").then(response => {
  557. this.refundOptions = response.data;
  558. });
  559. this.getDicts("sys_store_channel").then(response => {
  560. this.channelOptions = response.data;
  561. });
  562. this.getDicts("sys_store_qw_subject").then(response => {
  563. this.qwSubjectOptions = response.data;
  564. });
  565. this.getDicts("sys_tui_money_status").then(response => {
  566. this.tuiOptions = response.data;
  567. });
  568. this.getDicts("sys_company_or").then(response => {
  569. this.orOptions = response.data;
  570. });
  571. this.getDicts("sys_patient_sex").then(response => {
  572. this.sexOptions = response.data;
  573. });
  574. this.getDicts("sys_store_delivery_pay_status").then(response => {
  575. this.deliveryPayStatusOptions = response.data;
  576. });
  577. this.getDicts("sys_store_order_delivery_status").then(response => {
  578. this.deliveryStatusOptions = response.data;
  579. });
  580. this.getDicts("sys_delivery_type").then(response => {
  581. this.deliveryTypeOptions = response.data;
  582. });
  583. },
  584. methods: {
  585. followMsg(row){
  586. const userId = this.item.userId;
  587. const followDoctorId =this.item.followDoctorId;
  588. const doctorName = this.item.doctorName;
  589. const patientName = this.item.patientName;
  590. setTimeout(() => {
  591. this.$refs.msgDetails.getDetails(userId,followDoctorId,doctorName,patientName);
  592. }, 500);
  593. this.dialogVisible = true;
  594. },
  595. msgDialogClose(){
  596. this.dialogVisible = false;
  597. },
  598. getPrescribeOrder(){
  599. this.prescribeDialog.open=true;
  600. setTimeout(() => {
  601. this.$refs.prescribeDetails.getDetails(this.item.prescribeId);
  602. }, 1);
  603. },
  604. handlePhone(){
  605. const orderId = this.item.orderId;
  606. getOrderUserPhone(orderId).then(response =>{
  607. this.item.userPhone = response.userPhone;
  608. })
  609. },
  610. editDelivery(){
  611. this.editDy.open = true;
  612. this.editDyForm.orderId = this.item.orderId;
  613. },
  614. showListD(){
  615. if(this.showList){
  616. this.showProd=this.prod
  617. }else{
  618. this.showProd=[this.prod[0]]
  619. }
  620. this.showList=this.showList?false:true;
  621. },
  622. showExpress(){
  623. this.expressDialog.open=true;
  624. getExpress(this.item.orderId).then(response => {
  625. this.express = response.data;
  626. if(this.express!=null&&this.express.Traces!=null){
  627. this.traces=this.express.Traces
  628. }
  629. });
  630. },
  631. updateErpOrder(){
  632. var that=this;
  633. this.$confirm('确定同步物流单号信息吗', "警告", {
  634. confirmButtonText: "确定",
  635. cancelButtonText: "取消",
  636. type: "warning"
  637. }).then(function() {
  638. var data={orderId:that.item.orderId}
  639. return updateErp(data);
  640. }).then(() => {
  641. this.msgSuccess("操作成功");
  642. getOrder(this.item.orderId).then(response => {
  643. this.item=response.data
  644. that.getlogList(this.item.orderId);
  645. that.$parent.$parent.getList();
  646. });
  647. this.editDy.open = false
  648. }).catch(function() {});
  649. },
  650. sendFollowMsg(){
  651. var that=this;
  652. this.$confirm('是否确认发送消息?', "警告", {
  653. confirmButtonText: "确定",
  654. cancelButtonText: "取消",
  655. type: "warning"
  656. }).then(function() {
  657. return sendMsg(that.item.orderId);
  658. }).then(() => {
  659. this.msgSuccess("操作成功");
  660. }).catch(function() {});
  661. },
  662. handleClose1(){
  663. this.dialogVisible=false;
  664. },
  665. handleClose2(){
  666. this.followDialogVisible=false;
  667. },
  668. follow(row){
  669. getMsgFollow(row).then(response => {
  670. if(response.data.formJson!=null&&response.data.formJson!=''&&response.data.writeStatus==1){
  671. this.messageFollowList=JSON.parse(response.data.formJson );
  672. this.followDialogVisible=true;
  673. }else{
  674. this.$message({
  675. message: '未填写随访单',
  676. type: 'info'
  677. });
  678. return
  679. }
  680. });
  681. },
  682. //修改订单状态
  683. submitEditForm(){
  684. this.$refs["editForm"].validate(valid => {
  685. if (valid) {
  686. updateStoreOrder(this.editForm).then(response => {
  687. if (response.code === 200) {
  688. this.msgSuccess("操作成功");
  689. this.edit.open = false;
  690. getOrder(this.item.orderId).then(response => {
  691. this.item=response.data
  692. that.getlogList(this.item.orderId);
  693. that.$parent.$parent.getList();
  694. });
  695. }
  696. });
  697. }
  698. });
  699. },
  700. editOrder(){
  701. this.edit.open=true;
  702. this.editForm.orderId=this.item.orderId;
  703. this.editForm.remark=this.item.remark;
  704. this.editForm.userAddress = this.item.userAddress.toString();
  705. this.editForm.userPhone = this.item.userPhone.toString();
  706. this.editForm.status = this.item.status.toString();
  707. this.editForm.deliveryType = this.item.deliveryType.toString();
  708. this.editForm.deliveryStatus = this.item.deliveryStatus.toString();
  709. },
  710. updateExpress(){
  711. var that=this;
  712. this.$confirm('定同步物流信息吗,同步后将自动发货?', "警告", {
  713. confirmButtonText: "确定",
  714. cancelButtonText: "取消",
  715. type: "warning"
  716. }).then(function() {
  717. var data=that.item.orderId
  718. return updateExpress(data);
  719. }).then(() => {
  720. this.msgSuccess("操作成功");
  721. getOrder(this.item.orderId).then(response => {
  722. this.item=response.data
  723. that.getlogList(this.item.orderId);
  724. that.$parent.$parent.getList();
  725. });
  726. }).catch(function() {});
  727. },
  728. addErpOrder(){
  729. var that=this;
  730. this.$confirm('是否确认推送管易?', "警告", {
  731. confirmButtonText: "确定",
  732. cancelButtonText: "取消",
  733. type: "warning"
  734. }).then(function() {
  735. var data=that.item.orderId
  736. return createErpOrder(data);
  737. }).then(() => {
  738. this.msgSuccess("操作成功");
  739. getOrder(this.item.orderId).then(response => {
  740. this.item=response.data
  741. that.getlogList(this.item.orderId);
  742. that.$parent.$parent.getList();
  743. });
  744. }).catch(function() {});
  745. },
  746. showErpOrder(){
  747. this.erpDialog.open=true;
  748. var data=this.item.extendOrderId;
  749. getEroOrder(data).then(response => {
  750. this.erp = response.data;
  751. if(response.data.orders!=null&&response.data.orders.length==1){
  752. this.erpOrder=response.data.orders[0]
  753. }
  754. });
  755. },
  756. editTuiMoney1(){
  757. var that=this;
  758. this.$confirm('是否解冻此订单推广佣金吗?', "警告", {
  759. confirmButtonText: "确定",
  760. cancelButtonText: "取消",
  761. type: "warning"
  762. }).then(function() {
  763. var data=that.item.orderId;
  764. return editTuiMoney(data);
  765. }).then(() => {
  766. this.msgSuccess("操作成功");
  767. getOrder(this.item.orderId).then(response => {
  768. this.item=response.data
  769. that.getlogList(this.item.orderId);
  770. that.$parent.$parent.getList();
  771. });
  772. }).catch(function() {});
  773. },
  774. editTuiMoney2(){
  775. var that=this;
  776. this.$confirm('是否冻结此订单推广佣金吗?', "警告", {
  777. confirmButtonText: "确定",
  778. cancelButtonText: "取消",
  779. type: "warning"
  780. }).then(function() {
  781. var data=that.item.orderId;
  782. return editTuiMoney(data);
  783. }).then(() => {
  784. this.msgSuccess("操作成功");
  785. getOrder(this.item.orderId).then(response => {
  786. this.item=response.data
  787. that.getlogList(this.item.orderId);
  788. that.$parent.$parent.getList();
  789. });
  790. }).catch(function() {});
  791. },
  792. returnCost(){
  793. var that=this;
  794. this.$confirm('是否退还此订单成本吗?', "警告", {
  795. confirmButtonText: "确定",
  796. cancelButtonText: "取消",
  797. type: "warning"
  798. }).then(function() {
  799. var data=that.item.orderId;
  800. return returnCost(data);
  801. }).then(() => {
  802. this.msgSuccess("操作成功");
  803. this.getDetails(this.item.orderId,null,null)
  804. }).catch(function() {});
  805. },
  806. moneyCancel(){
  807. this.money=null;
  808. this.moneyVisible=false;
  809. },
  810. refund(){
  811. var that=this;
  812. this.$confirm('是否确认申请退款?', "警告", {
  813. confirmButtonText: "确定",
  814. cancelButtonText: "取消",
  815. type: "warning"
  816. }).then(function() {
  817. var data={
  818. orderId:that.item.orderId
  819. }
  820. return afterSales(data);
  821. }).then(() => {
  822. this.msgSuccess("操作成功");
  823. getOrder(this.item.orderId).then(response => {
  824. this.item = response.data;
  825. this.getlogList(this.item.orderId);
  826. this.$parent.$parent.getList();
  827. });
  828. }).catch(function() {});
  829. },
  830. finishOrder(){
  831. var that=this;
  832. this.$confirm('是否确认客户已收货?', "警告", {
  833. confirmButtonText: "确定",
  834. cancelButtonText: "取消",
  835. type: "warning"
  836. }).then(function() {
  837. var data={
  838. orderId:that.item.orderId
  839. }
  840. return getGoods(data);
  841. }).then(() => {
  842. this.msgSuccess("操作成功");
  843. getOrder(this.item.orderId).then(response => {
  844. this.item = response.data;
  845. this.getlistOrderitem(this.item.orderId);
  846. this.getlogList(this.item.orderId);
  847. this.$parent.$parent.getList();
  848. });
  849. }).catch(function() {});
  850. },
  851. syncExpress(){
  852. var that=this;
  853. this.$confirm('确定同步物流状态吗', "警告", {
  854. confirmButtonText: "确定",
  855. cancelButtonText: "取消",
  856. type: "warning"
  857. }).then(function() {
  858. var data=that.item.orderId
  859. return syncExpress(data);
  860. }).then(() => {
  861. this.msgSuccess("操作成功");
  862. this.expressDialog.open=false
  863. getOrder(this.item.orderId).then(response => {
  864. this.item=response.data
  865. that.getlogList(this.item.orderId);
  866. that.$parent.$parent.getList();
  867. });
  868. }).catch(function() {});
  869. },
  870. getInquiryOrder(){
  871. this.show.open=true;
  872. setTimeout(() => {
  873. this.$refs.Details.getDetails(this.item.inquiryOrderId);
  874. }, 1);
  875. },
  876. getPackageOrder(){
  877. this.pack.open=true;
  878. console.log(this.item.packageOrderId)
  879. setTimeout(() => {
  880. this.$refs.packDetails.getDetails(this.item.packageOrderId);
  881. }, 1);
  882. },
  883. tuiOrder(){
  884. var that=this;
  885. this.$confirm('是否确认推送到智慧药房?', "警告", {
  886. confirmButtonText: "确定",
  887. cancelButtonText: "取消",
  888. type: "warning"
  889. }).then(function() {
  890. var data={
  891. orderId:that.item.orderId
  892. }
  893. return tuiOrder(data);
  894. }).then(() => {
  895. this.msgSuccess("操作成功");
  896. getOrder(this.item.orderId).then(response => {
  897. this.item = response.data;
  898. this.getlogList(this.item.orderId);
  899. this.$parent.$parent.getList();
  900. });
  901. }).catch(function() {});
  902. },
  903. sendCancel(){
  904. this.sendVisible = false;
  905. this.form={
  906. deliveryCode: null,
  907. deliveryName:null,
  908. deliverySn:null,
  909. orderId:null,
  910. }
  911. },
  912. sendGoods(){
  913. this.form.orderId=this.item.orderId;
  914. sendgoods(this.form).then(response => {
  915. this.msgSuccess("修改成功");
  916. this.sendVisible = false;
  917. getOrder(this.item.orderId).then(response => {
  918. this.item = response.data;
  919. this.getlogList(this.item.orderId);
  920. this.$parent.$parent.getList();
  921. });
  922. this.form={
  923. deliveryCode: null,
  924. deliveryName:null,
  925. deliverySn:null,
  926. orderId:null,
  927. }
  928. });
  929. },
  930. getDetails(orderId,nickName,storeName) {
  931. this.nickName=nickName;
  932. this.storeName=storeName;
  933. this.item=null;
  934. this.tuiMoneyLogs=null;
  935. getOrder(orderId).then(response => {
  936. this.item = response.data;
  937. this.tuiMoneyLogs = response.tuiMoneyLogs;
  938. this.getlistOrderitem(orderId);
  939. this.getlogList(orderId);
  940. this.getPayment(orderId);
  941. this.msgForm.userId=response.data.userId;
  942. this.msgForm.followDoctorId=response.data.followDoctorId;
  943. if(this.item.orderType==2){
  944. this.getCount(this.item.prescribeId);
  945. }
  946. });
  947. },
  948. getCount(id){
  949. getPrescribe(id).then(response => {
  950. this.recipeType = response.data.recipeType;
  951. this.counts = JSON.parse(response.data.usageJson).counts
  952. });
  953. },
  954. getOrder(){
  955. getOrder(this.item.orderId).then(response => {
  956. this.item = response.data;
  957. this.getlistOrderitem(this.item.orderId);
  958. this.getlogList(this.item.orderId);
  959. this.getPayment(this.item.orderId);
  960. if(this.item.orderType==2){
  961. this.getCount(this.item.prescribeId);
  962. }
  963. });
  964. },
  965. submitEditDyForm(){
  966. this.$refs["editDyForm"].validate(valid => {
  967. if (valid) {
  968. console.log(this.editDyForm)
  969. updateDelivery(this.editDyForm).then(response => {
  970. if (response.code === 200) {
  971. this.msgSuccess("操作成功");
  972. this.editDy.open = false;
  973. getOrder(this.item.orderId).then(response => {
  974. this.item = response.data;
  975. this.getlogList(this.item.orderId);
  976. this.$parent.$parent.getList();
  977. });
  978. }
  979. });
  980. }
  981. });
  982. },
  983. getlistOrderitem(orderId){
  984. listOrderitem(orderId).then(response => {
  985. this.prod = response.rows;
  986. this.showProd=[this.prod[0]]
  987. });
  988. },
  989. getlogList(orderId){
  990. logList(orderId).then(response => {
  991. this.logs = response.rows;
  992. });
  993. },
  994. getPayment(orderId){
  995. payment(orderId).then(response => {
  996. console.log(response)
  997. this.pay = response.data;
  998. });
  999. }
  1000. }
  1001. }
  1002. </script>
  1003. <style>
  1004. .content{
  1005. height: 100%;
  1006. background-color: #fff;
  1007. padding: 0px 20px;
  1008. }
  1009. </style>
  1010. <style>
  1011. .contentx{
  1012. height: 100%;
  1013. background-color: #fff;
  1014. padding: 0px 20px 20px;
  1015. margin: 20px;
  1016. }
  1017. .el-descriptions-item__label.is-bordered-label{
  1018. font-weight: normal;
  1019. }
  1020. .el-descriptions-item__content {
  1021. max-width: 150px;
  1022. min-width: 100px;
  1023. }
  1024. .desct{
  1025. padding-top: 20px;
  1026. padding-bottom: 20px;
  1027. color: #524b4a;
  1028. font-weight: bold;
  1029. }
  1030. </style>
  1031. <style scoped>
  1032. .order-content{
  1033. margin: 10px;
  1034. }
  1035. .operate-container {
  1036. background: #F2F6FC;
  1037. height: 60px;
  1038. margin: -20px -20px 0;
  1039. line-height: 60px;
  1040. }
  1041. .operate-button-container {
  1042. float: right;
  1043. margin-right: 20px
  1044. }
  1045. </style>
  1046. <style scoped>
  1047. .chat-records {
  1048. overflow-y: auto;
  1049. }
  1050. .timestamp {
  1051. font-size: 12px;
  1052. color: #A9A9A9;
  1053. }
  1054. .chat-record {
  1055. margin: 10px;
  1056. flex-direction: column;
  1057. align-items: flex-start;
  1058. }
  1059. .sent {
  1060. background-color: #fbfdff;
  1061. color: #000839;
  1062. }
  1063. .sent .timestamp {
  1064. float: right;
  1065. }
  1066. .right{
  1067. float: right;
  1068. }
  1069. .received {
  1070. background-color: #fbfdff;
  1071. color: #000000;
  1072. }
  1073. .el-descriptions-item__content {
  1074. max-width: 150px;
  1075. min-width: 100px;
  1076. }
  1077. .order-content{
  1078. margin: 10px;
  1079. }
  1080. .operate-container {
  1081. background: #F2F6FC;
  1082. height: 60px;
  1083. margin: -20px -20px 0;
  1084. line-height: 60px;
  1085. }
  1086. .operate-button-container {
  1087. float: right;
  1088. margin-right: 20px
  1089. }
  1090. </style>