editgoods.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044
  1. <template>
  2. <div class="container">
  3. <el-row class="top">
  4. <el-col :span="18">
  5. <h2 class="bg-left title1">选择货源</h2>
  6. </el-col>
  7. <el-col :span="6" class="bg-right">
  8. <el-button class="bg-bottom" type="primary" size="small" @click="returnWarehouse()">返回</el-button>
  9. </el-col>
  10. </el-row>
  11. <el-row class="top-row">
  12. <el-col style="padding:15px;" :span="18">
  13. <el-date-picker style="margin: 0 10px 0 0" class="dataClass" value-format='yyyy-MM-dd' v-model="value2"
  14. @change='datechange' type="daterange" align="right" range-separator="至" start-placeholder="出入库日期起"
  15. end-placeholder="出入库日期止">
  16. </el-date-picker>
  17. <el-select filterable clearable v-model="inOutType" placeholder="请选择货名" class="typeselect"
  18. @change="binNumberChange">
  19. <el-option key="全部货名" label="全部货名" value="" />
  20. <el-option v-for="item in goodnameList" :key="item.constValue" :label="item.constValue"
  21. :value="item.constValue" />
  22. </el-select>
  23. </el-col>
  24. <el-col :span="6" class="bg-right">
  25. <ws-input v-model="searchKeyWord" placeholder="可按货主或合同编号查找" clearable maxlength="250" type="input"
  26. class="input">
  27. </ws-input>
  28. <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
  29. <ws-button class="find" type="primary" @click="find()">
  30. <img width="16" height="16" style="vertical-align: text-top; position: relative; top: 0px"
  31. src="../../../public/img/sousuo.png" alt />
  32. </ws-button>
  33. </el-col>
  34. </el-row>
  35. <el-row class="top-row">
  36. <el-col style="padding:15px;" :span="18">
  37. <el-button @click="bindedChange('')" :type="binded==''?'primary':''" size="small">全部</el-button>
  38. <el-button @click="bindedChange('0')" :type="binded=='0'?'primary':''" size="small">未绑定</el-button>
  39. <el-button @click="bindedChange('1')" :type="binded=='1'?'primary':''" size="small">已绑定</el-button>
  40. <span style="padding:10px;">库点:{{deptBudgetList.warehouseName}}</span>
  41. <span v-if='modification.length>0' style="padding:10px;">合计纯重:{{weight}}</span>
  42. </el-col>
  43. <el-col :span="6" class="bg-right">
  44. <el-button type="primary" @click="bindedselect">确定货源</el-button>
  45. </el-col>
  46. </el-row>
  47. <div class="center">
  48. <el-table ref="tableData" :data="warehouseList.records" height="570" @selection-change="handleSelectionChange">
  49. <el-table-column type="selection" width="55" :selectable="selectInit"></el-table-column>
  50. <el-table-column prop="warehouseReceipt" label="所属仓单" width="180">
  51. </el-table-column>
  52. <el-table-column prop="inOutTaskNo" label="业务编号" width="180">
  53. </el-table-column>
  54. <el-table-column prop="cargoRights" label="货源归属" width="130"> </el-table-column>
  55. <el-table-column prop="inOutType" label="入库类型" width="100"> </el-table-column>
  56. <el-table-column prop="carNo" label="车牌号">
  57. <template slot-scope="scope">
  58. <span style="color: #8890b1">{{ scope.row.carNo }}</span>
  59. </template>
  60. </el-table-column>
  61. <el-table-column prop="goodsName" label="货名"> </el-table-column>
  62. <el-table-column prop="netWeight" label="净重(吨)"></el-table-column>
  63. <el-table-column prop="pureWeight" label="纯重(吨)"> </el-table-column>
  64. <el-table-column label="水分(%)" span="1" prop="waterContent"></el-table-column>
  65. <el-table-column label="容重(g/l)" span="1" prop="bulkDensity"></el-table-column>
  66. <!-- <el-table-column prop="type" label="类型" width="60px"> </el-table-column> -->
  67. <el-table-column prop="cost" label="单价(元/吨)">
  68. </el-table-column>
  69. <el-table-column prop="price" label="粮款(元)"> </el-table-column>
  70. <!-- <el-table-column prop="inOutDate" label="入库日期" width="100px">
  71. <template slot-scope="scope">
  72. <span style="color: #8890b1">{{ scope.row.inOutDate }}</span>
  73. </template>
  74. </el-table-column> -->
  75. <el-table-column prop="createDate" label="入库日期">
  76. <template slot-scope="scope">
  77. <span style="color: #8890b1">{{ scope.row.createDate }}</span>
  78. </template>
  79. </el-table-column>
  80. </el-table>
  81. <div style="text-align: center; padding: 10px">
  82. <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
  83. :current-page="currentPage" :page-sizes="[10, 30, 50, 100,500,1000,9999]"
  84. layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal"></el-pagination>
  85. </div>
  86. </ws-form>
  87. </div>
  88. <WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
  89. @on-cancel="handleClose">
  90. <p>查看附件</p>
  91. <el-image style="width: 100px; height: 100px" :src="appendixIdss" :preview-src-list="srcList">
  92. </el-image>
  93. </WinseaContentModal>
  94. </div>
  95. </template>
  96. <script>
  97. import {
  98. addselectinfoList,
  99. recordss,
  100. getPrintInfo,
  101. getExpense,
  102. } from '@/model/warehouse/index'
  103. import {
  104. packList,
  105. } from '@/model/contarct/index'
  106. import * as global from '@/global'
  107. import Pagination from '@/components/Pagination'
  108. import WsUpload from '@/components/WsUpload'
  109. import {
  110. dayjs,
  111. fmoney,
  112. EventBus
  113. } from 'base-core-lib'
  114. export default {
  115. name: 'viewSpareMoney',
  116. components: {
  117. WsUpload,
  118. Pagination,
  119. },
  120. watch: {
  121. vesselId(val) {
  122. this.getList()
  123. },
  124. isShow(val) {
  125. this.showType = val
  126. },
  127. },
  128. data() {
  129. return {
  130. //弹出框
  131. dialogViewSpareMoney: false,
  132. binnumberList: [],
  133. // 船舶类型
  134. monetaryKey: null,
  135. // 是否显示
  136. showType: true,
  137. // 年
  138. year: '',
  139. form:{},
  140. contractNo:{},
  141. show:false,
  142. srcList: [],
  143. binded:'',
  144. goodsName:'',
  145. currectdata:{
  146. compId: localStorage.getItem('ws-pf_compId'),
  147. },
  148. inOutType:'',
  149. goodsList:[],
  150. num:0,
  151. deptBudgetTotal: 0,
  152. currentPage: 1,
  153. pageSize: 10,
  154. capacity: '',
  155. searchKeyWord: '',
  156. contractType: 2,
  157. startDate: null,
  158. endDate: null,
  159. remark: '',
  160. binNumber: '全部仓位',
  161. status: 1,
  162. value2: [],
  163. appendixIdss: '',
  164. // 提交类型
  165. submitType: true,
  166. selectpackingMethod: {},
  167. size: 10,
  168. warehouseType: '1',
  169. taskNolist1:[],
  170. compId: localStorage.getItem('ws-pf_compId'),
  171. deptCircularPage: {},
  172. pcFlag: 1,
  173. goodnameList:[],
  174. date: {
  175. year: dayjs().format('YYYY'),
  176. month: dayjs().format('MM'),
  177. },
  178. warehouseList: [],
  179. taskNolist:[],
  180. taskNolist1:[],
  181. arr2:[],
  182. deptBudgetList: {},
  183. historyList: [],
  184. searchType: 3,
  185. allurl: '../../../public/img/radio.png',
  186. pickerBeginDateBefore: {
  187. disabledDate: (time) => {
  188. return time.getTime() > Date.now()
  189. },
  190. },
  191. accessoryTFs: false,
  192. modification: [],
  193. printList: [], //批量打印数据
  194. warehouseAllXiaLa:[],
  195. billNo:'',
  196. db:{},
  197. weight:0
  198. }
  199. },
  200. async activated() {
  201. this.db=await global.default.openDB('warehouseReceipt')
  202. this.deptBudgetList.baseId = this.$route.query.baseId
  203. // this.deptBudgetList.positionId = this.$route.query.positionId
  204. this.deptBudgetList.warehouseName = this.$route.query.warehouseName
  205. this.remark = this.$route.query.remark
  206. this.billNo = this.$route.query.billNo
  207. // this.binNumber = this.$route.query.binNumber
  208. this.capacity = this.$route.query.capacity
  209. this.warehouseType = this.$route.query.warehouseType
  210. // 货名
  211. packList({
  212. constId: 'CON2'
  213. })
  214. .toPromise()
  215. .then((response) => {
  216. this.goodnameList = response
  217. })
  218. this.getList()
  219. // this.getPassYearFormatDate()
  220. this.showType = this.isShow
  221. },
  222. updated() {
  223. this.$nextTick(() => {
  224. // this.$refs['tableData'].doLayout();
  225. })
  226. },
  227. methods: {
  228. async bindedselect(){
  229. const newListLength = new Set(this.modification.map(item => item.goodsName)).size;
  230. if ( newListLength>1) {
  231. this.$message.error("请选择相同货名的条目!")
  232. return
  233. }
  234. console.log(this.modification)
  235. console.log()
  236. var data=await global.default.getDataByKey(this.db,'signalChat',2)
  237. if(data){
  238. if(data.modification){
  239. global.default.updateDB(this.db,'signalChat',{sequenceId:2,modification:this.modification})
  240. }
  241. }else{
  242. global.default.addData(this.db,'signalChat',{sequenceId:2,modification:this.modification})
  243. }
  244. // localStorage.setItem('warehouseReceiptGood',this.modification)
  245. this.$router.go(-1)
  246. },
  247. bindedChange(e){
  248. this.binded=e
  249. this.getList()
  250. },
  251. warehousechange(){
  252. this.getList()
  253. },
  254. async salesTransfer(){
  255. var arr=[]
  256. if (this.modification.length == 0) {
  257. this.$message.error("请勾选要转移的条目!")
  258. } else {
  259. this.num=0
  260. for (var i = 0; i < this.modification.length; i++) {
  261. if(this.modification[i].inOutType!='销售出库'){
  262. this.$message.error("请勾选相同合同编号的销售出库记录!")
  263. return
  264. }
  265. this.num+=Number(this.modification[i].netWeight)
  266. if(arr.length==0){
  267. arr.push(this.modification[i])
  268. }
  269. var arr1=arr.filter((item)=>{return item.contractNo==this.modification[i].contractNo})
  270. if(arr1.length==0){
  271. arr.push(this.modification[i])
  272. }
  273. }
  274. if(arr.length>1){
  275. this.$message.error("请勾选相同合同编号的销售出库记录!")
  276. return
  277. }
  278. var contractNo=await getExpense({ contractNo: arr[0].contractNo, compId: this.compId }).toPromise()
  279. if(contractNo.status=='已完成'||contractNo.status=='已结算'){
  280. this.$message.error("已完成的合同记录不可转移!")
  281. return
  282. }
  283. this.currectdata.warehouseInOutInfoList=this.modification
  284. let map = new Map();
  285. for (let item of this.modification) {
  286. map.set(item.inOutTaskNo, item.inOutTaskNo);
  287. }
  288. var arr = [...map.values()]
  289. console.log(arr)
  290. this.currectdata.taskNo=arr.toString()
  291. this.currectdata.contractNo=this.modification[0].contractNo
  292. this.currectdata.pointOut=contractNo.pointOut
  293. this.taskNolist=this.taskNolist1
  294. this.arr2=[]
  295. for (let i = 0; i < this.taskNolist.length; i++) {
  296. if(this.taskNolist[i].contractNo&&this.taskNolist[i].contractNo!=this.currectdata.contractNo||this.taskNolist[i].moveTaskNo&&this.taskNolist[i].moveTaskNo!=this.currectdata.contractNo){
  297. this.arr2.push(this.taskNolist[i])
  298. }
  299. }
  300. console.log(this.arr2)
  301. this.show=true
  302. }
  303. },
  304. handleSelectionChange(val) {
  305. this.modification = val
  306. this.weight=0
  307. for (let i = 0; i < this.modification.length; i++) {
  308. this.weight+=this.modification[i].pureWeight
  309. }
  310. this.weight= this.weight.toFixed(2)
  311. console.log("sfasa", this.modification)
  312. },
  313. selectInit(row) {
  314. if (row.warehouseReceipt == this.billNo||!row.warehouseReceipt) {
  315. console.log(row.warehouseReceipt != this.billNo,this.billNo,1111111)
  316. return true
  317. } else {
  318. console.log(row.warehouseReceipt != this.billNo,this.billNo,222222)
  319. return false
  320. }
  321. },
  322. binNumberChange(e) {
  323. console.log(e)
  324. if (e ) {
  325. this.goodsName=e
  326. } else {
  327. this.goodsName=''
  328. }
  329. this.getList()
  330. },
  331. /* 获取现在时间,并接受过去时间的值 */
  332. getNowFormatDate (formatDate) {
  333. var date = new Date()
  334. date.setTime(date.getTime()+24*60*60*1000)
  335. var seperator1 = '-'
  336. var year = date.getFullYear()
  337. var month = date.getMonth() + 1
  338. var strDate = date.getDate()
  339. if (month >= 1 && month <= 9) {
  340. month = '0' + month
  341. }
  342. if (strDate >= 0 && strDate <= 9) {
  343. strDate = '0' + strDate
  344. }
  345. var nowData = year + seperator1 + month + seperator1 + strDate
  346. this.value2= [formatDate, nowData] // 默认赋值一年时间
  347. },
  348. print(row){
  349. sessionStorage.removeItem('record_print')
  350. getPrintInfo({
  351. id: row.id
  352. })
  353. .toPromise()
  354. .then((response) => {
  355. localStorage.setItem('ck_bd_printData',JSON.stringify(response))
  356. window.open('../../../../static/weightCheckInOut.html?type=2')
  357. })
  358. },
  359. //返回按钮
  360. returnWarehouse() {
  361. this.$router.go(-1)
  362. },
  363. dateFormat(fmt, date) {
  364. let ret
  365. const opt = {
  366. 'Y+': date.getFullYear().toString(), // 年
  367. 'm+': (date.getMonth() + 1).toString(), // 月
  368. 'd+': date.getDate().toString(), // 日
  369. 'H+': date.getHours().toString(), // 时
  370. // "M+": date.getMinutes().toString(), // 分
  371. // "S+": date.getSeconds().toString() // 秒
  372. // 有其他格式化字符需求可以继续添加,必须转化成字符串
  373. }
  374. for (let k in opt) {
  375. ret = new RegExp('(' + k + ')').exec(fmt)
  376. if (ret) {
  377. fmt = fmt.replace(
  378. ret[1],
  379. ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
  380. )
  381. }
  382. }
  383. return fmt
  384. },
  385. datechange(){
  386. this.getList()
  387. },
  388. find() {
  389. this.getList()
  390. },
  391. handleClose() {
  392. this.accessoryTFs = false
  393. this.show=true
  394. },
  395. handleSizeChange(val) {
  396. console.log(`每页 ${val} 条`)
  397. this.pageSize = val
  398. this.getList()
  399. },
  400. handleCurrentChange(val) {
  401. this.currentPage = val
  402. console.log(`当前页: ${val}`)
  403. this.getList()
  404. },
  405. record(status, status1) {
  406. this.status = status1
  407. this.searchType = status
  408. this.currentPage = '1'
  409. this.getList()
  410. },
  411. // 上传附件
  412. uploadSuccess(data, files, url) {
  413. console.log(data, files, url)
  414. // this.deptBudgetList.
  415. // this.formData.append('files', files)
  416. // this.feedbackObj.uploadNameAttachment = data.appendixName
  417. // this.feedbackObj.pathUploadAttachment = data.appendixPath
  418. // // this.newAppendixs = files
  419. // this.onChangeFlag = true
  420. },
  421. async getList() {
  422. var startDate=''
  423. var endDate=''
  424. if(this.value2){
  425. startDate=this.value2[0]?this.value2[0]:''
  426. endDate=this.value2[1]?this.value2[1]:''
  427. }
  428. var data=await global.default.getDataByKey(this.db,'signalChat',2)
  429. if (this.warehouseType == 1) {
  430. addselectinfoList({
  431. compId: localStorage.getItem('ws-pf_compId'),
  432. baseId: this.deptBudgetList.baseId,
  433. positionId: this.deptBudgetList.positionId,
  434. warehouseName: this.deptBudgetList.warehouseName,
  435. startDate:startDate,
  436. endDate:endDate,
  437. searchType: this.searchType,
  438. searchKeyWord: this.searchKeyWord,
  439. currentPage: this.currentPage,
  440. pcFlag: this.pcFlag,
  441. pageSize: this.pageSize,
  442. binded:this.binded,
  443. goodsName:this.goodsName
  444. })
  445. .toPromise()
  446. .then((response) => {
  447. for (var i = 0; i < response.records.length; i++) {
  448. if (response.records[i].cost&&response.records[i].pureWeight) {
  449. response.records[i].price=Number(response.records[i].cost*response.records[i].pureWeight).toFixed(2)
  450. } else {
  451. response.records[i].price=0
  452. }
  453. }
  454. this.deptCircularPage.currentPage = response.current
  455. this.deptCircularPage.pageSize = response.size
  456. this.deptBudgetTotal = response.total
  457. this.warehouseList = response
  458. if(localStorage.getItem('warehouseReceipteditdata')||data.modification&&data.modification.length>0){
  459. if(data&&data.modification&&data.modification.length>0){
  460. this.$nextTick(()=>{
  461. for (let i = 0; i <data.modification.length; i++) {
  462. var index=this.warehouseList.records.findIndex((item)=>{return item.id==data.modification[i].id})
  463. this.$refs.tableData.toggleRowSelection(this.warehouseList.records[index],true)
  464. }
  465. })
  466. }else{
  467. var modification1 = JSON.parse(localStorage.getItem('warehouseReceipteditdata')).warehouseInOutInfoList
  468. this.$nextTick(()=>{
  469. for (let i = 0; i < this.warehouseList.records.length; i++) {
  470. var index=modification1.findIndex((item)=>{return item.id==this.warehouseList.records[i].id})
  471. if(index!=-1){
  472. console.log(i)
  473. this.$refs.tableData.toggleRowSelection(this.warehouseList.records[i],true)
  474. this.$forceUpdate()
  475. }
  476. }
  477. })
  478. }
  479. }
  480. })
  481. } else if (this.warehouseType == 2) {
  482. recordss({
  483. compId: localStorage.getItem('ws-pf_compId'),
  484. baseId: this.deptBudgetList.baseId,
  485. positionId: this.deptBudgetList.positionId,
  486. warehouseName: this.deptBudgetList.warehouseName,
  487. startDate:startDate,
  488. endDate:endDate,
  489. searchType: this.searchType,
  490. searchKeyWord: this.searchKeyWord,
  491. currentPage: this.currentPage,
  492. pageSize: this.pageSize,
  493. binded:this.binded,
  494. goodsName:this.goodsName
  495. })
  496. .toPromise()
  497. .then((response) => {
  498. for (var i = 0; i < response.records.length; i++) {
  499. if (response.records[i].cost&&response.records[i].pureWeight) {
  500. response.records[i].price=response.records[i].cost*response.records[i].pureWeight
  501. } else {
  502. response.records[i].price=0
  503. }
  504. }
  505. this.deptCircularPage.currentPage = response.current
  506. this.deptCircularPage.pageSize = response.size
  507. this.deptBudgetTotal = response.total
  508. this.warehouseList = response
  509. if(localStorage.getItem('warehouseReceipteditdata')||data.modification&&data.modification.length>0){
  510. if(data&&data.modification&&data.modification.length>0){
  511. this.$nextTick(()=>{
  512. for (let i = 0; i <data.modification.length; i++) {
  513. var index=this.warehouseList.records.findIndex((item)=>{return item.id==data.modification[i].id})
  514. this.$refs.tableData.toggleRowSelection(this.warehouseList.records[index],true)
  515. }
  516. })
  517. }else{
  518. var modification1 = JSON.parse(localStorage.getItem('warehouseReceipteditdata')).warehouseInOutInfoList
  519. this.$nextTick(()=>{
  520. for (let i = 0; i < this.warehouseList.records.length; i++) {
  521. var index=modification1.findIndex((item)=>{return item.id==this.warehouseList.records[i].id})
  522. if(index!=-1){
  523. console.log(i)
  524. this.$refs.tableData.toggleRowSelection(this.warehouseList.records[i],true)
  525. this.$forceUpdate()
  526. }
  527. }
  528. })
  529. }
  530. }
  531. })
  532. }
  533. },
  534. selecttaskType(e) {
  535. for (var i = 0; i < this.taskTypeList.length; i++) {
  536. if (this.taskTypeList[i].value == e) {
  537. this.searchType = this.taskTypeList[i].type
  538. }
  539. }
  540. },
  541. fujian(row) {
  542. if (
  543. row.addressUrl === null ||
  544. row.addressUrl === ''
  545. ) {
  546. EventBus.$emit(
  547. 'warning',
  548. this.$t('system.noticeCircular.NoInformation')
  549. )
  550. } else {
  551. this.accessoryTFs = true
  552. }
  553. this.appendixIdss = row.addressUrl
  554. this.srcList=[row.addressUrl]
  555. },
  556. // 关闭 dialog时 处理文件url 初始化upload组件
  557. handleCloe() {
  558. this.dialogViewSpareMoney = false
  559. },
  560. history(row) {
  561. console.log(row)
  562. billoperatehis({
  563. id: row.id
  564. })
  565. .toPromise()
  566. .then((response) => {
  567. this.historyList = response
  568. })
  569. },
  570. // async exportlist() {
  571. // const { data } = await export1(
  572. // {
  573. // compId: localStorage.getItem('ws-pf_compId'),
  574. // contractType: this.contractType,
  575. // currentPage: this.currentPage,
  576. // pageSize: this.pageSize,
  577. // searchType: this.searchType,
  578. // searchKeyWord: this.searchKeyWord,
  579. // startDate: this.startDate,
  580. // endDate: this.endDate,
  581. // },
  582. // {},
  583. // { responseType: 'blob' }
  584. // ).toPromise()
  585. // downloadFile({
  586. // res: data,
  587. // fileName: `${
  588. // this.date.year + (this.date.month ? `-${this.date.month}` : '')
  589. // }_采购合同`,
  590. // type: 'xls',
  591. // })
  592. // },
  593. // deletecontract(){},
  594. //删除
  595. approve() {},
  596. listQuery() {},
  597. total() {},
  598. clearfiltQuery() {},
  599. selectCrtDuty() {},
  600. },
  601. }
  602. </script>
  603. <style lang="scss" scoped>
  604. /deep/.totalStorage .el-input__inner {
  605. color: #afb5cb;
  606. background: #f5f7fa;
  607. }
  608. .small-title {
  609. position: relative;
  610. padding: 10px;
  611. font-weight: 600;
  612. }
  613. .small-title::before {
  614. position: absolute;
  615. content: '';
  616. display: block;
  617. background: #5473e8;
  618. width: 4px;
  619. height: 14px;
  620. left: 0px;
  621. top: 13px;
  622. }
  623. .position {
  624. position: relative;
  625. }
  626. .add,
  627. .del {
  628. position: absolute;
  629. right: -38px;
  630. top: 9px;
  631. cursor: pointer;
  632. }
  633. .del {
  634. right: -70px;
  635. }
  636. .amap-page-container {
  637. width: 300px;
  638. height: 300px;
  639. }
  640. .ware {
  641. font-size: 12px;
  642. color: rgb(255, 255, 255);
  643. padding: 3px;
  644. position: relative;
  645. top: -1px;
  646. border-radius: 3px;
  647. display: inline-block;
  648. text-align: center;
  649. }
  650. .title1 {
  651. position: relative;
  652. }
  653. .title1::before {
  654. content: '';
  655. display: inline-block;
  656. width: 5px;
  657. height: 30px;
  658. background: #5473e8;
  659. position: absolute;
  660. left: 0;
  661. }
  662. .ws-info-table {
  663. border-left: 1px solid transparent;
  664. border-top: 1px solid transparent;
  665. }
  666. .el-button--primary {
  667. background-color: #5878e8;
  668. border-color: #5878e8;
  669. }
  670. .adjustment.el-button--primary {
  671. background-color: #51cdd9;
  672. border-color: #51cdd9;
  673. }
  674. .top .el-col {
  675. background: #f6f7fc;
  676. }
  677. .record {
  678. background: #fff;
  679. color: #8890b1;
  680. border-color: #fff;
  681. display: inline-block;
  682. margin-bottom: 10px;
  683. cursor: pointer;
  684. margin-left: 5px;
  685. margin-right: 5px;
  686. }
  687. .record img {
  688. position: relative;
  689. top: 2px;
  690. }
  691. .record.active img {
  692. position: relative;
  693. top: 4px;
  694. }
  695. .record.active {
  696. color: #262626;
  697. }
  698. .button-container {
  699. display: flex;
  700. flex-wrap: nowrap;
  701. justify-content: space-between;
  702. align-items: center;
  703. background-color: #fff;
  704. width: 100%;
  705. height: 50px;
  706. padding: 0 10px;
  707. &>div {
  708. margin-left: 10px;
  709. display: flex;
  710. flex-wrap: nowrap;
  711. flex-direction: row;
  712. &>span {
  713. line-height: 50px;
  714. }
  715. }
  716. /deep/.auditFlow-box {
  717. position: unset;
  718. margin-left: 10px;
  719. &/deep/.auditFlow-icon {
  720. width: auto;
  721. padding-right: 30px;
  722. }
  723. &/deep/.auditFlow-main {
  724. position: absolute;
  725. }
  726. }
  727. }
  728. .box-app {
  729. display: inline-block;
  730. float: left;
  731. margin-left: 30px;
  732. line-height: 50px;
  733. }
  734. /deep/.el-dialog {
  735. .el-form-item {
  736. margin-bottom: 0 !important;
  737. .el-input--medium {
  738. textarea {
  739. min-height: 100px !important;
  740. }
  741. }
  742. }
  743. }
  744. .top-grade {
  745. background: linear-gradient(90deg, #5678e9, #7993f6);
  746. color: #fff;
  747. padding: 3px;
  748. border-radius: 2px;
  749. }
  750. .second-class {
  751. background: linear-gradient(90deg, #50cdd9, #82e2ea);
  752. color: #fff;
  753. padding: 3px;
  754. border-radius: 2px;
  755. }
  756. .third-class {
  757. background: linear-gradient(90deg, #ffa735, #ffbf70);
  758. color: #fff;
  759. padding: 3px;
  760. border-radius: 2px;
  761. }
  762. .substandard {
  763. background: linear-gradient(90deg, #b2b4bb, #ced0d5);
  764. color: #fff;
  765. padding: 3px;
  766. border-radius: 2px;
  767. }
  768. .collapse-bottom {
  769. margin-bottom: 20px;
  770. }
  771. .input-main .textarea .el-textarea__inner {
  772. width: 100%;
  773. z-index: 1;
  774. }
  775. .bg-left {
  776. padding-left: 30px;
  777. }
  778. .bg-right {
  779. padding-right: 10px;
  780. text-align: right;
  781. }
  782. .bg-bottom {
  783. margin: 15px 0px;
  784. }
  785. .wenzi {
  786. width: 900px;
  787. margin: 0 auto;
  788. }
  789. .wenzi h3 {
  790. display: inline-block;
  791. left: 10px;
  792. }
  793. .wenzi p {
  794. display: inline-block;
  795. }
  796. .center {
  797. padding: 0 1%;
  798. }
  799. .el-form-item__label {
  800. text-align: center;
  801. }
  802. .ce {
  803. width: 900px;
  804. margin: 0 auto;
  805. }
  806. /*.crt-main .textarea /deep/ .el-form-item__label {*/
  807. /* height: 82px;*/
  808. /*}*/
  809. // 控制select为只读的时候显示样式
  810. .hide-sel {
  811. .el-input__inner {
  812. border: 0px;
  813. }
  814. .el-icon-arrow-up {
  815. display: none;
  816. }
  817. .el-textarea__inner {
  818. background-color: #fff !important;
  819. border: 0;
  820. }
  821. .el-date-editor {
  822. i {
  823. display: none;
  824. }
  825. }
  826. .is-disabled {
  827. .el-input__inner:hover {
  828. background-color: #fff !important;
  829. border: 0;
  830. }
  831. color: #606266;
  832. .el-input__inner {
  833. background-color: #fff !important;
  834. border: 0;
  835. color: #606266;
  836. }
  837. .el-textarea__inner {
  838. background-color: #fff !important;
  839. border: 0;
  840. color: #606266;
  841. }
  842. }
  843. }
  844. // 控制select为只读的时候显示样式
  845. /deep/.ws-class-table-col {
  846. height: auto;
  847. padding: 0px 2px;
  848. /deep/.el-input__inner {
  849. padding: 0px 2px;
  850. }
  851. }
  852. /deep/.is-disabled {
  853. .el-input__prefix,
  854. .el-input__suffix {
  855. display: none;
  856. }
  857. .el-input__inner {
  858. background-color: #fff;
  859. border-color: #fff !important;
  860. color: #000 !important;
  861. font-size: 14px;
  862. cursor: text;
  863. padding: 0 !important;
  864. }
  865. }
  866. .winseaview-view {
  867. padding: 0 0 20px;
  868. }
  869. .container {
  870. overflow: scroll;
  871. height: 93vh;
  872. }
  873. .el-textarea__inner {
  874. display: none;
  875. }
  876. .readonly {
  877. width: 16%;
  878. }
  879. .ws-info-table .el-form-item {
  880. width: 14.28%;
  881. }
  882. .dataClass {
  883. width: 20% !important;
  884. }
  885. .input {
  886. width: 50% !important;
  887. }
  888. /deep/.ws-info-table .el-form-item .el-form-item__label {
  889. background-color: #f6f7fc;
  890. font-size: 12px;
  891. height: 45px;
  892. }
  893. //去边框
  894. /deep/.el-form-item {
  895. border-right: 0px;
  896. border-bottom: 0px;
  897. }
  898. /deep/.ws-info-table {
  899. border-left: 0px;
  900. border-top: 0px;
  901. }
  902. .ws-info-table .el-form-item .el-form-item__content {
  903. border-right: 0px;
  904. border-bottom: 0px;
  905. border-left: 0px;
  906. border-top: 0px;
  907. }
  908. /deep/.ws-info-table .el-form-item {
  909. border-right: 0px;
  910. border-bottom: 0px;
  911. border-left: 0px;
  912. border-top: 0px;
  913. }
  914. /deep/.ws-info-table .el-form-item .el-form-item__content {
  915. background: #f5f7fa;
  916. border-radius: 4px;
  917. border: 1px solid #d8dce6;
  918. font-family: PingFangSC-Regular, PingFang SC;
  919. margin-bottom: 5px;
  920. background-color: #fff;
  921. font-size: 14px;
  922. font-weight: 400;
  923. color: #8890b1;
  924. line-height: 16px;
  925. }
  926. /deep/.ws-info-table .el-form-item .el-form-item__content {
  927. border: 0px;
  928. }
  929. /deep/.el-table td,
  930. /deep/.el-table .el-table__header .cell {
  931. text-align: center;
  932. }
  933. .binNo {
  934. color: #333;
  935. font-size: 18px;
  936. margin-left: 20px;
  937. }
  938. .top-row{
  939. margin:10px 0;
  940. }
  941. </style>