123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617 |
- <!--期货销售点价确认单-->
- <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="vertion-align: bottom; margin-right: 3px"
- src="../../../public/img/lujing.png"
- alt=""
- />返回</el-button
- >
- </el-col>
- </el-row>
- <div class="wenzi">
- <h3>所属合同</h3>
- <p>
- 销售合同(
- <template>{{ this.deptBudgetList.contractNo }}</template>
- )
- </p>
- <div class="tianjiaanniu">
- <ws-button
- type="primary"
- @click="sheetAdd()"
- v-hasPermission="
- `contractManagement.salesContract.salesContractInfo.add`
- "
- ><img
- width="13"
- height="13"
- style="
- vertical-align: text-top;
- position: relative;
- top: 2px;
- left: -4px;
- "
- src="../../../public/img/header-add.png"
- alt=""
- />添加</ws-button
- >
- </div>
- </div>
- <div class="dianjiadanbianhao">
- <h3>点价单编号</h3>
- <p>
- <template>CG20210329-02{{ this.deptBudgetList.priceListNo }}</template>
- </p>
- <div class="fujian">
- <template slot-scope="scope" >
- <img
- width="18"
- height="20"
- style="vertical-align: text-top; position: relative; top: -1px"
- src="../../../public/img/fujian.png"
- @click="fujian(scope.row)"
- alt=""
- />
- <span v-if="(scope.row.enclosureTypeFlag = '0')"
- > 未上传</span
- >
- <span v-if="(scope.row.enclosureTypeFlag = '1')"
- > 已上传</span
- >
- </template>
- </div>
- <div class="caozuoanniu">
- <el-button class="find" type="primary" @click="sheetEdit()"
- >编辑</el-button
- >
- <el-button class="find" type="primary" @click="sheetDelete()"
- >删除</el-button
- >
- </div>
- </div>
- <div class="center">
- <ws-form ref="deptBudgetList" :model="deptBudgetList">
- <!--基本信息-->
- <ws-info-table>
- <ws-form-item
- label="品种合约及方向"
- span="1"
- prop="varietyContractDirection"
- >
- <div class="unchanged">
- {{ deptBudgetList.varietyContractDirection }}
- </div>
- </ws-form-item>
- <ws-form-item label="买方联络人" span="1" prop="buyer">
- <div class="unchanged">
- {{ deptBudgetList.buyer }}
- </div>
- </ws-form-item>
- <ws-form-item label="成交数量" span="1" prop="transactionsNumberHand">
- <div class="unchanged">
- {{
- deptBudgetList.transactionsNumberHand
- }} 手
-
- 即 {{
- deptBudgetList.transactionsNumber
- }} 吨
- </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="transactionPrice"
- >
- <div class="unchanged">
- {{ deptBudgetList.transactionPrice }}
- </div>
- </ws-form-item>
- <ws-form-item label="卖方联络人" span="1" prop="seller">
- <div class="unchanged">
- {{ deptBudgetList.seller }}
- </div>
- </ws-form-item>
- <ws-form-item label="成交日期" span="1" prop="transactionDate">
- <div class="unchanged">
- {{ deptBudgetList.transactionDate }}
- </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="remarks">
- <div class="unchanged">
- {{ deptBudgetList.remarks }}
- </div>
- </ws-form-item>
- </ws-info-table>
- </ws-form>
- </div>
- </div>
- </template>
- <script>
- import { xiala, addxiala, editxiala, delxiala } from '@/model/contarct/index'
- import WsUpload from '@/components/WsUpload'
- import { EventBus } from 'base-core-lib'
- import { regionData, } from 'element-china-area-data'
- export default {
- name: 'viewSpareMoney',
- components: {
- WsUpload,
- },
- watch: {
- vesselId(val) {
- this.getVesselData()
- },
- isShow(val) {
- this.showType = val
- },
- },
- data() {
- return {
- //弹出框
- dialogViewSpareMoney: false,
- dialogApproveFormVisible: false,
- // 船舶类型
- monetaryKey: null,
- // 表格显示数据
- tableDate: [],
- // 是否显示
- showType: true,
- // 年
- year: '',
- options_: regionData,
- selectedOptions: [],
- selectedOptions1: [],
- // 提交类型
- submitType: true,
- tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
- trainingMethods: {},
- packtypeList: [],
- compId: sessionStorage.getItem('ws-pf_compId'),
- contractNo: '',
- mainReportAdd: {},
- appendixIdsAdd: '',
- size: 10,
- unitList: [],
- goodnameList: [],
- gradeList: [],
- ChapterTwoList: [],
- addressUrls: [],
- addressUrl: '',
- deptBudgetList: {},
- pickerBeginDateBefore: {
- disabledDate: (time) => {
- return time.getTime() > Date.now()
- },
- },
- ruleDeptBudget: {
- contractNo: [
- { required: true, message: '请输入活动名称', trigger: 'blur' },
- {
- min: 6,
- max: 20,
- message: '长度在 6 到 20 个字符',
- trigger: 'blur',
- },
- ],
- },
- selectIntendedShip: {},
- interviewTypeList: {},
- fileList: [],
- }
- },
- methods: {
- close(index) {
- this.addressUrls.splice(index, 1)
- },
- // 关闭 dialog时 处理文件url 初始化upload组件
- handleClose() {
- this.dialogViewSpareMoney = false
- },
- handleChange(value) {
- this.selectedOptions = value
- },
- handleChange1(value) {
- this.selectedOptions1 = value
- },
- returnsales() {
- this.$router.push({ path: 'futuresSalesContract' })
- },
- //创建点价确认单
- sheetAdd() {
- this.$router.push({ path: 'salesPriceConfirmationSheetAdd' })
- },
- // 编辑点价确认单
- sheetEdit() {
- this.$router.push({ path: 'salesPriceConfirmationSheetEdit' })
- },
- // 删除点价确认单
- sheetDelete(item, index) {
- // this.$confirm(`确认单删除后不可恢复,是否确定删除?`, '提示', {
- // confirmButtonText: '确定',
- // cancelButtonText: '取消',
- // type: 'warning',
- // })
- // .then(() => {
- // delDriver({ id: row.id })
- // .toPromise()
- // .then((response) => {
- // this.$notify.success({
- // title: '成功',
- // message: '删除成功',
- // })
- // this.getUnitList()
- // this.pleaseChoose = ''
- // })
- // .catch((response) => {
- // console.log(response)
- // EventBus.$emit('error', response.message)
- // })
- // })
- // .catch(() => {
- // return false
- // })
-
- // if (Object.is(item.constKey, 1)) {
- // return
- // }
- // if (!item.constValue) {
- // this.unitList.splice(index, 1)
- // return
- // }
- // delxiala({ id: this.unitList[index].id })
-
- },
- fujian(row) {
- if (row.addressUrl === null || row.addressUrl === '') {
- EventBus.$emit(
- 'warning',
- this.$t('system.noticeCircular.NoInformation')
- )
- } else {
- this.accessoryTFs = true
- }
- this.appendixIdss = row.addressUrl.split(',')
- },
- 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)
- }
- })
- },
- resetForm(deptBudgetList) {
- this.$refs[deptBudgetList].resetFields()
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- /deep/.ws-info-table .el-form-item .el-form-item__content {
- padding: 0 25px;
- }
- /deep/.ws-info-table .el-form-item {
- border-right: 1px solid #cdd2dc;
- border-bottom: 1px solid #cdd2dc;
- }
- .title {
- position: relative;
- }
- .title::before {
- content: '';
- display: inline-block;
- width: 5px;
- height: 30px;
- background: #5473e8;
- position: absolute;
- left: 0;
- }
- .el-button--primary {
- background-color: #5878e8;
- border-color: #5878e8;
- }
- .el-col {
- background: #f6f7fc;
- }
- .readonly {
- position: relative;
- }
- .readonly:after {
- content: '*';
- color: #ff2727;
- position: absolute;
- right: 8px;
- z-index: 10;
- top: 21%;
- font-size: 20px;
- }
- /deep/.ws-info-table .el-form-item .el-form-item__content {
- padding: 0 25px;
- border-left: 1px solid #cdd2dc;
- background: #fafbfc;
- }
- /deep/.ws-info-table .el-form-item .el-form-item__label {
- width: 140px;
- text-align: center;
- background: #f0f2f6;
- // border: 1px solid #cdd2dc;
- }
- .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;
- float: left;
- 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-right: 10px;
- text-align: right;
- }
- .bg-bottom {
- margin: 16px 0px;
- }
- .caozuoanniu {
- margin-left: 83%;
- margin-top: -49px;
- margin-bottom: 20px;
- }
- .fujian {
- margin-left: 20px;
- }
- .wenzi {
- width: 68%;
- margin: 0 auto;
- margin-top: 15px;
- }
- .wenzi h3 {
- display: inline-block;
- left: 10px;
- }
- .wenzi p {
- display: inline-block;
- margin-left: 16px;
- }
- .dianjiadanbianhao {
- width: 70%;
- margin: 0 auto;
- margin-top: 45px;
- }
- .dianjiadanbianhao h3 {
- display: inline-block;
- left: 10px;
- font-size: inherit;
- margin-bottom: 24px;
- }
- .dianjiadanbianhao p {
- display: inline-block;
- margin-left: 20px;
- }
- .center {
- width: 70%;
- margin: 0 auto;
- }
- .el-form-item {
- width: 50%;
- }
- .el-form-item__label {
- text-align: center;
- }
- .ce {
- width: 70%;
- margin: 0 auto;
- }
- /*.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;
- }
- }
- }
- /deep/.ws-info-table .el-form-item .el-form-item__label {
- width: 148px;
- }
- /deep/.el-date-editor {
- font-size: 13px;
- }
- /deep/.el-textarea {
- width: 101%;
- margin: 0px;
- }
- /deep/el-date-editor--date {
- width: 200px;
- }
- .unchanged {
- position: absolute;
- left: 37px;
- width: 102px;
- height: 14px;
- font-size: 14px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #afb5cb;
- line-height: 14px;
- }
- .tianjiaanniu {
- margin-left: 92%;
- margin-top: -43px;
- }
- /deep/.el-input--small .el-input__inner {
- height: 32px;
- line-height: 32px;
- }
- // 控制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: 0 0 20px;
- }
- .container {
- overflow: scroll;
- height: 93vh;
- }
- .addressUrls {
- width: 100%;
- display: flex;
- margin-top: 10px;
- }
- .addressUrls-item {
- position: relative;
- display: flex;
- }
- .icon-guanbi {
- position: absolute;
- right: 8px;
- }
- .addressUrl {
- margin: 0px 10px;
- border-radius: 3px;
- }
- //上传文件成功标识
- /deep/.el-upload-list__item-status-label {
- position: absolute;
- right: 22px;
- top: -1px;
- line-height: inherit;
- display: none;
- }
- </style>
|