|
|
|
@ -38,22 +38,37 @@
|
|
|
|
|
> |
|
|
|
|
</el-table-column> |
|
|
|
|
</template> |
|
|
|
|
<el-table-column prop="menu" label="转库存品数量" :width="220" align="center"> |
|
|
|
|
<!-- <el-table-column prop="menu" label="转库存品数量" :width="220" align="center"> |
|
|
|
|
<template #="{ row }"> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-delete" @click="rowDel(row)">删除</el-button>--> |
|
|
|
|
<!-- <el-input v-model="row.inventoryQuantity" @blur="handleNumberRange($event,row)" :disabled= !this.ids.includes(row.id) ></el-input>--> |
|
|
|
|
<el-input v-model="row.quantity" disabled></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table-column> --> |
|
|
|
|
<!-- 操作栏模块 --> |
|
|
|
|
<!-- <el-table-column prop="menu" label="操作" :width="220" align="center">--> |
|
|
|
|
<!-- <template #="{row}">--> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-view" @click="handleView(row)">查看</el-button>--> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-edit" @click="handleEdit(row)">编辑</el-button>--> |
|
|
|
|
<!-- <el-button type="primary" text icon="el-icon-delete" @click="rowDel(row)">删除</el-button>--> |
|
|
|
|
<!-- </template>--> |
|
|
|
|
<!-- </el-table-column>--> |
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
|
|
<!-- <tablecmt |
|
|
|
|
:columnList="columnList" |
|
|
|
|
:tableData="data" |
|
|
|
|
:loading="loading" |
|
|
|
|
@inputTxt="inputsc" |
|
|
|
|
@timeCheck="timesc" |
|
|
|
|
@btnCheck="btnsc" |
|
|
|
|
@selectCheck="selectsc" |
|
|
|
|
@selection="selectionChange" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<el-text type="primary" text icon="el-icon-view" @click="handleView(slotProps.scope)" |
|
|
|
|
>查看</el-text |
|
|
|
|
> |
|
|
|
|
<el-text |
|
|
|
|
type="primary" |
|
|
|
|
text |
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
@click="handleCallDeliveryOwn(slotProps.scope)" |
|
|
|
|
>修改客户信息</el-text |
|
|
|
|
> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> --> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<div class="avue-crud__pagination" style="width: 100%"> |
|
|
|
@ -114,10 +129,20 @@ export default {
|
|
|
|
|
data: [], |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
watch: { |
|
|
|
|
// 初始化执行并深度监听路由 |
|
|
|
|
$route:{ |
|
|
|
|
handler(to, form){ |
|
|
|
|
console.log('to :>> ', to); |
|
|
|
|
console.log('form :>> ', form); |
|
|
|
|
this.init(); |
|
|
|
|
|
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
}, |
|
|
|
|
deep: true, |
|
|
|
|
immediate: true |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters(['permission']), |
|
|
|
|
ids() { |
|
|
|
@ -130,9 +155,24 @@ export default {
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
async handleTrade() { |
|
|
|
|
|
|
|
|
|
if (this.ids.length > 0) { |
|
|
|
|
let a = await addStockRow({ids: this.ids}); |
|
|
|
|
console.log('>>>>===', a.data); |
|
|
|
|
console.log(this.$route) |
|
|
|
|
|
|
|
|
|
let res = await addStockRow({ids: this.ids}); |
|
|
|
|
const {code, msg} = res.data |
|
|
|
|
if(code === 200){ |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'success', |
|
|
|
|
message: msg |
|
|
|
|
}) |
|
|
|
|
// 跳转回之前的页面 |
|
|
|
|
this.$router.go (-1) |
|
|
|
|
// 关闭页面标签 |
|
|
|
|
this.contextmenuFlag = false; |
|
|
|
|
this.$store.commit('DEL_TAG_CURRENT'); |
|
|
|
|
} |
|
|
|
|
// console.log('>>>>===', a.data); |
|
|
|
|
// if (a.data.success) { |
|
|
|
|
// this.onLoad(this.page); |
|
|
|
|
// } |
|
|
|
@ -272,6 +312,7 @@ export default {
|
|
|
|
|
this.onLoad(this.page); |
|
|
|
|
}, |
|
|
|
|
onLoad(page, params = {}) { |
|
|
|
|
console.log('1111 :>> ', 1111); |
|
|
|
|
this.loading = true; |
|
|
|
|
this.query.stockArticleId = this.$route.query.id; |
|
|
|
|
this.query.conditions = '1'; |
|
|
|
|