@@ -118,6 +118,9 @@ input[type='number'] {
background-color: #5473E8!important;
}
.el-pagination{
- padding: 0!important;
+ padding: 20px!important;
+}
+.container{
+ overflow: auto;
</style>
@@ -83,6 +83,7 @@
box-sizing: border-box;
padding: 10px;
height:100%;
+ // overflow: scroll;
.winseaview-footer {
@@ -1,110 +1,110 @@
<!--期货采购合同-->
<template>
- <div>
- <BaseHeaderLayout :leftSpan="8">
- <template slot="left">
- <ws-button type="primary" @click="handleAdd()"
- v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">添加</ws-button>
- <ws-button @click="exportlist()" v-hasPermission="
+ <div>
+ <BaseHeaderLayout :leftSpan="8">
+ <template slot="left">
+ <ws-button type="primary" @click="handleAdd()"
+ v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`">添加</ws-button>
+ <ws-button @click="exportlist()" v-hasPermission="
`contractManagement.buyContract.buyContractInfo.view`
">导出</ws-button>
- </template>
- <template slot="right">
- <span style="width: 142px; display: inline-block; color: #8890b1">状态:</span>
- <ws-select v-model="searchTypeText" placeholder="" class="typeselect" @change="selecttaskType"
- :value="searchType">
- <ws-option v-for="item in taskTypeList" :key="item.value" :label="item.value" :value="item.value"
- style="color: #8890b1" />
- </ws-select>
-
- <el-date-picker v-model="value2" type="daterange" align="right" unlink-panels range-separator="至"
- start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions">
- </el-date-picker>
- <el-input v-model="searchKeyWord" @keyup.enter.native="find()" placeholder="可按照合同编号、买方名称、卖方名称进行查找" clearable maxlength="500"
- type="input" class="findValue"></el-input>
- <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
- <ws-button class="find" type="primary" @click="find()"><img width="16" height="16" style="
+ </template>
+ <template slot="right">
+ <span style="width: 142px; display: inline-block; color: #8890b1">状态:</span>
+ <ws-select v-model="searchTypeText" placeholder="" class="typeselect" @change="selecttaskType"
+ :value="searchType">
+ <ws-option v-for="item in taskTypeList" :key="item.value" :label="item.value" :value="item.value"
+ style="color: #8890b1" />
+ </ws-select>
+
+ <el-date-picker v-model="value2" type="daterange" align="right" unlink-panels range-separator="至"
+ start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions">
+ </el-date-picker>
+ <el-input v-model="searchKeyWord" @keyup.enter.native="find()" placeholder="可按照合同编号、买方名称、卖方名称进行查找" clearable
+ maxlength="500" type="input" class="findValue"></el-input>
+ <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
+ <ws-button class="find" type="primary" @click="find()"><img width="16" height="16" style="
vertical-align: text-top;
position: relative;
top: 0px;
left: -8px;
" src="../../../public/img/sousuo.png" alt="" /></ws-button>
- </BaseHeaderLayout>
- <el-table class="wenzi" :data="contractList.records" style="width: 100%; margin-top: 10px" height="780">
- <el-table-column type="index" label="序号">
- <template scope="scope">
- <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
- <span v-else>{{ scope.$index + 1 }}</span>
- </el-table-column>
- <el-table-column prop="contractNo" label="合同编号" width="150">
- <el-table-column prop="goodsName" label="货名" width="80">
- <el-table-column prop="weight" label="重量(吨)"> </el-table-column>
- <el-table-column prop="pointPrice" label="暂定点价(元/吨)">
- <el-table-column prop="basisPrice" label="基差(元/吨)"> </el-table-column>
- <el-table-column prop="buyer" label="买方"> </el-table-column>
- <el-table-column prop="seller" label="卖方"> </el-table-column>
- <el-table-column prop="status" label="状态">
- <template slot-scope="scope">
- <el-popover placement="left" :width="285" trigger="click" visible-arrow="false"
- @show="history(scope.row)">
- <template>
- <span slot="reference">
- <span v-if="scope.row.status == '待执行'" class="executory"></span>
- <span v-if="scope.row.status == '执行中'" class="inExecution"></span>
- <span v-if="scope.row.status == '已完成'" class="done"></span>{{ scope.row.status }}
- </span>
- <p style="margin-top: 0; padding-left: 10px">操作历史</p>
- <div v-for="(item, index) in historyList" :key="index" class="flex">
- <div class="vertical-text vertical-text-left">
- {{ item.updateDate }}
- </div>
- <div class="vertical-circle"></div>
- <div v-if="index != historyList.length - 1" class="vertical-line"></div>
- <div class="vertical-text">
- {{ item.operateUser }}<br />{{ item.dealMsg }}
- </el-popover>
- <img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
- src="../../../public/img/edit.png" @click="editClick(scope.row)" alt="" />
- <el-table-column prop="signingDate" label="签订日期"> </el-table-column>
- <el-table-column prop="mildewGrain" label="已付款(元)">
- <el-table-column prop="addressUrl" label="附件">
- <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.addressUrlArray.length > 0">{{
+ </BaseHeaderLayout>
+ <el-table class="wenzi" :data="contractList.records" style="width: 100%; margin-top: 10px"
+ height="calc(100% - 110px)">
+ <el-table-column type="index" label="序号">
+ <template scope="scope">
+ <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
+ <span v-else>{{ scope.$index + 1 }}</span>
+ </el-table-column>
+ <el-table-column prop="contractNo" label="合同编号" width="150">
+ <el-table-column prop="goodsName" label="货名" width="80">
+ <el-table-column prop="weight" label="重量(吨)"> </el-table-column>
+ <el-table-column prop="pointPrice" label="暂定点价(元/吨)">
+ <el-table-column prop="basisPrice" label="基差(元/吨)"> </el-table-column>
+ <el-table-column prop="buyer" label="买方"> </el-table-column>
+ <el-table-column prop="seller" label="卖方"> </el-table-column>
+ <el-table-column prop="status" label="状态">
+ <template slot-scope="scope">
+ <el-popover placement="left" :width="285" trigger="click" visible-arrow="false" @show="history(scope.row)">
+ <template>
+ <span slot="reference">
+ <span v-if="scope.row.status == '待执行'" class="executory"></span>
+ <span v-if="scope.row.status == '执行中'" class="inExecution"></span>
+ <span v-if="scope.row.status == '已完成'" class="done"></span>{{ scope.row.status }}
+ </span>
+ <p style="margin-top: 0; padding-left: 10px">操作历史</p>
+ <div v-for="(item, index) in historyList" :key="index" class="flex">
+ <div class="vertical-text vertical-text-left">
+ {{ item.updateDate }}
+ </div>
+ <div class="vertical-circle"></div>
+ <div v-if="index != historyList.length - 1" class="vertical-line"></div>
+ <div class="vertical-text">
+ {{ item.operateUser }}<br />{{ item.dealMsg }}
+ </el-popover>
+ <img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
+ src="../../../public/img/edit.png" @click="editClick(scope.row)" alt="" />
+ <el-table-column prop="signingDate" label="签订日期"> </el-table-column>
+ <el-table-column prop="mildewGrain" label="已付款(元)">
+ <el-table-column prop="addressUrl" label="附件">
+ <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.addressUrlArray.length > 0">{{
scope.row.addressUrlArray.length
}}</span>
- <!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
- <el-table-column prop="confirmCount" label="确认单">
- <el-table-column prop="address" label="操作" width="140">
- <img width="16" height="16" style="vertical-align: text-top; margin: 0 6px"
- src="../../../public/img/chakan.png" @click="handleExamine(scope.row)" v-hasPermission="
+ <!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
+ <el-table-column prop="confirmCount" label="确认单">
+ <el-table-column prop="address" label="操作" width="140">
+ <img width="16" height="16" style="vertical-align: text-top; margin: 0 6px"
+ src="../../../public/img/chakan.png" @click="handleExamine(scope.row)" v-hasPermission="
" alt="" />
- <img width="17" height="16" style="vertical-align: text-top; margin: 0 6px"
- src="../../../public/img/bianji.png" @click="handleEdit(scope.row)" v-hasPermission="
+ <img width="17" height="16" style="vertical-align: text-top; margin: 0 6px"
+ src="../../../public/img/bianji.png" @click="handleEdit(scope.row)" v-hasPermission="
`contractManagement.buyContract.buyContractInfo.edit`
- <img width="16" height="17" style="
+ <img width="16" height="17" style="
top: -1px;
@@ -112,771 +112,768 @@
" src="../../../public/img/shanchu.png" v-hasPermission="
`contractManagement.buyContract.buyContractInfo.delete`
" @click="handleDelete(scope.row)" alt="" />
- </el-table>
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
- :page-size="deptCircularPage.pageSize" layout="total, sizes, prev, pager, next, jumper"
- :total="deptBudgetTotal">
- </el-pagination>
- <WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
- @on-cancel="handleClose">
- <ws-upload ref="upload" :comp-id="compId" :appendix-ids="appendixIdss"
- :size-limit="size"
- @onChange="onChange"
- accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
- </WinseaContentModal>
+ </el-table>
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
+ :page-size="deptCircularPage.pageSize" layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
+ </el-pagination>
+ <WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
+ @on-cancel="handleClose">
+ <ws-upload ref="upload" :comp-id="compId" :appendix-ids="appendixIdss" :size-limit="size" @onChange="onChange"
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
+ </WinseaContentModal>
</template>
<script>
- import {
- getList,
- export1,
- editstatus,
- billoperatehis,
- deletecontract,
- editInfo
- } from '@/model/contarct/index'
- downloadFile
- } from '@/utils/batchDown'
- import Pagination from '@/components/Pagination'
- import WsUpload from '@/components/WsUpload'
- dayjs,
- EventBus
- } from 'base-core-lib'
- export default {
- name: 'viewSpareMoney',
- components: {
- WsUpload,
- Pagination,
- },
- watch: {
- vesselId(val) {
- this.getList()
- isShow(val) {
- this.showType = val
- data() {
- return {
- id:'',
- size: 10,
- // 是否显示
- showType: true,
- // 年
- year: '',
- deliver_type: 1,
- deptBudgetTotal: 0,
- currentPage: 1,
- pageSize: 10,
- appendixIdsAdd: '',
- searchType: 1,
- searchTypeText: '未完成',
- searchKeyWord: '',
- contractType: 2,
- goodsType: 2,
- startDate: null,
- endDate: null,
- addressUrls: [],
- accessurl: '',
- accesscard: false,
- // 提交类型
- submitType: true,
- deptCircularPage: {},
- date: {
- year: dayjs().format('YYYY'),
- month: dayjs().format('MM'),
- contractList: [],
- deptBudgetList: {},
- historyList: [],
- appendixIdss: [],
- fileList: [],
- compId: localStorage.getItem('ws-pf_compId'),
- accessoryTFs: false,
- taskTypeList: [{
- value: '未完成',
- type: 1
- {
- value: '已完成',
- type: 2
- value: '全部合同',
- type: ''
- ],
- pickerOptions: {
- shortcuts: [{
- text: '本周',
- onClick(picker) {
- const end = new Date()
- const start = new Date()
- var thisDay = start.getDay()
- var thisDate = start.getDate()
- if (thisDay != 0) {
- start.setDate(thisDate - thisDay)
- }
- picker.$emit('pick', [start, end])
- text: '本月',
- start.setDate(1)
- text: '本季度',
- var oDate = new Date()
- var thisYear = oDate.getFullYear()
- var thisMonth = oDate.getMonth() + 1
- var n = Math.ceil(thisMonth / 3) // 季度
- var Month = n * 3 - 1
- var start = new Date(thisYear, Month - 2, 1)
- var end = new Date()
- value1: '',
- value2: '',
- activated() {
- //cg.viewBudget
- //cg.viewSpareMoney
- // this.getVesselData();
- this.showType = this.isShow
- methods: {
- onChange () {
- this.$refs.upload
- .handleSaveBill()
- .then(async response => {
- this.deptBudgetList.addressUrl = response
- this.deptBudgetList.id=this.id
- this.deptBudgetList.flag=1
- editInfo(this.deptBudgetList)
- .toPromise()
- .then((response) => {
- this.accessoryTFs = false
- this.$message.success('上传成功')
- })
- .catch(res => {
- EventBus.$emit('error', (JSON.parse(res) || {}).message)
- this.$refs.upload.clearFiles()
- dateFormat(fmt, date) {
- let ret
- const opt = {
- 'Y+': date.getFullYear().toString(), // 年
- 'm+': (date.getMonth() + 1).toString(), // 月
- 'd+': date.getDate().toString(), // 日
- 'H+': date.getHours().toString(), // 时
- // "M+": date.getMinutes().toString(), // 分
- // "S+": date.getSeconds().toString() // 秒
- // 有其他格式化字符需求可以继续添加,必须转化成字符串
- for (let k in opt) {
- ret = new RegExp('(' + k + ')').exec(fmt)
- if (ret) {
- fmt = fmt.replace(
- ret[1],
- ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
- )
- return fmt
- handleClose() {
- this.dialogViewSpareMoney = false
- handleClose1() {
- this.accesscard = false
- handleSizeChange(val) {
- console.log(`每页 ${val} 条`)
- this.pageSize = val
- handleCurrentChange(val) {
- this.currentPage = val
- console.log(`当前页: ${val}`)
- getList() {
- getList({
- contractType: this.contractType,
- goodsType: this.goodsType,
- currentPage: this.currentPage,
- pageSize: this.pageSize,
- searchType: this.searchType,
- searchKeyWord: this.searchKeyWord,
- startDate: this.startDate,
- endDate: this.endDate,
- contrPage: this.contrPage,
- for (var i = 0; i < response.records.length; i++) {
- if (response.records[i].addressUrl != null && response.records[i].addressUrl != '') {
- response.records[i].addressUrlArray =
- response.records[i].addressUrl.split(',')
- } else {
- response.records[i].addressUrlArray = []
- this.deptCircularPage.currentPage = response.current
- this.deptCircularPage.pageSize = response.size
- this.deptBudgetTotal = response.total
- this.contractList = response
- var arr = new Array()
- this.addressUrls[i] = new Array()
- if (this.contractList.records[i].addressUrl != null) {
- arr = this.contractList.records[i].addressUrl.split(',')
- this.addressUrls[i] = arr
- // 上传附件
- uploadSuccess(data, files, url) {
- console.log(data, files, url)
- // this.deptBudgetList.
- // this.formData.append('files', files)
- // this.feedbackObj.uploadNameAttachment = data.appendixName
- // this.feedbackObj.pathUploadAttachment = data.appendixPath
- // // this.newAppendixs = files
- // this.onChangeFlag = true
- editClick(row) {
- var status = ''
- if (row.status == '待执行' || row.status == '已完成') {
- status = '执行中'
- } else if (row.status == '执行中') {
- status = '已完成'
- this.$confirm(`是否将状态改为${status}`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning',
- .then(() => {
- editstatus({
- id: row.id
- this.$notify.success({
- title: '成功',
- message: '状态修改成功',
- .catch((response) => {
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
- .catch(() => {
- return false
- selecttaskType(e) {
- for (var i = 0; i < this.taskTypeList.length; i++) {
- if (this.taskTypeList[i].value == e) {
- this.searchType = this.taskTypeList[i].type
- fujian(row) {
- this.id=row.id
- this.appendixIdss = row.addressUrl
- console.log(this.appendixIdss)
- this.accessoryTFs = true
- handleExamine(row) {
- console.log(row)
- this.$router.push({
- name: 'futuresPurchaseContractExamine',
- query: {
- id: row.id,
- status: row.status
- handleAdd() {
- path: 'futuresPurchaseContractAdd'
- handleEdit(row) {
- name: 'futuresPurchaseContractEdit',
- // 关闭 dialog时 处理文件url 初始化upload组件
- handleCloe() {
- history(row) {
- billoperatehis({
- this.historyList = response
- find() {
- if (this.value2) {
- this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
- this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
- this.startDate = ''
- this.endDate = ''
- this.currentPage = 1
- async exportlist() {
- const {
- data
- } = await export1({
- }, {}, {
- responseType: 'blob'
- }).toPromise()
- downloadFile({
- res: data,
- fileName: `${
+ import {
+ getList,
+ export1,
+ editstatus,
+ billoperatehis,
+ deletecontract,
+ editInfo
+ } from '@/model/contarct/index'
+ downloadFile
+ } from '@/utils/batchDown'
+ import Pagination from '@/components/Pagination'
+ import WsUpload from '@/components/WsUpload'
+ dayjs,
+ EventBus
+ } from 'base-core-lib'
+ export default {
+ name: 'viewSpareMoney',
+ components: {
+ WsUpload,
+ Pagination,
+ },
+ watch: {
+ vesselId(val) {
+ this.getList()
+ isShow(val) {
+ this.showType = val
+ data() {
+ return {
+ id: '',
+ size: 10,
+ // 是否显示
+ showType: true,
+ // 年
+ year: '',
+ deliver_type: 1,
+ deptBudgetTotal: 0,
+ currentPage: 1,
+ pageSize: 10,
+ appendixIdsAdd: '',
+ searchType: 1,
+ searchTypeText: '未完成',
+ searchKeyWord: '',
+ contractType: 2,
+ goodsType: 2,
+ startDate: null,
+ endDate: null,
+ addressUrls: [],
+ accessurl: '',
+ accesscard: false,
+ // 提交类型
+ submitType: true,
+ deptCircularPage: {},
+ date: {
+ year: dayjs().format('YYYY'),
+ month: dayjs().format('MM'),
+ contractList: [],
+ deptBudgetList: {},
+ historyList: [],
+ appendixIdss: [],
+ fileList: [],
+ compId: localStorage.getItem('ws-pf_compId'),
+ accessoryTFs: false,
+ taskTypeList: [{
+ value: '未完成',
+ type: 1
+ {
+ value: '已完成',
+ type: 2
+ value: '全部合同',
+ type: ''
+ ],
+ pickerOptions: {
+ shortcuts: [{
+ text: '本周',
+ onClick(picker) {
+ const end = new Date()
+ const start = new Date()
+ var thisDay = start.getDay()
+ var thisDate = start.getDate()
+ if (thisDay != 0) {
+ start.setDate(thisDate - thisDay)
+ }
+ picker.$emit('pick', [start, end])
+ text: '本月',
+ start.setDate(1)
+ text: '本季度',
+ var oDate = new Date()
+ var thisYear = oDate.getFullYear()
+ var thisMonth = oDate.getMonth() + 1
+ var n = Math.ceil(thisMonth / 3) // 季度
+ var Month = n * 3 - 1
+ var start = new Date(thisYear, Month - 2, 1)
+ var end = new Date()
+ value1: '',
+ value2: '',
+ activated() {
+ //cg.viewBudget
+ //cg.viewSpareMoney
+ // this.getVesselData();
+ this.showType = this.isShow
+ methods: {
+ onChange() {
+ this.$refs.upload
+ .handleSaveBill()
+ .then(async response => {
+ this.deptBudgetList.addressUrl = response
+ this.deptBudgetList.id = this.id
+ this.deptBudgetList.flag = 1
+ editInfo(this.deptBudgetList)
+ .toPromise()
+ .then((response) => {
+ this.accessoryTFs = false
+ this.$message.success('上传成功')
+ })
+ .catch(res => {
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
+ this.$refs.upload.clearFiles()
+ dateFormat(fmt, date) {
+ let ret
+ const opt = {
+ 'Y+': date.getFullYear().toString(), // 年
+ 'm+': (date.getMonth() + 1).toString(), // 月
+ 'd+': date.getDate().toString(), // 日
+ 'H+': date.getHours().toString(), // 时
+ // "M+": date.getMinutes().toString(), // 分
+ // "S+": date.getSeconds().toString() // 秒
+ // 有其他格式化字符需求可以继续添加,必须转化成字符串
+ for (let k in opt) {
+ ret = new RegExp('(' + k + ')').exec(fmt)
+ if (ret) {
+ fmt = fmt.replace(
+ ret[1],
+ ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
+ )
+ return fmt
+ handleClose() {
+ this.dialogViewSpareMoney = false
+ handleClose1() {
+ this.accesscard = false
+ handleSizeChange(val) {
+ console.log(`每页 ${val} 条`)
+ this.pageSize = val
+ handleCurrentChange(val) {
+ this.currentPage = val
+ console.log(`当前页: ${val}`)
+ getList() {
+ getList({
+ contractType: this.contractType,
+ goodsType: this.goodsType,
+ currentPage: this.currentPage,
+ pageSize: this.pageSize,
+ searchType: this.searchType,
+ searchKeyWord: this.searchKeyWord,
+ startDate: this.startDate,
+ endDate: this.endDate,
+ contrPage: this.contrPage,
+ for (var i = 0; i < response.records.length; i++) {
+ if (response.records[i].addressUrl != null && response.records[i].addressUrl != '') {
+ response.records[i].addressUrlArray =
+ response.records[i].addressUrl.split(',')
+ } else {
+ response.records[i].addressUrlArray = []
+ this.deptCircularPage.currentPage = response.current
+ this.deptCircularPage.pageSize = response.size
+ this.deptBudgetTotal = response.total
+ this.contractList = response
+ var arr = new Array()
+ this.addressUrls[i] = new Array()
+ if (this.contractList.records[i].addressUrl != null) {
+ arr = this.contractList.records[i].addressUrl.split(',')
+ this.addressUrls[i] = arr
+ // 上传附件
+ uploadSuccess(data, files, url) {
+ console.log(data, files, url)
+ // this.deptBudgetList.
+ // this.formData.append('files', files)
+ // this.feedbackObj.uploadNameAttachment = data.appendixName
+ // this.feedbackObj.pathUploadAttachment = data.appendixPath
+ // // this.newAppendixs = files
+ // this.onChangeFlag = true
+ editClick(row) {
+ var status = ''
+ if (row.status == '待执行' || row.status == '已完成') {
+ status = '执行中'
+ } else if (row.status == '执行中') {
+ status = '已完成'
+ this.$confirm(`是否将状态改为${status}`, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning',
+ .then(() => {
+ editstatus({
+ id: row.id
+ this.$notify.success({
+ title: '成功',
+ message: '状态修改成功',
+ .catch((response) => {
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+ .catch(() => {
+ return false
+ selecttaskType(e) {
+ for (var i = 0; i < this.taskTypeList.length; i++) {
+ if (this.taskTypeList[i].value == e) {
+ this.searchType = this.taskTypeList[i].type
+ fujian(row) {
+ this.id = row.id
+ this.appendixIdss = row.addressUrl
+ console.log(this.appendixIdss)
+ this.accessoryTFs = true
+ handleExamine(row) {
+ console.log(row)
+ this.$router.push({
+ name: 'futuresPurchaseContractExamine',
+ query: {
+ id: row.id,
+ status: row.status
+ handleAdd() {
+ path: 'futuresPurchaseContractAdd'
+ handleEdit(row) {
+ name: 'futuresPurchaseContractEdit',
+ // 关闭 dialog时 处理文件url 初始化upload组件
+ handleCloe() {
+ history(row) {
+ billoperatehis({
+ this.historyList = response
+ find() {
+ if (this.value2) {
+ this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
+ this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
+ this.startDate = ''
+ this.endDate = ''
+ this.currentPage = 1
+ async exportlist() {
+ const {
+ data
+ } = await export1({
+ }, {}, {
+ responseType: 'blob'
+ }).toPromise()
+ downloadFile({
+ res: data,
+ fileName: `${
this.date.year + (this.date.month ? `-${this.date.month}` : '')
}_采购合同`,
- type: 'xls',
- // deletecontract(){},
- //删除
- handleDelete(row) {
- var text = ''
- // if (row.deliverType == 1) {
- // text =
- // '删除该合同将同时永久删除合同对应的临时仓库相关数据,是否确定删除?'
- // } else {
- // text = '合同删除后不可恢复,是否继续删除?'
- // }
- this.$confirm('合同删除后不可恢复,是否继续删除?', '提示', {
- deletecontract({
- message: '删除成功',
- .catch((response) => {})
+ type: 'xls',
+ // deletecontract(){},
+ //删除
+ handleDelete(row) {
+ var text = ''
+ // if (row.deliverType == 1) {
+ // text =
+ // '删除该合同将同时永久删除合同对应的临时仓库相关数据,是否确定删除?'
+ // } else {
+ // text = '合同删除后不可恢复,是否继续删除?'
+ // }
+ this.$confirm('合同删除后不可恢复,是否继续删除?', '提示', {
+ deletecontract({
+ message: '删除成功',
+ .catch((response) => {})
</script>
<style lang="scss" scoped>
- .vertical-text-left {
- width: 62px;
- text-align: right;
- .flex {
- display: flex;
- .el-range-editor.el-input__inner {
- margin-left: 10px;
- /deep/.base_header_layout .grid-content.right .find.el-button--primary {
- width: 30px;
- margin-left: -10px;
- border-top-left-radius: 0px;
- border-bottom-left-radius: 0px;
- .el-button--primary {
- background-color: #5878e8;
- border-color: #5878e8;
- .el-button--default {
- border: 1px solid #5473e8;
- color: #5473e8;
- .warning {
- width: 100%;
- height: 2px;
- background: red;
- .executory,
- .inExecution,
- .done {
- width: 6px;
- height: 6px;
- display: inline-block;
- border-radius: 50%;
- position: relative;
- top: -1px;
- .executory {
- background: #ff9f24;
- .inExecution {
- background: #5878e8;
- background: #50cad4;
- .top-grade {
- background: linear-gradient(90deg, #5678e9, #7993f6);
- color: #fff;
- padding: 3px;
- border-radius: 2px;
- .second-class {
- background: linear-gradient(90deg, #50cdd9, #82e2ea);
- .third-class {
- background: linear-gradient(90deg, #ffa735, #ffbf70);
- .substandard {
- background: linear-gradient(90deg, #b2b4bb, #ced0d5);
- .wrap {
- width: 400px;
- position: absolute;
- top: 131px;
- left: 794px;
- transform-origin: right center;
- z-index: 2005;
- .vertical-line {
- height: 64px;
- border-left: 2px solid #e9ecf7;
- margin-left: 4px;
- padding: 0 3px;
- // border-image: -webkit-linear-gradient(#00eba7, #08b8e6) 30 30;
- // border-image: -moz-linear-gradient(#00eba7, #08b8e6) 30 30;
- // border-image: linear-gradient(#00eba7, #08b8e6) 30 30;
- .el-pagination {
- padding: 10px 15px;
- margin-bottom: 0;
- text-align: center;
- /deep/.el-pager li.active {
- color: #5878e8;
- cursor: default;
- /deep/.el-pager li:hover {
- .vertical-circle {
- width: 10px;
- height: 10px;
- border: 2px solid #5878e8;
- background-color: #ffffff;
- -webkit-border-radius: 100px;
- .vertical-circle:first-child {
- color: red;
- .vertical-text {
- margin: 0 10px;
- color: #8890b1;
- font-size: 12px;
- margin-top: -4px;
- /deep/.el-table .el-table__header .cell,
- /deep/.el-table .el-table__body .cell {
- .typeselect {
- width: 500px;
- .padding-xs {
- padding: 15px;
- .clearfix:after {
- content: '';
- display: block;
- clear: both;
- .el-table {
- font-size: 16px;
- .taskType {
- background-color: #fff;
- margin-top: 2px;
- margin-bottom: 10px;
- list-style: none;
- // padding-bottom: 20px;
- li {
- float: left;
- border: 1px solid #6ea0f3;
- border-radius: 5px;
- max-width: 190px;
- padding: 0 5px;
- margin: 10px 20px;
- cursor: pointer;
- font-size: 14px;
- p {
- margin: 8px 0px;
- span {
- color: #e74c3c;
- li:hover {
- background-color: #e4eeff;
- color: #1d6ced;
- .el-date-editor--date {
- .findValue {
- /deep/.findValue .el-input__inner {
- border-top-right-radius: 0px;
- border-bottom-right-radius: 0px;
- .button-container {
- flex-wrap: nowrap;
- justify-content: space-between;
- align-items: center;
- height: 50px;
- padding: 0 10px;
- &>div {
- flex-direction: row;
- &>span {
- line-height: 50px;
- /deep/.auditFlow-box {
- position: unset;
- &/deep/.auditFlow-icon {
- width: auto;
- padding-right: 30px;
- &/deep/.auditFlow-main {
- .box-app {
- margin-left: 30px;
- /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 {
- z-index: 1;
- /*.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 {
- .is-disabled {
- .el-input__inner:hover {
- color: #606266;
- /deep/.ws-class-table-col {
- height: auto;
- padding: 0px 2px;
- /deep/.el-input__inner {
- /deep/.is-disabled {
- .el-input__prefix,
- .el-input__suffix {
- border-color: #fff !important;
- color: #000 !important;
- cursor: text;
- padding: 0 !important;
- /deep/.typeselect .el-input__inner {
+ .vertical-text-left {
+ width: 62px;
+ text-align: right;
+ .flex {
+ display: flex;
+ .el-range-editor.el-input__inner {
+ margin-left: 10px;
+ /deep/.base_header_layout .grid-content.right .find.el-button--primary {
+ width: 30px;
+ margin-left: -10px;
+ border-top-left-radius: 0px;
+ border-bottom-left-radius: 0px;
+ .el-button--primary {
+ background-color: #5878e8;
+ border-color: #5878e8;
+ .el-button--default {
+ border: 1px solid #5473e8;
+ color: #5473e8;
+ .warning {
+ width: 100%;
+ height: 2px;
+ background: red;
+ .executory,
+ .inExecution,
+ .done {
+ width: 6px;
+ height: 6px;
+ display: inline-block;
+ border-radius: 50%;
+ position: relative;
+ top: -1px;
+ .executory {
+ background: #ff9f24;
+ .inExecution {
+ background: #5878e8;
+ background: #50cad4;
+ .top-grade {
+ background: linear-gradient(90deg, #5678e9, #7993f6);
+ color: #fff;
+ padding: 3px;
+ border-radius: 2px;
+ .second-class {
+ background: linear-gradient(90deg, #50cdd9, #82e2ea);
+ .third-class {
+ background: linear-gradient(90deg, #ffa735, #ffbf70);
+ .substandard {
+ background: linear-gradient(90deg, #b2b4bb, #ced0d5);
+ .wrap {
+ width: 400px;
+ position: absolute;
+ top: 131px;
+ left: 794px;
+ transform-origin: right center;
+ z-index: 2005;
+ .vertical-line {
+ height: 64px;
+ border-left: 2px solid #e9ecf7;
+ margin-left: 4px;
+ padding: 0 3px;
+ // border-image: -webkit-linear-gradient(#00eba7, #08b8e6) 30 30;
+ // border-image: -moz-linear-gradient(#00eba7, #08b8e6) 30 30;
+ // border-image: linear-gradient(#00eba7, #08b8e6) 30 30;
+ .el-pagination {
+ padding: 10px 15px;
+ margin-bottom: 0;
+ text-align: center;
+ /deep/.el-pager li.active {
+ color: #5878e8;
+ cursor: default;
+ /deep/.el-pager li:hover {
+ .vertical-circle {
+ width: 10px;
+ height: 10px;
+ border: 2px solid #5878e8;
+ background-color: #ffffff;
+ -webkit-border-radius: 100px;
+ .vertical-circle:first-child {
+ color: red;
+ .vertical-text {
+ margin: 0 10px;
+ color: #8890b1;
+ font-size: 12px;
+ margin-top: -4px;
+ /deep/.el-table .el-table__header .cell,
+ /deep/.el-table .el-table__body .cell {
+ .typeselect {
+ width: 500px;
+ .padding-xs {
+ padding: 15px;
+ .clearfix:after {
+ content: '';
+ display: block;
+ clear: both;
+ .el-table {
+ font-size: 16px;
+ .taskType {
+ background-color: #fff;
+ margin-top: 2px;
+ margin-bottom: 10px;
+ list-style: none;
+ // padding-bottom: 20px;
+ li {
+ float: left;
+ border: 1px solid #6ea0f3;
+ border-radius: 5px;
+ max-width: 190px;
+ padding: 0 5px;
+ margin: 10px 20px;
+ cursor: pointer;
+ font-size: 14px;
+ p {
+ margin: 8px 0px;
+ span {
+ color: #e74c3c;
+ li:hover {
+ background-color: #e4eeff;
+ color: #1d6ced;
+ .el-date-editor--date {
+ .findValue {
+ /deep/.findValue .el-input__inner {
+ border-top-right-radius: 0px;
+ border-bottom-right-radius: 0px;
+ .button-container {
+ flex-wrap: nowrap;
+ justify-content: space-between;
+ align-items: center;
+ height: 50px;
+ padding: 0 10px;
+ &>div {
+ flex-direction: row;
+ &>span {
+ line-height: 50px;
+ /deep/.auditFlow-box {
+ position: unset;
+ &/deep/.auditFlow-icon {
+ width: auto;
+ padding-right: 30px;
+ &/deep/.auditFlow-main {
+ .box-app {
+ margin-left: 30px;
+ /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 {
+ z-index: 1;
+ /*.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 {
+ .is-disabled {
+ .el-input__inner:hover {
+ color: #606266;
+ /deep/.ws-class-table-col {
+ height: auto;
+ padding: 0px 2px;
+ /deep/.el-input__inner {
+ /deep/.is-disabled {
+ .el-input__prefix,
+ .el-input__suffix {
+ border-color: #fff !important;
+ color: #000 !important;
+ cursor: text;
+ padding: 0 !important;
+ /deep/.typeselect .el-input__inner {
@@ -31,7 +31,7 @@
</BaseHeaderLayout>
+ <el-table class="wenzi" :data="contractList.records" style="width: 100%; margin-top: 10px" height="calc(100% - 110px)">
<el-table-column type="index" label="序号">
<template scope="scope">
<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
@@ -30,7 +30,7 @@
- <el-table class="wenzi" :data="contractList.records" style="width: 100%; margin-top: 10px" height="calc(100% - 75px)">
+ <el-table class="wenzi" :data="contractList.records" style="width: 100%; margin-top: 10px" height="calc(100% - 105px)">
@@ -4,71 +4,32 @@
<BaseHeaderLayout :leftSpan="8">
<template slot="left"> </template>
<template slot="left">
- <ws-input
- v-model="searchKeyWord"
- placeholder="可按客户名称、电话查找"
- clearable
- maxlength="500"
- type="input"
- class="findValue"
- @keyup.enter.native="find()"
- ></ws-input>
- <ws-button class="find" type="primary" @click="find()"
- ><img
- width="16"
- height="16"
- style="
+ <ws-input v-model="searchKeyWord" placeholder="可按客户名称、电话查找" clearable maxlength="500" type="input"
+ class="findValue" @keyup.enter.native="find()"></ws-input>
- "
- src="../../../public/img/sousuo.png"
- alt=""
- /></ws-button>
+ " src="../../../public/img/sousuo.png" alt="" /></ws-button>
<!--设置默认定金比例-->
- <el-button
- class="bg-bottom"
- type="primary"
- size="small"
- @click="installRatio()"
- >
- 默认定金比例</el-button
- <el-dialog
- width="25%"
- title="设置默认定金比例"
- :visible.sync="outerVisibleDefaultEdit"
- :append-to-body="true"
+ <el-button class="bg-bottom" type="primary" size="small" @click="installRatio()">
+ 默认定金比例</el-button>
+ <el-dialog width="25%" title="设置默认定金比例" :visible.sync="outerVisibleDefaultEdit" :append-to-body="true">
<div style="width: 50%">
<div class="dingjin">定金比例(元/吨)</div>
- <el-input
- type="textarea"
- :rows="2"
- placeholder="请输入定金比例"
- v-model="depositRatio"
+ <el-input type="textarea" :rows="2" placeholder="请输入定金比例" v-model="depositRatio">
</el-input>
</div>
<div slot="footer" class="dialog-footer">
- <el-button @click="outerVisibleDefaultEdit = false"
- >取 消</el-button
- <el-button type="primary" @click="editDefaultDepositRatio()"
- >确 定</el-button
+ <el-button @click="outerVisibleDefaultEdit = false">取 消</el-button>
+ <el-button type="primary" @click="editDefaultDepositRatio()">确 定</el-button>
</el-dialog>
<!--增加定金-->
- width="30%"
- title="增加定金"
- :visible.sync="outerVisibleAdd"
+ <el-dialog width="30%" title="增加定金" :visible.sync="outerVisibleAdd" :append-to-body="true">
<div class="addprice">
已付定金
<div class="yifudingjin">
@@ -77,13 +38,7 @@
<div class="addpricejine">增加金额</div>
<div style="width: 50%" class="zengjia">
- maxlength="30"
- placeholder="请输入本次增加定金金额"
- v-model="money"
+ <el-input type="textarea" :rows="2" maxlength="30" placeholder="请输入本次增加定金金额" v-model="money">
<div class="yuan">元</div>
@@ -94,12 +49,7 @@
<!--退回定金-->
- title="退回定金"
- :visible.sync="outerVisibleReturn"
+ <el-dialog width="30%" title="退回定金" :visible.sync="outerVisibleReturn" :append-to-body="true">
<div class="returnprice">
可退定金
<div class="ketuidingjin">
@@ -110,13 +60,7 @@
<div class="returnpricejine">退回金额</div>
<div style="width: 50%" class="tuihui">
- placeholder="请输入本次退回定金金额"
+ <el-input type="textarea" :rows="2" maxlength="30" placeholder="请输入本次退回定金金额" v-model="money">
@@ -127,21 +71,15 @@
- <el-table
- class="wenzi"
- :data="customerList.records"
- style="width: 100%"
- height="680"
- <el-table-column prop="index" label="序号" width="80">
- <el-table-column prop="customerName" label="客户名称">
- <!-- <template scope="scope">
+ <el-table class="wenzi" :data="customerList.records" style="width: 100%" height="calc(100% - 110px)">
+ <el-table-column prop="index" label="序号" width="80">
+ <el-table-column prop="customerName" label="客户名称">
+ <!-- <template scope="scope">
<span
v-if="
scope.row.customerName == '' || scope.row.customerName == null
@@ -153,724 +91,724 @@
>{{ scope.row.customerName }}</span
>
</template> -->
- <el-table-column prop="compAddress" label="地址"></el-table-column>
- <el-table-column prop="customerPhone" label="电话"> </el-table-column>
- <el-table-column width='170' prop="payTaxesCard" label="纳税人识别号">
- <span
- v-if="
+ <el-table-column prop="compAddress" label="地址"></el-table-column>
+ <el-table-column prop="customerPhone" label="电话"> </el-table-column>
+ <el-table-column width='170' prop="payTaxesCard" label="纳税人识别号">
+ <span v-if="
scope.row.payTaxesCard == '' || scope.row.payTaxesCard == null
- — —
- {{ scope.row.payTaxesCard }}
- <el-table-column prop="bankDeposit" label="开户行">
- {{ scope.row.bankDeposit }} - {{ scope.row.bankDepositBranch }}
- <el-table-column prop="bankCard" label="银行卡号"> </el-table-column>
- <el-table-column prop="totalDeposit" label="总定金(元)">
- <el-table-column width='150' prop="freezingDeposit" label="冻结定金(元)">
- <el-table-column
- width='150'
- class="table_td"
- prop="depositRatio"
- label="定金比例(元/吨)"
- <div class="inputChenge">
- <!-- readonly -->
- v-model="scope.row.depositRatio"
- v-if="scope.row.identification == 'true'"
- ></el-input>
- <div v-if="scope.row.identification == 'false'" class="inputs">
- {{ scope.row.depositRatio }}
+ ">
+ — —
+ {{ scope.row.payTaxesCard }}
+ <el-table-column prop="bankDeposit" label="开户行">
+ {{ scope.row.bankDeposit }} - {{ scope.row.bankDepositBranch }}
+ <el-table-column prop="bankCard" label="银行卡号"> </el-table-column>
+ <el-table-column prop="totalDeposit" label="总定金(元)">
+ <el-table-column width='150' prop="freezingDeposit" label="冻结定金(元)">
+ <el-table-column width='150' class="table_td" prop="depositRatio" label="定金比例(元/吨)">
+ <div class="inputChenge">
+ <!-- readonly -->
+ <el-input v-model="scope.row.depositRatio" v-if="scope.row.identification == 'true'"></el-input>
+ <div v-if="scope.row.identification == 'false'" class="inputs">
+ {{ scope.row.depositRatio }}
- <img
- width="17"
- height="18"
- style="vertical-align: text-top; position: relative; top: -1px"
- src="../../../public/img/edit.png"
- @click="whether(scope.row)"
- v-if="scope.row.identification == 'false'"
- />
- <i
- class="el-icon-check"
- style="line-height: 29px; margin-left: 10px"
- @click="varietyClick(scope.row)"
- ></i>
- <!-- <div>—</div> -->
- <el-table-column prop="updateDate" label="更新时间"> </el-table-column>
- <el-table-column prop="seller" label="操作" width="280">
- v-hasPermission="
+ src="../../../public/img/edit.png" @click="whether(scope.row)" v-if="scope.row.identification == 'false'"
+ alt="" />
+ <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
+ v-if="scope.row.identification == 'true'" @click="varietyClick(scope.row)"></i>
+ <!-- <div>—</div> -->
+ <el-table-column prop="updateDate" label="更新时间"> </el-table-column>
+ <el-table-column prop="seller" label="操作" width="280">
+ <el-button type="primary" v-hasPermission="
`customerManagement.customer.customerInfo.View`
- @click="editClick(1, scope.row)"
- >增加定金</el-button
+ " @click="editClick(1, scope.row)">增加定金</el-button>
+ <el-button v-hasPermission="
- @click="editClick(2, scope.row)"
- >退回定金</el-button
- <el-pagination
- @size-change="handleSizeChange"
- @current-change="handleCurrentChange"
- :current-page="currentPage"
- :page-size="deptCircularPage.pageSize"
- layout="total, sizes, prev, pager, next, jumper"
- :total="deptBudgetTotal"
+ " type="primary" @click="editClick(2, scope.row)">退回定金</el-button>
-import {
- installDepositRatio,
- editCustomerInfo,
-} from '@/model/customer/index'
-import Pagination from '@/components/Pagination'
-import WsUpload from '@/components/WsUpload'
-export default {
+ installDepositRatio,
+ editCustomerInfo,
+ } from '@/model/customer/index'
},
- //弹出框
- dialogViewSpareMoney: false,
- dialogApproveFormVisible: false,
- // 船舶类型
- monetaryKey: null,
- // 表格显示数据
- tableDate: [],
- outerVisibleDefaultEdit: false,
- outerVisibleEdit: false,
- outerVisibleAdd: false,
- outerVisibleReturn: false,
- spanArr: [],
- depositRatio: '700',
- id: '',
- money: '',
- customerList: [],
- pickerBeginDateBefore: {
- disabledDate: (time) => {
- return time.getTime() > Date.now()
- customerInfo: {
+ //弹出框
+ dialogViewSpareMoney: false,
+ dialogApproveFormVisible: false,
+ // 船舶类型
+ monetaryKey: null,
+ // 表格显示数据
+ tableDate: [],
+ outerVisibleDefaultEdit: false,
+ outerVisibleEdit: false,
+ outerVisibleAdd: false,
+ outerVisibleReturn: false,
+ spanArr: [],
+ depositRatio: '700',
id: '',
- compId: '',
- depositRatio: '',
- flag: '',
money: '',
+ customerList: [],
+ pickerBeginDateBefore: {
+ disabledDate: (time) => {
+ return time.getTime() > Date.now()
+ customerInfo: {
+ compId: '',
+ depositRatio: '',
+ flag: '',
+ money: '',
+ totalDeposit: 0,
+ freezingDeposit: 0,
totalDeposit: 0,
freezingDeposit: 0,
- totalDeposit: 0,
- freezingDeposit: 0,
- //查看//传参
- nocomplete(row) {
- name: 'vehicleDispatchingview',
- changestatus(state) {
- this.searchType = state
this.getList()
- //修改定金比例
- varietyClick(row) {
- if (
- row.depositRatio < 0 ||
- row.depositRatio > 100000 ||
- (String(row.depositRatio).indexOf('.') != -1 &&
- String(row.depositRatio).length -
+ //查看//传参
+ nocomplete(row) {
+ name: 'vehicleDispatchingview',
+ changestatus(state) {
+ this.searchType = state
+ //修改定金比例
+ varietyClick(row) {
+ if (
+ row.depositRatio < 0 ||
+ row.depositRatio > 100000 ||
+ (String(row.depositRatio).indexOf('.') != -1 &&
+ String(row.depositRatio).length -
(String(row.depositRatio).indexOf('.') + 1) >
2)
- ) {
- this.$message({
- message: '定金比例输入错误',
- return
- if (row.depositRatio) {
- if (isNaN(row.depositRatio)) {
+ ) {
this.$message({
- message: '定金比例非数字!',
+ message: '定金比例输入错误',
type: 'warning',
})
return
- if (!row.depositRatio) {
- message: '定金比例不能为空!',
- this.$confirm(`确定要修改定金比例?`, {
- editCustomerInfo({
- flag: 0,
- depositRatio: row.depositRatio,
- message: '修改成功',
+ if (row.depositRatio) {
+ if (isNaN(row.depositRatio)) {
+ this.$message({
+ message: '定金比例非数字!',
- whether(row) {
- row.identification = 'true'
- //列表查询
- customerTypeFlag: this.customerTypeFlag,
- response.records[i].identification = 'false'
+ return
- this.customerList = response
- //设置默认定金比例
- installRatio() {
- this.outerVisibleDefaultEdit = true
- editDefaultDepositRatio() {
- this.depositRatio < 1 ||
- this.depositRatio > 100000 ||
- (String(this.depositRatio).indexOf('.') != -1 &&
- String(this.depositRatio).length -
- (String(this.depositRatio).indexOf('.') + 1) >
- 2)
- message: '默认定金比例输入错误',
- if (this.depositRatio) {
- if (isNaN(this.depositRatio)) {
+ if (!row.depositRatio) {
- message: '默认定金比例非数字!',
+ message: '定金比例不能为空!',
- if (!this.depositRatio) {
- message: '默认定金比例不能为空!',
+ this.$confirm(`确定要修改定金比例?`, {
- installDepositRatio({
- depositRatio: this.depositRatio,
+ editCustomerInfo({
+ flag: 0,
+ depositRatio: row.depositRatio,
+ message: '修改成功',
+ whether(row) {
+ row.identification = 'true'
+ //列表查询
+ customerTypeFlag: this.customerTypeFlag,
.toPromise()
.then((response) => {
- this.outerVisibleDefaultEdit = false
- this.$message.success('设置默认定金比例成功')
+ response.records[i].identification = 'false'
+ this.customerList = response
- //编辑
- editClick(index, row) {
- this.id = row.id
- this.depositRatio = row.depositRatio
- this.totalDeposit = row.totalDeposit
- this.freezingDeposit = row.freezingDeposit
- //增加定金
- if (index == 1) {
- this.outerVisibleAdd = true
- this.customerInfo.flag = 1
- //退回定金
- else {
- this.outerVisibleReturn = true
- this.customerInfo.flag = 2
- editPrice(asdf) {
- this.customerInfo.id = this.id
- this.customerInfo.compId = this.compId
- this.customerInfo.depositRatio = this.depositRatio
- this.customerInfo.money = this.money
- this.customerInfo.totalDeposit = this.totalDeposit
- this.customerInfo.freezingDeposit = this.freezingDeposit
- if (asdf == 1) {
+ //设置默认定金比例
+ installRatio() {
+ this.outerVisibleDefaultEdit = true
+ editDefaultDepositRatio() {
if (
- this.money < 0 ||
- this.money > 100000000 ||
- (String(this.money).indexOf('.') != -1 &&
- String(this.money).length - (String(this.money).indexOf('.') + 1) >
+ this.depositRatio < 1 ||
+ this.depositRatio > 100000 ||
+ (String(this.depositRatio).indexOf('.') != -1 &&
+ String(this.depositRatio).length -
+ (String(this.depositRatio).indexOf('.') + 1) >
+ 2)
) {
- message: '增加金额输入错误',
+ message: '默认定金比例输入错误',
- if (this.money) {
- if (isNaN(this.money)) {
+ if (this.depositRatio) {
+ if (isNaN(this.depositRatio)) {
- message: '增加金额非数字!',
+ message: '默认定金比例非数字!',
+ if (!this.depositRatio) {
+ message: '默认定金比例不能为空!',
+ installDepositRatio({
+ depositRatio: this.depositRatio,
+ this.outerVisibleDefaultEdit = false
+ this.$message.success('设置默认定金比例成功')
- if (!this.money) {
- message: '增加金额不能为空!',
+ //编辑
+ editClick(index, row) {
+ this.depositRatio = row.depositRatio
+ this.totalDeposit = row.totalDeposit
+ this.freezingDeposit = row.freezingDeposit
+ //增加定金
+ if (index == 1) {
+ this.outerVisibleAdd = true
+ this.customerInfo.flag = 1
- if (asdf == 2) {
- message: '退回金额输入错误',
+ //退回定金
+ else {
+ this.outerVisibleReturn = true
+ this.customerInfo.flag = 2
+ editPrice(asdf) {
+ this.customerInfo.id = this.id
+ this.customerInfo.compId = this.compId
+ this.customerInfo.depositRatio = this.depositRatio
+ this.customerInfo.money = this.money
+ this.customerInfo.totalDeposit = this.totalDeposit
+ this.customerInfo.freezingDeposit = this.freezingDeposit
+ if (asdf == 1) {
+ this.money < 0 ||
+ this.money > 100000000 ||
+ (String(this.money).indexOf('.') != -1 &&
+ String(this.money).length - (String(this.money).indexOf('.') + 1) >
- message: '退回金额非数字!',
+ message: '增加金额输入错误',
+ if (this.money) {
+ if (isNaN(this.money)) {
+ message: '增加金额非数字!',
+ if (!this.money) {
+ message: '增加金额不能为空!',
- message: '退回金额不能为空!',
- if (this.money > this.totalDeposit - this.freezingDeposit) {
- message: '退回金额不能大于可退金额!',
- editCustomerInfo(this.customerInfo)
- this.outerVisibleAdd = false
- this.outerVisibleReturn = false
- this.outerVisibleEdit = false
- this.money = ''
- this.$message.success('增加成功')
+ if (asdf == 2) {
+ message: '退回金额输入错误',
- this.$message.success('退回成功')
+ message: '退回金额非数字!',
+ message: '退回金额不能为空!',
+ if (this.money > this.totalDeposit - this.freezingDeposit) {
+ message: '退回金额不能大于可退金额!',
+ editCustomerInfo(this.customerInfo)
+ this.outerVisibleAdd = false
+ this.outerVisibleReturn = false
+ this.outerVisibleEdit = false
+ this.money = ''
+ this.$message.success('增加成功')
+ this.$message.success('退回成功')
-}
-.connert {
- width: 90%;
- margin: 0 auto;
-.vertical-text-left {
-.el-button--primary {
-.el-button--default {
- border-color: #e8eaf1;
-/deep/.base_header_layout .find.el-button--primary {
- margin-left: 0;
-/deep/.findValue .el-input__inner {
-//操作按钮
-.record,
-.adjustment {
- padding: 0 4px !important;
-.record:after {
- top: 5px;
- right: -2px;
- width: 1px;
- height: 12px;
- background: #e9ecf7;
-//状态样式
-.executory,
-.inExecution,
-.done {
-.executory {
-.inExecution {
-.putstorage.el-button--default,
-.deliverystorage.el-button--default {
- border-color: #8890b1;
-/deep/.el-table td,
-/deep/.el-table th.is-leaf {
- border-right: 1px solid #e9ecf7;
-/deep/.el-table tr td:first-child,
-/deep/.el-table tr th.is-leaf:first-child {
- border-left: 1px solid #e9ecf7;
-.el-row {
- height: 60px;
-.base_header_layout .grid-content {
- margin-top: 80px;
-.el-input--small .el-input__inner {
- margin-left: 20px;
-.dialog-footer {
- margin-top: 33px;
-.el-range-editor--small.el-input__inner {
- height: 32px;
-/deep/.el-pagination {
- white-space: nowrap;
- padding: 2px 5px;
- color: #303133;
- font-weight: 700;
-.el-select {
- width: 30%;
- margin-right: 10px;
-/deep/.zengjia .el-textarea__inner {
- padding: 13px 9px;
- line-height: 0.5;
- box-sizing: border-box;
- width: 80%;
- font-size: inherit;
- background-image: none;
- border: 1px solid #dcdfe6;
- border-radius: 4px;
- margin-left: 180px;
- margin-top: 10px;
-/deep/.xiugai .el-textarea__inner {
- padding: 13px 17px;
- width: 105%;
- transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
- margin-left: 95px;
-/deep/.tuihui .el-textarea__inner {
-/deep/.dingjin {
- width: 98px;
- margin-bottom: -37px;
- padding-top: 20px;
-/deep/.el-textarea__inner {
- margin-left: 155px;
-/deep/.addprice {
- margin-left: 50px;
-/deep/.returnprice {
-/deep/.yuan {
- margin-left: 150%;
- margin-top: -32px;
-/deep/.addpricejine {
-/deep/.returnpricejine {
-/deep/.typeselect .el-input__inner {
-/deep/.yifudingjin {
- margin-left: 135px;
- width: 70px;
- margin-top: -19px;
-.inputChenge {
- width: 50%;
- display: inline-flex;
-.inputs {
-/deep/.ketuidingjin {
+ .connert {
+ width: 90%;
+ margin: 0 auto;
+ border-color: #e8eaf1;
+ /deep/.base_header_layout .find.el-button--primary {
+ margin-left: 0;
+ //操作按钮
+ .record,
+ .adjustment {
+ padding: 0 4px !important;
+ .record:after {
+ top: 5px;
+ right: -2px;
+ width: 1px;
+ height: 12px;
+ background: #e9ecf7;
+ //状态样式
+ .putstorage.el-button--default,
+ .deliverystorage.el-button--default {
+ border-color: #8890b1;
+ /deep/.el-table td,
+ /deep/.el-table th.is-leaf {
+ border-right: 1px solid #e9ecf7;
+ /deep/.el-table tr td:first-child,
+ /deep/.el-table tr th.is-leaf:first-child {
+ border-left: 1px solid #e9ecf7;
+ .el-row {
+ height: 60px;
+ .base_header_layout .grid-content {
+ margin-top: 80px;
+ .el-input--small .el-input__inner {
+ margin-left: 20px;
+ .dialog-footer {
+ margin-top: 33px;
+ .el-range-editor--small.el-input__inner {
+ height: 32px;
+ /deep/.el-pagination {
+ white-space: nowrap;
+ padding: 2px 5px;
+ color: #303133;
+ font-weight: 700;
+ .el-select {
+ width: 30%;
+ margin-right: 10px;
+ /deep/.zengjia .el-textarea__inner {
+ padding: 13px 9px;
+ line-height: 0.5;
+ box-sizing: border-box;
+ width: 80%;
+ font-size: inherit;
+ background-image: none;
+ border: 1px solid #dcdfe6;
+ border-radius: 4px;
+ margin-left: 180px;
+ margin-top: 10px;
+ /deep/.xiugai .el-textarea__inner {
+ padding: 13px 17px;
+ width: 105%;
+ transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
+ margin-left: 95px;
+ /deep/.tuihui .el-textarea__inner {
+ /deep/.dingjin {
+ width: 98px;
+ margin-bottom: -37px;
+ padding-top: 20px;
+ /deep/.el-textarea__inner {
+ margin-left: 155px;
+ /deep/.addprice {
+ margin-left: 50px;
+ /deep/.returnprice {
+ /deep/.yuan {
+ margin-left: 150%;
+ margin-top: -32px;
+ /deep/.addpricejine {
+ /deep/.returnpricejine {
+ /deep/.yifudingjin {
+ margin-left: 135px;
+ width: 70px;
+ margin-top: -19px;
+ .inputChenge {
+ width: 50%;
+ display: inline-flex;
+ .inputs {
+ /deep/.ketuidingjin {
@@ -4,67 +4,40 @@
<!--添加客户-->
- <ws-button v-hasPermission=" `customerMoneyManagement.customerMoney.audit`" type="primary" @click="customerAdd()"
- width="13"
- height="13"
+ <ws-button v-hasPermission=" `customerMoneyManagement.customerMoney.audit`" type="primary"
+ @click="customerAdd()"><img width="13" height="13" style="
left: -4px;
- src="../../../public/img/header-add.png"
- />创建客户</ws-button
+ " src="../../../public/img/header-add.png" alt="" />创建客户</ws-button>
<!-- v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`" -->
<el-table-column prop="index" label="序号" width="80">
<span v-else>{{ scope.$index + 1 }}</span>
</el-table-column>
- <el-table-column prop="customerType" label="客户类型" ></el-table-column>
- <el-table-column prop="compName" label="企业名称" ></el-table-column>
- <el-table-column prop="customerName" label="客户姓名" ></el-table-column>
- <el-table-column prop="customerPhone" label="电话" > </el-table-column>
- <el-table-column prop="totalDeposit" label="定金(元)" ></el-table-column>
- <el-table-column prop="advancePayment" label="预付金(元)" ></el-table-column>
- <el-table-column prop="securityDeposit" label="保证金(元)" ></el-table-column>
+ <el-table-column prop="customerType" label="客户类型"></el-table-column>
+ <el-table-column prop="compName" label="企业名称"></el-table-column>
+ <el-table-column prop="customerName" label="客户姓名"></el-table-column>
+ <el-table-column prop="totalDeposit" label="定金(元)"></el-table-column>
+ <el-table-column prop="advancePayment" label="预付金(元)"></el-table-column>
+ <el-table-column prop="securityDeposit" label="保证金(元)"></el-table-column>
<el-table-column prop="bankCard" label="账号" width="200"> </el-table-column>
<el-table-column prop="bankDeposit" label="开户行" width="300">
<template slot-scope="scope">
@@ -74,458 +47,475 @@
<!-- <el-table-column prop="bankDepositBranch" label="开户支行" width="260">
{{ scope.row.bankDeposit }} - {{ scope.row.bankDepositBranch }}
</el-table-column> -->
- <el-table-column prop="payeeName" label="收款人姓名" > </el-table-column>
+ <el-table-column prop="payeeName" label="收款人姓名"> </el-table-column>
<el-table-column prop="seller" label="操作" width="200">
- size="medium"
- type="text"
- class="record"
- v-hasPermission=" `customerMoneyManagement.customerMoney.edit`"
- @click="customerEdit(scope.row)"
- >编辑</el-button
- <el-divider direction="vertical"></el-divider>
- v-hasPermission=" `customerMoneyManagement.customerMoney.delete`"
- @click="customerDel(scope.row)"
- >删除</el-button
+ <el-button size="medium" type="text" class="record"
+ v-hasPermission=" `customerMoneyManagement.customerMoney.edit`" @click="customerEdit(scope.row)">编辑
+ </el-button>
+ <el-divider direction="vertical"></el-divider>
+ v-hasPermission=" `customerMoneyManagement.customerMoney.delete`" @click="customerDel(scope.row)">删除
</el-table>
+ :page-size="deptCircularPage.pageSize" layout="total, sizes, prev, pager, next, jumper"
+ :total="deptBudgetTotal">
</el-pagination>
- getCustomerList,
- delCustomerInfo,
-} from '@/model/customerFundManagement/index'
+ getCustomerList,
+ delCustomerInfo,
+ } from '@/model/customerFundManagement/index'
- customerAdd() {
- path: 'customerFundAdd',
- customerEdit(row) {
- name: 'customerFundEdit',
- customerDel(row) {
- this.$confirm(`客户信息删除后不可恢复,是否确定删除?`, {
- delCustomerInfo({
id: row.id,
- getCustomerList({
+ customerAdd() {
+ path: 'customerFundAdd',
+ customerEdit(row) {
+ name: 'customerFundEdit',
+ customerDel(row) {
+ this.$confirm(`客户信息删除后不可恢复,是否确定删除?`, {
+ delCustomerInfo({
+ getCustomerList({
-// .record:after {
-// position: absolute;
-// content: '';
-// display: block;
-// top: 5px;
-// right: -2px;
-// width: 1px;
-// height: 12px;
-// background: #e9ecf7;
-// }
+ // .record:after {
+ // position: absolute;
+ // content: '';
+ // display: block;
+ // top: 5px;
+ // right: -2px;
+ // width: 1px;
+ // height: 12px;
+ // background: #e9ecf7;
@@ -3,34 +3,18 @@
<div>
<BaseHeaderLayout :leftSpan="12">
- @click="newAcquisition('','','新增')"
- v-hasPermission=" `acquisitionManagement.acquisitionCustomer.add`"
- >新增</el-button>
+ <el-button type="primary" @click="newAcquisition('','','新增')"
+ v-hasPermission=" `acquisitionManagement.acquisitionCustomer.add`">新增</el-button>
- <el-select
- v-model="selectVal"
- placeholder="请选择"
- @change="warehouseChange"
- style="margin:0 20px"
- <el-option
- v-for="item in warehouseList"
- :key="item.id"
- :label="item.warehouseName"
- :value="item.id"
- ></el-option>
+ <el-select v-model="selectVal" placeholder="请选择" @change="warehouseChange" style="margin:0 20px">
+ <el-option v-for="item in warehouseList" :key="item.id" :label="item.warehouseName" :value="item.id">
+ </el-option>
</el-select>
- <el-checkbox
- v-hasPermission=" `acquisitionManagement.acquisition.allow`"
- v-model="checked"
- @change="allowEdit"
- :disabled="warehouseList.length==0"
- >允许手动编辑重量</el-checkbox>
+ <el-checkbox v-hasPermission=" `acquisitionManagement.acquisition.allow`" v-model="checked"
+ @change="allowEdit" :disabled="warehouseList.length==0">允许手动编辑重量</el-checkbox>
<!-- <div class="header">
@@ -45,317 +29,298 @@
<el-dialog title="新增" :visible.sync="newAcquisitionDialogVisible" width="50%">
<acquisitionManagementAdd></acquisitionManagementAdd>
- <div class="table-content">
- <el-table :data="tableData" style="width: 100%;margin-top: 20px;" border height="600" >
- <el-table-column prop="warehouseName" label="仓库名称"></el-table-column>
- <el-table-column prop="goodsName" label="货名"></el-table-column>
- <el-table-column label="水分范围(%)">
- <template slot-scope="{ row }">{{row.waterMin}}-{{row.waterMax}}</template>
- <el-table-column prop="waterBase" label="基准水分(%)"></el-table-column>
- <el-table-column prop="deductWeight" label="扣重比"></el-table-column>
- <el-table-column prop="saleLimit" label="销量上限(年/吨)"></el-table-column>
- <el-table-column prop="dryGrainPrice" label="干粮收购价"></el-table-column>
- <el-table-column prop="status" label="状态"></el-table-column>
- <el-table-column prop="updateDate" label="通过时间"></el-table-column>
- <el-table-column label="操作" width="300">
- <el-button size="mini" @click="newAcquisition(scope.$index, scope.row,'查看')">查看</el-button>
- v-if="scope.row.status!='审核中'"
- size="mini"
- @click="newAcquisition(scope.$index, scope.row,'编辑')"
- v-hasPermission=" `acquisitionManagement.acquisitionCustomer.edit`"
- >编辑</el-button>
- v-if="scope.row.status=='审核中'"
- :disabled="!scope.row.taskId"
- @click="newAcquisition(scope.$index, scope.row,'审核中')"
- >审核中</el-button>
- :disabled="!userJurisdiction"
- type="danger"
- @click="delRow(scope.$index, scope.row)"
- v-hasPermission=" `acquisitionManagement.acquisitionCustomer.delete`"
- >删除</el-button>
- <el-button size="mini" @click="print(scope.$index, scope.row)">打印</el-button>
- <div class="paging">
- ></el-pagination>
+ <el-table :data="tableData" style="width: 100%;margin-top: 20px;" border height="calc(100% - 130px)">
+ <el-table-column prop="warehouseName" label="仓库名称"></el-table-column>
+ <el-table-column prop="goodsName" label="货名"></el-table-column>
+ <el-table-column label="水分范围(%)">
+ <template slot-scope="{ row }">{{row.waterMin}}-{{row.waterMax}}</template>
+ <el-table-column prop="waterBase" label="基准水分(%)"></el-table-column>
+ <el-table-column prop="deductWeight" label="扣重比"></el-table-column>
+ <el-table-column prop="saleLimit" label="销量上限(年/吨)"></el-table-column>
+ <el-table-column prop="dryGrainPrice" label="干粮收购价"></el-table-column>
+ <el-table-column prop="status" label="状态"></el-table-column>
+ <el-table-column prop="updateDate" label="通过时间"></el-table-column>
+ <el-table-column label="操作" width="300">
+ <el-button size="mini" @click="newAcquisition(scope.$index, scope.row,'查看')">查看</el-button>
+ <el-button v-if="scope.row.status!='审核中'" size="mini" @click="newAcquisition(scope.$index, scope.row,'编辑')"
+ v-hasPermission=" `acquisitionManagement.acquisitionCustomer.edit`">编辑</el-button>
+ <el-button v-if="scope.row.status=='审核中'" size="mini" :disabled="!scope.row.taskId"
+ @click="newAcquisition(scope.$index, scope.row,'审核中')">审核中</el-button>
+ <el-button size="mini" :disabled="!userJurisdiction" type="danger" @click="delRow(scope.$index, scope.row)"
+ v-hasPermission=" `acquisitionManagement.acquisitionCustomer.delete`">删除</el-button>
+ <el-button size="mini" @click="print(scope.$index, scope.row)">打印</el-button>
+ <div class="paging">
+ :total="deptBudgetTotal"></el-pagination>
- getPurchasePrice,
- selectWarehouseSelf,
- purchasePriceAllowEdit,
- purchasePriceLook,
- purchasePriceDel
-} from '@/model/houseSelfCollect/index'
-import { getHp } from '@/utils/getHasPermission'
- components: {},
- watch: {},
- newAcquisitionDialogVisible: false,
- visible: false,
- checked: false,
- accountName: '',
- tableData: [],
- selectVal: '',
- goodsNameList: [],
- warehouseList: [],
- userJurisdiction: false,
- userJurisdictionAllow: true,
- warehouseName: ''
- //获取公司id
- this.compId = localStorage.getItem('ws-pf_compId')
- //用户名
- this.accountName = localStorage.getItem('ws-pf_staffName')
- this.getWarehouseSelf()
- //获取用户权限,决策人、统计
- this.getUserJurisdiction()
- computed() {},
- created() {},
- getUserJurisdiction() {
- this.userJurisdiction = getHp('acquisitionManagement.acquisition.view')
- this.userJurisdictionAllow = getHp(
- 'acquisitionManagement.acquisition.allow'
- this.userJurisdictionAudit = getHp(
- 'acquisitionManagement.acquisition.edit'
+ getPurchasePrice,
+ selectWarehouseSelf,
+ purchasePriceAllowEdit,
+ purchasePriceLook,
+ purchasePriceDel
+ } from '@/model/houseSelfCollect/index'
+ getHp
+ } from '@/utils/getHasPermission'
+ components: {},
+ watch: {},
+ newAcquisitionDialogVisible: false,
+ visible: false,
+ checked: false,
+ accountName: '',
+ tableData: [],
+ selectVal: '',
+ goodsNameList: [],
+ warehouseList: [],
+ userJurisdiction: false,
+ userJurisdictionAllow: true,
+ warehouseName: ''
+ //获取公司id
+ this.compId = localStorage.getItem('ws-pf_compId')
+ //用户名
+ this.accountName = localStorage.getItem('ws-pf_staffName')
+ this.getWarehouseSelf()
+ //获取用户权限,决策人、统计
+ this.getUserJurisdiction()
- warehouseChange(e) {
- for (let i = 0; i < this.warehouseList.length; i++) {
- if (this.warehouseList[i].id == this.selectVal) {
- localStorage.setItem(
- 'houseSelfCollect_house',
- JSON.stringify(this.warehouseList[i])
- this.warehouseName = this.warehouseList[i].warehouseName
- this.WAREHOUSE[0].payname = this.warehouseList[i].id
+ computed() {},
+ created() {},
+ getUserJurisdiction() {
+ this.userJurisdiction = getHp('acquisitionManagement.acquisition.view')
+ this.userJurisdictionAllow = getHp(
+ 'acquisitionManagement.acquisition.allow'
+ this.userJurisdictionAudit = getHp(
+ 'acquisitionManagement.acquisition.edit'
+ warehouseChange(e) {
+ for (let i = 0; i < this.warehouseList.length; i++) {
+ if (this.warehouseList[i].id == this.selectVal) {
+ localStorage.setItem(
+ 'houseSelfCollect_house',
+ JSON.stringify(this.warehouseList[i])
+ this.warehouseName = this.warehouseList[i].warehouseName
+ this.WAREHOUSE[0].payname = this.warehouseList[i].id
- let _obj = this.warehouseList.find(item => {
- return item.id === this.selectVal
- if (_obj.allowEdit == 1) {
- this.checked = true
- this.checked = false
- this.pageSize = 10
- newAcquisition(index, row, type) {
- let _obj = {}
- let _query = {}
- switch (type) {
- case '新增':
- _obj = this.warehouseList.find(item => {
+ let _obj = this.warehouseList.find(item => {
+ return item.id === this.selectVal
+ if (_obj.allowEdit == 1) {
+ this.checked = true
+ this.checked = false
+ this.pageSize = 10
+ newAcquisition(index, row, type) {
+ let _obj = {}
+ let _query = {}
+ switch (type) {
+ case '新增':
+ _obj = this.warehouseList.find(item => {
+ _query = {
+ warehouseId: _obj.id,
+ warehouseName: _obj.warehouseName,
+ compId: this.compId,
+ type: type,
+ goodsNameList: this.goodsNameList
+ break
+ default:
+ data: JSON.stringify(row),
+ name: 'acquisitionManagementAdd',
+ query: _query
+ //获取仓库
+ getWarehouseSelf() {
+ selectWarehouseSelf({
+ compId: this.compId
- _query = {
- warehouseId: _obj.id,
- warehouseName: _obj.warehouseName,
- compId: this.compId,
- type: type,
- goodsNameList: this.goodsNameList
- break
- default:
- data: JSON.stringify(row),
- name: 'acquisitionManagementAdd',
- query: _query
- //获取仓库
- getWarehouseSelf() {
- selectWarehouseSelf({
- compId: this.compId
- .then(response => {
- this.warehouseList = response
- // if(this.userJurisdiction){
- // this.warehouseList.unshift({warehouseName:response[0].flag})
- let _wareHouse = localStorage.getItem('houseSelfCollect_house')
- if (_wareHouse) {
- _wareHouse = JSON.parse(_wareHouse)
- this.selectVal = _wareHouse.id
- this.warehouseName = _wareHouse.warehouseName
- if (_wareHouse.allowEdit == 1) {
+ .then(response => {
+ this.warehouseList = response
+ // if(this.userJurisdiction){
+ // this.warehouseList.unshift({warehouseName:response[0].flag})
+ let _wareHouse = localStorage.getItem('houseSelfCollect_house')
+ if (_wareHouse) {
+ _wareHouse = JSON.parse(_wareHouse)
+ this.selectVal = _wareHouse.id
+ this.warehouseName = _wareHouse.warehouseName
+ if (_wareHouse.allowEdit == 1) {
} else {
+ this.selectVal = this.warehouseList[0].id
+ if (this.warehouseName) {
+ this.selectVal = this.WAREHOUSE[0].payname
+ this.WAREHOUSE[0].payname = this.warehouseList[0].id
+ this.warehouseName = this.warehouseList[0].warehouseName
+ if (this.warehouseList[0].allowEdit == 1) {
- this.selectVal = this.warehouseList[0].id
- if (this.warehouseName) {
- this.selectVal = this.WAREHOUSE[0].payname
- this.WAREHOUSE[0].payname = this.warehouseList[0].id
+ // this.tableData = response.records
+ //获取列表数据
+ this.goodsNameList = []
+ getPurchasePrice({
+ warehouseId: this.selectVal,
+ for (let i = 0; i < response.records.length; i++) {
+ this.goodsNameList.push(response.records[i].goodsName)
- this.warehouseName = this.warehouseList[0].warehouseName
- if (this.warehouseList[0].allowEdit == 1) {
+ this.tableData = response.records
+ allowEdit(val) {
+ purchasePriceAllowEdit({
+ warehouseId: this.selectVal
+ let _data = localStorage.getItem('houseSelfCollect_house1')
+ _data = JSON.parse(localStorage.getItem('houseSelfCollect_house1'))
+ if (_data.allowEdit == 0) {
+ _data.allowEdit = 1
+ _data.allowEdit = 0
- // this.tableData = response.records
- //获取列表数据
- this.goodsNameList = []
- getPurchasePrice({
- warehouseId: this.selectVal,
- for (let i = 0; i < response.records.length; i++) {
- this.goodsNameList.push(response.records[i].goodsName)
- this.tableData = response.records
- allowEdit(val) {
- purchasePriceAllowEdit({
- warehouseId: this.selectVal
- let _data = localStorage.getItem('houseSelfCollect_house1')
- _data = JSON.parse(localStorage.getItem('houseSelfCollect_house1'))
- if(_data.allowEdit==0){
- _data.allowEdit = 1
- }else{
- _data.allowEdit = 0
- localStorage.setItem('houseSelfCollect_house1',JSON.stringify(_data))
+ localStorage.setItem('houseSelfCollect_house1', JSON.stringify(_data))
this.getWarehouseSelf()
- // 删除
- delRow(index, row) {
- this.$confirm('确定删除该条设置?', '提示', {
- type: 'warning'
- purchasePriceDel({
+ // 删除
+ delRow(index, row) {
+ this.$confirm('确定删除该条设置?', '提示', {
+ type: 'warning'
- message: '删除成功'
+ purchasePriceDel({
- .catch(response => {
- print(index, row) {
- // 打印价格对照表
- purchasePriceLook({
- // this.getList()
- 'pricePrintList',
- JSON.stringify(response.detailPrints)
- window.open('../../../static/print.html?name=' + row.goodsName)
- validate() {}
+ message: '删除成功'
+ .catch(response => {
+ print(index, row) {
+ // 打印价格对照表
+ purchasePriceLook({
+ // this.getList()
+ 'pricePrintList',
+ JSON.stringify(response.detailPrints)
+ window.open('../../../static/print.html?name=' + row.goodsName)
+ validate() {}
-.header {
-/deep/.el-table .cell {
+ .header {
-.paging {
- margin-top:20px
+ /deep/.el-table .cell {
+ .paging {
+ margin-top: 20px
@@ -7,7 +7,8 @@
<ws-button type="primary" @click="createCustomer(1)">创建新客户</ws-button>
<template slot="right">
- <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="可按姓名、手机号查找" clearable maxlength="500" type="input"></ws-input>
+ <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="可按姓名、手机号查找"
+ clearable maxlength="500" type="input"></ws-input>
<ws-button class="find" type="primary" @click="find()"><img width="16" height="16" style="
@@ -20,7 +21,7 @@
<div class="search-right">
<!-- <ws-button @click="getCustomer()">获取客户</ws-button> -->
<el-dialog title="客户扫码" :visible.sync="customerDialogVisible" width="320px">
- <img style="width:300px;height:300px" :src="qrcode"/>
+ <img style="width:300px;height:300px" :src="qrcode" />
<!-- <ws-button @click="createCustomer()">创建新客户</ws-button> -->
<el-dialog title="创建新客户" :visible.sync="creatNewCustomerDialogVisible" width="50%">
@@ -29,14 +30,14 @@
- <el-table :data="customertList" style="width: 100%; margin-top: 20px" ref="customertList" border height="600">
+ <el-table :data="customertList" style="width: 100%; margin-top: 20px" ref="customertList" border height="calc(100% - 115px)">
- <el-table-column prop="customerName" label="客户"></el-table-column>
+ <el-table-column prop="customerName" label="客户"></el-table-column>
<el-table-column prop="supplier" label="供应商"></el-table-column>
<el-table-column prop="customerPhone" label="手机号"></el-table-column>
<el-table-column prop="payeeName" label="收款人"></el-table-column>
@@ -50,13 +51,15 @@
<el-table-column prop="authenticationStatus" label="状态"></el-table-column>
<el-table-column prop="address" label="操作" width="300">
- <el-button size="mini" @click="createCustomer(scope.row, 2)" v-show="scope.row.authenticationStatus!='已删除'">查看</el-button>
- <el-button size="mini" @click="createCustomer(scope.row, 3)" v-show="scope.row.authenticationStatus!='已删除'" :disabled="!scope.row.isEdit">编辑</el-button>
+ <el-button size="mini" @click="createCustomer(scope.row, 2)" v-show="scope.row.authenticationStatus!='已删除'">查看
+ <el-button size="mini" @click="createCustomer(scope.row, 3)" v-show="scope.row.authenticationStatus!='已删除'"
+ :disabled="!scope.row.isEdit">编辑</el-button>
<el-button size="mini" type="danger" @click="handleDelete(scope.row, '')">删除</el-button>
- <div style="text-align: center;margin-top:20px">
+ <div style="text-align: center;">
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
:page-size="deptCircularPage.pageSize" layout="total, sizes, prev, pager, next, jumper"
:total="deptBudgetTotal">
@@ -87,7 +90,7 @@
pageSize: 10,
deptBudgetTotal: 0,
deptCircularPage: {},
- qrcode:""
+ qrcode: ""
activated() {
@@ -100,14 +103,14 @@
//获取客户
getCustomer() {
this.customerDialogVisible = true
- if(!this.qrcode||this.qrcode == ""){
+ if (!this.qrcode || this.qrcode == "") {
getQRCode({
- compId: localStorage.getItem('ws-pf_compId')
- this.qrcode = response
+ compId: localStorage.getItem('ws-pf_compId')
+ this.qrcode = response
@@ -173,11 +176,11 @@
this.customertList = response.records
- for(let i=0;i<response.records.length;i++){
- if(response.records[i].compId==localStorage.getItem('ws-pf_compId')){
+ if (response.records[i].compId == localStorage.getItem('ws-pf_compId')) {
response.records[i].isEdit = true
- response.records[i].isEdit = false
+ response.records[i].isEdit = false
this.deptBudgetTotal = response.total
@@ -194,7 +197,7 @@
.find {
width: 32px;
- margin-left:10px;
.search-left {
@@ -230,16 +233,19 @@
/deep/.el-table--enable-row-transition .el-table__body td {
text-align: center;
/deep/.base_header_layout .find.el-button--primary {
-/deep/.base_header_layout .findinput input {
-// /deep/.el-table--border{
-// height: calc(100vh - 600px) !important;
+ /deep/.base_header_layout .findinput input {
+ // /deep/.el-table--border{
+ // height: calc(100vh - 600px) !important;
@@ -1,428 +1,431 @@
<!--质检管理-->
- <BaseHeaderLayout :leftSpan="16">
- <ws-button type="primary" @click="inspectInfo(1)"
- v-hasPermission="`acquisitionManagement.acquisitionQuality.add`">添加</ws-button>
- <ws-select v-model="warehouseName" placeholder="" @change="warehouseNameChange" :value="searchType"
- style="margin: 0 10px">
- <ws-option v-for="item in warehouseList" :key="item.value" :label="item.value" :value="item.value"
- <div></div>
- <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="可按编号、客户名、车牌号查找" clearable maxlength="500" type="input">
- </ws-input>
+ <BaseHeaderLayout :leftSpan="16">
+ <ws-button type="primary" @click="inspectInfo(1)"
+ v-hasPermission="`acquisitionManagement.acquisitionQuality.add`">添加</ws-button>
+ <ws-select v-model="warehouseName" placeholder="" @change="warehouseNameChange" :value="searchType"
+ style="margin: 0 10px">
+ <ws-option v-for="item in warehouseList" :key="item.value" :label="item.value" :value="item.value"
+ <div></div>
+ <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="可按编号、客户名、车牌号查找"
+ clearable maxlength="500" type="input">
+ </ws-input>
left:-8px;
- <!-- <div style="height:calc(100vh - 600px)"> -->
- <el-table :data="inspect" style="width: 100%; margin-top: 20px" ref="inspect" border height="600">
- <el-table-column type="index" label="序号" width="50">
- <el-table-column prop="qualityNo" width="100" label="编号"></el-table-column>
- <el-table-column prop="carNumber" label="车牌号"></el-table-column>
- <el-table-column prop="boxNo" label="箱号-1">
- <el-table-column prop="boxNoOther" label="箱号-2">
- <el-table-column prop="titleNo" label="封号-1">
- <el-table-column prop="titleNoOther" label="封号-2">
- <el-table-column prop="waterContent" label="水分(%)" width="120">
- <span class="water-left">{{scope.row.waterContent}}</span>
- <span class="water-line">|</span>
- <span class="water-right">{{scope.row.reWaterContent ? scope.row.reWaterContent : '未复检' }}</span>
- <el-table-column prop="buckleMiscellaneous" label="扣杂" width="120">
- <div v-if="scope.row.paramType == 1">
- <span class="water-left">{{scope.row.buckleMiscellaneous}} </span>
- class="water-right">{{scope.row.reBuckleMiscellaneous ? scope.row.reBuckleMiscellaneous : '未复检'}}</span>
- <el-table-column prop="type" label="类型"></el-table-column>
- <el-table-column prop="tidalGrainPrice" label="单价(元/公斤)" width="120px">
- <span v-if="scope.row.type == '潮粮'">{{ scope.row.tidalGrainPrice }}</span>
- <span v-else>{{ scope.row.dryGrainPrice }}</span>
- <el-table-column prop="binNumber" label="仓位号"></el-table-column>
- <el-table-column prop="storageTagNo" label="囤位号"></el-table-column>
- <el-table-column prop="qualityInspector" label="质检员" width="120px">
- <span>{{scope.row.qualityInspector}}</span>
- v-if="scope.row.reInspector && scope.row.qualityInspector != scope.row.reInspector">,{{scope.row.reInspector}}</span>
- <el-table-column prop="updateDate" label="质检时间" width="90px"></el-table-column>
- <span v-if='scope.row.confirm=="1"'>
- 已确认
- <span v-else>
- {{scope.row.status}}
- <el-table-column width="410" label="操作">
- <el-button @click="inspectInfo(scope.row, 2)"
- v-hasPermission="`acquisitionManagement.acquisitionQuality.view`">查看</el-button>
- <el-button @click="inspectInfo(scope.row, 3)"
- v-if="scope.row.status=='已初检'&& scope.row.confirm!='1'"
- v-hasPermission="`acquisitionManagement.acquisitionQuality.initial`">初检</el-button>
- <div v-show="scope.row.confirm !='1' && scope.row.status == '已复检'" style="display: inline-block;">
- <el-button @click="inspectInfo(scope.row, 5)"
- v-hasPermission="`acquisitionManagement.acquisitionQuality.con`">确认</el-button>
- <el-button @click="inspectInfo(scope.row, 4)" v-if="scope.row.confirm !='1'"
- v-hasPermission="`acquisitionManagement.acquisitionQuality.again`">复检</el-button>
- <div style="display: inline-block;"
- v-if="scope.row.weighingManagement&&scope.row.weighingManagement.status=='已质检'">
- <el-button @click="del(scope.row)" type="danger"
- v-hasPermission="`acquisitionManagement.acquisitionQuality.delete`">删除</el-button>
- <el-button @click="print(scope.row)"
- v-hasPermission="`acquisitionManagement.acquisitionQuality.print`">打印</el-button>
- <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食质检单">
- <!-- <inspectInfoPrint :printData="printData"></inspectInfoPrint> -->
- <inspectInfoPrint :printData="printData" ref="saveImg"></inspectInfoPrint>
- <div style="text-align:center">
- <el-button type="primary" @click="closePrint">关闭</el-button>
- <el-button type="primary" @click="printSmall">打印小票</el-button>
- <el-button type="primary" @click="printBig">打印单据</el-button>
- </el-dialog>
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
- :current-page="currentPage" :page-size="deptCircularPage.pageSize"
- layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
- <!-- </div> -->
+ <!-- <div style="height:calc(100vh - 600px)"> -->
+ <el-table :data="inspect" style="width: 100%; margin-top: 20px" ref="inspect" border height="calc(100% - 130px)">
+ <el-table-column type="index" label="序号" width="50">
+ <el-table-column prop="qualityNo" width="100" label="编号"></el-table-column>
+ <el-table-column prop="carNumber" label="车牌号"></el-table-column>
+ <el-table-column prop="boxNo" label="箱号-1">
+ <el-table-column prop="boxNoOther" label="箱号-2">
+ <el-table-column prop="titleNo" label="封号-1">
+ <el-table-column prop="titleNoOther" label="封号-2">
+ <el-table-column prop="waterContent" label="水分(%)" width="120">
+ <span class="water-left">{{scope.row.waterContent}}</span>
+ <span class="water-line">|</span>
+ <span class="water-right">{{scope.row.reWaterContent ? scope.row.reWaterContent : '未复检' }}</span>
+ <el-table-column prop="buckleMiscellaneous" label="扣杂" width="120">
+ <div v-if="scope.row.paramType == 1">
+ <span class="water-left">{{scope.row.buckleMiscellaneous}} </span>
+ <span
+ class="water-right">{{scope.row.reBuckleMiscellaneous ? scope.row.reBuckleMiscellaneous : '未复检'}}</span>
+ <el-table-column prop="type" label="类型"></el-table-column>
+ <el-table-column prop="tidalGrainPrice" label="单价(元/公斤)" width="120px">
+ <span v-if="scope.row.type == '潮粮'">{{ scope.row.tidalGrainPrice }}</span>
+ <span v-else>{{ scope.row.dryGrainPrice }}</span>
+ <el-table-column prop="binNumber" label="仓位号"></el-table-column>
+ <el-table-column prop="storageTagNo" label="囤位号"></el-table-column>
+ <el-table-column prop="qualityInspector" label="质检员" width="120px">
+ <span>{{scope.row.qualityInspector}}</span>
+ v-if="scope.row.reInspector && scope.row.qualityInspector != scope.row.reInspector">,{{scope.row.reInspector}}</span>
+ <el-table-column prop="updateDate" label="质检时间" width="90px"></el-table-column>
+ <span v-if='scope.row.confirm=="1"'>
+ 已确认
+ <span v-else>
+ {{scope.row.status}}
+ <el-table-column width="410" label="操作">
+ <el-button @click="inspectInfo(scope.row, 2)"
+ v-hasPermission="`acquisitionManagement.acquisitionQuality.view`">查看</el-button>
+ <el-button @click="inspectInfo(scope.row, 3)" v-if="scope.row.status=='已初检'&& scope.row.confirm!='1'"
+ v-hasPermission="`acquisitionManagement.acquisitionQuality.initial`">初检</el-button>
+ <div v-show="scope.row.confirm !='1' && scope.row.status == '已复检'" style="display: inline-block;">
+ <el-button @click="inspectInfo(scope.row, 5)"
+ v-hasPermission="`acquisitionManagement.acquisitionQuality.con`">确认</el-button>
+ <el-button @click="inspectInfo(scope.row, 4)" v-if="scope.row.confirm !='1'"
+ v-hasPermission="`acquisitionManagement.acquisitionQuality.again`">复检</el-button>
+ <div style="display: inline-block;"
+ v-if="scope.row.weighingManagement&&scope.row.weighingManagement.status=='已质检'">
+ <el-button @click="del(scope.row)" type="danger"
+ v-hasPermission="`acquisitionManagement.acquisitionQuality.delete`">删除</el-button>
+ <el-button @click="print(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionQuality.print`">打印
+ <el-dialog width="70%" class="table-content" center :visible.sync="isShowPrint" title="粮食质检单">
+ <!-- <inspectInfoPrint :printData="printData"></inspectInfoPrint> -->
+ <inspectInfoPrint :printData="printData" ref="saveImg"></inspectInfoPrint>
+ <div style="text-align:center">
+ <el-button type="primary" @click="closePrint">关闭</el-button>
+ <el-button type="primary" @click="printSmall">打印小票</el-button>
+ <el-button type="primary" @click="printBig">打印单据</el-button>
+ </el-dialog>
+ <div style="text-align: center;margin-top:20px">
+ <!-- </div> -->
- getinspectList,
- getinspectDelete,
- getinspectLook,
- getQRcode
- } from '@/model/houseSelfCollect/index'
- import inspectInfoPrint from './component/inspectInfoPrint.vue'
- inspectInfoPrint
- //分页
+ getinspectList,
+ getinspectDelete,
+ getinspectLook,
+ getQRcode
+ import inspectInfoPrint from './component/inspectInfoPrint.vue'
+ inspectInfoPrint
+ //分页
- taskTypeList: [],
- searchType: 0,
- warehouseName: '',
- inspect: [],
- warehouseList1: [],
- cangid: '', //仓库id
- warehouseCount: '',
- warehouseNo: '',
- isShowPrint: false,
- printData: {},
- deductWeight: '', //扣重比
- saleLimit: '',
- allowEdit:'0'
- this.selectWarehouse()
- let _WarehouseName = localStorage.getItem('houseSelfCollect_house1')
- _WarehouseName = JSON.parse(_WarehouseName)
- if(_WarehouseName){
- this.warehouseNameChange(_WarehouseName.value)
- printSmall() {
- window.open('../../../static/inspection.html?type=1&dataList=' + JSON.stringify(this.printData))
- printBig() {
- window.open('../../../static/inspection.html?type=2&dataList=' + JSON.stringify(this.printData))
- closePrint() {
- this.isShowPrint = false
- path: 'inspectionManagement'
- inspectInfo(row, index) {
- if (this.warehouseName == this.warehouseList[i].value) {
- // console.log(this.warehouseList[i])
- this.cangid = this.warehouseList[i].warehouseId
- // console.log(this.cangid)
- //添加,编辑,查看
- path: 'inspectInfo',
- type: index,
- cangid: this.cangid,
- warehouseName: this.warehouseName,
- count: this.warehouseCount,
- warehouseNo: this.warehouseNo,
- allowEdit:this.allowEdit,
- status:row.status
- warehouseNameChange(e) {
- if (this.warehouseList[i].value == e) {
- this.warehouseName = this.warehouseList[i].value
- this.warehouseCount = this.warehouseList[i].count
- this.warehouseNo = this.warehouseList[i].No
- this.allowEdit = this.warehouseList[i].allowEdit
- this.WAREHOUSE[1].payname = this.warehouseList[i].value
- this.warehouseList[i].compId = localStorage.getItem('ws-pf_compId')
- localStorage.setItem('houseSelfCollect_house1', JSON.stringify(this.warehouseList[i]))
- del(row) {
- this.$confirm('确定删除质检信息?', '提示', {
- getinspectDelete({
- selectWarehouse() {
- this.warehouseList1 = response
- this.warehouseList = []
- let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
- for (let i = 0; i < response.length; i++) {
- if(_wareHouse && response[i].warehouseName==_wareHouse.value){
- this.warehouseCount = response[i].count
- this.allowEdit = response[i].allowEdit
- this.cangid = _wareHouse.warehouseId
- this.warehouseName = response[i].warehouseName
- this.warehouseNo = response[i].commonWarehouseNo
- this.warehouseList.push({
- value: response[i].warehouseName,
- warehouseId: response[i].id,
- count: response[i].count,
- No: response[i].commonWarehouseNo,
- allowEdit:response[i].allowEdit,
- compId:localStorage.getItem('ws-pf_compId')
- // if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
- // this.cangid = _wareHouse.warehouseId
- // this.warehouseName = response[i].warehouseName
- // this.warehouseNo = response[i].commonWarehouseNo
- // this.warehouseCount = response[i].count
- // this.allowEdit = response[i].allowEdit
- if (!_wareHouse) {
- if (this.cangid && this.cangid == response[i].id) {
- if (this.warehouseList.length > 0 && !this.cangid) {
- this.warehouseName = this.warehouseList[0].value
- this.warehouseCount = this.warehouseList[0].count
- this.warehouseNo = this.warehouseList[0].No
- this.cangid = this.warehouseList[0].warehouseId
- this.allowEdit = this.warehouseList[0].allowEdit
- this.WAREHOUSE[1].payname = this.warehouseList[0].value
- getinspectList({
- searchKeyWord: (this.searchKeyWord).toUpperCase(),
- managementType: 1
- this.inspect = response.records
- // this.$forceUpdate();
- print(row) {
- getinspectLook({
- this.printData = response
- this.isShowPrint = true
- if (response.compName == '黑龙江秋收有限公司') {
- this.printData.compName = '黑龙江中天昊元贸易有限公司'
+ taskTypeList: [],
+ searchType: 0,
+ warehouseName: '',
+ inspect: [],
+ warehouseList1: [],
+ cangid: '', //仓库id
+ warehouseCount: '',
+ warehouseNo: '',
+ isShowPrint: false,
+ printData: {},
+ deductWeight: '', //扣重比
+ saleLimit: '',
+ allowEdit: '0'
+ this.selectWarehouse()
+ let _WarehouseName = localStorage.getItem('houseSelfCollect_house1')
+ _WarehouseName = JSON.parse(_WarehouseName)
+ if (_WarehouseName) {
+ this.warehouseNameChange(_WarehouseName.value)
+ printSmall() {
+ window.open('../../../static/inspection.html?type=1&dataList=' + JSON.stringify(this.printData))
+ printBig() {
+ window.open('../../../static/inspection.html?type=2&dataList=' + JSON.stringify(this.printData))
+ closePrint() {
+ this.isShowPrint = false
+ path: 'inspectionManagement'
+ inspectInfo(row, index) {
+ if (this.warehouseName == this.warehouseList[i].value) {
+ // console.log(this.warehouseList[i])
+ this.cangid = this.warehouseList[i].warehouseId
+ // console.log(this.cangid)
+ //添加,编辑,查看
+ path: 'inspectInfo',
+ type: index,
+ cangid: this.cangid,
+ warehouseName: this.warehouseName,
+ count: this.warehouseCount,
+ warehouseNo: this.warehouseNo,
+ allowEdit: this.allowEdit,
+ warehouseNameChange(e) {
+ if (this.warehouseList[i].value == e) {
+ this.warehouseName = this.warehouseList[i].value
+ this.warehouseCount = this.warehouseList[i].count
+ this.warehouseNo = this.warehouseList[i].No
+ this.allowEdit = this.warehouseList[i].allowEdit
+ this.WAREHOUSE[1].payname = this.warehouseList[i].value
+ this.warehouseList[i].compId = localStorage.getItem('ws-pf_compId')
+ localStorage.setItem('houseSelfCollect_house1', JSON.stringify(this.warehouseList[i]))
+ del(row) {
+ this.$confirm('确定删除质检信息?', '提示', {
+ getinspectDelete({
+ selectWarehouse() {
+ this.warehouseList1 = response
+ this.warehouseList = []
+ let _wareHouse = localStorage.getItem('houseSelfCollect_house1')
+ for (let i = 0; i < response.length; i++) {
+ if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
+ this.warehouseCount = response[i].count
+ this.allowEdit = response[i].allowEdit
+ this.cangid = _wareHouse.warehouseId
+ this.warehouseName = response[i].warehouseName
+ this.warehouseNo = response[i].commonWarehouseNo
+ this.warehouseList.push({
+ value: response[i].warehouseName,
+ warehouseId: response[i].id,
+ count: response[i].count,
+ No: response[i].commonWarehouseNo,
+ allowEdit: response[i].allowEdit,
+ // if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
+ // this.cangid = _wareHouse.warehouseId
+ // this.warehouseName = response[i].warehouseName
+ // this.warehouseNo = response[i].commonWarehouseNo
+ // this.warehouseCount = response[i].count
+ // this.allowEdit = response[i].allowEdit
+ if (!_wareHouse) {
+ if (this.cangid && this.cangid == response[i].id) {
+ if (this.warehouseList.length > 0 && !this.cangid) {
+ this.warehouseName = this.warehouseList[0].value
+ this.warehouseCount = this.warehouseList[0].count
+ this.warehouseNo = this.warehouseList[0].No
+ this.cangid = this.warehouseList[0].warehouseId
+ this.allowEdit = this.warehouseList[0].allowEdit
+ this.WAREHOUSE[1].payname = this.warehouseList[0].value
+ getinspectList({
+ searchKeyWord: (this.searchKeyWord).toUpperCase(),
+ managementType: 1
+ this.inspect = response.records
+ // this.$forceUpdate();
+ print(row) {
+ getinspectLook({
+ this.printData = response
+ this.isShowPrint = true
+ if (response.compName == '黑龙江秋收有限公司') {
+ this.printData.compName = '黑龙江中天昊元贸易有限公司'
- /deep/.el-dialog__header {
- text-align: center !important;
- padding: 10px 0 !important;
- height: auto !important;
+ /deep/.el-dialog__header {
+ text-align: center !important;
+ padding: 10px 0 !important;
+ height: auto !important;
+ /deep/.el-dialog__title {
+ font-size: 24px !important;
+ .title {
+ font-size: 20px;
+ font-weight: 600;
+ margin: 20px 0 0 20px;
+ .tit {
+ margin: 20px;
- /deep/.el-dialog__title {
- font-size: 24px !important;
+ .ws-info-table {
+ border: none;
- .title {
- font-size: 20px;
- font-weight: 600;
- margin: 20px 0 0 20px;
+ .ws-info-table .el-form-item {
- .tit {
- margin: 20px;
+ /deep/.ws-info-table .el-form-item .el-form-item__label {
+ background: #ffffff;
- .ws-info-table {
- border: none;
+ /deep/.ws-info-table .el-form-item .el-form-item__content {
- .ws-info-table .el-form-item {
+ .el-table .el-table__body .cell {
- /deep/.ws-info-table .el-form-item .el-form-item__label {
- background: #ffffff;
+ /deep/.el-table--enable-row-transition .el-table__body td {
- /deep/.ws-info-table .el-form-item .el-form-item__content {
+ /deep/.el-dialog__body {
+ padding: 20px !important;
- .el-table .el-table__body .cell {
+ .water-left,
+ .water-right {
+ width: 45%;
- /deep/.el-table--enable-row-transition .el-table__body td {
- /deep/.el-dialog__body {
- padding: 20px !important;
- .water-left,
- .water-right {
- width: 45%;
- /deep/.base_header_layout .find.el-button--primary {
@@ -36,8 +36,8 @@
<ws-button :type="invoicing === 0 ? 'primary' : ''" @click="screen(0)">未开票</ws-button>
- <el-select class="warehouse_select" v-model="warehouseNameKey" placeholder="请选择仓库" @change="warehouseChange" filterable clearable
+ <el-select class="warehouse_select" v-model="warehouseNameKey" placeholder="请选择仓库" @change="warehouseChange"
+ filterable clearable style="margin: 0 10px">
<el-option v-for="item in warehouseList" :key="item.id" :label="item.warehouseName" :value="item.id">
</el-option>
@@ -46,7 +46,8 @@
end-placeholder="结算时间止">
</el-date-picker>
<div></div>
</ws-input>
<!-- v-hasPermission="'procurement.sparepart.directShip'" -->
<ws-button class="find" type="primary" @click="find()">
@@ -80,7 +81,7 @@
<template slot="right"> </template>
- <el-table :data="paymentList" ref="table" style="width: 100%; margin-top: 20px" border height="600"
+ <el-table :data="paymentList" ref="table" style="width: 100%; margin-top: 20px" border height="calc(100% - 170px)"
@row-click="handleRowClick" @selection-change="handleSelectionChange" :summary-method="getSummaries" show-summary>
<el-table-column :selectable="selectInit" type="selection" width="30"></el-table-column>
<el-table-column type="index" label="序号" width="50">
@@ -98,7 +99,8 @@
<el-table-column class="table_td" prop="carNo" label="车牌号"></el-table-column>
- <el-table-column class="table_td" v-if='warehouseNameKey=="鲅鱼圈金信库"' width='140' prop="actualWeighingFee" label="卸车过磅费(元)"></el-table-column>
+ <el-table-column class="table_td" v-if='warehouseNameKey=="鲅鱼圈金信库"' width='140' prop="actualWeighingFee"
+ label="卸车过磅费(元)"></el-table-column>
<el-table-column class="table_td" prop="goodsName" width="70" label="货名"></el-table-column>
<el-table-column class="table_td" prop="type" width="60" label="类型"></el-table-column>
<el-table-column class="table_td" prop="tidalGrainPrice" width="140" label="净重单价(元/公斤)"></el-table-column>
@@ -219,8 +221,8 @@
:on-success="handleAvatarSuccess1" :on-remove="_handleRemove">
<img @mouseout='imgshow' @mouseover="deleteshow=true" v-if="payImg" :src="payImg" class="avatar" />
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
</el-upload> -->
<div style="text-align: center; margin: 10px auto">
<el-button @click="showPayImgs = false" type="primary">关闭</el-button>
@@ -490,20 +492,20 @@
this.printType = 1
this.isShowPrintType = true
- agreementPrint(){
- var arr = []
- for (let i = 0; i < this.modification.length; i++) {
- if(this.modification[i].pictureAddress){
- arr.push({
- fileUrl: this.modification[i].pictureAddress,
- renameFileName: '结算单' + i + '.png',
- if(arr.length>0){
- this.filesToRar(arr, '结算单文件')
+ agreementPrint() {
+ var arr = []
+ for (let i = 0; i < this.modification.length; i++) {
+ if (this.modification[i].pictureAddress) {
+ arr.push({
+ fileUrl: this.modification[i].pictureAddress,
+ renameFileName: '结算单' + i + '.png',
+ if (arr.length > 0) {
+ this.filesToRar(arr, '结算单文件')
async exportlist() {
console.log('导出数据', this.modification)
@@ -648,61 +650,61 @@
data
} = param
const sums = []
- if(this.modification.length>0){
+ if (this.modification.length > 0) {
columns.forEach((column, index) => {
console.log(column, index)
- if (index === 0) {
- sums[index] = '合计'
- } else if (
- index === 10 ||
- index === 11 || index === 15 || index === 16
+ if (index === 0) {
+ sums[index] = '合计'
+ } else if (
+ index === 10 ||
+ index === 11 || index === 15 || index === 16
- const values = this.modification.map((item) => Number(item[column.property]))
- if (!values.every((value) => isNaN(value))) {
- sums[index] = values.reduce((prev, curr) => {
- const value = Number(curr)
- if (!isNaN(value)) {
- return prev + curr
- return prev
- }, 0)
- sums[index] = sums[index].toFixed(3)
+ const values = this.modification.map((item) => Number(item[column.property]))
+ if (!values.every((value) => isNaN(value))) {
+ sums[index] = values.reduce((prev, curr) => {
+ const value = Number(curr)
+ if (!isNaN(value)) {
+ return prev + curr
+ return prev
+ }, 0)
+ sums[index] = sums[index].toFixed(3)
+ sums[index] = '元'
- sums[index] = '元'
+ sums[index] = '--'
- sums[index] = '--'
- index === 11 || index === 16 || index === 17
- const values = data.map((item) => Number(item[column.property]))
+ index === 11 || index === 16 || index === 17
+ const values = data.map((item) => Number(item[column.property]))
// sums[6]=sums[6].toFixed(2)
// sums[sums.length-2]=sums[sums.length-2].toFixed(2)
return sums
@@ -923,7 +925,7 @@
if (_wareHouse && _wareHouse.value == this.warehouseList[index].warehouseName) {
this.warehouseName = this.warehouseList[index].warehouseName
this.warehouseNameKey = this.warehouseList[index].warehouseName
this.warehouseNameKey = this.warehouseList[0].id
if (this.warehouseName) {
@@ -935,7 +937,7 @@
//上传付款截图
@@ -1598,14 +1600,16 @@
.el-icon-delete {
font-size: 20px;
- margin:0;
+ margin: 0;
@@ -24,7 +24,8 @@
end-placeholder="截止时间">
- <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="可按编号、客户名、车牌号、货名查找" clearable maxlength="500" type="input">
+ <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="可按编号、客户名、车牌号、货名查找"
@@ -34,7 +35,7 @@
- <el-table :data="weighingList" style="width: 100%; margin-top: 20px" ref="weighingList" border height="600"
+ <el-table :data="weighingList" style="width: 100%; margin-top: 20px" ref="weighingList" border height="calc(100% - 130px)"
@row-click="handleRowClick" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column>
@@ -363,9 +364,9 @@
index1++;
- response.compName = '黑龙江中天昊元贸易有限公司'
+ response.compName = '黑龙江中天昊元贸易有限公司'
this.jjSelectPrintList.push(response)
if (index1 == this.modification.length) {
this.printBig(1, this.radio)
@@ -389,15 +390,15 @@
- // let printString = localStorage.getItem('ws-pf_compId') + "," + row.qualityNo + "," + this.cangid
+ // let printString = localStorage.getItem('ws-pf_compId') + "," + row.qualityNo + "," + this.cangid
// getQRcode({printString}).toPromise()
- // .then((res) => {//二维码
- this.dialogData = response
- // this.printData.qrCodeUrl = res
- // })
+ // .then((res) => {//二维码
+ this.dialogData = response
+ // this.printData.qrCodeUrl = res
+ // })
if (response.compName == '黑龙江秋收有限公司') {
- this.dialogData.compName = '黑龙江中天昊元贸易有限公司'
+ this.dialogData.compName = '黑龙江中天昊元贸易有限公司'
.catch((response) => {
@@ -425,7 +426,8 @@
isConfirmQuality(val) {
- if (val.qualityInspectionManagement.confirm == '1'&&val.qualityInspectionManagement.warehouseName=='哈尔滨依兰库') return false;
+ if (val.qualityInspectionManagement.confirm == '1' && val.qualityInspectionManagement.warehouseName == '哈尔滨依兰库')
+ return false;
return true
weightCheck(row, num) {
@@ -449,7 +451,7 @@
boxNoOther: row.qualityInspectionManagement.boxNoOther,
titleNo: row.qualityInspectionManagement.titleNo,
titleNoOther: row.qualityInspectionManagement.titleNoOther,
- carModel:row.qualityInspectionManagement.carModel,
+ carModel: row.qualityInspectionManagement.carModel,
goodsName: row.goodsName,
grossWeight: row.grossWeight,
tare: row.tare,
@@ -478,11 +480,10 @@
datechange() {
- if(this.value2){
- this.startDate = this.value2[0]
- this.endDate = this.value2[1]
- else{
+ this.startDate = this.value2[0]
+ this.endDate = this.value2[1]
this.startDate = ''
this.endDate = ''
@@ -517,7 +518,7 @@
monitorUrl2: response[i].monitorUrl2,
id: response[i].id,
warehouseNo: response[i].commonWarehouseNo,
- compId:response[i].compId
+ compId: response[i].compId
if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
this.cangid = _wareHouse.warehouseId
@@ -764,13 +765,15 @@
.show-excel {
opacity: 0;
@@ -3,226 +3,93 @@
- <ws-button
- :type="searchType == 3 ? 'primary' : ''"
- @click="handlestatus(3)"
- >待收款</ws-button>
- :type="searchType == 4 ? 'primary' : ''"
- @click="handlestatus(4)"
- >已收款</ws-button>
- :type="searchType == '' ? 'primary' : ''"
- @click="handlestatus('')"
- >全部</ws-button>
+ <ws-button :type="searchType == 3 ? 'primary' : ''" @click="handlestatus(3)">待收款</ws-button>
+ <ws-button :type="searchType == 4 ? 'primary' : ''" @click="handlestatus(4)">已收款</ws-button>
+ <ws-button :type="searchType == '' ? 'primary' : ''" @click="handlestatus('')">全部</ws-button>
<ws-button type="primary" @click="adopt" v-hasPermission=" `outbound.collectionOut.view`">备注</ws-button>
<ws-button type="primary" @click="collect" v-hasPermission=" `outbound.collectionOut.new`">收款</ws-button>
- <el-col
- style="text-align: right; line-height: 60px; padding-right: 10px"
- <div class="el-input el-input--small el-input--suffix">
- v-model="contractNo"
- placeholder="请选择合同"
- filterable
- @change="contractchange"
- v-if="item.listStatus"
- v-for="item in options"
- :key="item.constKey"
- :label="item.contractNo + '(' + item.listStatus + ')'"
- :value="item.contractNo"
- v-if="!item.listStatus"
- :label="item.contractNo"
- </el-select>
+ <el-col style="text-align: right; line-height: 60px; padding-right: 10px">
+ <div class="el-input el-input--small el-input--suffix">
+ <el-select v-model="contractNo" placeholder="请选择合同" clearable filterable @change="contractchange"
+ maxlength="500" type="input" class="findValue">
+ <el-option v-if="item.listStatus" v-for="item in options" :key="item.constKey"
+ :label="item.contractNo + '(' + item.listStatus + ')'" :value="item.contractNo" />
+ <el-option v-if="!item.listStatus" v-for="item in options" :key="item.constKey" :label="item.contractNo"
+ :value="item.contractNo" />
+ </el-select>
</el-col>
- :data="collectList"
- style="width: 100%; margin-top: 20px"
- ref="collectList"
- border
- height="780"
- @selection-change="handleSelectionChange"
- :selectable="selectInit"
- type="selection"
- width="55"
- ></el-table-column>
+ <el-table :data="collectList" style="width: 100%; margin-top: 20px" ref="collectList" border height="calc(100% - 110px)"
+ @selection-change="handleSelectionChange">
+ <el-table-column :selectable="selectInit" type="selection" width="55"></el-table-column>
- prop="carNo"
- label="车牌号"
- prop="goodsName"
- label="货名"
- prop="grossWeight"
- label="毛重(公斤)"
- prop="tare"
- label="皮重(公斤)"
- prop="netWeight"
- label="净重(公斤)"
- prop="contractPrice"
- label="合同单价(元/公斤)"
- width="150"
- prop="calculationCollectable"
- label="计算应收(元)"
- width='200'
- prop="actualCollectionment"
- label="实际应收(元)"
- v-model="scope.row.actualCollectionment"
- {{ scope.row.actualCollectionment }}
+ <el-table-column class="table_td" prop="carNo" label="车牌号"></el-table-column>
+ <el-table-column class="table_td" prop="goodsName" label="货名"></el-table-column>
+ <el-table-column class="table_td" prop="grossWeight" label="毛重(公斤)"></el-table-column>
+ <el-table-column class="table_td" prop="tare" label="皮重(公斤)"></el-table-column>
+ <el-table-column class="table_td" prop="netWeight" label="净重(公斤)"></el-table-column>
+ <el-table-column class="table_td" prop="contractPrice" label="合同单价(元/公斤)" width="150"></el-table-column>
+ <el-table-column width='150' class="table_td" prop="calculationCollectable" label="计算应收(元)"></el-table-column>
+ <el-table-column class="table_td" width='200' prop="actualCollectionment" label="实际应收(元)">
+ <el-input v-model="scope.row.actualCollectionment" v-if="scope.row.identification == 'true'"></el-input>
+ {{ scope.row.actualCollectionment }}
- </template></el-table-column>
- prop="amountEdCollectionable"
- label="已收款(元)"
- <div @click="cellClick(scope.row)">{{scope.row.amountEdCollectionable}}</div>
+ <el-table-column class="table_td" prop="amountEdCollectionable" label="已收款(元)">
+ <div @click="cellClick(scope.row)">{{scope.row.amountEdCollectionable}}</div>
- prop="collectionDate"
- width="90"
- label="收款时间"
- prop="status"
- label="状态"
- prop="collectionEdPayable"
- label="操作"
- width="200"
- ><template scope="scope">
- <el-button @click="collectment(2,scope.row)" v-hasPermission="`outbound.collectionOut.weight`">查看</el-button>
+ <el-table-column class="table_td" prop="collectionDate" width="90" label="收款时间"></el-table-column>
+ <el-table-column class="table_td" prop="status" label="状态"></el-table-column>
+ <el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="200"><template scope="scope">
+ <el-button @click="collectment(2,scope.row)" v-hasPermission="`outbound.collectionOut.weight`">查看</el-button>
<el-dialog :visible.sync="isShowImgList" title="收款截图">
- <div v-for="(item,index) in imgList" :key="index" class="imgList-style">
- <img :src="item" alt="" class="img">
+ <div v-for="(item,index) in imgList" :key="index" class="imgList-style">
+ <img :src="item" alt="" class="img">
<!-- 收款 -->
- title="收款"
- :visible.sync="collectForm"
+ <el-dialog width="25%" title="收款" :visible.sync="collectForm" :append-to-body="true">
<el-form :model="form">
<el-form-item label="未收金额(元)" :label-width="formLabelWidth">
- v-model="allmoney1"
- autocomplete="off"
- class="deal"
+ <el-input v-model="allmoney1" autocomplete="off" class="deal"></el-input>
</el-form-item>
<el-form-item label="本次收款金额(元)" :label-width="formLabelWidth">
- v-model="collectmoney"
- placeholder="请输入本次收款金额"
+ <el-input v-model="collectmoney" autocomplete="off" placeholder="请输入本次收款金额" class="deal"></el-input>
- <el-form-item
- label="收款日期"
- :label-width="formLabelWidth"
- <ws-date-picker
- v-model="collectionDate"
- type="date"
- placeholder="请选择收款日期"
- value-format="yyyy-MM-dd"
+ <el-form-item label="收款日期" prop="collectionDate" :label-width="formLabelWidth" class="deal">
+ <ws-date-picker v-model="collectionDate" type="date" placeholder="请选择收款日期" value-format="yyyy-MM-dd"
+ class="deal" />
<el-form-item label="上传收款截图" :label-width="formLabelWidth">
- <el-upload
- action="https://www.zthymaoyi.com/upload/admin"
- list-type="picture-card"
- :on-success="handlePictureCardPreview1"
- :on-remove="handleRemove"
- class="photo2"
+ <el-upload action="https://www.zthymaoyi.com/upload/admin" list-type="picture-card"
+ :on-success="handlePictureCardPreview1" :on-remove="handleRemove" class="photo2">
<i class="el-icon-plus"></i>
</el-upload>
<el-dialog :visible.sync="dialogVisible">
@@ -236,20 +103,10 @@
<!--备注-->
- title="备注"
- :visible.sync="collectForm1"
+ <el-dialog width="25%" title="备注" :visible.sync="collectForm1" :append-to-body="true">
<div class="beizhu">
- v-model="remarks"
- placeholder="备注信息,不超过1000字"
+ <el-input v-model="remarks" autocomplete="off" placeholder="备注信息,不超过1000字" class="deal"></el-input>
</el-form>
@@ -259,390 +116,403 @@
<!-- <houseSelfCollectPrint v-show="false"></houseSelfCollectPrint> -->
<div style="text-align: center">
- getcollection,
- editcollect,
- remarksAdd,
- moneyCollection,
- contractList
-} from '@/model/outboundManagement/index'
- imgList:[],
- isShowImgList:false,
- allmoney1:0,
- warehouseList: [
+ getcollection,
+ editcollect,
+ remarksAdd,
+ moneyCollection,
+ contractList
+ } from '@/model/outboundManagement/index'
+ imgList: [],
+ isShowImgList: false,
+ allmoney1: 0,
+ warehouseList: [{
collectionEdPayable: '快收款',
+ }, ],
+ options: [],
+ contractNoList: [],
+ contractNo: '全部合同',
+ dialogVisible: false,
+ form: {},
+ collectForm: false,
+ collectForm1: false,
+ managementType: 3,
+ remarks: '',
+ money: 0,
+ // id:'',
+ collectmoney: 0,
+ paymentManagementList: [],
+ collectionManagement: {
- options:[],
- contractNoList:[],
- contractNo: '全部合同',
- dialogVisible: false,
- form: {},
- collectForm: false,
- collectForm1: false,
- managementType : 3,
- remarks:'',
- money: 0,
- // id:'',
- collectmoney: 0,
- paymentManagementList:[],
- collectionManagement:{
- collectList:[],
- collectionDate: '',
- collectionScreenshot: '',
- amountEdCollectionable:'',
- actualCollectionment:'',
- // collectDate: '',
- calculationCollectable:'',
- searchType: '',
- searchTypeText: '',
- formLabelWidth: '120px',
- value1: '', //收款日期
- modification: [],
- cellClick(row){
- this.imgList = row.collectionScreenshot.split('$')
- this.isShowImgList = true
- // console.log(val)
- // console.log(val2)
- // console.log(val3)
- // console.log(event)
+ collectList: [],
+ collectionDate: '',
+ collectionScreenshot: '',
+ amountEdCollectionable: '',
+ actualCollectionment: '',
+ // collectDate: '',
+ calculationCollectable: '',
+ searchType: '',
+ searchTypeText: '',
+ formLabelWidth: '120px',
+ value1: '', //收款日期
+ modification: [],
- contractchange(e) {
- this.contractNo = e
- //修改实际应收
- row.actualCollectionment < 0 ||
- row.actualCollectionment > 1000000 ||
- (String(row.actualCollectionment).indexOf('.') != -1 &&
- String(row.actualCollectionment).length -
+ cellClick(row) {
+ this.imgList = row.collectionScreenshot.split('$')
+ this.isShowImgList = true
+ // console.log(val)
+ // console.log(val2)
+ // console.log(val3)
+ // console.log(event)
+ contractchange(e) {
+ this.contractNo = e
+ //修改实际应收
+ row.actualCollectionment < 0 ||
+ row.actualCollectionment > 1000000 ||
+ (String(row.actualCollectionment).indexOf('.') != -1 &&
+ String(row.actualCollectionment).length -
(String(row.actualCollectionment).indexOf('.') + 1) >
- message: '实际应收输入错误',
- if (!row.actualCollectionment) {
- message: '实际应收不能为空',
- if (row.actualCollectionment < row.amountEdCollectionable) {
- message: '实际应收不能小于已收款',
- this.$confirm(`确定要修改实际应收?`, {
- editcollect({
- actualCollectionment: row.actualCollectionment,
- amountNotCollectable:row.actualCollectionment-row.amountEdCollectionable,
+ message: '实际应收输入错误',
+ if (!row.actualCollectionment) {
+ message: '实际应收不能为空',
+ if (row.actualCollectionment < row.amountEdCollectionable) {
+ message: '实际应收不能小于已收款',
+ this.$confirm(`确定要修改实际应收?`, {
+ editcollect({
+ actualCollectionment: row.actualCollectionment,
+ amountNotCollectable: row.actualCollectionment - row.amountEdCollectionable,
+ handlestatus(status) {
+ this.searchType = status
+ // ,relationId :row.relationId
+ collectment(index, row) {
+ path: 'collectionment',
+ relationId: row.relationId,
+ // this.$router.push({ path: 'settlement', query: { type: index,id: row.id,waterMin:data1.waterMin} })
+ collect() {
+ this.allmoney1 = 0
+ if (this.modification.length == 0) {
+ this.$message.warning('请选择一条要收款的条目')
+ for (var i = 0; i < this.modification.length; i++) {
+ this.allmoney1 += this.modification[i].actualCollectionment - this.modification[i].amountEdCollectionable
+ this.collectForm = true
+ collectSubmit() {
+ if (!this.collectionScreenshot) {
+ message: '请上传收款截图',
+ this.$confirm(`确定提交收款信息?`, {
+ }).then(() => {
+ moneyCollection({
+ paymentManagementList: this.modification,
+ money: this.collectmoney,
+ collectionDate: this.collectionDate,
+ collectionScreenshot: this.collectionScreenshot,
+ this.$message.success('收款成功')
+ this.collectmoney = ''
+ this.collectionDate = ''
+ this.collectionScreenshot = ''
+ this.collectForm = false
- handlestatus(status) {
- this.searchType = status
- // ,relationId :row.relationId
- collectment(index,row) {
- this.$router.push({ path: 'collectionment',
- id: row.id ,
- relationId :row.relationId,
- compId: localStorage.getItem('ws-pf_compId')} })
- // this.$router.push({ path: 'settlement', query: { type: index,id: row.id,waterMin:data1.waterMin} })
- collect() {
- this.allmoney1=0
- if (this.modification.length == 0) {
- this.$message.warning('请选择一条要收款的条目')
- for (var i = 0; i < this.modification.length; i++) {
- this.allmoney1 += this.modification[i].actualCollectionment - this.modification[i].amountEdCollectionable
+ //添加备注信息
+ adopt() {
+ this.remarks = this.remarks
+ this.paymentManagementList = this.collectList[0].paymentManagementList
+ this.$message.warning('请选择要备注的条目')
+ this.collectForm1 = true
- this.collectForm = true
- collectSubmit() {
- if (!this.collectionScreenshot) {
- message: '请上传收款截图',
- this.$confirm(`确定提交收款信息?`, {
- }).then(() => {
- moneyCollection({
- paymentManagementList: this.modification,
- money: this.collectmoney,
- collectionDate: this.collectionDate,
- collectionScreenshot: this.collectionScreenshot,
- this.$message.success('收款成功')
- this.collectmoney=''
- this.collectionDate=''
- this.collectionScreenshot=''
- this.collectForm = false
+ adoptRemarks() {
+ this.collectionManagement.remarks = this.remarks
+ this.$confirm(`确定要保存备注信息?`, {
- //添加备注信息
- adopt() {
- this.remarks = this.remarks
- this.paymentManagementList = this.collectList[0].paymentManagementList
- this.$message.warning('请选择要备注的条目')
- this.collectForm1 = true
- adoptRemarks() {
- this.collectionManagement.remarks = this.remarks
- this.$confirm(`确定要保存备注信息?`, {
- remarksAdd({
- paymentManagementList : this.modification,
- remarks: this.remarks
- this.collectForm1 = false
- this.$message.success('添加备注信息成功')
- this.paymentManagementList = {}
+ remarksAdd({
+ remarks: this.remarks
+ this.collectForm1 = false
+ this.$message.success('添加备注信息成功')
+ this.paymentManagementList = {}
- handlePictureCardPreview1(file) {
- this.collectionScreenshot = file.url
- dataFilter(val) {
- // console.log(val,"名")
- this.contractNo = val
- if (val) {
- //val存在
- this.options = this.contractNoList.filter(item => {
- !!~item.contractNo.indexOf(val) ||
- !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
- return true
- //val为空时,还原数组
- this.options = this.contractNoList
- selectInit(row) {
- //在这里一定要记得类型匹配的上。
- if (row.approveStatus == null) {
- } else if (row.approveStatus != null) {
- if (row.taskId == null) {
+ handlePictureCardPreview1(file) {
+ this.collectionScreenshot = file.url
+ dataFilter(val) {
+ // console.log(val,"名")
+ this.contractNo = val
+ if (val) {
+ //val存在
+ this.options = this.contractNoList.filter(item => {
+ !!~item.contractNo.indexOf(val) ||
+ !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
+ return true
+ //val为空时,还原数组
+ this.options = this.contractNoList
+ selectInit(row) {
+ //在这里一定要记得类型匹配的上。
+ if (row.approveStatus == null) {
+ } else if (row.approveStatus != null) {
+ if (row.taskId == null) {
- getList(){
- getcollection({
- managementType : this.managementType,
- currentPage:this.currentPage,
- pageSize:this.pageSize,
- searchKeyWord:this.searchKeyWord,
- searchType:this.searchType,
- warehouseName:this.warehouseName,
- contractNo: this.contractNo,
- }).toPromise().then((response) => {
+ getcollection({
+ managementType: this.managementType,
+ contractNo: this.contractNo,
+ }).toPromise().then((response) => {
for (var i = 0; i < response.records.length; i++) {
response.records[i].identification = 'false'
- response.records[i].contractPrice = response.records[i].contractPrice*1000
+ response.records[i].contractPrice = response.records[i].contractPrice * 1000
- this.collectList = response.records
+ this.collectList = response.records
- contractList({
- this.contractNoList = response
- this.contractNoList.unshift({contractNo:'全部合同'})
- this.options=this.contractNoList
- console.log( this.options[0].listStatus)
- handleRemove(file) {
- console.log(file)
- handleSelectionChange(val) {
- this.modification = val
- selecttaskType() {},
+ contractList({
+ this.contractNoList = response
+ this.contractNoList.unshift({
+ contractNo: '全部合同'
+ console.log(this.options[0].listStatus)
+ handleRemove(file) {
+ console.log(file)
+ handleSelectionChange(val) {
+ this.modification = val
+ selecttaskType() {},
-},
-.ws-info-table {
-.ws-info-table .el-form-item {
-/deep/.ws-info-table .el-form-item .el-form-item__label {
-/deep/.ws-info-table .el-form-item .el-form-item__content {
-.title {
-.formItem {
- width: 70% !important;
-/deep/.el-table .el-table__header .cell,
-.el-table .el-table__body .cell {
-/deep/.el-table--enable-row-transition .el-table__body td {
-/deep/.beizhu .el-input--small .el-input__inner {
- height: 220px;
- line-height: 28px;
- width: 40%;
-.deal {
- width: 66%;
-.el-col-8 {
+ .formItem {
+ width: 70% !important;
+ /deep/.beizhu .el-input--small .el-input__inner {
+ height: 220px;
+ line-height: 28px;
+ width: 40%;
+ .deal {
+ width: 66%;
+ .el-col-8 {
width: 33.33333%;
- width: 385px;
-/deep/.el-select .el-input .el-input--small .el-input--suffix {
+ width: 385px;
+ /deep/.el-select .el-input .el-input--small .el-input--suffix {
display: block;
font-size: 13px;
margin-left: -67px;
-.imgList-style{
- .img{
- height: 300px;
-</style>
+ .imgList-style {
+ .img {
+ height: 300px;
+</style>
@@ -3,53 +3,23 @@
- <ws-select
- style='margin-right:10px;'
- v-model="warehouseName"
- placeholder=""
- @change="selecttaskType"
- :value="searchType"
- <ws-option
- :key="item.value"
- :label="item.value"
- :value="item.value"
- style="color: #8890b1;"
+ <ws-select style='margin-right:10px;' v-model="warehouseName" placeholder="" @change="selecttaskType"
+ style="color: #8890b1;" />
</ws-select>
- class='findinput'
- placeholder="可按合同编号、车牌号查找"
+ <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="可按合同编号、车牌号查找"
- :data="inspect"
- ref="inspect"
+ <el-table :data="inspect" style="width: 100%; margin-top: 20px" ref="inspect" border height="calc(100% - 110px)">
@@ -59,7 +29,7 @@
<el-table-column prop="contractNo" label="合同编号"></el-table-column>
<el-table-column prop="carNumber" label="车牌号"></el-table-column>
<el-table-column prop="goodsName" label="货名"></el-table-column>
- <el-table-column prop="bulkDensity" label="容重(克/升)"></el-table-column>
+ <el-table-column prop="bulkDensity" label="容重(克/升)"></el-table-column>
<el-table-column prop="waterContent" label="水分(%)"></el-table-column>
<el-table-column prop="binNumber" label="仓位号"></el-table-column>
<el-table-column prop="storageTagNo" label="囤位号"></el-table-column>
@@ -68,163 +38,182 @@
<el-table-column prop="status" label="状态"></el-table-column>
<el-table-column width="300" label="操作">
- <span v-if="scope.row.status == '已质检'" v-hasPermission=" `outbound.acquisitionQualityOut.view`"><el-button @click="qualityInspection(scope.row, 2)">查看</el-button></span>
- <span v-if="scope.row.status == '已称毛重' || scope.row.status == '' || scope.row.status == null" v-hasPermission=" `outbound.acquisitionQualityOut.edit`"><el-button @click="qualityInspection(scope.row, 1)">质检</el-button></span>
+ <span v-if="scope.row.status == '已质检'" v-hasPermission=" `outbound.acquisitionQualityOut.view`">
+ <el-button @click="qualityInspection(scope.row, 2)">查看</el-button>
+ <span v-if="scope.row.status == '已称毛重' || scope.row.status == '' || scope.row.status == null"
+ v-hasPermission=" `outbound.acquisitionQualityOut.edit`">
+ <el-button @click="qualityInspection(scope.row, 1)">质检</el-button>
- managementType:3,
- find(){
- qualityInspection(row, index) {
- //添加/查看
- console.log(row.id, 'id值')
- path: 'qualityInspection',
- query: { type: index, cangid: this.cangid, id: row.id ,warehouseName:this.warehouseName,count:this.warehouseCount,
- warehouseNo:this.warehouseNo,contractNo:row.contractNo,binNumber:row.binNumber,carNumber:row.carNumber,
- storageTagNo:row.storageTagNo,goodsName:row.goodsName},
- this.cangid = this.warehouseList[i].cangid
- selectWarehouse(){
- this.warehouseName = response[0].warehouseName
- this.cangid = response[0].id
+ qualityInspection(row, index) {
+ //添加/查看
+ console.log(row.id, 'id值')
+ path: 'qualityInspection',
+ contractNo: row.contractNo,
+ binNumber: row.binNumber,
+ carNumber: row.carNumber,
+ storageTagNo: row.storageTagNo,
+ goodsName: row.goodsName
+ this.cangid = this.warehouseList[i].cangid
+ this.warehouseName = response[0].warehouseName
+ this.cangid = response[0].id
-.tit {
@@ -1,313 +1,323 @@
<!--检斤管理-->
- <BaseHeaderLayout :leftSpan="12">
- <ws-button type="primary" @click="weighing(3)" v-hasPermission=" `outbound.acquisitionWeightOut.new`">添加皮重</ws-button>
- <ws-button type="primary" @click="weighing(4)" v-hasPermission=" `outbound.acquisitionWeightOut.new`">添加毛重</ws-button>
- <!-- <template slot="left"> </template> -->
- <ws-select v-model="warehouseName" placeholder="" @change="warehouseNameChange" :value="searchType">
- <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="可按合同编号、车牌号查找" clearable maxlength="500" type="input">
+ <BaseHeaderLayout :leftSpan="12">
+ <ws-button type="primary" @click="weighing(3)" v-hasPermission=" `outbound.acquisitionWeightOut.new`">添加皮重
+ </ws-button>
+ <ws-button type="primary" @click="weighing(4)" v-hasPermission=" `outbound.acquisitionWeightOut.new`">添加毛重
+ <!-- <template slot="left"> </template> -->
+ <ws-select v-model="warehouseName" placeholder="" @change="warehouseNameChange" :value="searchType">
- <el-table :data="weighingList" style="width: 100%; margin-top: 20px" ref="weighingList" border height="780">
- <el-table-column prop="contractNo" width="120" label="合同编号"></el-table-column>
- <el-table-column prop="grossWeight" label="毛重(公斤)"></el-table-column>
- <el-table-column prop="tare" label="皮重(公斤)"></el-table-column>
- <el-table-column prop="netWeight" label="净重(公斤)"></el-table-column>
- <el-table-column prop="storageNumber" label="囤位号"></el-table-column>
- <el-table-column prop="secretaryWeigher" label="司称员"></el-table-column>
- <el-table-column prop="grossDate" width="140" label="称重时间">
- {{scope.row.grossDate}}
- <span v-if="scope.row.grossDate == null">
- {{scope.row.tareDate}}
- <span v-if="scope.row.addressUrlArray != null">
- {{scope.row.addressUrlArray.length == 0? "":scope.row.addressUrlArray.length}}
- <el-table-column width="300" prop="contractNo1" label="操作">
- <el-button @click="weighing(scope.row, 1)" v-if="scope.row.status != '已质检'" v-hasPermission="`outbound.acquisitionWeightOut.mao`">毛重</el-button>
- <el-button @click="weighing(scope.row, 2)" v-if="scope.row.status == '已称皮重'" v-hasPermission="`outbound.acquisitionWeightOut.weight`"> 皮重</el-button>
- <el-button @click="del(scope.row)" v-if="scope.row.status == '已称皮重'" v-hasPermission="`outbound.acquisitionWeightOut.view`">删除</el-button>
- <div style="text-align: center">
- <ws-upload ref="upload" :comp-id="compId" :appendix-ids="appendixIdss" :editable="false"
+ <el-table :data="weighingList" style="width: 100%; margin-top: 20px" ref="weighingList" border height="calc(100% - 110px)">
+ <el-table-column prop="contractNo" width="120" label="合同编号"></el-table-column>
+ <el-table-column prop="grossWeight" label="毛重(公斤)"></el-table-column>
+ <el-table-column prop="tare" label="皮重(公斤)"></el-table-column>
+ <el-table-column prop="netWeight" label="净重(公斤)"></el-table-column>
+ <el-table-column prop="storageNumber" label="囤位号"></el-table-column>
+ <el-table-column prop="secretaryWeigher" label="司称员"></el-table-column>
+ <el-table-column prop="grossDate" width="140" label="称重时间">
+ {{scope.row.grossDate}}
+ <span v-if="scope.row.grossDate == null">
+ {{scope.row.tareDate}}
+ <span v-if="scope.row.addressUrlArray != null">
+ {{scope.row.addressUrlArray.length == 0? "":scope.row.addressUrlArray.length}}
+ <el-table-column width="300" prop="contractNo1" label="操作">
+ <el-button @click="weighing(scope.row, 1)" v-if="scope.row.status != '已质检'"
+ v-hasPermission="`outbound.acquisitionWeightOut.mao`">毛重</el-button>
+ <el-button @click="weighing(scope.row, 2)" v-if="scope.row.status == '已称皮重'"
+ v-hasPermission="`outbound.acquisitionWeightOut.weight`"> 皮重</el-button>
+ <el-button @click="del(scope.row)" v-if="scope.row.status == '已称皮重'"
+ v-hasPermission="`outbound.acquisitionWeightOut.view`">删除</el-button>
+ <div style="text-align: center">
+ <ws-upload ref="upload" :comp-id="compId" :appendix-ids="appendixIdss" :editable="false"
- getweighingList,
- delelteWeighing,
- } from '@/model/outboundManagement/index'
- import {EventBus} from 'base-core-lib'
- paymentForm: false,
- paymentForm1: false,
- weighingList: [],
- searchType: [],
- value1: '', //选择时间
- warehouseId: '',
- // this.warehouseName = e
- console.log(this.warehouseList)
- this.warehouseId = this.warehouseList[i].warehouseId
- weighing(row, num) {
- console.log
- path: 'weighing',
- typeNo: num,
- number: row.number,
- binNumber: row.binNumber,
- customer: row.customer,
- storageNumber: row.storageNumber,
- carNumber: row.carNumber,
- goodsName: row.goodsName,
- grossWeight: row.grossWeight,
- tare: row.tare,
- netWeight: row.netWeight,
- relationId: row.relationId,
- warehouseId: this.warehouseId,
- // Reacquire() {
- // //重新获取
- // },
- this.$confirm(`检斤信息删除后不可恢复,是否确定删除?`, {
- delelteWeighing({
- this.warehouseId = this.warehouseList[0].warehouseId
- getweighingList({
- managementType: 3,
- this.weighingList = response.records
- if (response.records[i].addressUrl != null) {
- if (response.records[i].addressUrl) {
- response.records[i].addressUrlArray = response.records[i].addressUrl.split(',')
- if (this.weighingList.records[i].addressUrl !=
- null) {
- arr = this.weighingList.records[i].addressUrl.split(',')
+ getweighingList,
+ delelteWeighing,
+ paymentForm: false,
+ paymentForm1: false,
+ weighingList: [],
+ searchType: [],
+ value1: '', //选择时间
+ warehouseId: '',
+ // this.warehouseName = e
+ console.log(this.warehouseList)
+ this.warehouseId = this.warehouseList[i].warehouseId
+ weighing(row, num) {
+ console.log
+ path: 'weighing',
+ typeNo: num,
+ number: row.number,
+ customer: row.customer,
+ storageNumber: row.storageNumber,
+ goodsName: row.goodsName,
+ grossWeight: row.grossWeight,
+ tare: row.tare,
+ netWeight: row.netWeight,
+ warehouseId: this.warehouseId,
+ // Reacquire() {
+ // //重新获取
+ // },
+ this.$confirm(`检斤信息删除后不可恢复,是否确定删除?`, {
+ delelteWeighing({
+ this.warehouseId = this.warehouseList[0].warehouseId
+ getweighingList({
+ this.weighingList = response.records
+ if (response.records[i].addressUrl != null) {
+ if (response.records[i].addressUrl) {
+ response.records[i].addressUrlArray = response.records[i].addressUrl.split(',')
+ if (this.weighingList.records[i].addressUrl !=
+ null) {
+ arr = this.weighingList.records[i].addressUrl.split(',')
- //附件
- if (row.addressUrl === null || row.addressUrl === '') {
- EventBus.$emit(
- 'warning',
- this.$t('system.noticeCircular.NoInformation')
+ //附件
+ if (row.addressUrl === null || row.addressUrl === '') {
+ EventBus.$emit(
+ 'warning',
+ this.$t('system.noticeCircular.NoInformation')
- .formItem {
- width: 51% !important;
+ width: 51% !important;
@@ -4,135 +4,63 @@
<BaseHeaderLayout :leftSpan="15">
- v-model="searchTypeText"
- class="typeselect"
- @change="selectExamineType"
- v-for="item in searchTypeList"
- style="color: #8890b1"
+ <ws-select v-model="searchTypeText" placeholder="" class="typeselect" @change="selectExamineType"
+ <ws-option v-for="item in searchTypeList" :key="item.value" :label="item.value" :value="item.value"
- @keyup.enter.native="lookUp()"
- placeholder="可按身份证号、手机号和姓名查找"
- <ws-button class="find" type="primary" @click="lookUp()"
+ <ws-input class='findinput' v-model="searchKeyWord" @keyup.enter.native="lookUp()" placeholder="可按身份证号、手机号和姓名查找"
+ <ws-button class="find" type="primary" @click="lookUp()"><img width="16" height="16" style="
<!-- </div> -->
- :data="driverList.records"
- fit
- ref="expandstable"
- :expand-row-keys="expands"
- :row-key="getRowKeys"
+ <el-table class="wenzi" :data="driverList.records" style="width: 100%; margin-top: 20px" fit ref="expandstable"
+ :expand-row-keys="expands" :row-key="getRowKeys" height="calc(100% - 110px)">
<el-table-column type="expand">
<template slot-scope="props">
<ws-form>
<div v-for="item in props.row.driverPayeeInfoList">
<ws-info-table>
- <ws-form-item
- :class="item.accountTypeFlag == 1 ? 'personage' : 'company'"
- v-if="item.accountTypeFlag =='1'"
- label="收款人"
- span="1"
- prop="payeeName"
- class="el-car name"
+ <ws-form-item :class="item.accountTypeFlag == 1 ? 'personage' : 'company'"
+ v-if="item.accountTypeFlag =='1'" label="收款人" span="1" prop="payeeName" class="el-car name">
<div style="width: 100%">{{ item.payeeName }}</div>
</ws-form-item>
- v-else
- label="企业名称"
- prop="compName"
- class="el-car"
+ <ws-form-item :class="item.accountTypeFlag == 1 ? 'personage' : 'company'" v-else label="企业名称"
+ span="1" prop="compName" class="el-car">
<div style="width: 100%">{{ item.compName }}</div>
- v-if="item.accountTypeFlag == '1'"
- label="身份证"
- prop="payeeNumberCard"
- class="el-car card"
+ v-if="item.accountTypeFlag == '1'" label="身份证" span="1" prop="payeeNumberCard" class="el-car card">
<div style="width: 100%">
{{ item.payeeNumberCard }}
- label="开户行"
- prop="bankDeposit"
+ <ws-form-item :class="item.accountTypeFlag == 1 ? 'personage' : 'company'" label="开户行" span="1"
+ prop="bankDeposit" class="el-car">
+ <span style="
margin: 10px;
display: inline-block;
border-right: 1px solid #e9ecf7;
padding-right: 10px;
- >{{ item.bankDeposit }}</span
- ><span
+ ">{{ item.bankDeposit }}</span><span style="
padding: 0px;
word-wrap: break-word;
line-height: 20px;
white-space: normal;
- >{{ item.bankDepositBranch }}</span
+ ">{{ item.bankDepositBranch }}</span>
- label="账号"
- prop="bankCard"
- width="12"
- src="../../../public/img/fujian-grey.png"
- @click="fujian1(item)"
+ <ws-form-item :class="item.accountTypeFlag == 1 ? 'personage' : 'company'" label="账号" span="1"
+ prop="bankCard" class="el-car">
+ <img width="12" height="13" src="../../../public/img/fujian-grey.png" alt=""
+ @click="fujian1(item)" />
<div style="width: 100%">{{ item.bankCard }}</div>
</ws-info-table>
@@ -146,586 +74,568 @@
- <el-table-column prop="driverName" label="姓名" >
+ <el-table-column prop="driverName" label="姓名">
- <el-table-column prop="numberCard" label="身份证号" >
+ <el-table-column prop="numberCard" label="身份证号">
- <el-table-column prop="driverPhone" label="手机号" >
+ <el-table-column prop="driverPhone" label="手机号">
- <el-table-column prop="carNumber" label="车牌号" >
+ <el-table-column prop="carNumber" label="车牌号">
- v-model="scope.row.carNumber"
- @change="selectcar($event, scope.row)"
- v-for="item in scope.row.driverCarInfoList"
- :label="item.carNumber"
- :value="item.carNumber"
+ <ws-select v-model="scope.row.carNumber" placeholder="" @change="selectcar($event, scope.row)">
+ <ws-option v-for="item in scope.row.driverCarInfoList" :key="item.constKey" :label="item.carNumber"
+ :value="item.carNumber" />
- <el-table-column prop="carModel" label="车型" >
+ <el-table-column prop="carModel" label="车型">
- <el-table-column prop="carLength" label="车长(米)" >
+ <el-table-column prop="carLength" label="车长(米)">
- <el-table-column prop="carLoad" label="载重(吨)" >
+ <el-table-column prop="carLoad" label="载重(吨)">
- <el-table-column prop="yearManufacture" label="出厂年份" >
+ <el-table-column prop="yearManufacture" label="出厂年份">
- <el-table-column prop="binNumber" label="常驻城市" >
+ <el-table-column prop="binNumber" label="常驻城市">
{{ scope.row.residentCityProvincial
}}{{ scope.row.residentCityMunicipal }}
- <el-table-column prop="updateDate" label="更新时间" width="140" >
+ <el-table-column prop="updateDate" label="更新时间" width="140">
- <el-table-column prop="addressUrl" label="证件照" >
+ <el-table-column prop="addressUrl" label="证件照">
- width="18"
- height="20"
- src="../../../public/img/fujian.png"
- @click="fujian(scope.row)"
<span v-if="scope.row.addressUrlArray.length > 0">{{
- <el-table-column label="账户信息" >
+ <el-table-column label="账户信息">
- v-if="!scope.row.expandsStatus"
- class="fs-16"
- @click="expandsHandle(scope.row)"
- >展开<img
- width="9"
- height="6"
- style="vertical-align: middle; margin-left: 3px"
- src="../../../public/img/zhankai.png"
- /></el-button>
- v-if="scope.row.expandsStatus"
- >收起<img
- src="../../../public/img/shouqi.png"
+ <el-button v-if="!scope.row.expandsStatus" size="medium" type="text" class="fs-16"
+ @click="expandsHandle(scope.row)">展开<img width="9" height="6"
+ style="vertical-align: middle; margin-left: 3px" src="../../../public/img/zhankai.png" alt="" />
+ <el-button v-if="scope.row.expandsStatus" size="medium" type="text" class="fs-16"
+ @click="expandsHandle(scope.row)">收起<img width="9" height="6"
+ style="vertical-align: middle; margin-left: 3px" src="../../../public/img/shouqi.png" alt="" />
<el-table-column prop="address" label="审核">
- v-if="scope.row.authenticationStatusKey==1"
+ <el-button size="medium" type="text" class="record" v-if="scope.row.authenticationStatusKey==1"
v-hasPermission="
`audit.driverMerchant.driverMerchantInfo.view`
- @click="reject(scope.row)"
- >驳回</el-button
+ " @click="reject(scope.row)">驳回</el-button>
- @click="adopt(scope.row)"
- >通过</el-button
- <template v-hasPermission="
+ " @click="adopt(scope.row)">通过</el-button>
+ <template v-hasPermission="
" v-else-if="scope.row.authenticationStatusKey == 3" slot-scope="scope">
已驳回
<template v-hasPermission="
- `audit.driverMerchant.driverMerchantInfo.view`" v-else slot-scope="scope">
- {{ scope.row.authenticationStatus}}
+ `audit.driverMerchant.driverMerchantInfo.view`" v-else slot-scope="scope">
+ {{ scope.row.authenticationStatus}}
<!-- 附件弹框 -->
- <WinseaContentModal
- v-model="accessoryTFs"
- :title="$t('system.noticeCircular.information')"
- @on-cancel="handleClose"
<p>查看附件</p>
- <div
- style="display: inline-block; margin: 5px"
- v-for="item in appendixIdss"
+ <div style="display: inline-block; margin: 5px" v-for="item in appendixIdss">
<img width="100" height="100" :src="item" alt="" />
</WinseaContentModal>
- v-model="accesscard"
- @on-cancel="handleClose1"
+ <WinseaContentModal v-model="accesscard" :title="$t('system.noticeCircular.information')" @on-cancel="handleClose1">
<img width="100" height="100" :src="accessurl" alt="" />
- driverList,
- getDriver,
-} from '@/model/platformaudit/index'
-import { provinceAndCityData, CodeToText } from 'element-china-area-data'
-import { dayjs, fmoney, EventBus } from 'base-core-lib'
+ driverList,
+ getDriver,
+ } from '@/model/platformaudit/index'
+ provinceAndCityData,
+ CodeToText
+ } from 'element-china-area-data'
+ fmoney,
- options_: provinceAndCityData,
- carNumber: '',
- searchTypeText: '待审核',
- outerVisible: false,
- //图片
- disablieForm: {},
- expands: [], //只展开一行放入当前行id
- getRowKeys: (row) => {
- //获取当前行id
- // console.log(row)
- return row.id //这里看这一行中需要根据哪个属性值是id
- driverList: [],
- residentCityProvincial: '',
- residentCityMunicipal: '',
- searchTypeList: [
- { value: '待审核', type: 1 },
- { value: '已通过', type: 2 },
- { value: '全部', type: '' },
- driverViewInfo:{
- expandsHandle(row) {
- row.expandsStatus = !row.expandsStatus
- this.$refs.expandstable.toggleRowExpansion(row)
- edit(row) {
- name: 'driverManagementedit',
- query: { id: row.id },
- //查找
- handleLook() {
+ options_: provinceAndCityData,
+ carNumber: '',
+ searchTypeText: '待审核',
+ outerVisible: false,
+ //图片
+ disablieForm: {},
+ expands: [], //只展开一行放入当前行id
+ getRowKeys: (row) => {
+ //获取当前行id
+ // console.log(row)
+ return row.id //这里看这一行中需要根据哪个属性值是id
+ driverList: [],
+ residentCityProvincial: '',
+ residentCityMunicipal: '',
+ searchTypeList: [{
+ value: '待审核',
+ value: '已通过',
+ value: '全部',
+ driverViewInfo: {
- look(row) {
- name: 'driverManagementview',
- lookUp() {
- if (status == 1) {
- this.primary = 1
- } else if (status == 2) {
- this.primary = 2
- this.primary = 3
- selectcar(e, row) {
- console.log(e, row)
- for (var i = 0; i < row.driverCarInfoList.length; i++) {
- if (e == row.driverCarInfoList[i].carNumber) {
- row.carModel = row.driverCarInfoList[i].carModel
- row.carLength = row.driverCarInfoList[i].carLength
- row.carLoad = row.driverCarInfoList[i].carLoad
- row.yearManufacture = row.driverCarInfoList[i].yearManufacture
- stop(row) {
- this.outerVisible = true
- this.disablieForm.id = row.id
- //审核通过
- adopt(row) {
- this.driverViewInfo.id = row.id
- this.driverViewInfo.flag = 1
- this.$confirm(`确定通过该认证信息?`, '提示', {
- confirmButtonText: '通过',
- getDriver(this.driverViewInfo)
- message: '通过成功',
- console.log(response)
- EventBus.$emit('error', response.message)
+ expandsHandle(row) {
+ row.expandsStatus = !row.expandsStatus
+ this.$refs.expandstable.toggleRowExpansion(row)
+ edit(row) {
+ name: 'driverManagementedit',
+ //查找
+ handleLook() {
+ look(row) {
+ name: 'driverManagementview',
- //审核驳回
- reject(row) {
- this.driverViewInfo.flag = 2
- this.$confirm(`确定驳回该认证信息?`, '提示', {
- confirmButtonText: '驳回',
- message: '驳回成功',
+ lookUp() {
+ if (status == 1) {
+ this.primary = 1
+ } else if (status == 2) {
+ this.primary = 2
+ this.primary = 3
+ selectcar(e, row) {
+ console.log(e, row)
+ for (var i = 0; i < row.driverCarInfoList.length; i++) {
+ if (e == row.driverCarInfoList[i].carNumber) {
+ row.carModel = row.driverCarInfoList[i].carModel
+ row.carLength = row.driverCarInfoList[i].carLength
+ row.carLoad = row.driverCarInfoList[i].carLoad
+ row.yearManufacture = row.driverCarInfoList[i].yearManufacture
+ stop(row) {
+ this.outerVisible = true
+ this.disablieForm.id = row.id
+ //审核通过
+ adopt(row) {
+ this.driverViewInfo.id = row.id
+ this.driverViewInfo.flag = 1
+ this.$confirm(`确定通过该认证信息?`, '提示', {
+ confirmButtonText: '通过',
+ getDriver(this.driverViewInfo)
+ message: '通过成功',
- driverList({
- id: this.id,
- flag: this.flag,
- response.records[i].carNumber =''
- response.records[i].carModel =''
- response.records[i].carLength =''
- response.records[i].carLoad =''
- response.records[i].yearManufacture =''
- response.records[i].expandsStatus = false
- this.fileList[i] = response.records[i].addressUrl.split(',')
- if(response.records[i].driverCarInfoList.length>0){
- response.records[i].carNumber =
- response.records[i].driverCarInfoList[0].carNumber
- response.records[i].carModel =
- response.records[i].driverCarInfoList[0].carModel
- response.records[i].carLength =
- response.records[i].driverCarInfoList[0].carLength
- response.records[i].carLoad =
- response.records[i].driverCarInfoList[0].carLoad
- response.records[i].yearManufacture =
- response.records[i].driverCarInfoList[0].yearManufacture
+ console.log(response)
+ EventBus.$emit('error', response.message)
+ //审核驳回
+ reject(row) {
+ this.driverViewInfo.flag = 2
+ this.$confirm(`确定驳回该认证信息?`, '提示', {
+ confirmButtonText: '驳回',
+ message: '驳回成功',
+ driverList({
+ id: this.id,
+ flag: this.flag,
+ response.records[i].carNumber = ''
+ response.records[i].carModel = ''
+ response.records[i].carLength = ''
+ response.records[i].carLoad = ''
+ response.records[i].yearManufacture = ''
+ response.records[i].expandsStatus = false
+ this.fileList[i] = response.records[i].addressUrl.split(',')
+ if (response.records[i].driverCarInfoList.length > 0) {
+ response.records[i].carNumber =
+ response.records[i].driverCarInfoList[0].carNumber
+ response.records[i].carModel =
+ response.records[i].driverCarInfoList[0].carModel
+ response.records[i].carLength =
+ response.records[i].driverCarInfoList[0].carLength
+ response.records[i].carLoad =
+ response.records[i].driverCarInfoList[0].carLoad
+ response.records[i].yearManufacture =
+ response.records[i].driverCarInfoList[0].yearManufacture
+ this.driverList = response
+ selectExamineType(e) {
+ for (var i = 0; i < this.searchTypeList.length; i++) {
+ if (this.searchTypeList[i].value == e) {
+ this.searchType = this.searchTypeList[i].type
- this.driverList = response
- selectExamineType(e) {
- for (var i = 0; i < this.searchTypeList.length; i++) {
- if (this.searchTypeList[i].value == e) {
- this.searchType = this.searchTypeList[i].type
- this.appendixIdss = row.addressUrlArray
- fujian1(item) {
- if (item.cardAddressUrl === null || item.cardAddressUrl === '') {
- this.accesscard = true
- this.accessurl = item.cardAddressUrl
- name: 'salesContractExamine',
- billoperatehis({ id: row.id })
+ this.appendixIdss = row.addressUrlArray
+ fujian1(item) {
+ if (item.cardAddressUrl === null || item.cardAddressUrl === '') {
+ this.accesscard = true
+ this.accessurl = item.cardAddressUrl
+ name: 'salesContractExamine',
-.findValue {
-/deep/.el-icon-arrow-right {
+ /deep/.el-icon-arrow-right {
+ border-top: 1px solid #e9ecf7;
+ /deep/.ws-info-table .el-form-item {
+ border-bottom: 1px solid #e9ecf7;
+ background: #f6f7fc;
+ /deep/.ws-info-table .el-form-item.company,
+ /deep/.ws-info-table .el-form-item.personage {
+ width: 33.333%;
+ /deep/.ws-info-table .el-form-item.name {
+ width: 15.665%;
+ /deep/.ws-info-table .el-form-item.card {
+ width: 17.665%;
+ /deep/.el-table th.is-leaf,
+ .el-table td {
+ border-right: 1px solid #eee;
+ .el-button--text {
+ .adjustment,
+ .record1 {
+ width: 38px;
+ top: 9px;
+ right: -7px;
+ /deep/.el-table td {
- border-top: 1px solid #e9ecf7;
-/deep/.ws-info-table .el-form-item {
- border-bottom: 1px solid #e9ecf7;
- background: #f6f7fc;
-.typeselect{
- margin-right:10px;
-/deep/.ws-info-table .el-form-item.company,
-/deep/.ws-info-table .el-form-item.personage {
- width: 33.333%;
-/deep/.ws-info-table .el-form-item.name {
- width: 15.665%;
-/deep/.ws-info-table .el-form-item.card {
- width: 17.665%;
-/deep/.el-table .el-table__body .cell {
-/deep/.el-table th.is-leaf,
-.el-table td {
- border-right: 1px solid #eee;
-.el-button--text {
-.adjustment,
-.record1 {
- width: 38px;
- top: 9px;
- right: -7px;
-/deep/.el-table td {
- placeholder="可按账号、发布主体查找"
+ <ws-input class='findinput' v-model="searchKeyWord" placeholder="可按账号、发布主体查找" clearable maxlength="500"
+ @keyup.enter.native="lookUp()" type="input"></ws-input>
- <div class="container">
- :data="dynamicsList.records"
+ <el-table class="wenzi" :data="dynamicsList.records" style="width: 100%" height="calc(100% - 110px)">
@@ -64,18 +34,12 @@
<el-table-column prop="" label="操作" width="180">
- @click="nocomplete(scope.row)"
- v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`"
+ <div class="record" @click="nocomplete(scope.row)"
+ v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`">
查看
- @click="deleteclick(scope.row)"
+ <div class="record" @click="deleteclick(scope.row)"
删除
@@ -84,49 +48,26 @@
<!-- class="record"
class="record" -->
- v-if="scope.row.statusFlag == 1"
- @click="rejectList(scope.row)"
+ <div class="record" v-if="scope.row.statusFlag == 1" @click="rejectList(scope.row)">
驳回
- @click="adoptList(scope.row)"
+ <div class="record" v-if="scope.row.statusFlag == 1" @click="adoptList(scope.row)"
通过
- <template
- slot-scope="scope"
+ <template v-else v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`" slot-scope="scope">
{{ scope.row.status }}
<!--动态信息-->
- width="40%"
- title="查看动态信息"
- :visible.sync="dialogFormVisible"
- <el-form class="customer" :model="form">
+ <el-dialog width="40%" title="查看动态信息" :visible.sync="dialogFormVisible" :append-to-body="true">
+ <el-form class="customer" :model="form">
<el-form-item label="发布主体" :label-width="formLabelWidth">
{{ SettledCompanyDynamicsList.compName }}
@@ -141,496 +82,534 @@
<el-form-item label="附件" :label-width="formLabelWidth">
<div :key="index" v-for="(item, index) in SettledCompanyDynamicsList.address">
- <img style="float:left" v-if="item" :src="item" class="avatar">
+ <img style="float:left" v-if="item" :src="item" class="avatar">
<span v-if="SettledCompanyDynamicsList.statusFlag == '1'">
- <el-button @click="reject(id)" >驳回</el-button>
- <el-button @click="adopt(id)" >通过</el-button>
+ <el-button @click="reject(id)">驳回</el-button>
+ <el-button @click="adopt(id)">通过</el-button>
</span>
- <span v-else-if="SettledCompanyDynamicsList.statusFlag != '1'"
- ><el-button @click="dialogFormVisible = fase">关闭</el-button>
+ <span v-else-if="SettledCompanyDynamicsList.statusFlag != '1'">
+ <el-button @click="dialogFormVisible = fase">关闭</el-button>
- dynamicsList,
- dynamicsLook,
- dynamicsDelete,
- dynamicsExamine,
-import { EventBus } from 'base-core-lib'
+ dynamicsList,
+ dynamicsLook,
+ dynamicsDelete,
+ dynamicsExamine,
- dialogFormVisible: false,
- wrapstatus:false,
- imgUrl:'',
- dynamicsList: [],
- pcFlag: 1,
- SettledCompanyDynamicsList: {
- compName: '',
- title: '',
- content: '',
- address: '',
- city: '',
- settledCompanyDynamicsInfo: {
- getSpanArr(data) {
- let that = this
- //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
- that.spanArr = []
- that.pos = 0
- //遍历数据
- data.forEach((item, index) => {
- //判断是否是第一项
- // if (index === 0) {
- // this.spanArr.push(1)
- // this.pos = 0
- //不是第一项时,就根据标识去存储
- if (data[index].warehouseNumViewList.length > 1) {
- // 查找到符合条件的数据时每次要把之前存储的数据+1
- this.spanArr[this.pos] = data[index].warehouseNumViewList.length
- this.spanArr.push(0)
- // 没有符合的数据时,要记住当前的index
- this.spanArr.push(1)
- this.pos = index
- // close(index) {
- // this.addressUrls.splice(index, 1)
- deleteclick(row) {
- this.$confirm(`动态信息删除后不可恢复,是否确定删除?`, {
- dynamicsDelete({
- dynamicsLook({
- this.SettledCompanyDynamicsList = response
- if(response.address!=null){
- this.SettledCompanyDynamicsList.address=response.address.split(',')
- this.id = response.id
- this.dialogFormVisible = true
+ dialogFormVisible: false,
+ wrapstatus: false,
+ imgUrl: '',
+ dynamicsList: [],
+ pcFlag: 1,
+ SettledCompanyDynamicsList: {
+ compName: '',
+ title: '',
+ content: '',
+ address: '',
+ city: '',
+ settledCompanyDynamicsInfo: {
+ getSpanArr(data) {
+ let that = this
+ //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
+ that.spanArr = []
+ that.pos = 0
+ //遍历数据
+ data.forEach((item, index) => {
+ //判断是否是第一项
+ // if (index === 0) {
+ // this.spanArr.push(1)
+ // this.pos = 0
+ //不是第一项时,就根据标识去存储
+ if (data[index].warehouseNumViewList.length > 1) {
+ // 查找到符合条件的数据时每次要把之前存储的数据+1
+ this.spanArr[this.pos] = data[index].warehouseNumViewList.length
+ this.spanArr.push(0)
+ // 没有符合的数据时,要记住当前的index
+ this.spanArr.push(1)
+ this.pos = index
+ // close(index) {
+ // this.addressUrls.splice(index, 1)
+ deleteclick(row) {
+ this.$confirm(`动态信息删除后不可恢复,是否确定删除?`, {
+ dynamicsDelete({
+ dynamicsLook({
+ this.SettledCompanyDynamicsList = response
+ if (response.address != null) {
+ this.SettledCompanyDynamicsList.address = response.address.split(',')
+ this.id = response.id
+ this.dialogFormVisible = true
- adopt(id) {
- this.settledCompanyDynamicsInfo.flag = 1
- this.settledCompanyDynamicsInfo.id = id
- this.$confirm(`确定通过该动态信息?`, '提示', {
- dynamicsExamine(this.settledCompanyDynamicsInfo)
+ adopt(id) {
+ this.settledCompanyDynamicsInfo.flag = 1
+ this.settledCompanyDynamicsInfo.id = id
+ this.$confirm(`确定通过该动态信息?`, '提示', {
+ dynamicsExamine(this.settledCompanyDynamicsInfo)
+ this.dialogFormVisible = false
- this.dialogFormVisible = false
- //列表审核通过
- adoptList(row) {
- this.settledCompanyDynamicsInfo.id = row.id
- reject(id) {
- this.settledCompanyDynamicsInfo.flag = 2
- this.$confirm(`确定驳回该动态信息?`, '提示', {
+ //列表审核通过
+ adoptList(row) {
+ this.settledCompanyDynamicsInfo.id = row.id
- //列表审核驳回
- rejectList(row) {
+ reject(id) {
+ this.settledCompanyDynamicsInfo.flag = 2
+ this.$confirm(`确定驳回该动态信息?`, '提示', {
+ //列表审核驳回
+ rejectList(row) {
- //粮脉动态列表
- dynamicsList({
- // phone: this.phone,
- pcFlag: this.pcFlag,
- this.dynamicsList = response
+ //粮脉动态列表
+ dynamicsList({
+ // phone: this.phone,
+ pcFlag: this.pcFlag,
+ this.dynamicsList = response
-.container {
-/deep/.base_header_layout .grid-content.right .find.el-button--primary {
-.el-tag + .el-tag {
-.button-new-tag {
- line-height: 30px;
- padding-top: 0;
- padding-bottom: 0;
-.input-new-tag {
- width: 90px;
- vertical-align: bottom;
-.customer .el-form-item {
- border-bottom: 1px solid #ccc;
-.avatar {
- width: 178px;
- height: 178px;
-.shade{
-background:rgba(0,0,0,0.1);
+ .container {
+ .el-tag+.el-tag {
+ .button-new-tag {
+ line-height: 30px;
+ padding-top: 0;
+ padding-bottom: 0;
+ .input-new-tag {
+ width: 90px;
+ vertical-align: bottom;
+ .customer .el-form-item {
+ border-bottom: 1px solid #ccc;
+ .avatar {
+ width: 178px;
+ height: 178px;
+ .shade {
+ background: rgba(0, 0, 0, 0.1);
@@ -4,287 +4,156 @@
- style='findinput'
+ <ws-input style='findinput' @keyup.enter.native="lookUp()" v-model="searchKeyWord" placeholder="可按身份证号、手机号和姓名查找"
- <el-table-column type="expand">
- <template slot-scope="props">
- <ws-form>
- <ws-info-table>
- :class="
+ <el-table-column type="expand">
+ <template slot-scope="props">
+ <ws-form>
+ <ws-info-table>
+ <ws-form-item :class="
props.row.customerTypeFlag == 1 ? 'personage' : 'company'
- v-if="props.row.customerTypeFlag == 1"
- <div style="width: 100%">{{ props.row.payeeName }}</div>
- </ws-form-item>
+ " v-if="props.row.customerTypeFlag == 1" label="收款人" span="1" prop="payeeName" class="el-car name">
+ <div style="width: 100%">{{ props.row.payeeName }}</div>
+ </ws-form-item>
- v-if="props.row.customerTypeFlag == 2"
- <div style="width: 100%">{{ props.row.compName }}</div>
+ " v-if="props.row.customerTypeFlag == 2" label="企业名称" span="1" prop="compName" class="el-car">
+ <div style="width: 100%">{{ props.row.compName }}</div>
- <div style="width: 100%">
- {{ props.row.payeeNumberCard }}
+ " v-if="props.row.customerTypeFlag == 1" label="身份证" span="1" prop="payeeNumberCard"
+ class="el-car card">
+ <div style="width: 100%">
+ {{ props.row.payeeNumberCard }}
+ " label="开户行" span="1" prop="bankDeposit" class="el-car">
- >{{ props.row.bankDeposit }}</span
+ ">{{ props.row.bankDeposit }}</span><span style="
- >{{ props.row.bankDepositBranch }}</span
+ ">{{ props.row.bankDepositBranch }}</span>
- <div style="width: 100%">{{ props.row.bankCard }}</div>
- </ws-info-table>
- </ws-form>
- <el-table-column type="index" label="序号" width="80">
- <el-table-column prop="customerType" label="类型"> </el-table-column>
- <el-table-column prop="customerName" label="姓名"> </el-table-column>
- <el-table-column prop="customerNumberCard" label="身份证号">
- <el-table-column prop="customerPhone" label="手机号"> </el-table-column>
- <el-table-column prop="payTaxesCard" label="纳税人识别号">
- <el-table-column prop="compAddress" label="地址"> </el-table-column>
- <el-table-column prop="businessLicenseAddressUrl" label="附件">
+ " label="账号" span="1" prop="bankCard" class="el-car">
+ <div style="width: 100%">{{ props.row.bankCard }}</div>
+ </ws-info-table>
+ </ws-form>
+ <el-table-column type="index" label="序号" width="80">
+ <el-table-column prop="customerType" label="类型"> </el-table-column>
+ <el-table-column prop="customerName" label="姓名"> </el-table-column>
+ <el-table-column prop="customerNumberCard" label="身份证号">
+ <el-table-column prop="customerPhone" label="手机号"> </el-table-column>
+ <el-table-column prop="payTaxesCard" label="纳税人识别号">
+ <el-table-column prop="compAddress" label="地址"> </el-table-column>
+ <el-table-column prop="businessLicenseAddressUrl" label="附件">
- <el-table-column label="账户信息">
- <el-table-column prop="address" label="审核">
- v-if="scope.row.authenticationStatusKey == 1"
- `audit.grainMerchant.grainMerchantInfo.view`"
- <template v-else-if="scope.row.authenticationStatusKey == 3"
- `audit.grainMerchant.grainMerchantInfo.view`" slot-scope="scope">
- 已驳回
- <template v-else
+ <el-table-column prop="address" label="审核">
+ <el-button size="medium" type="text" class="record" v-if="scope.row.authenticationStatusKey == 1"
+ v-hasPermission="
+ `audit.grainMerchant.grainMerchantInfo.view`" @click="reject(scope.row)">驳回</el-button>
+ `audit.grainMerchant.grainMerchantInfo.view`" @click="adopt(scope.row)">通过</el-button>
+ <template v-else-if="scope.row.authenticationStatusKey == 3" v-hasPermission="
`audit.grainMerchant.grainMerchantInfo.view`" slot-scope="scope">
- {{ scope.row.authenticationStatus }}
+ 已驳回
+ <template v-else v-hasPermission="
+ `audit.grainMerchant.grainMerchantInfo.view`" slot-scope="scope">
+ {{ scope.row.authenticationStatus }}
- v-if='accessoryimages.businessLicenseAddressUrl'
- <img @click='magnify(accessoryimages.businessLicenseAddressUrl)' width="100" height="100" :src="accessoryimages.businessLicenseAddressUrl" alt="" />
+ <div style="display: inline-block; margin: 5px" v-if='accessoryimages.businessLicenseAddressUrl'>
+ <img @click='magnify(accessoryimages.businessLicenseAddressUrl)' width="100" height="100"
+ :src="accessoryimages.businessLicenseAddressUrl" alt="" />
- <img @click='magnify(accessoryimages.cardAddressUrl)' width="100" height="100" :src="accessoryimages.cardAddressUrl" alt="" />
+ <div style="display: inline-block; margin: 5px">
+ <img @click='magnify(accessoryimages.cardAddressUrl)' width="100" height="100"
+ :src="accessoryimages.cardAddressUrl" alt="" />
- <img @click='magnify(accessoryimages.cardAddressUrl1)' width="100" height="100" :src="accessoryimages.cardAddressUrl1" alt="" />
+ <img @click='magnify(accessoryimages.cardAddressUrl1)' width="100" height="100"
+ :src="accessoryimages.cardAddressUrl1" alt="" />
- <img @click='magnify(accessoryimages.payeeAddressUrl)' width="100" height="100" :src="accessoryimages.payeeAddressUrl" alt="" />
+ <img @click='magnify(accessoryimages.payeeAddressUrl)' width="100" height="100"
+ :src="accessoryimages.payeeAddressUrl" alt="" />
- <img @click='magnify(accessoryimages.payeeAddressUrl1)' width="100" height="100" :src="accessoryimages.payeeAddressUrl1" alt="" />
+ <img @click='magnify(accessoryimages.payeeAddressUrl1)' width="100" height="100"
+ :src="accessoryimages.payeeAddressUrl1" alt="" />
<img @click='magnify(item)' width="100" height="100" :src="accessurl" alt="" />
@@ -294,435 +163,479 @@
- grainMerchantsList,
- getGrainMerchants,
+ grainMerchantsList,
+ getGrainMerchants,
- accessoryimages:{},
- identityAuthenticationInfo: {
- magnify(item){
- this.wrapstatus=true
- this.imgUrl=item
- colseshade(){
- this.wrapstatus=false
+ accessoryimages: {},
+ identityAuthenticationInfo: {
- this.identityAuthenticationInfo.id = row.id
- this.identityAuthenticationInfo.flag = 1
- getGrainMerchants(this.identityAuthenticationInfo)
+ magnify(item) {
+ this.wrapstatus = true
+ this.imgUrl = item
+ colseshade() {
+ this.wrapstatus = false
+ this.identityAuthenticationInfo.id = row.id
+ this.identityAuthenticationInfo.flag = 1
+ getGrainMerchants(this.identityAuthenticationInfo)
- this.identityAuthenticationInfo.flag = 2
+ this.identityAuthenticationInfo.flag = 2
- grainMerchantsList({
+ grainMerchantsList({
- //cancelButtonClass: "btn-custom-cancel"
- this.$confirm(`是否将状态改为${status}`, {
- editstatus({ id: row.id })
+ //cancelButtonClass: "btn-custom-cancel"
+ this.$confirm(`是否将状态改为${status}`, {
- if(row.customerTypeFlag==2){
- this.accessoryimages.businessLicenseAddressUrl=row.businessLicenseAddressUrl
- this.accessoryimages.cardAddressUrl=row.cardAddressUrl.split(',')[0]
- this.accessoryimages.cardAddressUrl1=row.cardAddressUrl.split(',')[1]
- this.accessoryimages.payeeAddressUrl=row.payeeAddressUrl.split(',')[0]
- this.accessoryimages.payeeAddressUrl1=row.payeeAddressUrl.split(',')[1]
- this.accessoryTFs=true
+ if (row.customerTypeFlag == 2) {
+ this.accessoryimages.businessLicenseAddressUrl = row.businessLicenseAddressUrl
+ this.accessoryimages.cardAddressUrl = row.cardAddressUrl.split(',')[0]
+ this.accessoryimages.cardAddressUrl1 = row.cardAddressUrl.split(',')[1]
+ this.accessoryimages.payeeAddressUrl = row.payeeAddressUrl.split(',')[0]
+ this.accessoryimages.payeeAddressUrl1 = row.payeeAddressUrl.split(',')[1]
+ position: fixed;
+ height: 100%;
+ top: 0;
+ left: 0;
+ z-index: 1026;
+ overflow: scroll;
+ .shade img {
+ bottom: 0;
+ right: 0;
+ margin: auto;
-position:fixed;
-width:100%;
-height:100%;
-top:0;left:0;
-z-index:1026;
-text-align:center;
-overflow: scroll;
-.shade img{
- position:absolute;
- top:0;
- left:0;
- bottom:0;
- right:0;
- margin:auto;
@@ -3,1046 +3,978 @@
- placeholder="可按账号、企业名称查找"
+ <ws-input class='findinput' v-model="searchKeyWord" placeholder="可按账号、企业名称查找" clearable
+ @keyup.enter.native="lookUp()" maxlength="500" type="input"></ws-input>
- :data="grainList.records"
- <el-table-column prop="userName" label="昵称"> </el-table-column>
- <el-table-column prop="createPhone" label="账号"> </el-table-column>
- <el-table-column prop="compName" label="企业名称"> </el-table-column>
- <el-table-column prop="address" label="地址">
- <el-table-column prop="updateDate" label="更新时间" width="140">
- <el-table-column prop="" label="操作" width="240">
- 查看
- @click="delivery(scope.row)"
- 编辑
- 删除
- <el-table-column prop="address" label="审核" width="180">
- {{ scope.row.status }}
+ <el-table class="wenzi" :data="grainList.records" style="width: 100%" height="calc(100% - 110px)">
+ <el-table-column prop="userName" label="昵称"> </el-table-column>
+ <el-table-column prop="createPhone" label="账号"> </el-table-column>
+ <el-table-column prop="compName" label="企业名称"> </el-table-column>
+ <el-table-column prop="address" label="地址">
+ <el-table-column prop="" label="操作" width="240">
+ 查看
+ <div class="record" @click="delivery(scope.row)" v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`">
+ 编辑
+ 删除
+ <el-table-column prop="address" label="审核" width="180">
+ <el-button size="medium" type="text" class="record" v-if="scope.row.statusFlag == 1"
+ v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`" @click="reject(scope.row)">驳回</el-button>
+ <el-button size="medium" type="text" class="record" v-if="scope.row.statusFlag == 1" @click="adopt(scope.row)"
+ v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`">通过</el-button>
+ {{ scope.row.status }}
- <!-- 页数 -->
- <!--查看-->
- title="查看企业信息"
- :visible.sync="dialogFormVisible1"
- <h3 style="margin-left: 30px">基本信息</h3>
- <el-form-item label="公司名称" :label-width="formLabelWidth">
- {{ companyList.compName }}
- </el-form-item>
- <el-form-item label="主营类型" :label-width="formLabelWidth">
- {{ companyList.mainBusinessType }}
- <el-form-item label="标题" :label-width="formLabelWidth">
- {{ companyList.title }}
- <el-form-item label="封面简介" :label-width="formLabelWidth">
- {{ companyList.companyProfile }}
- <el-form-item label="坐标" :label-width="formLabelWidth">
- <span>经度:{{ companyList.longitude }}</span>
- <span>纬度:{{ companyList.latitude }}</span>
- <el-form-item label="所在区域" :label-width="formLabelWidth">
- {{ companyList.province }}{{ companyList.city }}{{ companyList.area }}
- <el-form-item label="详细地址" :label-width="formLabelWidth">
- {{ companyList.detailedAddress }}
- <el-form-item label="封面图片" :label-width="formLabelWidth">
- <!-- <img width="50%" :src="companyList.attachmentAddress" alt /> -->
- <el-image
- style="width: 50%"
- :src="companyList.attachmentAddress"
- :preview-src-list="srcList">
- </el-image>
- <el-form-item label="营业执照" :label-width="formLabelWidth">
- <img width="50%" :src="companyList.licenseAddress" alt />
- <h3 style="margin-left: 30px">附加信息</h3>
- <el-form-item label="企业概况" :label-width="formLabelWidth">
- {{ companyList.companyContant }}
- <el-form-item label="标签" :label-width="formLabelWidth">
- {{ companyList.label }}
- <el-form-item label="场地图片" :label-width="formLabelWidth">
- <div :key="index" v-for="(item, index) in companyList.sitePhotoAddress">
- <h3 style="margin-left: 30px">联系方式</h3>
- v-for="(item, index) in companyList.settledCompanyContacts"
- :key="index">
+ <!-- 页数 -->
+ <!--查看-->
+ <el-dialog width="40%" title="查看企业信息" :visible.sync="dialogFormVisible1" :append-to-body="true">
+ <h3 style="margin-left: 30px">基本信息</h3>
+ <el-form-item label="公司名称" :label-width="formLabelWidth">
+ {{ companyList.compName }}
+ </el-form-item>
+ <el-form-item label="主营类型" :label-width="formLabelWidth">
+ {{ companyList.mainBusinessType }}
+ <el-form-item label="标题" :label-width="formLabelWidth">
+ {{ companyList.title }}
+ <el-form-item label="封面简介" :label-width="formLabelWidth">
+ {{ companyList.companyProfile }}
+ <el-form-item label="坐标" :label-width="formLabelWidth">
+ <span>经度:{{ companyList.longitude }}</span>
+ <span>纬度:{{ companyList.latitude }}</span>
+ <el-form-item label="所在区域" :label-width="formLabelWidth">
+ {{ companyList.province }}{{ companyList.city }}{{ companyList.area }}
+ <el-form-item label="详细地址" :label-width="formLabelWidth">
+ {{ companyList.detailedAddress }}
+ <el-form-item label="封面图片" :label-width="formLabelWidth">
+ <!-- <img width="50%" :src="companyList.attachmentAddress" alt /> -->
+ <el-image style="width: 50%" :src="companyList.attachmentAddress" :preview-src-list="srcList">
+ </el-image>
+ <el-form-item label="营业执照" :label-width="formLabelWidth">
+ <img width="50%" :src="companyList.licenseAddress" alt />
+ <h3 style="margin-left: 30px">附加信息</h3>
+ <el-form-item label="企业概况" :label-width="formLabelWidth">
+ {{ companyList.companyContant }}
+ <el-form-item label="标签" :label-width="formLabelWidth">
+ {{ companyList.label }}
+ <el-form-item label="场地图片" :label-width="formLabelWidth">
+ <div :key="index" v-for="(item, index) in companyList.sitePhotoAddress">
+ <h3 style="margin-left: 30px">联系方式</h3>
+ <div v-for="(item, index) in companyList.settledCompanyContacts" :key="index">
<el-form-item label="联系人" :label-width="formLabelWidth">
{{ item.contacts }}
<el-form-item label="电话" :label-width="formLabelWidth">
{{ item.contactsPhone }}
- <el-form-item label="邮箱" :label-width="formLabelWidth">
- {{ companyList.email }}
- <el-form-item label="传真" :label-width="formLabelWidth">
- {{ companyList.fax }}
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button v-if="companyList.statusFlag != 1" @click="dialogFormVisible1 = false" type="primary">关闭</el-button>
- <el-button v-if="companyList.statusFlag == 1" @click="reject1(id)" type="danger">驳回</el-button>
- <el-button v-if="companyList.statusFlag == 1" @click="adopt1(id)" type="primary">通过</el-button>
- <!--编辑-->
- title="编辑企业信息"
- :visible.sync="dialogFormVisible2"
- <el-form class="" :model="form1">
- <h3 style="margin-left: 30px">基本信息(必填)</h3>
- <el-form-item label="公司名称" :label-width="formLabelWidth" prop="compName">
- <el-input v-model="companyList1.compName" placeholder="请输入公司名称"></el-input>
- <el-form-item label="主营类型(可多选,必须为真实经营类型)" prop="mainBusinessType">
- <el-checkbox-group v-model="companyList1.mainBusinessType">
- <el-checkbox-button label="粮库" name="Type"></el-checkbox-button>
- <el-checkbox-button label="加工厂" name="Type"></el-checkbox-button>
- <el-checkbox-button label="烘干塔" name="Type"></el-checkbox-button>
- <el-checkbox-button label="饲料厂" name="Type"></el-checkbox-button>
- <el-checkbox-button label="养殖场" name="Type"></el-checkbox-button>
- <el-checkbox-button label="粮贸" name="Type"></el-checkbox-button>
- <el-checkbox-button label="期货" name="Type"></el-checkbox-button>
- </el-checkbox-group>
- <el-form-item label="标题" :label-width="formLabelWidth" prop="title">
- <el-input v-model="companyList1.title" placeholder="请输入标题"></el-input>
- <el-form-item label="封面简介" :label-width="formLabelWidth" prop="companyProfile">
- <el-input type="textarea" v-model="companyList1.companyProfile" placeholder="请输入封面简介"></el-input>
- <el-form-item label="坐标" :label-width="formLabelWidth" >
- <span>经度:{{ companyList1.longitude }}</span>
- <span>纬度:{{ companyList1.latitude }}</span>
- <el-form-item label="所在区域" :label-width="formLabelWidth" >
- {{ companyList1.province }}{{ companyList1.city }}{{ companyList1.area }}
- <el-form-item label="详细地址" :label-width="formLabelWidth" prop="detailedAddress">
- <el-input v-model="companyList1.detailedAddress" placeholder="请输入详细地址"></el-input>
- <el-form-item label="上传封面图片" :label-width="formLabelWidth" prop="attachmentAddress">
- class="avatar-uploader"
- :show-file-list="false"
- :on-success="handleAvatarSuccess"
- :before-upload="beforeAvatarUpload">
+ <el-form-item label="邮箱" :label-width="formLabelWidth">
+ {{ companyList.email }}
+ <el-form-item label="传真" :label-width="formLabelWidth">
+ {{ companyList.fax }}
+ </el-form>
+ <div slot="footer" class="dialog-footer">
+ <el-button v-if="companyList.statusFlag != 1" @click="dialogFormVisible1 = false" type="primary">关闭
+ <el-button v-if="companyList.statusFlag == 1" @click="reject1(id)" type="danger">驳回</el-button>
+ <el-button v-if="companyList.statusFlag == 1" @click="adopt1(id)" type="primary">通过</el-button>
+ <!--编辑-->
+ <el-dialog width="40%" title="编辑企业信息" :visible.sync="dialogFormVisible2" :append-to-body="true">
+ <el-form class="" :model="form1">
+ <h3 style="margin-left: 30px">基本信息(必填)</h3>
+ <el-form-item label="公司名称" :label-width="formLabelWidth" prop="compName">
+ <el-input v-model="companyList1.compName" placeholder="请输入公司名称"></el-input>
+ <el-form-item label="主营类型(可多选,必须为真实经营类型)" prop="mainBusinessType">
+ <el-checkbox-group v-model="companyList1.mainBusinessType">
+ <el-checkbox-button label="粮库" name="Type"></el-checkbox-button>
+ <el-checkbox-button label="加工厂" name="Type"></el-checkbox-button>
+ <el-checkbox-button label="烘干塔" name="Type"></el-checkbox-button>
+ <el-checkbox-button label="饲料厂" name="Type"></el-checkbox-button>
+ <el-checkbox-button label="养殖场" name="Type"></el-checkbox-button>
+ <el-checkbox-button label="粮贸" name="Type"></el-checkbox-button>
+ <el-checkbox-button label="期货" name="Type"></el-checkbox-button>
+ </el-checkbox-group>
+ <el-form-item label="标题" :label-width="formLabelWidth" prop="title">
+ <el-input v-model="companyList1.title" placeholder="请输入标题"></el-input>
+ <el-form-item label="封面简介" :label-width="formLabelWidth" prop="companyProfile">
+ <el-input type="textarea" v-model="companyList1.companyProfile" placeholder="请输入封面简介"></el-input>
+ <span>经度:{{ companyList1.longitude }}</span>
+ <span>纬度:{{ companyList1.latitude }}</span>
+ {{ companyList1.province }}{{ companyList1.city }}{{ companyList1.area }}
+ <el-form-item label="详细地址" :label-width="formLabelWidth" prop="detailedAddress">
+ <el-input v-model="companyList1.detailedAddress" placeholder="请输入详细地址"></el-input>
+ <el-form-item label="上传封面图片" :label-width="formLabelWidth" prop="attachmentAddress">
+ <el-upload class="avatar-uploader" action="https://www.zthymaoyi.com/upload/admin" :show-file-list="false"
+ :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload">
<img v-if="companyList1.attachmentAddress" :src="companyList1.attachmentAddress" class="avatar">
- </el-upload>
- <el-form-item label="营业执照" :label-width="formLabelWidth" prop="licenseAddress">
- :on-success="handleAvatarSuccess1"
+ </el-upload>
+ <el-form-item label="营业执照" :label-width="formLabelWidth" prop="licenseAddress">
+ :on-success="handleAvatarSuccess1" :before-upload="beforeAvatarUpload">
<img v-if="companyList1.licenseAddress" :src="companyList1.licenseAddress" class="avatar">
- <h3 style="margin-left: 30px">附加信息(选填)</h3>
- <el-form-item label="企业概况" :label-width="formLabelWidth" prop="companyContant">
- <el-input type="textarea" v-model="companyList1.companyContant" maxlength="300" placeholder="请输入企业概况,如经营项目、产品类型、企业规模等,不超过300字"></el-input>
- <el-form-item label="标签(标签应突出企业特色,最多6个)" prop="label" >
- <el-tag
- :key="tag"
- v-for="tag in companyList1.label"
- closable
- :disable-transitions="false"
- @close="handleClose(tag)">
- {{tag}}
- </el-tag>
- class="input-new-tag"
- v-if="inputVisible"
- v-model="label"
- ref="saveTagInput"
- maxlength="6"
- placeholder="请输入标签内容,不超过6个字符"
- @keyup.enter.native="handleInputConfirm"
- @blur="handleInputConfirm"
- </el-input>
- <el-button v-else class="button-new-tag" size="small" @click="showInput">添加</el-button>
- <el-form-item label="场地图片(图片清晰,最多9张)" :label-width="formLabelWidth" prop="sitePhotoAddress">
+ <h3 style="margin-left: 30px">附加信息(选填)</h3>
+ <el-form-item label="企业概况" :label-width="formLabelWidth" prop="companyContant">
+ <el-input type="textarea" v-model="companyList1.companyContant" maxlength="300"
+ placeholder="请输入企业概况,如经营项目、产品类型、企业规模等,不超过300字"></el-input>
+ <el-form-item label="标签(标签应突出企业特色,最多6个)" prop="label">
+ <el-tag :key="tag" v-for="tag in companyList1.label" closable :disable-transitions="false"
+ @close="handleClose(tag)">
+ {{tag}}
+ </el-tag>
+ <el-input class="input-new-tag" v-if="inputVisible" v-model="label" ref="saveTagInput" maxlength="6"
+ placeholder="请输入标签内容,不超过6个字符" size="medium" @keyup.enter.native="handleInputConfirm"
+ @blur="handleInputConfirm">
+ </el-input>
+ <el-button v-else class="button-new-tag" size="small" @click="showInput">添加</el-button>
+ <el-form-item label="场地图片(图片清晰,最多9张)" :label-width="formLabelWidth" prop="sitePhotoAddress">
<div :key="index" v-for="(item, index) in companyList1.sitePhotoAddress">
- :limit="9"
- :on-success="handlePictureCardPreview"
+ <el-upload action="https://www.zthymaoyi.com/upload/admin" :show-file-list="false" :limit="9"
+ :on-success="handlePictureCardPreview" :on-remove="handleRemove">
<i class="el-icon-plus avatar-uploader-icon"></i>
<!-- <el-dialog :visible.sync="dialogVisible3">
<img width="100%" :src="companyList1.sitePhotoAddress" alt="" />
</el-dialog> -->
+ <div :key="index" v-for="(item, index) in companyList1.settledCompanyContacts">
+ <el-form-item label="联系人" :label-width="formLabelWidth" prop="contacts">
+ <el-input v-model="item.contacts" placeholder="请输入联系人姓名"></el-input>
- <div :key="index" v-for="(item, index) in companyList1.settledCompanyContacts">
- <el-form-item label="联系人" :label-width="formLabelWidth" prop="contacts">
- <el-input v-model="item.contacts" placeholder="请输入联系人姓名"></el-input>
- <el-form-item label="电话" :label-width="formLabelWidth" prop="createPhone">
- <el-input v-model="item.contactsPhone" placeholder="请输入联系人电话"></el-input>
- width="22"
- height="22"
- class="add"
- @click="add()"
- src="../../../public/img/add.png"
- class="del"
- @click="del(index)"
- src="../../../public/img/del.png"
- <el-form-item label="邮箱" :label-width="formLabelWidth" prop="email">
- <el-input v-model="companyList1.email" placeholder="请输入电子邮箱"></el-input>
- <el-form-item label="传真" :label-width="formLabelWidth" prop="fax">
- <el-input v-model="companyList1.fax" placeholder="请输入传真号"></el-input>
+ <el-form-item label="电话" :label-width="formLabelWidth" prop="createPhone">
+ <el-input v-model="item.contactsPhone" placeholder="请输入联系人电话"></el-input>
- <el-button @click="submit(id)" type="primary">提交</el-button>
+ <img width="22" height="22" class="add" @click="add()" src="../../../public/img/add.png" alt="" />
+ <img width="22" height="22" class="del" @click="del(index)" src="../../../public/img/del.png" alt="" />
+ <el-form-item label="邮箱" :label-width="formLabelWidth" prop="email">
+ <el-input v-model="companyList1.email" placeholder="请输入电子邮箱"></el-input>
+ <el-form-item label="传真" :label-width="formLabelWidth" prop="fax">
+ <el-input v-model="companyList1.fax" placeholder="请输入传真号"></el-input>
+ <el-button @click="submit(id)" type="primary">提交</el-button>
-import { settledList,getSettled,editSettled,settledExamine,deleteSettled } from '@/model/platformaudit/index'
+ settledList,
+ getSettled,
+ editSettled,
+ settledExamine,
+ deleteSettled
- //标签
- dynamicTags: [],
- inputVisible: false,
- label: '',
- dialogImageUrl: '',
- dialogVisible1: false,
- dialogVisible2: false,
- dialogVisible3: false,
- //弹窗
- dialogFormVisible1: false,
- dialogFormVisible2: false,
- checkboxGroup2: [],
- address:'',
- form: {
- form1: {
- Type: [],
- textarea: '',
- srcList: [
- grainList: [],
- { value: '未通过', type: 3 },
- companyList: {
- companyList1: {
- label:'',
- attachmentAddress: '',
- licenseAddress: '',
- sitePhotoAddress: '',
- settledCompanyInfo: {
- freightspace: [{}],
- handleAvatarSuccess(res, file) {
- this.companyList1.attachmentAddress = file.response.url;
- handleAvatarSuccess1(res, file) {
- this.companyList1.licenseAddress = file.response.url;
- beforeAvatarUpload(file) {
- const isJPG = file.type === 'image/jpeg';
- const isLt2M = file.size / 1024 / 1024 < 2;
+ //标签
+ dynamicTags: [],
+ inputVisible: false,
+ label: '',
+ dialogImageUrl: '',
+ dialogVisible1: false,
+ dialogVisible2: false,
+ dialogVisible3: false,
+ //弹窗
+ dialogFormVisible1: false,
+ dialogFormVisible2: false,
+ checkboxGroup2: [],
+ form: {
- if (!isJPG) {
- this.$message.error('上传图片只能是 JPG 格式!');
- if (!isLt2M) {
- this.$message.error('上传图片大小不能超过 2MB!');
+ form1: {
+ Type: [],
+ textarea: '',
+ srcList: [
+ grainList: [],
+ value: '未通过',
+ type: 3
+ companyList: {},
+ companyList1: {
+ attachmentAddress: '',
+ licenseAddress: '',
+ sitePhotoAddress: '',
+ settledCompanyInfo: {
+ freightspace: [{}],
- return isJPG && isLt2M;
- handleRemove(file, fileList) {
- console.log(file, fileList)
- handlePictureCardPreview(res, file) {
- let url = file.response.url;
- if(this.companyList1.sitePhotoAddress.length>=9){
- message: '最多上传九张图片!',
+ handleAvatarSuccess(res, file) {
+ this.companyList1.attachmentAddress = file.response.url;
+ handleAvatarSuccess1(res, file) {
+ this.companyList1.licenseAddress = file.response.url;
+ beforeAvatarUpload(file) {
+ const isJPG = file.type === 'image/jpeg';
+ const isLt2M = file.size / 1024 / 1024 < 2;
+ if (!isJPG) {
+ this.$message.error('上传图片只能是 JPG 格式!');
+ if (!isLt2M) {
+ this.$message.error('上传图片大小不能超过 2MB!');
+ return isJPG && isLt2M;
+ handleRemove(file, fileList) {
+ console.log(file, fileList)
+ handlePictureCardPreview(res, file) {
+ let url = file.response.url;
+ if (this.companyList1.sitePhotoAddress.length >= 9) {
+ message: '最多上传九张图片!',
this.companyList1.sitePhotoAddress.push(url)
- close(index) {
- this.addressUrls.splice(index, 1)
- //联系人
- add() {
- this.companyList1.settledCompanyContacts.push({})
- del(index) {
- if (this.companyList1.settledCompanyContacts.length > 1) {
- this.companyList1.settledCompanyContacts.splice(index, 1)
- //列表
- settledList({
- this.grainList = response
- for(var i=0;i<this.grainList.records.length;i++){
- this.grainList.records[i].address=this.grainList.records[i].province+this.grainList.records[i].city+this.grainList.records[i].area+this.grainList.records[i].detailedAddress
- this.$confirm(`企业信息删除后不可恢复,是否确定删除?`, {
- deleteSettled({
+ close(index) {
+ this.addressUrls.splice(index, 1)
+ //联系人
+ add() {
+ this.companyList1.settledCompanyContacts.push({})
+ del(index) {
+ if (this.companyList1.settledCompanyContacts.length > 1) {
+ this.companyList1.settledCompanyContacts.splice(index, 1)
+ //列表
+ settledList({
- //查看
- getSettled({ id: row.id })
- this.companyList = response
- if(response.sitePhotoAddress!=null){
- this.companyList.sitePhotoAddress=response.sitePhotoAddress.split(',')
- this.id=response.id
- this.dialogFormVisible1 = true
- delivery(row) {
- this.companyList1 = response
- if(response.mainBusinessType!=null){
- this.companyList1.mainBusinessType=response.mainBusinessType.split(',')
- if(response.label!=null){
- this.companyList1.label=response.label.split(',')
- this.companyList1.label=[]
- this.companyList1.sitePhotoAddress=response.sitePhotoAddress.split(',')
- this.companyList1.sitePhotoAddress=[]
- if(response.settledCompanyContacts.length==0){
+ this.grainList = response
+ for (var i = 0; i < this.grainList.records.length; i++) {
+ this.grainList.records[i].address = this.grainList.records[i].province + this.grainList.records[i]
+ .city + this.grainList.records[i].area + this.grainList.records[i].detailedAddress
+ this.$confirm(`企业信息删除后不可恢复,是否确定删除?`, {
+ deleteSettled({
+ //查看
+ getSettled({
+ this.companyList = response
+ if (response.sitePhotoAddress != null) {
+ this.companyList.sitePhotoAddress = response.sitePhotoAddress.split(',')
+ this.dialogFormVisible1 = true
+ delivery(row) {
+ this.companyList1 = response
+ if (response.mainBusinessType != null) {
+ this.companyList1.mainBusinessType = response.mainBusinessType.split(',')
+ if (response.label != null) {
+ this.companyList1.label = response.label.split(',')
+ this.companyList1.label = []
+ this.companyList1.sitePhotoAddress = response.sitePhotoAddress.split(',')
+ this.companyList1.sitePhotoAddress = []
+ if (response.settledCompanyContacts.length == 0) {
this.companyList1.settledCompanyContacts.push({})
- this.dialogFormVisible2 = true
- submit(id){
- if (!this.companyList1.compName) {
- message: '公司名称不能为空!',
- this.companyList1.compName.length > 25 ||
- this.companyList1.compName.length < 2
- message: '公司名称输入错误!',
- if (this.companyList1.mainBusinessType.length<1) {
- message: '至少选择一个主营类型',
- if (!this.companyList1.title) {
- message: '标题不能为空!',
- this.companyList1.title.length > 16 ||
- this.companyList1.title.length < 2
- message: '标题长度2-16个字',
- if (!this.companyList1.companyProfile) {
- message: '简介不能为空!',
- this.companyList1.companyProfile.length > 60 ||
- this.companyList1.companyProfile.length < 10
- message: '简介长度10-60个字',
- if (!this.companyList1.detailedAddress) {
- message: '详细地址不能为空!',
- this.companyList1.detailedAddress.length > 12 ||
- this.companyList1.detailedAddress.length < 2
- message: '详细地址2-12个字',
- if (!this.companyList1.attachmentAddress) {
- message: '封面照片不能为空!',
- if (!this.companyList1.licenseAddress) {
- message: '营业执照不能为空!',
- this.companyList1.contacts > 10 ||
- this.companyList1.contacts < 2
- message: '联系人姓名2-10个字',
- this.companyList1.createPhone.length > 15 ||
- this.companyList1.createPhone.length < 7
- message: '联系人电话7-15位数字',
- // if (
- // this.companyList1.fax.length > 20 ||
- // this.companyList1.fax.length < 6
- // ) {
- // this.$message({
- // message: '传真输入错误',
- // type: 'warning',
- // return
- this.companyList1.id = id
- this.companyList1.mainBusinessType=this.companyList1.mainBusinessType.toString()
- this.companyList1.label=this.companyList1.label.toString()
- this.companyList1.sitePhotoAddress=this.companyList1.sitePhotoAddress.toString()
- this.$confirm(`确定提交企业信息?`, {
- editSettled(this.companyList1)
- message: '提交成功',
+ this.dialogFormVisible2 = true
+ submit(id) {
+ if (!this.companyList1.compName) {
+ message: '公司名称不能为空!',
+ this.companyList1.compName.length > 25 ||
+ this.companyList1.compName.length < 2
+ message: '公司名称输入错误!',
+ if (this.companyList1.mainBusinessType.length < 1) {
+ message: '至少选择一个主营类型',
+ if (!this.companyList1.title) {
+ message: '标题不能为空!',
+ this.companyList1.title.length > 16 ||
+ this.companyList1.title.length < 2
+ message: '标题长度2-16个字',
+ if (!this.companyList1.companyProfile) {
+ message: '简介不能为空!',
+ this.companyList1.companyProfile.length > 60 ||
+ this.companyList1.companyProfile.length < 10
+ message: '简介长度10-60个字',
+ if (!this.companyList1.detailedAddress) {
+ message: '详细地址不能为空!',
+ this.companyList1.detailedAddress.length > 12 ||
+ this.companyList1.detailedAddress.length < 2
+ message: '详细地址2-12个字',
+ if (!this.companyList1.attachmentAddress) {
+ message: '封面照片不能为空!',
+ if (!this.companyList1.licenseAddress) {
+ message: '营业执照不能为空!',
+ this.companyList1.contacts > 10 ||
+ this.companyList1.contacts < 2
+ message: '联系人姓名2-10个字',
+ this.companyList1.createPhone.length > 15 ||
+ this.companyList1.createPhone.length < 7
+ message: '联系人电话7-15位数字',
+ // if (
+ // this.companyList1.fax.length > 20 ||
+ // this.companyList1.fax.length < 6
+ // ) {
+ // this.$message({
+ // message: '传真输入错误',
+ // type: 'warning',
+ // return
+ this.companyList1.id = id
+ this.companyList1.mainBusinessType = this.companyList1.mainBusinessType.toString()
+ this.companyList1.label = this.companyList1.label.toString()
+ this.companyList1.sitePhotoAddress = this.companyList1.sitePhotoAddress.toString()
+ this.$confirm(`确定提交企业信息?`, {
+ editSettled(this.companyList1)
+ message: '提交成功',
+ this.dialogFormVisible2 = false
- this.dialogFormVisible2 = false
- //查看审核通过
- adopt1(id) {
- this.settledCompanyInfo.id = id
- this.settledCompanyInfo.flag = 1
- this.$confirm(`确定通过该入驻申请?`, '提示', {
- settledExamine(this.settledCompanyInfo)
+ //查看审核通过
+ adopt1(id) {
+ this.settledCompanyInfo.id = id
+ this.settledCompanyInfo.flag = 1
+ this.$confirm(`确定通过该入驻申请?`, '提示', {
+ settledExamine(this.settledCompanyInfo)
- //查看审核驳回
- reject1(id) {
- this.settledCompanyInfo.flag = 2
- this.$confirm(`确定驳回该入驻申请?`, '提示', {
- this.settledCompanyInfo.id = row.id
+ //查看审核驳回
+ reject1(id) {
+ this.settledCompanyInfo.flag = 2
+ this.$confirm(`确定驳回该入驻申请?`, '提示', {
- handleClose(tag) {
- this.companyList1.label.splice(this.companyList1.label.indexOf(tag), 1)
- showInput() {
- this.inputVisible = true
- this.$nextTick((_) => {
- this.$refs.saveTagInput.$refs.input.focus()
+ this.settledCompanyInfo.id = row.id
+ handleClose(tag) {
+ this.companyList1.label.splice(this.companyList1.label.indexOf(tag), 1)
- handleInputConfirm() {
- let label = this.label;
- if (label) {
- if(this.companyList1.label.length>5){
- message: '最多添加六个标签!',
+ showInput() {
+ this.inputVisible = true
+ this.$nextTick((_) => {
+ this.$refs.saveTagInput.$refs.input.focus()
- this.companyList1.label.push(label)
- this.inputVisible = false
- this.label = ''
+ handleInputConfirm() {
+ let label = this.label;
+ if (label) {
+ if (this.companyList1.label.length > 5) {
+ message: '最多添加六个标签!',
+ this.companyList1.label.push(label)
+ this.inputVisible = false
+ this.label = ''
+ width: 240px;
+ .add {
+ margin-left: 10%;
+ .avatar-uploader .el-upload {
+ border: 1px dashed #d9d9d9;
+ border-radius: 6px;
+ overflow: hidden;
+ .avatar-uploader .el-upload:hover {
+ border-color: #409EFF;
+ .avatar-uploader-icon {
+ font-size: 28px;
+ color: #8c939d;
+ line-height: 178px;
- width: 240px;
-.add{
- margin-left: 10%;
-.avatar-uploader .el-upload {
- border: 1px dashed #d9d9d9;
- border-radius: 6px;
- overflow: hidden;
-.avatar-uploader .el-upload:hover {
- border-color: #409EFF;
-.avatar-uploader-icon {
- font-size: 28px;
- color: #8c939d;
- line-height: 178px;
@@ -3,477 +3,449 @@
- placeholder="可按编号、发布方和货名查找"
+ <ws-input class='findinput' v-model="searchKeyWord" placeholder="可按编号、发布方和货名查找" clearable maxlength="500"
- :data="tranManagementList.records"
+ <el-table class="wenzi" :data="tranManagementList.records" style="width: 100%" height="calc(100% - 110px)">
- <el-table-column prop="salePlanNo" label="编号" > </el-table-column>
- <el-table-column prop="seller" label="发布企业/发布人" >
+ <el-table-column prop="salePlanNo" label="编号"> </el-table-column>
+ <el-table-column prop="seller" label="发布企业/发布人">
- <el-table-column label="发布平台" >
+ <el-table-column label="发布平台">
<span v-if="scope.row.pcFlag==1">PC端</span>
<span v-else>移动端</span>
- <el-table-column prop="goodsName" label="货名" > </el-table-column>
- <el-table-column prop="plannedSaleVolume" label="重量(吨)" > </el-table-column>
- <el-table-column prop="salePlanType" label="交易类型" > </el-table-column>
- <el-table-column prop="basisPrice" label="基差(元/吨)" > </el-table-column>
- <el-table-column prop="salePrice" label="价格(元/吨)" > </el-table-column>
- <el-table-column prop="sellerPhone" label="电话" > </el-table-column>
+ <el-table-column prop="goodsName" label="货名"> </el-table-column>
+ <el-table-column prop="plannedSaleVolume" label="重量(吨)"> </el-table-column>
+ <el-table-column prop="salePlanType" label="交易类型"> </el-table-column>
+ <el-table-column prop="basisPrice" label="基差(元/吨)"> </el-table-column>
+ <el-table-column prop="salePrice" label="价格(元/吨)"> </el-table-column>
+ <el-table-column prop="sellerPhone" label="电话"> </el-table-column>
<el-table-column prop="updateDate" label="更新时间" width="140"> </el-table-column>
+ <div class="record" @click="nocomplete(scope.row)" v-hasPermission="
`audit.tranMerchant.tranMerchantInfo.view`
- >查看</div>
+ ">查看</div>
+ <div class="record" @click="delivery(scope.row)" v-hasPermission="
- >编辑</div>
+ ">编辑</div>
+ <div class="record" @click="deleteclick(scope.row)" v-hasPermission="
- >删除</div>
+ ">删除</div>
- <el-table-column prop="address" label="审核" >
- v-if="scope.row.statusFlag==1"
+ <el-button size="medium" type="text" class="record" v-if="scope.row.statusFlag==1" v-hasPermission="
+ <el-button size="medium" type="text" class="record" v-if="scope.row.statusFlag==1" @click="adopt(scope.row)"
+ ">通过</el-button>
<template v-else v-hasPermission="
- " slot-scope="scope">
- {{ scope.row.status}}
+ " slot-scope="scope">
+ {{ scope.row.status}}
-import { saleList ,deletesale ,saleexamine} from '@/model/platformaudit/index'
+ saleList,
+ deletesale,
+ saleexamine
- tranManagementList: [],
- inOutDate: [],
- salePlanInfo:{
- this.$confirm(`交易信息删除后不可恢复,是否确定删除?`, {
- deletesale ({
- name: 'salesPlanLook',
+ tranManagementList: [],
+ inOutDate: [],
+ salePlanInfo: {
- name: 'salesPlanEdit',
- this.currentPage= 1
- this.salePlanInfo.id = row.id
- this.salePlanInfo.flag = 1
- this.$confirm(`确定通过该交易信息?`, '提示', {
- saleexamine( this.salePlanInfo )
+ this.$confirm(`交易信息删除后不可恢复,是否确定删除?`, {
+ deletesale({
- this.salePlanInfo.flag = 2
- this.$confirm(`确定驳回该交易信息?`, '提示', {
- saleexamine(this.salePlanInfo)
+ name: 'salesPlanLook',
- //销售
- sale() {
- //销售列表
- saleList ({
- this.tranManagementList = response
+ name: 'salesPlanEdit',
+ this.salePlanInfo.id = row.id
+ this.salePlanInfo.flag = 1
+ this.$confirm(`确定通过该交易信息?`, '提示', {
+ saleexamine(this.salePlanInfo)
+ this.salePlanInfo.flag = 2
+ this.$confirm(`确定驳回该交易信息?`, '提示', {
+ //销售
+ sale() {
+ //销售列表
+ saleList({
+ this.tranManagementList = response
@@ -3,588 +3,564 @@
+ <ws-input v-model="searchKeyWord" placeholder="可按编号、发布方和货名查找" clearable maxlength="500"
left: -5px;
- <el-table-column prop="procurementPlanNo" label="编号" > </el-table-column>
- <el-table-column prop="buyer" label="发布企业/发布人" >
- <span v-if="scope.row.pcFlag==1">PC端</span>
- <span v-else>移动端</span>
- <el-table-column prop="plannedPurchaseVolume" label="重量(吨)" > </el-table-column>
- <el-table-column prop="procurementPlanType" label="交易类型" > </el-table-column>
- <el-table-column prop="procurementPrice" label="价格(元/吨)" > </el-table-column>
- <el-table-column prop="buyerPhone" label="电话" > </el-table-column>
- <el-table-column prop="updateDate" label="更新时间" width="140"> </el-table-column>
- <el-table-column prop="" label="操作" width="180">
+ <el-table-column prop="procurementPlanNo" label="编号"> </el-table-column>
+ <el-table-column prop="buyer" label="发布企业/发布人">
+ <span v-if="scope.row.pcFlag==1">PC端</span>
+ <span v-else>移动端</span>
+ <el-table-column prop="plannedPurchaseVolume" label="重量(吨)"> </el-table-column>
+ <el-table-column prop="procurementPlanType" label="交易类型"> </el-table-column>
+ <el-table-column prop="procurementPrice" label="价格(元/吨)"> </el-table-column>
+ <el-table-column prop="buyerPhone" label="电话"> </el-table-column>
+ <el-table-column prop="updateDate" label="更新时间" width="140"> </el-table-column>
+ <el-table-column prop="" label="操作" width="180">
- <template v-else v-hasPermission="
{{ scope.row.status}}
-import { getTransactionInformation, transactionInformationList ,deleteTransactionInformation} from '@/model/platformaudit/index'
-import { billoperatehis } from '@/model/contarct/index'
+ getTransactionInformation,
+ transactionInformationList,
+ deleteTransactionInformation
+ billoperatehis
- procurementPlanInfo:{
- deleteTransactionInformation({
- name: 'procurementPlanLook',
+ procurementPlanInfo: {
- name: 'procurementPlanEdit',
- this.procurementPlanInfo.id = row.id
- this.procurementPlanInfo.flag = 1
- getTransactionInformation( this.procurementPlanInfo )
- this.procurementPlanInfo.flag = 2
- getTransactionInformation(this.procurementPlanInfo)
+ deleteTransactionInformation({
+ name: 'procurementPlanLook',
+ name: 'procurementPlanEdit',
- //采购
- purchase() {
- //采购列表
- transactionInformationList({
- //更改状态
- if (row.processStatus == '待执行' || row.processStatus == '已完成') {
- } else if (row.processStatus == '执行中') {
- alsostate({ id: row.id })
+ this.procurementPlanInfo.id = row.id
+ this.procurementPlanInfo.flag = 1
+ getTransactionInformation(this.procurementPlanInfo)
+ this.procurementPlanInfo.flag = 2
- row.receiveAttachmentPath === null ||
- row.receiveAttachmentPath === ''
- this.appendixIdss = row.receiveAttachmentPath
+ //采购
+ purchase() {
+ //采购列表
+ transactionInformationList({
+ //更改状态
+ if (row.processStatus == '待执行' || row.processStatus == '已完成') {
+ } else if (row.processStatus == '执行中') {
+ alsostate({
+ row.receiveAttachmentPath === null ||
+ row.receiveAttachmentPath === ''
+ this.appendixIdss = row.receiveAttachmentPath
@@ -1,6 +1,6 @@
//采购计划
+ <div class="">
<BaseHeaderLayout :leftSpan="10">
<ws-button type="primary" v-hasPermission="
@@ -10,84 +10,37 @@
<!-- 接单开始 -->
- placeholder="可按采购计划编号、标题和货名查找"
+ <ws-input v-model="searchKeyWord" placeholder="可按采购计划编号、标题和货名查找" clearable maxlength="500" type="input"
+ class="findValue"></ws-input>
- :data="warehouseList.records"
+ <el-table class="wenzi" :data="warehouseList.records" style="width: 100%; margin-top: 20px" height="calc(100% - 110px)">
<el-table-column type="index" label="序号" width="80"></el-table-column>
- prop="procurementPlanNo"
- label="采购计划编号"
+ <el-table-column class="table_td" prop="procurementPlanNo" label="采购计划编号">
- prop="title"
- label="标题"
- prop="plannedPurchaseVolume"
- label="重量(吨)"
+ <el-table-column class="table_td" prop="title" label="标题"></el-table-column>
+ <el-table-column class="table_td" prop="plannedPurchaseVolume" label="重量(吨)"></el-table-column>
<el-table-column class="table_td" prop="basisPrice" label="基差(元/吨)">
<div v-if="scope.row.procurementPlanType == '期货'">
<div class="inputChenge">
- v-model="scope.row.basisPrice"
+ <el-input v-model="scope.row.basisPrice" v-if="scope.row.identification == 'true'"></el-input>
<div v-if="scope.row.identification == 'false'" class="inputs">
{{ scope.row.basisPrice }}
+ src="../../../public/img/edit.png" @click="whether(scope.row)" alt=""
+ v-if="scope.row.identification == 'false'" />
<div v-else>—</div>
@@ -97,73 +50,41 @@
<div v-if="scope.row.procurementPlanType == '现货'">
<!-- readonly -->
- v-model="scope.row.procurementPrice"
+ <el-input v-model="scope.row.procurementPrice" v-if="scope.row.identification == 'true'"></el-input>
{{ scope.row.procurementPrice }}
- prop="receiveWarehouse"
- label="收货库"
+ <el-table-column class="table_td" prop="receiveWarehouse" label="收货库"></el-table-column>
<el-table-column prop="status" label="状态">
- <el-popover
- placement="left"
- :width="285"
- trigger="click"
- visible-arrow="false"
- @show="history(scope.row)"
<span slot="reference">
<span v-if="scope.row.showFlag == 1">
- 展示中</span
+ 展示中</span>
<span v-if="scope.row.showFlag == 0">
- 已隐藏</span
+ 已隐藏</span>
<!-- <p style="margin-top: 0; padding-left: 10px">历史记录</p> -->
- v-for="(item, index) in historyList"
- class="flex"
- :key="index"
+ <div v-for="(item, index) in historyList" class="flex" :key="index">
<div class="vertical-text vertical-text-left">
{{ item.updateDate }}
<div class="vertical-circle"></div>
- v-if="index != historyList.length - 1"
- class="vertical-line"
- ></div>
<div class="vertical-text">
{{ item.operateUser }}
@@ -173,24 +94,14 @@
</el-popover>
- @click="editClick(scope.row)"
- label="更新时间"
- prop="updateDate"
+ <el-table-column class="table_td" label="更新时间" prop="updateDate"></el-table-column>
<el-table-column prop="seller" label="操作" width="300">
- <div class="record" v-hasPermission="
+ <div class="record" v-hasPermission="
`procurement.procurementPlan.procurementInfo.view`
" @click="handleLook(scope.row)">查看</div>
<div class="record" v-hasPermission="
@@ -203,259 +114,189 @@
<!-- 页数 -->
- procurementPlan,
- procurementDel,
- procurementEditOther,
-} from '@/model/purchasingManagement/index'
-import { downloadFile } from '@/utils/batchDown'
+ procurementPlan,
+ procurementDel,
+ procurementEditOther,
+ } from '@/model/purchasingManagement/index'
- pickerOptions: {},
- // tranTypeKey: 1,
- contractNo: '',
- // inOutTaskNo: '',
- procurementPlan({
+ pickerOptions: {},
+ // tranTypeKey: 1,
+ contractNo: '',
+ // inOutTaskNo: '',
compId: localStorage.getItem('ws-pf_compId'),
- tranTypeKey: this.tranTypeKey,
- statusquery(state) {
+ procurementPlan({
+ tranTypeKey: this.tranTypeKey,
+ statusquery(state) {
- // //遍历数据
+ // //遍历数据
- this.pos = 0
- 查找到符合条件的数据时每次要把之前存储的数据 + 1
this.spanArr.push(1)
+ this.pos = 0
+ 查找到符合条件的数据时每次要把之前存储的数据 + 1
- //添加
- name: 'procurementPlanAdd',
- handleLook(row) {
- var handleDelete = ' '
- if (row.handleDelete == '') {
- this.$confirm(`采购计划删除后不可恢复,是否确定删除?`, {
- procurementDel({ id: row.id })
+ //添加
+ name: 'procurementPlanAdd',
- //返回
- revert() {
- this.$router.push({ path: 'warehouseManagementList' })
- var num = 1
- if (row.showFlag == 1) {
- status = '已隐藏'
- num = 0
- this.$confirm(`隐藏后交易信息不再展示给客户,是否确定隐藏?`, {
+ handleLook(row) {
+ var handleDelete = ' '
+ if (row.handleDelete == '') {}
+ this.$confirm(`采购计划删除后不可恢复,是否确定删除?`, {
.then(() => {
- procurementEditOther({
- showFlag: num,
+ procurementDel({
this.$notify.success({
title: '成功',
- message: '隐藏成功',
@@ -466,70 +307,146 @@ export default {
.catch(() => {
return false
- } else if (row.showFlag == 0) {
- status = '展示中'
- num = 1
- this.$confirm(`确定展示交易信息?`, {
+ //返回
+ revert() {
+ path: 'warehouseManagementList'
+ var num = 1
+ if (row.showFlag == 1) {
+ status = '已隐藏'
+ num = 0
+ this.$confirm(`隐藏后交易信息不再展示给客户,是否确定隐藏?`, {
- message: '操作成功',
+ procurementEditOther({
+ showFlag: num,
+ message: '隐藏成功',
+ } else if (row.showFlag == 0) {
+ status = '展示中'
+ num = 1
+ this.$confirm(`确定展示交易信息?`, {
+ message: '操作成功',
- // this.searchKeyWord = 1
- const { data } = await export1(
+ // this.searchKeyWord = 1
contractType: this.contractType,
currentPage: this.currentPage,
@@ -538,301 +455,341 @@ export default {
searchKeyWord: this.searchKeyWord,
startDate: this.startDate,
endDate: this.endDate,
- {},
- { responseType: 'blob' }
- ).toPromise()
- console.log('jin')
- if (row.procurementPlanType == '期货') {
- this.$confirm(`确定要修改基差?`, {
- flag: 1,
- // basisPrice: '-'+Math.abs(row.basisPrice),
- basisPrice: row.basisPrice,
+ console.log('jin')
+ if (row.procurementPlanType == '期货') {
+ this.$confirm(`确定要修改基差?`, {
- message: '基差修改成功',
+ flag: 1,
+ // basisPrice: '-'+Math.abs(row.basisPrice),
+ basisPrice: row.basisPrice,
+ message: '基差修改成功',
- } else if (row.procurementPlanType == '现货') {
- this.$confirm(`确定要修改单价?`, {
- flag: 2,
- procurementPrice: row.procurementPrice,
- message: '单价修改成功',
+ } else if (row.procurementPlanType == '现货') {
+ this.$confirm(`确定要修改单价?`, {
+ flag: 2,
+ procurementPrice: row.procurementPrice,
+ message: '单价修改成功',
-//分页
-.el-pagination {
-/deep/.el-pager li.active {
-/deep/.el-pager li:hover {
-.completed.el-button--default {
- background-color: #f6f7fc;
- margin-left: -20%;
-//执行样式
- margin-right: 3px;
- overflow: scroll;
- height: 93vh;
-.button-container {
- & > div {
+ .completed.el-button--default {
+ background-color: #f6f7fc;
+ margin-left: -20%;
+ //执行样式
+ margin-right: 3px;
+ height: 93vh;
display: flex;
flex-wrap: nowrap;
- & > span {
-.bg-left {
- padding-left: 30px;
-.title::before {
- width: 5px;
- height: 30px;
- background: #5473e8;
- left: 0;
- margin-top: 20px;
-//导航条样式
-.el-col-12 {
- border-radius: 4px 4px 1px 1px;
- line-height: 32px;
-.bg-bottom {
- margin-left: 85%;
-.but {
- margin-left: 30%;
- overflow: auto;
-.el-input--small {
- font-size: 13px;
- width: 390px;
-.base_header_layout .grid-content.right .find.el-button--primary {
- margin-top: -1px;
- margin-left: -6px;
-// .inputChenge>>>.el-input__inner{
-// border: none;
+ .bg-left {
+ padding-left: 30px;
+ .title::before {
+ width: 5px;
+ height: 30px;
+ background: #5473e8;
+ margin-top: 20px;
+ //导航条样式
+ .el-col-12 {
+ border-radius: 4px 4px 1px 1px;
+ line-height: 32px;
+ .bg-bottom {
+ margin-left: 85%;
+ .but {
+ margin-left: 30%;
+ .el-input--small {
+ font-size: 13px;
+ width: 390px;
+ .base_header_layout .grid-content.right .find.el-button--primary {
+ margin-top: -1px;
+ margin-left: -6px;
+ // .inputChenge>>>.el-input__inner{
+ // border: none;
@@ -1,89 +1,44 @@
//销售计划
- <template slot="left"> <ws-button type="primary" v-hasPermission="
+ <ws-button type="primary" v-hasPermission="
`sale.salePlan.add`
- " @click="handleAdd()">添加</ws-button> </template>
+ " @click="handleAdd()">添加</ws-button>
- prop="salePlanNo"
- label="销售计划编号"
- prop="plannedSaleVolume"
+ <el-table-column class="table_td" prop="salePlanNo" label="销售计划编号"></el-table-column>
+ <el-table-column class="table_td" prop="plannedSaleVolume" label="重量(吨)"></el-table-column>
<div v-if="scope.row.salePlanType == '期货'">
{{ '+'+scope.row.basisPrice }}
@@ -93,73 +48,41 @@
<div v-if="scope.row.salePlanType == '现货'">
- v-model="scope.row.salePrice"
+ <el-input v-model="scope.row.salePrice" v-if="scope.row.identification == 'true'"></el-input>
{{ scope.row.salePrice }}
- prop="sendWarehouse"
- label="出货库"
+ <el-table-column class="table_td" prop="sendWarehouse" label="出货库"></el-table-column>
@@ -169,27 +92,17 @@
`sale.salePlan.view`
`sale.salePlan.edit`
" @click="handleEdit(scope.row)">编辑</div>
@@ -199,262 +112,190 @@
- salePlan,
- saleDel,
- saleEditOther,
-} from '@/model/salesManagement/index'
+ salePlan,
+ saleDel,
+ saleEditOther,
+ } from '@/model/salesManagement/index'
- contractType: 1,
- inputs: 'inputs1',
- salePlan({
+ contractType: 1,
- searchKeyWord:this.searchKeyWord
+ inputs: 'inputs1',
+ salePlan({
+ searchKeyWord: this.searchKeyWord
- name: 'salesPlanAdd',
- this.$confirm(`销售计划删除后不可恢复,是否确定删除?`, {
- saleDel({ id: row.id })
+ name: 'salesPlanAdd',
+ this.$confirm(`销售计划删除后不可恢复,是否确定删除?`, {
- saleEditOther({
+ saleDel({
@@ -465,67 +306,148 @@ export default {
+ saleEditOther({
@@ -534,342 +456,382 @@ export default {
}_销售合同`,
- if(row.salePlanType == '期货'){
- row.basisPrice > 10000 ||
- row.basisPrice < 1 ||
- (String(row.basisPrice).indexOf(
- '.'
- ) != -1 &&
- String(row.basisPrice).length -
- ) +
- 1) >
- message: '基差输入错误',
- if(row.salePlanType == '现货'){
- row.salePrice > 100000 ||
- row.salePrice < 1 ||
- (String(row.salePrice).indexOf(
- String(row.salePrice).length -
+ if (row.salePlanType == '期货') {
+ row.basisPrice > 10000 ||
+ row.basisPrice < 1 ||
+ (String(row.basisPrice).indexOf(
+ '.'
+ ) != -1 &&
+ String(row.basisPrice).length -
+ ) +
+ 1) >
+ message: '基差输入错误',
+ if (row.salePlanType == '现货') {
+ row.salePrice > 100000 ||
+ row.salePrice < 1 ||
(String(row.salePrice).indexOf(
- message: '单价输入错误',
- if (row.salePlanType == '期货') {
+ String(row.salePrice).length -
+ (String(row.salePrice).indexOf(
+ message: '单价输入错误',
- } else if (row.salePlanType == '现货') {
- salePrice: row.salePrice,
+ } else if (row.salePlanType == '现货') {
+ salePrice: row.salePrice,
margin-left: 0;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
margin-top: -1px;
margin-left: -6px;
-.inputs1 {
+ .inputs1 {
width: 30px;
@@ -6,63 +6,30 @@
<span style="width: 70px; display: inline-block;color: #8890B1;">状态:</span>
- v-for="item in taskTypeList"
- style="color: #8890B1;"
+ style="color: #8890B1;" />
- class='findValue'
- placeholder="可按移库任务编号、发货库和收货库查找"
+ <ws-input class='findValue' v-model="searchKeyWord" placeholder="可按移库任务编号、发货库和收货库查找" clearable maxlength="500"
- :data="gainList.records"
+ <el-table class="wenzi" :data="gainList.records" style="width: 100%" height="calc(100% - 110px)">
- prop="moveTaskNo"
- label="移库任务编号"
+ <el-table-column prop="moveTaskNo" label="移库任务编号"></el-table-column>
<el-table-column prop="warehouseName" label="发货库"> </el-table-column>
<el-table-column prop="warehouseNameIn" label="收货库">
@@ -74,63 +41,42 @@
<el-table-column prop="storageVolume" label="入库量(吨)">
- <template slot-scope="scope">{{scope.row.storageVolume > 0 ? Number(scope.row.storageVolume).toFixed(3):""}}</template>
+ <template
+ slot-scope="scope">{{scope.row.storageVolume > 0 ? Number(scope.row.storageVolume).toFixed(3):""}}</template>
<el-table-column prop="stockReturnCount" label="退库量(吨)">
- placement="top"
- :width="160"
- trigger="hover"
- <!-- <span class="executory"> -->
- {{ scope.row.stockReturnCount }}
- <!-- </span> -->
- <div v-for="(item,index) in scope.row.inOutWarehouseTaskList" :key="index">
- <span style="margin-left:6px;">{{ item.warehouseName }}</span>
- <span style="margin-left:20px;">{{ item.weight }}吨</span>
+ <el-popover placement="top" :width="160" trigger="hover" visible-arrow="false">
+ <!-- <span class="executory"> -->
+ {{ scope.row.stockReturnCount }}
+ <!-- </span> -->
+ <div v-for="(item,index) in scope.row.inOutWarehouseTaskList" :key="index">
+ <span style="margin-left:6px;">{{ item.warehouseName }}</span>
+ <span style="margin-left:20px;">{{ item.weight }}吨</span>
<el-table-column prop="transportLoss" label="运输损耗(吨)">
- <div v-show="scope.row.taskStatus == '已完成'" >
- {{ scope.row.weight - scope.row.weightIn - scope.row.stockReturnCount}}
+ <div v-show="scope.row.taskStatus == '已完成'">
+ {{ scope.row.weight - scope.row.weightIn - scope.row.stockReturnCount}}
<el-table-column prop="publisher" label="发布者"> </el-table-column>
<el-table-column prop="taskStatus" label="状态">
- v-if="scope.row.taskStatus == '待审核'"
- class="executory"
- ></span>
- v-if="scope.row.taskStatus == '执行中'"
- class="inExecution"
- v-if="scope.row.taskStatus == '已完成'"
- class="done"
- ></span
- >{{ scope.row.taskStatus }}
+ <span v-if="scope.row.taskStatus == '待审核'" class="executory"></span>
+ <span v-if="scope.row.taskStatus == '执行中'" class="inExecution"></span>
+ <span v-if="scope.row.taskStatus == '已完成'" class="done"></span>{{ scope.row.taskStatus }}
@@ -141,10 +87,7 @@
{{ item.operateUser }}<br />{{ item.dealMsg }}
@@ -164,323 +107,350 @@
<el-table-column prop="establishDate" label="发布时间" width="150">
- <el-table-column prop="seller" label="详情" >
+ <el-table-column prop="seller" label="详情">
- @click="see(scope.row)"
+ <div class="record" @click="see(scope.row)">
- :page-size="pageSize"
+ :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
-import { moveList,movestates} from '@/model/tasksport/index'
+ moveList,
+ movestates
+ } from '@/model/tasksport/index'
- gainList: [],
- searchType: 3,
- searchTypeText: '执行中',
- taskTypeKey: 3,
- moveTaskNo: '',
- taskTypeList: [
- { value: '执行中', type: 3 },
- { value: '已驳回', type: 2 },
- { value: '已完成', type: 4 },
- { value: '全部任务', type: '' },
- moveList({
+ gainList: [],
+ searchType: 3,
+ searchTypeText: '执行中',
+ taskTypeKey: 3,
+ moveTaskNo: '',
+ value: '执行中',
+ value: '已驳回',
+ type: 4
+ value: '全部任务',
- taskTypeKey: this.taskTypeKey,
- searchType : this.searchType,
- this.gainList = response
- this.currentPage = response.current
- this.pageSize = response.size
- see(item) {
- path: 'moveWarehouseTaskLook',
- moveTaskNo: item.moveTaskNo,
+ moveList({
+ taskTypeKey: this.taskTypeKey,
+ this.gainList = response
+ this.currentPage = response.current
+ this.pageSize = response.size
+ see(item) {
+ path: 'moveWarehouseTaskLook',
+ moveTaskNo: item.moveTaskNo,
- if (row.taskStatus == '待审核' || row.taskStatus == '已完成') {
- } else if (row.taskStatus == '执行中') {
- movestates({ id: row.id })
+ if (row.taskStatus == '待审核' || row.taskStatus == '已完成') {
+ } else if (row.taskStatus == '执行中') {
+ movestates({
-.el-select{
margin-right: 10px;
-/deep/.typeselect .el-input__inner{
- color: #8890B1;
+ color: #8890B1;
@@ -3,135 +3,74 @@
<BaseHeaderLayout :leftSpan="20">
- class="but"
- @click="handleAdd()"
+ <ws-button class="but" type="primary" @click="handleAdd()" v-hasPermission="
`${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
- 执行中</ws-button
- @click="handleLook()"
+ 执行中</ws-button>
+ <ws-button class="but" @click="handleLook()" v-hasPermission="
- >已完成</ws-button
- @click="handleEdit()"
+ ">已完成</ws-button>
+ <ws-button class="but" @click="handleEdit()" v-hasPermission="
- >全部任务</ws-button
+ ">全部任务</ws-button>
- v-model="deptBudgetList.inOutDate"
- placeholder="请选择开始日期"
+ <ws-date-picker v-model="deptBudgetList.inOutDate" type="date" placeholder="请选择开始日期"
+ value-format="yyyy-MM-dd" />
<span>至</span>
- placeholder="请选择结束日期"
- placeholder="可按照合同编号、买方名称、卖方名称进行查找"
+ <ws-date-picker v-model="deptBudgetList.inOutDate" type="date" placeholder="请选择结束日期"
+ <ws-input v-model="searchKeyWord" placeholder="可按照合同编号、买方名称、卖方名称进行查找" clearable maxlength="500" type="input"
- class="find"
- @click="find()"
+ <ws-button class="find" type="primary" @click="find()" v-hasPermission="
+ "><img width="16" height="16" style="
- :data="warehouseList"
+ <el-table class="wenzi" :data="warehouseList" style="width: 100%; margin-top: 20px" height="780">
<el-table-column prop="warehouseName" label="序号" width="80">
<el-table-column prop="binNumber" label="运输任务编号" width="80">
<el-table-column prop="capacity" label="货名">
- v-if="scope.row.capacity != 'null' && scope.row.capacity != null"
+ <div v-if="scope.row.capacity != 'null' && scope.row.capacity != null">
{{ scope.row.capacity }}
<el-table-column class="table_td" label="重量(吨)">
- style="height: 24px"
- v-for="(item, i) in scope.row.warehouseNumViewList"
+ <div style="height: 24px" v-for="(item, i) in scope.row.warehouseNumViewList">
{{ item.inNetWeight }}
<el-table-column class="table_td" label="发货" width="300">
{{ item.outNetWeight }}
<el-table-column class="table_td" label="收货" width="300">
{{ item.storage }}
- <el-table-column class="table_td" label="运输周期" width="160">
+ <el-table-column class="table_td" label="运输周期" width="160">
@@ -139,25 +78,12 @@
- v-if="scope.row.status == '待执行'"
- v-if="scope.row.status == '执行中'"
- <span v-if="scope.row.status == '已完成'" class="done"></span
- >{{ scope.row.status }}
@@ -168,10 +94,7 @@
@@ -179,44 +102,27 @@
<el-table-column class="table_td" label="接单日期">
- class="completed"
+ <ws-button class="completed" @click="nocomplete(scope.row)" v-hasPermission="
查看({{ scope.row.number }})
</ws-button>
- class="putstorage"
- @click="warehousing(scope.row)"
+ <ws-button class="putstorage" @click="warehousing(scope.row)" v-hasPermission="
车次
@@ -232,314 +138,335 @@
-} from '@/model/warehouse/index'
+ } from '@/model/warehouse/index'
- //出库
- delivery(item) {
- path: 'warehouseManagementDelivery',
- baseId: item.warehouseId,
- positionId: item.binNumberId,
- warehouseName: item.warehouseName,
- binNumber: item.binNumber,
- capacity: item.capacity,
- //派车
- warehousing(item) {
- var free = 0
- for (var i = 0; i < item.warehouseNumViewList.length; i++) {
- free += Number(item.warehouseNumViewList[i].storage)
- path: 'tranManagementVehicleDispatching',
- capacity: item.capacity - free,
+ //出库
+ delivery(item) {
+ path: 'warehouseManagementDelivery',
+ baseId: item.warehouseId,
+ positionId: item.binNumberId,
+ warehouseName: item.warehouseName,
+ binNumber: item.binNumber,
+ capacity: item.capacity,
+ //派车
+ warehousing(item) {
+ var free = 0
+ for (var i = 0; i < item.warehouseNumViewList.length; i++) {
+ free += Number(item.warehouseNumViewList[i].storage)
+ path: 'tranManagementVehicleDispatching',
+ capacity: item.capacity - free,
- path: 'tranManagementVehicleLook',
- // query: {
- // baseId: row.warehouseId,
- // positionId: row.binNumberId,
- // warehouseName: row.warehouseName,
- // binNumber: row.binNumber,
- //记录
- record(item) {
- name: 'warehouseManagementRecord',
- params: {
- remark: item.remark,
- //盘损
- loss(item) {
- path: 'warehouseManagementIoss',
- this.$router.push({ path: 'tranManagementVehicleLook' })
- this.$router.push({ path: 'tranManagementTransportAdd' })
- handleEdit() {
- this.$router.push({ path: 'tranManagementTransportEdit' })
- // 派车
- warehousing() {
- this.$router.push({ path: 'tranManagementVehicleDispatching' })
+ path: 'tranManagementVehicleLook',
+ // query: {
+ // baseId: row.warehouseId,
+ // positionId: row.binNumberId,
+ // warehouseName: row.warehouseName,
+ // binNumber: row.binNumber,
+ //记录
+ record(item) {
+ name: 'warehouseManagementRecord',
+ params: {
+ remark: item.remark,
+ //盘损
+ loss(item) {
+ path: 'warehouseManagementIoss',
+ path: 'tranManagementVehicleLook'
+ path: 'tranManagementTransportAdd'
+ handleEdit() {
+ path: 'tranManagementTransportEdit'
+ // 派车
+ warehousing() {
+ path: 'tranManagementVehicleDispatching'
@@ -548,99 +475,114 @@ export default {
- height: 150px;
- margin-top: 150px;
+ height: 150px;
+ margin-top: 150px;
@@ -3,71 +3,36 @@
`transportationTask.transportation.transportationInfo.add`
- >添加</ws-button>
+ ">添加</ws-button>
<span style="width: 150px; display: inline-block;color: #8890B1;">状态:</span>
<span style="width: 150px; display: inline-block;color: #8890B1;">起点:</span>
<el-input label="起点" placeholder="请输入起点" clearable maxlength="200" type="input" v-model="start"></el-input>
<span style="width: 150px; display: inline-block;color: #8890B1;">终点:</span>
<el-input label="终点" placeholder="请输入终点" clearable maxlength="200" type="input" v-model="end"></el-input>
- placeholder="可按合同编号或运输任务编号查找"
+ <el-input @keyup.enter.native="lookUp()" v-model="searchKeyWord" placeholder="可按合同编号或运输任务编号查找" clearable
<div class="search">
<ws-button class="find" type="primary" @click="lookUp()">
+ <img width="16" height="16" style="
- alt
+ " src="../../../public/img/sousuo.png" alt />
- style="width: 100%; "
+ <el-table class="wenzi" :data="gainList.records" style="width: 100%; " height="calc(100% - 110px)">
@@ -76,7 +41,7 @@
<el-table-column prop="taskNo" label="运输任务编号" width="140"></el-table-column>
<el-table-column prop="contractNo" label="合同编号" width="160"></el-table-column>
- <el-table-column prop=" weight" class="table_td" label="货物(吨数)" width="130">
+ <el-table-column prop=" weight" class="table_td" label="货物(吨数)" width="130">
<template slot-scope="scope">{{ scope.row.goodsName }}({{ scope.row.weight }})</template>
<el-table-column prop="tranType" class="table_td" label="运输方式" width="120"></el-table-column>
@@ -97,13 +62,7 @@
<el-table-column prop="status" label="状态" width="100">
<span v-if="scope.row.status == '待执行'" class="executory"></span>
@@ -128,512 +87,541 @@
+ src="../../../public/img/edit.png" @click="editClick(scope.row)" alt />
<el-table-column prop="seller" label="操作" width="160">
`transportationTask.transportation.transportationInfo.view`
`transportationTask.transportation.transportationInfo.edit`
- class="record1"
+ <div class="record1" @click="deleteclick(scope.row)" v-hasPermission="
`transportationTask.transportation.transportationInfo.delete`
+ :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal"></el-pagination>
-import { gain, deltran,states } from '@/model/tasksport/index'
- billoperatehis
-} from '@/model/contarct/index'
- Pagination
+ gain,
+ deltran,
+ states
+ Pagination
- primary: 1,
- deptBudgetTotal:0,
- disabledDate: time => {
- { value: '执行中', type: 1 },
- { value: '已完成', type: 2 },
- { value: '全部任务', type: 3 },
- start:'',
- end:'',
+ primary: 1,
+ disabledDate: time => {
+ start: '',
+ end: '',
- this.$confirm(`运输任务删除后不可恢复,是否确定删除?`, {
- deltran({
id: row.id
- gain({
- start:this.start,
- end:this.end,
- path: 'tranManagementTransportEdit',
- id: item.id
+ this.$confirm(`运输任务删除后不可恢复,是否确定删除?`, {
+ deltran({
+ gain({
+ start: this.start,
+ end: this.end,
- path: 'tranManagementLook',
- capacity: item.capacity - free
+ path: 'tranManagementTransportEdit',
+ id: item.id
+ path: 'tranManagementLook',
+ capacity: item.capacity - free
+ path: 'tranManagementLook'
+ 'H+': date.getHours().toString() // 时
- this.$router.push({ path: 'tranManagementLook' })
- 'H+': date.getHours().toString() // 时
- states({ id: row.id })
- message: '状态修改成功'
+ states({
+ message: '状态修改成功'
- query: { id: row.id }
-.el-pagination{
-.adjustment,.record1 {
- border-right: 1px solid #E9ECF7;
-.findValue.el-input {
- margin: 0;
-.el-input {
- width: 70%;
-/deep/.search .el-button--small {
- padding: 0;
-/deep/.el-row {
+ border-right: 1px solid #E9ECF7;
+ .findValue.el-input {
+ .el-input {
+ width: 70%;
+ /deep/.search .el-button--small {
+ padding: 0;
+ /deep/.el-row {
-webkit-box-sizing: border-box;
height: 50px;
-/deep/.el-col-12 {
+ /deep/.el-col-12 {
width: 50%;
background-color: #5878e8;
border-color: #5878e8;
white-space: nowrap;
padding: 2px 5px;
color: #303133;
font-weight: 700;
-text-align: center;
-// 操作历史
-.vertical-circle {
-.vertical-circle:first-child {
-.vertical-text {
-.vertical-line {
+ // 操作历史
@@ -14,7 +14,8 @@
<ws-option v-for="item in taskTypeList" :key="item.value" :label="item.value" :value="item.value"
style="color: #8890b1" />
- <ws-input @keyup.enter.native="find()" class='findValue' v-model="searchKeyWord" placeholder="可按合同编号或任务编号查找" clearable maxlength="500" type="input"></ws-input>
+ <ws-input @keyup.enter.native="find()" class='findValue' v-model="searchKeyWord" placeholder="可按合同编号或任务编号查找"
<img width="16" height="16" style="
@@ -25,8 +26,7 @@
- <div class="navv">
- <el-table class="wenzi" :data="gainList.records" style="width: 100%" height="780">
@@ -87,10 +87,10 @@
`warehouseManagement.warehouse.warehouseInfoTask.View`
">查看</span>
- <span v-hasPermission="`warehouseManagement.warehouse.warehouseInfoTask.audit`">
- <el-divider direction="vertical" v-if="scope.row.taskStatus == '待审核'"></el-divider>
+ <span v-hasPermission="`warehouseManagement.warehouse.warehouseInfoTask.audit`">
+ <el-divider direction="vertical" v-if="scope.row.taskStatus == '待审核'"></el-divider>
<span class="corles" v-hasPermission="
`warehouseManagement.warehouse.warehouseInfoTask.audit`
" v-if="scope.row.taskStatus == '待审核'" @click="audit(scope.row)">审核</span>
@@ -106,10 +106,10 @@
scope.row.taskStatus == '执行中' ||
scope.row.taskStatus == '已驳回'
" @click="delivery(scope.row)">编辑</span>
- <span v-hasPermission="`warehouseManagement.warehouse.warehouseInfoTask.delete`">
- <el-divider direction="vertical" v-if="scope.row.taskId == null"></el-divider>
+ <span v-hasPermission="`warehouseManagement.warehouse.warehouseInfoTask.delete`">
+ <el-divider direction="vertical" v-if="scope.row.taskId == null"></el-divider>
`warehouseManagement.warehouse.warehouseInfoTask.delete`
" v-if="scope.row.taskId == null" @click="deleteclick(scope.row)">删除</span>
@@ -118,7 +118,6 @@
:page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal"></el-pagination>
@@ -3,148 +3,72 @@
- <ws-button type="primary" @click="handleAdd()"><img
+ <ws-button type="primary" @click="handleAdd()"><img width="13" height="13" style="
top: 2px;
- />添加</ws-button>
+ " src="../../../public/img/header-add.png" alt="" />添加</ws-button>
- <span style="display: inline-block; width: 65px; color: #8890b1"
- >城市:</span
- <el-cascader
- :options="options_"
- size="large"
- placeholder="请选择所在城市"
- style="width: 30%"
- placeholder="可按司机姓名、手机号、车牌号、身份证号查找"
- maxlength="200"
- class="findValue findinput"
- @keyup.enter.native="handleLook()"
+ <span style="display: inline-block; width: 65px; color: #8890b1">城市:</span>
+ <el-cascader :options="options_" v-model="searchTypeText" clearable size="large" placeholder="请选择所在城市"
+ style="width: 30%" @change="selecttaskType" />
+ <ws-input v-model="searchKeyWord" placeholder="可按司机姓名、手机号、车牌号、身份证号查找" clearable maxlength="200" type="input"
+ class="findValue findinput" @keyup.enter.native="handleLook()"></ws-input>
<ws-button class='find' type="primary" @click="handleLook()">
- width="14"
+ <img width="14" height="16" style="
+ " src="../../../public/img/sousuo.png" alt="" />
- v-if="item.accountTypeFlag == 1"
+ v-if="item.accountTypeFlag == 1" label="收款人" span="1" prop="payeeName" class="el-car name">
{{ item.payeeName }}
- v-if="item.accountTypeFlag == 2"
+ v-if="item.accountTypeFlag == 2" label="企业名称" span="1" prop="compName" class="el-car">
+ v-if="item.accountTypeFlag == 1" label="身份证" span="1" prop="payeeNumberCard" class="el-car card">
@@ -166,18 +90,10 @@
<el-table-column prop="carNumber" label="车牌号" width="160">
+ <ws-select v-model="scope.row.carNumber" placeholder="" class="typeselect"
+ @change="selectcar($event, scope.row)">
@@ -193,98 +109,48 @@
<el-table-column label="结款账户" width="120">
<el-table-column prop="addressUrl" label="附件">
- <el-table-column prop="address" label="操作" width="300" >
+ <el-table-column prop="address" label="操作" width="300">
- <el-button size="medium" type="text" class="record" @click="look(scope.row)"
- >查看</el-button
- <el-button size="medium" type="text" class="record" @click="edit(scope.row)"
- <el-button size="medium" type="text" class="record" @click="deletes(scope.row)"
- v-if="scope.row.disableStatusFlag != 1"
- @click="stop(scope.row)"
- >禁用</el-button
+ <el-button size="medium" type="text" class="record" @click="look(scope.row)">查看</el-button>
+ <el-button size="medium" type="text" class="record" @click="edit(scope.row)">编辑</el-button>
+ <el-button size="medium" type="text" class="record" @click="deletes(scope.row)">删除</el-button>
+ <el-button v-if="scope.row.disableStatusFlag != 1" class="record1" size="medium" type="text"
+ @click="stop(scope.row)">禁用</el-button>
<!-- <el-tooltip
class="item record"
effect="dark"
:content="scope.row.disableReasons"
placement="right-start"
> -->
- v-if="scope.row.disableStatusFlag == 1"
- style="font-size:14px;color:#F83535;"
- @click="relieve(scope.row)"
- >已禁用</el-button
+ <el-button v-if="scope.row.disableStatusFlag == 1" class="record1" size="medium" type="text"
+ style="font-size:14px;color:#F83535;" @click="relieve(scope.row)">已禁用</el-button>
<!-- </el-tooltip> -->
<!-- <el-dialog v-model="outerVisible">
<el-input
type="textarea"
@@ -300,18 +166,9 @@
- v-model="outerVisible"
- title="禁用原因"
- maxlength="50"
- placeholder="请输入禁用原因,不超过50个字"
- v-model="disablieForm.disableReasons"
+ <WinseaContentModal v-model="outerVisible" title="禁用原因" @on-cancel="handleClose">
+ <el-input type="textarea" :rows="2" maxlength="50" placeholder="请输入禁用原因,不超过50个字"
+ v-model="disablieForm.disableReasons">
<div class="dialog-footer">
<el-button @click="outerVisible = false">取 消</el-button>
@@ -319,454 +176,485 @@
- selectDriver,
- delDriver,
- disableDriver,
-} from '@/model/transport/index'
+ selectDriver,
+ delDriver,
+ disableDriver,
+ } from '@/model/transport/index'
- searchTypeText: [],
- pcFlag:1,
- console.log(11111)
- this.$router.push({ name: 'driverManagementadd' })
+ searchTypeText: [],
- disableReasons() {
- this.outerVisible = false
- this.disablieForm.disableStatusFlag = 0
- disableDriver(this.disablieForm)
- message: '禁用成功',
- relieve(row) {
- this.disablieForm.disableStatusFlag = 1
- message: '解除禁用成功',
+ console.log(11111)
+ name: 'driverManagementadd'
- deletes(row) {
- this.$confirm(`司机信息删除后不可恢复,是否确定删除?`, '提示', {
- delDriver({ id: row.id })
+ disableReasons() {
+ this.outerVisible = false
+ this.disablieForm.disableStatusFlag = 0
+ disableDriver(this.disablieForm)
+ message: '禁用成功',
+ relieve(row) {
+ this.disablieForm.disableStatusFlag = 1
+ message: '解除禁用成功',
- selectDriver({
- pcFlag:this.pcFlag,
- residentCityProvincial: this.residentCityProvincial,
- residentCityMunicipal: this.residentCityMunicipal,
+ deletes(row) {
+ this.$confirm(`司机信息删除后不可恢复,是否确定删除?`, '提示', {
+ delDriver({
+ selectDriver({
+ residentCityProvincial: this.residentCityProvincial,
+ residentCityMunicipal: this.residentCityMunicipal,
- this.residentCityProvincial = CodeToText[e[0]]
- this.residentCityMunicipal = CodeToText[e[1]]
- // this.selectedOptions = e
+ this.residentCityProvincial = CodeToText[e[0]]
+ this.residentCityMunicipal = CodeToText[e[1]]
+ // this.selectedOptions = e
- margin-left:-10px;
-.adjustment ,.record1{
-.record1{
-/deep/.el-table td{
@@ -5,88 +5,35 @@
- <span style="width: 142px; display: inline-block; color: #8890b1"
- >状态:</span
- >类型:</span
- v-model="tranTypeKeyText"
- @change="selecttranType"
- :value="tranTypeKey"
- v-for="item in tranTypeList"
+ <span style="width: 142px; display: inline-block; color: #8890b1">类型:</span>
+ <ws-select v-model="tranTypeKeyText" placeholder="" class="typeselect" @change="selecttranType"
+ :value="tranTypeKey">
+ <ws-option v-for="item in tranTypeList" :key="item.value" :label="item.value" :value="item.value"
- <span style="display: inline-block; width: 70px; color: #8890b1"
- >接单日期:</span
+ <span style="display: inline-block; width: 70px; color: #8890b1">接单日期:</span>
- <el-date-picker
- v-model="inOutDate"
- type="daterange"
- align="right"
- unlink-panels
- range-separator="至"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
+ <el-date-picker v-model="inOutDate" type="daterange" align="right" unlink-panels range-separator="至"
+ start-placeholder="开始日期" end-placeholder="结束日期">
- placeholder="可按发货人、收货人、任务编号查找"
+ <ws-input v-model="searchKeyWord" placeholder="可按发货人、收货人、任务编号查找" clearable maxlength="500" type="input"
+ <el-table class="wenzi" :data="warehouseList.records" style="width: 100%" height="calc(100% - 110px)">
<el-table-column type="index" label="序号" width="80">
@@ -106,48 +53,27 @@
<el-table-column class="table_td" label="发货" prop="send" width="300">
- <span style='white-space :pre-wrap;' v-html="scope.row.send"></span>
+ <span style='white-space :pre-wrap;' v-html="scope.row.send"></span>
<el-table-column class="table_td" label="收货" prop="receive" width="300">
- <span style='white-space :pre-wrap;' v-html="scope.row.receive"></span>
+ <span style='white-space :pre-wrap;' v-html="scope.row.receive"></span>
- label="运输周期"
- prop="tranCycle"
- width="160"
+ <el-table-column class="table_td" label="运输周期" prop="tranCycle" width="160">
{{ scope.row.deliveryDateStart }} ~ {{ scope.row.deliveryDateEnd }}
- v-if="scope.row.receivingStatus == '待执行'"
- v-if="scope.row.receivingStatus == '执行中'"
- v-if="scope.row.receivingStatus == '已完货'"
- >{{ scope.row.receivingStatus }}
+ <span v-if="scope.row.receivingStatus == '待执行'" class="executory"></span>
+ <span v-if="scope.row.receivingStatus == '执行中'" class="inExecution"></span>
+ <span v-if="scope.row.receivingStatus == '已完货'" class="done"></span>{{ scope.row.receivingStatus }}
@@ -158,10 +84,7 @@
@@ -169,14 +92,8 @@
<el-table-column class="table_td" label="接单时间" prop="createDate" width="90">
@@ -195,495 +112,546 @@
<!-- 分页 -->
-import { shippingList, stateRec } from '@/model/transport/index'
+ shippingList,
+ stateRec
- feedbackFlag: 4,
- tranTypeKey:5,
- tranTypeKeyText: '全部',
- { value: '执行中', type: 4 },
- { value: '已完货', type: 5 },
- { value: '全部任务', type: 6 },
- tranTypeList: [
- { value: '汽运', type: 1 },
- { value: '火运', type: 2 },
- { value: '船运', type: 3 },
- { value: '他运', type: 4 },
- { value: '全部', type: 5 },
- primary: '1',
- pickerOptions: [],
- mounted() {
- //接口
- shippingList({
+ feedbackFlag: 4,
+ tranTypeKey: 5,
+ tranTypeKeyText: '全部',
+ value: '已完货',
+ type: 5
+ type: 6
+ tranTypeList: [{
+ value: '汽运',
+ value: '火运',
+ value: '船运',
+ value: '他运',
+ primary: '1',
- tranTypeKey:this.tranTypeKey,
- feedbackFlag: this.feedbackFlag,
- // this.deptCircularPage.currentPage = response.current
- // this.deptCircularPage.pageSize = response.size
- // statusquery(status){
- // if (status == 1) {
- // this.primary = 1
- // } else if (status == 2) {
- // this.primary = 2
- // this.primary = 3
- // this.feedbackFlag = status
+ pickerOptions: [],
+ mounted() {
+ //接口
+ shippingList({
+ feedbackFlag: this.feedbackFlag,
+ // this.deptCircularPage.currentPage = response.current
+ // this.deptCircularPage.pageSize = response.size
+ // statusquery(status){
+ // if (status == 1) {
+ // this.primary = 1
+ // } else if (status == 2) {
+ // this.primary = 2
+ // this.primary = 3
+ // this.feedbackFlag = status
- trainSee(row) {
- if (row.tranType == '汽运') {
- path: 'tranManagementReceivingloadingLook',
- } else if (row.tranType == '船运') {
- path: 'tranManagementUnShippingFeedbackLook',
- else if (row.tranType == '火运') {
- path: 'tranManagementFireReceivingFeedbackLook',
- }else if (row.tranType == '他运') {
- path: 'tranManagementthirdpartnarReceivingLook',
+ trainSee(row) {
+ if (row.tranType == '汽运') {
+ path: 'tranManagementReceivingloadingLook',
+ } else if (row.tranType == '船运') {
+ path: 'tranManagementUnShippingFeedbackLook',
+ } else if (row.tranType == '火运') {
+ path: 'tranManagementFireReceivingFeedbackLook',
+ } else if (row.tranType == '他运') {
+ path: 'tranManagementthirdpartnarReceivingLook',
- //反馈
- feedback(row) {
- path: 'tranManagementReceivingloading',
- if (row.tranType == '火运') {
- path: 'tranManagementFireReceivingFeedback',
- path: 'tranManagementUnShippingFeedback',
- path: 'tranManagementthirdpartnarReceiving',
+ //反馈
+ feedback(row) {
+ path: 'tranManagementReceivingloading',
- if (row.receivingStatus == '待执行' || row.receivingStatus == '已完货') {
- } else if (row.receivingStatus == '执行中') {
- status = '已完货'
- stateRec({ id: row.id })
+ if (row.tranType == '火运') {
+ path: 'tranManagementFireReceivingFeedback',
+ path: 'tranManagementUnShippingFeedback',
+ path: 'tranManagementthirdpartnarReceiving',
+ if (row.receivingStatus == '待执行' || row.receivingStatus == '已完货') {
+ } else if (row.receivingStatus == '执行中') {
+ status = '已完货'
+ stateRec({
- this.feedbackFlag = this.taskTypeList[i].type
+ this.feedbackFlag = this.taskTypeList[i].type
- selecttranType(e) {
- for (var i = 0; i < this.tranTypeList.length; i++) {
- if (this.tranTypeList[i].value == e) {
- this.tranTypeKey = this.tranTypeList[i].type
+ selecttranType(e) {
+ for (var i = 0; i < this.tranTypeList.length; i++) {
+ if (this.tranTypeList[i].value == e) {
+ this.tranTypeKey = this.tranTypeList[i].type
- if (this.inOutDate != null) {
- if (this.inOutDate.length > 0) {
- this.startDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[0])
- this.endDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[1])
+ if (this.inOutDate != null) {
+ if (this.inOutDate.length > 0) {
+ this.startDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[0])
+ this.endDate = this.dateFormat('YYYY-mm-dd', this.inOutDate[1])
-.record1,
+ .record1,
+ // .record, .adjustment {
+ // display: inline-block;
+ // color: #5878e8;
+ // padding: 0 4px !important;
+ // position: relative;
+ // font-size: 14px;
-// .record, .adjustment {
-// display: inline-block;
-// color: #5878e8;
-// padding: 0 4px !important;
-// position: relative;
-// font-size: 14px;
@@ -5,70 +5,29 @@
<el-table-column class="table_td" prop="processNo" label="运输任务编号">
@@ -78,62 +37,39 @@
<el-table-column class="table_td" label="重量(吨)" prop="weight">
- <el-table-column class="table_td" label="运输周期" prop="tranCycle" width="160">
- v-if="scope.row.processStatus == '待执行'"
- v-if="scope.row.processStatus == '执行中'"
- v-if="scope.row.processStatus == '已完成'"
- >{{ scope.row.processStatus }}
+ <span v-if="scope.row.processStatus == '待执行'" class="executory"></span>
+ <span v-if="scope.row.processStatus == '执行中'" class="inExecution"></span>
+ <span v-if="scope.row.processStatus == '已完成'" class="done"></span>{{ scope.row.processStatus }}
<p style="margin-top: 0; padding-left: 10px">历史记录</p>
@@ -141,14 +77,8 @@
<el-table-column class="table_td" label="接单时间" prop="createDate">
@@ -165,427 +95,466 @@
-import { shippingList, alsostate } from '@/model/transport/index'
+ alsostate
- tranTypeKey: 3,
- // for (let i = 0; i < response.records.length; i++) {
- // response.records[i].send=response.records[i].send.replace(/\n/g, '<br>')
- // response.records[i].receive=response.records[i].receive.replace(/\n/g, '<br>')
+ tranTypeKey: 3,
+ // for (let i = 0; i < response.records.length; i++) {
+ // response.records[i].send=response.records[i].send.replace(/\n/g, '<br>')
+ // response.records[i].receive=response.records[i].receive.replace(/\n/g, '<br>')
- name: 'tshippingDispatchingview',
+ name: 'tshippingDispatchingview',
- // 派船
- shipping(row) {
- name: 'shippingDispatchingcar',
+ // 派船
+ shipping(row) {
+ name: 'shippingDispatchingcar',
@@ -5,87 +5,35 @@
- <span style="width: 160px; display: inline-block; color: #8890b1"
+ <span style="width: 160px; display: inline-block; color: #8890b1">状态:</span>
+ <span style="width: 160px; display: inline-block; color: #8890b1">类型:</span>
+ <el-table class="wenzi" :data="tranManagementList.records" style="width: 100%; margin-top: 20px" height="calc(100% - 110px)">
@@ -93,7 +41,7 @@
<el-table-column prop="processNo" label="运输任务编号/合同编号" width="140">
<span v-if="scope.row.processNo">{{ scope.row.processNo }}</span>
<span v-else>{{ scope.row.contractNo }}</span>
@@ -101,14 +49,14 @@
<el-table-column prop="tranType" label="运输方式"> </el-table-column>
<el-table-column prop="goodsName" label="货名"> </el-table-column>
<el-table-column prop="weight" label="重量(吨)"> </el-table-column>
- <el-table-column prop="send" label="发货" width="300">
+ <el-table-column prop="send" label="发货" width="300">
- <el-table-column prop="receive" label="收货" width="300">
+ <el-table-column prop="receive" label="收货" width="300">
<el-table-column prop="tranCycle" label="运输周期" width="160">
@@ -118,46 +66,23 @@
<el-table-column prop="feedbackStatus" label="状态">
- v-if="scope.row.feedbackStatus == '待执行'"
- v-if="scope.row.feedbackStatus == '执行中'"
- v-if="scope.row.feedbackStatus == '已完货'"
- >{{ scope.row.feedbackStatus }}
+ <span v-if="scope.row.feedbackStatus == '待执行'" class="executory"></span>
+ <span v-if="scope.row.feedbackStatus == '执行中'" class="inExecution"></span>
+ <span v-if="scope.row.feedbackStatus == '已完货'" class="done"></span>{{ scope.row.feedbackStatus }}
<p style="margin-top: 0; padding-left: 10px">XXXXX</p>
@@ -165,14 +90,8 @@
<el-table-column prop="createDate" class="table_td" label="接单时间" width="90">
@@ -189,431 +108,475 @@
-import { automobileList, state } from '@/model/transport/index'
+ automobileList,
+ state
- // tranTypeKey: 2,
- feedbackFlag: 1,
- searchTypeOne: 1,
- { value: '已完货', type: 2 },
- path: 'tranManagementTransporFeedbackLook',
+ // tranTypeKey: 2,
+ feedbackFlag: 1,
+ searchTypeOne: 1,
- } else if (row.tranType == '火运') {
- path: 'tranManagementFireFeedbackLook',
- path: 'tranManagementShippingFeedbackLook',
- path: 'tranManagementthirdpartnarFeedbackLook',
- path: 'tranManagementTransporFeedback',
- path: 'tranManagementFireFeedback',
- path: 'tranManagementShippingFeedback',
- path: 'tranManagementthirdpartnarFeedback',
- // statusquery(status) {
- automobileList({
- var feedbackStatus = ''
- if (row.feedbackStatus == '待执行' || row.feedbackStatus == '已完货') {
- feedbackStatus = '执行中'
- } else if (row.feedbackStatus == '执行中') {
- feedbackStatus = '已完货'
- this.$confirm(`是否将状态改为${feedbackStatus}`, {
- state({
+ path: 'tranManagementTransporFeedbackLook',
+ path: 'tranManagementFireFeedbackLook',
+ path: 'tranManagementShippingFeedbackLook',
+ path: 'tranManagementthirdpartnarFeedbackLook',
+ path: 'tranManagementTransporFeedback',
+ path: 'tranManagementFireFeedback',
+ path: 'tranManagementShippingFeedback',
+ path: 'tranManagementthirdpartnarFeedback',
+ // statusquery(status) {
+ automobileList({
+ var feedbackStatus = ''
+ if (row.feedbackStatus == '待执行' || row.feedbackStatus == '已完货') {
+ feedbackStatus = '执行中'
+ } else if (row.feedbackStatus == '执行中') {
+ feedbackStatus = '已完货'
+ this.$confirm(`是否将状态改为${feedbackStatus}`, {
+ state({
@@ -5,69 +5,29 @@
@@ -80,61 +40,38 @@
<el-table-column prop="send" label="发货" width="300">
- <el-table-column prop="tranCycle" label="运输周期" width="160">
+ <el-table-column prop="tranCycle" label="运输周期" width="160">
<el-table-column prop="processStatus" label="状态">
@@ -142,422 +79,443 @@
<el-table-column prop="createDate" class="table_td" label="接单时间">
- @click="trainSee(scope.row)"
+ <div class="record" @click="trainSee(scope.row)" v-hasPermission="
'tranManager.fireDispatching.view'
- class="adjustment"
- @click="trainNumber(scope.row)"
+ <div class="adjustment" @click="trainNumber(scope.row)" v-hasPermission="
'tranManager.fireDispatching.car'
-import { automobileList, alsostate } from '@/model/transport/index'
- tranTypeKey: 2,
- //查看火运调度详细
- name: 'fireDispatchingview',
- //车次
- trainNumber(row) {
- name: 'fireDispatchingcar',
+ tranTypeKey: 2,
+ //查看火运调度详细
+ name: 'fireDispatchingview',
+ //车次
+ trainNumber(row) {
+ name: 'fireDispatchingcar',
- if (this.inOutDate.length != 0) {
+ if (this.inOutDate.length != 0) {
@@ -5,71 +5,30 @@
@@ -80,63 +39,40 @@
@@ -144,14 +80,8 @@
<el-table-column prop="createDate" label="接单时间"> </el-table-column>
@@ -166,353 +96,389 @@
- tranTypeKey: '1',
- name: 'vehicleDispatchingcar',
- id: item.id,
+ tranTypeKey: '1',
+ name: 'vehicleDispatchingcar',
+ id: item.id,
@@ -45,7 +45,8 @@
<div v-show="this.warehouseType == '1'" class="main_css">
- <el-table show-summary :summary-method="getSummaries" class="wenzi" :data="warehouseList" style="width: 100%; margin-top: 20px" height="100%">
+ <el-table show-summary :summary-method="getSummaries" class="wenzi" :data="warehouseList"
+ style="width: 100%; margin-top: 20px" height="calc(100% - 50px)">
<el-table-column prop="warehouseName" label="仓库名">
<el-table-column prop="binNumber" label="仓位编号">
@@ -228,7 +229,7 @@
<!--仓库名称-->
<el-form-item label="仓库名称" span="1" prop="warehouseName">
- <el-select v-model="parameter.warehouseName" placeholder="请选择仓库名称" filterable clearable>
+ <el-select v-model="parameter.warehouseName" placeholder="请选择仓库名称" filterable clearable>
<el-option v-for="item in packtypeList" :key="item.constKey" :label="item.warehouseName"
:value="item.warehouseName" />
@@ -346,69 +347,72 @@
methods: {
getSummaries(param) {
- const { columns, data } = param
- const sums = []
- columns.forEach((column, index) => {
- index === 4 ||
- index === 5 ||
- index === 6
- const values = data.map((item) => {
- var val=item.warehouseNumViewList.map((items) => {
- if(column.label=='入库量(吨)'){
- return items.inNetWeight
- }else if(column.label=='出库量(吨)'){
- return items.outNetWeight
- }else if(column.label=='应余量(吨)'){
- return items.storage
- return val
- if(curr.length>1){
- var num=0
- for (let i = 0; i < curr.length; i++) {
- num+=Number(curr[i])
+ columns,
+ } = param
+ const sums = []
+ columns.forEach((column, index) => {
+ index === 4 ||
+ index === 5 ||
+ index === 6
+ const values = data.map((item) => {
+ var val = item.warehouseNumViewList.map((items) => {
+ if (column.label == '入库量(吨)') {
+ return items.inNetWeight
+ } else if (column.label == '出库量(吨)') {
+ return items.outNetWeight
+ } else if (column.label == '应余量(吨)') {
+ return items.storage
- return Number(prev) +num
- return Number(prev) + Number(curr)
+ return val
+ if (curr.length > 1) {
+ var num = 0
+ for (let i = 0; i < curr.length; i++) {
+ num += Number(curr[i])
+ return Number(prev) + num
- return Number(prev)
+ return Number(prev) + Number(curr)
+ return Number(prev)
+ if (typeof sums[4] == 'number') {
+ sums[4] = sums[4].toFixed(3)
+ if (typeof sums[5] == 'number') {
+ sums[5] = sums[5].toFixed(3)
- if(typeof sums[4] =='number'){
- sums[4]=sums[4].toFixed(3)
- if(typeof sums[5] =='number'){
- sums[5]=sums[5].toFixed(3)
- if(typeof sums[6] =='number'){
- sums[6]=sums[6].toFixed(3)
- // sums[5]=sums[5].toFixed(2)
- // sums[6]=sums[6].toFixed(2)
- // sums[sums.length-7]=sums[sums.length-7].toFixed(2)
- // sums[sums.length-9]=sums[sums.length-9].toFixed(2)
- // sums[sums.length-12]=sums[sums.length-12].toFixed(2)
- // sums[sums.length-13]=sums[sums.length-13].toFixed(2)
- return sums
+ if (typeof sums[6] == 'number') {
+ sums[6] = sums[6].toFixed(3)
+ // sums[5]=sums[5].toFixed(2)
+ // sums[6]=sums[6].toFixed(2)
+ // sums[sums.length-7]=sums[sums.length-7].toFixed(2)
+ // sums[sums.length-9]=sums[sums.length-9].toFixed(2)
+ // sums[sums.length-12]=sums[sums.length-12].toFixed(2)
+ // sums[sums.length-13]=sums[sums.length-13].toFixed(2)
+ return sums
//导出、打印
outData(index) {
if (index == 1) {
@@ -556,7 +560,8 @@
if (response1.length == 0) {
sessionStorage.setItem('inOutWarehouse_Print', JSON.stringify(warehousePrint))
let _canshu = ''
- _canshu = this.parameter.radio +'&warehouseName=' + this.parameter.warehouseName+'&startDate=' + this.parameter.startDate+'&endDate=' + this.parameter.startDate
+ _canshu = this.parameter.radio + '&warehouseName=' + this.parameter.warehouseName +
+ '&startDate=' + this.parameter.startDate + '&endDate=' + this.parameter.startDate
window.open('../../../../../static/warehousePrint.html?type=' + _canshu)
} else { //增量为0时
@@ -566,14 +571,16 @@
//跳转
- _canshu = this.parameter.radio + '&warehouseName=' + this.parameter.warehouseName+'&startDate=' + this.parameter.startDate+'&endDate=' + this.parameter.startDate
} else { //没有增量比例的直接打印
sessionStorage.setItem('inOutWarehouse_Print', JSON.stringify(response.records))
let _canshu1 = ''
- _canshu1 = this.parameter.radio + '&warehouseName=' + this.parameter.warehouseName+'&startDate=' + this.parameter.startDate+'&endDate=' + this.parameter.startDate
+ _canshu1 = this.parameter.radio + '&warehouseName=' + this.parameter.warehouseName +
window.open('../../../../../static/warehousePrint.html?type=' + _canshu1)
@@ -1112,7 +1119,7 @@
.main_css {
- height: calc(100vh - 124px);
+ height: calc(100% - 40px);
//打印弹窗