|
|
@@ -7,6 +7,17 @@
|
|
|
</el-button>
|
|
|
</div>
|
|
|
<div class="add-customer-btn">
|
|
|
+ <el-dropdown style="margin-right: 10px">
|
|
|
+ <el-button type="primary" size="small">
|
|
|
+ 审核处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item @click.native="pleaseCheck">请核数据</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id">审核进度</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="repealCancel">撤销请核</el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="changeApproveOpen">特殊审批</el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
<el-button class="el-button--small-yh" type="primary" size="small" @click="editCustomer">
|
|
|
{{ form.id ? "确认修改" : "确认新增" }}
|
|
|
</el-button>
|
|
|
@@ -27,15 +38,16 @@
|
|
|
ref="crud"
|
|
|
:upload-delete="uploadDelete"
|
|
|
@row-save="rowSave"
|
|
|
- @row-update="(row,index,done,loading)=>{rowSave(row,done,loading,index)}"
|
|
|
+ @row-update="rowUpdate"
|
|
|
@resetColumn="resetColumnTwo('crud','option','optionList',235.1)"
|
|
|
@saveColumn="saveColumnTwo('crud','option','optionList',235.1)">
|
|
|
- <template slot-scope="{type,size,row,$index}" slot="menu">
|
|
|
- <el-button icon="el-icon-edit" :size="size" :type="type" @click="$refs.crud.rowEdit(row,$index)">编辑</el-button>
|
|
|
- <el-button icon="el-icon-delete" :size="size" :type="type">删除</el-button>
|
|
|
+ <template slot-scope="{type,size,row,index}" slot="menu">
|
|
|
+ <el-button icon="el-icon-edit" :size="size" :type="type" @click="$refs.crud.rowEdit(row,index)">编辑
|
|
|
+ </el-button>
|
|
|
+ <el-button icon="el-icon-delete" :size="size" :type="type" @click="rowDel(row,index,'MX')">删除</el-button>
|
|
|
</template>
|
|
|
- <template slot="addressIdForm">
|
|
|
- <port-info v-model="formTwo.addressId" type="id"/>
|
|
|
+ <template slot="addressForm">
|
|
|
+ <port-info v-model="formTwo.addressId" type="id" @balabalaTow="balabala"/>
|
|
|
</template>
|
|
|
<template slot="boxMakingCompanyIdForm">
|
|
|
<crop-select v-model="formTwo.boxMakingCompanyId" :refresh="false" @getCorpData="getGSData" corpType="GS"/>
|
|
|
@@ -47,17 +59,18 @@
|
|
|
:option="optionTwo"
|
|
|
:data="dataListTwo"
|
|
|
v-model="formThree"
|
|
|
- ref="crudTwo"
|
|
|
@row-save="rowSave"
|
|
|
- @row-update="(row,index,done,loading)=>{rowSave(row,done,loading,index)}"
|
|
|
+ ref="crudTwo"
|
|
|
+ @row-update="rowUpdate"
|
|
|
@resetColumn="resetColumnTwo('crudTwo','option','optionList',235.2)"
|
|
|
@saveColumn="saveColumnTwo('crudTwo','option','optionList',235.2)">
|
|
|
- <template slot-scope="{type,size,row,$index}" slot="menu">
|
|
|
- <el-button icon="el-icon-edit" :size="size" :type="type" @click="$refs.crudTwo.rowEdit(row,$index)">编辑</el-button>
|
|
|
- <el-button icon="el-icon-delete" :size="size" :type="type">删除</el-button>
|
|
|
+ <template slot-scope="{type,size,row,index}" slot="menu">
|
|
|
+ {{index}}
|
|
|
+ <el-button icon="el-icon-edit" :size="size" :type="type" @click="$refs.crudTwo.rowEdit(row,index)">编辑</el-button>
|
|
|
+ <el-button icon="el-icon-delete" :size="size" :type="type" @click="rowDel(row,index,'FY')">删除</el-button>
|
|
|
</template>
|
|
|
<template slot="itemIdForm">
|
|
|
- <breakdown-select v-model="formThree.itemId" @selectValue="selectValue(value)"
|
|
|
+ <breakdown-select v-model="formThree.itemId" @selectValue="selectValue"
|
|
|
:configuration="breakConfiguration"></breakdown-select>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
|
@@ -71,19 +84,50 @@
|
|
|
display
|
|
|
/>
|
|
|
</trade-card>
|
|
|
+ <el-dialog
|
|
|
+ append-to-body
|
|
|
+ title="审批进度"
|
|
|
+ class="el-dialogDeep"
|
|
|
+ :visible.sync="checkScheduleDialog"
|
|
|
+ width="40%"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ :destroy-on-close="true"
|
|
|
+ :close-on-press-escape="false"
|
|
|
+ v-dialog-drag
|
|
|
+ >
|
|
|
+ <check-schedule
|
|
|
+ :checkId="checkId"
|
|
|
+ :batchNo="batchNo"
|
|
|
+ @choceScheduleFun="choceScheduleFun"
|
|
|
+ ></check-schedule>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {detail, submit, tradingBoxFiles} from "@/api/boxManagement/buyContainer";
|
|
|
+import {
|
|
|
+ detail,
|
|
|
+ submit,
|
|
|
+ tradingBoxFiles,
|
|
|
+ selectArchivesList,
|
|
|
+ tradingBoxItem,
|
|
|
+ tradingBoxFees,
|
|
|
+ pleaseCheck,
|
|
|
+ repealCancel
|
|
|
+} from "@/api/boxManagement/buyContainer";
|
|
|
|
|
|
+import checkSchedule from "@/components/check/checkSchedule";
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
|
props: {
|
|
|
onLoad: Object
|
|
|
},
|
|
|
+ components:{checkSchedule},
|
|
|
data() {
|
|
|
return {
|
|
|
+ checkScheduleDialog: false,
|
|
|
+ checkId: '',
|
|
|
+ batchNo: '',
|
|
|
breakConfiguration: {
|
|
|
multipleChoices: false,
|
|
|
multiple: false,
|
|
|
@@ -140,11 +184,38 @@ export default {
|
|
|
column: [{
|
|
|
label: '箱号',
|
|
|
prop: 'code',
|
|
|
- width: 100
|
|
|
+ width: 100,
|
|
|
+ overHidden: true,
|
|
|
+ filterable: true,
|
|
|
+ remote: true,
|
|
|
+ type: "select",
|
|
|
+ dicUrl: "/api/blade-box-tube/archives/selectArchivesList?size=10¤t=1&code={{key}}",
|
|
|
+ props: {
|
|
|
+ label: "code",
|
|
|
+ value: "code"
|
|
|
+ },
|
|
|
+ change: ({value, column}) => {
|
|
|
+ selectArchivesList({code: value}).then(res => {
|
|
|
+ for (let item of res.data.data) {
|
|
|
+ if (value == item.code) {
|
|
|
+ this.formTwo = {
|
|
|
+ boxSource: item.boxSource,
|
|
|
+ boxStatus: item.boxStatus,
|
|
|
+ emptyWeight: item.emptyWeight,
|
|
|
+ grossWeight: item.gorssWeight,
|
|
|
+ tare: item.tare,
|
|
|
+ loadingWeight: item.loadingWeight,
|
|
|
+ volume: item.volume,
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}, {
|
|
|
label: '币别',
|
|
|
prop: 'currency',
|
|
|
width: 100,
|
|
|
+ overHidden: true,
|
|
|
filterable: true,
|
|
|
type: "select",
|
|
|
dicUrl: "/api/blade-system/dict-biz/dictionary?code=currency",
|
|
|
@@ -155,11 +226,13 @@ export default {
|
|
|
}, {
|
|
|
label: '金额',
|
|
|
prop: 'amount',
|
|
|
+ overHidden: true,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '箱类型',
|
|
|
prop: 'boxTypeId',
|
|
|
width: 100,
|
|
|
+ overHidden: true,
|
|
|
filterable: true,
|
|
|
type: 'select',
|
|
|
props: {
|
|
|
@@ -169,11 +242,14 @@ export default {
|
|
|
dicUrl: '/api/blade-client/container/listMessage'
|
|
|
}, {
|
|
|
label: '最新地点',
|
|
|
- prop: 'addressId',
|
|
|
+ prop: 'address',
|
|
|
+ overHidden: true,
|
|
|
+ formProp: 'addressId',
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '最新日期',
|
|
|
prop: 'newDate',
|
|
|
+ overHidden: true,
|
|
|
width: 100,
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
@@ -182,6 +258,7 @@ export default {
|
|
|
label: '箱来源',
|
|
|
prop: 'boxSource',
|
|
|
width: 100,
|
|
|
+ overHidden: true,
|
|
|
filterable: true,
|
|
|
type: 'select',
|
|
|
dicUrl: "/api/blade-system/dict-biz/dictionary?code=box_source",
|
|
|
@@ -193,6 +270,7 @@ export default {
|
|
|
label: '箱状态',
|
|
|
prop: 'boxStatus',
|
|
|
width: 100,
|
|
|
+ overHidden: true,
|
|
|
filterable: true,
|
|
|
type: 'select',
|
|
|
dicUrl: "/api/blade-system/dict-biz/dictionary?code=box_status",
|
|
|
@@ -201,30 +279,46 @@ export default {
|
|
|
value: "dictKey"
|
|
|
}
|
|
|
}, {
|
|
|
- label: '空重',
|
|
|
+ label: '空重(kg)',
|
|
|
prop: 'emptyWeight',
|
|
|
+ type: 'number',
|
|
|
+ overHidden: true,
|
|
|
+ controls: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
- label: '毛重',
|
|
|
+ label: '毛重(kg)',
|
|
|
prop: 'grossWeight',
|
|
|
+ type: 'number',
|
|
|
+ overHidden: true,
|
|
|
+ controls: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
- label: '皮重',
|
|
|
+ label: '皮重(kg)',
|
|
|
prop: 'tare',
|
|
|
+ overHidden: true,
|
|
|
+ type: 'number',
|
|
|
+ controls: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
- label: '装载重量',
|
|
|
+ label: '装载重量(kg)',
|
|
|
prop: 'loadingWeight',
|
|
|
+ type: 'number',
|
|
|
+ overHidden: true,
|
|
|
+ controls: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
- label: '容积',
|
|
|
+ label: '容积(m³)',
|
|
|
prop: 'volume',
|
|
|
+ type: 'number',
|
|
|
+ overHidden: true,
|
|
|
+ controls: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '状态',
|
|
|
prop: 'status',
|
|
|
width: 100,
|
|
|
- dataType:'number',
|
|
|
+ overHidden: true,
|
|
|
+ dataType: 'number',
|
|
|
filterable: true,
|
|
|
type: 'select',
|
|
|
dicUrl: "/api/blade-system/dict-biz/dictionary?code=approval_status",
|
|
|
@@ -235,11 +329,13 @@ export default {
|
|
|
}, {
|
|
|
label: '造箱公司',
|
|
|
prop: 'boxMakingCompanyId',
|
|
|
+ overHidden: true,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '造箱日期',
|
|
|
prop: 'boxMakingDate',
|
|
|
width: 100,
|
|
|
+ overHidden: true,
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
|
@@ -247,17 +343,20 @@ export default {
|
|
|
label: '起租日期',
|
|
|
prop: 'leaseCommencementDate',
|
|
|
width: 100,
|
|
|
+ overHidden: true,
|
|
|
type: "date",
|
|
|
format: "yyyy-MM-dd",
|
|
|
valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
|
}, {
|
|
|
label: '箱龄',
|
|
|
prop: 'boxAge',
|
|
|
+ overHidden: true,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '照片',
|
|
|
prop: 'tradingBoxFilesList',
|
|
|
width: 200,
|
|
|
+ overHidden: true,
|
|
|
type: 'upload',
|
|
|
span: 24,
|
|
|
listType: 'picture-card',
|
|
|
@@ -271,10 +370,11 @@ export default {
|
|
|
}, {
|
|
|
label: '备注',
|
|
|
prop: 'remarks',
|
|
|
+ overHidden: true,
|
|
|
type: 'textarea',
|
|
|
minRows: 3,
|
|
|
span: 24,
|
|
|
- width: 100
|
|
|
+ width: 200
|
|
|
}]
|
|
|
},
|
|
|
optionBack: {},
|
|
|
@@ -296,19 +396,30 @@ export default {
|
|
|
column: [{
|
|
|
label: '收款对象',
|
|
|
prop: 'corpId',
|
|
|
+ overHidden: true,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '箱号',
|
|
|
prop: 'code',
|
|
|
- width: 100
|
|
|
+ width: 100,
|
|
|
+ overHidden: true,
|
|
|
+ filterable: true,
|
|
|
+ type: "select",
|
|
|
+ dicUrl: "/api/blade-box-tube/archives/selectArchivesList",
|
|
|
+ props: {
|
|
|
+ label: "code",
|
|
|
+ value: "code"
|
|
|
+ },
|
|
|
}, {
|
|
|
label: '费用名称',
|
|
|
prop: 'itemId',
|
|
|
+ overHidden: true,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '币别',
|
|
|
prop: 'currency',
|
|
|
width: 100,
|
|
|
+ overHidden: true,
|
|
|
filterable: true,
|
|
|
type: "select",
|
|
|
dicUrl: "/api/blade-system/dict-biz/dictionary?code=currency",
|
|
|
@@ -319,19 +430,29 @@ export default {
|
|
|
}, {
|
|
|
label: '单价',
|
|
|
prop: 'price',
|
|
|
+ type: 'number',
|
|
|
+ overHidden: true,
|
|
|
+ controls: false,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '数量',
|
|
|
prop: 'quantity',
|
|
|
+ type: 'number',
|
|
|
+ controls: false,
|
|
|
+ overHidden: true,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '金额',
|
|
|
prop: 'amount',
|
|
|
+ type: 'number',
|
|
|
+ controls: false,
|
|
|
+ overHidden: true,
|
|
|
width: 100
|
|
|
}, {
|
|
|
label: '备注',
|
|
|
prop: 'remarks',
|
|
|
type: 'textarea',
|
|
|
+ overHidden: true,
|
|
|
minRows: 3,
|
|
|
span: 24,
|
|
|
width: 100
|
|
|
@@ -340,23 +461,109 @@ export default {
|
|
|
optionTwoBack:{},
|
|
|
dataListTwo:[],
|
|
|
dataList: [],
|
|
|
- tradingBoxFilesList:[]
|
|
|
+ tradingBoxFilesList: []
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- if (this.onLoad.id){
|
|
|
+ if (this.onLoad.id) {
|
|
|
this.refresh(this.onLoad.id)
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 明细删除
|
|
|
+ rowDel(row, index, type) {
|
|
|
+ this.$confirm("确定将选择数据删除?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ if (row.id) {
|
|
|
+ if (type == "MX") {
|
|
|
+ tradingBoxItem(row.id).then(res => {
|
|
|
+ if (res.data.success) {
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ this.dataList.splice(index, 1);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (type == "FY") {
|
|
|
+ tradingBoxFees(row.id).then(res => {
|
|
|
+ if (res.data.success) {
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ this.dataListTwo.splice(index, 1);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (type == "MX") {
|
|
|
+ this.dataList.splice(index, 1);
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ } else if (type == "FY") {
|
|
|
+ this.dataListTwo.splice(index, 1);
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
+ ;
|
|
|
+ },
|
|
|
+ balabala(val) {
|
|
|
+ if (val === null) {
|
|
|
+ this.formTwo.address = ''
|
|
|
+ } else {
|
|
|
+ this.formTwo.address = val.name
|
|
|
+ }
|
|
|
+ },
|
|
|
//选择费用名称
|
|
|
- selectValue(value){
|
|
|
+ selectValue(value) {
|
|
|
console.log(value)
|
|
|
},
|
|
|
- refresh(id){
|
|
|
- console.log(id)
|
|
|
- detail({id:id}).then(res=>{
|
|
|
- console.log(res)
|
|
|
+ //撤销
|
|
|
+ repealCancel(){
|
|
|
+ this.$confirm("您确定撤回此次申请吗?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ const data = {
|
|
|
+ id : this.form.id,
|
|
|
+ pageLabel:"买箱",
|
|
|
+ checkFlag: 1,
|
|
|
+ }
|
|
|
+ repealCancel(data).then(res => {
|
|
|
+ this.$message.success('撤回成功')
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 请核
|
|
|
+ pleaseCheck() {
|
|
|
+ this.$confirm("您确定提交请核申请吗?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ const data = {
|
|
|
+ id : this.form.id,
|
|
|
+ url: '/boxManagement/buyContainer/index',
|
|
|
+ pageStatus:"this.$store.getters.domSaleStatus",
|
|
|
+ pageLabel:"买箱",
|
|
|
+ checkFlag: 1,
|
|
|
+ }
|
|
|
+ this.pageLoading = true
|
|
|
+ this.saveLoading = true
|
|
|
+ pleaseCheck({
|
|
|
+ ...data,
|
|
|
+ type: "buy"
|
|
|
+ }).then(res => {
|
|
|
+ this.$message.success('请核成功')
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //审核关闭
|
|
|
+ choceScheduleFun(){
|
|
|
+ this.checkScheduleDialog = false
|
|
|
+ },
|
|
|
+ refresh(id) {
|
|
|
+ detail({id: id}).then(res => {
|
|
|
this.form = res.data.data
|
|
|
this.dataList = res.data.data.tradingBoxItemsList
|
|
|
this.dataListTwo = res.data.data.tradingBoxFeesList
|
|
|
@@ -367,20 +574,23 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//新增修改
|
|
|
- editCustomer(){
|
|
|
+ editCustomer() {
|
|
|
let data = {
|
|
|
...this.form,
|
|
|
- tradingBoxItemsList:this.dataList,
|
|
|
- tradingBoxFeesList:this.dataListTwo,
|
|
|
- tradingBoxFilesList:this.tradingBoxFilesList,
|
|
|
- type:"buy"
|
|
|
+ tradingBoxItemsList: this.dataList,
|
|
|
+ tradingBoxFeesList: this.dataListTwo,
|
|
|
+ tradingBoxFilesList: this.tradingBoxFilesList,
|
|
|
+ type: "buy"
|
|
|
}
|
|
|
- submit(data).then(res=>{
|
|
|
+ submit(data).then(res => {
|
|
|
console.log(res)
|
|
|
})
|
|
|
},
|
|
|
- rowSave(form, done, loading, index) {
|
|
|
- console.log(form)
|
|
|
+ rowSave(form,done,loading) {
|
|
|
+ done(form)
|
|
|
+ },
|
|
|
+ rowUpdate(form,index,done,loading) {
|
|
|
+ console.log(index)
|
|
|
done(form)
|
|
|
},
|
|
|
//删除图片
|