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

supplyQuery.vue 8.1KB

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