123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644 |
- <!--销售合同-->
- <!--2019年5月30日 20:25:16 by jlx-->
- <template>
- <div class="container">
- <el-row>
- <el-col :span="12">
- <h2 class="bg-left">
- 查看合同详情<span>状态:{{ status }}</span>
- </h2>
- </el-col>
- <el-col :span="12" class="bg-right">
- <el-button
- class="bg-bottom"
- type="primary"
- size="small"
- @click="returnsales()"
- >返回</el-button
- >
- </el-col>
- </el-row>
- <div class="state">
- <h2>销售合同</h2>
- <p>【编号:{{deptBudgetList.contractNo}}】</p>
- <span class="icon"> {{ deptBudgetList.status }}</span>
- </div>
- <div class="center">
- <ws-form
- ref="deptBudgetList"
- :rules="mainReportAdd"
- :model="deptBudgetList"
- >
- <div class="remark">
- <h3>基本信息</h3>
- </div>
- <ws-info-table>
- <ws-form-item label="合同编号" span="1" prop="contractNo">
- <div class="unchanged">
- {{ deptBudgetList.contractNo }}
- </div>
- <span class="unchangeable">*</span>
- </ws-form-item>
- <ws-form-item label="运输方式" span="1" prop="shippingType">
- <div class="unchanged">
- {{ deptBudgetList.shippingType }}
- </div>
- </ws-form-item>
- <ws-form-item label="买方" span="1" prop="buyer">
- <div class="unchanged">
- {{ deptBudgetList.buyer }}
- </div>
- <span class="unchangeable">*</span>
- </ws-form-item>
- <ws-form-item label="结算方式" span="1" prop="settlementMethod">
- <div class="unchanged">
- {{ deptBudgetList.settlementMethod }}
- </div>
- </ws-form-item>
- <ws-form-item label="卖方" span="1" prop="seller">
- <div class="unchanged">
- {{ deptBudgetList.seller }}
- </div>
- <span class="unchangeable">*</span>
- </ws-form-item>
- <ws-form-item label="货源地" span="1" prop="sourceGoods">
- <div class="unchanged">
- {{ deptBudgetList.sourceGoods }}
- </div>
- </ws-form-item>
- <ws-form-item label="买方电话" span="1" prop="buyerPhone">
- <div class="unchanged">
- {{ deptBudgetList.buyerPhone }}
- </div>
- </ws-form-item>
- <ws-form-item label="交货地" span="1" prop="placeDelivery">
- <div class="unchanged">
- {{ deptBudgetList.placeDelivery }}
- </div>
- </ws-form-item>
- <ws-form-item label="卖方电话" span="1" prop="sellerPhone">
- <div class="unchanged">
- {{ deptBudgetList.sellerPhone }}
- </div>
- </ws-form-item>
- <ws-form-item label="包装方式" span="1" prop="packingMethod">
- <div class="unchanged">
- {{ deptBudgetList.packingMethod }}
- </div>
- </ws-form-item>
- <ws-form-item label="重量(吨)" span="1" prop="weight">
- <div class="unchanged">
- {{ deptBudgetList.weight }}
- </div>
- </ws-form-item>
- <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
- <div class="unchanged">
- {{ deptBudgetList.acceptanceMethod }}
- </div>
- </ws-form-item>
- <ws-form-item label="溢短装(%)" span="1" prop="overShort">
- <div class="unchanged">
- {{ deptBudgetList.overShort }}
- </div>
- </ws-form-item>
- <ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
- <div class="unchanged">
- {{ deptBudgetList.deliveryDateStart }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="合同单价(元/吨)"
- span="1"
- prop="unitContractPrice"
- >
- <div class="unchanged">
- {{ deptBudgetList.unitContractPrice }}
- </div>
- <span class="unchangeable">*</span>
- </ws-form-item>
- <ws-form-item label="交货日期(止)" span="1" prop="deliveryDateEnd">
- <div class="unchanged">
- {{ deptBudgetList.deliveryDateEnd }}
- </div>
- </ws-form-item>
- <ws-form-item label="合同总价(元)" span="1" prop="totalContractPrice">
- <div class="unchanged">
- {{ deptBudgetList.totalContractPrice }}
- </div>
- </ws-form-item>
- <ws-form-item label="签订日期" span="1" prop="signingDate">
- <div class="unchanged">
- {{ deptBudgetList.signingDate }}
- </div>
- </ws-form-item>
- </ws-info-table>
- <!-- </base-card> -->
- <!--面试信息-->
- <div class="remark">
- <h3>货物信息</h3>
- </div>
- <ws-info-table>
- <ws-form-item label="货名" span="1" prop="waterContent">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.goodsName }}
- </div>
- <span class="unchangeable">*</span>
- </ws-form-item>
- <ws-form-item label="水分(%)<=" span="1" prop="intendedShipId">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.waterContent }}
- </div>
- </ws-form-item>
- <ws-form-item label="品级" span="1" prop="grade">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.grade }}
- </div>
- </ws-form-item>
- <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.impurity }}
- </div>
- </ws-form-item>
- <ws-form-item label="容重(克/升)<=" span="1" prop="bulkDensity">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.bulkDensity }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="霉变粒(%)<="
- span="1"
- prop="mildewGrain"
- class="result"
- >
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.mildewGrain }}
- </div>
- </ws-form-item>
- <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.jiaorenli }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="不完善粒(%)<="
- span="1"
- prop="imperfectGrain"
- class="result"
- >
- <div class="unchanged">
- {{ deptBudgetList.contractGoodsInfo.imperfectGrain }}
- </div>
- </ws-form-item>
- </ws-info-table>
- <div class="remark">
- <h3>流程信息</h3>
- </div>
- <ws-info-table>
- <ws-form-item label="合同收入(元)" span="1" prop="goodsNameKey">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.goodsNameKey }}
- </div>
- </ws-form-item>
- <ws-form-item label="已开发票(元)" span="1" prop="goodsName">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.goodsName }}
- </div>
- </ws-form-item>
- <ws-form-item label="费用支出(元)" span="1" prop="waterContent">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.waterContent }}
- </div>
- </ws-form-item>
- <ws-form-item label="未开发票(元)" span="1" prop="impurity">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.impurity }}
- </div>
- </ws-form-item>
- <ws-form-item label="未回款(元)" span="1" prop="mildewGrain">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.mildewGrain }}
- </div>
- </ws-form-item>
- <ws-form-item
- label="已完成发运量(吨)"
- span="1"
- prop="imperfectGrain"
- class="result"
- >
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.imperfectGrain }}
- </div>
- </ws-form-item>
- <!-- <ws-form-item label="双章原件回收情况" span="1" prop="grade">
- <div class="unchanged">
- {{ deptBudgetList.contractProcessInfo.grade }}
- </div>
- >{{ deptBudgetList.contractProcessInfo.imperfectGrain }}
- </ws-form-item> -->
- <ws-form-item label="双章原件回收情况" span="1" prop="grade" >
- <div class="unchanged">
- {{deptBudgetList.contractProcessInfo.grade}}
- </div>
- </ws-form-item>
- </ws-info-table>
- <div class="remark">
- <h3>备注信息</h3>
- </div>
- <div class="unchanged beizhu">
- {{ deptBudgetList.remarks }}
- </div>
- <img :src="deptBudgetList.addressUrl" alt="" />
- <!-- </base-card> -->
- </ws-form>
- <div style="text-align: right; padding: 10px">
- <el-button
- class="bg-bottom"
- type="primary"
- size="small"
- @click="returnsales()"
- >关闭</el-button
- >
- </div>
- </div>
- </div>
- </template>
- <script>
- import {
- getList,
- packList,
- addList,
- xiala,
- addxiala,
- editxiala,
- delxiala,
- examineList,
- } from '@/model/contarct/index'
- import { dayjs } from 'base-core-lib'
- export default {
- name: 'viewSpareMoney',
- watch: {
- vesselId(val) {
- this.getVesselData()
- },
- isShow(val) {
- this.showType = val
- },
- },
- data() {
- return {
- //弹出框
- dialogViewSpareMoney: false,
- dialogApproveFormVisible: false,
- // 船舶类型
- monetaryKey: null,
- // 表格显示数据
- tableDate: [],
- // 是否显示
- showType: true,
- // 年
- year: '',
- // 提交类型
- submitType: true,
- tableData: [],
- ruleDeptBudget: [],
- deptBudgetList: {
- contractProcessInfo: {},
- contractGoodsInfo: {},
- },
- mainReportAdd: {},
- list: {},
- }
- },
- activated() {
- this.status = this.$route.query.status
- this.loaddata()
- this.showType = this.isShow
- this.getList()
- this.examineList()
- },
- methods: {
- loaddata() {
- // 数据
- examineList({ id: this.$route.query.id })
- .toPromise()
- .then((response) => {
- this.deptBudgetList = response
- })
- // 包装方式
- packList({ constId: 'CON1' })
- .toPromise()
- .then((response) => {
- this.packtypeList = response
- })
- // 验收方式
- this.getUnitList()
- // 货名
- packList({ constId: 'CON2' })
- .toPromise()
- .then((response) => {
- this.goodnameList = response
- })
- // 品级
- packList({ constId: 'CON3' })
- .toPromise()
- .then((response) => {
- this.gradeList = response
- })
- // 双章
- packList({ constId: 'CON4' })
- .toPromise()
- .then((response) => {
- this.ChapterTwoList = response
- })
- },
- getUnitList() {
- xiala({
- compId: sessionStorage.getItem('ws-pf_compId'),
- constCode: 'TYPEYAN',
- })
- .toPromise()
- .then((response) => {
- this.unitList = response
- let currItem
- this.unitList.forEach((item, index, arr) => {
- item.flag = 'delete'
- if (this.vModel == item.constKey) {
- currItem = item
- }
- })
- //
- if (currItem) {
- this.selectContract(currItem.constValue)
- }
- })
- },
- // 关闭 dialog时 处理文件url 初始化upload组件
- handleClose() {
- this.dialogViewSpareMoney = false
- },
- handleExamine() {},
- approve() {},
- returnsales() {
- this.$router.push({ path: 'salesContract' })
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- .button-container {
- display: flex;
- flex-wrap: nowrap;
- justify-content: space-between;
- align-items: center;
- background-color: #fff;
- width: 100%;
- height: 50px;
- padding: 0 10px;
- & > div {
- margin-left: 10px;
- display: flex;
- flex-wrap: nowrap;
- flex-direction: row;
- & > span {
- line-height: 50px;
- }
- }
- /deep/.auditFlow-box {
- position: unset;
- margin-left: 10px;
- &/deep/.auditFlow-icon {
- width: auto;
- padding-right: 30px;
- }
- &/deep/.auditFlow-main {
- position: absolute;
- }
- }
- }
- .box-app {
- display: inline-block;
- margin-left: 30px;
- line-height: 50px;
- }
- /deep/.el-dialog {
- .el-form-item {
- margin-bottom: 0 !important;
- .el-input--medium {
- textarea {
- min-height: 100px !important;
- }
- }
- }
- }
- .collapse-bottom {
- margin-bottom: 20px;
- }
- .input-main .textarea .el-textarea__inner {
- width: 100%;
- z-index: 1;
- }
- .bg-left {
- padding-left: 30px;
- }
- .bg-right {
- padding: 10px;
- text-align: right;
- }
- .bg-bottom {
- margin: 20px 0px;
- }
- .wenzi {
- width: 900px;
- margin: 0 auto;
- }
- .wenzi h3 {
- display: inline-block;
- left: 30px;
- }
- .wenzi p {
- display: inline-block;
- }
- .center {
- width: 900px;
- margin: 0 auto;
- }
- .el-form-item {
- width: 50%;
- }
- .el-form-item__label {
- text-align: center;
- }
- /*.crt-main .textarea /deep/ .el-form-item__label {*/
- /* height: 82px;*/
- /*}*/
- // 控制select为只读的时候显示样式
- .hide-sel {
- .el-input__inner {
- border: 0px;
- }
- .el-icon-arrow-up {
- display: none;
- }
- .el-textarea__inner {
- background-color: #fff !important;
- border: 0;
- }
- .el-date-editor {
- i {
- display: none;
- }
- }
- .is-disabled {
- .el-input__inner:hover {
- background-color: #fff !important;
- border: 0;
- }
- color: #606266;
- .el-input__inner {
- background-color: #fff !important;
- border: 0;
- color: #606266;
- }
- .el-textarea__inner {
- background-color: #fff !important;
- border: 0;
- color: #606266;
- }
- }
- }
- // 控制select为只读的时候显示样式
- /deep/.ws-class-table-col {
- height: auto;
- padding: 0px 2px;
- /deep/.el-input__inner {
- padding: 0px 2px;
- }
- }
- /deep/.is-disabled {
- .el-input__prefix,
- .el-input__suffix {
- display: none;
- }
- .el-input__inner {
- background-color: #fff;
- border-color: #fff !important;
- color: #000 !important;
- font-size: 14px;
- cursor: text;
- padding: 0 !important;
- }
- }
- .winseaview-view {
- padding: 10px 0 20px;
- }
- .container {
- overflow: scroll;
- height: 93vh;
-
- }
- .state{
- width: 900px;
- margin: 0 auto;
- }
- .state h2,.state p{
- display: inline-block;
- }
- .state p{
- display: inline-block;
- margin-left: 10px;
- width: 170px;
- height: 20px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #000000;
- line-height: 20px;
- }
- .icon{
- display: inline-block;
- width: 60px;
- height: 24px;
- background: #ECFEFF;
- border-radius: 12px;
- border: 1px solid #50CAD4;
- position: relative;
- font-family: PingFangSC-Regular, PingFang SC;
- font-size: 14px;
- color: #50CAD4;
- line-height: 24px;
- }
- //*号
- .unchangeable{
- position: absolute;
- width: 9px;
- height: 22px;
- font-size: 16px;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #FF2727;
- line-height: 22px;
- display: inline-block;
- right: 14px;
- }
- /deep/.el-input ,/deep/.el-date-editor{
- font-size: 13px;
- width: 232px;
- left: 21px;
- }
- /deep/.el-textarea{
- width: 900px;
- margin: 0px;
- }
- /deep/el-date-editor--date{
- width: 200px;
- }
- .beizhu{
- position: absolute;
- margin: 0 auto;
-
- }
- .unchanged{
- position: absolute;
- left: 37px;
- width: 900px;
- height: 14px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #AFB5CB;
- line-height: 14px;
- }
- /deep/.ws-info-table[data-v-850a44a6] .el-form-item .el-form-item__label{
- width: 130px;
- }
- /deep/.el-input--small .el-input__inner {
- height: 32px;
- line-height: 32px;
- width: 232px;
- }
- </style>
|