|
@@ -509,6 +509,7 @@ import step1 from './components/step1.vue'
|
|
|
import CompExportForm from '../exportForm.vue'
|
|
|
import exportQuota from '../exportQuota2.vue'
|
|
|
import mathjs, { savePrecision } from '@/utils/math.js'
|
|
|
+import Cookies from 'js-cookie'
|
|
|
import { getCalcParams, saveCalcData } from '@/api/indent'
|
|
|
import { $t } from '@/i18n/index'
|
|
|
defineComponent({
|
|
@@ -1018,6 +1019,8 @@ let initForm = (switchStatus = [] as any[], useOldFormData = false) => {
|
|
|
|
|
|
formList.value.push(t)
|
|
|
})
|
|
|
+ const indentUser = Cookies.get('indent-user')
|
|
|
+ let r = creatorOptions.filter((i) => i.label === indentUser)
|
|
|
exportForm.value = {
|
|
|
pdf_city: productInfo.value.save_cal.pdf_city || cityList.value[0],
|
|
|
exchange: productInfo.value.save_cal.exchange || '',
|
|
@@ -1025,7 +1028,8 @@ let initForm = (switchStatus = [] as any[], useOldFormData = false) => {
|
|
|
gst_name: productInfo.value.save_cal.gst_name || '+GST',
|
|
|
notes: productInfo.value.save_cal.notes || '',
|
|
|
other_notes: productInfo.value.save_cal.other_notes || '',
|
|
|
- saleperson: productInfo.value.save_cal.saleperson || '',
|
|
|
+ saleperson:
|
|
|
+ productInfo.value.save_cal.saleperson || (r.length ? r[0].value : ''),
|
|
|
}
|
|
|
}
|
|
|
|