|
@@ -62,6 +62,12 @@
|
|
|
>
|
|
|
<print-stock-info :excelRow="clickObjs" />
|
|
|
</el-dialog>
|
|
|
+ <CommonTable
|
|
|
+ ref="ctableRef"
|
|
|
+ tableTitle="库存物料更改"
|
|
|
+ tableType="MARTERIAL"
|
|
|
+ @selected-sure="onSelectedFinish"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup>
|
|
@@ -85,7 +91,7 @@ const data2 = ref(
|
|
|
src: "/api/v1/wms",
|
|
|
})
|
|
|
);
|
|
|
-
|
|
|
+const ctableRef = ref(null);
|
|
|
const crudRef = ref(null); //crudRef.value 获取avue-crud对象
|
|
|
const dialog1 = reactive({
|
|
|
title: "物料打印",
|
|
@@ -137,6 +143,7 @@ option.value = Object.assign(option.value, {
|
|
|
label: "货区",
|
|
|
prop: "locationNo",
|
|
|
editDisabled: true,
|
|
|
+ search: true,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -149,6 +156,7 @@ option.value = Object.assign(option.value, {
|
|
|
label: "货位",
|
|
|
prop: "coordinate",
|
|
|
editDisabled: true,
|
|
|
+ search: true,
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -190,6 +198,7 @@ option.value = Object.assign(option.value, {
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
prop: "materialNo",
|
|
|
+ editDisabled: true,
|
|
|
},
|
|
|
{
|
|
|
label: "物料名称",
|
|
@@ -200,7 +209,7 @@ option.value = Object.assign(option.value, {
|
|
|
overHidden: true,
|
|
|
click: ({ value, column }) => {
|
|
|
if(column.boxType){
|
|
|
- dialog1.visible = true
|
|
|
+ ctableRef.value.startSelect();
|
|
|
}
|
|
|
},
|
|
|
/*rules: [
|
|
@@ -230,9 +239,17 @@ option.value = Object.assign(option.value, {
|
|
|
{
|
|
|
label: "单位",
|
|
|
prop: "unit",
|
|
|
+ editDisabled: true,
|
|
|
},
|
|
|
],
|
|
|
});
|
|
|
+
|
|
|
+const onSelectedFinish=(val)=>{
|
|
|
+ console.log(val);
|
|
|
+ form.value.materialNo=val.materialCode;
|
|
|
+ form.value.materialName=val.materialName;
|
|
|
+ form.value.unit=val.unitDictValue;
|
|
|
+}
|
|
|
const rowStyle = ({row,column,rowIndex}) =>{
|
|
|
if(row.warningMsg){
|
|
|
return {
|