10/28 剔除码1.0

20240912_adapter
wangwei 8 months ago
parent 541cc3770a
commit 688a238e2b

@ -25,6 +25,17 @@ export function deleteCodesTempById(query) {
});
}
export function deleteCodesTempByCodes(query) {
return axios({
url: "warehouse/inout/deleteCodesTempBycodes",
method: "post",
data: query
});
}
export function submitOrderWeb(query) {
return axios({
url: "/warehouse/inout/submitOrderWeb",

@ -29,14 +29,23 @@
<el-table-column prop="name" label="名称"></el-table-column>
<el-table-column prop="code" label="编码"></el-table-column>
<el-table-column prop="remark" label="备注"></el-table-column>
<el-table-column label="操作" class-name="small-padding fixed-width">
<el-table-column label="操作" width="200">
<template slot-scope="scope">
<el-button type="text" @click="handleSubForm( scope.row, 'add')">新增</el-button>
<el-button type="text" @click.native.stop="handleSubForm( scope.row, 'edit')">编辑</el-button>
<el-button type="text" v-if="scope.row.code!=10000" @click.native.stop="handleDelInv(scope.row)"></el-button>
<el-button type="text" v-if="scope.row.code!=10000" @click.native.stop="addHospProduct( scope.row)"></el-button>
<el-button type="text" v-if="scope.row.code!=10000" @click.native.stop="removeHospProduct(scope.row)"></el-button>
<el-button-group>
<el-button type="text" style="margin-right: 10px" @click="handleSubForm( scope.row, 'add')">新增</el-button>
<el-button type="text" style="margin-right: 10px" @click.native.stop="handleSubForm( scope.row, 'edit')">编辑</el-button>
<el-button type="text" v-if="scope.row.code!=10000" style="margin-right: 10px" @click.native.stop="handleDelInv(scope.row)"></el-button>
<el-button type="text" v-if="scope.row.code!=10000" style="margin-right: 10px" @click.native.stop="addHospProduct(scope.row)"></el-button>
<el-button type="text" v-if="scope.row.code!=10000" style="margin-right: 10px" @click.native.stop="removeHospProduct(scope.row)"></el-button>
</el-button-group>
</template>
<!--<template slot-scope="scope">-->
<!-- <el-button type="text" @click="handleSubForm( scope.row, 'add')">新增</el-button>-->
<!-- <el-button type="text" @click.native.stop="handleSubForm( scope.row, 'edit')">编辑</el-button>-->
<!-- <el-button type="text" v-if="scope.row.code!=10000" @click.native.stop="handleDelInv(scope.row)"></el-button>-->
<!-- <el-button type="text" v-if="scope.row.code!=10000" @click.native.stop="addHospProduct( scope.row)"></el-button>-->
<!-- <el-button type="text" v-if="scope.row.code!=10000" @click.native.stop="removeHospProduct(scope.row)"></el-button>-->
<!--</template>-->
</el-table-column>
</el-table>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -275,6 +275,7 @@ export default {
errorCodeList(this.query) //
.then((response) => {
this.codeArray = response.data.list || [];
this.$emit('getCodeArray', this.codeArray);
this.total = response.data.total || 0;
for (let i = 0; i < this.codeArray.length; i++) {
this.codeArray[i].fromType = this.formData.fromType;
@ -282,6 +283,7 @@ export default {
}
this.tableSelection();
this.loading = false;
})
.catch(() => {
this.loading = false;

Loading…
Cancel
Save