Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

transDetails.vue 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. </div>
  6. <div class="app-container">
  7. <el-table
  8. :row-style="changColor"
  9. :header-cell-style="{
  10. backgroundColor: 'rgb(245, 247, 250)',
  11. color: '#606266',
  12. }"
  13. :data="tableList"
  14. border
  15. >
  16. >
  17. <el-table-column align="center">
  18. <template slot="header" slot-scope="scope">
  19. 商品名称<span style="color: red">*</span>
  20. </template>
  21. <template slot-scope="scope">
  22. {{scope.row.project_name}}
  23. </template>
  24. </el-table-column>
  25. <el-table-column label="商品类型" align="center">
  26. <template slot-scope="scope">
  27. {{scope.row.project_type}}
  28. </template>
  29. </el-table-column>
  30. <el-table-column label="规格" align="center">
  31. <template slot-scope="scope">
  32. {{scope.row.second_specification_name}}
  33. </template>
  34. </el-table-column>
  35. <el-table-column label="调拨数量" align="center">
  36. <template slot-scope="scope">
  37. {{scope.row.count}}{{scope.row.sencond_unit}}
  38. </template>
  39. </el-table-column>
  40. <el-table-column label="调出仓库" align="center">
  41. <template slot-scope="scope">
  42. {{getHouseName(scope.row.storehouse_out_id)}}
  43. </template>
  44. </el-table-column>
  45. <el-table-column label="调入仓库" align="center">
  46. <template slot-scope="scope">
  47. {{getHouseName(scope.row.storehouse_in_id)}}
  48. </template>
  49. </el-table-column>
  50. <el-table-column label="库存总数" align="center">
  51. <template slot-scope="scope">
  52. {{scope.row.second_total}}
  53. </template>
  54. </el-table-column>
  55. <el-table-column label="制单人" align="center">
  56. <template slot-scope="scope">
  57. {{getDocName(warehouse.creater)}}
  58. </template>
  59. </el-table-column>
  60. <el-table-column label="审核人" align="center">
  61. <template slot-scope="scope">
  62. {{getDocName(warehouse.checker)}}
  63. </template>
  64. </el-table-column>
  65. <el-table-column label="审核时间" align="center">
  66. <template slot-scope="scope">
  67. <span v-if="warehouse.check_time >0">{{getTimes(warehouse.check_time)}}</span>
  68. </template>
  69. </el-table-column>
  70. <el-table-column label="备注" align="center">
  71. <template slot-scope="scope">
  72. <span>{{ scope.row.remake ? scope.row.remake : "" }}</span>
  73. </template>
  74. </el-table-column>
  75. </el-table>
  76. </div>
  77. </div>
  78. </template>
  79. <script>
  80. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  81. import {getSecondOrderDetailList} from "@/api/seconde";
  82. import { uParseTime } from "@/utils/tools";
  83. export default {
  84. components: {
  85. BreadCrumb,
  86. },
  87. data() {
  88. return {
  89. crumbs: [
  90. { path: false, name: "库房管理" },
  91. { path: "/stock/warehousequery", name: "调拨详情" },
  92. ],
  93. value1: "",
  94. total: 0,
  95. page: 1,
  96. limit: 10,
  97. tableData: [{}, {}],
  98. formInline: {
  99. user: "",
  100. region: "",
  101. },
  102. rules: {
  103. region: [
  104. { required: true, message: "请选择活动区域", trigger: "change" },
  105. ],
  106. },
  107. supplyList: [],
  108. check_id: 0,
  109. doctorList: [],
  110. houseList:[],
  111. warehouse:{},
  112. tableList:[],
  113. };
  114. },
  115. methods: {
  116. // 初始化数据
  117. init() {},
  118. // 反审核
  119. approval() {},
  120. // 审核
  121. examine() {},
  122. // 保存
  123. save() {},
  124. // 表单添加
  125. toAdd() {},
  126. // 删除
  127. toDelete() {},
  128. // 详情查看
  129. toDetails() {},
  130. // 表单全选
  131. handleSelectionChange() {},
  132. // 页表操作
  133. handleSizeChange(val) {
  134. this.limit = val;
  135. this.init();
  136. },
  137. handleCurrentChange(val) {
  138. this.page = val;
  139. this.init();
  140. },
  141. // 表格样式
  142. changColor({ rowIndex }) {
  143. if (rowIndex % 2 == 1) {
  144. return {
  145. backgroundColor: "#C4E1FF",
  146. color: "#303133",
  147. };
  148. } else {
  149. return {
  150. backgroundColor: "#ACD6FF",
  151. color: "#303133",
  152. };
  153. }
  154. },
  155. getTimes(time) {
  156. if (time === "") {
  157. return "";
  158. }
  159. return uParseTime(time, "{y}-{m}-{d}");
  160. },
  161. getlist() {
  162. var id = parseInt(this.$route.query.id)
  163. getSecondOrderDetailList(id).then((response) => {
  164. if (response.data.state == 1) {
  165. var list = response.data.data.list;
  166. this.tableList = list;
  167. this.houseList = response.data.data.houseList
  168. this.doctorList = response.data.data.doctorList
  169. var warehouse = response.data.data.warehouse
  170. this.warehouse = warehouse
  171. }
  172. });
  173. },
  174. getHouseName(id){
  175. var storehouse_name = ""
  176. for(let i=0;i<this.houseList.length;i++){
  177. if(id == this.houseList[i].id){
  178. storehouse_name = this.houseList[i].storehouse_name
  179. }
  180. }
  181. return storehouse_name
  182. },
  183. getDocName(id) {
  184. var user_name = "";
  185. for (let i = 0; i < this.doctorList.length; i++) {
  186. if (id == this.doctorList[i].admin_user_id) {
  187. user_name = this.doctorList[i].user_name;
  188. }
  189. }
  190. return user_name;
  191. }
  192. },
  193. created(){
  194. var now = new Date(); //当前日期
  195. var nowMonth = now.getMonth(); //当前月
  196. var nowYear = now.getFullYear(); //当前年
  197. //本月的开始时间
  198. var monthStartDate = new Date(nowYear, nowMonth, 1);
  199. this.start_time = this.getTimes(monthStartDate);
  200. this.end_time = this.getTimes(new Date());
  201. this.org_id = this.$store.getters.xt_user.org_id;
  202. // var start_time = window.sessionStorage.getItem('purchase_start_time')
  203. // var end_time = window.sessionStorage.getItem('purchase_end_time')
  204. // if(start_time !=null){
  205. // this.start_time = ""
  206. // this.start_time = start_time
  207. // }
  208. // if(end_time!=null){
  209. // this.end_time = ""
  210. // this.end_time = end_time
  211. // }
  212. // window.sessionStorage.removeItem('purchase_start_time')
  213. // window.sessionStorage.removeItem('purchase_end_time')
  214. this.getlist();
  215. }
  216. };
  217. </script>
  218. <style rel="stylesheet/css" lang="scss" scoped>
  219. </style>