|
@@ -23,6 +23,28 @@
|
|
|
label-width="140"
|
|
|
>
|
|
|
<div class="flex justify-between flex-wrap">
|
|
|
+ <el-form-item
|
|
|
+ label="SKU"
|
|
|
+ style="height: 40px"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="el-input el-input__wrapper el-input__inner fake-sku-input"
|
|
|
+ @click="openSkuSelect(props.$index)"
|
|
|
+ >
|
|
|
+ <span class="cursor-pointer">
|
|
|
+ {{ formList[props.$index].product_sku }}
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="产品名称"
|
|
|
+ prop="product_name"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model="formList[props.$index].product_name"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item
|
|
|
:rules="{
|
|
|
required: true,
|
|
@@ -321,6 +343,11 @@
|
|
|
<el-button @click="show2 = false">关闭</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <sku-select
|
|
|
+ v-model:visible="skuSelectVisible"
|
|
|
+ @select="selectSku"
|
|
|
+ ></sku-select>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
@@ -344,12 +371,19 @@ import {
|
|
|
} from 'element-plus'
|
|
|
import { Notebook } from '@element-plus/icons-vue'
|
|
|
import { getCalcPriceRecord, generateOrder } from '@/api/indent'
|
|
|
+import skuSelect from './skuSelect.vue'
|
|
|
+
|
|
|
defineComponent({
|
|
|
name: 'ComponentQuoteRecord',
|
|
|
})
|
|
|
-const { visible = false, id = '' } = defineProps<{
|
|
|
+const {
|
|
|
+ visible = false,
|
|
|
+ id = '',
|
|
|
+ indentData = {} as any,
|
|
|
+} = defineProps<{
|
|
|
visible: boolean
|
|
|
id: string | number
|
|
|
+ indentData: object
|
|
|
}>()
|
|
|
const $emit = defineEmits(['update:visible', 'success'])
|
|
|
let show = ref(false)
|
|
@@ -387,6 +421,9 @@ const getCalcPriceRecordFunc = () => {
|
|
|
const v = list.value[i].Accounts || ({} as any)
|
|
|
// remoteOption.value.push([])
|
|
|
formList.value.push({
|
|
|
+ item_id: indentData.item_id || '',
|
|
|
+ product_name: indentData.product_name || '',
|
|
|
+ product_sku: indentData.product_sku || '',
|
|
|
Contract_Title: '',
|
|
|
Expected_Delivery_Date: '',
|
|
|
Brand_Name: '',
|
|
@@ -509,6 +546,20 @@ const onChangeOrderClick = (row: any) => {
|
|
|
// target.push({ value: 1, label: 1 })
|
|
|
// }
|
|
|
// }
|
|
|
+const skuSelectVisible = ref(false)
|
|
|
+const openSkuSelect = (key: any) => {
|
|
|
+ skuSelectVisible.value = true
|
|
|
+}
|
|
|
+const selectSku = (data: any) => {
|
|
|
+ formList.value = formList.value.map((i: any) => {
|
|
|
+ return {
|
|
|
+ ...i,
|
|
|
+ product_name: data.product_name || '',
|
|
|
+ product_sku: data.product_sku || '',
|
|
|
+ item_id: data.id || '',
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
|
.dialog-change-order {
|