|
@@ -195,6 +195,7 @@
|
|
this.goods.dispatchingDate = this.time;
|
|
this.goods.dispatchingDate = this.time;
|
|
this.goods.batch = option.batch;
|
|
this.goods.batch = option.batch;
|
|
this.goods.id = option.id;
|
|
this.goods.id = option.id;
|
|
|
|
+ this.goods.tranCarNo = option.tranCarNo
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -242,7 +243,19 @@
|
|
confirmText: "继续添加",
|
|
confirmText: "继续添加",
|
|
success: function(res) {
|
|
success: function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
- // console.log(that.goods,24)
|
|
|
|
|
|
+ var result = that.goods.tranCarNo
|
|
|
|
+ .substr(that.goods.tranCarNo
|
|
|
|
+ .indexOf("C") + 1, that
|
|
|
|
+ .goods.tranCarNo.length);
|
|
|
|
+ var num = Number(result) + 1
|
|
|
|
+ if (num <= 9) {
|
|
|
|
+ num = 'C00' + num
|
|
|
|
+ } else if (num < 100 && num > 9) {
|
|
|
|
+ num = 'C0' + num
|
|
|
|
+ } else if (num < 1000 && num >
|
|
|
|
+ 99) {
|
|
|
|
+ num = 'C' + num
|
|
|
|
+ }
|
|
that.goods = {
|
|
that.goods = {
|
|
carNo: '',
|
|
carNo: '',
|
|
collectionScreenshot: '',
|
|
collectionScreenshot: '',
|
|
@@ -251,7 +264,7 @@
|
|
driverPhone: '',
|
|
driverPhone: '',
|
|
reciveNetWeight: '',
|
|
reciveNetWeight: '',
|
|
tare: '',
|
|
tare: '',
|
|
- tranCarNo: '',
|
|
|
|
|
|
+ tranCarNo: num,
|
|
batch:that.goods.batch,
|
|
batch:that.goods.batch,
|
|
id:that.goods.id
|
|
id:that.goods.id
|
|
}
|
|
}
|