customerrecord.vue 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. //客户操作记录
  2. <template>
  3. <div class="container">
  4. <el-row class="row_top">
  5. <el-col :span="12">
  6. <h2 class="bg-left title">客户操作记录</h2>
  7. </el-col>
  8. <el-col :span="12" class="bg-right"><el-button class="bg-bottom" type="primary" size="small" @click="returnsales()"><img width="6" height="10"
  9. style="vertion-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
  10. </el-button></el-col>
  11. </el-row>
  12. <div class="center">
  13. <el-row style='margin-bottom:10px;'>
  14. <el-col :span="6">
  15. <!-- <el-button style="margin-left:10px" @click="typeChange('')" type="primary">导出</el-button> -->
  16. </el-col>
  17. <el-col :span="18">
  18. <div style='margin-left:10px;' class="datascreen">
  19. <div style="display:inline-block;width:50;">
  20. <el-date-picker value-format='yyyy-MM-dd' v-model="value" type="daterange" align="right" unlink-panels range-separator="至"
  21. start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" class="data_css" @change="changeDate" >
  22. </el-date-picker></div>
  23. <el-input placeholder="可按业务编号、合同编号、客户查找" class="input_css" v-model="searchKeyWord"></el-input>
  24. <el-button class="find" type="primary" @click="find()"><img width="16" height="16" style="left: -8px;"
  25. src="../../../public/img/sousuo.png" alt="" /></el-button>
  26. </div>
  27. </el-col>
  28. </el-row>
  29. <div class="fromdata">
  30. <el-table :data="tableData" stripe style="width: 100%" @selection-change="handleSelectionChange">
  31. <el-table-column type="index" label="序号">
  32. <template scope="scope">
  33. <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
  34. <span v-else>{{ scope.$index + 1 }}</span>
  35. </template>
  36. </el-table-column>
  37. <el-table-column prop="relationReceiveNo" label="我司业务编号">
  38. </el-table-column>
  39. <el-table-column prop="transferOutNo" label="客户业务编号">
  40. </el-table-column>
  41. <el-table-column prop="outContractNo" label="客户销售合同编号"></el-table-column>
  42. <el-table-column prop="customer" label="客户"></el-table-column>
  43. <el-table-column width="200" prop="agent" label="期初粮款数据(元)">
  44. <template scope="scope">
  45. 应付{{scope.row.amountIngPayable}}-已付{{scope.row.amountEdPayable}}=未付{{scope.row.amountNotPayable}}
  46. </template>
  47. </el-table-column>
  48. <el-table-column width="120" prop="transferOutWeight" label="重量(吨)">
  49. </el-table-column>
  50. <el-table-column width="120" prop="salePrice" label="售价(元/吨)">
  51. </el-table-column>
  52. <el-table-column width="120" prop="updateDate" label="日期">
  53. </el-table-column>
  54. <el-table-column width="120" prop="status" label="状态">
  55. </el-table-column>
  56. <el-table-column width="120" label="操作">
  57. <template scope="scope">
  58. <el-button v-if="scope.row.status=='待接收'" @click="rejection(scope.row)" type="text">拒收</el-button>
  59. </template>
  60. </el-table-column>
  61. </el-table>
  62. </div>
  63. <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
  64. style="text-align:center" :page-size="pageSize"
  65. layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
  66. </el-pagination>
  67. </div>
  68. </div>
  69. </template>
  70. <script>
  71. import {
  72. getcusationinfo,
  73. rejectcusationinfo
  74. } from '@/model/warehouse/index'
  75. export default {
  76. components: {},
  77. data() {
  78. return {
  79. value: '',
  80. tableData: [],
  81. show:false,
  82. deptBudgetTotal: 0,
  83. currentPage: 1,
  84. pageSize: 10,
  85. agreementType:'',
  86. deptCircularPage: {},
  87. searchType:'',
  88. searchKeyWord:'',
  89. startDate:'',
  90. endDate:'',
  91. tableData:{},
  92. datalist:{},
  93. currectData:{},
  94. compId:localStorage.getItem('ws-pf_compId'),
  95. binNumbershow:false,
  96. }
  97. },
  98. activated() {
  99. this.getList()
  100. },
  101. methods: {
  102. lookbinNumber(item){
  103. this.currectData=item
  104. this.binNumbershow=true
  105. },
  106. handleClose1(){
  107. this.show=false
  108. },
  109. returnsales(){
  110. this.$router.go(-1)
  111. },
  112. rejection(row){
  113. this.$confirm('确定拒收该笔货权?', {
  114. confirmButtonText: '确定',
  115. cancelButtonText: '取消',
  116. type: 'warning',
  117. })
  118. .then(() => {
  119. rejectcusationinfo({id:row.id}).toPromise().then((response) => {
  120. this.$message.success('操作成功!')
  121. // row.weightedit=false
  122. this.getList()
  123. })
  124. })
  125. },
  126. async getList() {
  127. var response=await getcusationinfo({
  128. // warehouseType: 1,
  129. startDate:this.startDate,
  130. endDate:this.endDate,
  131. searchKeyWord:this.searchKeyWord,
  132. currentPage: this.currentPage,
  133. pageSize:this.pageSize ,
  134. compId:localStorage.getItem('ws-pf_compId'),
  135. })
  136. .toPromise()
  137. this.tableData = response.records
  138. this.deptBudgetTotal = response.total
  139. },
  140. changeDate(){
  141. if(this.value){
  142. this.startDate = this.value[0]
  143. this.endDate = this.value[1]
  144. }
  145. this.getList()
  146. },
  147. pickerOptions() {},
  148. find() {
  149. this.getList()
  150. },
  151. handleSizeChange(val) {
  152. console.log(`每页 ${val} 条`)
  153. this.pageSize = val
  154. this.getList()
  155. },
  156. handleCurrentChange(val) {
  157. this.currentPage = val
  158. console.log(`当前页: ${val}`)
  159. this.getList()
  160. },
  161. },
  162. }
  163. </script>
  164. <style lang="scss" scoped>
  165. table,
  166. table tr th,
  167. table tr td {
  168. border: 2px solid #333333;
  169. padding: 5px 0;
  170. height: 55px;
  171. }
  172. .content {
  173. width: 1000px;
  174. padding: 70px 20px 20px 20px;
  175. font-size: 22px;
  176. position: absolute;
  177. top: 0;
  178. bottom: 0;
  179. left: 0;
  180. right: 0;
  181. }
  182. table {
  183. width: 100%;
  184. text-align: center;
  185. border-collapse: collapse;
  186. border: 3px solid #333333;
  187. }
  188. .col-bgc {
  189. background: #f6f7fb;
  190. }
  191. .container {
  192. background: #E8ECF6;
  193. }
  194. .center {
  195. margin: 0 auto;
  196. background: #ffffff;
  197. height: calc(100vh - 13vh);
  198. border-radius: 4px;
  199. padding: 20px 0;
  200. /deep/.el-table td,
  201. /deep/.el-table th {
  202. text-align: center;
  203. }
  204. }
  205. .row_top {
  206. background: #F6F7FC;
  207. border-radius: 4px;
  208. margin-bottom: 10px;
  209. .bg-left {
  210. padding-left: 30px;
  211. }
  212. .bg-right {
  213. padding-right: 10px;
  214. text-align: right;
  215. }
  216. .title {
  217. position: relative;
  218. }
  219. .title::before {
  220. content: '';
  221. display: inline-block;
  222. width: 5px;
  223. height: 30px;
  224. background: #5473e8;
  225. position: absolute;
  226. left: 0;
  227. }
  228. }
  229. .datascreen {
  230. display: flex;
  231. .data_css {
  232. width: 40%;
  233. }
  234. .input_css {
  235. width: 50%;
  236. margin: 0 10px;
  237. }
  238. .find {
  239. margin-right: 10px;
  240. }
  241. }
  242. .fromdata {
  243. margin: 20px 0;
  244. overflow-y: scroll;
  245. height: 546px;
  246. }
  247. .top_info{
  248. margin: 10px 0 0 10px;
  249. min-width: 712px;
  250. .info_css{
  251. margin-right: 20px;
  252. }
  253. }
  254. .bg-right{
  255. padding-top:15px;
  256. }
  257. .el-icon-connection{
  258. color:#409eff;
  259. }
  260. .flex{
  261. display:flex;justify-content: space-between;
  262. }
  263. </style>