bug修改

This commit is contained in:
caoxinyu
2019-06-02 14:51:42 +08:00
parent f09ab9fd32
commit 27b299f456
3 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ export const download = `http://192.168.1.231:8411/submit/downloadFile.ashx` //
export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231 export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231
const service = axios.create({ const service = axios.create({
baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`, baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`,
timeout: 1500000 // 请求超时时间 timeout: 1500000 // 请求超时时间
}) })

View File

@@ -476,7 +476,7 @@ export default {
return Number(prev) return Number(prev)
} }
}, 0) }, 0)
sums[index] += ' 元(含税)' sums[index] += ' 元(含税)'
} else { } else {
sums[index] = 'N/A' sums[index] = 'N/A'
} }
@@ -484,10 +484,10 @@ export default {
sums[index] = this.taxRate * 100 + '% (税率)' sums[index] = this.taxRate * 100 + '% (税率)'
return return
} else if (index === 9) { } else if (index === 9) {
sums[index] = (parseInt(sums[7]) * 100 * this.taxRate) / 100 + ' 万元(税额)' sums[index] = (parseFloat(sums[7]) - (parseFloat(sums[7]) / (1 + parseFloat(sums[8]) / 100)).toFixed(2)).toFixed(2) + ' 万元(税额)'
return return
} else if (index === 10) { } else if (index === 10) {
sums[index] = parseFloat(sums[7]) - parseFloat(sums[9]) + ' 万元(未税)' sums[index] = (parseFloat(sums[7]) / (1 + parseFloat(sums[8]) / 100)).toFixed(2) + ' 万元(未税)'
return return
} }
}) })

View File

@@ -45,13 +45,11 @@
<!--<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>--> <!--<div class="el-upload__text">将文件拖到此处<em>点击上传</em></div>-->
<!--<div slot="tip" class="el-upload__tip">只能上传jpg/png文件且不超过500kb</div>--> <!--<div slot="tip" class="el-upload__tip">只能上传jpg/png文件且不超过500kb</div>-->
<!--</el-upload>--> <!--</el-upload>-->
<el-dialog <el-dialog
:visible.sync="dialogVisibleMachine" :visible.sync="dialogVisibleMachine"
width="30%"> width="30%">
<el-card> <el-card>
<el-select clearable filterable v-model="machineDrawValue" filterable size="small" placeholder="机床名称" @change="changeMachine"> <el-select v-model="machineDrawValue" clearable filterable size="small" placeholder="机床名称" @change="changeMachine">
<el-option <el-option
v-for="item in machineDraw" v-for="item in machineDraw"
:key="item.value" :key="item.value"
@@ -60,6 +58,7 @@
</el-select> </el-select>
<div style="float: right;"> <div style="float: right;">
<el-upload <el-upload
:disabled="disabledMachine"
:action="action" :action="action"
:on-success="uploadSuccess" :on-success="uploadSuccess"
:on-error="uploadFailure" :on-error="uploadFailure"
@@ -67,7 +66,7 @@
:file-list="fileList" :file-list="fileList"
class="upload-demo" class="upload-demo"
multiple> multiple>
<el-button size="small" type="primary" :disabled="disabledMachine">点击上传</el-button> <el-button size="small" type="primary">点击上传</el-button>
</el-upload> </el-upload>
</div> </div>
</el-card> </el-card>
@@ -169,6 +168,7 @@ export default {
this.dialogVisibleMachine = true this.dialogVisibleMachine = true
this.machineDrawValue === '' ? this.disabledMachine = true : this.disabledMachine = false this.machineDrawValue === '' ? this.disabledMachine = true : this.disabledMachine = false
this.getSelect(machineSelect, ['机床图号', '机床流水号'], 'machineDraw', this.projectValue) this.getSelect(machineSelect, ['机床图号', '机床流水号'], 'machineDraw', this.projectValue)
this.$notify.error(`请选择机床`)
}, },
changeMachine() { changeMachine() {
this.machineDrawValue === '' ? this.disabledMachine = true : this.disabledMachine = false this.machineDrawValue === '' ? this.disabledMachine = true : this.disabledMachine = false