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

supplyQuery.vue 8.3KB

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