|
@@ -12,7 +12,7 @@
|
|
|
</u-input>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="item">
|
|
|
+ <view class="item" v-if="goods.needCustomer==1">
|
|
|
<view class="l">客户:</view>
|
|
|
<view class="r" style="flex: 12;">
|
|
|
<picker :disabled="goods.needDeclare==1" v-if="customer.customerList.length>0" class="p-picker"
|
|
@@ -57,7 +57,7 @@
|
|
|
<u-input placeholder="车辆" v-model="car.carNo" readonly>
|
|
|
<view slot="suffix" style="display: flex;">
|
|
|
<u-icon @click="editCar(car)" size="20" name="edit-pen-fill" color="blue"></u-icon>
|
|
|
- <u-icon style="margin-left:15rpx;" size="20" @click="delCar(car)" name="close-circle-fill"
|
|
|
+ <u-icon style="margin-left:20rpx;" size="20" @click="delCar(car)" name="close-circle-fill"
|
|
|
color="red"></u-icon>
|
|
|
</view>
|
|
|
</u-input>
|
|
@@ -165,8 +165,7 @@
|
|
|
let id = options.id;
|
|
|
this.form.id = id;
|
|
|
this.customerId = uni.getStorageSync('customerId');
|
|
|
- this.goods = JSON.parse(options.goodsJson);
|
|
|
-
|
|
|
+ this.goods = JSON.parse(options.goodsJson);
|
|
|
this.getOtherBusinessById();
|
|
|
let that = this;
|
|
|
uni.$on('getSelectDeclare', declare => {
|
|
@@ -192,6 +191,7 @@
|
|
|
},
|
|
|
methods: {
|
|
|
remarkFn(type){
|
|
|
+ console.log(type)
|
|
|
let remark=type.remark?type.remark:'';
|
|
|
this.$common.to('/pages/onely-disinfect/add-remark?needRemark='+type.needRemark+'&typeId='+type.id+'&remark='+remark)
|
|
|
},
|
|
@@ -299,11 +299,13 @@
|
|
|
if (type.id == item.itemTypeId) {
|
|
|
type.items.filter(obj => obj.id == item.itemId)
|
|
|
.forEach(obj => {
|
|
|
+ console.log(obj)
|
|
|
type.num = item.num;
|
|
|
type.price = item.itemPrice;
|
|
|
type.itemName = item.itemName;
|
|
|
type.itemId = item.itemId;
|
|
|
type.inc = obj.inc;
|
|
|
+ type.remark=item.remark;
|
|
|
})
|
|
|
|
|
|
|
|
@@ -415,6 +417,8 @@
|
|
|
let form = this.form;
|
|
|
let goods = this.goods;
|
|
|
let needDeclare = goods.needDeclare;
|
|
|
+ let needCustomer=goods.needCustomer;
|
|
|
+ let index = this.customer.index;
|
|
|
if (needDeclare == 1 && !form.declareNo) {
|
|
|
this.$common.toast('请选择申报单');
|
|
|
return false;
|
|
@@ -479,11 +483,16 @@
|
|
|
this.form.carJson = JSON.stringify(this.car.list);
|
|
|
this.form.items = null;
|
|
|
this.form.cars = null;
|
|
|
- let customerList = this.customer.customerList;
|
|
|
- let index = this.customer.index;
|
|
|
- let customer = customerList[index];
|
|
|
- this.form.customerId = customer.id;
|
|
|
- this.form.customerName = customer.name;
|
|
|
+ if(needCustomer==1){
|
|
|
+ let customerList = this.customer.customerList;
|
|
|
+ let index = this.customer.index;
|
|
|
+ let customer = customerList[index];
|
|
|
+ this.form.customerId = customer.id;
|
|
|
+ this.form.customerName = customer.name;
|
|
|
+ }else{
|
|
|
+ this.form.customerId='';
|
|
|
+ this.form.customerName ='';
|
|
|
+ }
|
|
|
this.form.goodsId = this.goods.id;
|
|
|
this.form.goodsName = this.goods.name;
|
|
|
let chinaCarNo = carList
|