|
@@ -3,41 +3,48 @@
|
|
|
<div class="container">
|
|
|
<el-scrollbar style="height: 100%">
|
|
|
<el-row>
|
|
|
- <el-col style="padding-left: 15px" :span="8">
|
|
|
- <ws-button :type="searchType == 1 ? 'primary' : ''" @click="handlestatus(1)">待审核</ws-button>
|
|
|
+ <el-col style="padding-left: 15px" :span="10">
|
|
|
+ <!-- <ws-button :type="searchType == 1 ? 'primary' : ''" @click="handlestatus(1)">待审核</ws-button>
|
|
|
<ws-button :type="searchType == 2 ? 'primary' : ''" @click="handlestatus(2)">待结算</ws-button>
|
|
|
<ws-button :type="searchType == 3 ? 'primary' : ''" @click="handlestatus(3)">已结算</ws-button>
|
|
|
<ws-button :type="searchType == '' ? 'primary' : ''" @click="handlestatus('')">全部</ws-button>
|
|
|
<ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlepass()">通过
|
|
|
</ws-button>
|
|
|
<ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlereject()">驳回
|
|
|
- </ws-button>
|
|
|
+ </ws-button> -->
|
|
|
<!-- <ws-button
|
|
|
type="primary"
|
|
|
v-hasPermission="`report.transportationReport.payment`"
|
|
|
@click="handlepayment"
|
|
|
>申请结算</ws-button
|
|
|
> -->
|
|
|
- <ws-button type="primary" v-hasPermission="`report.transportationReport.payment`" @click="handlepayment">付款
|
|
|
- </ws-button>
|
|
|
+ <!-- <ws-button type="primary" v-hasPermission="`report.transportationReport.payment`" @click="handlepayment">付款
|
|
|
+ </ws-button> -->
|
|
|
<!-- <ws-button
|
|
|
type="primary"
|
|
|
v-hasPermission="`report.transportationReport.draw`"
|
|
|
@click="handleninvoice"
|
|
|
>开发票</ws-button
|
|
|
> -->
|
|
|
- </el-col>
|
|
|
+ <div v-if="contractNo!='全部合同'">
|
|
|
+ <div style="display:inline-block;margin-right:10px;"> 火运装车大票重量(吨):<span v-if="shippedWeight>0">{{shippedWeight}}<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ src="../../../public/img/fujian.png" @click="fujian1()" alt="" /></span><ws-button v-if="!shippedWeight" type="primary" @click="handlefeedback()">反馈</ws-button></div>
|
|
|
+ <div style="display:inline-block;margin-right:10px;"> 火运卸车大票重量(吨):<span v-if="unloadingWeight>0">{{unloadingWeight}}<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
+ src="../../../public/img/fujian.png" @click="fujian2()" alt="" /></span><ws-button v-if="!unloadingWeight" type="primary" @click="handledownfeedback()">反馈</ws-button></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
<el-col style="display: flex; justify-content:flex-end;margin-top:13px" :span="14">
|
|
|
<el-select v-model="contractNo" placeholder="请选择合同" filterable clearable @change="contractchange"
|
|
|
maxlength="500" class="findValue">
|
|
|
<el-option v-for="item in options" :key="item.constKey" :label="item.contractNo" :value="item.contractNo" />
|
|
|
</el-select>
|
|
|
- <!-- <el-select v-model="taskNo" placeholder="请选择运输任务编号" @change="taskNochange" maxlength="500" class="findValue"
|
|
|
+ <el-select v-model="taskNo" placeholder="请选择运输任务编号" @change="taskNochange" maxlength="500" class="findValue"
|
|
|
filterable clearable>
|
|
|
<el-option v-for="item in taskNoList" :key="item.taskNoKey" :label="item.taskNoValue "
|
|
|
:value="item.taskNoValue" />
|
|
|
</el-select>
|
|
|
- <el-select v-model="processNo" placeholder="请选择运输阶段编号" @change="processNochange" maxlength="500"
|
|
|
+ <!-- <el-select v-model="processNo" placeholder="请选择运输阶段编号" @change="processNochange" maxlength="500"
|
|
|
class="findValue" filterable clearable>
|
|
|
<el-option v-for="item in processNoList" :key="item.processNoKey" :label="item.processNoValue "
|
|
|
:value="item.processNoValue" />
|
|
@@ -82,6 +89,11 @@
|
|
|
label="类型"
|
|
|
></el-table-column> -->
|
|
|
<!-- <el-table-column class="boxNo" prop="boxNo" label="车厢号"></el-table-column> -->
|
|
|
+ <el-table-column class="table_td" prop="carNo" label="车牌号"></el-table-column>
|
|
|
+ <el-table-column class="boxNo" prop="boxNo" label="箱号-1"></el-table-column>
|
|
|
+ <el-table-column class="boxNo" prop="boxNoOther" label="箱号-2"></el-table-column>
|
|
|
+ <el-table-column class="boxNo" prop="titleNo" label="封号-1"></el-table-column>
|
|
|
+ <el-table-column class="boxNo" prop="titleNoOther" label="封号-2"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="loadingWeight" label="装车净重(吨)"></el-table-column>
|
|
|
<el-table-column class="table_td" prop="unloadingWeight" label="卸车净重(吨)">
|
|
|
</el-table-column>
|
|
@@ -194,6 +206,52 @@
|
|
|
<p>查看装车磅单</p>
|
|
|
<img width="100" height="100" :src="loadingImg1" alt="" />
|
|
|
</WinseaContentModal> -->
|
|
|
+ <WinseaContentModal v-model="editshow" title="装车反馈"
|
|
|
+ @on-cancel="editshow = false">
|
|
|
+ <el-form :model="taskform">
|
|
|
+ <el-form-item label="重量(吨)" >
|
|
|
+ <el-input type='number' v-model="taskform.shippedWeight" autocomplete="off" placeholder="输入火运装车大票重量"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="大票截图" >
|
|
|
+ <ws-upload ref="upload" :comp-id="compId" :appendix-ids="taskform.enclosure"
|
|
|
+ @onChange="onChange"
|
|
|
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .zip, .rar" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="editshow = false">取 消</el-button>
|
|
|
+ <el-button @click="taskconfirm">确定</el-button>
|
|
|
+ </div>
|
|
|
+ </WinseaContentModal>
|
|
|
+ <WinseaContentModal v-model="editshow1" title="卸车反馈"
|
|
|
+ @on-cancel="editshow = false">
|
|
|
+ <el-form :model="taskform">
|
|
|
+ <el-form-item label="重量(吨)" >
|
|
|
+ <el-input type='number' v-model="taskform.unloadingWeight" autocomplete="off" placeholder="输入火运卸车大票重量"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="大票截图" >
|
|
|
+ <ws-upload ref="upload1" :comp-id="compId" :appendix-ids="taskform.unEnclosure"
|
|
|
+ @onChange="onChange1"
|
|
|
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .zip, .rar" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="editshow1 = false">取 消</el-button>
|
|
|
+ <el-button @click="taskconfirm1">确定</el-button>
|
|
|
+ </div>
|
|
|
+ </WinseaContentModal>
|
|
|
+ <WinseaContentModal v-model="accessoryTFs1" :title="$t('system.noticeCircular.information')"
|
|
|
+ @on-cancel="accessoryTFs1 = false">
|
|
|
+ <ws-upload ref="upload1" :comp-id="compId" :appendix-ids="enclosure" :editable="false"
|
|
|
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
|
|
|
+ </WinseaContentModal>
|
|
|
+ <WinseaContentModal v-model="accessoryTFs2" :title="$t('system.noticeCircular.information')"
|
|
|
+ @on-cancel="accessoryTFs2 = false">
|
|
|
+ <ws-upload ref="upload" :comp-id="compId" :appendix-ids="unEnclosure" :editable="false"
|
|
|
+ accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
|
|
|
+ </WinseaContentModal>
|
|
|
<WinseaContentModal v-model="accesscard" title="磅单信息" @on-cancel="handleClose1">
|
|
|
<p>查看卸车磅单</p>
|
|
|
<img width="100" height="100" :src="unloadingImg1" alt="" />
|
|
@@ -225,7 +283,8 @@
|
|
|
openinvoicelist,
|
|
|
getYunShuXiaLa,
|
|
|
getYunShuNumber,
|
|
|
- SetYunShuPrice
|
|
|
+ SetYunShuPrice,
|
|
|
+ edittrantask
|
|
|
// postaudit,
|
|
|
// getselectctcontractno,
|
|
|
} from '@/model/statisticalReport/index'
|
|
@@ -281,6 +340,12 @@
|
|
|
basis: '',
|
|
|
},
|
|
|
currect: true,
|
|
|
+ taskform:{
|
|
|
+ enclosure:'',
|
|
|
+ shippedWeight:'',
|
|
|
+ unEnclosure:'',
|
|
|
+ unloadingWeight:''
|
|
|
+ },
|
|
|
formLabelWidth: '120px',
|
|
|
formLabelWidth1: '140px',
|
|
|
barWidth: 0,
|
|
@@ -306,7 +371,7 @@
|
|
|
deptBudgetTotal: 0,
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
- searchType: '1',
|
|
|
+ searchType: '',
|
|
|
manualFlag: '',
|
|
|
searchTypeText: '未完成',
|
|
|
searchKeyWord: '',
|
|
@@ -365,7 +430,7 @@
|
|
|
paymentScreenshot: '',
|
|
|
id: '',
|
|
|
},
|
|
|
-
|
|
|
+ currecttask:{},
|
|
|
amountNotPayable: 0,
|
|
|
amountEdPayable: 0,
|
|
|
paymentScreenshotUrls: [],
|
|
@@ -376,6 +441,15 @@
|
|
|
return time.getTime() > Date.now()
|
|
|
},
|
|
|
},
|
|
|
+ taskNoList1:[],
|
|
|
+ editshow:false,
|
|
|
+ editshow1:false,
|
|
|
+ accessoryTFs1:false,
|
|
|
+ accessoryTFs2:false,
|
|
|
+ unEnclosure:'',
|
|
|
+ enclosure:'',
|
|
|
+ unloadingWeight:'',
|
|
|
+ shippedWeight:'',
|
|
|
amountEdPayable: "", //已付金额
|
|
|
alreadyInvoice: "", //未付金额
|
|
|
priceStatus: "", //状态
|
|
@@ -383,10 +457,128 @@
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
+ this.contractNoList = []
|
|
|
+ getYunShuXiaLa({
|
|
|
+ flag: 2,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
+ this.contractNoList.push({
|
|
|
+ constKey: i,
|
|
|
+ contractNo: response[i],
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.contractNoList.unshift({
|
|
|
+ contractNo: '全部合同'
|
|
|
+ })
|
|
|
+ this.options = this.contractNoList
|
|
|
+ })
|
|
|
this.getList()
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
methods: {
|
|
|
+ onChange() {
|
|
|
+ this.$refs.upload
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async response => {
|
|
|
+ this.taskform.enclosure = response
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onChange1() {
|
|
|
+ this.$refs.upload1
|
|
|
+ .handleSaveBill()
|
|
|
+ .then(async response => {
|
|
|
+ this.taskform.unEnclosure = response
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
+ this.$refs.upload1.clearFiles()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ fujian1() {
|
|
|
+ console.log(this.enclosure)
|
|
|
+ this.accessoryTFs1 = true
|
|
|
+ },
|
|
|
+ fujian2() {
|
|
|
+ console.log(this.enclosure)
|
|
|
+ this.accessoryTFs2 = true
|
|
|
+ },
|
|
|
+ handlefeedback(){
|
|
|
+ this.taskform.enclosure=this.enclosure
|
|
|
+ this.taskform.shippedWeight=this.shippedWeight
|
|
|
+ this.editshow=true
|
|
|
+ },
|
|
|
+ handledownfeedback(){
|
|
|
+ this.taskform.unEnclosure=this.unEnclosure
|
|
|
+ this.taskform.unloadingWeight=this.unloadingWeight
|
|
|
+ this.editshow1=true
|
|
|
+ },
|
|
|
+ taskconfirm(){
|
|
|
+ if(!this.taskform.shippedWeight){
|
|
|
+ this.$message.warning('火运装车大票重量不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ console.log()
|
|
|
+ if(!this.taskform.enclosure){
|
|
|
+ this.$message.warning('至少上传一个大票截图')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$confirm(`火运装车信息提交后不可修改,确认提交?`, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning',
|
|
|
+ }).then(() => {
|
|
|
+ edittrantask({id:this.currecttask.id,shippedWeight:this.taskform.shippedWeight,enclosure:this.taskform.enclosure,tranProcessInfoList:[]}).toPromise().then((response) => {
|
|
|
+ this.editshow=false
|
|
|
+ this.$refs.upload.clearFiles()
|
|
|
+ this.$message.success('提交成功')
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.shippedWeight=this.taskform.shippedWeight
|
|
|
+ this.enclosure=this.taskform.enclosure
|
|
|
+ this.taskform={}
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch((response) => {
|
|
|
+ EventBus.$emit('error', response.message)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ taskconfirm1(){
|
|
|
+ console.log(this.taskform)
|
|
|
+ if(!this.taskform.unloadingWeight){
|
|
|
+ this.$message.warning('火运卸车大票重量不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if(!this.taskform.unEnclosure){
|
|
|
+ this.$message.warning('至少上传一个大票截图')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$confirm(`火运卸车信息提交后不可修改,确认提交?`, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning',
|
|
|
+ }).then(() => {
|
|
|
+ edittrantask({id:this.currecttask.id,unloadingWeight:this.taskform.unloadingWeight,unEnclosure:this.taskform.unEnclosure,tranProcessInfoList:[]}).toPromise().then((response) => {
|
|
|
+ this.editshow=false
|
|
|
+ this.$refs.upload1.clearFiles()
|
|
|
+ this.$message.success('提交成功')
|
|
|
+ this.$nextTick(()=>{
|
|
|
+ this.unloadingWeight=this.taskform.unloadingWeight
|
|
|
+ this.unEnclosure=this.taskform.unEnclosure
|
|
|
+ this.taskform={}
|
|
|
+ })
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch((response) => {
|
|
|
+ EventBus.$emit('error', response.message)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
find(){
|
|
|
this.getList()
|
|
|
},
|
|
@@ -946,31 +1138,46 @@
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
+ this.taskNoList1=response
|
|
|
for (let i = 0; i < response.length; i++) {
|
|
|
this.taskNoList.push({
|
|
|
taskNoKey: i,
|
|
|
taskNoValue: response[i].taskNo,
|
|
|
processNo: response[i].tranProcessInfoList
|
|
|
})
|
|
|
+ this.taskNo=response[0].taskNo
|
|
|
+ this.shippedWeight=response[0].shippedWeight
|
|
|
+ this.enclosure=response[0].enclosure
|
|
|
+ this.unloadingWeight=response[0].unloadingWeight
|
|
|
+ this.unEnclosure=response[0].unEnclosure
|
|
|
+ this.currecttask=response[0]
|
|
|
+ this.getList()
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
taskNochange(e) {
|
|
|
this.taskNo = e
|
|
|
this.processNoList = []
|
|
|
this.processNo = ""
|
|
|
- for (let i = 0; i < this.taskNoList.length; i++) {
|
|
|
- if (e == this.taskNoList[i].taskNoValue) {
|
|
|
- for (let j = 0; j < this.taskNoList.length; j++) {
|
|
|
- this.processNoList.push({
|
|
|
- processNoKey: i,
|
|
|
- processNoValue: this.taskNoList[i].processNo[j].processNo,
|
|
|
- actualFreight: this.taskNoList[i].processNo[j].actualFreight,
|
|
|
- id: this.taskNoList[i].processNo[j].id,
|
|
|
- tranPriceIng: this.taskNoList[i].processNo[j].tranPrice,
|
|
|
- priceStatus: this.taskNoList[i].processNo[j].priceStatus
|
|
|
- })
|
|
|
- }
|
|
|
+ this.getList()
|
|
|
+ for (let i = 0; i < this.taskNoList1.length; i++) {
|
|
|
+ if (e == this.taskNoList1[i].taskNo) {
|
|
|
+ this.enclosure=this.taskNoList1[i].enclosure
|
|
|
+ this.shippedWeight=this.taskNoList1[i].shippedWeight
|
|
|
+ this.unEnclosure=this.taskNoList1[i].unEnclosure
|
|
|
+ this.unloadingWeight=this.taskNoList1[i].unloadingWeight
|
|
|
+ this.currecttask=this.taskNoList1[i]
|
|
|
+ // for (let j = 0; j < this.taskNoList.length; j++) {
|
|
|
+ // this.processNoList.push({
|
|
|
+ // processNoKey: i,
|
|
|
+ // processNoValue: this.taskNoList[i].processNo[j].processNo,
|
|
|
+ // actualFreight: this.taskNoList[i].processNo[j].actualFreight,
|
|
|
+ // id: this.taskNoList[i].processNo[j].id,
|
|
|
+ // tranPriceIng: this.taskNoList[i].processNo[j].tranPrice,
|
|
|
+ // priceStatus: this.taskNoList[i].processNo[j].priceStatus,
|
|
|
+ // })
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -1033,23 +1240,8 @@
|
|
|
this.deptBudgetTotal = response.total
|
|
|
this.warehouseList = response
|
|
|
})
|
|
|
- this.contractNoList = []
|
|
|
- getYunShuXiaLa({
|
|
|
- flag: 2,
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- for (let i = 0; i < response.length; i++) {
|
|
|
- this.contractNoList.push({
|
|
|
- constKey: i,
|
|
|
- contractNo: response[i]
|
|
|
- })
|
|
|
- }
|
|
|
- this.contractNoList.unshift({
|
|
|
- contractNo: '全部合同'
|
|
|
- })
|
|
|
- this.options = this.contractNoList
|
|
|
- })
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
handleRemove(file) {
|
|
|
console.log(file)
|