|
@@ -24,16 +24,16 @@
|
|
|
</span>
|
|
|
<!-- 面料 -转入数量 弹框-->
|
|
|
<span slot="fabInQuaSlot" slot-scope="text">
|
|
|
- <a>{{ Number(text).toFixed(4)}}</a>
|
|
|
+ <a>{{ Number(text).toFixed(2)}}</a>
|
|
|
</span>
|
|
|
|
|
|
<!-- 余下数量-->
|
|
|
<span slot="fabRemaQuaSlot" slot-scope="text">
|
|
|
- <a>{{ Number(text).toFixed(4) }}</a>
|
|
|
+ <a>{{ Number(text).toFixed(2) }}</a>
|
|
|
</span>
|
|
|
- <!-- 余下数量-->
|
|
|
+ <!-- 多发少发-->
|
|
|
<span slot="pilosityFewerSlot" slot-scope="text">
|
|
|
- <a>{{ Number(text).toFixed(4) }}</a>
|
|
|
+ <a>{{text?Number(text).toFixed(2):'' }}</a>
|
|
|
</span>
|
|
|
<!-- 备注 -->
|
|
|
<span slot="remarks" slot-scope="text,record">
|
|
@@ -66,7 +66,7 @@
|
|
|
</span>
|
|
|
<!--辅料-余下数量 弹框-->
|
|
|
<span slot="ingRemQuaSlot" slot-scope="text">
|
|
|
- <a v-if="text!==''">{{ Number(text).toFixed(4) }}</a>
|
|
|
+ <a v-if="text!==''">{{ Number(text).toFixed(2) }}</a>
|
|
|
</span>
|
|
|
<!-- 备注 -->
|
|
|
<span slot="remarks" slot-scope="text,record">
|
|
@@ -177,15 +177,15 @@
|
|
|
<!-- tabs内弹框 -->
|
|
|
<div>
|
|
|
<!-- 面料 转入数量 -->
|
|
|
- <fabInQua-modal ref="fabInQuaModal" :father="aa" :planNum="this.planNum" @close="closeFabInQua"></fabInQua-modal>
|
|
|
+ <fabInQua-modal ref="fabInQuaModal" :planNum="this.planNum" @close="closeFabInQua"></fabInQua-modal>
|
|
|
|
|
|
<!-- 余下数量 -->
|
|
|
- <fabRemQua-modal ref="fabRemQuaModal" :father="bb" :planNum="this.planNum" @close="closeFabRemQuaModal"></fabRemQua-modal>
|
|
|
+ <fabRemQua-modal ref="fabRemQuaModal" :planNum="this.planNum" @close="closeFabRemQuaModal"></fabRemQua-modal>
|
|
|
|
|
|
<!-- 辅料 转入数量 -->
|
|
|
- <ingInQua-modal ref="ingInQuaModal" :father="cc" :planNum="this.planNum" @close="closeIngInQua"></ingInQua-modal>
|
|
|
+ <ingInQua-modal ref="ingInQuaModal" :planNum="this.planNum" @close="closeIngInQua"></ingInQua-modal>
|
|
|
<!-- 余下数量 -->
|
|
|
- <ingRemQua-modal ref="ingRemQuaModal" :father="bb" :planNum="this.planNum"></ingRemQua-modal>
|
|
|
+ <ingRemQua-modal ref="ingRemQuaModal" :planNum="this.planNum"></ingRemQua-modal>
|
|
|
<pilosity-fewer-list-modal ref="pilosityFewerListModal" :planNum="this.planNum"></pilosity-fewer-list-modal>
|
|
|
<submit-information ref="submitInformation" @close="closeRemark" :showAll="showAll=='yes'?'yes':'no'"></submit-information>
|
|
|
</div>
|
|
@@ -269,7 +269,7 @@ export default {
|
|
|
className: 'replacecolor' ,
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
|
- return Number(text).toFixed(4)
|
|
|
+ return Number(text).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -280,7 +280,7 @@ export default {
|
|
|
className: 'replacecolor' ,
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
|
- return Number(text).toFixed(4)
|
|
|
+ return Number(text).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -291,7 +291,7 @@ export default {
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
|
- return Number(text).toFixed(4)
|
|
|
+ return Number(text).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -310,7 +310,7 @@ export default {
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
|
- return Number(text).toFixed(4)
|
|
|
+ return Number(text).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -399,7 +399,7 @@ export default {
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
|
- return Number(text).toFixed(4)
|
|
|
+ return Number(text).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -410,7 +410,7 @@ export default {
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
|
- return Number(text).toFixed(4)
|
|
|
+ return Number(text).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -549,7 +549,7 @@ export default {
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
|
- return Number(text).toFixed(4)
|
|
|
+ return Number(text).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -560,7 +560,7 @@ export default {
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
|
- return Number(text).toFixed(4)
|
|
|
+ return Number(text).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -593,7 +593,7 @@ export default {
|
|
|
className: 'replacecolor',
|
|
|
customRender: (text, record, index) => {
|
|
|
if(text!==''&&text){
|
|
|
- return Number(text).toFixed(4)
|
|
|
+ return Number(text).toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
},
|
|
@@ -762,6 +762,11 @@ export default {
|
|
|
this.$refs.fabRemQuaModal.fabRemQuaModVis = true
|
|
|
this.$refs.fabRemQuaModal.recordF = record
|
|
|
this.$refs.fabRemQuaModal.data = record.syRemaining
|
|
|
+ this.$refs.fabRemQuaModal.data.map(item=>{
|
|
|
+ if(item.unitCost){
|
|
|
+ item.unitCost = Number(item.unitCost).toFixed(4)
|
|
|
+ }
|
|
|
+ })
|
|
|
// if(this.mList.length!==0){
|
|
|
// this.mList.map(item=>{
|
|
|
// if(item.goodsName == record.goodsName && item.syRemaining.length!==0){
|
|
@@ -798,7 +803,7 @@ export default {
|
|
|
this.$refs.ingInQuaModal.record = record
|
|
|
record.syTransfers.map(item=>{
|
|
|
if(item.unitCost){
|
|
|
- item.unitCost = (item.unitCost).toFixed(3)
|
|
|
+ item.unitCost = (item.unitCost).toFixed(4)
|
|
|
}
|
|
|
})
|
|
|
this.$refs.ingInQuaModal.data = record.syTransfers
|