Ver Fonte

开单能添加花材

shish há 2 anos atrás
pai
commit
c95cfaed11
1 ficheiros alterados com 5 adições e 2 exclusões
  1. 5 2
      ghsApp/src/components/module/app-commodity2.vue

+ 5 - 2
ghsApp/src/components/module/app-commodity2.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-	<view class="item-cmd_bx" @click="showAddModelFn()">
+	<view class="item-cmd_bx" @click.stop="showAddModelFn()">
 		<view class="img_bx" style="background:#eeeeee">
 		<view class="img_bx" style="background:#eeeeee">
 			<block v-if="info.frontHide == 1">
 			<block v-if="info.frontHide == 1">
 				<view class="sold-out">
 				<view class="sold-out">
@@ -18,7 +18,7 @@
 				{{ info.name || "" }}
 				{{ info.name || "" }}
 				<text v-if="info.variety && info.variety ==1" class="show-color"></text>
 				<text v-if="info.variety && info.variety ==1" class="show-color"></text>
 			</view>
 			</view>
-			<view class="kc" style="position:absolute;top:55upx;">		
+			<view class="kc" style="position:absolute;top:55upx;z-index:99" @click.stop="copyCreate()">		
 				<block v-if="info.ratioType == 0">{{info.ratio}}{{info.smallUnit}}/{{info.bigUnit}}</block>
 				<block v-if="info.ratioType == 0">{{info.ratio}}{{info.smallUnit}}/{{info.bigUnit}}</block>
 				<block v-else>若干{{info.smallUnit}}/{{info.bigUnit}}</block>
 				<block v-else>若干{{info.smallUnit}}/{{info.bigUnit}}</block>
 			</view>
 			</view>
@@ -107,6 +107,9 @@ export default {
 		this.userPrice = this.info.userPrice
 		this.userPrice = this.info.userPrice
 	},
 	},
 	methods: {
 	methods: {
+		copyCreate(){
+			this.pageTo({url: '/admin/item/copy?id='+this.info.id})
+		},
 		delProduct(info){
 		delProduct(info){
 			this.$emit("delProduct", info)
 			this.$emit("delProduct", info)
 		},
 		},