|
@@ -52,7 +52,7 @@
|
|
>
|
|
>
|
|
<el-table-column type="index" label="序号">
|
|
<el-table-column type="index" label="序号">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
- <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
|
|
|
+ <span v-if="scope.$index < 9">{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
<span v-else>{{ scope.$index + 1 }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -67,60 +67,6 @@
|
|
<el-table-column class="table_td" prop="alreadyInvoice" label="已开发票(元)"></el-table-column>
|
|
<el-table-column class="table_td" prop="alreadyInvoice" label="已开发票(元)"></el-table-column>
|
|
<el-table-column class="table_td" prop="notInvoice" label="未开发票(元)"></el-table-column>
|
|
<el-table-column class="table_td" prop="notInvoice" label="未开发票(元)"></el-table-column>
|
|
<el-table-column prop="status" label="状态">
|
|
<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>
|
|
|
|
- </template>
|
|
|
|
- <div>
|
|
|
|
- <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>
|
|
|
|
- <div class="vertical-circle"></div>
|
|
|
|
- <div
|
|
|
|
- v-if="index != historyList.length - 1"
|
|
|
|
- class="vertical-line"
|
|
|
|
- ></div>
|
|
|
|
- </div>
|
|
|
|
- <div class="vertical-text">
|
|
|
|
- {{ item.operateUser }}<br />{{ item.dealMsg }}
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </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=""
|
|
|
|
- />
|
|
|
|
- </template>-->
|
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column class="table_td" prop="updateDate" label="更新时间"></el-table-column>
|
|
<el-table-column class="table_td" prop="updateDate" label="更新时间"></el-table-column>
|
|
<el-table-column prop="seller" label="操作" width="200">
|
|
<el-table-column prop="seller" label="操作" width="200">
|
|
@@ -137,37 +83,73 @@
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="deptBudgetTotal"
|
|
:total="deptBudgetTotal"
|
|
></el-pagination>
|
|
></el-pagination>
|
|
- <el-dialog width="60%" title="派发()" :visible.sync="dialogFormVisible2" :append-to-body="true">
|
|
|
|
- <el-form :data="warehouseList" ref="warehouseList">
|
|
|
|
- <el-form-item label="默认库管" :label-width="formLabelWidth">
|
|
|
|
|
|
+ <el-dialog width="60%" :visible.sync="dialogFormVisible2" :append-to-body="true">
|
|
|
|
+ <el-form>
|
|
|
|
+ <el-form-item label="派发" :label-width="formLabelWidth">({{paifaDialogForm.contractNo}})</el-form-item>
|
|
|
|
+ <el-form-item label="默认库管" prop="agent" :label-width="formLabelWidth">
|
|
<el-select
|
|
<el-select
|
|
- v-model="warehouseList.agent"
|
|
|
|
|
|
+ v-model="agent"
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
placeholder="请选择默认库管"
|
|
placeholder="请选择默认库管"
|
|
class="deal"
|
|
class="deal"
|
|
- ></el-select>
|
|
|
|
|
|
+ filterable
|
|
|
|
+ :filter-method="dataFilter"
|
|
|
|
+ @change="selectstaff"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in options"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.staffName"
|
|
|
|
+ :value="item.staffName"
|
|
|
|
+ />
|
|
|
|
+ </el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <div v-for="(item, index) in freightspace" :key="index">
|
|
|
|
- <el-form-item label="编号" prop="tranCarNo" :label-width="formLabelWidth">
|
|
|
|
- {{item.tranCarNo}}
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="车牌号" prop="carNo" :label-width="formLabelWidth" class="car">
|
|
|
|
- <el-input v-model="item.carNo" autocomplete="off" placeholder="请输入车牌号" class="deall"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="箱号" prop="boxNo" :label-width="formLabelWidth" class="boxno">
|
|
|
|
- <el-input v-model="item.boxNo" autocomplete="off" placeholder="请输入箱号" class="deaee"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="封号" prop="titleNo" :label-width="formLabelWidth" class="fengno">
|
|
|
|
- <el-input v-model="item.titleNo" autocomplete="off" placeholder="请输入封号" class="dea"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="库管" prop="agent" :label-width="formLabelWidth" class="kug">
|
|
|
|
- <el-input disabled v-model="item.agent" autocomplete="off" placeholder class="deaa"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-button class="bott" @click="add1()">新增</el-button>
|
|
|
|
- <!-- <el-button class="bot" @click="del()">删除</el-button> -->
|
|
|
|
- <hr>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div style="text-align: left; color: #8890b1; font-size: 16px; margin-left: 309px; margin-top: -21px;">
|
|
|
|
+ 共 {{ total }} 车,发 {{ current }} 辆
|
|
|
|
+ </div>
|
|
|
|
+ <el-table :data="freightspace" style="width: 100%" height="560">
|
|
|
|
+ <el-table-column prop="tranCarNo" label="编号" width="180"></el-table-column>
|
|
|
|
+ <el-table-column prop="carNo" label="车牌号" width="180">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input
|
|
|
|
+ :disabled="scope.$index != 0"
|
|
|
|
+ @input="changeCarNo($event)"
|
|
|
|
+ :value="scope.row.carNo"
|
|
|
|
+ />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="boxNo" label="箱号">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input
|
|
|
|
+ :disabled="scope.$index != 0"
|
|
|
|
+ @input="changeBoxNo($event)"
|
|
|
|
+ :value="scope.row.boxNo"
|
|
|
|
+ />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
|
|
+ <el-table-column prop="titleNo" label="封号">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-input
|
|
|
|
+ :disabled="scope.$index != 0"
|
|
|
|
+ @input="changeTitleNo($event)"
|
|
|
|
+ :value="scope.row.titleNo"
|
|
|
|
+ />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
|
|
|
|
+ <el-table-column prop="agent" label="库管"></el-table-column>
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="100">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-button @click="add1(scope.row)" v-if="scope.$index == 0">新增</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ @click="del(scope.row)"
|
|
|
|
+ v-else-if="scope.$index > 0 && scope.row.tranFlag==0"
|
|
|
|
+ >删除</el-button>
|
|
|
|
+ <span v-else-if="scope.$index > 0 && scope.row.tranFlag==1">已发车</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -177,7 +159,8 @@ import {
|
|
caiwuList,
|
|
caiwuList,
|
|
paifa,
|
|
paifa,
|
|
kuguan,
|
|
kuguan,
|
|
- paiLook
|
|
|
|
|
|
+ paiLook,
|
|
|
|
+ carDel
|
|
} from '@/model/financialManagement/index'
|
|
} from '@/model/financialManagement/index'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
@@ -199,6 +182,8 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ paifaDialogForm: {},
|
|
|
|
+ paifaKuguanList: [],
|
|
//弹出框
|
|
//弹出框
|
|
dialogViewSpareMoney: false,
|
|
dialogViewSpareMoney: false,
|
|
dialogApproveFormVisible: false,
|
|
dialogApproveFormVisible: false,
|
|
@@ -230,16 +215,16 @@ export default {
|
|
boxNo: '',
|
|
boxNo: '',
|
|
titleNo: '',
|
|
titleNo: '',
|
|
tranCarNo: '',
|
|
tranCarNo: '',
|
|
- agent: ''
|
|
|
|
|
|
+ agent: []
|
|
},
|
|
},
|
|
list: [],
|
|
list: [],
|
|
|
|
+ agent: [],
|
|
collectionManagement: {},
|
|
collectionManagement: {},
|
|
freightspace: [
|
|
freightspace: [
|
|
{
|
|
{
|
|
carNo: '',
|
|
carNo: '',
|
|
boxNo: '',
|
|
boxNo: '',
|
|
titleNo: '',
|
|
titleNo: '',
|
|
- titleNo: '',
|
|
|
|
tranCarNo: '',
|
|
tranCarNo: '',
|
|
agent: ''
|
|
agent: ''
|
|
}
|
|
}
|
|
@@ -249,11 +234,11 @@ export default {
|
|
titleNo: '',
|
|
titleNo: '',
|
|
tranCarNo: '',
|
|
tranCarNo: '',
|
|
agent: '',
|
|
agent: '',
|
|
- tranCarNo: '',
|
|
|
|
planId: '',
|
|
planId: '',
|
|
- goodsname: '',
|
|
|
|
- contracNo: '',
|
|
|
|
-
|
|
|
|
|
|
+ staffId: '',
|
|
|
|
+ goodsName: '',
|
|
|
|
+ contractNo: '',
|
|
|
|
+ options: [],
|
|
startDate: null,
|
|
startDate: null,
|
|
endDate: null,
|
|
endDate: null,
|
|
addressUrls: [],
|
|
addressUrls: [],
|
|
@@ -266,6 +251,7 @@ export default {
|
|
year: dayjs().format('YYYY'),
|
|
year: dayjs().format('YYYY'),
|
|
month: dayjs().format('MM')
|
|
month: dayjs().format('MM')
|
|
},
|
|
},
|
|
|
|
+ id: '',
|
|
contractList: [],
|
|
contractList: [],
|
|
deptBudgetList: {},
|
|
deptBudgetList: {},
|
|
historyList: [],
|
|
historyList: [],
|
|
@@ -286,21 +272,58 @@ export default {
|
|
{ value: '全部', type: '' }
|
|
{ value: '全部', type: '' }
|
|
],
|
|
],
|
|
value1: '',
|
|
value1: '',
|
|
- value2: ''
|
|
|
|
|
|
+ value2: '',
|
|
|
|
+ index: 1
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
- //cg.viewBudget
|
|
|
|
- //cg.viewSpareMoney
|
|
|
|
- // this.getVesselData();
|
|
|
|
this.getList()
|
|
this.getList()
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
|
|
+ computed: {
|
|
|
|
+ total: function () {
|
|
|
|
+ if (this.freightspace.length > 0) {
|
|
|
|
+ var maxStorage = 0
|
|
|
|
+ for (var i = 0; i < this.freightspace.length; i++) {
|
|
|
|
+ maxStorage =(this.freightspace.length-1)
|
|
|
|
+ }
|
|
|
|
+ return maxStorage
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ current: function () {
|
|
|
|
+ if (this.freightspace.length > 0) {
|
|
|
|
+ var maxStorage = 0
|
|
|
|
+ for (var i = 0; i < this.freightspace.tranFlag; i++) {
|
|
|
|
+ maxStorage =(this.freightspace.tranFlag.length)
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ return maxStorage
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
- table_index(index){
|
|
|
|
- return (this.paginations.page_index-1) * this.paginations.page_size + index + 1
|
|
|
|
- },
|
|
|
|
|
|
+ changeCarNo(e) {
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+ this.freightspace[0].carNo = e
|
|
|
|
+ },
|
|
|
|
+ changeBoxNo(e) {
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+ this.freightspace[0].boxNo = e
|
|
|
|
+ },
|
|
|
|
+ changeTitleNo(e) {
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+ this.freightspace[0].titleNo = e
|
|
|
|
+ },
|
|
dianlog(item) {
|
|
dianlog(item) {
|
|
|
|
+ this.paifaDialogForm.contractNo = item.contractNo
|
|
|
|
+ this.planId = item.planId
|
|
|
|
+ this.goodsName = item.goodsName
|
|
|
|
+ this.contractNo = item.contractNo
|
|
|
|
+ this.buyer = item.buyer
|
|
|
|
+ this.tranCarNo = item.tranCarNo
|
|
|
|
+ this.staffId = item.staffId
|
|
|
|
+
|
|
|
|
+ var tranCarNos = ''
|
|
this.dialogFormVisible2 = true
|
|
this.dialogFormVisible2 = true
|
|
this.dataList = item
|
|
this.dataList = item
|
|
paiLook({
|
|
paiLook({
|
|
@@ -308,14 +331,54 @@ export default {
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then(response => {
|
|
.then(response => {
|
|
|
|
+ // this.index = response.length + 1
|
|
this.freightspace = response
|
|
this.freightspace = response
|
|
|
|
+ this.freightspace.unshift({
|
|
|
|
+ carNo: '',
|
|
|
|
+ boxNo: '',
|
|
|
|
+ titleNo: '',
|
|
|
|
+ tranCarNo: '',
|
|
|
|
+ agent: ''
|
|
|
|
+ })
|
|
|
|
+ for (var i = 0; i < this.freightspace.length; i++) {
|
|
|
|
+ var index = i + 1
|
|
|
|
+ this.freightspace[this.freightspace.length - 1 - i].tranCarNo =
|
|
|
|
+ 'C00' + index
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ this.staffQO.roleId = 'd6a5c8a52da544309259f91f75de1ec6'
|
|
|
|
+ kuguan(this.staffQO)
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then(response => {
|
|
|
|
+ console.log('成功')
|
|
|
|
+ // this.paifaKuguanList = response
|
|
|
|
+ this.options = response
|
|
|
|
+
|
|
|
|
+ // this.staffList = response
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ refresh() {
|
|
|
|
+ paiLook({
|
|
|
|
+ contractNo: this.dataList.contractNo
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then(response => {
|
|
|
|
+ // this.index = response.length + 1
|
|
|
|
+ this.freightspace = response
|
|
|
|
+ this.freightspace.unshift({
|
|
|
|
+ carNo: '',
|
|
|
|
+ boxNo: '',
|
|
|
|
+ titleNo: '',
|
|
|
|
+ tranCarNo: '',
|
|
|
|
+ agent: ''
|
|
|
|
+ })
|
|
|
|
+ for (var i = 0; i < this.freightspace.length; i++) {
|
|
|
|
+ var index = i + 1
|
|
|
|
+ this.freightspace[this.freightspace.length - 1 - i].tranCarNo =
|
|
|
|
+ 'C00' + index
|
|
|
|
+ }
|
|
})
|
|
})
|
|
- // this.staffQO.roleId = 'd6a5c8a52da544309259f91f75de1ec6'
|
|
|
|
- // kuguan(this.staffQO)
|
|
|
|
- // .toPromise()
|
|
|
|
- // .then(response => {
|
|
|
|
- // console.log('成功')
|
|
|
|
- // })
|
|
|
|
},
|
|
},
|
|
dateFormat(fmt, date) {
|
|
dateFormat(fmt, date) {
|
|
let ret
|
|
let ret
|
|
@@ -339,7 +402,34 @@ export default {
|
|
}
|
|
}
|
|
return fmt
|
|
return fmt
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ dataFilter(val) {
|
|
|
|
+ this.warehouseList.personCharge = val
|
|
|
|
+ if (val) {
|
|
|
|
+ console.log(val)
|
|
|
|
+ this.options = this.staffList.filter(item => {
|
|
|
|
+ if (
|
|
|
|
+ !!~item.staffName.indexOf(val) ||
|
|
|
|
+ !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
|
|
|
|
+ ) {
|
|
|
|
+ return true
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.options = this.staffList
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ selectstaff(e) {
|
|
|
|
+ this.freightspace[0].agent = e
|
|
|
|
+ for (var i = 0; i < this.options.length; i++) {
|
|
|
|
+ if (this.options[i].staffName == e) {
|
|
|
|
+ // this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
|
|
|
|
+ // this.deptBudgetList.tranCarInfoList[0].driverPhone =
|
|
|
|
+ // this.staffList[i].staffMobilePhone
|
|
|
|
+ this.staffId = this.options[i].staffId
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ console.log(this.staffId, 'dvsgd')
|
|
|
|
+ },
|
|
handleClose() {
|
|
handleClose() {
|
|
this.dialogViewSpareMoney = false
|
|
this.dialogViewSpareMoney = false
|
|
},
|
|
},
|
|
@@ -356,6 +446,34 @@ export default {
|
|
console.log(`当前页: ${val}`)
|
|
console.log(`当前页: ${val}`)
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
|
|
+ del(row) {
|
|
|
|
+ this.id = row.id
|
|
|
|
+ var del = ' '
|
|
|
|
+ // if (row.del == '') {
|
|
|
|
+ // }
|
|
|
|
+ this.$confirm(`删除后不可恢复,是否确定删除?`, {
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ carDel({ id: this.id })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then(response => {
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '删除成功'
|
|
|
|
+ })
|
|
|
|
+ this.refresh()
|
|
|
|
+ })
|
|
|
|
+ .catch(response => {
|
|
|
|
+ // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getList() {
|
|
getList() {
|
|
caiwuList({
|
|
caiwuList({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
@@ -372,87 +490,85 @@ export default {
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- del(index) {
|
|
|
|
- if (this.freightspace.length > 1) {
|
|
|
|
- this.freightspace.splice(index, 1)
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- add1() {
|
|
|
|
- for(var i = 0; i<this.warehouseList.length;i++) {
|
|
|
|
- if(!this.warehouseList[i].carNo) {
|
|
|
|
- this.$message({
|
|
|
|
- message:'车牌号不能为空',
|
|
|
|
- type:'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.warehouseList.carNo.length <=7) {
|
|
|
|
- this.$message({
|
|
|
|
- message:'车牌号输入有误',
|
|
|
|
- type:'warning',
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- if(!this.warehouseList.boxNo.length <1 || this.warehouseList.boxNo.length >15 ) {
|
|
|
|
- this.$message({
|
|
|
|
- message:'箱号输入错误',
|
|
|
|
- type:'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.warehouseList.boxNo) {
|
|
|
|
- this.$message({
|
|
|
|
- message:'箱号不能为空',
|
|
|
|
- type:'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(this.warehouseList.titleNo.length<1 || this.warehouseList.titleNo.length>15) {
|
|
|
|
- this.$message({
|
|
|
|
- message:'封号输入错误',
|
|
|
|
- type:'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.warehouseList.titleNo) {
|
|
|
|
- this.$message({
|
|
|
|
- message:'封号不能为空',
|
|
|
|
- type:'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if(!this.warehouseList.agent) {
|
|
|
|
- this.$message({
|
|
|
|
- message:'库管不能为空',
|
|
|
|
- type:'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- console.log(1111)
|
|
|
|
- this.freightspace.push({
|
|
|
|
|
|
+ // del(index) {
|
|
|
|
+ // if (this.freightspace.length > 1) {
|
|
|
|
+ // this.freightspace.splice(index, 1)
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ add1(item) {
|
|
|
|
+ // if (!this.freightspace[0].carNo) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '车牌号不能为空',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (this.freightspace.carNo.length <= 7) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '车牌号输入有误',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (
|
|
|
|
+ // !this.freightspace.boxNo.length < 1 ||
|
|
|
|
+ // this.freightspace.boxNo.length > 15
|
|
|
|
+ // ) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '箱号输入错误',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (!this.freightspace[0].boxNo) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '箱号不能为空',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (
|
|
|
|
+ // this.freightspace.titleNo.length < 1 ||
|
|
|
|
+ // this.freightspace.titleNo.length > 15
|
|
|
|
+ // ) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '封号输入错误',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // if (!this.freightspace[0].titleNo) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '封号不能为空',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ console.log(this.planId)
|
|
|
|
+ var tmp = this.freightspace[0].agent
|
|
|
|
+ var tmp1 = this.freightspace.length + 1
|
|
|
|
+ this.freightspace.unshift({
|
|
carNo: '',
|
|
carNo: '',
|
|
boxNo: '',
|
|
boxNo: '',
|
|
titleNo: '',
|
|
titleNo: '',
|
|
- tranCarNo: '',
|
|
|
|
- agent: '',
|
|
|
|
- planId: '',
|
|
|
|
- contracNo: '',
|
|
|
|
- goodsname: '',
|
|
|
|
- buyer: ''
|
|
|
|
|
|
+ planId: this.planId,
|
|
|
|
+ staffId: this.staffId,
|
|
|
|
+ goodsName: this.goodsName,
|
|
|
|
+ buyer: this.buyer,
|
|
|
|
+ tranCarNo: 'C00' + tmp1,
|
|
|
|
+ agent: tmp
|
|
})
|
|
})
|
|
- this.collectionManagement.collectionManagementList = this.freightspace
|
|
|
|
- this.collectionManagement.compId = sessionStorage.getItem('ws-pf_compId')
|
|
|
|
- this.collectionManagement.buyer = this.dataList.buyer
|
|
|
|
- this.collectionManagement.planId = this.dataList.planId
|
|
|
|
- this.collectionManagement.contractNo = this.dataList.contractNo
|
|
|
|
- this.collectionManagement.goodsname = this.dataList.goodsname
|
|
|
|
- return
|
|
|
|
- paifa(this.collectionManagement)
|
|
|
|
|
|
+ item.planId = this.planId
|
|
|
|
+ item.goodsName = this.goodsName
|
|
|
|
+ item.buyer = this.buyer
|
|
|
|
+ item.contractNo = this.contractNo
|
|
|
|
+ item.staffId = this.staffId
|
|
|
|
+
|
|
|
|
+ paifa(item)
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then(response => {
|
|
|
|
- this.warehouseList = response
|
|
|
|
- })
|
|
|
|
|
|
+ .then(response => {})
|
|
|
|
+ this.freightspace = response
|
|
},
|
|
},
|
|
editClick(row) {
|
|
editClick(row) {
|
|
var status = ''
|
|
var status = ''
|
|
@@ -491,7 +607,22 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ find() {
|
|
|
|
+ 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])
|
|
|
|
+ } else {
|
|
|
|
+ this.startDate = ''
|
|
|
|
+ this.endDate = ''
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ this.startDate = ''
|
|
|
|
+ this.endDate = ''
|
|
|
|
+ }
|
|
|
|
+ this.currentPage = 1
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
handleCloe() {
|
|
handleCloe() {
|
|
this.dialogViewSpareMoney = false
|
|
this.dialogViewSpareMoney = false
|
|
@@ -504,17 +635,6 @@ export default {
|
|
this.historyList = response
|
|
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])
|
|
|
|
- } else {
|
|
|
|
- this.startDate = ''
|
|
|
|
- this.endDate = ''
|
|
|
|
- }
|
|
|
|
- this.currentPage = 1
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
async exportlist() {
|
|
async exportlist() {
|
|
const { data } = await export1(
|
|
const { data } = await export1(
|
|
{
|
|
{
|
|
@@ -537,37 +657,6 @@ export default {
|
|
(this.date.month ? `-${this.date.month}` : '')}_采购合同`,
|
|
(this.date.month ? `-${this.date.month}` : '')}_采购合同`,
|
|
type: 'xls'
|
|
type: 'xls'
|
|
})
|
|
})
|
|
- },
|
|
|
|
- // deletecontract(){},
|
|
|
|
- //删除
|
|
|
|
- handleDelete(row) {
|
|
|
|
- var text = ''
|
|
|
|
- // if (row.deliverType == 1) {
|
|
|
|
- // text =
|
|
|
|
- // '删除该合同将同时永久删除合同对应的临时仓库相关数据,是否确定删除?'
|
|
|
|
- // } else {
|
|
|
|
- // text = '合同删除后不可恢复,是否继续删除?'
|
|
|
|
- // }
|
|
|
|
- this.$confirm('合同删除后不可恢复,是否继续删除?', '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- deletecontract({ id: row.id })
|
|
|
|
- .toPromise()
|
|
|
|
- .then(response => {
|
|
|
|
- this.$notify.success({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '删除成功'
|
|
|
|
- })
|
|
|
|
- this.getList()
|
|
|
|
- })
|
|
|
|
- .catch(response => {})
|
|
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- return false
|
|
|
|
- })
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -901,7 +990,7 @@ export default {
|
|
margin-top: -39px;
|
|
margin-top: -39px;
|
|
}
|
|
}
|
|
.deaee {
|
|
.deaee {
|
|
- width: 120px;
|
|
|
|
|
|
+ width: 120px;
|
|
}
|
|
}
|
|
.fengno {
|
|
.fengno {
|
|
width: 100px;
|
|
width: 100px;
|
|
@@ -922,4 +1011,19 @@ export default {
|
|
.bott {
|
|
.bott {
|
|
margin-left: 957px;
|
|
margin-left: 957px;
|
|
}
|
|
}
|
|
|
|
+.record,
|
|
|
|
+.adjustment {
|
|
|
|
+ display: inline-block;
|
|
|
|
+ color: #5878e8;
|
|
|
|
+ padding: 0 4px !important;
|
|
|
|
+ position: relative;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+}
|
|
|
|
+.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;
|
|
|
|
+ margin-top: 0px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|