This commit is contained in:
2025-09-16 10:13:01 +08:00
parent 088946e2ad
commit 9fc8bf2055
4 changed files with 14 additions and 14 deletions

View File

@@ -86,7 +86,7 @@
<td>{{e.vehicle_code}}</td> <td>{{e.vehicle_code}}</td>
<td>{{e.material_code}}</td> <td>{{e.material_code}}</td>
<td>{{e.qty}}</td> <td>{{e.qty}}</td>
<td>{{e.bill_code}}</td> <td>{{e.form_data_code}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -196,7 +196,7 @@
try { try {
let res = await inCheck(this.val1) let res = await inCheck(this.val1)
if (res.code === '200') { if (res.code === '200') {
this.dataList = res.data this.dataList = [...this.dataList, ...res.data]
this.handleAdd() this.handleAdd()
} else { } else {
uni.showToast({ uni.showToast({

View File

@@ -51,7 +51,7 @@
<view class="zd-row submit-bar"> <view class="zd-row submit-bar">
<button class="zd-col-7 button-default" @tap="clearUp">清空</button> <button class="zd-col-7 button-default" @tap="clearUp">清空</button>
<button class="zd-col-7 button-primary" @tap="seachList">查询</button> <button class="zd-col-7 button-primary" @tap="seachList">查询</button>
<button class="zd-col-8 button-primary" :class="{'button-info': !dataList.length}" :disabled="disabled" @tap="_updatepoint_type">确认</button> <button class="zd-col-8 button-primary" :class="{'button-info': !dataList.length}" :disabled="disabled" @tap="_updatePointType">确认</button>
</view> </view>
</view> </view>
</template> </template>
@@ -59,7 +59,7 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import {getInBillPointList, updatepoint_type} from '@/utils/getData4.js' import {getInBillPointList, updatePointType} from '@/utils/getData4.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -131,14 +131,14 @@
this.dataList = res.data this.dataList = res.data
} }
}, },
async _updatepoint_type () { async _updatePointType () {
this.disabled = true this.disabled = true
if (!dataList.length) { if (!this.dataList.length) {
this.disabled = false this.disabled = false
return return
} }
try { try {
let res = await updatepoint_type(this.dataList) let res = await updatePointType(this.dataList)
if (res.code === '200') { if (res.code === '200') {
uni.showToast({ uni.showToast({
title: res.message, title: res.message,

View File

@@ -31,11 +31,11 @@
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.material_code === pkId}" @tap="toCheck(e)"> <tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.material_code === pkId}" @tap="toCheck(e)">
<td>{{e.material_code}}</td> <td>{{e.material_code}}</td>
<td>{{e.material_name}}</td> <td>{{e.material_name}}</td>
<td>{{e.measure_unit_id}}</td> <td>{{e.struct_code}}</td>
<td>{{e.measure_unit_id}}</td> <td>{{e.storagevehicle_code}}</td>
<td>{{e.measure_unit_id}}</td> <td>{{e.qty}}</td>
<td>{{e.measure_unit_id}}</td> <td>{{e.supp_code}}</td>
<td>{{e.measure_unit_id}}</td> <td>{{e.supp_name}}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@@ -294,9 +294,9 @@ export const getStructivtByMaterialAndSectCode = (scode, mcode) => request({
// 点位属性设置 // 点位属性设置
export const updatePointType = (code, type) => request({ export const updatePointType = (rows) => request({
url:'api/schBasePoint/updatePointType', url:'api/schBasePoint/updatePointType',
data: {point_code: code, point_type: type} data: {rows: rows}
}) })
// 查询入库点位清单 // 查询入库点位清单
export const getInBillPointList = (code) => request({ export const getInBillPointList = (code) => request({