|
@@ -1217,7 +1217,7 @@
|
|
|
<el-table-column
|
|
|
prop="fGrossweight"
|
|
|
header-align="center"
|
|
|
- width="150px"
|
|
|
+ width="180px"
|
|
|
align="center"
|
|
|
label="*入库毛重(kg)"
|
|
|
>
|
|
@@ -1234,7 +1234,7 @@
|
|
|
<el-table-column
|
|
|
prop="fNetweight"
|
|
|
header-align="center"
|
|
|
- width="150px"
|
|
|
+ width="180px"
|
|
|
align="center"
|
|
|
label="*入库净重(kg)"
|
|
|
>
|
|
@@ -2818,7 +2818,7 @@
|
|
|
width="1400"
|
|
|
colspan="6"
|
|
|
class="zzss"
|
|
|
- style="font-size: 28px; font-weight: bold; border: none"
|
|
|
+ style="font-size: 24px; font-weight: bold; border: none"
|
|
|
>
|
|
|
大木国际物流(青岛)有限公司作业单
|
|
|
</td>
|
|
@@ -3050,39 +3050,39 @@ export default {
|
|
|
closeButton:true,
|
|
|
//表单校验
|
|
|
checkout: {
|
|
|
- fGoodsid:[
|
|
|
- { required: true, message: ' ', trigger: 'blur' }
|
|
|
- ],
|
|
|
- fMarks: [
|
|
|
+ fGoodsids:[
|
|
|
{ required: true, message: ' ', trigger: 'blur' }
|
|
|
],
|
|
|
- fWarehouselocid:[
|
|
|
- { required: true, message: ' ', trigger: 'blur'}
|
|
|
- ],
|
|
|
- fGrossweight:[
|
|
|
- { required: true, message: ' ', trigger: 'blur'}
|
|
|
- ],
|
|
|
- fNetweight:[
|
|
|
- { required: true, message: ' ', trigger: 'blur'}
|
|
|
- ],
|
|
|
- fQty:[
|
|
|
- { required: true, message: ' ', trigger: 'blur'}
|
|
|
- ],
|
|
|
- fPackagespecs:[
|
|
|
- { required: true, message: ' ', trigger: 'blur'}
|
|
|
- ],
|
|
|
- fTruckno:[
|
|
|
- { required: true, message: ' ', trigger: 'blur'}
|
|
|
- ],
|
|
|
- fDriverName:[
|
|
|
- { required: true, message: ' ', trigger: 'blur'}
|
|
|
- ],
|
|
|
- fDriverTel:[
|
|
|
- { required: true, message: ' ', trigger: 'blur'}
|
|
|
- ],
|
|
|
- fDriverIdCar:[
|
|
|
- { required: true, message: ' ', trigger: 'blur'}
|
|
|
- ]
|
|
|
+ // fMarks: [
|
|
|
+ // { required: true, message: ' ', trigger: 'blur' }
|
|
|
+ // ],
|
|
|
+ // fWarehouselocid:[
|
|
|
+ // { required: true, message: ' ', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // fGrossweight:[
|
|
|
+ // { required: true, message: ' ', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // fNetweight:[
|
|
|
+ // { required: true, message: ' ', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // fQty:[
|
|
|
+ // { required: true, message: ' ', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // fPackagespecs:[
|
|
|
+ // { required: true, message: ' ', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // fTruckno:[
|
|
|
+ // { required: true, message: ' ', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // fDriverName:[
|
|
|
+ // { required: true, message: ' ', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // fDriverTel:[
|
|
|
+ // { required: true, message: ' ', trigger: 'blur'}
|
|
|
+ // ],
|
|
|
+ // fDriverIdCar:[
|
|
|
+ // { required: true, message: ' ', trigger: 'blur'}
|
|
|
+ // ]
|
|
|
},
|
|
|
queryForm: {},
|
|
|
// 新增用户对话框
|
|
@@ -3548,7 +3548,7 @@ export default {
|
|
|
printSomething() {
|
|
|
// 此处的style即为打印时的样式
|
|
|
const style =
|
|
|
- "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
|
|
|
+ "@media print { .print-div{ border:1px solid #000;padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
|
|
|
print({
|
|
|
printable: "print_area3",
|
|
|
type: "html",
|
|
@@ -3559,7 +3559,7 @@ export default {
|
|
|
printSomething1() {
|
|
|
// 此处的style即为打印时的样式
|
|
|
const style =
|
|
|
- "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
|
|
|
+ "@media print { .print-div{ border:1px solid #000;padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
|
|
|
print({
|
|
|
printable: "print_area2",
|
|
|
type: "html",
|
|
@@ -3570,7 +3570,7 @@ export default {
|
|
|
printSomething2() {
|
|
|
// 此处的style即为打印时的样式
|
|
|
const style =
|
|
|
- "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
|
|
|
+ "@media print { .print-div{ border:1px solid #000;padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
|
|
|
print({
|
|
|
printable: "print_area1",
|
|
|
type: "html",
|
|
@@ -3733,6 +3733,10 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
for (let li in this.Printinglist) {
|
|
|
+ if (!this.Printinglist[li].fId) {
|
|
|
+ this.$message.error('请先保存!')
|
|
|
+ return false
|
|
|
+ }
|
|
|
if (!this.Printinglist[li].fBsdate) {
|
|
|
this.$message.error('请选择入库日期')
|
|
|
return false
|
|
@@ -3773,10 +3777,6 @@ export default {
|
|
|
this.$message.error('请选择相同司机名')
|
|
|
return false
|
|
|
}
|
|
|
- if (!this.Printinglist[li].fId) {
|
|
|
- this.$message.error('请先保存!')
|
|
|
- return false
|
|
|
- }
|
|
|
if (!this.Printinglist[li].fBusinessType) {
|
|
|
this.$message.error('请先维护业务类型!')
|
|
|
return false
|
|
@@ -4756,6 +4756,7 @@ export default {
|
|
|
// 卸货按钮
|
|
|
discharge() {
|
|
|
if (this.Printinglist.length > 0) {
|
|
|
+
|
|
|
for (let warehouseCr in this.Printinglist) {
|
|
|
if (this.Printinglist[warehouseCr].fBillstatus === 10) {
|
|
|
this.$message.error("请先打印作业单");
|
|
@@ -4847,52 +4848,114 @@ export default {
|
|
|
preservation() {
|
|
|
this.$refs['form'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- this.form.fBillstatus = status
|
|
|
- this.form.fNetweight = this.fNetweight
|
|
|
- this.form.fPlanvolumn = this.fPlanvolumn
|
|
|
- this.form.fGrossweight = this.fGrossweight
|
|
|
- this.form.fQty = this.fQty
|
|
|
- // if (!this.form.fId) {
|
|
|
- // this.form.fId = this.fid
|
|
|
- // }
|
|
|
- // if (!this.form.fBusinessType) {
|
|
|
- // this.$message.error('请选择货物属性!')
|
|
|
- // return false
|
|
|
- // }
|
|
|
- for (let list in this.dataList) {
|
|
|
- if (!this.dataList[list].fBusinessType) {
|
|
|
- this.$message.error('请输入库存明细的货物属性!')
|
|
|
- return false
|
|
|
+ if(!this.dataList.length){
|
|
|
+ console.log("000")
|
|
|
+ this.form.fBillstatus = status
|
|
|
+ this.form.fNetweight = this.fNetweight
|
|
|
+ this.form.fPlanvolumn = this.fPlanvolumn
|
|
|
+ this.form.fGrossweight = this.fGrossweight
|
|
|
+ this.form.fQty = this.fQty
|
|
|
+ // if (!this.form.fId) {
|
|
|
+ // this.form.fId = this.fid
|
|
|
+ // }
|
|
|
+ // if (!this.form.fBusinessType) {
|
|
|
+ // this.$message.error('请选择货物属性!')
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ for (let list in this.dataList) {
|
|
|
+ if (!this.dataList[list].fBusinessType) {
|
|
|
+ this.$message.error('请输入库存明细的货物属性!')
|
|
|
+ return false
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- let formDatae = new window.FormData()
|
|
|
- // 附件数据
|
|
|
- this.form.fBillingway = this.form.fFeetunit
|
|
|
- formDatae.append('tWarehouseBills', JSON.stringify(this.form))
|
|
|
- // 库存明细
|
|
|
- formDatae.append('tWarehousebillsitems', JSON.stringify(this.dataList))
|
|
|
- // 附件数据
|
|
|
- formDatae.append('tEnclosure', JSON.stringify(this.relevantAttachments))
|
|
|
- // 费用明细付款
|
|
|
- formDatae.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
|
|
|
- // 收款
|
|
|
- formDatae.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
|
|
|
- addWarehousebills(formDatae).then((response) => {
|
|
|
- this.msgSuccess('保存成功')
|
|
|
- this.form = response.data.warehouseBills
|
|
|
- this.$set(this.form, 'fEta', Date.parse(this.form.fEta))
|
|
|
- this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
|
|
|
- this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
|
|
|
- this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '')
|
|
|
- this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
|
|
|
- this.dataList = response.data.warehousebillsitems
|
|
|
+ let formDatae = new window.FormData()
|
|
|
+ // 附件数据
|
|
|
+ this.form.fBillingway = this.form.fFeetunit
|
|
|
+ formDatae.append('tWarehouseBills', JSON.stringify(this.form))
|
|
|
+ // 库存明细
|
|
|
+ formDatae.append('tWarehousebillsitems', JSON.stringify(this.dataList))
|
|
|
+ // 附件数据
|
|
|
+ formDatae.append('tEnclosure', JSON.stringify(this.relevantAttachments))
|
|
|
+ // 费用明细付款
|
|
|
+ formDatae.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
|
|
|
+ // 收款
|
|
|
+ formDatae.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
|
|
|
+ addWarehousebills(formDatae).then((response) => {
|
|
|
+ this.msgSuccess('保存成功')
|
|
|
+ console.log("000")
|
|
|
+ this.form = response.data.warehouseBills
|
|
|
+ this.$set(this.form, 'fEta', Date.parse(this.form.fEta))
|
|
|
+ this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
|
|
|
+ this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
|
|
|
+ this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '')
|
|
|
+ this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
|
|
|
+ this.dataList = response.data.warehousebillsitems
|
|
|
+ for (let list in this.dataList) {
|
|
|
+ this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate))
|
|
|
+ this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
|
|
|
+ }
|
|
|
+ this.fid = response.data.warehouseBills.fId
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ for(let item in this.dataList){
|
|
|
+ if(!this.dataList[item].fGoodsids){
|
|
|
+ this.$message.error("请维护第"+ (Number(item)+1) +"行品名!")
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(!this.dataList[item].fMarks){
|
|
|
+ this.$message.error("请维护第"+ (Number(item)+1) +"行货物属性!")
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.form.fBillstatus = status
|
|
|
+ this.form.fNetweight = this.fNetweight
|
|
|
+ this.form.fPlanvolumn = this.fPlanvolumn
|
|
|
+ this.form.fGrossweight = this.fGrossweight
|
|
|
+ this.form.fQty = this.fQty
|
|
|
+ // if (!this.form.fId) {
|
|
|
+ // this.form.fId = this.fid
|
|
|
+ // }
|
|
|
+ // if (!this.form.fBusinessType) {
|
|
|
+ // this.$message.error('请选择货物属性!')
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
for (let list in this.dataList) {
|
|
|
- this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate))
|
|
|
- this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
|
|
|
+ if (!this.dataList[list].fBusinessType) {
|
|
|
+ this.$message.error('请输入库存明细的货物属性!')
|
|
|
+ return false
|
|
|
+ }
|
|
|
}
|
|
|
- this.fid = response.data.warehouseBills.fId
|
|
|
- this.getList()
|
|
|
- })
|
|
|
+ let formDatae = new window.FormData()
|
|
|
+ // 附件数据
|
|
|
+ this.form.fBillingway = this.form.fFeetunit
|
|
|
+ formDatae.append('tWarehouseBills', JSON.stringify(this.form))
|
|
|
+ // 库存明细
|
|
|
+ formDatae.append('tWarehousebillsitems', JSON.stringify(this.dataList))
|
|
|
+ // 附件数据
|
|
|
+ formDatae.append('tEnclosure', JSON.stringify(this.relevantAttachments))
|
|
|
+ // 费用明细付款
|
|
|
+ formDatae.append('tWarehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
|
|
|
+ // 收款
|
|
|
+ formDatae.append('tWarehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
|
|
|
+ addWarehousebills(formDatae).then((response) => {
|
|
|
+ console.log("111")
|
|
|
+ this.msgSuccess('保存成功')
|
|
|
+ this.form = response.data.warehouseBills
|
|
|
+ this.$set(this.form, 'fEta', Date.parse(this.form.fEta))
|
|
|
+ this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
|
|
|
+ this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
|
|
|
+ this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '')
|
|
|
+ this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
|
|
|
+ this.dataList = response.data.warehousebillsitems
|
|
|
+ for (let list in this.dataList) {
|
|
|
+ this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate))
|
|
|
+ this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
|
|
|
+ }
|
|
|
+ this.fid = response.data.warehouseBills.fId
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|