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

testOrderQuery.vue 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  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. // <div
  8. // style="
  9. // justify-content: space-between;
  10. // margin: 0px 0 12px 0;
  11. // display: flex;
  12. // align-items: center;
  13. // "
  14. // >
  15. // <div>
  16. // <el-date-picker
  17. // size="small"
  18. // v-model="start_time"
  19. // prefix-icon="el-icon-date"
  20. // :editable="false"
  21. // style="width: 196px"
  22. // type="date"
  23. // placeholder="选择日期时间"
  24. // align="right"
  25. // format="yyyy-MM-dd"
  26. // value-format="yyyy-MM-dd"
  27. // @change="startTimeChange"
  28. // ></el-date-picker
  29. // >-
  30. // <el-date-picker
  31. // size="small"
  32. // v-model="end_time"
  33. // prefix-icon="el-icon-date"
  34. // :editable="false"
  35. // style="width: 196px"
  36. // type="date"
  37. // placeholder="选择日期时间"
  38. // align="right"
  39. // format="yyyy-MM-dd"
  40. // value-format="yyyy-MM-dd"
  41. // @change="endTimeChange"
  42. // ></el-date-picker>
  43. // <span>审核状态:</span>
  44. // <el-select
  45. // v-model="check_id"
  46. // style="width: 140px; margin-right: 10px"
  47. // placeholder="请选择"
  48. // @change="changeTypeName"
  49. // >
  50. // <el-option
  51. // v-for="item in checkList"
  52. // :key="item.id"
  53. // :label="item.name"
  54. // :value="item.id"
  55. // >
  56. // </el-option>
  57. // </el-select>
  58. // <el-input
  59. // size="small"
  60. // style="width: 200px; margin-left: 10px"
  61. // class="filter-item"
  62. // v-model.trim="keywords"
  63. // placeholder="单据编号,仓库名称"
  64. // />
  65. // <el-button
  66. // size="small"
  67. // class="filter-item"
  68. // type="primary"
  69. // icon="el-icon-search"
  70. // @click="search"
  71. // >搜索</el-button
  72. // >
  73. // </div>
  74. // <div>
  75. // <el-button size="small" type="primary" @click="toAdd">新增</el-button>
  76. // </div>
  77. // </div>
  78. // <el-table
  79. // :row-style="{ color: '#303133' }"
  80. // :header-cell-style="{
  81. // backgroundColor: 'rgb(245, 247, 250)',
  82. // color: '#606266',
  83. // }"
  84. // :data="tableList"
  85. // :class="signAndWeighBoxPatients"
  86. // border
  87. // >
  88. // <el-table-column label="单据编号" align="center">
  89. // <template slot-scope="scope">
  90. // {{scope.row.second_order_number}}
  91. // </template>
  92. // </el-table-column>
  93. // <el-table-column label="单据日期" align="center">
  94. // <template slot-scope="scope">
  95. // {{getTime(scope.row.record_date)}}
  96. // </template>
  97. // </el-table-column>
  98. // <el-table-column label="调出仓库" align="center" width="150">
  99. // <template slot-scope="scope">
  100. // {{getHouseName(scope.row.storehouse_out_id)}}
  101. // </template>
  102. // </el-table-column>
  103. // <el-table-column label="调入仓库" align="center">
  104. // <template slot-scope="scope">
  105. // {{getHouseName(scope.row.storehouse_in_id)}}
  106. // </template>
  107. // </el-table-column>
  108. // <el-table-column label="制单人" align="center">
  109. // <template slot-scope="scope">
  110. // {{getDocName(scope.row.creater)}}
  111. // </template>
  112. // </el-table-column>
  113. // <el-table-column label="审核人" align="center">
  114. // <template slot-scope="scope">
  115. // {{getDocName(scope.row.checker)}}
  116. // </template>
  117. // </el-table-column>
  118. // <el-table-column label="审核时间" align="center">
  119. // <template slot-scope="scope">
  120. // {{getTime(scope.row.checker)}}
  121. // </template>
  122. // </el-table-column>
  123. // <el-table-column label="操作" align="center" width="300px">
  124. // <template slot-scope="scope">
  125. // <el-button
  126. // icon="el-icon-edit-outline"
  127. // size="small"
  128. // type="primary"
  129. // @click="toClick(scope.row.id)"
  130. // >编辑
  131. // </el-button>
  132. // <el-button
  133. // icon="el-icon-edit-outline"
  134. // size="small"
  135. // type="primary"
  136. // @click="toDetail(scope.row.id)"
  137. // >详情
  138. // </el-button>
  139. // <el-button
  140. // icon="el-icon-delete"
  141. // size="small"
  142. // type="danger"
  143. // @click="toDelete(scope.row, scope.$index)"
  144. // >删除
  145. // </el-button>
  146. // </template>
  147. // </el-table-column>
  148. // </el-table>
  149. // <el-pagination
  150. // @size-change="handleSizeChange"
  151. // @current-change="handleCurrentChange"
  152. // :page-sizes="[10, 50, 100, 200, 500, 1000]"
  153. // :page-size="10"
  154. // background
  155. // align="right"
  156. // style="margin-top: 20px"
  157. // layout="total, sizes, prev, pager, next, jumper"
  158. // :total="total"
  159. // >
  160. // </el-pagination>
  161. // </div>
  162. // </div>
  163. // </template>
  164. // <script>
  165. // import BreadCrumb from "@/xt_pages/components/bread-crumb";
  166. // import {
  167. // getAllSecondOrderList
  168. // } from "@/api/seconde";
  169. // import { uParseTime } from "@/utils/tools";
  170. // export default {
  171. // name: "stockIn",
  172. // components: {},
  173. // components: {
  174. // BreadCrumb,
  175. // },
  176. // data() {
  177. // return {
  178. // isActive: false,
  179. // Color_txt: true,
  180. // crumbs: [
  181. // { path: false, name: "采购管理" },
  182. // { path: "/supply/query", name: "采购订单" },
  183. // ],
  184. // keywords: "",
  185. // total: 0,
  186. // multipleSelection: [],
  187. // signAndWeighBoxPatients: "sign-and-weigh-box-patients",
  188. // start_time: "",
  189. // end_time: "",
  190. // page: 1,
  191. // limit: 10,
  192. // goodType: [],
  193. // goodInfo: [],
  194. // org_id: 0,
  195. // types: [],
  196. // tableList: [{}],
  197. // type_name: "",
  198. // checkList: [
  199. // { id: 0, name: "请选择" },
  200. // { id: 1, name: "已审核" },
  201. // { id: 2, name: "未审核" },
  202. // ],
  203. // supplyList: [],
  204. // check_id: 0,
  205. // doctorList: [],
  206. // houseList:[],
  207. // };
  208. // },
  209. // methods: {
  210. // toAdd() {
  211. // this.$router.push({ path: "/purchase/order/add" });
  212. // },
  213. // changeTypeName() {
  214. // this.getlist();
  215. // },
  216. // startTimeChange() {
  217. // this.getlist();
  218. // },
  219. // endTimeChange() {
  220. // this.getlist();
  221. // },
  222. // search() {
  223. // this.getlist();
  224. // },
  225. // handleSizeChange(val) {
  226. // this.limit = val;
  227. // this.getlist();
  228. // },
  229. // handleCurrentChange(val) {
  230. // this.page = val;
  231. // this.getlist();
  232. // },
  233. // getTimes(time) {
  234. // if (time === "") {
  235. // return "";
  236. // }
  237. // return uParseTime(time, "{y}-{m}-{d}");
  238. // },
  239. // getlist() {
  240. // var params = {
  241. // check_id: this.check_id,
  242. // start_time: this.start_time,
  243. // end_time: this.end_time,
  244. // keyword: this.keywords,
  245. // page: this.page,
  246. // limit: this.limit,
  247. // };
  248. // getAllSecondOrderList(params).then((response) => {
  249. // if (response.data.state == 1) {
  250. // var list = response.data.data.list;
  251. // this.tableList = list;
  252. // var total = response.data.data.total;
  253. // this.total = total;
  254. // this.houseList = response.data.data.houseList
  255. // this.doctorList = response.data.data.doctorList
  256. // }
  257. // });
  258. // },
  259. // getName(id) {
  260. // var name = "";
  261. // for (let i = 0; i < this.supplyList.length; i++) {
  262. // if (id == this.supplyList[i].id) {
  263. // name = this.supplyList[i].supplier_name;
  264. // }
  265. // }
  266. // return name;
  267. // },
  268. // getDocName(id) {
  269. // var user_name = "";
  270. // for (let i = 0; i < this.doctorList.length; i++) {
  271. // if (id == this.doctorList[i].admin_user_id) {
  272. // user_name = this.doctorList[i].user_name;
  273. // }
  274. // }
  275. // return user_name;
  276. // },
  277. // getAllBuyPrice(arr) {
  278. // var buy_price = 0;
  279. // if (arr != undefined && arr.length > 0) {
  280. // for (let i = 0; i < arr.length; i++) {
  281. // buy_price += arr[i].count * arr[i].price;
  282. // }
  283. // }
  284. // return buy_price.toFixed(2);
  285. // },
  286. // getAllCount(arr) {
  287. // var count = 0;
  288. // if (arr != undefined && arr.length > 0) {
  289. // for (let i = 0; i < arr.length; i++) {
  290. // count += parseInt(arr[i].count);
  291. // }
  292. // }
  293. // if (count == 0) {
  294. // return "";
  295. // }
  296. // if (count > 0) {
  297. // return count;
  298. // }
  299. // },
  300. // toClick(id) {
  301. // window.sessionStorage.setItem('purchase_start_time',this.start_time)
  302. // window.sessionStorage.setItem('purchase_end_time',this.end_time)
  303. // this.$router.push({ path: "/stock/in/test/edit?id=" + id });
  304. // },
  305. // toDetail(id){
  306. // this.$router.push({ path: "/stock/in/test/detail?id=" + id });
  307. // },
  308. // toDelete(val, index) {
  309. // if (val.is_check == 1) {
  310. // this.$message.error("已审核单据,不能删除!");
  311. // return false;
  312. // }
  313. // if (val.orderOut.length > 0) {
  314. // this.$message.error("已关联单据,不能删除!");
  315. // return false;
  316. // }
  317. // this.$confirm("确认删除吗?", "删除", {
  318. // confirmButtonText: "确 定",
  319. // cancelButtonText: "取 消",
  320. // type: "warning",
  321. // }) .then(() => {
  322. // deletePurchaseOrder(val.id).then((response) => {
  323. // if (response.data.state == 1) {
  324. // var msg = response.data.data.msg;
  325. // this.tableList.splice(index, 1);
  326. // this.getlist()
  327. // this.$message.success("删除成功");
  328. // } else {
  329. // this.$message.error("删除失败");
  330. // }
  331. // });
  332. // }).catch(() => {});
  333. // },
  334. // // 动态改变表格样式
  335. // Color_Change() {
  336. // this.Color_txt = true;
  337. // console.log(this.Color_txt, "op");
  338. // },
  339. // Color_Changeleave() {
  340. // this.Color_txt = false;
  341. // console.log(this.Color_txt, "false");
  342. // },
  343. // getTime(time) {
  344. // if (time === '') {
  345. // return ''
  346. // }
  347. // return uParseTime(time, '{y}-{m}-{d}')
  348. // },
  349. // getHouseName(id){
  350. // var storehouse_name = ""
  351. // for(let i=0;i<this.houseList.length;i++){
  352. // if(id == this.houseList[i].id){
  353. // storehouse_name = this.houseList[i].storehouse_name
  354. // }
  355. // }
  356. // return storehouse_name
  357. // },
  358. // getDocName(id){
  359. // var user_name = ""
  360. // for(let i=0;i<this.doctorList.length;i++){
  361. // if(id == this.doctorList[i].admin_user_id){
  362. // user_name = this.doctorList[i].user_name
  363. // }
  364. // }
  365. // return user_name
  366. // },
  367. // },
  368. // created() {
  369. // var now = new Date(); //当前日期
  370. // var nowMonth = now.getMonth(); //当前月
  371. // var nowYear = now.getFullYear(); //当前年
  372. // //本月的开始时间
  373. // var monthStartDate = new Date(nowYear, nowMonth, 1);
  374. // this.start_time = this.getTimes(monthStartDate);
  375. // this.end_time = this.getTimes(new Date());
  376. // this.org_id = this.$store.getters.xt_user.org_id;
  377. // var start_time = window.sessionStorage.getItem('purchase_start_time')
  378. // var end_time = window.sessionStorage.getItem('purchase_end_time')
  379. // if(start_time !=null){
  380. // this.start_time = ""
  381. // this.start_time = start_time
  382. // }
  383. // if(end_time!=null){
  384. // this.end_time = ""
  385. // this.end_time = end_time
  386. // }
  387. // window.sessionStorage.removeItem('purchase_start_time')
  388. // window.sessionStorage.removeItem('purchase_end_time')
  389. // this.getlist();
  390. // },
  391. // };
  392. // </script>
  393. // <style lang="scss" scoped>
  394. // .cluster-rs {
  395. // text-align: center;
  396. // }
  397. // .annotation-rs {
  398. // width: 100%;
  399. // height: 100%;
  400. // border: none;
  401. // td {
  402. // width: 155px;
  403. // padding: 5px;
  404. // border-right: none;
  405. // text-align: center;
  406. // vertical-align: middle;
  407. // }
  408. // }
  409. // tr:last-child {
  410. // td {
  411. // border-bottom: none;
  412. // }
  413. // }
  414. // </style>
  415. // <style rel="stylesheet/css" lang="scss" scoped>
  416. // .information {
  417. // border: 1px #dcdfe6 solid;
  418. // padding: 30px 20px 30px 20px;
  419. // .border {
  420. // border-bottom: 1px #dcdfe6 solid;
  421. // margin: 0px 0 20px 0;
  422. // }
  423. // }
  424. // .title {
  425. // background: #409eff;
  426. // height: 44px;
  427. // line-height: 44px;
  428. // padding: 0 0 0 10px;
  429. // color: #fff;
  430. // margin: 0 0 10px 0;
  431. // }
  432. // .edit_separater {
  433. // border-top: 1px solid rgb(233, 233, 233);
  434. // margin-top: 15px;
  435. // margin-bottom: 15px;
  436. // }
  437. // /deep/ .el-table__body-wrapper::-webkit-scrollbar {
  438. // width: 10px;
  439. // height: 10px;
  440. // }
  441. // </style>
  442. // <style scoped>
  443. // .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
  444. // font-size: 12px;
  445. // }
  446. // .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
  447. // background: #6fb5fa;
  448. // }
  449. // .count {
  450. // color: #bd2c00;
  451. // }
  452. // .el-table td,
  453. // .el-table th.is-leaf,
  454. // .el-table--border,
  455. // .el-table--group {
  456. // border-color: #d0d3da;
  457. // }
  458. // .el-table--border::after,
  459. // .el-table--group::after,
  460. // .el-table::before {
  461. // background-color: #d0d3da;
  462. // }
  463. // .color {
  464. // background: none !important;
  465. // display: flex;
  466. // flex-direction: column;
  467. // }
  468. // </style>