|
@@ -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)"
|
|
|
>
|
|
@@ -2811,14 +2811,14 @@
|
|
|
id="print_area1"
|
|
|
class="biaoge zzss"
|
|
|
border="1"
|
|
|
- style="border-collapse: collapse; border: none"
|
|
|
+ style="border-collapse: collapse;border: none"
|
|
|
>
|
|
|
<tr>
|
|
|
<td
|
|
|
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>
|
|
@@ -2828,13 +2828,13 @@
|
|
|
width="900"
|
|
|
colspan="4"
|
|
|
class="zzss"
|
|
|
- style="font-size: 28px; font-weight: bold"
|
|
|
+ style="font-size: 28px; font-weight: bold;"
|
|
|
>
|
|
|
</td>
|
|
|
<td
|
|
|
width="500"
|
|
|
colspan="2"
|
|
|
- style="padding-bottom: 0px; font-weight: bold; border: none"
|
|
|
+ style="padding-bottom: 0px; font-weight: bold;"
|
|
|
class="zzss"
|
|
|
>
|
|
|
入库日期:{{ fBsdates }}
|
|
@@ -2898,9 +2898,9 @@
|
|
|
<td>机械/人工:</td>
|
|
|
<td></td>
|
|
|
</tr>
|
|
|
- <tr>
|
|
|
- <td colspan="6" class="zzss"> </td>
|
|
|
- </tr>
|
|
|
+<!-- <tr>-->
|
|
|
+<!-- <td colspan="6" class="zzss"> </td>-->
|
|
|
+<!-- </tr>-->
|
|
|
<tr>
|
|
|
<td width="280" class="zzss"></td>
|
|
|
<td width="280" class="zzss"></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:none;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:none;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:none;padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center;border:1px solid #000}}";
|
|
|
print({
|
|
|
printable: "print_area1",
|
|
|
type: "html",
|
|
@@ -3723,6 +3723,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
showEditDialog_sss() {
|
|
|
+ treeselect(this.form.fWarehouseid).then(response => {
|
|
|
+ })
|
|
|
if (this.Printinglist.length > 0) {
|
|
|
if(this.form.fFeetunit > 3){
|
|
|
this.$message.error('请维护主表计费单位为件数、毛重(kg)或净重(kg)')
|
|
@@ -3733,6 +3735,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 +3779,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
|
|
@@ -4070,7 +4072,6 @@ export default {
|
|
|
});
|
|
|
let qty = 1;
|
|
|
if (this.dialogWhgenlegList[zhgen].fFeeUnitid == 1) {
|
|
|
- console.log("111")
|
|
|
qty = this.fQty
|
|
|
} else if (this.dialogWhgenlegList[zhgen].fFeeUnitid == 2) {
|
|
|
qty = (this.fGrossweight/1000).toFixed(2)
|
|
@@ -4098,7 +4099,6 @@ export default {
|
|
|
fBusinessType:this.$set(this.warehouseDrList,'fBusinessType',this.form.fBusinessType)
|
|
|
})
|
|
|
}else{
|
|
|
- console.log(this.dialogWhgenlegList[zhgen].fFeeUnitid)
|
|
|
this.warehouseCrList.push({
|
|
|
fQty: qty,
|
|
|
fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
|
|
@@ -4114,9 +4114,7 @@ export default {
|
|
|
fMarks:this.form.fMarks,
|
|
|
fBusinessType:this.$set(this.warehouseCrList,'fBusinessType',this.form.fBusinessType)
|
|
|
})
|
|
|
- console.log(this.warehouseCrList)
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
this.warehousingagreements = false;
|
|
|
}
|
|
@@ -4250,6 +4248,18 @@ export default {
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
+ this.queryParams = {
|
|
|
+ fBillno:null,
|
|
|
+ createBy:null,
|
|
|
+ timeInterval:null,
|
|
|
+ fTrademodeid:null,
|
|
|
+ fCorpid:null,
|
|
|
+ fMblno:null,
|
|
|
+ fSbu:null,
|
|
|
+ fGoodsid:null,
|
|
|
+ fWarehouseid:null,
|
|
|
+ fMarks:null,
|
|
|
+ }
|
|
|
this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
},
|
|
@@ -4403,7 +4413,6 @@ export default {
|
|
|
this.$set(this.warehouseDrList[dr], "fQty", this.warehouseDrList[dr].fQty.toFixed(2));
|
|
|
this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2));
|
|
|
}
|
|
|
- console.log(JSON.stringify(this.warehouseDrList))
|
|
|
this.warehouseCrList = response.data.warehousebillsfeesCr;
|
|
|
for (let cr in this.warehouseCrList) {
|
|
|
this.$set(this.warehouseCrList[cr], "fFeeUnitid", this.warehouseCrList[cr].fFeeunitid + "");
|
|
@@ -4691,7 +4700,6 @@ export default {
|
|
|
for (let se in this.dataListSelection) {
|
|
|
if (Number(this.dataListSelection[se].fBillstatus) >= 10) {
|
|
|
dataList.push(this.dataListSelection[se])
|
|
|
- console.log("111")
|
|
|
}
|
|
|
}
|
|
|
if (dataList.length !== 0) {
|
|
@@ -4756,6 +4764,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 +4856,111 @@ 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){
|
|
|
+ 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('保存成功')
|
|
|
+ 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) => {
|
|
|
+ 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()
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|