|
@@ -503,7 +503,9 @@ export default {
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
operation: 2,
|
|
|
- disabled: false
|
|
|
+ changeable: 2,
|
|
|
+ disabled: false,
|
|
|
+ onabort: 'this.value=this.value.replace(/[^\\-?\\d.]/g,"").replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/, "$1$2.$3")',
|
|
|
}, {
|
|
|
surface: '9',
|
|
|
label: 'fStltypeid',
|
|
@@ -947,10 +949,15 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//自动合计金额
|
|
|
- totalAmount() {
|
|
|
- for (let li in this.detailData) {
|
|
|
- if (this.detailData[li].fUnitprice && this.detailData[li].fQty) {
|
|
|
- this.detailData[li].fAmount = (this.detailData[li].fUnitprice * this.detailData[li].fQty).toFixed(2)
|
|
|
+ totalAmount(scope,item) {
|
|
|
+ if (item.label === 'fAmount'){
|
|
|
+ if (scope.row.fAmount && scope.row.fQty) {
|
|
|
+ this.$set(scope.row,'fUnitprice',(scope.row.fAmount / scope.row.fQty).toFixed(2))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (item.label === 'fUnitprice'||item.label === 'fQty'){
|
|
|
+ if (scope.row.fUnitprice && scope.row.fQty) {
|
|
|
+ this.$set(scope.row,'fAmount',(scope.row.fUnitprice * scope.row.fQty).toFixed(2))
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -986,6 +993,16 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ if (this.formOption[li].name == '项目名称') {
|
|
|
+ getEntry().then(res => {
|
|
|
+ for (let item in res.data) {
|
|
|
+ this.formOption[li].data.push({
|
|
|
+ label: res.data[item].projectName,
|
|
|
+ value: res.data[item].fId
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
if (this.formOption[li].name == '供应商') {
|
|
|
let queryParams = { pageNum: 1, fTypeid: 1 }
|
|
|
getustomer(queryParams).then(res => {
|