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

supplyQuery.vue 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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-select
  17. v-model="type_name"
  18. style="width: 170px; margin-right: 10px"
  19. placeholder="请选择供应商类别"
  20. @change="changeTypeName"
  21. >
  22. <el-option
  23. v-for="item in sType"
  24. :key="item.id"
  25. :label="item.name"
  26. :value="item.value"
  27. >
  28. </el-option>
  29. </el-select>
  30. <el-button
  31. size="small"
  32. class="filter-item"
  33. type="primary"
  34. icon="el-icon-search"
  35. @click="search"
  36. >搜索</el-button
  37. >
  38. </div>
  39. <div>
  40. <el-button size="small" type="primary" @click="toAdd(1)"
  41. >新增</el-button
  42. >
  43. <addSupply ref="addSupply"></addSupply>
  44. </div>
  45. </div>
  46. <el-table
  47. :row-style="{ color: '#303133' }"
  48. :header-cell-style="{
  49. backgroundColor: 'rgb(245, 247, 250)',
  50. color: '#606266',
  51. }"
  52. :data="tableList"
  53. :class="signAndWeighBoxPatients"
  54. border
  55. >
  56. <el-table-column prop="SupplierType" label="供应商类别" align="center">
  57. <template slot-scope="scope">
  58. <span>{{ scope.row.TypeName }}</span>
  59. </template>
  60. </el-table-column>
  61. <el-table-column prop="SupplierCode" label="供应商编码" align="center">
  62. <template slot-scope="scope">
  63. {{ scope.row.SupplierCode }}
  64. </template>
  65. </el-table-column>
  66. <el-table-column prop="SupplierName" label="供应商名称" align="center">
  67. <template slot-scope="scope">
  68. <span>{{ scope.row.SupplierName }}</span>
  69. </template>
  70. </el-table-column>
  71. <el-table-column prop="ConName" label="首要联系人" align="center">
  72. <template slot-scope="scope">
  73. {{ scope.row.ConName }}
  74. </template>
  75. </el-table-column>
  76. <el-table-column prop="VatRate" label="增值税税率(%)" align="center">
  77. <template slot-scope="scope">
  78. {{ scope.row.VatRate }}
  79. </template>
  80. </el-table-column>
  81. <el-table-column prop="BankAccount" label="银行账号" align="center">
  82. <template slot-scope="scope">
  83. {{ scope.row.BankAccount }}
  84. </template>
  85. </el-table-column>
  86. <el-table-column prop="Bank" label="开户银行" align="center">
  87. <template slot-scope="scope">
  88. {{ scope.row.Bank }}
  89. </template>
  90. </el-table-column>
  91. <el-table-column prop="Number" label="纳税人识别号" align="center">
  92. <template slot-scope="scope">
  93. {{ scope.row.Number }}
  94. </template>
  95. </el-table-column>
  96. <el-table-column prop="Phone" label="手机" align="center">
  97. <template slot-scope="scope">
  98. {{ scope.row.Phone }}
  99. </template>
  100. </el-table-column>
  101. <el-table-column label="操作" align="center" width="200px">
  102. <template slot-scope="scope">
  103. <el-button
  104. icon="el-icon-edit-outline"
  105. size="small"
  106. type="primary"
  107. @click="toClick(scope.row, 2)"
  108. >编辑
  109. </el-button>
  110. <el-button
  111. icon="el-icon-delete"
  112. size="small"
  113. type="danger"
  114. @click="toDelete(scope.row, scope.$index)"
  115. >删除
  116. </el-button>
  117. </template>
  118. </el-table-column>
  119. </el-table>
  120. <el-pagination
  121. @size-change="handleSizeChange"
  122. @current-change="handleCurrentChange"
  123. :page-sizes="[10, 50, 100, 200, 500, 1000]"
  124. :page-size="10"
  125. background
  126. align="right"
  127. style="margin-top: 20px"
  128. layout="total, sizes, prev, pager, next, jumper"
  129. :total="total"
  130. >
  131. </el-pagination>
  132. </div>
  133. </div>
  134. </template>
  135. <script>
  136. import BreadCrumb from "@/xt_pages/components/bread-crumb";
  137. import addSupply from "./components/addSupply.vue";
  138. import { getexporthistory, delsupplys, getsupplytype } from "@/api/supply";
  139. export default {
  140. name: "stockIn",
  141. created() {
  142. this.getsupplytype();
  143. // this.initSupplierData()
  144. this.org_id = this.$store.getters.xt_user.org_id;
  145. var start_time = window.sessionStorage.getItem("start_time");
  146. var end_time = window.sessionStorage.getItem("end_time");
  147. if (start_time != null) {
  148. this.start_time = start_time;
  149. }
  150. if (end_time != null) {
  151. this.end_time = end_time;
  152. }
  153. window.sessionStorage.removeItem("start_time");
  154. window.sessionStorage.removeItem("end_time");
  155. this.initData();
  156. },
  157. components: {
  158. BreadCrumb,
  159. addSupply,
  160. },
  161. data() {
  162. return {
  163. page: 1,
  164. limit: 10,
  165. type_name: 0,
  166. crumbs: [
  167. { path: false, name: "采购管理" },
  168. { path: "/supply/good/order/query", name: "供应商管理" },
  169. ],
  170. keywords: "",
  171. total: 0,
  172. multipleSelection: [],
  173. signAndWeighBoxPatients: "sign-and-weigh-box-patients",
  174. start_time: "",
  175. end_time: "",
  176. page: 1,
  177. limit: 10,
  178. goodType: [],
  179. goodInfo: [],
  180. org_id: 0,
  181. types: [],
  182. tableList: [],
  183. tyep_name: "",
  184. sType: [],
  185. };
  186. },
  187. methods: {
  188. initData() {
  189. let params = {
  190. limit: this.limit,
  191. page: this.page,
  192. ctype: this.type_name,
  193. };
  194. getexporthistory(params).then((res) => {
  195. if (res.data.state == 1) {
  196. this.tableList = res.data.data.list;
  197. this.total = res.data.data.total;
  198. }
  199. });
  200. },
  201. getsupplytype() {
  202. getsupplytype().then((res) => {
  203. if (res.data.state == 1) {
  204. this.sType = res.data.data.list;
  205. }
  206. console.log(res, "oo");
  207. });
  208. },
  209. toDelete(val, index) {
  210. delsupplys(val.ID)
  211. .then((res) => {
  212. if (res.data.code == 0) {
  213. this.$message.success(res.data.data.list);
  214. }
  215. })
  216. .then(() => {
  217. this.initData();
  218. })
  219. .catch((err) => {
  220. console.log(err);
  221. });
  222. },
  223. toAdd(val) {
  224. this.$refs.addSupply.show(1, val);
  225. },
  226. toClick(data, val) {
  227. this.$refs.addSupply.show(data, val);
  228. },
  229. changeTypeName() {
  230. this.initData();
  231. },
  232. startTimeChange() {},
  233. endTimeChange() {},
  234. search() {},
  235. handleSizeChange(val) {
  236. this.limit = val;
  237. this.initData();
  238. },
  239. handleCurrentChange(val) {
  240. this.page = val;
  241. this.initData();
  242. },
  243. },
  244. };
  245. </script>
  246. <style rel="stylesheet/css" lang="scss" scoped>
  247. .information {
  248. border: 1px #dcdfe6 solid;
  249. padding: 30px 20px 30px 20px;
  250. .border {
  251. border-bottom: 1px #dcdfe6 solid;
  252. margin: 0px 0 20px 0;
  253. }
  254. }
  255. .title {
  256. background: #409eff;
  257. height: 44px;
  258. line-height: 44px;
  259. padding: 0 0 0 10px;
  260. color: #fff;
  261. margin: 0 0 10px 0;
  262. }
  263. .edit_separater {
  264. border-top: 1px solid rgb(233, 233, 233);
  265. margin-top: 15px;
  266. margin-bottom: 15px;
  267. }
  268. </style>
  269. <style>
  270. .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
  271. font-size: 12px;
  272. }
  273. .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
  274. background: #6fb5fa;
  275. }
  276. .count {
  277. color: #bd2c00;
  278. }
  279. .el-table td,
  280. .el-table th.is-leaf,
  281. .el-table--border,
  282. .el-table--group {
  283. border-color: #d0d3da;
  284. }
  285. .el-table--border::after,
  286. .el-table--group::after,
  287. .el-table::before {
  288. background-color: #d0d3da;
  289. }
  290. </style>