|
@@ -466,12 +466,14 @@
|
|
|
:extra-loading="mxLoading"
|
|
|
:footer-method="footerMethod"
|
|
|
>
|
|
|
- <!-- <template #tableHeader>
|
|
|
+ <template #tableHeader>
|
|
|
<el-space wrap>
|
|
|
- <el-button type="primary">{{ $t("common.addText") }}</el-button>
|
|
|
- <el-button type="danger">{{ $t("common.delText") }}</el-button>
|
|
|
+ <el-button type="primary" @click="funcAddMtrlMx({}, null, 'accessoriesMxRef', -1)">{{
|
|
|
+ $t("common.addText")
|
|
|
+ }}</el-button>
|
|
|
+ <el-button type="danger" @click="toDelMx_accessories">{{ $t("common.delText") }}</el-button>
|
|
|
</el-space>
|
|
|
- </template> -->
|
|
|
+ </template>
|
|
|
</LjVxeTable>
|
|
|
</template>
|
|
|
|
|
@@ -939,7 +941,8 @@ const {
|
|
|
gotoErpapi,
|
|
|
updateSubspecsTable,
|
|
|
autoLoadExtraData,
|
|
|
- autoLoadExtraData_chai
|
|
|
+ autoLoadExtraData_chai,
|
|
|
+ getAllFormulaList
|
|
|
} = useHooks(t);
|
|
|
const { toExcelQuote, toExcelQuoteNew } = useHooksCpQuote();
|
|
|
const { CheckPower, CheckOption, buttonNew, buttonDefault } = useAuthButtons(t);
|
|
@@ -2331,6 +2334,7 @@ onMounted(() => {
|
|
|
console.log("defaultColumnsValue.value :>> ", route.query?.deptid, defaultColumnsValue.value);
|
|
|
|
|
|
getFormulakindEnum();
|
|
|
+ getAllFormulaList();
|
|
|
});
|
|
|
|
|
|
/**
|
|
@@ -2920,6 +2924,24 @@ const SetCurrentTabs = (data: any) => {
|
|
|
globalStore.setGlobalState("mattresTabs", _dftabs);
|
|
|
};
|
|
|
|
|
|
+
|
|
|
+/**
|
|
|
+ * @description 删除辅料
|
|
|
+ */
|
|
|
+const toDelMx_accessories = () => {
|
|
|
+ const { $table, curRecords } = getCurrentRecords(accessoriesMxRef.value);
|
|
|
+ if ($table) {
|
|
|
+ if (curRecords.length) {
|
|
|
+ try {
|
|
|
+ $table.remove(curRecords);
|
|
|
+ } catch (error) {
|
|
|
+ ElMessage.error(error.message);
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
/**
|
|
|
* @description 新增主副规格
|
|
|
*/
|