|
|
@@ -60,7 +60,8 @@
|
|
|
<div class="form-inline col-8">
|
|
|
<select class="form-control form-control-sm col-12" name="owner_id" id="owner_id"
|
|
|
:class="{'is-invalid':errors.owner_id}"
|
|
|
- @change="getASNDetails,clearError('owner_id')"
|
|
|
+ @change="getASNDetails"
|
|
|
+ @input="clearError('owner_id')"
|
|
|
v-model="receiving_task.owner_id">
|
|
|
<option v-for="item in owners" :value="item.id" v-text="item.name"></option>
|
|
|
</select>
|
|
|
@@ -346,11 +347,13 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
- <el-button type="primary" class="col-12" @click="submit" v-if="!submit_loading">提交</el-button>
|
|
|
- <el-button type="primary" class="col-12" :loading="true" v-if="submit_loading">提交中</el-button>
|
|
|
+ <el-button type="primary" class="col-12" @click="submit" v-if="!submit_loading">提 交</el-button>
|
|
|
+ <el-button type="primary" class="col-12" :loading="true" v-if="submit_loading">提 交 中</el-button>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
- <el-button type="primary" class="col-12" @click="printLodop">打印</el-button>
|
|
|
+ @can('入库管理-开单入库-打印任务单')
|
|
|
+ <el-button type="primary" class="col-12" @click="printLodop">打 印</el-button>
|
|
|
+ @endcan
|
|
|
</div>
|
|
|
@include("store.receivingTasks._receiving_task_print")
|
|
|
@include("store.receivingTasks._clodop_print")
|
|
|
@@ -483,7 +486,7 @@
|
|
|
this.submit_loading = false;
|
|
|
if (res.data.success) {
|
|
|
this.successTempTip("创建成功");
|
|
|
-
|
|
|
+ this.conversion(res.data.data);
|
|
|
} else {
|
|
|
if (res.data.errors) {
|
|
|
let error = null;
|
|
|
@@ -515,7 +518,7 @@
|
|
|
}).catch(err => {
|
|
|
this.errorTempTip(err);
|
|
|
});
|
|
|
- },
|
|
|
+ },
|
|
|
formatAsnHeaderDetails(asnHeaderDetails) {
|
|
|
return asnHeaderDetails.map(e => this.formatAsnHeaderDetail(e));
|
|
|
},
|
|
|
@@ -697,7 +700,7 @@
|
|
|
} = this.receiving_task_print;
|
|
|
this.clodop.PRINT_INITA(2,0,0,0,"");
|
|
|
this.clodop.SET_PRINT_PAGESIZE(2,'76mm','130mm');
|
|
|
- this.clodop.ADD_PRINT_BARCODE(20,70,350,50,"Code39","123456789012");
|
|
|
+ this.clodop.ADD_PRINT_BARCODE(20,70,350,50,"Code39",number);
|
|
|
this.clodop.SET_PRINT_STYLEA(0,"FontSize",10);
|
|
|
this.clodop.ADD_PRINT_TEXT(100,15,100,20,"收货任务号");
|
|
|
this.clodop.SET_PRINT_STYLEA(0,"FontSize",10);
|
|
|
@@ -738,20 +741,20 @@
|
|
|
this.clodop.ADD_PRINT_TEXT(250,245,100,20,"预约号");
|
|
|
this.clodop.SET_PRINT_STYLEA(0,"Alignment",2);
|
|
|
this.clodop.SET_PRINT_STYLEA(0,"Bold",1);
|
|
|
- this.clodop.ADD_PRINT_TEXT(100,115,250,20,"1234566554646"); // number
|
|
|
+ this.clodop.ADD_PRINT_TEXT(100,115,250,20,number); // number
|
|
|
this.clodop.SET_PRINT_STYLEA(0,"FontSize",10);
|
|
|
this.clodop.SET_PRINT_STYLEA(0,"Alignment",2);
|
|
|
this.clodop.SET_PRINT_STYLEA(0,"Bold",1);
|
|
|
- this.clodop.ADD_PRINT_TEXT(130,115,130,20,"-仓库号"); // warehouse
|
|
|
- this.clodop.ADD_PRINT_TEXT(160,115,100,20,"-司机姓名"); //driver_name
|
|
|
- this.clodop.ADD_PRINT_TEXT(190,115,130,20,"-车号牌"); //plate_number
|
|
|
- this.clodop.ADD_PRINT_TEXT(220,115,100,20,"-是否提供清单"); //provide_list
|
|
|
- this.clodop.ADD_PRINT_TEXT(250,115,130,20,"-货主"); // owner
|
|
|
- this.clodop.ADD_PRINT_TEXT(130,345,100,20,"-投单员"); // for_single_member
|
|
|
- this.clodop.ADD_PRINT_TEXT(160,345,140,20,"-司机电话"); // driver_phone
|
|
|
- this.clodop.ADD_PRINT_TEXT(190,345,140,20,"-驾驶证号"); // driving_license_no
|
|
|
- this.clodop.ADD_PRINT_TEXT(220,345,100,20,"-收货类型"); // receiving_type
|
|
|
- this.clodop.ADD_PRINT_TEXT(250,345,140,20,"-预约号"); //appointment_number
|
|
|
+ this.clodop.ADD_PRINT_TEXT(130,115,130,20,warehouse); // warehouse
|
|
|
+ this.clodop.ADD_PRINT_TEXT(160,115,100,20,driver_name); //driver_name
|
|
|
+ this.clodop.ADD_PRINT_TEXT(190,115,130,20,plate_number); //plate_number
|
|
|
+ this.clodop.ADD_PRINT_TEXT(220,115,100,20,provide_list); //provide_list
|
|
|
+ this.clodop.ADD_PRINT_TEXT(250,115,130,20,owner); // owner
|
|
|
+ this.clodop.ADD_PRINT_TEXT(130,345,100,20,for_single_member); // for_single_member
|
|
|
+ this.clodop.ADD_PRINT_TEXT(160,345,140,20,driver_phone); // driver_phone
|
|
|
+ this.clodop.ADD_PRINT_TEXT(190,345,140,20,driving_license_no); // driving_license_no
|
|
|
+ this.clodop.ADD_PRINT_TEXT(220,345,100,20,receiving_type); // receiving_type
|
|
|
+ this.clodop.ADD_PRINT_TEXT(250,345,140,20,appointment_number); //appointment_number
|
|
|
this.clodop.PREVIEW();
|
|
|
}
|
|
|
}
|