|
@@ -410,14 +410,14 @@ export default {
|
|
|
if (this.pageType == 'edit') {
|
|
if (this.pageType == 'edit') {
|
|
|
par.id = this.id;
|
|
par.id = this.id;
|
|
|
} else {
|
|
} else {
|
|
|
- const batchNo = await getCode('lot_number_code');
|
|
|
|
|
- const res = await getAssetNum({
|
|
|
|
|
- assetCode: par.code,
|
|
|
|
|
- batchNum: batchNo,
|
|
|
|
|
- num: 1
|
|
|
|
|
- });
|
|
|
|
|
- console.log(res);
|
|
|
|
|
- par.code = res.data.shift().onlyCode;
|
|
|
|
|
|
|
+ // const batchNo = await getCode('lot_number_code');
|
|
|
|
|
+ // const res = await getAssetNum({
|
|
|
|
|
+ // assetCode: par.code,
|
|
|
|
|
+ // batchNum: batchNo,
|
|
|
|
|
+ // num: 1
|
|
|
|
|
+ // });
|
|
|
|
|
+ // console.log(res);
|
|
|
|
|
+ // par.code = res.data.shift().onlyCode;
|
|
|
par.id = '';
|
|
par.id = '';
|
|
|
}
|
|
}
|
|
|
this.btnLoading = true;
|
|
this.btnLoading = true;
|