Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vue3 into dev
							parent
							
								
									7da1b04ae2
								
							
						
					
					
						commit
						419a572e80
					
				| 
						 | 
					@ -36,7 +36,7 @@
 | 
				
			||||||
    </el-form>
 | 
					    </el-form>
 | 
				
			||||||
  </ContentWrap>
 | 
					  </ContentWrap>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script lang="ts" name="ProductSpuForm" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
import { cloneDeep } from 'lodash-es'
 | 
					import { cloneDeep } from 'lodash-es'
 | 
				
			||||||
import { useTagsViewStore } from '@/store/modules/tagsView'
 | 
					import { useTagsViewStore } from '@/store/modules/tagsView'
 | 
				
			||||||
import { BasicInfoForm, DescriptionForm, OtherSettingsForm } from './components'
 | 
					import { BasicInfoForm, DescriptionForm, OtherSettingsForm } from './components'
 | 
				
			||||||
| 
						 | 
					@ -44,6 +44,8 @@ import { BasicInfoForm, DescriptionForm, OtherSettingsForm } from './components'
 | 
				
			||||||
import * as ProductSpuApi from '@/api/mall/product/spu'
 | 
					import * as ProductSpuApi from '@/api/mall/product/spu'
 | 
				
			||||||
import { convertToInteger, formatToFraction } from '@/utils'
 | 
					import { convertToInteger, formatToFraction } from '@/utils'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					defineOptions({ name: 'ProductSpuForm' })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const { t } = useI18n() // 国际化
 | 
					const { t } = useI18n() // 国际化
 | 
				
			||||||
const message = useMessage() // 消息弹窗
 | 
					const message = useMessage() // 消息弹窗
 | 
				
			||||||
const { push, currentRoute } = useRouter() // 路由
 | 
					const { push, currentRoute } = useRouter() // 路由
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -167,7 +167,7 @@
 | 
				
			||||||
  <!-- 商品属性添加 Form 表单 -->
 | 
					  <!-- 商品属性添加 Form 表单 -->
 | 
				
			||||||
  <ProductPropertyAddForm ref="attributesAddFormRef" :propertyList="propertyList" />
 | 
					  <ProductPropertyAddForm ref="attributesAddFormRef" :propertyList="propertyList" />
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script lang="ts" name="ProductSpuBasicInfoForm" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
import { PropType } from 'vue'
 | 
					import { PropType } from 'vue'
 | 
				
			||||||
import { isArray } from '@/utils/is'
 | 
					import { isArray } from '@/utils/is'
 | 
				
			||||||
import { copyValueToTarget } from '@/utils'
 | 
					import { copyValueToTarget } from '@/utils'
 | 
				
			||||||
| 
						 | 
					@ -200,6 +200,8 @@ const imagePreview = (args) => {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
// ====== end ======
 | 
					// ====== end ======
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					defineOptions({ name: 'ProductSpuBasicInfoForm' })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const message = useMessage() // 消息弹窗
 | 
					const message = useMessage() // 消息弹窗
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const props = defineProps({
 | 
					const props = defineProps({
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,7 +26,8 @@
 | 
				
			||||||
    </template>
 | 
					    </template>
 | 
				
			||||||
  </Descriptions>
 | 
					  </Descriptions>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script lang="ts" name="DescriptionForm" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
 | 
					defineOptions({ name: 'DescriptionForm' })
 | 
				
			||||||
import type { Spu } from '@/api/mall/product/spu'
 | 
					import type { Spu } from '@/api/mall/product/spu'
 | 
				
			||||||
import { Editor } from '@/components/Editor'
 | 
					import { Editor } from '@/components/Editor'
 | 
				
			||||||
import { PropType } from 'vue'
 | 
					import { PropType } from 'vue'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -83,7 +83,8 @@
 | 
				
			||||||
    </template>
 | 
					    </template>
 | 
				
			||||||
  </Descriptions>
 | 
					  </Descriptions>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script lang="ts" name="OtherSettingsForm" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
 | 
					defineOptions({ name: 'OtherSettingsForm' })
 | 
				
			||||||
import type { Spu } from '@/api/mall/product/spu'
 | 
					import type { Spu } from '@/api/mall/product/spu'
 | 
				
			||||||
import { PropType } from 'vue'
 | 
					import { PropType } from 'vue'
 | 
				
			||||||
import { propTypes } from '@/utils/propTypes'
 | 
					import { propTypes } from '@/utils/propTypes'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -17,9 +17,9 @@
 | 
				
			||||||
    </template>
 | 
					    </template>
 | 
				
			||||||
  </Dialog>
 | 
					  </Dialog>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script lang="ts" name="ProductPropertyAddForm" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
 | 
					defineOptions({ name: 'ProductPropertyForm' })
 | 
				
			||||||
import * as PropertyApi from '@/api/mall/product/property'
 | 
					import * as PropertyApi from '@/api/mall/product/property'
 | 
				
			||||||
 | 
					 | 
				
			||||||
const { t } = useI18n() // 国际化
 | 
					const { t } = useI18n() // 国际化
 | 
				
			||||||
const message = useMessage() // 消息弹窗
 | 
					const message = useMessage() // 消息弹窗
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -191,7 +191,8 @@
 | 
				
			||||||
    </template>
 | 
					    </template>
 | 
				
			||||||
  </el-table>
 | 
					  </el-table>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script lang="ts" name="SkuList" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
 | 
					defineOptions({ name: 'SkuList' })
 | 
				
			||||||
import { PropType, Ref } from 'vue'
 | 
					import { PropType, Ref } from 'vue'
 | 
				
			||||||
import { copyValueToTarget } from '@/utils'
 | 
					import { copyValueToTarget } from '@/utils'
 | 
				
			||||||
import { propTypes } from '@/utils/propTypes'
 | 
					import { propTypes } from '@/utils/propTypes'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -222,7 +222,7 @@
 | 
				
			||||||
    />
 | 
					    />
 | 
				
			||||||
  </ContentWrap>
 | 
					  </ContentWrap>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script lang="ts" name="ProductSpu" setup>
 | 
					<script lang="ts" setup>
 | 
				
			||||||
import { TabsPaneContext } from 'element-plus'
 | 
					import { TabsPaneContext } from 'element-plus'
 | 
				
			||||||
import { cloneDeep } from 'lodash-es'
 | 
					import { cloneDeep } from 'lodash-es'
 | 
				
			||||||
import { createImageViewer } from '@/components/ImageViewer'
 | 
					import { createImageViewer } from '@/components/ImageViewer'
 | 
				
			||||||
| 
						 | 
					@ -234,6 +234,8 @@ import download from '@/utils/download'
 | 
				
			||||||
import * as ProductSpuApi from '@/api/mall/product/spu'
 | 
					import * as ProductSpuApi from '@/api/mall/product/spu'
 | 
				
			||||||
import * as ProductCategoryApi from '@/api/mall/product/category'
 | 
					import * as ProductCategoryApi from '@/api/mall/product/category'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					defineOptions({ name: 'ProductSpu' })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const message = useMessage() // 消息弹窗
 | 
					const message = useMessage() // 消息弹窗
 | 
				
			||||||
const { t } = useI18n() // 国际化
 | 
					const { t } = useI18n() // 国际化
 | 
				
			||||||
const { currentRoute, push } = useRouter() // 路由跳转
 | 
					const { currentRoute, push } = useRouter() // 路由跳转
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -137,7 +137,7 @@
 | 
				
			||||||
    </template>
 | 
					    </template>
 | 
				
			||||||
  </Dialog>
 | 
					  </Dialog>
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script setup lang="ts">
 | 
					<script lang="ts" setup>
 | 
				
			||||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
 | 
					import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
 | 
				
			||||||
import * as DeliveryExpressTemplateApi from '@/api/mall/trade/delivery/expressTemplate'
 | 
					import * as DeliveryExpressTemplateApi from '@/api/mall/trade/delivery/expressTemplate'
 | 
				
			||||||
import { defaultProps } from '@/utils/tree'
 | 
					import { defaultProps } from '@/utils/tree'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -92,12 +92,14 @@
 | 
				
			||||||
  <!-- 表单弹窗:添加/修改 -->
 | 
					  <!-- 表单弹窗:添加/修改 -->
 | 
				
			||||||
  <ExpressTemplateForm ref="formRef" @success="getList" />
 | 
					  <ExpressTemplateForm ref="formRef" @success="getList" />
 | 
				
			||||||
</template>
 | 
					</template>
 | 
				
			||||||
<script setup lang="ts" name="DeliveryExpressTemplate">
 | 
					<script lang="ts" setup>
 | 
				
			||||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
 | 
					import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
 | 
				
			||||||
import { dateFormatter } from '@/utils/formatTime'
 | 
					import { dateFormatter } from '@/utils/formatTime'
 | 
				
			||||||
import * as DeliveryExpressTemplateApi from '@/api/mall/trade/delivery/expressTemplate'
 | 
					import * as DeliveryExpressTemplateApi from '@/api/mall/trade/delivery/expressTemplate'
 | 
				
			||||||
import ExpressTemplateForm from './ExpressTemplateForm.vue'
 | 
					import ExpressTemplateForm from './ExpressTemplateForm.vue'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					defineOptions({ name: 'DeliveryExpressTemplate' })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const message = useMessage() // 消息弹窗
 | 
					const message = useMessage() // 消息弹窗
 | 
				
			||||||
const { t } = useI18n() // 国际化
 | 
					const { t } = useI18n() // 国际化
 | 
				
			||||||
const total = ref(0) // 列表的总页数
 | 
					const total = ref(0) // 列表的总页数
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue