Browse Source

货位可视化上架新增确定

fix_bug_pro20231227
qb 2 years ago
parent
commit
f9e2d43f80
  1. 30
      src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue
  2. 4
      vite.config.js

30
src/views/basicdata/warehouse/goodsShelf/basicdataGoodsShelfView.vue

@ -188,8 +188,7 @@
</template> </template>
</el-dialog> </el-dialog>
<!-- 上架 --> <!-- 上架 -->
<el-dialog
<el-dialog
v-model="isshowupt" v-model="isshowupt"
:title=" :title="
'请选择' + '请选择' +
@ -315,6 +314,20 @@
</span> </span>
</template> --> </template> -->
</el-dialog> </el-dialog>
<el-dialog
v-model="isshowConfirmedListing"
:title="
'确定上架'
"
width="50%"
center
>
<div style="text-align: center;">
<el-button type="primary" @click="confirmedListing">确定</el-button>
<el-button @click="isshowConfirmedListing = false">取消</el-button>
</div>
</el-dialog>
<!-- 下架 --> <!-- 下架 -->
<el-dialog <el-dialog
v-model="isshowdow" v-model="isshowdow"
@ -494,6 +507,8 @@ let details = reactive({
contenarr: [], contenarr: [],
isshowcon: false, isshowcon: false,
isshowupt: false, isshowupt: false,
isshowConfirmedListing: false,
addhuojData: {},
checkite: {}, checkite: {},
loading: false, loading: false,
currentPage: 1, currentPage: 1,
@ -1994,10 +2009,16 @@ const showdown = async value => {
searchbutdown(); searchbutdown();
}; };
const addhuoj = async scope => { const addhuoj = async scope => {
details.addhuojData = scope
details.isshowConfirmedListing = true
console.log(scope.row); console.log(scope.row);
};
//
const confirmedListing = async () => {
let data = { let data = {
allocationId: details.checkite.id, allocationId: details.checkite.id,
}; };
const scope = details.addhuojData
let url = ''; let url = '';
switch (details.isshowupt) { switch (details.isshowupt) {
case 1: case 1:
@ -2035,6 +2056,8 @@ const addhuoj = async scope => {
break; break;
} }
let response = await posturl(url, data); let response = await posturl(url, data);
//
details.isshowConfirmedListing = false
if (response.data.code == 200) { if (response.data.code == 200) {
console.log(response.data); console.log(response.data);
proxy.$message({ proxy.$message({
@ -2050,7 +2073,7 @@ const addhuoj = async scope => {
message: response.data.msg, message: response.data.msg,
}); });
} }
}; }
async function allup() { async function allup() {
// console.log(scope.row); // console.log(scope.row);
let data = { let data = {
@ -2194,6 +2217,7 @@ const {
loading, loading,
checkregionse, checkregionse,
isshowupt, isshowupt,
isshowConfirmedListing,
columnList, columnList,
isshowcon, isshowcon,
arrlist, arrlist,

4
vite.config.js

@ -14,8 +14,8 @@ export default ({ mode, command }) => {
'/api': { '/api': {
// target: 'http://192.168.10.126:8889', // target: 'http://192.168.10.126:8889',
// target: 'http://192.168.10.48:8888', // target: 'http://192.168.10.48:8888',
// target: 'http://192.168.10.123:8889', target: 'http://192.168.10.123:8889',
target: 'http://192.168.10.101:8888', // target: 'http://192.168.10.101:8888',
// target: 'http://192.168.10.101:8888', // target: 'http://192.168.10.101:8888',
// target: 'http://192.168.10.29:13000', // target: 'http://192.168.10.29:13000',
// target: 'http://test.api.huitongys.com', // target: 'http://test.api.huitongys.com',

Loading…
Cancel
Save