dialog.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. <template>
  2. <div class="" style="margin: 30px 0 10px 0;">
  3. <!-- 查询和其他操作 -->
  4. <el-card class="box-card" shadow="nerver">
  5. <div slot="header" class="clearfix">
  6. <span class="topClass">基本信息</span>
  7. </div>
  8. <el-row type="flex" class="row-bg">
  9. <!-- <el-col :span="8" class="flex_text">
  10. 招标规则 : <span class="flex_name"> <el-tag v-if="bidInfo.tenderRule == 1" type="success" effect="plain">价低者得</el-tag>
  11. <el-tag v-if="bidInfo.tenderRule == 2" effect="plain" >价高者得</el-tag></span>
  12. </el-col> -->
  13. <el-col :span="8" class="flex_text">
  14. 标的编码 : <span class="flex_name"> {{priceData.processingCode}} </span>
  15. </el-col>
  16. <el-col :span="8" class="flex_text">
  17. 产地 : <span class="flex_name"> {{priceData.comesFrom}} </span>
  18. </el-col>
  19. <el-col :span="8" class="flex_text">
  20. 生产年限:<span class="flex_name">{{priceData.produceAge}}</span>
  21. </el-col>
  22. </el-row>
  23. <el-row type="flex" class="row-bg">
  24. <el-col :span="8" class="flex_text">
  25. 仓号:<span class="flex_name">{{priceData.warehouseNumber}}</span>
  26. </el-col>
  27. <el-col :span="8" class="flex_text">
  28. 品种 : <span class="flex_name">{{priceData.breeds}}
  29. </span>
  30. </el-col>
  31. <el-col :span="8" class="flex_text">
  32.    等级:<span class="flex_name">{{priceData.level}}</span>
  33. </el-col>
  34. </el-row>
  35. <el-row type="flex" class="row-bg">
  36. <el-col :span="8" class="flex_text">
  37. 数量(吨) : <span class="flex_name"> {{priceData.quantity}} </span>
  38. </el-col>
  39. <el-col :span="8" class="flex_text">
  40. </el-col>
  41. <el-col :span="8" class="flex_text">
  42. </el-col>
  43. </el-row>
  44. </el-card>
  45. <el-card class="box-card" shadow="nerver">
  46. <div slot="header" class="clearfix">
  47. <span class="topClass">投标详情</span>
  48. </div>
  49. <el-table ref="multipleTable" v-loading="loading" :data="tableData" :header-cell-style="{ background: '#f5f7fa', }" style="width: 100%;" border >
  50. <el-table-column prop="contractNumber" width="150" label="合同编号" :show-overflow-tooltip="true" align="center" />
  51. <el-table-column prop="level" label="级别" :show-overflow-tooltip="true" align="center" >
  52. <template slot-scope="scope">
  53. <span v-if="scope.row.level ==1">一级</span>
  54. <span v-if="scope.row.level ==2">二级</span>
  55. <span v-if="scope.row.level ==3">三级</span>
  56. <span v-if="scope.row.level ==4">四级</span>
  57. </template>
  58. </el-table-column>
  59. <el-table-column label="状态" align="center" width="100">
  60. <template slot-scope="scope">
  61. <el-tag effect="plain" v-if="scope.row.biddingStatus == 5">已投递</el-tag>
  62. <el-tag effect="plain" v-if="scope.row.biddingStatus ==6" type="info">审核中</el-tag>
  63. <el-tag effect="plain" v-if="scope.row.biddingStatus ==7" type="warning">已中标</el-tag>
  64. <el-tag effect="plain" v-if="scope.row.biddingStatus ==8" type="danger">未中标</el-tag>
  65. <el-tag effect="plain" v-if="scope.row.biddingStatus ==9" type="danger">已作废</el-tag>
  66. </template>
  67. </el-table-column>
  68. <el-table-column label="历史记录(是/否)" align="center" width="90">
  69. <template slot-scope="scope">
  70. <el-tag effect="plain" type="danger" v-if="scope.row.isHistory == 1">是</el-tag>
  71. <el-tag effect="plain" v-if="scope.row.isHistory ==0" >否</el-tag>
  72. </template>
  73. </el-table-column>
  74. <el-table-column prop="stocksRealStation" width="152" label="实际库存点" :show-overflow-tooltip="true" align="center" />
  75. <el-table-column prop="biddingNumber" label="投标数量(吨)" :show-overflow-tooltip="true" align="center" />
  76. <el-table-column prop="brownRiceRate" width="100" label="加工厂出糙率(%)" :show-overflow-tooltip="true" align="center" />
  77. <el-table-column prop="realPremiumComplex" label="实际贴水贴杂(个)" :show-overflow-tooltip="true" align="center" />
  78. <el-table-column prop="warehouseFactoryDistance" label="库点至加工厂的运距(KM)" :show-overflow-tooltip="true" align="center" />
  79. <el-table-column prop="warehouseFactoryPrice" width="100" label="库点至加工厂的短运费(元/吨)" :show-overflow-tooltip="true" align="center" />
  80. <el-table-column prop="ricePickupPrice" label="稻壳自提单价(元/吨)" :show-overflow-tooltip="true" align="center" />
  81. <el-table-column prop="cornProcurePrice" width="152" label="玉米采购价(元/吨)" :show-overflow-tooltip="true" align="center" />
  82. <el-table-column label="至鱼圈运费(包价元/吨)" align="center" >
  83. <el-table-column prop="byqStationPrice" width="102" label="上站费" :show-overflow-tooltip="true" align="center" />
  84. <el-table-column prop="byqStationUsePrice" width="102" label="站台使用费" :show-overflow-tooltip="true" align="center" />
  85. <el-table-column prop="byqFreightPrice" width="102" label="运费" :show-overflow-tooltip="true" align="center" />
  86. <el-table-column prop="byqSumPrice" width="102" label="总费用" :show-overflow-tooltip="true" align="center" />
  87. <el-table-column prop="byqOtherRemarks" width="152" label="其他" :show-overflow-tooltip="true" align="center" />
  88. </el-table-column>
  89. <el-table-column label="至锦州港运费(包价元/吨)" align="center" >
  90. <el-table-column prop="jzgStationPrice" width="102" label="上站费" :show-overflow-tooltip="true" align="center" />
  91. <el-table-column prop="jzgStationUsePrice" width="102" label="站台使用费" :show-overflow-tooltip="true" align="center" />
  92. <el-table-column prop="jzgFreightPrice" width="102" label="运费" :show-overflow-tooltip="true" align="center" />
  93. <el-table-column prop="jzgSumPrice" width="102" label="总费用" :show-overflow-tooltip="true" align="center" />
  94. <el-table-column prop="jzgOtherRemarks" width="152" label="其他" :show-overflow-tooltip="true" align="center" />
  95. </el-table-column>
  96. <el-table-column label="至绥中港运费(包价元/吨)" align="center" >
  97. <el-table-column prop="szgStationPrice" width="102" label="上站费" :show-overflow-tooltip="true" align="center" />
  98. <el-table-column prop="szgStationUsePrice" width="102" label="站台使用费" :show-overflow-tooltip="true" align="center" />
  99. <el-table-column prop="szgFreightPrice" width="102" label="运费" :show-overflow-tooltip="true" align="center" />
  100. <el-table-column prop="szgSumPrice" width="102" label="总费用" :show-overflow-tooltip="true" align="center" />
  101. <el-table-column prop="szgOtherRemarks" width="152" label="其他" :show-overflow-tooltip="true" align="center" />
  102. </el-table-column>
  103. <el-table-column prop="biddingSumPrice" width="102" label="总费用" :show-overflow-tooltip="true" align="center" />
  104. <!-- <el-table-column prop="phone" label="联系电话" width="152" :show-overflow-tooltip="true" align="center" /> -->
  105. <el-table-column prop="processBiddingQuotedTime" label="投标时间" width="152" :show-overflow-tooltip="true" align="center" />
  106. <el-table-column label="操作" width="250" fixed="right" align="center">
  107. <template slot-scope="scope">
  108. <el-upload
  109. :disabled="scope.row.biddingStatus !=7"
  110. class="upload-demo"
  111. :on-change="handleChange"
  112. :on-remove="handleRemove"
  113. :before-upload="beforeUpload"
  114. :show-file-list="false"
  115. name="multipartFile"
  116. style="display:inline-block"
  117. :action="BASE_API+'/common/bidding/receipt/' + scope.row.tenderProcessingId +'/'+ priceData.tenderType"
  118. list-type="text"
  119. :data="fileData"
  120. :file-list="fileList"
  121. multiple
  122. accept=".zip"
  123. >
  124. <el-button @click="handleUpload" :disabled="scope.row.biddingStatus !=7" class="el-icon-upload2" size="small" type="text" style="width:90px;fontSize:14px ">上传回执</el-button>
  125. </el-upload>
  126. </template>
  127. </el-table-column>
  128. </el-table>
  129. <!--分页-->
  130. <div class="pagination">
  131. <el-pagination
  132. current-page.sync="current"
  133. :current-page="current"
  134. :page-sizes="[1,10, 20, 30, 50]"
  135. :page-size="size"
  136. layout="total, sizes, prev, pager, next, jumper"
  137. background
  138. :total="total"
  139. @size-change="handleSizeChange"
  140. @current-change="handleCurrentChange"
  141. />
  142. </div>
  143. </el-card>
  144. </div>
  145. </template>
  146. <script>
  147. import { Listarea } from '@/api/dataForm'
  148. import { parseTime } from '@/utils/index'
  149. import { getBiddingList,getCustomerName } from '@/api/bid'
  150. export default {
  151. data() {
  152. return {
  153. // size: 'small',
  154. tableData: [],
  155. priceData: {},
  156. SelectionList:[],
  157. goodsName: '',
  158. tenderParentId: '',
  159. applyDateStart:[],
  160. customerType: [
  161. { id: 1, name: '有限责任公司(自然人独资)' },
  162. { id: 2, name: '有限责任公司(自然人投资或控股)' },
  163. { id: 3, name: '股份有限公司' },
  164. { id: 4, name: '有限合伙企业' },
  165. { id: 5, name: '外商独资公司' },
  166. { id: 6, name: '个人独资企业' },
  167. { id: 7, name: '国有独资公司' },
  168. { id: 8, name: '其他' }
  169. ],
  170. history:[
  171. {id:0,name:"否"},
  172. {id:1,name:"是"}
  173. ],
  174. historyValue:0,
  175. areaList: [],
  176. query: {
  177. goodsName: '',
  178. tenderParentId:""
  179. },
  180. formLabelWidth: '90px',
  181. isEditForm: false,
  182. current: 1,
  183. size: 10,
  184. total: 0, // 总数量
  185. dataForm: {
  186. },
  187. loading: false,
  188. dialogVisible: false,
  189. batchVisible:false,
  190. BASE_API: process.env.BASE_API,
  191. fileList: [],
  192. roles:[],
  193. userDataList:[],
  194. startTime:"",
  195. endTime:"",
  196. isShow:true
  197. }
  198. },
  199. created() {
  200. this.onCustmerName()
  201. console.log('res')
  202. },
  203. methods: {
  204. // 文件移除的时候
  205. handleRemove(file, fileList) {
  206. this.form.fileUrl = ''
  207. console.log(file, fileList, this.fileList, '移出')
  208. },
  209. // 格式限制
  210. beforeUpload(file){
  211. var testmsg = file.name.substring(file.name.lastIndexOf(".") + 1);
  212. const extension = testmsg === "zip"
  213. if (!extension ) {
  214. this.$message({
  215. message: "上传文件只能是.zip格式!",
  216. type: "warning",
  217. });
  218. }
  219. return extension;
  220. },
  221. // 文件状态改变时的钩子,添加文件、上传成功和上传失败时都会被调用
  222. handleChange(file, fileList) {
  223. console.log(file, fileList, '上传')
  224. if (file.response) {
  225. console.log(file.response, 'file')
  226. if (file.response.code == '200') {
  227. this.$message({
  228. message: '回执上传成功',
  229. type: 'success'
  230. });
  231. // this.form.fileUrl = file.response.data.filePath
  232. // this.form.tenderParentId = file.response.data.tenderParentId
  233. } else {
  234. Notification.error({
  235. title: file.response.msg,
  236. duration: 1000
  237. })
  238. }
  239. }
  240. },
  241. onCustmerName(){
  242. getCustomerName().then((res)=>{
  243. console.log(res)
  244. this.userDataList = res.data.data
  245. })
  246. },
  247. onshow(){
  248. this.isShow = !this.isShow
  249. },
  250. parseTime,
  251. getTenantList: function() {
  252. console.log(this.priceData,"pricData")
  253. const params = new URLSearchParams()
  254. params.append('tenderParentId', this.priceData.tenderParentId)
  255. params.append('tenderProcessingId', this.priceData.tenderProcessingId)
  256. params.append('current', this.current)
  257. params.append('size', this.size)
  258. this.loading =true
  259. getBiddingList(params).then(response => {
  260. console.log(response)
  261. this.loading = false
  262. let data = response.data.data.records
  263. console.log(new Date().valueOf(),"当前时间")
  264. data.map((res)=>{
  265. // 投标时间
  266. let startTime = this.priceData.endTime
  267. const date = new Date(startTime)
  268. const start = date.valueOf() //开始时间
  269. const time = new Date().valueOf() //当前时间
  270. console.log(start,"start")
  271. if(res.biddingStatus < 7){
  272. console.log("我不满足")
  273. if(time < start){
  274. res.biddingStatus = 5
  275. console.log("当前时间小于投标时间,已投递")
  276. }else if(time > start){
  277. res.biddingStatus = 6
  278. console.log("当前时间小于投标时间,审核中")
  279. }
  280. }
  281. return res
  282. })
  283. console.log(data)
  284. this.tableData = data
  285. console.log('1' + response.data.data.records)
  286. this.total = response.data.data.total
  287. })
  288. },
  289. onApplyDate(){
  290. let startTime
  291. let endTime
  292. if(this.applyDateStart != null){
  293. this.startTime =this.applyDateStart[0]
  294. this.endTime = this.applyDateStart[1]
  295. }else{
  296. this.startTime =""
  297. this.endTime =""
  298. }
  299. this.getTenantList()
  300. },
  301. handleFind: function() {
  302. this.current = 1
  303. this.getTenantList()
  304. },
  305. handleSizeChange: function(val) {
  306. this.size = val
  307. this.getTenantList()
  308. },
  309. // 换页
  310. handleCurrentChange: function(val) {
  311. const page = val.toString()
  312. this.current = page
  313. this.getTenantList()
  314. },
  315. // 查看
  316. // lookRecord:function(row){
  317. // this.lookCord=row
  318. // this.dialogVisible = true
  319. // console.log(row)
  320. // },
  321. handleOneChange(row,i){
  322. console.log(row,i)
  323. this.$refs.multipleTable.toggleRowSelection(row);
  324. },
  325. handleSelectionChange(row){
  326. console.log(row)
  327. this.SelectionList = row
  328. }
  329. }
  330. }
  331. </script>
  332. <style scoped lang="scss" >
  333. .ckTable{
  334. width: 100%;
  335. border: #eee;
  336. text-align: center;
  337. tr,td{
  338. border: 0.5px solid#dfe6ec;
  339. line-height: 23px;
  340. }
  341. }
  342. .el-dropdown-link {
  343. cursor: pointer;
  344. color: #1282f3;
  345. }
  346. .el-icon-arrow-down {
  347. font-size: 12px;
  348. }
  349. .el-scrollbar__wrap {
  350. overflow-y: hidden;
  351. }
  352. .el-card {
  353. border: 0px solid #fff;
  354. .topClass{
  355. font-weight: 600;
  356. font-size: 17px;
  357. }
  358. }
  359. .el-icon-document{
  360. font-size: 70px;
  361. color:#409EFF;
  362. line-height: 130px;
  363. }
  364. /deep/.el-card__body {
  365. padding: 20px 10px 0 10px !important;
  366. }
  367. /deep/ .el-table__expanded-cell[class*=cell]{
  368. padding: 0;
  369. }
  370. .pagination{
  371. padding-bottom: 30px;
  372. }
  373. .clearfix {
  374. line-height: 20px;
  375. font-size: 18px;
  376. font-weight: 600;
  377. color: #409EFF;
  378. }
  379. .box-card{
  380. margin-bottom: 20px;
  381. .row-bg{
  382. padding: 15px 40px 0 40px;
  383. .flex_text{
  384. line-height: 50px;
  385. color: #8C8C8C;
  386. font-size: 14px;
  387. // border:1px solid red;
  388. // font-weight: 600;
  389. }
  390. .flex_name{
  391. font-size: 14px;
  392. padding-left: 25px;
  393. color: #575757;
  394. font-weight: 550;
  395. }
  396. }
  397. }
  398. </style>