Browse Source

配送api调整

test
kilo 2 years ago
parent
commit
8f84925824
  1. 2
      src/views/distribution/delivery/distributionDelivery.vue
  2. 23
      src/views/distribution/reservation/reservationFrom.vue

2
src/views/distribution/delivery/distributionDelivery.vue

@ -144,7 +144,7 @@
</template>
<script>
import { getList, getDetail, add, update, remove } from "@/api/distribution/distributionDelivery";
import { addDelivery, getDelivery, addDelivery, updateDelivery, removeDelivery } from "@/api/distribution/distributionDelivery";
import option from "@/option/distribution/distributionDelivery";
import { mapGetters } from "vuex";

23
src/views/distribution/reservation/reservationFrom.vue

@ -227,27 +227,27 @@
>{{item.dictValue}}
<span v-if="index===0||index===6||index===2||index===4">&nbsp;件数:
<el-input type="number" v-model="item.f" :disabled = "this.form?.freightMark?.indexOf(item.dictKey) == -1"
@change="textbox($event,index)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
@change="textbox($event,index,1)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
</span>
<span v-if="index===1">公里:
<el-input type="text" v-model="item.a" :disabled = "this.form?.freightMark?.indexOf(item.dictKey) == -1"
@change="textbox($event,index)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
@change="textbox($event,index,2)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
</span>
<span v-if="index===3">距离:
<el-input type="number" v-model="item.b" :disabled = "this.form?.freightMark?.indexOf(item.dictKey) == -1"
@change="textbox($event,index)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
@change="textbox($event,index,3)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
</span>
<span v-if="index===5">人数:
<el-input type="number" v-model="item.c" :disabled = "this.form?.freightMark?.indexOf(item.dictKey) == -1"
@change="textbox($event,index)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
@change="textbox($event,index,4)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
</span>
<span v-if="index===0">楼层:
<el-input type="number" v-model="item.d" :disabled = "this.form?.freightMark?.indexOf(item.dictKey) == -1"
@change="textbox($event,index)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
@change="textbox($event,index,5)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
</span>
<span v-if="item">预计费用:
<el-input type="number" v-model="item.e" :disabled = "this.form?.freightMark?.indexOf(item.dictKey) == -1"
@change="textbox($event,index)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
@change="textbox($event,index,6)" style="width: 10%;border:none; border-bottom:2px solid #eee;"/>
</span>
<!-- <el-input type="number" v-model="item.remark" placeholder="请输入费用" :disabled = "this.form?.freightMark?.indexOf(item.dictKey) == -1"-->
<!-- @change="textbox($event,index)" style="width: 50%;border:none; border-bottom:2px solid #eee;"/>-->
@ -347,6 +347,8 @@ export default {
//
addvalue:{},
costList:[], //
//
addvalueObj:{},
}
},
mounted () {
@ -402,13 +404,10 @@ export default {
// this.checkAll = checkedCount === this.cities.length;
// this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;
},
textbox(e,index) {
console.log("e,index",e,index);
textbox(e,index,a) {
console.log("e,index",e,index,a);
this.costList[index+1] = e;
if (index===1){
}
console.log(">>>>>>>",this.costList);
},
//
getDictionary(){

Loading…
Cancel
Save