|
@@ -149,11 +149,13 @@
|
|
|
|
|
|
|
|
<div class="accounts-list">
|
|
<div class="accounts-list">
|
|
|
送货日期
|
|
送货日期
|
|
|
- <div class="accounts-center">{{(totalMoney - modifyPrice).toFixed(2)}}</div>
|
|
|
|
|
|
|
+ <el-date-picker v-model="form.sendTimeWant" style="width: 80%" type="date" placeholder="请选择,默认当天或隔天"> </el-date-picker>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="accounts-list">
|
|
<div class="accounts-list">
|
|
|
开单人员
|
|
开单人员
|
|
|
- <div class="accounts-center">{{(totalMoney - modifyPrice).toFixed(2)}}</div>
|
|
|
|
|
|
|
+ <el-select ref="kdStaffRef" style="width:80%" v-model="form.getStaffName" filterable placeholder="请选择" @change="changeKdStaff">
|
|
|
|
|
+ <el-option v-for="item in staffList" :key="item.id" :label="item.name" :value="item"> </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="accounts-list">
|
|
<div class="accounts-list">
|
|
|
备注
|
|
备注
|
|
@@ -226,6 +228,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import { mapGetters } from 'vuex';
|
|
|
import productMins from "@/mixins/product2";
|
|
import productMins from "@/mixins/product2";
|
|
|
export default {
|
|
export default {
|
|
|
name: 'add',
|
|
name: 'add',
|
|
@@ -254,9 +257,11 @@ export default {
|
|
|
needPrint:1,//订单生成时打印订单1需要2不需要
|
|
needPrint:1,//订单生成时打印订单1需要2不需要
|
|
|
hasPay:0,
|
|
hasPay:0,
|
|
|
getStaffName:'',
|
|
getStaffName:'',
|
|
|
|
|
+ getStaffId:0,
|
|
|
dealPrice:0,
|
|
dealPrice:0,
|
|
|
wlName:''
|
|
wlName:''
|
|
|
},
|
|
},
|
|
|
|
|
+ staffList:[],
|
|
|
printAmount:1,
|
|
printAmount:1,
|
|
|
checked:true,
|
|
checked:true,
|
|
|
type:'自提',//取货方式
|
|
type:'自提',//取货方式
|
|
@@ -273,7 +278,7 @@ export default {
|
|
|
getIndex:0,
|
|
getIndex:0,
|
|
|
getItemList:[],//搜索展示的列表
|
|
getItemList:[],//搜索展示的列表
|
|
|
selectIndex:0,
|
|
selectIndex:0,
|
|
|
- selectShopListVal:'',
|
|
|
|
|
|
|
+ kdStaffVal:'www',
|
|
|
freight:'',//运费
|
|
freight:'',//运费
|
|
|
remark:'',//备注
|
|
remark:'',//备注
|
|
|
printSelectList:'',
|
|
printSelectList:'',
|
|
@@ -288,6 +293,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
mixins: [productMins],
|
|
mixins: [productMins],
|
|
|
computed: {
|
|
computed: {
|
|
|
|
|
+ ...mapGetters(['shopInfo']),
|
|
|
displayPackCost(){
|
|
displayPackCost(){
|
|
|
if(this.currentShop.pfLevel && this.currentShop.pfLevel == 1){
|
|
if(this.currentShop.pfLevel && this.currentShop.pfLevel == 1){
|
|
|
return true
|
|
return true
|
|
@@ -391,16 +397,37 @@ export default {
|
|
|
}
|
|
}
|
|
|
that.setSendType(0)
|
|
that.setSendType(0)
|
|
|
that.setTransType(4)
|
|
that.setTransType(4)
|
|
|
|
|
+ that.form.hasPay = 2
|
|
|
that.showCommitPop = true
|
|
that.showCommitPop = true
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.$service.common.shopInfo().then(res => {
|
|
this.$service.common.shopInfo().then(res => {
|
|
|
that.currentShop = res.shopInfo
|
|
that.currentShop = res.shopInfo
|
|
|
|
|
+ let currentStaff = res.staff
|
|
|
|
|
+
|
|
|
|
|
+ that.$service.shopAdmin.getAllStaff().then(res => {
|
|
|
|
|
+ that.staffList = res.list
|
|
|
|
|
+ if(!that.$util.isEmpty(that.staffList)){
|
|
|
|
|
+ for(const ele of that.staffList){
|
|
|
|
|
+ if(currentStaff.id == ele.id){
|
|
|
|
|
+ that.form.getStaffId = ele.id
|
|
|
|
|
+ that.form.getStaffName = ele.name
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ changeKdStaff(info){
|
|
|
|
|
+ this.form.getStaffId = info.id
|
|
|
|
|
+ this.form.getStaffName = info.name
|
|
|
|
|
+ },
|
|
|
setTransType(type){
|
|
setTransType(type){
|
|
|
this.form.transType = type
|
|
this.form.transType = type
|
|
|
},
|
|
},
|
|
@@ -461,7 +488,7 @@ export default {
|
|
|
return { productId: ele.id, bigNum: ele.big, smallNum: ele.small };
|
|
return { productId: ele.id, bigNum: ele.big, smallNum: ele.small };
|
|
|
});
|
|
});
|
|
|
let parameter = {
|
|
let parameter = {
|
|
|
- customId:this.selectShopListVal,
|
|
|
|
|
|
|
+ customId:this.globalCustomId,
|
|
|
getType:this.type=='自提'?1:2,
|
|
getType:this.type=='自提'?1:2,
|
|
|
sendCost:this.freight,
|
|
sendCost:this.freight,
|
|
|
product:JSON.stringify(product),
|
|
product:JSON.stringify(product),
|