123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668 |
- // 查看采购计划
- <template>
- <div class="container">
- <el-row>
- <el-col :span="12">
- <h2 class="bg-left title">查看采购计划</h2>
- </el-col>
- <el-col :span="12" class="bg-right">
- <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">
- <img
- width="6"
- height="10"
- style="vertical-align: bottom; margin-right: 3px"
- src="../../../public/img/lujing.png"
- alt
- />返回
- </el-button>
- </el-col>
- </el-row>
- <div class="basicInformation">
- <el-radio-group @change="tasktypechange" v-model="dataList.taskTypeKey"></el-radio-group>
- <div class="center1">
- <div class="small-title">
- <h3>基本信息</h3>
- </div>
- <el-form ref="dataList" :model="dataList" label-width="140px">
- <!-- 标题 -->
- <el-form-item label="标题">
- <el-input disabled v-model="dataList.title" class="typeselect"></el-input>
- </el-form-item>
- <!-- 货名 -->
- <el-form-item label="货名">
- <el-input disabled v-model="dataList.goodsName" class="typeselect"></el-input>
- </el-form-item>
- <!-- 计划采购量(吨) -->
- <el-form-item label="计划采购量(吨)">
- <el-input disabled v-model="dataList.plannedPurchaseVolume" class="typeselect"></el-input>
- </el-form-item>
- <!-- 最小成交量(吨) -->
- <el-form-item label="最小成交量(吨)">
- <el-input disabled v-model="dataList.minimumVolume"></el-input>
- </el-form-item>
- <!--类型-->
- <el-form-item label="类型" span="1">
- <el-input disabled v-model="dataList.procurementPlanType" maxlength="120" />
- </el-form-item>
- <!-- 价格类型 -->
- <el-form-item label="价格类型">
- <el-input v-model="dataList.priceType" placeholder class="typeselect" disabled></el-input>
- </el-form-item>
- <ws-form-item v-show="dataList.procurementPlanType=='期货'" label="基差(元/吨)" span="1" prop="basisPrice">
- <el-input v-model="dataList.basisPrice" disabled maxlength="120" size="small" />
- </ws-form-item>
- <!--采购价格(元)-->
- <ws-form-item v-show="dataList.procurementPlanType=='现货'" label="采购价格(元)" span="1" prop="procurementPrice">
- <el-input
- disabled
- v-model="dataList.procurementPrice"
- maxlength="120"
- size="small"
- />
- </ws-form-item>
- <!--收货库-->
- <el-form-item label="收货库" span="1">
- <el-input disabled v-model="dataList.receiveWarehouse" maxlength="120" size="small" />
- </el-form-item>
- <!--收货库所在地区-->
- <el-form-item label="收货库所在地区" span="1">
- <div class="forlist">
- {{dataList.receivePrivate}}{{dataList.receiveCity}}{{dataList.receiveArea}}
- </div>
- </el-form-item>
- <!--运费承担方-->
- <el-form-item label="运费承担方">
- <el-input disabled v-model="dataList.freightPayer" maxlength="120" size="small" />
- </el-form-item>
- <!--包装方式-->
- <el-form-item label="包装方式">
- <el-input disabled v-model="dataList.packingType" filterable></el-input>
- </el-form-item>
- <!--装袋备注=-->
- <el-form-item label="装袋备注" v-if="dataList.packingType == '大袋' || dataList.packingType == '小袋'">
- <el-input disabled v-model="dataList.baggingNotes" size="small" />
- </el-form-item>
- <!-- 买方 -->
- <el-form-item label="买方">
- <el-input disabled v-model="dataList.buyer" maxlength="120" size="small" />
- </el-form-item>
- <!-- 买方电话 -->
- <el-form-item label="买方电话">
- <el-input disabled v-model="dataList.buyerPhone" filterable></el-input>
- </el-form-item>
- <div class="small-title"></div>
- </el-form>
- </div>
- <div class="center1">
- <div class="small-title">
- <h3>货物要求</h3>
- </div>
- <el-form ref="dataList" :model="dataList" label-width="140px">
- <el-form-item label="水分(%)<=">
- <el-input disabled v-model="dataList.waterContent" class="typeselect" />
- </el-form-item>
- <!-- 容重 -->
- <el-form-item label="容重(g/l)>=">
- <el-input disabled v-model="dataList.bulkDensity" class="typeselect" />
- </el-form-item>
- <!-- 热损伤 -->
- <el-form-item label="热损伤(%)<=">
- <el-input disabled v-model="dataList.jiaorenli" class="typeselect" />
- </el-form-item>
- <!-- 杂质 -->
- <el-form-item label="杂质(%)<=">
- <el-input disabled v-model="dataList.impurity" class="typeselect" />
- </el-form-item>
- <!-- 霉变粒 -->
- <el-form-item label="霉变粒(%)<=">
- <el-input disabled v-model="dataList.mildewGrain" />
- </el-form-item>
- <!--不完善粒(%)<=-->
- <el-form-item label="不完善粒(%)<=" span="1">
- <el-input disabled v-model="dataList.imperfectGrain" maxlength="120" />
- </el-form-item>
- <!-- 蛋白(%)>= -->
- <el-form-item label="蛋白(%)>=" span="1">
- <el-input v-model="dataList.protein" placeholder class="typeselect" disabled />
- </el-form-item>
- <!--粒形-->
- <el-form-item label="粒形" span="1">
- <el-input disabled v-model="dataList.grain" maxlength="120" size="small" />
- </el-form-item>
- <!--水分(%)<=-->
- <el-form-item label="品级" span="1">
- <el-input disabled v-model="dataList.grade" maxlength="120" size="small" />
- </el-form-item>
- <!--产地-->
- <el-form-item label="产地" span="1">
- <div class="forlist">
- {{dataList.outputPrivate}}{{dataList.outputCity}}
- </div>
- </el-form-item>
- <!--产出年份-->
- <el-form-item label="产出年份" span="1">
- <el-date-picker
- disabled
- v-model="dataList.outputYear"
- type="year"
- align="right"
- unlink-panels
- range-separator="至"
- placeholder="产出年份"
- ></el-date-picker>
- </el-form-item>
- </el-form>
- </div>
- </div>
- <!-- 关闭 -->
- <div style="text-align: right; padding: 10px" class="center">
- <el-button class="bg-bottom" type="primary" size="small" @click="close()">关闭</el-button>
- </div>
- </div>
- </template>
- <script>
- import {
- procurementLook,
- } from '@/model/purchasingManagement/index'
- import Pagination from '@/components/Pagination'
- import WsUpload from '@/components/WsUpload'
- // import { dayjs, fmoney, EventBus } from 'base-core-lib'
- import { dayjs, EventBus } from 'base-core-lib'
- export default {
- name: 'viewSpareMoney',
- components: {
- WsUpload,
- Pagination
- },
- watch: {
- isShow(val) {
- this.showType = val
- }
- },
- computed: {
- ...mapGetters(['deptBudgetList'])
- },
- data() {
- return {
- //弹出框
- dialogViewSpareMoney: false,
- dialogApproveFormVisible: false,
- // 船舶类型
- monetaryKey: null,
- // 表格显示数据
- tableDate: [],
- // 是否显示
- showType: true,
- // 年
- year: '',
- contractNoList: [],
- deptBudgetTotal: 0,
- readonly: true,
- currentPage: 1,
- pageSize: 10,
- searchType: 1,
- searchKeyWord: '',
- radio: '1',
- contractType: 2,
- startDate: null,
- endDate: null,
- goodnameList: [],
- checked: true,
- form: {},
- staffList: [],
- options: [],
- storageType: [],
- storageType1: [],
- outContractNo: [],
- // 提交类型
- submitType: true,
- status: [],
- unitPricechange: [],
- warehouseNameList: [],
- warehouseNameList1: [],
- waterContentchange: [],
- appendixIdsAdd: '',
- uploadSuccess: {},
- warehouseInOutDetail: {},
- onChange: {},
- deptBudgetList1: [],
- gradeList: [],
- rules: {
- netWeight: [
- {
- required: true,
- type: 'number',
- message: '请输入活动名称',
- trigger: 'blur'
- }
- ]
- },
- size: 10,
- compId: sessionStorage.getItem('ws-pf_compId'),
- deptCircularPage: {},
- packtypeList: {},
- date: {
- year: dayjs().format('YYYY'),
- month: dayjs().format('MM')
- },
- contractList: [],
- inOutTaskNo: '',
- inOutTaskNo1: '',
- dataList: { taskTypeKey: '1' },
- dataList1: { taskTypeKey: '1' },
- historyList: [],
- pickerBeginDateBefore: {
- disabledDate: time => {
- return time.getTime() > Date.now()
- }
- },
- accessoryTFs: false
- }
- },
- activated() {
- this.getList()
- this.showType = this.isShow
- },
- mounted() {
- this.dataList.id = this.$route.query.id
- },
- methods: {
- //返回按钮
- returnsales() {
- this.$router.go(-1)
- },
- // 获取当前年月日
- getdate() {
- var date = new Date()
- var year = date.getFullYear() //获取完整的年份(4位)
- var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
- var datetime = date.getDate() //获取当前日(1-31)
- if (mouth < 10) {
- mouth = '0' + mouth
- }
- if (datetime < 10) {
- datetime = '0' + datetime
- }
- return year +'' + mouth + datetime
- },
- // 随机验证码
- verifyinit() {
- var arr = []
- for (var i = 48; i < 123; i++) {
- if (i > 57 && i < 65) continue
- if (i > 90) continue
- arr.push(String.fromCharCode(i))
- }
- arr.sort(function() {
- return Math.random() - 0.5
- })
- arr.length = 4
- return arr.join('')
- },
- dataFilter(val) {
- // console.log(val,"名")
- this.deptBudgetList.staffList = val
- if (val) {
- //val存在
- this.options = this.staffList.filter(item => {
- if (
- !!~item.staffName.indexOf(val) ||
- !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
- ) {
- return true
- }
- })
- } else {
- //val为空时,还原数组
- this.options = this.staffList
- }
- },
- selectstaff(e) {
- for (var i = 0; i < this.staffList.length; i++) {
- if (this.staffList[i].staffName == e) {
- this.dataList.agentKey = this.staffList[i].staffId
- }
- }
- },
- selectstaff1(e) {
- for (var i = 0; i < this.staffList.length; i++) {
- if (this.staffList[i].staffName == e) {
- this.dataList1.agentKey = this.staffList[i].staffId
- }
- }
- },
- requestadd(list, status) {
- this.$refs.dataList.validate(valid => {
- if (valid) {
- list.compId = sessionStorage.getItem('ws-pf_compId')
- list.publisher =
- sessionStorage.getItem('ws-pf_roleName') +
- sessionStorage.getItem('ws-pf_staffName')
- addoreditoutput(list)
- .toPromise()
- .then(response => {
- this.$message.success('添加成功')
- this.$router.push({ path: 'tranManagementWarehouseInOutTask' })
- })
- } else {
- EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- return false
- }
- })
- },
- //关闭
- close() {
- this.$router.push({ path: 'procurementPlanList' })
- },
- tarechange(e) {
- if (this.dataList.grossWeight && this.dataList.tare) {
- this.dataList.netWeight = Number(
- this.dataList.grossWeight - this.dataList.tare
- )
- }
- },
- grossWeightchange(e) {
- if (this.dataList.grossWeight && this.dataList.tare) {
- this.dataList.netWeight = Number(
- this.dataList.grossWeight - this.dataList.tare
- )
- }
- },
- selectgoodsName(e) {
- for (var i = 0; i < this.goodnameList.length; i++) {
- if (this.goodnameList[i].constValue == e) {
- this.dataList.goodsNameKey = this.goodnameList[i].constKey
- }
- }
- },
- selectgoodsName1(e) {
- for (var i = 0; i < this.goodnameList.length; i++) {
- if (this.goodnameList[i].constValue == e) {
- this.dataList1.goodsNameKey = this.goodnameList[i].constKey
- }
- }
- },
- selectpackingMethod(e) {
- for (var i = 0; i < this.packtypeList.length; i++) {
- if (this.packtypeList[i].constValue == e) {
- this.dataList.packingMethodKey = this.packtypeList[i].constKey
- }
- }
- },
- selectpackingMethod1(e) {
- for (var i = 0; i < this.packtypeList.length; i++) {
- if (this.packtypeList[i].constValue == e) {
- this.dataList1.packingMethodKey = this.packtypeList[i].constKey
- }
- }
- },
- selectstorageType(e) {
- for (var i = 0; i < this.storageType.length; i++) {
- if (this.storageType[i].constValue == e) {
- this.dataList.inOutTypeKey = this.storageType[i].constKey
- }
- }
- },
- selectstorageType1(e) {
- for (var i = 0; i < this.storageType1.length; i++) {
- if (this.storageType1[i].constValue == e) {
- this.dataList1.inOutTypeKey = this.storageType[i].constKey
- }
- }
- },
- handleClose() {
- this.accessoryTFs = false
- },
- tasktypechange() {
- this.tasknumber()
- },
- GetRandomNum(Min, Max) {
- var Range = Max - Min
- var Rand = Math.random()
- return Min + Math.round(Rand * Range)
- },
- getList(){
- procurementLook({
- id: this.$route.query.id
- })
- .toPromise()
- .then(response => {
- this.dataList = response
- })
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- /deep/.basicInformation {
- .el-info-table {
- border: none;
- position: relative;
- }
- .el-form-item {
- width: 33.3333%;
- border: none;
- margin: 0;
- .el-form-item__label {
- text-align: left;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #8890b1;
- }
- .el-form-item__content {
- padding-left: 0px;
- padding-right: 10px;
- // background: #fff;
- white-space: nowrap;
- height: 40px;
- display: flex;
- -webkit-box-align: center;
- align-items: center;
- text-align: left;
- overflow: hidden;
- }
- }
- }
- /deep/.el-radio {
- color: #606266;
- font-weight: 500;
- line-height: 1;
- cursor: pointer;
- white-space: nowrap;
- outline: 0;
- margin-right: 30px;
- margin-top: 15px;
- }
- /deep/.el-radio__inner {
- border: 1px solid #dcdfe6;
- border-radius: 100%;
- width: 14px;
- height: 14px;
- background-color: #fff;
- cursor: pointer;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- margin-left: 100px;
- }
- /deep/.el-radio__input {
- white-space: nowrap;
- cursor: pointer;
- outline: 0;
- line-height: 1;
- vertical-align: middle;
- margin-top: -1px;
- }
- .title {
- position: relative;
- padding-left: 10px;
- }
- .title::before {
- content: '';
- display: inline-block;
- width: 5px;
- height: 30px;
- background: #5473e8;
- position: absolute;
- left: 0;
- }
- .el-form {
- padding: 0 15%;
- display: flex;
- flex-wrap: wrap;
- margin-left: -50px;
- margin-top: 15px;
- width: 110%;
- }
- .el-button--primary {
- background-color: #5878e8;
- border-color: #5878e8;
- }
- .el-col {
- background: #f6f7fc;
- }
- .bg-right {
- text-align: right;
- padding: 16px 20px;
- }
- .center {
- position: relative;
- top: 50px;
- width: 40%;
- height: 2000px;
- margin: 0 auto;
- margin-right: 180px;
- }
- /deep/.el-form-item__label {
- width: 160px;
- }
- .inspector {
- width: 50%;
- }
- /deep/.el-form-item--small .el-form-item__label,
- .el-form-item--small .el-form-item__content {
- text-align: left;
- }
- /deep/.el-input--small {
- font-size: 13px;
- position: relative;
- display: inline-block;
- }
- .center1 .small-title {
- margin-left: 323px;
- }
- .center1 {
- width: 90%;
- margin: 0 auto;
- margin-left: 10px;
- margin-top: 25px;
- }
- /deep/.el-input--small .el-input__inner {
- height: 32px;
- line-height: 32px;
- }
- /deep/.el-select {
- display: inline-block;
- position: relative;
- width: 100%;
- }
- .annu {
- height: 81px;
- background: #ffffff;
- border-radius: 4px;
- }
- .basicInformation .el-form-item {
- width: 50.3333%;
- border: none;
- margin: 0;
- }
- .el-form {
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #8890b1;
- line-height: 16px;
- margin-left: 130px;
- }
- .a {
- margin-left: -32px;
- }
- .el-radio-group {
- margin-left: 80px;
- }
- .ding {
- height: 23px;
- background: #e8ecf6;
- box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
- }
- .nav2 {
- height: 25px;
- background: #e8ecf6;
- margin-top: 15px;
- }
- .ziti {
- width: 72px;
- height: 20px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #8890b1;
- line-height: 20px;
- margin-left: 314px;
- /* margin-top: 112px; */
- }
- /deep/.ziti1 {
- height: 40px;
- font-size: 16px;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #262626;
- line-height: 20px;
- margin-left: 381px;
- margin-top: -21px;
- width: 100px;
- }
- .winseaview-view {
- padding: 0 0 20px;
- }
- .container {
- overflow: scroll;
- height: 93vh;
- }
- /deep/.basicInformation .el-form-item .el-form-item__content {
- padding-left: 0px;
- padding-right: 10px;
- white-space: nowrap;
- height: 40px;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- text-align: left;
- overflow: hidden;
- font-size: 12px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #232323;
- line-height: 14px;
- }
- .nav {
- width: 400px;
- height: 20px;
- }
- .forlist{
- background-color: #F5F7FA;
- border-radius: 10px;
- width: 100%;
- padding-left: 15px;
- height: 35px;
- line-height: 35px;
- color: #C0C4CC;
- font-size: 14px;
- }
- </style>
|