Commit d5eb28d3 by zhangzhen

委外执行加工表页面展示优化1

parent 9782eb36
$(function () { $(function () {
$("#QUERY").on("click", () => { $("#QUERY").on("click", () => {
vue.onLoading() vue.onLoading()
}); });
...@@ -196,7 +198,7 @@ $(function () { ...@@ -196,7 +198,7 @@ $(function () {
} }
}, },
mounted(){ mounted(){
$("#inqu_status-0-depositDate").val(dayjs().subtract(1,'d').format("YYYY-MM-DD"))
}, },
methods:{ methods:{
onLoading(){ onLoading(){
...@@ -207,8 +209,7 @@ $(function () { ...@@ -207,8 +209,7 @@ $(function () {
if(depositDate){ if(depositDate){
inInfo.set("inqu_status-0-depositDate",dayjs(depositDate).format("YYYYMMDD")); inInfo.set("inqu_status-0-depositDate",dayjs(depositDate).format("YYYYMMDD"));
}else{ }else{
$("#inqu_status-0-depositDate").val(dayjs().subtract(1,'d').format("YYYY-MM-DD")); inInfo.set("inqu_status-0-depositDate",'');
inInfo.set("inqu_status-0-depositDate",dayjs().subtract(1,'d').format("YYYYMMDD"));
} }
inInfo.set("inqu_status-0-projName",$("#inqu_status-0-projName").val()) inInfo.set("inqu_status-0-projName",$("#inqu_status-0-projName").val())
...@@ -310,7 +311,7 @@ $(function () { ...@@ -310,7 +311,7 @@ $(function () {
}, },
ccl:{ ccl:{
...val5.ccl, ...val5.ccl,
value: i4? (Number(val5.ccl.value)+Number(val4[i4-1].ccl.value))/val4.length: Number(val5.ccl.value), value: i4 ? (Number(val5.ccl.value)+Number(val4[i4-1].ccl.value))/val4.length: Number(val5.ccl.value),
rowspan: val4.length, rowspan: val4.length,
show: !i4 show: !i4
}, },
...@@ -321,7 +322,7 @@ $(function () { ...@@ -321,7 +322,7 @@ $(function () {
}, },
invQty:{ invQty:{
...val5.invQty, ...val5.invQty,
value: i4? (Number(val5.invQty.value)+Number(val4[i4-1].invQty.value)): Number(val5.invQty.value), value: i4 && val5.invQty.value? (Number(val5.invQty.value)+Number(val4[i4-1].invQty.value)): Number(val5.invQty.value),
rowspan: val4.length, rowspan: val4.length,
show: !i4 show: !i4
}, },
...@@ -332,7 +333,7 @@ $(function () { ...@@ -332,7 +333,7 @@ $(function () {
}, },
invWeight:{ invWeight:{
...val5.invWeight, ...val5.invWeight,
value: i4? (Number(val5.invWeight.value)+Number(val4[i4-1].invWeight.value)): Number(val5.invWeight.value), value: i4 && val5.invWeight.value? (Number(val5.invWeight.value)+Number(val4[i4-1].invWeight.value)): Number(val5.invWeight.value),
rowspan: val4.length, rowspan: val4.length,
show: !i4 show: !i4
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment