|
@@ -364,6 +364,48 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
+ <el-tab-pane label="运输订单状态调整接口" name="eighth">
|
|
|
|
+ <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="poundNo from">
|
|
|
|
+ <span class="text">订单状态:</span>
|
|
|
|
+ <el-input v-model.number="orderStatus"></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="button_box">
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="updateOrderStatus"
|
|
|
|
+ :disabled="disabled"
|
|
|
|
+ >确认</el-button
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </el-tab-pane>
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -401,7 +443,8 @@ export default {
|
|
lineQuence: null,
|
|
lineQuence: null,
|
|
gatePostList: [],
|
|
gatePostList: [],
|
|
enFactoryGatepost: null,
|
|
enFactoryGatepost: null,
|
|
- gatePostId: null
|
|
|
|
|
|
+ gatePostId: null,
|
|
|
|
+ orderStatus: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -412,6 +455,23 @@ export default {
|
|
this.information()
|
|
this.information()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ updateOrderStatus() {
|
|
|
|
+ if (
|
|
|
|
+ this.orderNumber != null &&
|
|
|
|
+ this.orderNumber != '' &&
|
|
|
|
+ this.orderStatus != null
|
|
|
|
+ ) {
|
|
|
|
+ this.axios
|
|
|
|
+ .post('/api/v1/bp/updateOrderStatus', {
|
|
|
|
+ orderNumber: this.orderNumber,
|
|
|
|
+ orderStatus: this.orderStatus
|
|
|
|
+ })
|
|
|
|
+ .then(res => {
|
|
|
|
+ this.$message.success('修改成功')
|
|
|
|
+ this.$router.go(0)
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
updateCanwork() {
|
|
updateCanwork() {
|
|
console.log(this.orderNumber)
|
|
console.log(this.orderNumber)
|
|
this.axios
|
|
this.axios
|