|
@@ -6,17 +6,45 @@
|
|
:option="goodsOptionCrud"
|
|
:option="goodsOptionCrud"
|
|
:table-loading="loading"
|
|
:table-loading="loading"
|
|
:page.sync="page"
|
|
:page.sync="page"
|
|
|
|
+ ref="crudContact"
|
|
@on-load="onLoad"
|
|
@on-load="onLoad"
|
|
@search-change="searchChange"
|
|
@search-change="searchChange"
|
|
@row-save="(row,done,loading)=>{rowSave(row,0,done,loading)}"
|
|
@row-save="(row,done,loading)=>{rowSave(row,0,done,loading)}"
|
|
@row-update="rowSave">
|
|
@row-update="rowSave">
|
|
|
|
+ <template slot-scope="{row,index}" slot="menu">
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ size="small"
|
|
|
|
+ v-if="row.status === 2"
|
|
|
|
+ @click="rowSaveT(row,index)"
|
|
|
|
+ >{{ row.$cellEdit ? '保 存' : '修 改' }}
|
|
|
|
+ </el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="designate(row, index)"
|
|
|
|
+ v-if="row.status===2"
|
|
|
|
+ >受 理</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="cancelDesignate(row, index)"
|
|
|
|
+ v-if="row.status===3"
|
|
|
|
+ >取消受理</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ size="small"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="confirmCompletion(row, index)"
|
|
|
|
+ v-if="row.status === 3"
|
|
|
|
+ >确认完工</el-button>
|
|
|
|
+ </template>
|
|
</avue-crud>
|
|
</avue-crud>
|
|
</basic-container>
|
|
</basic-container>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import {driverQueryCollection} from "@/api/landTransportation";
|
|
|
|
|
|
+import {driverQueryCollection, acceptanceCollection, acceptanceDispatchCollection,confirmCompletion} from "@/api/landTransportation";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "index",
|
|
name: "index",
|
|
@@ -34,12 +62,14 @@ export default {
|
|
goodsList:[],
|
|
goodsList:[],
|
|
goodsOptionCrud: {
|
|
goodsOptionCrud: {
|
|
index:true,
|
|
index:true,
|
|
- cellBtn:true,
|
|
|
|
addBtn:false,
|
|
addBtn:false,
|
|
- addRowBtn:false,
|
|
|
|
|
|
+ delBtn:false,
|
|
|
|
+ cellBtn: false,
|
|
|
|
+ cancelBtn:false,
|
|
|
|
+ editBtn:false,
|
|
|
|
+ addRowBtn: false,
|
|
searchMenuPosition:"right",
|
|
searchMenuPosition:"right",
|
|
searchMenuSpan:6,
|
|
searchMenuSpan:6,
|
|
- delBtn:false,
|
|
|
|
align:'center',
|
|
align:'center',
|
|
height:"auto",
|
|
height:"auto",
|
|
showSummary: true,
|
|
showSummary: true,
|
|
@@ -57,13 +87,29 @@ export default {
|
|
name: 'ctnQuantity',
|
|
name: 'ctnQuantity',
|
|
type: 'count'
|
|
type: 'count'
|
|
}],
|
|
}],
|
|
- column: [
|
|
|
|
- {
|
|
|
|
- label: '车队',
|
|
|
|
- width: 200,
|
|
|
|
- search:true,
|
|
|
|
- prop: 'fleetName'
|
|
|
|
- },{
|
|
|
|
|
|
+ column: [{
|
|
|
|
+ label: '状态',
|
|
|
|
+ width: 200,
|
|
|
|
+ type: 'select',
|
|
|
|
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=land_order_status",
|
|
|
|
+ props: {
|
|
|
|
+ label: "dictValue",
|
|
|
|
+ value: "dictKey"
|
|
|
|
+ },
|
|
|
|
+ dataType: "string",
|
|
|
|
+ prop: 'status'
|
|
|
|
+ },{
|
|
|
|
+ label: '车队',
|
|
|
|
+ width: 200,
|
|
|
|
+ search:true,
|
|
|
|
+ type: 'select',
|
|
|
|
+ dicUrl: "/api/blade-client/corpsdesc/fleet-list",
|
|
|
|
+ props: {
|
|
|
|
+ label: "cname",
|
|
|
|
+ value: "id"
|
|
|
|
+ },
|
|
|
|
+ prop: 'fleetId'
|
|
|
|
+ },{
|
|
label: '尺寸箱型',
|
|
label: '尺寸箱型',
|
|
width: 100,
|
|
width: 100,
|
|
search:true,
|
|
search:true,
|
|
@@ -146,6 +192,64 @@ export default {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //箱信息保存
|
|
|
|
+ rowSaveT(row, index, done, loading) {
|
|
|
|
+ this.$refs.crudContact.rowCell(row, index)
|
|
|
|
+ done()
|
|
|
|
+ },
|
|
|
|
+ //箱信息派车
|
|
|
|
+ designate(row){
|
|
|
|
+ this.$confirm('是否确定派车', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ acceptanceCollection(row).then(res=>{
|
|
|
|
+ this.$message.success('操作成功');
|
|
|
|
+ this.onLoad(this.page)
|
|
|
|
+ })
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '已取消'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ //取消派车
|
|
|
|
+ cancelDesignate(row){
|
|
|
|
+ this.$confirm('是否确定取消派车', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ acceptanceDispatchCollection({id:row.id}).then(res=>{
|
|
|
|
+ this.$message.success('操作成功');
|
|
|
|
+ this.onLoad(this.page)
|
|
|
|
+ })
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '已取消'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ confirmCompletion(){
|
|
|
|
+ this.$confirm('是否确定完工', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ confirmCompletion({id:row.id}).then(res=>{
|
|
|
|
+ this.$message.success('操作成功');
|
|
|
|
+ this.onLoad(this.page)
|
|
|
|
+ })
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '已取消'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|