feat: 仓库销售发货单打印格式修改
1、发货地址及物流单位可修改 2、物料型号行可增加行
This commit is contained in:
parent
a65e4980a5
commit
e7fba790c9
@ -46,12 +46,12 @@
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="收货地址">
|
||||
<el-input v-model="printParamForm.deliveryPartyAddress" disabled></el-input>
|
||||
<el-input v-model="printParamForm.deliveryPartyAddress" :disabled="!dnPrintSpecial"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物流单位">
|
||||
<el-input v-model="printParamForm.reFields4" disabled></el-input>
|
||||
<el-input v-model="printParamForm.reFields4" :disabled="!dnPrintSpecial"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@ -90,6 +90,9 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="24">
|
||||
<el-button @click="addDetail" icon="el-icon-plus">新 增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-table size="mini" :data="printParamForm.detailList" border style="width: 100%" height="250px"
|
||||
highlight-current-row>
|
||||
@ -128,6 +131,11 @@
|
||||
<el-input v-model="scope.row.quality"></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="操作" minWidth="10%">
|
||||
<template slot-scope="scope">
|
||||
<el-button circle size="small" type="danger" @click="removeDetail(scope.$index)" icon="el-icon-delete" :disabled="scope.row.removeDisable"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column align="center" prop="remarks" label="备注" minWidth="20%">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-input v-model="scope.row.remarks"></el-input>-->
|
||||
@ -410,8 +418,9 @@ export default {
|
||||
callBack: {
|
||||
target: null,
|
||||
keys: null
|
||||
}
|
||||
},
|
||||
},
|
||||
dnPrintSpecial: false,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@ -442,6 +451,9 @@ export default {
|
||||
if (data[i].optionName && data[i].optionName.toUpperCase() === "PRINTER_A4") {
|
||||
me.printerA4 = data[i].optionValue;
|
||||
}
|
||||
if (data[i].optionName && data[i].optionName.toUpperCase() === "DN_PRINT_SPECIAL") {
|
||||
me.dnPrintSpecial = data[i].optionValue === 'Y';
|
||||
}
|
||||
}
|
||||
}
|
||||
}).catch(e => {
|
||||
@ -676,6 +688,9 @@ export default {
|
||||
me.printParamForm.sumLength = resData.sumLength;
|
||||
me.printParamForm.createDate = resData.createDate;
|
||||
me.printParamForm.createUser = resData.createUser;
|
||||
for (let row of me.printParamForm.detailList) {
|
||||
row.removeDisable = true;
|
||||
}
|
||||
// me.printParamForm.detailList.forEach(item => {
|
||||
// item.remarks = (!item.qualityInspectionStatus ? "" : item.qualityInspectionStatus) + ":"
|
||||
// + (!item.zctKf ? "" : item.zctKf) + "mm x "
|
||||
@ -861,6 +876,15 @@ export default {
|
||||
}).catch(() => {
|
||||
hideLoading();
|
||||
});
|
||||
},
|
||||
|
||||
addDetail() {
|
||||
let me = this;
|
||||
me.printParamForm.detailList.push({});
|
||||
},
|
||||
removeDetail(index) {
|
||||
let me = this;
|
||||
me.printParamForm.detailList.splice(index, 1);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user