|
@@ -222,14 +222,13 @@ import zjDialogPicker from "@/components/zj-dialog/zj-dialog-picker.vue";
|
|
|
|
|
|
toChooseProduct(index) {
|
|
|
if(!this.websit) return this.$toast('请选择所属网点');
|
|
|
- if(!this.userMobile) return this.$toast('请输入客户电话');
|
|
|
- if(!(/^1[3456789]\d{9}$/.test(this.userMobile)) || this.userMobile.length != 11) return this.$toast('请填写正确的客户电话');
|
|
|
this.$navToPage({
|
|
|
url: `/packageMaterial/pages/newSale/product?dijiIndex=${index}&type=${this.type}&categoryId=${this.type=='P'?this?.category?.categoryId:''}&categoryName=${this.type=='P'?this?.category?.name:''}&userMobile=${this.userMobile}&orderNo=${this.orderNo}&partsWebsitId=${this.websit.partsWebsitId}&websitId=${this.websit.websitId}&websitName=${this.websit.name}&wbId=${this.wbId||''}&wbIsAllFee=${this.wbIsAllFee||''}&wbPayType=${this.wbPayType||''}`
|
|
|
})
|
|
|
},
|
|
|
|
|
|
submitData() {
|
|
|
+ if(!this.userMobile) return this.$toast('请输入客户电话');
|
|
|
if (this.rpMaterialOrderItemList.length < 1) return this.$toast('请选择');
|
|
|
for (var item of this.rpMaterialOrderItemList) {
|
|
|
if(!item.repairFlag) return this.$toast('维修标识不能为空');
|