|
@@ -74,6 +74,11 @@
|
|
style="width: 50px;"
|
|
style="width: 50px;"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" @click="dealWithOverWeight">
|
|
|
|
+ 超重出厂
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<div class="table">
|
|
<div class="table">
|
|
@@ -87,6 +92,44 @@
|
|
:pageSize="pageSize"
|
|
:pageSize="pageSize"
|
|
></dilTable>
|
|
></dilTable>
|
|
</div>
|
|
</div>
|
|
|
|
+ <el-dialog :visible.sync="disvisiable">
|
|
|
|
+ <div class="admin2">
|
|
|
|
+ <div class="carrier from">
|
|
|
|
+ <el-form
|
|
|
|
+ :inline="true"
|
|
|
|
+ class="demo-form-inline"
|
|
|
|
+ label-width="80px"
|
|
|
|
+ >
|
|
|
|
+ <el-form-item label="车牌号:">
|
|
|
|
+ <el-autocomplete
|
|
|
|
+ class="inline-input"
|
|
|
|
+ v-model="capacityName"
|
|
|
|
+ :fetch-suggestions="querySearchCapacity"
|
|
|
|
+ placeholder="车牌号"
|
|
|
|
+ :trigger-on-focus="false"
|
|
|
|
+ @select="handleSelectCapacity"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="{ item }">
|
|
|
|
+ <div class="name">{{ item.capacityNumber }}</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-autocomplete>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="poundNo from">
|
|
|
|
+ <span class="text">运输订单号:</span>
|
|
|
|
+ <el-input v-model="orderNumber" disabled></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="button_box">
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="updateCanwork"
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ >确认</el-button
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -96,6 +139,11 @@ import { getCookie } from "@/utils/util.js";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ orderNumber: null,
|
|
|
|
+ orderId:null,
|
|
|
|
+ disabled: false,
|
|
|
|
+ capacityName:null,
|
|
|
|
+ disvisiable:false,
|
|
wareHouse: null,
|
|
wareHouse: null,
|
|
inputMaterial: null,
|
|
inputMaterial: null,
|
|
shiyHeigth: 140,
|
|
shiyHeigth: 140,
|
|
@@ -186,6 +234,66 @@ export default {
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
// },
|
|
// },
|
|
|
|
+ dealWithOverWeight(){
|
|
|
|
+ this.disvisiable=true
|
|
|
|
+ },
|
|
|
|
+ //以下是运力边输边查搜索
|
|
|
|
+ querySearchCapacity(queryString, cb) {
|
|
|
|
+ if (queryString.length < 3) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.axios
|
|
|
|
+ .get('/api/v1/uc/getCapacityNumber?index=' + queryString)
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == '200') {
|
|
|
|
+ var restaurantsCarrier = res.data.data
|
|
|
|
+ console.log(restaurantsCarrier, 'restaurantsCarrier')
|
|
|
|
+ var results = queryString
|
|
|
|
+ ? restaurantsCarrier.filter(this.createFilterCarrier(queryString))
|
|
|
|
+ : restaurantsCarrier
|
|
|
|
+ // 调用 callback 返回建议列表的数据
|
|
|
|
+ cb(results)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ createFilterCarrier(queryString) {
|
|
|
|
+ return restaurantsCarrier => {
|
|
|
|
+ return (
|
|
|
|
+ restaurantsCarrier.capacityNumber
|
|
|
|
+ .toLowerCase()
|
|
|
|
+ .indexOf(queryString.toLowerCase()) > -1
|
|
|
|
+ )
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ updateCanwork() {
|
|
|
|
+ console.log(this.orderNumber)
|
|
|
|
+ this.axios
|
|
|
|
+ .post('/api/v1/bp/updateOrderCanWork?orderNumber=' + this.orderNumber)
|
|
|
|
+ .then(res => {
|
|
|
|
+ this.$message.success('修改成功')
|
|
|
|
+ this.$router.go(0)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //运力弹出层
|
|
|
|
+ handleSelectCapacity(item) {
|
|
|
|
+ this.capacityId = item.capacityId
|
|
|
|
+ this.capacityName = item.capacityNumber
|
|
|
|
+ this.axios
|
|
|
|
+ .get('/api/v1/uc/getOrderNumber?capacityId=' + this.capacityId)
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == '200') {
|
|
|
|
+ this.orderId = res.data.data.orderId
|
|
|
|
+ this.orderNumber = res.data.data.orderNumber
|
|
|
|
+ this.axios
|
|
|
|
+ .get('/api/v1/uc/getMaterialIdByOrderId?orderId=' + this.orderId)
|
|
|
|
+ .then(res => {
|
|
|
|
+ if (res.data.code == '200') {
|
|
|
|
+ this.materialList = res.data.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
refresh() {
|
|
refresh() {
|
|
this.$router.go(0);
|
|
this.$router.go(0);
|
|
},
|
|
},
|