|
@@ -61,8 +61,7 @@
|
|
|
:dwname="DwnameEnum.mattressInterfaceQd"
|
|
|
:request-auto="false"
|
|
|
:table-props="tableProps_qd"
|
|
|
- :tool-button="[]"
|
|
|
- :auto-load-layout="false"
|
|
|
+ :tool-button="['setting']"
|
|
|
collapseButtons
|
|
|
@row-dragend="autoRowDragend"
|
|
|
>
|
|
@@ -72,6 +71,44 @@
|
|
|
</template>
|
|
|
</LjDetail>
|
|
|
|
|
|
+ <LjDialog ref="LjDialogQdRowAdd" class="is-selector" :style="{ padding: 0 }" width="480px">
|
|
|
+ <template #header>
|
|
|
+ <div class="flx-1">
|
|
|
+ <span class="text-h5-b">产品清单新增</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <!-- <div class="flx-1 h-full">
|
|
|
+ <LjHeaderMenu :action="qdDefaultAction" />
|
|
|
+ {{ interIndex }}
|
|
|
+ <el-form :model="qdFormParam" label-width="80px">
|
|
|
+ <el-form-item label="项目">
|
|
|
+ <el-select v-model="qdFormParam.itemname" placeholder="请选择部门">
|
|
|
+ <el-option v-for="(col, index) in itemnameEnum" :key="index" :label="col.label" :value="col.value"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-autocomplete
|
|
|
+ v-model="qdFormParam.itemname"
|
|
|
+ :fetch-suggestions="querySearch"
|
|
|
+ :trigger-on-focus="false"
|
|
|
+ clearable
|
|
|
+ class="inline-input w-50"
|
|
|
+ placeholder="Please Input"
|
|
|
+ @select="handleSelect"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="二级项目">
|
|
|
+ <el-select v-model="qdFormParam.bj_pzname">
|
|
|
+ <el-option v-for="(col, index) in itemnameEnum" :key="index" :label="col.label" :value="col.value"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="明细项目">
|
|
|
+ <el-select v-model="qdFormParam.bj_pzname_mx">
|
|
|
+ <el-option v-for="(col, index) in itemnameEnum" :key="index" :label="col.label" :value="col.value"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ 核价系统物料名称
|
|
|
+ </el-form>
|
|
|
+ </div> -->
|
|
|
+ </LjDialog>
|
|
|
<MattressDialog ref="MattressDialogRef" v-bind="MattressDialogProps" />
|
|
|
<MtrldefErpDialog ref="MtrldefErpDialogRef" v-bind="MtrldefErpDialogProps" />
|
|
|
</template>
|
|
@@ -96,6 +133,7 @@ import { formatToDate } from "@/utils/dateUtil";
|
|
|
import LjFoldLayout from "@/components/LjFoldLayout/index.vue";
|
|
|
import { detailAction } from "@/components/LjDetail/interface";
|
|
|
import { transformTreeData, autoMergeCells, isFilterPrice } from "@/utils/index";
|
|
|
+import LjDialog from "@/components/LjDialog/index.vue";
|
|
|
|
|
|
interface detailProp {
|
|
|
/**
|
|
@@ -279,11 +317,23 @@ const toMove = async (action: number) => {
|
|
|
|
|
|
const qdAction: detailAction[] = [
|
|
|
buttonDefault({
|
|
|
- label: "增行"
|
|
|
+ label: "增行",
|
|
|
+ clickFunc: () => {
|
|
|
+ interIndex.value = -1;
|
|
|
+ LjDialogQdRowAdd.value.show();
|
|
|
+ }
|
|
|
}),
|
|
|
buttonDefault({
|
|
|
label: "插行",
|
|
|
- divider: true
|
|
|
+ divider: true,
|
|
|
+ clickFunc: () => {
|
|
|
+ const $table = QdTableRef.value.element;
|
|
|
+ const curRecords = $table?.getCurrentRecord();
|
|
|
+ if (curRecords) {
|
|
|
+ interIndex.value = $table.getRowIndex(curRecords);
|
|
|
+ }
|
|
|
+ LjDialogQdRowAdd.value.show();
|
|
|
+ }
|
|
|
}),
|
|
|
buttonDefault({
|
|
|
label: "上移",
|
|
@@ -433,9 +483,9 @@ const orderDefaultAction = [
|
|
|
type: "success"
|
|
|
});
|
|
|
// tabRemove(route.fullPath);
|
|
|
- // router.replace(
|
|
|
- // `/erpapi/mattressInterface/detail?id=${LjDetailRef.value?._mainData.mattressid}&code=${LjDetailRef.value?._mainData.mattresscode}`
|
|
|
- // );
|
|
|
+ router.replace(
|
|
|
+ `/erpapi/mattressInterface/detail?id=${LjDetailRef.value?._mainData.mattressid}&code=${LjDetailRef.value?._mainData.mattresscode}`
|
|
|
+ );
|
|
|
|
|
|
// const _cur = LjDetailRef.value?._mainData;
|
|
|
// router.push({
|
|
@@ -924,4 +974,33 @@ const autoRowDragend = async data => {
|
|
|
});
|
|
|
// }, 1000);
|
|
|
};
|
|
|
+
|
|
|
+const LjDialogQdRowAdd = ref();
|
|
|
+const interIndex = ref(0);
|
|
|
+const qdFormParam = ref({
|
|
|
+ itemname: "",
|
|
|
+ bj_pzname: "",
|
|
|
+ bj_pzname_mx: "",
|
|
|
+ u_mtrl_price_mtrlname: ""
|
|
|
+});
|
|
|
+const qdDefaultAction = [
|
|
|
+ buttonDefault({
|
|
|
+ label: t("common.cancelText"),
|
|
|
+ icon: "iconchevron-left",
|
|
|
+ clickFunc: item => {
|
|
|
+ LjDialogQdRowAdd.value.hide();
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ buttonDefault({
|
|
|
+ label: t("common.okText"),
|
|
|
+ clickFunc: async item => {
|
|
|
+ LjDialogQdRowAdd.value.hide();
|
|
|
+ }
|
|
|
+ })
|
|
|
+];
|
|
|
+const querySearch = (queryString: string, cb: any) => {
|
|
|
+ const results = queryString ? restaurants.value.filter(createFilter(queryString)) : restaurants.value;
|
|
|
+ // call callback function to return suggestions
|
|
|
+ cb(results);
|
|
|
+};
|
|
|
</script>
|