修改单据bug

prod
郑明梁 3 years ago
parent 2fd3dbfe22
commit 8d9cabe802

@ -464,7 +464,7 @@ export default {
axios.get("./config.json").then(res => { axios.get("./config.json").then(res => {
// //
let response = res.data.BASE_URL; let response = res.data.BASE_URL;
this.uploadFileUrl = response + "/udiwms/busstiness/file/upload"; this.uploadFileUrl = response + "/udiwms/bussinessType/file/upload";
}); });
this.headers = { this.headers = {
ADMIN_ID: store.getters.adminId, ADMIN_ID: store.getters.adminId,

@ -27,7 +27,7 @@
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="getList"></el-button> <el-button type="primary" icon="search" @click="getList"></el-button>
<el-upload :action="uploadFileUrl" multiple :limit="1" :data="uploadData" :show-file-list="false" :on-success="handleChange" :file-list="fileList"> <el-upload :action="uploadFileUrl" multiple :limit="1" :data="uploadData" :show-file-list="false" :on-success="handleChange" :file-list="fileList">
<el-button size="mini" icon="el-icon-upload2" type="primary">导入器械信息</el-button> <el-button icon="el-icon-upload2" type="primary">导入器械信息</el-button>
</el-upload> </el-upload>
</el-button-group> </el-button-group>
</div> </div>

@ -630,6 +630,10 @@ export default {
saveOrder() { saveOrder() {
let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData))); let tQuery = Object.assign(JSON.parse(JSON.stringify(this.orderFormData)));
tQuery.billNo = this.orderFormData.billNo; tQuery.billNo = this.orderFormData.billNo;
if(this.orderFormData.billNo==null){
this.$message.error("请先添加扫码详情!");
return;
}
saveOrderWeb(tQuery).then((response) => { saveOrderWeb(tQuery).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.closeDialog(); this.closeDialog();

@ -421,6 +421,7 @@ export default {
this.loading = false; this.loading = false;
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.getList();
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }

@ -86,7 +86,7 @@
<el-option <el-option
v-for="item in busTypes" v-for="item in busTypes"
:key="item.name" :key="item.name"
:label="item.action" :label="item.name"
:value="item.action"> :value="item.action">
<span style="float: left">{{ item.name }}</span> <span style="float: left">{{ item.name }}</span>
</el-option> </el-option>

Loading…
Cancel
Save