|
@@ -21,6 +21,11 @@
|
|
|
]"
|
|
|
@get-list="getList"
|
|
|
@clickReset="clickReset">
|
|
|
+ <template #code="{ item }">
|
|
|
+ <div>
|
|
|
+ <a style="color: #409eff; cursor: pointer; word-break: break-all" @click="clickCode(item)">{{ item.code }}</a>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</byTable>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="盘点明细" name="second">
|
|
@@ -74,10 +79,6 @@ const { proxy } = getCurrentInstance();
|
|
|
const activeName = ref("first");
|
|
|
const departmentList = ref([{ dictKey: "0", dictValue: "胜德体育" }]);
|
|
|
const warehouseList = ref([]);
|
|
|
-const status = ref([
|
|
|
- { dictKey: "0", dictValue: "正常" },
|
|
|
- { dictKey: "1", dictValue: "异常" },
|
|
|
-]);
|
|
|
const sourceList = ref({
|
|
|
data: [],
|
|
|
pagination: {
|
|
@@ -86,7 +87,6 @@ const sourceList = ref({
|
|
|
pageSize: 10,
|
|
|
departmentId: "",
|
|
|
warehouseId: "",
|
|
|
- status: "",
|
|
|
beginTime: "",
|
|
|
endTime: "",
|
|
|
},
|
|
@@ -104,6 +104,7 @@ const sourceListTwo = ref({
|
|
|
status: "",
|
|
|
beginTime: "",
|
|
|
endTime: "",
|
|
|
+ code: "",
|
|
|
},
|
|
|
});
|
|
|
const loading = ref(false);
|
|
@@ -122,12 +123,6 @@ const searchConfig = computed(() => {
|
|
|
label: "仓库",
|
|
|
},
|
|
|
{
|
|
|
- type: "select",
|
|
|
- prop: "status",
|
|
|
- data: status.value,
|
|
|
- label: "盘点结果",
|
|
|
- },
|
|
|
- {
|
|
|
type: "date",
|
|
|
propList: ["beginTime", "endTime"],
|
|
|
label: "盘点日期",
|
|
@@ -138,6 +133,11 @@ const searchConfigTwo = computed(() => {
|
|
|
return [
|
|
|
{
|
|
|
type: "input",
|
|
|
+ prop: "code",
|
|
|
+ label: "盘点单号",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
prop: "bomSpecCode",
|
|
|
label: "品号",
|
|
|
},
|
|
@@ -154,15 +154,19 @@ const searchConfigTwo = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
|
- prop: "warehouseId",
|
|
|
- data: warehouseList.value,
|
|
|
- label: "仓库",
|
|
|
+ prop: "status",
|
|
|
+ data: [
|
|
|
+ { dictKey: 1, dictValue: "正常" },
|
|
|
+ { dictKey: 2, dictValue: "盘盈" },
|
|
|
+ { dictKey: 3, dictValue: "盘亏" },
|
|
|
+ ],
|
|
|
+ label: "状态",
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
|
- prop: "status",
|
|
|
- data: status.value,
|
|
|
- label: "盘点结果",
|
|
|
+ prop: "warehouseId",
|
|
|
+ data: warehouseList.value,
|
|
|
+ label: "仓库",
|
|
|
},
|
|
|
{
|
|
|
type: "date",
|
|
@@ -184,7 +188,7 @@ const config = computed(() => {
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "盘点单号",
|
|
|
- prop: "code",
|
|
|
+ slot: "code",
|
|
|
width: 200,
|
|
|
},
|
|
|
},
|
|
@@ -214,16 +218,6 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "入库类型",
|
|
|
- prop: "status",
|
|
|
- width: 140,
|
|
|
- },
|
|
|
- render(val) {
|
|
|
- return proxy.dictKeyValue(val, status.value);
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- attrs: {
|
|
|
label: "盘点人",
|
|
|
prop: "checkTaker",
|
|
|
width: 160,
|
|
@@ -236,6 +230,13 @@ const configTwo = computed(() => {
|
|
|
return [
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "盘点单号",
|
|
|
+ prop: "code",
|
|
|
+ width: 150,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "品号",
|
|
|
prop: "bomSpecCode",
|
|
|
width: 150,
|
|
@@ -453,6 +454,10 @@ const clickSubmit = () => {
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
+const clickCode = (row) => {
|
|
|
+ sourceListTwo.value.pagination.code = row.code;
|
|
|
+ activeName.value = "second";
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|